/*
Theme Name: La Châtaigneraie
Theme URI: https://gamma-design.com/
Author: がんまデザイン
Author URI: https://gamma-design.com/
Description: 架空のケーキ屋さん「La Châtaigneraie（ラ・シャテニェレ）」の1枚物サイト（がんまデザインの制作サンプル）。店舗情報・メニュー・写真は「外観 → カスタマイズ → La Châtaigneraie の設定」から変更できます。
Version: 2.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: chataigneraie
*/

:root {
  --ivory: #FBF6EE;
  --cream: #F3E9DA;
  --cream2: #EADCC8;
  --line: #E3D5C2;
  --brown: #5A3A2B;
  --brown2: #6B4A3A;
  --brown-line: #8A6A56;
  --text: #4A3025;
  --text2: #5E4436;
  --muted: #6B5040;
  --gold: #E0C49A;
  --accent: #8A6232;
  --serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --latin: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
a:hover { color: #8A5A3C; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; padding: 10px 16px; background: var(--ivory); color: var(--brown); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* お知らせ帯 */
.lc-notice { background: var(--brown); color: var(--cream); font-size: 13px; text-align: center; padding: 8px 16px; }

/* ヘッダー（フローティング） */
.lc-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  padding: 20px max(5%, calc((100% - 1180px) / 2));
  background: rgba(251, 246, 238, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, box-shadow .25s ease;
}
.lc-header.is-scrolled { padding-top: 10px; padding-bottom: 10px; box-shadow: 0 6px 20px rgba(90, 58, 43, .08); }
.lc-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.lc-logo__name { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 32px; color: var(--brown); white-space: nowrap; transition: font-size .25s ease; }
.lc-logo__sub { font-size: 11px; letter-spacing: .3em; color: #7A5A44; transition: opacity .2s ease; }
.lc-header.is-scrolled .lc-logo__name { font-size: 24px; }
.lc-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.lc-nav a { display: inline-block; padding: 10px 0; text-decoration: none; }
body.admin-bar .lc-header { top: 32px; }
section[id] { scroll-margin-top: 80px; }

/* 共通 */
.lc-section { padding: 104px 5%; }
.lc-inner { max-width: 1120px; margin: 0 auto; }
.lc-eyebrow { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.4; color: var(--accent); }
.lc-title { margin-top: 4px; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.5; }
.lc-center { text-align: center; }
.lc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 32px; border-radius: 999px; background: var(--brown); color: var(--ivory); font-weight: 700; text-decoration: none; border: 1.5px solid var(--brown); }
.lc-btn:hover { background: #3F281D; color: var(--ivory); }
.lc-btn--line { background: transparent; color: var(--brown); }
.lc-btn--line:hover { background: var(--brown); color: var(--ivory); }

/* ヒーロー */
.lc-hero { padding: 72px 5% 88px; }
.lc-hero__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.lc-hero__text, .lc-hero__photo { flex: 1 1 440px; min-width: 0; }
.lc-hero__title { margin: 8px 0 24px; font-family: var(--serif); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.45; }
.lc-hero__lead { max-width: 460px; margin-bottom: 32px; color: var(--text2); }
.lc-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.lc-hero__photo { display: flex; justify-content: center; }
.lc-hero__circle { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--cream); }
.lc-hero__circle img { width: 100%; height: 100%; object-fit: cover; }

/* イベント・フェア */
.lc-event { padding: 0 5% 88px; }
.lc-event__card { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: stretch; border-radius: 20px; overflow: hidden; background: var(--cream); border: 1px solid var(--line); }
.lc-event__img { flex: 1 1 420px; min-width: 0; min-height: 280px; }
.lc-event__img img { width: 100%; height: 100%; object-fit: cover; }
.lc-event__body { flex: 1 1 420px; min-width: 0; padding: 48px 56px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.lc-event__card:not(.has-img) .lc-event__body { align-items: center; text-align: center; }
.lc-event__card:not(.has-img) .lc-event__text { max-width: 640px; }
.lc-event__eyebrow { display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--brown); color: var(--cream); font-family: var(--latin); font-style: italic; font-size: 17px; line-height: 1.6; }
.lc-event__title { margin-top: 14px; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.5; }
.lc-event__period { margin-top: 6px; font-weight: 700; color: var(--accent); }
.lc-event__text { margin-top: 16px; color: var(--text2); }
.lc-event__btn { margin-top: 28px; }

/* お知らせのスライドショー */
.lc-slider { max-width: 1120px; margin: 0 auto; }
.lc-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; outline: none; }
.lc-slides::-webkit-scrollbar { display: none; }
.lc-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: flex; }
.lc-slide .lc-event__card { flex: 1; max-width: none; margin: 0; }
.lc-slider__nav { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.lc-slider__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ivory); color: var(--brown); cursor: pointer; }
.lc-slider__btn:hover { background: var(--cream); }
.lc-slider__dots { display: flex; gap: 2px; }
.lc-dot { width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.lc-dot::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #CDB89C; transition: transform .2s ease, background .2s ease; }
.lc-dot[aria-current="true"]::before { background: var(--brown); transform: scale(1.3); }
.lc-ico-play { display: none; }
.lc-slider.is-paused .lc-ico-play { display: block; }
.lc-slider.is-paused .lc-ico-pause { display: none; }
.lc-slider__pause { margin-right: 12px; }

/* お知らせ（トップの小さな一覧） */
.lc-news-mini { max-width: 1120px; margin: 16px auto 0; border-top: 1px solid var(--line); }
.lc-news-mini li { border-bottom: 1px solid var(--line); }
.lc-news-mini a { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 8px; text-decoration: none; }
.lc-news-mini a:hover .lc-news-mini__title { text-decoration: underline; }
.lc-news-mini__date { min-width: 14em; font-size: 14px; font-weight: 700; color: var(--accent); }
.lc-news-more { max-width: 1120px; margin: 16px auto 0; text-align: right; font-size: 14px; }

/* お知らせ（1件のページ） */
.lc-news-single { padding: 64px 5% 96px; }
.lc-news-article { max-width: 760px; margin: 0 auto; }
.lc-news-article__title { margin-top: 14px; font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.5; }
.lc-news-article__meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.lc-news-article__meta .lc-event__period { margin: 0; font-size: 16px; }
.lc-news-article__img { margin-top: 32px; border-radius: 16px; overflow: hidden; }
.lc-news-article__img img { width: 100%; }
.lc-news-article__body { margin-top: 32px; }
.lc-news-article__body > * + * { margin-top: 1.2em; }
.lc-news-article__body h2, .lc-news-article__body h3 { font-family: var(--serif); line-height: 1.5; margin-top: 2em; }
.lc-news-article__nav { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px; }
.lc-news-ended { display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--cream2); color: var(--brown); font-size: 12px; font-weight: 700; }

/* お知らせ一覧 */
.lc-news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 24px; margin-top: 48px; }
.lc-news-item a { display: block; text-decoration: none; }
.lc-news-item__img { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--cream); }
.lc-news-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.lc-news-item a:hover img { transform: scale(1.03); }
.lc-news-item__meta { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent); }
.lc-news-item__title { margin-top: 2px; font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.lc-news-item.is-ended { opacity: .7; }
.lc-pager { margin-top: 48px; text-align: center; }
.lc-pager .nav-links { display: inline-flex; gap: 8px; }
.lc-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.lc-pager .current { background: var(--brown); color: var(--ivory); border-color: var(--brown); }

/* モンブラン */
.lc-signature { background: var(--brown); color: var(--cream); }
.lc-signature .lc-eyebrow { color: var(--gold); }
.lc-signature__lead { max-width: 680px; margin: 16px auto 56px; color: var(--line); }
.lc-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.lc-point { padding: 36px 32px; border-radius: 16px; background: var(--brown2); border: 1px solid var(--brown-line); }
.lc-point { overflow: hidden; }
.lc-point__img { margin: -36px -32px 24px; aspect-ratio: 4 / 3; background: var(--brown); }
.lc-point__img img { width: 100%; height: 100%; object-fit: cover; }
.lc-point__no { font-family: var(--latin); font-size: 40px; line-height: 1; color: var(--gold); }
.lc-point__title { margin: 12px 0 8px; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.lc-point__text { font-size: 15px; color: var(--line); }
.lc-signature__price { margin-top: 48px; font-family: var(--serif); font-size: 22px; }
.lc-signature__price small { font-size: 14px; color: var(--line); }

/* ケーキ */
.lc-cakes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 24px; margin-top: 48px; }
.lc-cake__img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--cream); }
.lc-cake:nth-child(even) .lc-cake__img { background: var(--cream2); }
.lc-cake__img img { width: 100%; height: 100%; object-fit: cover; }
.lc-cake__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--latin); font-style: italic; font-size: 22px; color: #9A7A62; }
.lc-cake__name { margin-top: 14px; font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.lc-cake__desc { margin-top: 2px; font-size: 14px; color: var(--muted); }
.lc-cake__price { margin-top: 4px; font-weight: 700; }
.lc-note { margin-top: 40px; font-size: 14px; color: var(--muted); text-align: center; }

/* ご予約 */
.lc-order { background: var(--cream); }
.lc-order__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.lc-order__text, .lc-order__box { flex: 1 1 420px; min-width: 0; }
.lc-order__lead { margin-top: 20px; color: var(--text2); }
.lc-order__box { padding: 36px 36px 32px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); }
.lc-order__list { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px 16px; font-size: 15px; }
.lc-order__list dt { font-weight: 700; color: var(--brown); }
.lc-order__box .lc-btn { display: flex; margin-top: 28px; }

/* 店舗情報 */
.lc-access { display: flex; flex-wrap: wrap; gap: 48px; }
.lc-access__info, .lc-map { flex: 1 1 420px; min-width: 0; }
.lc-info { display: grid; grid-template-columns: 6em minmax(0, 1fr); margin-top: 28px; }
.lc-info dt, .lc-info dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lc-info dt { font-weight: 700; color: var(--brown); }
.lc-map { min-height: 360px; border-radius: 16px; overflow: hidden; background: var(--cream); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 14px; color: #7A5A44; }
.lc-map--embed { padding: 0; }
.lc-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* フッター */
.lc-footer { padding: 48px 5% 40px; text-align: center; background: var(--brown); color: var(--cream); }
.lc-footer__name { font-family: var(--latin); font-style: italic; font-size: 34px; line-height: 1.2; }
.lc-footer__sns { margin-top: 12px; font-size: 14px; letter-spacing: .1em; }
.lc-footer__copy, .lc-footer__photo { margin-top: 12px; font-size: 13px; color: var(--line); }
.lc-footer__photo { margin-top: 4px; font-size: 12px; }
.lc-footer a { color: var(--line); }
.lc-footer a:hover { color: #FFFFFF; }

@media (max-width: 782px) {
  body.admin-bar .lc-header { top: 46px; }
}
@media (max-width: 760px) {
  .lc-header { padding: 14px 16px; gap: 0 20px; }
  .lc-header.is-scrolled { padding-top: 8px; padding-bottom: 8px; }
  .lc-logo__name { font-size: 26px; }
  .lc-header.is-scrolled .lc-logo__name { font-size: 20px; }
  .lc-header.is-scrolled .lc-logo__sub { display: none; }
  .lc-nav { gap: 0 18px; font-size: 14px; }
  .lc-nav a { padding: 6px 0; }
  .lc-section { padding: 72px 5%; }
  .lc-title { font-size: 25px; }
  .lc-cakes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .lc-hero { padding: 40px 5% 64px; }
  .lc-point, .lc-order__box { padding: 28px 24px; }
  .lc-point__img { margin: -28px -24px 20px; }
  .lc-event { padding-bottom: 64px; }
  .lc-event__body { padding: 32px 24px; }
}
@media (max-width: 600px) {
  body.admin-bar .lc-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lc-header, .lc-logo__name { transition: none; }
}

/* 予備のテンプレート */
.lc-page { max-width: 760px; margin: 0 auto; padding: 72px 5%; }
.lc-page h1 { font-family: var(--serif); font-size: 30px; margin-bottom: 24px; }
