@charset "UTF-8";
/* =============================================================
   麺屋 玄月 - JAPANESE MODERN
   設計方針: モバイルファースト（min-width でPCへ拡張）
   ブレイクポイント: 768px(tablet) / 1024px(pc)
   命名: l-(layout) / c-(component) / p-(project)
   ============================================================= */

/* -------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------- */
:root {
  /* 色 */
  --c-sumi:    #14110e;   /* 墨 */
  --c-ink:     #2c2723;   /* 濃墨（本文） */
  --c-gray:    #8b8378;   /* 利休鼠 */
  --c-kinari:  #f5f1e8;   /* 生成り（背景） */
  --c-washi:   #fbf9f4;   /* 和紙（カード） */
  --c-shu:     #a8332e;   /* 朱 */
  --c-kin:     #b39555;   /* 金 */
  --c-line:    rgba(20, 17, 14, 0.12);
  --c-line-lt: rgba(245, 241, 232, 0.18);

  /* フォント */
  --f-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-gothic: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  /* 余白・レイアウト */
  --container: 1120px;
  --gutter: 24px;
  --header-h: 64px;

  /* 動き */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 80px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 56px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-kinari);
  color: var(--c-ink);
  font-family: var(--f-gothic);
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  overflow-wrap: break-word;
  /* 和紙のような微細なテクスチャ */
  background-image:
    radial-gradient(rgba(20, 17, 14, 0.025) 1px, transparent 1px),
    radial-gradient(rgba(20, 17, 14, 0.02) 1px, transparent 1px);
  background-size: 6px 6px, 11px 11px;
  background-position: 0 0, 3px 4px;
}
body.is-locked { overflow: hidden; }

@media (min-width: 768px) { body { font-size: 16px; } }

h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

button {
  padding: 0; border: none; background: none;
  font: inherit; color: inherit; cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-kin);
  outline-offset: 3px;
}

/* -------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------- */
.l-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.p-section {
  padding-block: 72px;
  position: relative;
}
.p-section--tight { padding-block: 72px 0; }
.p-section--dark {
  background: var(--c-sumi);
  color: var(--c-kinari);
}

@media (min-width: 768px) {
  .p-section { padding-block: 112px; }
  .p-section--tight { padding-block: 112px 0; }
}
@media (min-width: 1024px) {
  .p-section { padding-block: 152px; }
  .p-section--tight { padding-block: 152px 0; }
}

/* -------------------------------------------------------------
   4. Components
   ------------------------------------------------------------- */

/* --- 見出し --- */
.c-heading { margin-bottom: 40px; }
.c-heading--center { text-align: center; }

.c-heading__en {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--c-kin);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.c-heading__en::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  max-width: 72px;
}
.c-heading--center .c-heading__en { justify-content: center; }
.c-heading--center .c-heading__en::before {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  max-width: 72px;
}

.c-heading__ja {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(1.5rem, 5.5vw, 2.25rem);
  line-height: 1.5;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) { .c-heading { margin-bottom: 56px; } }

/* --- 画像の枠（比率を固定して切り抜く） --- */
.c-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-washi);
}
.c-img--square { aspect-ratio: 1 / 1; }
.c-img--tall   { aspect-ratio: 3 / 4; }
.c-img--wide   { aspect-ratio: 16 / 10; }
.c-img--map    { aspect-ratio: 4 / 3; }

.c-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 写真の端に余計なものが写り込む場合の寄り */
.c-img--zoom img {
  transform: scale(1.2);
  transform-origin: 50% 70%;
}
.p-section--dark .c-img { background: #1e1a16; }

.c-figure { margin: 0; }

/* --- スクロールフェード --- */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-fade].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-fade] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* -------------------------------------------------------------
   5. Header / Nav
   ------------------------------------------------------------- */
.l-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--c-kinari);
  transition: color 0.4s var(--ease);
}
/* 背景（すりガラス）は擬似要素に分離する。
   .l-header 自身に backdrop-filter を掛けると、
   中の position:fixed なドロワーがヘッダー内に閉じ込められるため。 */
.l-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 249, 244, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--c-line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.l-header.is-scrolled { color: var(--c-ink); }
.l-header.is-scrolled::before { opacity: 1; }
/* ドロワーを開いている間はヘッダー背景を消す */
.l-header.is-nav-open::before { opacity: 0; }
.l-header.is-nav-open { color: var(--c-kinari); }

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

.l-header__logo {
  display: block;
  line-height: 1.2;
  position: relative;
  z-index: 120; /* ドロワーを開いてもロゴは見えるように */
}
.l-header__logo-main {
  display: block;
  font-family: var(--f-mincho);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.l-header__logo-sub {
  display: block;
  font-size: 9px;
  letter-spacing: 0.34em;
  opacity: 0.65;
  margin-top: 3px;
}

/* --- ハンバーガー --- */
.c-burger {
  position: relative;
  z-index: 120;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  display: grid;
  place-content: center;
  gap: 7px;
}
.c-burger__line {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.c-burger.is-open { color: var(--c-kinari); }
.c-burger.is-open .c-burger__line:nth-child(1) { transform: translateY(8px) rotate(21deg); }
.c-burger.is-open .c-burger__line:nth-child(2) { opacity: 0; }
.c-burger.is-open .c-burger__line:nth-child(3) { transform: translateY(-8px) rotate(-21deg); }

/* --- ナビ（SP: フルスクリーンドロワー） --- */
.l-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--c-sumi);
  color: var(--c-kinari);
  padding: calc(var(--header-h) + 32px) var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.l-nav.is-open { opacity: 1; visibility: visible; transform: none; }

.l-nav__item { border-bottom: 1px solid var(--c-line-lt); }
.l-nav__item:first-child { border-top: 1px solid var(--c-line-lt); }
.l-nav__item a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 4px;
}
.l-nav__ja {
  font-family: var(--f-mincho);
  font-size: 21px;
  letter-spacing: 0.16em;
}
.l-nav__en {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--c-kin);
}

.l-nav__foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line-lt);
}
.l-nav__tel {
  font-family: var(--f-mincho);
  font-size: 26px;
  letter-spacing: 0.08em;
}
.l-nav__hours { font-size: 12px; color: var(--c-gray); letter-spacing: 0.08em; }

/* --- ナビ（PC: 横並び） --- */
@media (min-width: 1024px) {
  .c-burger { display: none; }

  .l-nav {
    position: static;
    inset: auto;
    background: none;
    color: inherit;
    padding: 0;
    flex-direction: row;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
  }
  .l-nav__list { display: flex; align-items: center; gap: 36px; }
  .l-nav__item, .l-nav__item:first-child { border: none; }
  .l-nav__item a {
    display: block;
    padding: 6px 0;
    position: relative;
    text-align: center;
  }
  .l-nav__item a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--c-kin);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
  }
  .l-nav__item a:hover::after { transform: scaleX(1); transform-origin: left; }
  .l-nav__ja {
    display: block;
    font-family: var(--f-gothic);
    font-size: 13px;
    letter-spacing: 0.14em;
  }
  .l-nav__en { display: none; }
  .l-nav__foot { display: none; }
}

/* -------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------- */
.p-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--c-kinari);
  overflow: hidden;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #100d0a;
}
.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.p-hero__bg::after {
  /* 文字を読みやすくするための覆い */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(16,13,10,0.86) 0%, rgba(16,13,10,0.5) 55%, rgba(16,13,10,0.72) 100%);
}

@media (min-width: 768px) {
  .p-hero__bg img { object-position: center; }
}

.p-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--header-h) var(--gutter) 96px;
}

.p-hero__catch {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(2rem, 9.5vw, 3rem);
  line-height: 1.9;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.p-hero__catch-line { display: block; }

.p-hero__lead {
  font-size: 13px;
  line-height: 2.2;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 232, 0.82);
}

.p-hero__scroll {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.p-hero__scroll-text {
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(245, 241, 232, 0.7);
}
.p-hero__scroll-line {
  width: 1px;
  height: 64px;
  background: rgba(245, 241, 232, 0.3);
  position: relative;
  overflow: hidden;
}
.p-hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 40%;
  background: var(--c-kin);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(250%); }
  100% { transform: translateY(250%); }
}

/* 縦書きの見出し（タブレット以上） */
@media (min-width: 768px) {
  .p-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 120px;
  }
  .p-hero__catch {
    writing-mode: vertical-rl;
    font-size: clamp(2.25rem, 4.4vw, 3.5rem);
    line-height: 1.7;
    max-height: 62vh;
    margin-bottom: 0;
  }
  .p-hero__lead {
    writing-mode: vertical-rl;
    font-size: 14px;
    line-height: 2.4;
    margin-top: 8px;
  }
  .p-hero__lead br { display: none; }
}
/* -------------------------------------------------------------
   7. Concept
   ------------------------------------------------------------- */
.p-concept__body { display: grid; gap: 40px; }

.p-concept__copy {
  font-family: var(--f-mincho);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  line-height: 2;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.p-concept__desc { margin-bottom: 20px; color: #423b34; }
.p-concept__sign {
  margin-top: 32px;
  font-family: var(--f-mincho);
  letter-spacing: 0.18em;
  color: var(--c-gray);
}
.p-concept__visual { position: relative; }
.p-concept__visual::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--c-kin);
  opacity: 0.4;
  z-index: -1;
}

@media (min-width: 768px) {
  .p-concept__body {
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

/* -------------------------------------------------------------
   8. Menu
   ------------------------------------------------------------- */
.p-menu__list {
  display: grid;
  gap: 40px;
}
.p-menu__figure { margin: 0 0 20px; }

.p-menu__label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--c-kin);
  border: 1px solid currentColor;
  padding: 3px 10px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.p-menu__name {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.p-menu__name-en {
  font-family: var(--f-gothic);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--c-gray);
  text-transform: uppercase;
}
.p-menu__desc {
  font-size: 13px;
  line-height: 2;
  color: rgba(245, 241, 232, 0.66);
  margin: 12px 0 16px;
}
.p-menu__price {
  font-family: var(--f-mincho);
  font-size: 17px;
  letter-spacing: 0.08em;
  padding-top: 14px;
  border-top: 1px solid var(--c-line-lt);
}
.p-menu__note {
  margin-top: 48px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.5);
  text-align: center;
}

@media (min-width: 600px) {
  .p-menu__list { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}
@media (min-width: 1024px) {
  .p-menu__list { grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
  .p-menu__name { font-size: 19px; }
}

/* -------------------------------------------------------------
   9. Craft
   ------------------------------------------------------------- */
.p-craft__list { display: grid; gap: 56px; }
.p-craft__item { display: grid; gap: 24px; }
.p-craft__figure { margin: 0; }

.p-craft__num {
  font-family: var(--f-mincho);
  font-size: 44px;
  line-height: 1;
  color: var(--c-kin);
  opacity: 0.5;
  margin-bottom: 14px;
}
.p-craft__title {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 16px;
}
.p-craft__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 40px; height: 1px;
  background: var(--c-shu);
}
.p-craft__text { font-size: 14px; color: #423b34; }

@media (min-width: 768px) {
  .p-craft__list { gap: 88px; }
  .p-craft__item {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .p-craft__item:nth-child(even) .p-craft__figure { order: 2; }
  .p-craft__num { font-size: 56px; }
}
@media (min-width: 1024px) {
  .p-craft__item { grid-template-columns: 1.2fr 1fr; gap: 72px; }
}

/* -------------------------------------------------------------
   10. Gallery
   ------------------------------------------------------------- */
.p-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.p-gallery__item { position: relative; overflow: hidden; }
.p-gallery__item .c-img img { transition: transform 0.8s var(--ease); }
.p-gallery__item:hover .c-img img { transform: scale(1.06); }

@media (min-width: 768px) {
  .p-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .p-gallery__grid { grid-template-columns: repeat(6, 1fr); }
}

/* -------------------------------------------------------------
   11. Information
   ------------------------------------------------------------- */
.p-info__body { display: grid; gap: 48px; }

.p-info__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}
.p-info__row:first-child { border-top: 1px solid var(--c-line); }
.p-info__dt {
  font-family: var(--f-mincho);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--c-gray);
  line-height: 2.1;
}
.p-info__dd { font-size: 14px; line-height: 2.1; }
.p-info__dd a { border-bottom: 1px solid var(--c-line); }
.p-info__dd a:hover { color: var(--c-shu); }
.p-info__small { font-size: 12px; color: var(--c-gray); }

.p-info__access {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-gray);
}

@media (min-width: 768px) {
  .p-info__body { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .p-info__row { grid-template-columns: 112px 1fr; }
}

/* -------------------------------------------------------------
   12. Footer
   ------------------------------------------------------------- */
.l-footer {
  background: var(--c-sumi);
  color: rgba(245, 241, 232, 0.8);
  padding-block: 56px 32px;
}
.l-footer__inner { display: grid; gap: 32px; }

.l-footer__logo {
  font-family: var(--f-mincho);
  font-size: 22px;
  letter-spacing: 0.2em;
  color: var(--c-kinari);
  margin-bottom: 10px;
}
.l-footer__addr { font-size: 12px; color: var(--c-gray); line-height: 2; }

.l-footer__list { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.l-footer__list a { font-size: 13px; letter-spacing: 0.1em; }
.l-footer__list a:hover { color: var(--c-kin); }

.l-footer__sns { display: flex; gap: 24px; }
.l-footer__sns a {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-gray);
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.l-footer__sns a:hover { color: var(--c-kin); }

.l-footer__credit {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line-lt);
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgba(139, 131, 120, 0.85);
  text-align: center;
}
.l-footer__credit a { border-bottom: 1px solid rgba(139, 131, 120, 0.4); }
.l-footer__credit a:hover { color: var(--c-kin); }

.l-footer__copy {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--c-gray);
  text-align: center;
}

@media (min-width: 768px) {
  .l-footer { padding-block: 80px 32px; }
  .l-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 40px;
  }
  .l-footer__nav { grid-column: 2; grid-row: 1; }
  .l-footer__sns { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  .l-footer__list { justify-content: flex-end; }
}
