/* ===================================================
   Feuille café — Header, Hero, Concept, Menu
   ===================================================
   構成:
      1. Custom Properties（デザイントークン）
      2. Base
      3. Header
      4. Mobile Nav Overlay
      5. Hero / メインビジュアル
      6. Scroll Fade-in
      7. Concept
      8. Menu
      9. Responsive — Tablet (≤ 1024px)
     10. Responsive — Mobile  (≤ 768px)
   =================================================== */


/* ---------------------------------------------------
   1. Custom Properties
--------------------------------------------------- */
:root {
  /* Colors */
  --color-bg:           #F7F4F0;
  --color-main:         #7A8C7E;
  --color-sub:          #C9B99A;
  --color-accent:       #A0614A;
  --color-text:         #3A3228;
  --color-text-light:   #9E9085;
  --color-border:       #E0D8CF;

  /* Typography */
  --font-serif-jp:   'Noto Serif JP', serif;
  --font-sans-jp:    'Noto Sans JP', sans-serif;
  --font-en-heading: 'Cormorant Garamond', serif;
  --font-en-body:    'DM Sans', sans-serif;

  /* Layout */
  --header-height:    72px;
  --header-height-sp: 60px;
  --container-max:    1200px;
  --gutter:           48px;
  --gutter-sp:        20px;

  /* Transitions */
  --ease:      0.3s ease;
  --ease-wipe: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ---------------------------------------------------
   2. Base
--------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ナビオープン時にbodyのスクロールを止める */
body.is-nav-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}


/* ---------------------------------------------------
   3. Header
--------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  /* スクロール前は透過 */
  transition:
    background-color var(--ease),
    box-shadow var(--ease);
}

/* スクロールで背景色が付く */
.header--scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Logo ---- */
.header__logo {
  font-family: var(--font-en-heading);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  white-space: nowrap;
  transition: opacity var(--ease);
}

.header__logo:hover {
  opacity: 0.6;
}

/* ---- Nav (PC) ---- */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-link {
  font-family: var(--font-en-body);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--ease);
}

/* 下線ホバーエフェクト */
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--ease);
}

.header__nav-link:hover {
  color: var(--color-accent);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* ---- Hamburger (SP 専用) ---- */
.header__hamburger {
  display: none;          /* PC では非表示 */
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.header__hamburger-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transition:
    transform var(--ease),
    opacity var(--ease);
  transform-origin: center;
}

/* ×（閉じる）状態 */
.header__hamburger--open .header__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger--open .header__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header__hamburger--open .header__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------------------------------------------------
   4. Mobile Nav Overlay
--------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--ease),
    visibility var(--ease);
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-nav__item + .mobile-nav__item {
  margin-top: 40px;
}

.mobile-nav__link {
  font-family: var(--font-en-body);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 6px;
  transition: color var(--ease);
}

.mobile-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--ease);
}

.mobile-nav__link:hover {
  color: var(--color-accent);
}

.mobile-nav__link:hover::after {
  width: 60%;
}


/* ---------------------------------------------------
   5. Hero / メインビジュアル
--------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ---- 背景画像 ---- */
.hero__image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* グラデーションオーバーレイ: 左が濃く、右に向かって薄くなる */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(247, 244, 240, 0.92) 0%,
    rgba(247, 244, 240, 0.65) 45%,
    rgba(247, 244, 240, 0.15) 100%
  );
}

/* ---- 装飾テキスト（背景に大きく） ---- */
.hero__deco-text {
  position: absolute;
  bottom: 6%;
  left: -0.03em;
  z-index: 1;

  font-family: var(--font-en-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(72px, 13vw, 190px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin: 0;

  /* 輪郭線だけの文字 */
  color: transparent;
  -webkit-text-stroke: 1px var(--color-sub);

  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

/* ---- コンテンツ ---- */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--header-height) + 20px) var(--gutter) 0;
}

.hero__text {
  max-width: 500px;
}

/* 小さいラベル */
.hero__sub-label {
  font-family: var(--font-en-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--color-text-light);
  margin: 0 0 18px;
}

/* メインキャッチコピー */
.hero__title {
  font-family: var(--font-serif-jp);
  font-weight: 300;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.75;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin: 0 0 28px;
}

/* サブコピー */
.hero__subtitle {
  font-family: var(--font-sans-jp);
  font-size: 15px;
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin: 0 0 52px;
}

/* ---- CTAボタン ---- */
.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  padding: 16px 36px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);

  font-family: var(--font-sans-jp);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;

  position: relative;
  overflow: hidden;

  /* テキスト色のトランジション */
  transition: color var(--ease-wipe);
}

/* ワイプ（左→右）ホバーアニメーション */
.hero__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-bg);
  transform: translateX(-101%);
  transition: transform var(--ease-wipe);
}

.hero__btn:hover {
  color: var(--color-accent);
}

.hero__btn:hover::before {
  transform: translateX(0);
}

/* z-index でテキストを擬似要素の上に乗せる */
.hero__btn-text,
.hero__btn-arrow {
  position: relative;
  z-index: 1;
}

.hero__btn-arrow {
  font-size: 16px;
  display: inline-block;
  transition: transform var(--ease);
}

.hero__btn:hover .hero__btn-arrow {
  transform: translateX(5px);
}

/* ---- スクロールインジケーター ---- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 44px;
  right: var(--gutter);
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll-text {
  font-family: var(--font-en-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.28em;
  color: var(--color-text-light);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--color-sub) 0%, transparent 100%);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ---------------------------------------------------
   6. Scroll Fade-in
--------------------------------------------------- */
.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease var(--delay, 0s),
    transform 0.75s ease var(--delay, 0s);
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* メニューカードは3列グリッド内でスタガー */
.menu__item:nth-child(3n+2) { --delay: 0.12s; }
.menu__item:nth-child(3n+3) { --delay: 0.24s; }


/* ---------------------------------------------------
   7. Concept
--------------------------------------------------- */
.concept {
  padding: 140px 0;
  background-color: var(--color-bg);
}

.concept__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Image column ---- */
.concept__figure {
  margin: 0;
  position: relative;
}

/* 画像の背後にずらして配置する装飾ボーダー */
.concept__figure::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid var(--color-sub);
  z-index: 0;
}

.concept__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* ---- Text column ---- */
.concept__label-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.concept__label-line {
  display: block;
  width: 36px;
  height: 1px;
  background-color: var(--color-sub);
  flex-shrink: 0;
}

.concept__en-label {
  font-family: var(--font-en-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.concept__title {
  font-family: var(--font-serif-jp);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin: 0 0 36px;
}

.concept__text {
  font-family: var(--font-sans-jp);
  font-size: 15px;
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.concept__text p {
  margin: 0 0 1.6em;
}

.concept__text p:last-child {
  margin-bottom: 0;
}

/* ---- Feature list ---- */
.concept__feature-list {
  margin: 48px 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.concept__feature-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.concept__feature-term {
  font-family: var(--font-en-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-main);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 120px;
  flex-shrink: 0;
}

.concept__feature-desc {
  font-family: var(--font-sans-jp);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin: 0;
}


/* ---------------------------------------------------
   8. Menu
--------------------------------------------------- */
.menu {
  padding: 140px 0;
  background-color: #EDE8E1;
}

.menu__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Section head ---- */
.menu__head {
  text-align: center;
  margin-bottom: 72px;
}

.menu__label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.menu__label-line {
  display: block;
  width: 48px;
  height: 1px;
  background-color: var(--color-sub);
  flex-shrink: 0;
}

.menu__en-label {
  font-family: var(--font-en-body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.menu__title {
  font-family: var(--font-serif-jp);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin: 0;
}

/* ---- Grid ---- */
.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- Card ---- */
.menu-card {
  background-color: var(--color-bg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--ease);
}

.menu-card:hover {
  box-shadow: 0 16px 48px rgba(58, 50, 40, 0.1);
}

.menu-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.menu-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-card:hover .menu-card__image {
  transform: scale(1.05);
}

/* カテゴリーラベル（画像左上） */
.menu-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-main);
  color: #fff;
  font-family: var(--font-en-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  padding: 5px 12px;
  line-height: 1;
}

.menu-card__body {
  padding: 22px 24px 28px;
}

.menu-card__name {
  font-family: var(--font-serif-jp);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin: 0 0 10px;
}

.menu-card__desc {
  font-family: var(--font-sans-jp);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin: 0 0 18px;
}

.menu-card__price {
  display: block;
  font-family: var(--font-en-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* ---- Note ---- */
.menu__note {
  margin: 52px 0 0;
  text-align: center;
  font-family: var(--font-sans-jp);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  line-height: 1.9;
}


/* ---------------------------------------------------
   9. Responsive — Tablet (≤ 1024px)
--------------------------------------------------- */
@media (max-width: 1024px) {
  .header__inner {
    padding: 0 32px;
  }

  .header__nav-list {
    gap: 28px;
  }

  .hero__content {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero__scroll-indicator {
    right: 32px;
  }

  /* Concept */
  .concept {
    padding: 100px 0;
  }

  .concept__inner {
    gap: 52px;
    padding: 0 32px;
  }

  .concept__figure::before {
    top: -14px;
    left: -14px;
    right: 14px;
    bottom: 14px;
  }

  /* Menu */
  .menu {
    padding: 100px 0;
  }

  .menu__inner {
    padding: 0 32px;
  }

  .menu__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* 2列になるのでstaggerを偶数・奇数ベースに変更 */
  .menu__item:nth-child(3n+2) { --delay: 0s; }
  .menu__item:nth-child(3n+3) { --delay: 0s; }
  .menu__item:nth-child(2n)   { --delay: 0.14s; }
}


/* ---------------------------------------------------
   7. Responsive — Mobile (≤ 768px)
--------------------------------------------------- */
@media (max-width: 768px) {

  /* Header */
  .header {
    height: var(--header-height-sp);
  }

  .header__inner {
    padding: 0 var(--gutter-sp);
    height: var(--header-height-sp);
  }

  .header__nav {
    display: none;         /* PC ナビを非表示 */
  }

  .header__hamburger {
    display: flex;         /* ハンバーガーを表示 */
  }

  /* Hero */
  .hero {
    align-items: flex-end;  /* コンテンツを下寄せ */
    padding-bottom: 80px;
  }

  /* SP はグラデーションを下から上向きに変更 */
  .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(247, 244, 240, 0.95) 0%,
      rgba(247, 244, 240, 0.55) 55%,
      rgba(247, 244, 240, 0.15) 100%
    );
  }

  .hero__deco-text {
    font-size: clamp(56px, 16vw, 96px);
    bottom: auto;
    top: 50%;
    transform: translateY(-55%);
    opacity: 0.28;
  }

  .hero__content {
    padding: 0 var(--gutter-sp);
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__sub-label {
    margin-bottom: 12px;
  }

  .hero__title {
    font-size: clamp(28px, 7.5vw, 40px);
    margin-bottom: 18px;
  }

  .hero__subtitle {
    font-size: 14px;
    margin-bottom: 38px;
  }

  .hero__btn {
    padding: 14px 28px;
    font-size: 13px;
  }

  .hero__scroll-indicator {
    right: var(--gutter-sp);
    bottom: 28px;
  }

  /* Concept */
  .concept {
    padding: 80px 0;
  }

  .concept__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 var(--gutter-sp);
  }

  /* SP は装飾ボーダーを非表示（画面外へのはみ出し防止） */
  .concept__figure::before {
    display: none;
  }

  .concept__image {
    aspect-ratio: 4 / 3;
  }

  .concept__title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 24px;
  }

  .concept__text {
    font-size: 14px;
  }

  .concept__feature-item {
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }

  .concept__feature-term {
    min-width: auto;
  }

  /* Menu */
  .menu {
    padding: 80px 0;
  }

  .menu__inner {
    padding: 0 var(--gutter-sp);
  }

  .menu__head {
    margin-bottom: 48px;
  }

  .menu__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* SP はstaggerなし */
  .menu__item:nth-child(n) { --delay: 0s; }

  .menu-card__body {
    padding: 18px 20px 24px;
  }

  .menu__note {
    margin-top: 36px;
    font-size: 11px;
  }
}
