/* =============================================================
   株式会社AN  Webサイト  styles.css
   色・書体・余白はすべて :root の変数で管理しています。
   ============================================================= */

:root {
  /* Color — ブランドカラー
     メイン：ブラック / アクセント：ダスティピンク / 装飾：シャンパンゴールド
     ピンク・ゴールドは「細い線・ボタン・ホバー・セクション番号・装飾」のみに使用。
     大きな背景やグラデーションには使わない。 */
  --black:    #171417;   /* メイン（文字・暗部・ボタン） */
  --pink:     #C58D9E;   /* アクセント：ホバー、ボタン、細線 */
  --pink-deep:#9C6676;   /* ピンクの濃色版：明るい背景上のフォーカス枠など（3:1以上） */
  --gold:     #B89A65;   /* 装飾：セクション番号、英字の飾り、罫線 */

  --ivory:    #F6F3EF;   /* メイン背景 */
  --paper:    #FCFAF8;   /* サブ背景 */
  --greige:   #ECE6E2;   /* 帯の背景（ピンクではなく中間色） */
  --charcoal: var(--black);
  --taupe:    #B0A6A2;
  --line:     #E2DBD6;   /* 罫線 */
  --ink-2:    #4A4448;   /* 本文 */
  --ink-3:    #716A6D;   /* 補足（ivory上で 5:1） */
  --dark-2:   #201C20;   /* フッター */
  --on-dark:  #F0EBE8;
  --on-dark-2:#B9B0B1;
  --gold-line: rgba(184,154,101,.38);  /* 暗い背景上の金の細線 */

  /* 写真のルール（全ページ共通）
     比率は2種類だけ：縦長 4:5 ／ 横長 3:2（見出しの全幅写真は画面に合わせる）
     色味もすべて同じ補正をかけ、床や壁の色の違いを揃える */
  --ratio-tall: 4 / 5;
  --ratio-wide: 3 / 2;
  /* 写真の色調は画像ファイル側で調整済み。CSSでは追加補正しない */
  --photo-filter: none;
  --photo-tint: transparent;

  /* Type */
  --f-sans:  "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --f-serif: "Noto Serif JP", "Noto Serif CJK JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, serif;
  --f-en:    "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Layout */
  --gutter: clamp(20px, 6vw, 112px);
  --max: 1440px;
  --header-h: 84px;
  --sec-y: clamp(112px, 14vw, 216px);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3, dt, .collage-caption { word-break: auto-phrase; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--pink); color: var(--black); }
:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .flow :focus-visible, .contact :focus-visible, .site-footer :focus-visible, .float-cta:focus-visible { outline-color: var(--pink); }
.pc { display: inline; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 300; transform: translateY(-200%);
  background: var(--charcoal); color: #fff; padding: 10px 16px; font-size: 13px;
}
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.fine { margin-top: 56px; font-size: 12px; color: var(--ink-3); }
.fine--light { color: var(--on-dark-2); }

/* ---------- Text link（細い下線） ---------- */
.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 22px;
  padding: 0 0 12px; font-size: 13px; letter-spacing: .12em;
}
.link-line::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: .35;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
a:hover > .link-line::after, .link-line:hover::after { transform: scaleX(1); transform-origin: left; }
.link-light { color: #fff; }
.link-line + .link-line { margin-left: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 28px;
  padding: 18px 30px; font-size: 13px; letter-spacing: .14em; border: 1px solid currentColor;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .4s var(--ease-out); }
.btn:hover::after { width: 40px; }
.btn-dark { background: var(--black); border-color: var(--black); color: var(--ivory); }
.btn-dark:hover { background: var(--pink); border-color: var(--pink); color: var(--black); }
.btn-dark::after { background: var(--pink); }
.btn-dark:hover::after { background: var(--black); }
.btn-light { border-color: rgba(240,235,232,.55); color: var(--on-dark); }
.btn-light::after { background: var(--pink); }
.btn-light:hover { background: var(--pink); border-color: var(--pink); color: var(--black); }
.btn-light:hover::after { background: var(--black); }
.btn-lg { padding: 26px 40px; font-size: 14px; min-width: 340px; justify-content: space-between; }

/* =============================================================
   写真枠（.media）
   ============================================================= */
.media {
  position: relative; overflow: hidden; background-color: #CFC9BD;
  isolation: isolate;
}
.media[data-texture="twill"] {
  background-color: #C9C2B4;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.10) 0 2px, transparent 2px 7px), repeating-linear-gradient(-45deg, rgba(60,52,40,.06) 0 1px, transparent 1px 9px), linear-gradient(160deg, #D6D0C3, #B7AF9F);
}
.media[data-texture="linen"] {
  background-color: #D3CDC1;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.09) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(70,60,45,.07) 0 1px, transparent 1px 5px), linear-gradient(200deg, #DDD8CD, #BDB5A6);
}
.media[data-texture="stitch"] {
  background-color: #BDB6A8;
  background-image: repeating-linear-gradient(90deg, transparent 0 46%, rgba(255,255,255,.22) 46% 47%, transparent 47% 100%), repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 6px), linear-gradient(170deg, #CAC3B5, #A79F90);
  background-size: 120px 100%, auto, auto;
}
.media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
  filter: var(--photo-filter); transition: opacity .8s var(--ease), transform 1.4s var(--ease-out);
}
.media.is-missing > img { opacity: 0; }

/* =============================================================
   00. Header
   ============================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 3.6vw, 56px);
  color: #fff;
  transition: background-color .5s var(--ease), color .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.site-header.is-solid {
  --header-h: 68px;
  background: rgba(246,243,239,.92); color: var(--charcoal);
  box-shadow: 0 1px 0 rgba(23,20,23,.07);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.logo { display: flex; align-items: center; gap: 16px; }
.logo-mark {
  font-family: var(--f-en); font-weight: 500; font-size: 38px; line-height: 1;
  letter-spacing: -.02em; padding-right: 16px; border-right: 1px solid currentColor;
  border-right-color: var(--gold-line);
}
.logo-sub { font-family: var(--f-en); font-style: italic; font-size: 13px; line-height: 1.25; letter-spacing: .02em; opacity: .85; }
.gnav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
.gnav a { position: relative; font-size: 11px; letter-spacing: .2em; padding: 6px 0; }
.gnav a:not(.gnav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--pink);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.gnav a:not(.gnav-cta):hover::after, .gnav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.gnav-cta {
  padding: 11px 22px !important; border: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.site-header:not(.is-solid) .gnav-cta:hover { background: var(--pink); color: var(--black); border-color: var(--pink); }
.site-header.is-solid .gnav-cta:hover { background: var(--pink); color: var(--black); border-color: var(--pink); }
.menu-toggle { display: none; align-items: center; gap: 12px; height: 44px; padding: 0 2px; font-size: 11px; letter-spacing: .2em; }
.menu-toggle-lines { position: relative; width: 26px; height: 9px; }
.menu-toggle-lines i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-toggle-lines i:first-child { top: 0; }
.menu-toggle-lines i:last-child { top: 8px; }
.menu-open .menu-toggle-lines i:first-child { top: 4px; transform: rotate(18deg); }
.menu-open .menu-toggle-lines i:last-child { top: 4px; transform: rotate(-18deg); }

/* Drawer（スマホメニュー） */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--ivory); color: var(--charcoal);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 28px) 28px calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto; opacity: 0; transition: opacity .45s var(--ease);
}
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; }
.drawer-nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.drawer.is-open .drawer-nav a { opacity: 1; transform: none; }
.drawer.is-open .drawer-nav a:nth-child(2) { transition-delay: .04s; }
.drawer.is-open .drawer-nav a:nth-child(3) { transition-delay: .08s; }
.drawer.is-open .drawer-nav a:nth-child(4) { transition-delay: .12s; }
.drawer.is-open .drawer-nav a:nth-child(5) { transition-delay: .16s; }
.drawer-nav .en { font-family: var(--f-en); font-size: 34px; line-height: 1.1; letter-spacing: 0; }
.drawer-nav .ja { font-size: 12px; color: var(--ink-3); }
.drawer-foot { display: grid; gap: 14px; padding-top: 36px; }
.drawer-foot .btn { justify-content: space-between; }
.drawer-tel { font-family: var(--f-en); font-size: 24px; letter-spacing: .04em; }
.drawer-hours { font-size: 12px; color: var(--ink-3); margin-top: -10px; }
.menu-open .site-header { background: var(--ivory); color: var(--charcoal); box-shadow: none; }
.menu-open { overflow: hidden; }

/* =============================================================
   01. Hero
   ============================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1200px;
  overflow: hidden; color: #fff; background: #241F23;
}
.hero-media { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s var(--ease); background-color: #4A4740; }
.hero-slide.media[data-texture] { background-blend-mode: multiply; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide > img { transform: scale(1.08); transition: transform 9s linear, opacity .8s; filter: var(--photo-filter); }
.hero-slide.is-active > img { transform: scale(1); }
.hero-slide::before { color: rgba(255,255,255,.5); align-items: flex-start; justify-content: flex-start; text-align: left; padding: calc(var(--header-h) + 20px) clamp(20px, 3.6vw, 56px); font-size: 11px; }
.hero-slide::after { bottom: auto; top: calc(var(--header-h) + 16px); right: clamp(20px, 3.6vw, 56px); }
.hero-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23,20,23,.50) 0%, rgba(23,20,23,.12) 45%, rgba(23,20,23,.34) 100%),
    linear-gradient(180deg, rgba(23,20,23,.35) 0%, transparent 22%, transparent 70%, rgba(23,20,23,.45) 100%);
}
.hero-inner {
  position: relative; z-index: 3; height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding: calc(var(--header-h) + 40px) var(--gutter) 130px;
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 48px;
}
.hero-title {
  writing-mode: vertical-rl; -webkit-writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(36px, min(4.4vw, 6.2vh), 72px); line-height: 1.8; letter-spacing: .14em; white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
  margin-right: clamp(0px, 3vw, 60px);
  align-self: center;
}
.hero-col { display: block; }
.hero-col + .hero-col { padding-top: 1.4em; }
.hero-copy { max-width: 460px; align-self: flex-end; padding-bottom: 8px; }
.hero-en { font-family: var(--f-en); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.3; letter-spacing: .01em; margin-bottom: 28px; }
.hero-lead { font-size: clamp(13px, 1.05vw, 15px); line-height: 2.3; letter-spacing: .12em; margin-bottom: 44px; color: rgba(255,255,255,.88); }
.hero-foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding: 0 var(--gutter) 34px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; font-size: 11px; letter-spacing: .18em;
}
.hero-counter { display: flex; align-items: center; gap: 14px; font-family: var(--f-en); font-size: 14px; letter-spacing: .08em; }
.hero-progress { position: relative; width: 72px; height: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero-progress i { position: absolute; inset: 0; background: var(--pink); transform-origin: left; transform: scaleX(0); }
.hero-progress i.run { animation: heroProgress var(--hero-interval, 7s) linear forwards; }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--f-en); font-size: 14px; font-style: italic; letter-spacing: .06em;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 56px;
  background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)) no-repeat 0 0 / 1px 0, rgba(255,255,255,.28);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { background-size: 1px 0; background-position: 0 0; }
  50% { background-size: 1px 100%; background-position: 0 0; }
  100% { background-size: 1px 0; background-position: 0 100%; }
}
.hero-place { justify-self: end; font-family: var(--f-en); font-style: italic; font-size: 14px; letter-spacing: .06em; opacity: .85; }

/* ヒーロー初回表示の演出（1回だけ） */
.js .hero-title .hero-col { opacity: 0; transform: translateY(-14px); transition: opacity 1.6s var(--ease), transform 1.8s var(--ease-out); }
.js .hero-title .hero-col + .hero-col { transition-delay: .35s; }
.js .hero-copy > * { opacity: 0; transform: translateY(12px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease-out); }
.js .hero-copy > :nth-child(1) { transition-delay: .9s; }
.js .hero-copy > :nth-child(2) { transition-delay: 1.05s; }
.js .hero-copy > :nth-child(3) { transition-delay: 1.2s; }
.js .hero-foot { opacity: 0; transition: opacity 1.4s var(--ease) 1.5s; }
.js .hero-media { opacity: 0; transition: opacity 2s var(--ease); }
.is-loaded .hero-title .hero-col, .is-loaded .hero-copy > * { opacity: 1; transform: none; }
.is-loaded .hero-foot, .is-loaded .hero-media { opacity: 1; }

/* =============================================================
   スクロール表示（文字：Y16px / 650ms）
   ============================================================= */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* 写真：幕が上がるように表示 */
.js .media.clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); }
.js .media.clip > img { transform: scale(1.06); }
.js .media.clip.is-in { clip-path: inset(0 0 0 0); }
.js .media.clip.is-in > img { transform: scale(1); }

/* =============================================================
   Section heading
   ============================================================= */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.sec-title { display: flex; flex-direction: column; gap: 18px; font-weight: 400; }
.sec-title .en { font-family: var(--f-en); font-size: clamp(52px, 7.4vw, 116px); line-height: .92; letter-spacing: -.025em; }
.sec-title .ja { display: flex; align-items: center; gap: 16px; font-size: 13px; letter-spacing: .2em; color: var(--ink-3); padding-left: .2em; }
.sec-title .ja::before { content: ""; flex: none; width: 32px; height: 1px; background: var(--pink); }
.sec-desc { font-size: 14px; line-height: 2.2; color: var(--ink-2); justify-self: end; max-width: 30em; }
.sec-head--light .sec-title .ja { color: var(--on-dark-2); }
.sec-head--light .sec-desc { color: var(--on-dark-2); }

/* =============================================================
   02. Manifesto
   ============================================================= */
.manifesto { padding: var(--sec-y) 0 calc(var(--sec-y) * .8); }
.manifesto-inner { display: grid; justify-items: center; text-align: center; }
.concept {
  font-family: var(--f-en); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); color: var(--gold);
  letter-spacing: .02em; margin-bottom: 40px;
}
.manifesto-title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 52px); line-height: 1.85; letter-spacing: .14em; margin-bottom: 56px;
}
.manifesto-body { max-width: 34em; }
.manifesto-body p { font-size: 15px; line-height: 2.5; letter-spacing: .1em; color: var(--ink-2); }
.manifesto-body p + p { margin-top: 1.2em; }
.manifesto-body .link-line { margin-top: 56px; }

.collage {
  position: relative; max-width: calc(var(--max) + var(--gutter) * 2); margin: clamp(96px, 12vw, 180px) auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px);
}
.collage-a { grid-column: 1 / span 8; aspect-ratio: var(--ratio-wide); }
.collage { padding-bottom: clamp(80px, 10vw, 160px); }
.collage-b { grid-column: 9 / span 4; grid-row: 1; align-self: end; aspect-ratio: var(--ratio-tall); width: 82%; margin-bottom: calc(clamp(80px, 10vw, 160px) * -1); }
.collage-caption {
  grid-column: 9 / span 4; grid-row: 1; align-self: start; padding-top: 8px;
  font-family: var(--f-serif); font-size: clamp(14px, 1.15vw, 17px); line-height: 2.2; letter-spacing: .12em; color: var(--ink-2);
}

/* =============================================================
   03. Services
   ============================================================= */
.services { background: var(--paper); padding: var(--sec-y) 0; }
.service {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: center;
}
.service + .service { margin-top: clamp(112px, 13vw, 200px); }
.service-media { grid-column: 1 / span 6; aspect-ratio: var(--ratio-tall); }
.service-media > img { transition: transform 1.4s var(--ease-out), opacity .8s; }
.service:hover .service-media.is-in > img { transform: scale(1.02); }
.service-text { grid-column: 8 / span 5; }
.service--rev .service-media { grid-column: 7 / span 6; grid-row: 1; }
.service--rev .service-text { grid-column: 1 / span 5; grid-row: 1; }
.service-index { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; color: var(--ink-3); }
.service-index .num { font-family: var(--f-en); font-size: 64px; line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.service-index .en { font-family: var(--f-en); font-style: italic; font-size: 18px; letter-spacing: .02em; }
.service-title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.75; letter-spacing: .1em; }
.service-cat { margin-top: 18px; font-size: 13px; letter-spacing: .2em; color: var(--ink-3); }
.service-desc { margin-top: 32px; font-size: 14.5px; line-height: 2.25; color: var(--ink-2); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 44px; }
.service-tags li { font-size: 12px; letter-spacing: .1em; padding: 5px 13px; border: 1px solid var(--line); color: var(--ink-2); background: var(--ivory); }

/* =============================================================
   04. Flow（一本の糸が工程をつなぐ）
   ============================================================= */
.flow { background: var(--charcoal); color: var(--on-dark); padding: var(--sec-y) 0; }
.flow-track { position: relative; }
.flow-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.flow-thread { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(240,235,232,.16); pointer-events: none; }
.flow-thread i {
  position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--p, 0));
  background: repeating-linear-gradient(90deg, var(--gold) 0 7px, transparent 7px 12px);
}
.flow-step { position: relative; padding: 52px 28px 0 0; }
.flow-dot {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid rgba(240,235,232,.35); background: var(--charcoal);
  transition: border-color .6s var(--ease), background-color .6s var(--ease);
}
.flow-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--pink); transform: scale(0); transition: transform .6s var(--ease-out); }
.flow-step.is-on .flow-dot { border-color: var(--gold); }
.flow-step.is-on .flow-dot::after { transform: scale(1); }
.flow-num { display: block; font-family: var(--f-en); font-size: 15px; color: var(--gold); letter-spacing: .06em; margin-bottom: 18px; }
.flow-step h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .12em; line-height: 1.6; margin-bottom: 14px; }
.flow-step p { font-size: 13px; line-height: 2; color: var(--on-dark-2); max-width: 14em; }
.js .flow-step { opacity: .45; transition: opacity .8s var(--ease); }
.js .flow-step.is-on { opacity: 1; }
.flow .fine { margin-top: 80px; }

/* =============================================================
   05. Strength
   ============================================================= */
.strength { padding: var(--sec-y) 0; }
.strength-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.strength-lead { grid-column: 1 / span 5; align-self: start; position: sticky; top: 140px; }
.strength-title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3.1vw, 48px); line-height: 1.85; letter-spacing: .12em; }
.strength-en { margin-top: 32px; font-family: var(--f-en); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); color: var(--gold); }
.strength-list { grid-column: 7 / span 6; border-top: 1px solid var(--line); }
.strength-item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.strength-item dt { font-family: var(--f-serif); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.8; letter-spacing: .08em; }
.strength-item dd { font-size: 14px; line-height: 2.1; color: var(--ink-2); padding-top: 4px; }

/* =============================================================
   06. Projects
   ============================================================= */
.projects { background: var(--greige); padding: var(--sec-y) 0 calc(var(--sec-y) * 1.1); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: start; }
.project { display: block; }
.project--offset { margin-top: clamp(80px, 12vw, 200px); }
.project-media { aspect-ratio: var(--ratio-tall); }
.project:hover .project-media.is-in > img { transform: scale(1.02); }
.project-text { padding-top: 36px; max-width: 30em; }
.project-en { font-family: var(--f-en); font-style: italic; font-size: 18px; color: var(--ink-3); margin-bottom: 14px; }
.project h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.8; letter-spacing: .1em; margin-bottom: 18px; }
.project-text > p:not(.project-en) { font-size: 14px; line-height: 2.1; color: var(--ink-2); margin-bottom: 32px; }

/* =============================================================
   07. Company
   ============================================================= */
.company { padding: var(--sec-y) 0; }
.company-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.company-lead { grid-column: 1 / span 5; }
.company-media { margin-top: 64px; aspect-ratio: var(--ratio-wide); }
.company-body { grid-column: 7 / span 6; }
.company-table { border-top: 1px solid var(--line); }
.company-table > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 2; }
.company-table dt { color: var(--ink-3); letter-spacing: .12em; }
.company-table a { border-bottom: 1px solid var(--line); transition: border-color .3s; }
.company-table a:hover { border-color: var(--pink); }
.company-links { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px 40px; }
.company-links .link-line + .link-line { margin-left: 0; }

/* =============================================================
   08. Contact
   ============================================================= */
.contact { background: var(--charcoal); color: var(--on-dark); padding: var(--sec-y) 0 calc(var(--sec-y) * .85); position: relative; overflow: hidden; }
.contact-inner { position: relative; }
.contact-en {
  font-family: var(--f-en); font-style: italic; font-size: clamp(88px, 15vw, 240px); line-height: .9; letter-spacing: -.03em;
  color: rgba(184,154,101,.11); margin: 0 0 -0.32em -0.04em; user-select: none;
}
.contact-title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 4vw, 62px); line-height: 1.7; letter-spacing: .12em; }
.contact-lead { margin-top: 36px; font-size: 14px; line-height: 2.2; color: var(--on-dark-2); }
.contact-actions { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--gold-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.contact-tel { text-align: right; }
.tel-num { font-family: var(--f-en); font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: .03em; }
.contact-tel p { margin-top: 14px; font-size: 12px; letter-spacing: .12em; color: var(--on-dark-2); }
.contact-tel .fax { margin-left: 1.6em; }

/* =============================================================
   09. Footer
   ============================================================= */
.site-footer { background: var(--dark-2); color: var(--on-dark-2); padding: 80px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid rgba(184,154,101,.22); }
.footer-brand { display: flex; gap: 28px; align-items: flex-start; }
.footer-brand .logo-mark { color: var(--on-dark); font-size: 44px; }
.footer-brand p { line-height: 2.1; letter-spacing: .08em; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 56px; align-content: start; }
.footer-nav a { letter-spacing: .1em; transition: color .3s; }
.footer-nav a:hover { color: var(--pink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.footer-bottom small { font-size: 11px; letter-spacing: .14em; }
.to-top { font-family: var(--f-en); font-style: italic; font-size: 14px; letter-spacing: .04em; }

/* Float CTA（スマホ） */
.float-cta {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between;
  padding: 16px 22px; background: rgba(23,20,23,.94); color: var(--on-dark); font-size: 13px; letter-spacing: .14em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(140%); transition: transform .6s var(--ease-out);
}
.float-cta::after { content: ""; width: 24px; height: 1px; background: var(--pink); }
.float-cta.is-shown { transform: none; }


/* =============================================================
   下層ページ共通
   ============================================================= */
/* 明るい見出しのページ（写真なし）はヘッダーを最初から濃色文字に */
.page-light .site-header { color: var(--charcoal); }
.page-light .site-header:not(.is-solid) .gnav-cta:hover { background: var(--pink); color: var(--black); border-color: var(--pink); }

.gnav a[aria-current="page"]::after { transform: scaleX(1); }

/* Page hero */
.page-hero {
  position: relative; min-height: 560px; height: 76vh; height: 76svh; max-height: 860px;
  overflow: hidden; color: #fff; background: #241F23; display: flex; align-items: flex-end;
}
.page-hero .media { position: absolute; inset: 0; background-color: #4A4740; background-blend-mode: multiply; }
.page-hero .media > img { filter: var(--photo-filter); transform: scale(1.06); transition: transform 3.2s var(--ease-out), opacity .8s; }
.is-loaded .page-hero .media > img { transform: scale(1); }
.page-hero .media::before { color: rgba(255,255,255,.5); align-items: flex-start; justify-content: flex-end; text-align: right; padding: calc(var(--header-h) + 20px) clamp(20px, 3.6vw, 56px); font-size: 11px; }
.page-hero .media::after { bottom: auto; top: calc(var(--header-h) + 16px); right: clamp(20px, 3.6vw, 56px); }
.page-hero .hero-shade { background: linear-gradient(180deg, rgba(23,20,23,.30) 0%, transparent 30%, rgba(23,20,23,.58) 100%), linear-gradient(90deg, rgba(23,20,23,.40), transparent 70%); }
.page-hero-inner { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero-en { display: block; font-family: var(--f-en); font-weight: 400; font-size: clamp(56px, 9vw, 148px); line-height: .9; letter-spacing: -.03em; }
.page-hero h1 { margin-top: 28px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: .2em; }
.page-hero-lead { margin-top: 20px; max-width: 34em; font-size: 14px; line-height: 2.2; color: rgba(255,255,255,.85); }
.js .page-hero-inner > * { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease-out); }
.js .page-hero-inner > :nth-child(2) { transition-delay: .2s; }
.js .page-hero-inner > :nth-child(3) { transition-delay: .35s; }
.is-loaded .page-hero-inner > * { opacity: 1; transform: none; }

.page-hero--plain { height: auto; min-height: 0; max-height: none; background: var(--ivory); color: var(--charcoal); padding-top: calc(var(--header-h) + clamp(96px, 12vw, 180px)); }
.page-hero--plain .page-hero-lead { color: var(--ink-2); }

/* パンくず */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 11px; letter-spacing: .12em; color: var(--ink-3); padding-top: 28px; }
.crumbs li + li::before { content: "/"; margin: 0 12px; opacity: .6; }
.crumbs a { border-bottom: 1px solid transparent; transition: border-color .3s; }
.crumbs a:hover { border-color: var(--pink); }

/* 導入文 */
.intro-block { padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 10vw, 150px); }
.intro-block-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); }
.intro-block h2 { grid-column: 1 / span 6; font-family: var(--f-serif); font-weight: 400; font-size: clamp(26px, 2.9vw, 44px); line-height: 1.85; letter-spacing: .12em; }
.intro-block-body { grid-column: 8 / span 5; padding-top: 12px; }
.intro-block-body p { font-size: 15px; line-height: 2.4; color: var(--ink-2); letter-spacing: .06em; }
.intro-block-body p + p { margin-top: 1.2em; }

/* 目次（ページ内リンク） */
.toc { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc a { flex: 1 1 0; min-width: 160px; display: flex; align-items: baseline; gap: 14px; padding: 22px 24px 22px 0; font-size: 13px; letter-spacing: .1em; transition: color .3s; }
.toc a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.toc a span { font-family: var(--f-en); font-size: 15px; color: var(--gold); }
.toc a:hover { color: var(--pink-deep); }

/* 下層のサービス詳細（.service を再利用） */
.svc-page { background: var(--paper); padding: clamp(96px, 11vw, 170px) 0; }
.svc-page .service { scroll-margin-top: 100px; }
.service-points { margin: 28px 0 0; border-top: 1px solid var(--line); }
.service-points li { position: relative; padding: 14px 0 14px 22px; font-size: 14px; line-height: 1.9; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.service-points li::before { content: ""; position: absolute; left: 2px; top: calc(14px + .95em); width: 9px; height: 1px; background: var(--pink); }

/* 補助サービス（2列テキスト） */
.subsvc { padding: clamp(96px, 11vw, 170px) 0; }
.subsvc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 96px); border-top: 1px solid var(--line); }
.subsvc-item { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 20px; padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.subsvc-item .num { font-family: var(--f-en); font-size: 34px; line-height: 1; color: var(--gold); }
.subsvc-item h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: .1em; line-height: 1.6; }
.subsvc-item .en { display: block; margin-top: 6px; font-family: var(--f-en); font-style: italic; font-size: 16px; color: var(--ink-3); letter-spacing: .02em; }
.subsvc-item p { margin-top: 18px; font-size: 14px; line-height: 2.1; color: var(--ink-2); }

/* ご相談例 */
.consult { background: var(--greige); padding: clamp(96px, 11vw, 170px) 0; }
.consult-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.consult-item { background: var(--greige); padding: clamp(28px, 3vw, 44px); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.consult-item q { font-family: var(--f-serif); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.9; letter-spacing: .08em; quotes: "「" "」"; }
.consult-item p { font-size: 13px; line-height: 2; color: var(--ink-2); }
.consult-item p a { border-bottom: 1px solid var(--pink); }

/* 2つの価値（子ども服など） */
.values { padding: 0 0 clamp(96px, 11vw, 170px); }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); }
.value-media { aspect-ratio: var(--ratio-tall); }
.value-text { padding-top: 32px; }
.value-text .en { font-family: var(--f-en); font-style: italic; font-size: 18px; color: var(--ink-3); }
.value-text h3 { margin-top: 10px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: .1em; line-height: 1.8; }
.value-text p { margin-top: 16px; font-size: 14px; line-height: 2.1; color: var(--ink-2); max-width: 30em; }
.values-grid > :nth-child(2) { margin-top: clamp(80px, 10vw, 160px); }

/* ギャラリー */
.gallery { padding: 0 0 clamp(96px, 11vw, 170px); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.gallery-grid .media { aspect-ratio: var(--ratio-tall); }
.gallery-grid .g1, .gallery-grid .g2 { grid-column: span 6; aspect-ratio: var(--ratio-wide); }
.gallery-grid .g3, .gallery-grid .g4, .gallery-grid .g5 { grid-column: span 4; aspect-ratio: var(--ratio-tall); }
.gallery-note { margin-top: 28px; font-size: 12px; color: var(--ink-3); }

/* お知らせ枠（採用など） */
.notice { padding: clamp(64px, 8vw, 120px) 0 clamp(120px, 14vw, 200px); }
.notice-box { max-width: 760px; border-top: 1px solid var(--charcoal); border-bottom: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; }
.notice-box h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: .1em; line-height: 1.8; }
.notice-box p { margin-top: 24px; font-size: 14.5px; line-height: 2.2; color: var(--ink-2); }
.notice-box .link-line { margin-top: 40px; }

/* 会社概要ページ */
.about-company { padding: clamp(96px, 11vw, 170px) 0; }
.access { background: var(--paper); padding: clamp(96px, 11vw, 170px) 0; }
.access-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.access-map { grid-column: 1 / span 7; aspect-ratio: var(--ratio-wide); }
.access-text { grid-column: 9 / span 4; }
.access-text h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: .1em; line-height: 1.8; }
.access-text p { margin-top: 18px; font-size: 14px; line-height: 2.1; color: var(--ink-2); }
.access-text .link-line { margin-top: 36px; }

/* お問い合わせ */
.form-sec { padding: clamp(96px, 11vw, 170px) 0; scroll-margin-top: 40px; }

/* 下層用：お問い合わせ帯（小さめ） */
.contact--band { padding: clamp(96px, 11vw, 160px) 0; }
.contact--band .contact-title { font-size: clamp(26px, 3.2vw, 48px); }

/* =============================================================
   子ども服：大切にしていること（文字のみ）
   ============================================================= */
.values--text .values-grid > :nth-child(2) { margin-top: 0; }
.values--text .value-text { padding: 36px 0 0; border-top: 1px solid var(--line); position: relative; }
.values--text .value-text::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 1px; background: var(--pink); }

/* =============================================================
   商品ギャラリー（写真は切り抜かず、縦横比そのまま）
   ============================================================= */
.products { padding: 0 0 clamp(96px, 11vw, 170px); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(20px, 2.6vw, 44px); }
.js .product.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.product-open { display: block; width: 100%; text-align: left; color: inherit; }
.product-frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: var(--ratio-tall); padding: 9%; background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .5s var(--ease);
}
.product-frame::after { /* 内側の細い金線（ホバーで現れる額縁） */
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-line);
  opacity: 0; transition: opacity .6s var(--ease), inset .6s var(--ease-out); pointer-events: none;
}
.product-frame img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: contain; /* 縦横比を保持（写真の加工・切り抜きなし） */
  box-shadow: 0 1px 0 rgba(23,20,23,.04), 0 14px 30px -18px rgba(23,20,23,.35);
  transition: transform 1.2s var(--ease-out);
}
.product-open:hover .product-frame, .product-open:focus-visible .product-frame { border-color: var(--pink); }
.product-open:hover .product-frame::after, .product-open:focus-visible .product-frame::after { opacity: 1; inset: 14px; }
.product-open:hover .product-frame img { transform: scale(1.02); }
.product-open:focus-visible { outline: none; }
.product-open:focus-visible .product-frame { outline: 2px solid var(--pink-deep); outline-offset: 4px; }
.product-meta { display: flex; align-items: baseline; gap: 14px; padding-top: 20px; }
.product-num { font-family: var(--f-en); font-size: 16px; color: var(--gold); letter-spacing: .04em; }
.product-name { flex: 1; font-family: var(--f-serif); font-size: clamp(15px, 1.25vw, 18px); letter-spacing: .1em; line-height: 1.7; }
.product-zoom { position: relative; font-size: 11px; letter-spacing: .16em; color: var(--ink-3); padding-bottom: 4px; }
.product-zoom::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.product-open:hover .product-zoom::after, .product-open:focus-visible .product-zoom::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   拡大表示（ライトボックス）
   ============================================================= */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--black); color: var(--on-dark);
  opacity: 0; transition: opacity .45s var(--ease);
}
.lightbox[open] { display: block; }
.lightbox.is-open { opacity: 1; }
.lightbox::backdrop { background: var(--black); }
.lb-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; padding: 80px 96px 96px; }
.lb-figure { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.lb-figure img {
  display: block; width: auto; height: auto; max-width: min(100%, 1100px); max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px);
  object-fit: contain; background: var(--paper);
  opacity: 0; transform: scale(.985); transition: opacity .5s var(--ease), transform .7s var(--ease-out);
}
.lb-figure img.is-ready { opacity: 1; transform: none; }
.lb-caption { display: flex; align-items: baseline; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--gold-line); min-width: min(100%, 420px); }
.lb-num { font-family: var(--f-en); font-size: 17px; color: var(--gold); }
.lb-name { flex: 1; font-family: var(--f-serif); font-size: clamp(16px, 1.5vw, 20px); letter-spacing: .1em; }
.lb-count { font-family: var(--f-en); font-size: 14px; color: var(--on-dark-2); letter-spacing: .06em; }
.lb-btn {
  position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -40px;
  border: 1px solid rgba(240,235,232,.25); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.lb-btn span { width: 12px; height: 12px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.lb-prev { left: 28px; } .lb-prev span { transform: translateX(2px) rotate(-45deg); }
.lb-next { right: 28px; } .lb-next span { transform: translateX(-2px) rotate(135deg); }
.lb-btn:hover { border-color: var(--pink); color: var(--pink); }
.lb-close {
  position: absolute; top: 22px; right: 28px; display: flex; align-items: center; gap: 14px; height: 44px;
  font-size: 11px; letter-spacing: .2em; transition: color .3s;
}
.lb-close span { position: relative; width: 22px; height: 22px; }
.lb-close span::before, .lb-close span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.lb-close span::after { transform: rotate(-45deg); }
.lb-close:hover { color: var(--pink); }
.lightbox :focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
html.lb-lock { overflow: hidden; }


/* =============================================================
   現場写真の帯（事業内容）／写真帯（採用）
   ============================================================= */
.floor { padding: clamp(96px, 11vw, 170px) 0; }
.floor-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 32px); align-items: end; }
.floor-item { grid-column: span 4; }
.floor-media { aspect-ratio: var(--ratio-tall); }
.floor-item figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.floor-item figcaption::before { content: ""; width: 20px; height: 1px; background: var(--gold); }
.photo-band { padding: 0 0 clamp(80px, 10vw, 140px); }
.photo-band-media { width: 100%; max-width: 760px; aspect-ratio: var(--ratio-wide); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1080px) {
  .gnav { gap: 22px; }
  .strength-lead { grid-column: 1 / span 12; position: static; margin-bottom: 64px; }
  .strength-list { grid-column: 1 / span 12; }
  .company-lead, .company-body { grid-column: 1 / span 12; }
  .company-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
  .company-media { margin-top: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header.is-solid { --header-h: 60px; }
  .pc { display: none; }
  .gnav { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo-mark { font-size: 32px; padding-right: 12px; }
  .logo { gap: 12px; }
  .logo-sub { font-size: 11px; }

  .hero { min-height: 600px; max-height: none; }
  .hero-inner { flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 32px; padding: calc(var(--header-h) + 36px) 24px 120px; }
  .hero-title { font-size: clamp(30px, min(8.6vw, 4.6svh), 48px); letter-spacing: .14em; margin-right: 0; align-self: flex-end; }
  .hero-col + .hero-col { padding-top: 1.2em; }
  .hero-copy { align-self: stretch; max-width: none; }
  .hero-en { font-size: 20px; margin-bottom: 16px; }
  .hero-lead { font-size: 13px; line-height: 2.1; letter-spacing: .08em; margin-bottom: 28px; }
  .hero-foot { padding: 0 24px 24px; grid-template-columns: 1fr auto; }
  .hero-scroll { display: none; }
  .hero-place { font-size: 12px; }
  .hero-slide::after { top: calc(var(--header-h) + 10px); right: 16px; }

  .sec-head { grid-template-columns: 1fr; gap: 28px; }
  .sec-desc { justify-self: start; }
  .sec-title .ja { font-size: 12px; }

  .manifesto-inner { text-align: left; justify-items: start; }
  .manifesto-title { font-size: clamp(22px, 6.6vw, 34px); letter-spacing: .08em; margin-bottom: 36px; }
  .manifesto-body p { font-size: 14px; line-height: 2.3; letter-spacing: .06em; }
  .manifesto-body .link-line { margin-top: 40px; }
  .collage { grid-template-columns: repeat(6, 1fr); row-gap: 0; }
  .collage-a { grid-column: 1 / -1; margin-right: calc(var(--gutter) * -1); aspect-ratio: var(--ratio-wide); }
  .collage { padding-bottom: 0; }
  .collage-b { grid-column: 1 / span 3; grid-row: 2; align-self: start; width: auto; margin: -48px 0 0; aspect-ratio: var(--ratio-tall); z-index: 2; box-shadow: 0 0 0 6px var(--ivory); }
  .collage-caption { grid-column: 4 / span 3; grid-row: 2; padding: 32px 0 0 4px; font-size: 13px; line-height: 2.1; letter-spacing: .06em; }

  .service, .service--rev { grid-template-columns: 1fr; }
  .service-media, .service--rev .service-media { grid-column: 1; grid-row: 1; margin: 0 calc(var(--gutter) * -1); aspect-ratio: var(--ratio-tall); }
  .service--rev .service-media { margin-left: 0; margin-right: calc(var(--gutter) * -1); }
  .service:not(.service--rev) .service-media { margin-right: 0; }
  .service-text, .service--rev .service-text { grid-column: 1; grid-row: 2; padding-top: 40px; }
  .service-index { margin-bottom: 24px; }
  .service-index .num { font-size: 52px; }
  .service-desc { margin-top: 24px; font-size: 14px; }
  .service-tags { margin: 24px 0 36px; }

  .flow-list { grid-template-columns: 1fr; }
  .flow-thread { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .flow-thread i { transform-origin: center top; transform: scaleY(var(--p, 0)); background: repeating-linear-gradient(180deg, var(--gold) 0 7px, transparent 7px 12px); }
  .flow-step:last-child p { padding-bottom: 0; }
  .flow-step { padding: 0 0 48px 52px; }
  .flow-step:last-child { padding-bottom: 0; }
  .flow-num { margin-bottom: 8px; }
  .flow-step h3 { margin-bottom: 6px; }
  .flow-step p { max-width: none; }

  .strength-item { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .strength-lead { margin-bottom: 48px; }

  .projects-grid { grid-template-columns: 1fr; gap: 80px; }
  .project--offset { margin-top: 0; }
  .project-media { aspect-ratio: var(--ratio-tall); }
  .project--offset .project-media { margin-left: 15%; }

  .company-lead { grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
  .company-table > div { grid-template-columns: 1fr; gap: 2px; padding: 20px 0; }
  .company-table dt { font-size: 12px; }

  .contact-en { font-size: clamp(64px, 21vw, 96px); white-space: nowrap; margin-bottom: -0.28em; }
  .contact-title { font-size: clamp(26px, 7.4vw, 40px); letter-spacing: .08em; }
  .contact-lead { font-size: 13px; }
  .contact-actions { margin-top: 48px; padding-top: 40px; flex-direction: column; align-items: stretch; gap: 32px; }
  .btn-lg { min-width: 0; width: 100%; padding: 22px 24px; }
  .contact-tel { text-align: left; }
  .contact-tel .fax { display: block; margin: 4px 0 0; }

  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer-brand { flex-direction: column; gap: 18px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 12px 24px; }

  .float-cta { display: flex; }
}

@media (max-width: 400px) {
  .logo-sub { display: none; }
  .logo-mark { border-right: 0; padding-right: 0; }
}



/* 下層ページのレスポンシブ */
@media (max-width: 1080px) {
  .access-map { grid-column: 1 / span 12; }
  .access-text { grid-column: 1 / span 12; margin-top: 48px; }
  .consult-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .page-hero { min-height: 480px; height: 68svh; }
  .page-hero-lead { font-size: 13px; }
  .page-hero--plain { height: auto; min-height: 0; padding-top: calc(var(--header-h) + 80px); }
  .intro-block h2, .intro-block-body { grid-column: 1 / -1; }
  .intro-block-body { padding-top: 32px; }
  .intro-block-body p { font-size: 14px; line-height: 2.2; }
  .toc { flex-direction: column; border-bottom: 0; }
  .toc a, .toc a + a { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .subsvc-grid { grid-template-columns: 1fr; }
  .subsvc-item { grid-template-columns: 3em minmax(0, 1fr); padding: 32px 0; }
  .subsvc-item .num { font-size: 26px; }
  .consult-grid { grid-template-columns: 1fr; }
  .consult-item { min-height: 0; }
  .values-grid { grid-template-columns: 1fr; gap: 64px; }
  .values-grid > :nth-child(2) { margin-top: 0; }
  .values-grid > :nth-child(2) .value-media { margin-left: 15%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .g1 { grid-column: span 2; aspect-ratio: var(--ratio-wide); }
  .gallery-grid .g2, .gallery-grid .g3, .gallery-grid .g4, .gallery-grid .g5 { grid-column: span 1; aspect-ratio: var(--ratio-tall); }
}


/* 商品ギャラリー・拡大表示のレスポンシブ */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .js .product.reveal { transition-delay: calc(var(--i, 0) * 0ms); }
}
@media (max-width: 860px) {
  .values--text .values-grid { gap: 48px; }
  .product-grid { gap: 40px 14px; }
  .product-frame { padding: 7%; }
  .product-frame::after { display: none; }
  .product-meta { flex-wrap: wrap; gap: 4px 10px; padding-top: 14px; }
  .product-name { flex-basis: 100%; order: 2; font-size: 14px; letter-spacing: .06em; }
  .product-zoom { display: none; }
  .lb-inner { padding: 72px 16px 120px; }
  .lb-figure img { max-height: calc(100dvh - 240px); }
  .lb-btn { top: auto; bottom: 28px; margin-top: 0; width: 52px; height: 52px; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-close { top: 12px; right: 16px; }
  .lb-caption { min-width: 0; width: 100%; }
}


@media (max-width: 860px) {
  .floor-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .floor-item:nth-child(1) { grid-column: 1 / -1; }
  .floor-item:nth-child(1) .floor-media { aspect-ratio: var(--ratio-wide); }
  .floor-item:nth-child(2), .floor-item:nth-child(3) { grid-column: span 1; }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .page-hero-inner > *, .js .hero-copy > *, .js .hero-title .hero-col, .js .hero-foot, .js .hero-media, .js .flow-step { opacity: 1 !important; transform: none !important; }
  .js .media.clip { clip-path: none !important; }
  .media > img, .hero-slide > img { transform: none !important; }
}

/* 写真の色味を揃える薄いトーン */
.media:not(.is-missing)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--photo-tint); mix-blend-mode: multiply;
}

/* スマホでは写真ごとのトリミング位置（--pos-sp）を優先 */
@media (max-width: 860px) {
  .media > img { object-position: var(--pos-sp, var(--pos, 50% 50%)); }
}

/* サービス詳細の補助カット */
.service-inset { width: min(100%, 360px); max-width: 376px; /* 元画像の幅を超えて拡大しない */ aspect-ratio: var(--ratio-wide); margin-bottom: 40px; }
.img-note {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 5px 10px; font-size: 10px; letter-spacing: .14em; line-height: 1.4;
  color: var(--on-dark); background: rgba(23,20,23,.62);
}
@media (max-width: 860px) {
  .service-inset { width: 62%; margin-bottom: 28px; }
}

/* ご依頼の流れ：工程ごとの写真 */
.flow-thumb { width: 100%; max-width: 376px; aspect-ratio: var(--ratio-wide); margin-bottom: 24px; }
.flow-step:not(.is-on) .flow-thumb > img { filter: brightness(.8); }
@media (max-width: 860px) {
  .flow-thumb { width: min(100%, 300px); margin-bottom: 18px; }
}

/* AN creative image refresh: restrained, editorial treatments */
img[src*="/creative/"] { filter: sepia(.20) saturate(.76) contrast(1.06) brightness(.88); }
.hero-slide img[src*="/creative/"] { filter: sepia(.27) saturate(.66) contrast(1.12) brightness(.78); }

/* v5: editorial hero imagery and premium product framing */
.product-frame {background:linear-gradient(145deg,#f4ebe8,#e9ded9);padding:14px;display:block;overflow:hidden;}
.product-frame img {object-fit:contain!important;transition:transform .6s ease,filter .6s ease;filter:saturate(.9) contrast(1.02);}
.product-open:hover .product-frame img {transform:scale(1.035);}
body:has(.page-hero img[src*="kids-editorial"]) .page-hero img,body:has(.page-hero img[src*="company-editorial"]) .page-hero img {object-fit:cover;object-position:50% 48%;}
@media(max-width:700px){.product-frame{padding:7px}body:has(.page-hero img[src*="kids-editorial"]) .page-hero img{object-position:57% 50%}body:has(.page-hero img[src*="company-editorial"]) .page-hero img{object-position:52% 50%}}

/* v10 refinement: understated rose / black / gold editorial details */
.product-frame { background:#f0e8e1; border:1px solid rgba(184,154,101,.20); }
.product-frame img { border-radius:2px; }
.product-num { color:var(--gold); }
.product-name { letter-spacing:.055em; }
.product-open:hover .product-frame { box-shadow:0 12px 35px rgba(23,20,23,.09); }
.hero-title { text-shadow:0 2px 20px rgba(0,0,0,.18); }
@media (prefers-reduced-motion:reduce) {
 .product-frame img {transition:none!important;}
}

/* v11 — actual work examples */
.work-example {position:relative; overflow:hidden; background:#e8e0d9;}
.work-example img {width:100%;height:100%;object-fit:cover;display:block;}
.work-example figcaption {position:absolute;left:0;right:0;bottom:0;padding:22px 15px 12px;color:white;font-size:13px;letter-spacing:.08em;background:linear-gradient(transparent,rgba(20,15,18,.78));}
.real-works-section {padding-top:70px;padding-bottom:100px;}
.real-works-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.real-works-grid figure {margin:0;background:#f2ece7;}
.real-works-grid img {width:100%;aspect-ratio:4/5;object-fit:cover;display:block;}
.real-works-grid figcaption {font-size:13px;letter-spacing:.05em;padding:14px 10px;}
@media(max-width:700px){.real-works-grid{grid-template-columns:1fr 1fr;gap:12px;}.real-works-section{padding-top:45px;padding-bottom:60px;}}

/* v13: clothing repair showcase */
.repair-feature { padding: clamp(72px,9vw,140px) 0; background: #f7f2ed; }
.repair-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(14px,3vw,36px); margin:40px 0 48px; }
.repair-feature-photo { margin:0; }
.repair-feature-photo img { width:100%; height:auto; aspect-ratio:4/5; object-fit:contain; display:block; background:#fff; }
.repair-feature-photo figcaption { padding-top:12px; font-size:12px; letter-spacing:.08em; color:var(--ink-3); }
.repair-feature-copy { display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,5vw,80px); }
.repair-feature-copy h3 { font-family:var(--f-serif); font-weight:400; font-size:clamp(24px,2.5vw,36px); line-height:1.6; margin-bottom:22px; }
.repair-feature-copy p { font-size:14px; line-height:2.1; }
.repair-feature-label { font-weight:500; margin-bottom:12px; }
.repair-feature-list { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 20px; padding:0; list-style:none; }
.repair-feature-list li { border:1px solid #d8cec6; padding:7px 12px; font-size:12px; }
.repair-feature-note { color:var(--ink-3); font-size:12px!important; margin-bottom:24px; }
@media(max-width:700px){.repair-feature-grid{gap:12px;margin:28px 0}.repair-feature-copy{grid-template-columns:1fr}.repair-feature-photo figcaption{font-size:11px}}


/* v16 production: access map & direct contact */
.access-map-embed { min-height: 420px; background:#e9e4df; overflow:hidden; }
.access-map-embed iframe { width:100%; height:100%; min-height:420px; border:0; display:block; filter:grayscale(.12) saturate(.82) contrast(.98); }
.contact-direct { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(40px,7vw,110px); align-items:start; }
.contact-direct-copy h3 { font-family:var(--f-serif); font-weight:400; font-size:clamp(24px,2.5vw,38px); line-height:1.65; margin-bottom:22px; }
.contact-direct-copy p { color:var(--ink-2); line-height:2.1; max-width:46em; }
.contact-methods { border-top:1px solid var(--line); }
.contact-method { display:grid; grid-template-columns:90px 1fr auto; align-items:center; gap:22px; padding:25px 0; border-bottom:1px solid var(--line); transition:padding .35s var(--ease), color .35s var(--ease); }
a.contact-method:hover { padding-left:12px; color:var(--pink-deep); }
.contact-method-en { font-family:var(--f-en); font-style:italic; font-size:17px; color:var(--gold); }
.contact-method strong { font-family:var(--f-en); font-weight:400; font-size:clamp(24px,3vw,38px); letter-spacing:.02em; }
.contact-method small { font-size:11px; color:var(--ink-3); text-align:right; letter-spacing:.08em; }
.contact-method-static { cursor:default; }
@media(max-width:860px){
  .access-map-embed,.access-map-embed iframe{min-height:340px}
  .contact-direct{grid-template-columns:1fr;gap:36px}
  .contact-method{grid-template-columns:70px 1fr;padding:20px 0}
  .contact-method small{grid-column:2;text-align:left;margin-top:-16px}
}


/* v17: お問い合わせフォーム */
.form-sec { padding: clamp(96px, 11vw, 170px) 0; scroll-margin-top: 40px; }
.form-grid { display:grid; grid-template-columns:repeat(12,1fr); column-gap:clamp(16px,2vw,32px); }
.form-aside { grid-column:1 / span 4; }
.form-aside > p { margin-top:28px; font-size:14px; line-height:2.2; color:var(--ink-2); }
.form-aside .tel-block { margin-top:48px; padding-top:32px; border-top:1px solid var(--line); }
.form-aside .tel-block > a { font-family:var(--f-en); font-size:clamp(32px,3vw,44px); line-height:1; letter-spacing:.03em; }
.form-aside .tel-block p { margin-top:12px; font-size:12px; letter-spacing:.06em; color:var(--ink-3); }
.contact-form { grid-column:6 / span 7; }
.field { display:grid; grid-template-columns:11em minmax(0,1fr); gap:24px; padding:24px 0; border-bottom:1px solid var(--line); }
.contact-form .field:first-child { border-top:1px solid var(--line); }
.field > label,.field > .label { padding-top:12px; font-size:13px; letter-spacing:.1em; }
.req,.opt { display:inline-block; margin-left:10px; font-size:10px; letter-spacing:.1em; padding:1px 6px; vertical-align:2px; }
.req { color:var(--paper); background:var(--charcoal); }
.opt { color:var(--ink-3); border:1px solid var(--line); }
.field input[type="text"],.field input[type="email"],.field input[type="tel"],.field textarea { width:100%; font:inherit; font-size:16px; letter-spacing:.04em; color:var(--charcoal); background:var(--paper); border:1px solid var(--line); border-radius:0; padding:12px 14px; }
.field textarea { min-height:200px; resize:vertical; line-height:1.9; }
.field input:focus,.field textarea:focus { outline:none; border-color:var(--charcoal); background:#fff; }
.field .hint { margin-top:8px; font-size:12px; color:var(--ink-3); }
.choices { display:flex; flex-wrap:wrap; gap:8px; padding-top:4px; }
.choices label { position:relative; cursor:pointer; }
.choices input { position:absolute; opacity:0; inset:0; cursor:pointer; }
.choices span { display:inline-block; padding:8px 14px; font-size:13px; letter-spacing:.06em; border:1px solid var(--line); background:var(--paper); transition:.25s; }
.choices input:checked + span { background:var(--charcoal); border-color:var(--charcoal); color:var(--ivory); }
.choices input:focus-visible + span { outline:2px solid var(--pink-deep); outline-offset:2px; }
.form-agree { padding:28px 0 0; font-size:13px; line-height:2; color:var(--ink-2); }
.form-agree label { display:inline-flex; gap:12px; align-items:flex-start; cursor:pointer; }
.form-agree input { margin-top:7px; width:16px; height:16px; accent-color:var(--charcoal); }
.form-submit { margin-top:40px; display:flex; flex-wrap:wrap; align-items:center; gap:24px; }
.form-submit .btn { min-width:300px; justify-content:space-between; }
.form-note { margin-top:18px; font-size:12px; color:var(--ink-3); }
.hp-field { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
@media(max-width:1080px){.form-aside,.contact-form{grid-column:1 / span 12}.form-aside{margin-bottom:56px}}
@media(max-width:860px){.field{grid-template-columns:1fr;gap:10px;padding:20px 0}.field>label,.field>.label{padding-top:0}.form-submit .btn{min-width:0;width:100%}}
