/* =============================================
   M's chiffon — Stylesheet
   ============================================= */


/* =============================================
   CSS Variables
   ============================================= */
:root {
  --bg-main:   #F7EFE5;   /* 奇数セクション */
  --bg-sub:    #EFE3D6;   /* 偶数セクション */
  --footer:    #6B4C3B;
  --btn-main:  #D98B8B;
  --btn-sub:   #8C5A3C;
  --text-main: #5A3B2E;
  --text-sub:  #8A6B5A;
  --white:     #FFFFFF;

  /* フォント */
  --font-ruluko:  'Ruluko', cursive;                      /* ロゴ・@ハンドル */
  --font-round:   'M PLUS Rounded 1c', sans-serif;        /* セクションタイトル */
  --font-en:      'Montserrat', sans-serif;
  --font-ja:      'Noto Sans JP', sans-serif;

  /* レイアウト */
  --container-width: 780px;   /* 画面幅の約60%（1280px基準） */
  --header-height:   64px;

  /* 角丸 */
  --radius:    16px;
  --radius-lg: 24px;

  /* シャドウ */
  --shadow-sm: 0 2px 12px rgba(90, 59, 46, 0.08);
  --shadow:    0 6px 28px rgba(90, 59, 46, 0.13);

  /* トランジション */
  --t: 0.25s ease;
}


/* =============================================
   Reset
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: var(--font-ja);
  color: var(--text-main);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


/* =============================================
   Container（中央寄せ・幅制限）
   ============================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}


/* =============================================
   Header
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(247, 239, 229, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 107, 90, 0.10);
  transition: box-shadow var(--t);
}
.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(90, 59, 46, 0.11);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ロゴ: Rulukoフォント */
.header-logo {
  font-family: var(--font-ruluko);
  font-size: 1.15rem;
  color: var(--btn-sub);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  transition: opacity var(--t);
}
.header-logo:hover { opacity: 0.70; }

/* ナビ */
.header-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list   { display: flex; align-items: center; gap: 2.2rem; }
.nav-link {
  font-family: var(--font-ja);
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-sub);
  white-space: nowrap;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background-color: var(--btn-main);
  border-radius: 99px;
  transition: width var(--t);
}
.nav-link:hover { color: var(--text-main); }
.nav-link:hover::after { width: 100%; }

/* Instagramボタン */
.nav-instagram {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 1.1rem;
  background-color: var(--btn-main);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 99px;
  white-space: nowrap;
  transition: background-color var(--t), transform var(--t);
}
.nav-instagram:hover {
  background-color: #c97a7a;
  transform: translateY(-1px);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background-color: var(--text-sub);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   セクション共通
   ============================================= */
.section {
  position: relative;
  padding: 5.5rem 0 8rem;
}

/* ---- 背景色の交互切り替え（奇数/偶数） ---- */
/* ① hero    → bg-main */
/* ② about   → bg-sub  */
/* ③ menu    → bg-main */
/* ④ access  → bg-sub  */
/* ⑤ instagram → bg-main */
section:nth-of-type(odd)  { background-color: var(--bg-main); }
section:nth-of-type(even) { background-color: var(--bg-sub);  }


/* ---- セクションタイトル（全セクション共通: M PLUS Rounded 1c） ---- */
.section-title {
  font-family: var(--font-round);
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 500;
  color: var(--text-main);
  text-align: center;
  letter-spacing: 0.28em;
  margin-bottom: 2.8rem;
  line-height: 1.6;

  /* SVG花を両端に並べるためのflex */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Instagramセクションのタイトル（フォントを統一・サイズのみ調整） */
.section-title--script {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* ---- SVG花アイコン（アセット13） ---- */
.sec-flower {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.sec-flower svg {
  width: 18px;
  height: 22px;
}
/* 右側の花は左右反転 */
.sec-flower--flip svg {
  transform: scaleX(-1);
}


/* ---- 2カラムレイアウト ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* 画像 */
.rounded-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* 装飾イラスト（絶対配置） */
.illust {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
/* deco- PNG をコンテナ幅に収まるよう配置 */
.illust--bird {
  width: 180px;
  right: max(0.5rem, calc((100% - var(--container-width)) / 2 + 0.25rem));
  bottom: 0.5rem;
}
.illust--squirrel {
  width: 190px;
  left: max(0.5rem, calc((100% - var(--container-width)) / 2 + 0.25rem));
  bottom: 0;
}
.illust--hedgehog {
  width: 180px;
  right: max(0.5rem, calc((100% - var(--container-width)) / 2 + 0.25rem));
  bottom: 0.5rem;
}


/* =============================================
   ① Hero Section
   ============================================= */
.section--hero {
  min-height: calc(100svh - var(--header-height));
  padding: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

/* hero-wrap: アーチテキスト + 画像を縦積み */
.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* アーチテキスト（SVG） */
.hero-arch-text {
  width: 100%;
  max-width: 520px;
  margin-bottom: -0.5rem; /* 画像との隙間を詰める */
  overflow: visible;
}
.hero-arch-text text,
.hero-arch-text textPath {
  font-family: var(--font-round);
  font-size: 17px;
  font-weight: 500;
  fill: var(--text-sub);
  letter-spacing: 0.26em;
}

/* hero-main.png: ロゴ・ケーキ・フレームすべて含む画像 */
.hero-main-img {
  width: 100%;
  max-width: 560px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(90, 59, 46, 0.12));
}


/* =============================================
   ② お店について Section
   ============================================= */
.two-col__text {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.two-col__text p {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 2.1;
}


/* =============================================
   ③ メニュー Section
   ============================================= */
.menu-note {
  text-align: center;
  text-align: center;
  font-family: var(--font-round);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--btn-sub);
  letter-spacing: 0.14em;
}
.menu-note--cash {
  margin-top: 1.8rem;
  margin-bottom: 0;
  font-family: var(--font-round);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--btn-sub);
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.menu-lists { display: flex; flex-direction: column; gap: 1.6rem; }

.menu-category__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
}

.menu-items { display: flex; flex-direction: column; gap: 0.25rem; }
.menu-items li {
  font-size: 0.88rem;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}


/* 季節限定メニュー一言 */
.menu-seasonal {
  margin-top: .5rem;
  margin-bottom: 2rem;
  text-align: center;
  font-family: var(--font-round);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--btn-sub);
  letter-spacing: 0.14em;
  padding: 0.55rem 1.6rem;
  display: inline-block;
  width: 100%;
  max-width: var(--container-width);
}


/* =============================================
   ④ お店の場所 Section
   ============================================= */
.access-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.access-map iframe { display: block; }

.access-info { display: flex; flex-direction: column; gap: 2rem; }

.access-address { font-style: normal; line-height: 2; }
.access-zip     { font-size: 0.88rem; color: var(--text-sub); }
.access-street  { font-size: 0.98rem; color: var(--text-main); font-weight: 500; }
.access-parking { font-size: 0.83rem; color: var(--text-sub); }

.access-hours p { font-size: 0.93rem; color: var(--text-sub); line-height: 2; }
.access-days    { font-weight: 700 !important; color: var(--text-main) !important; }


/* =============================================
   ⑤ Instagram Section
   ============================================= */
.instagram-text { display: flex; flex-direction: column; gap: 1.8rem; }
.instagram-text p {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 2.1;
}

/* @ms_chiffon ハンドル: Rulukoフォント */
.instagram-handle {
  font-family: var(--font-ruluko);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--btn-sub);
  letter-spacing: 0.02em;
  padding-bottom: 0.2rem;
  display: inline-block;
  transition: color var(--t);
}
.instagram-handle:hover { color: var(--btn-main); }

.instagram-mockup { display: flex; justify-content: center; align-items: center; }
.instagram-mockup img {
  max-width: 210px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}


/* =============================================
   Footer
   ============================================= */

/* 固定幅タイルのベジェ波型（120px/周期・画面幅に関わらず常に同じサイズ） */
.footer-wave {
  height: 50px;
  background-color: var(--bg-main);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 50'%3E%3Cpath fill='%236B4C3B' d='M0,50 V28 C15,5 45,5 60,28 C75,51 105,51 120,28 V50 Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 50px;
  background-position: bottom left;
}

.footer { background-color: var(--footer); }

.footer-body { padding: 1.5rem 2rem 2rem; text-align: center; }

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}


/* =============================================
   Responsive — タブレット（〜 900px）
   ============================================= */
@media (max-width: 900px) {
  :root { --container-width: 90vw; }
  .nav-list  { gap: 1.5rem; }
  .nav-link  { font-size: 0.82rem; }
  .two-col   { gap: 2.2rem; }
  .hero-main-img  { max-width: 440px; }
  .hero-arch-text { max-width: 420px; }
}


/* =============================================
   Responsive — スマートフォン（〜 640px）
   ============================================= */
@media (max-width: 640px) {
  :root { --header-height: 56px; }

  .hamburger     { display: flex; margin-left: auto; }
  .header-nav    { display: none; }
  .nav-instagram { display: none; }

  .header-nav.is-open {
    display: block;
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    z-index: 99;
    background-color: rgba(247, 239, 229, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(139, 107, 90, 0.12);
    box-shadow: 0 10px 24px rgba(90, 59, 46, 0.10);
    padding: 1.4rem 2rem 2rem;
  }
  .header-nav.is-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .header-nav.is-open .nav-link {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(139, 107, 90, 0.10);
    width: 100%;
  }
  .header-nav.is-open .nav-link::after { display: none; }

  .section   { padding: 4rem 0 6.5rem; }
  .container { padding: 0 1.25rem; }

  .section--hero  { min-height: auto; padding: 3rem 0; }
  .hero-main-img  { max-width: 300px; }
  .hero-arch-text { max-width: 340px; }
  .hero-arch-text text,
  .hero-arch-text textPath { font-size: 22px; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }

  .two-col--menu .menu-photo     { order: -1; }
  .two-col--menu .menu-photo img { max-width: 260px; margin: 0 auto; }
  .two-col--access .access-info  { order: -1; }
  .two-col--instagram .instagram-mockup { order: -1; }
  .instagram-text { align-items: center; }
  .instagram-text p { text-align: center; }

  .illust--bird, .illust--hedgehog { width: 110px; right: 0.5rem; bottom: 0.3rem; }
  .illust--squirrel                { width: 120px; left:  0.5rem; bottom: 0.2rem; }

  .sec-flower svg { width: 14px; height: 17px; }
}


/* =============================================
   Responsive — 小型スマートフォン（〜 400px）
   ============================================= */
@media (max-width: 400px) {
  .section-title { font-size: 1.25rem; gap: 0.5rem; }
}
