/* =========================================================
   04 FLAVOR LAB — 研究所の記録
   紙 #F5F5F0 / 墨 #111111 / 研究所の青 #2846D8 / 方眼 #D9D9D2 / 目印 #F4E04D
   ========================================================= */

:root {
  --heading-leading: 1.4;
  --paper: #F5F5F0;
  --ink: #111111;
  --lab: #2846D8;
  --rule: #D9D9D2;
  --mark: #F4E04D;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans JP", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 { line-height: var(--heading-leading) !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background-color: var(--paper);
  /* うっすら見える方眼（細かい目 24px・太い目 120px） */
  background-image:
    linear-gradient(to right, rgba(217, 217, 210, .5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(217, 217, 210, .5) 1px, transparent 1px),
    linear-gradient(to right, rgba(190, 190, 182, .45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190, 190, 182, .45) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  overflow-x: hidden;
  font-feature-settings: "palt" 0;
}

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 12px; font-size: 13px;
}
.skip:focus { left: 8px; }

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

/* ---------- 枠 ---------- */
.frame {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .frame { padding-inline: 40px; } }

.section { padding-top: 112px; }
@media (min-width: 1024px) { .section { padding-top: 160px; } }

/* セクションの番号と注記（座標風） */
.sec-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .14em;
}
.sec-label { font-weight: 500; white-space: nowrap; }
.sec-coord { color: rgba(17, 17, 17, .55); text-align: right; overflow-wrap: anywhere; }
.type.typing::after {
  content: ""; display: inline-block; width: .55em; height: 1em;
  margin-left: 2px; vertical-align: -2px; background: var(--lab);
  animation: caret .7s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.sec-title {
  font-weight: 600;
  font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.375rem);
  letter-spacing: .02em;
}

.sub-label {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14px; font-weight: 600;
}
.sub-label span {
  font-family: var(--mono); font-weight: 400; font-size: 10px;
  letter-spacing: .14em; color: var(--lab);
}

.note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(17, 17, 17, .65);
}
.note::before {
  content: ""; width: 8px; height: 8px; background: var(--mark);
  outline: 1px solid rgba(17, 17, 17, .25); flex: none;
}

.spec-note {
  font-size: 12px; color: rgba(17, 17, 17, .6);
  padding-left: 14px; border-left: 2px solid var(--mark);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 240, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-link { font-size: 14px; position: relative; padding: 4px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--lab); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-no {
  font-family: var(--mono); font-size: 10px; color: var(--lab);
  margin-right: 6px; letter-spacing: .06em; vertical-align: 2px;
}

.menu-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0 8px 8px; }
.menu-icon { position: relative; width: 20px; height: 10px; }
.menu-icon span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform .3s ease, top .3s ease;
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-icon span:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--rule); background: var(--paper); max-height: calc(100vh - 56px); overflow-y: auto; }
.mobile-list li { border-bottom: 1px solid var(--rule); }
.mobile-list a { display: block; padding: 14px 0; font-size: 17px; font-weight: 600; }

/* ---------- ボタン（1ページで1種類。大小だけ変える） ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--lab); color: #fff;
  font-weight: 600; font-size: 15px; letter-spacing: .04em;
  padding: 14px 22px;
  border: 1px solid var(--lab);
  transition: background-color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-arrow { font-family: var(--mono); font-weight: 400; transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-sm { font-size: 13px; padding: 9px 16px; gap: 10px; }
.btn-lg { font-size: 16px; padding: 18px 26px; overflow-wrap: anywhere; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  padding-bottom: 3px; border-bottom: 1px solid var(--ink);
}
.text-link:hover { color: var(--lab); border-color: var(--lab); }

.inline-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(17, 17, 17, .35); }
.inline-link:hover { color: var(--lab); text-decoration-color: var(--lab); }

/* ---------- ヒーロー ---------- */
.hero { padding-top: 24px; }
.hero-title {
  font-weight: 600;
  font-size: clamp(2.125rem, 1rem + 3.9vw, 4.25rem);
  letter-spacing: .01em;
}
.lead { font-size: 16px; line-height: 1.95; color: rgba(17, 17, 17, .82); max-width: 34em; }

.formula-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label link" "body body";
  gap: 10px 16px;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0 16px;
}
@media (min-width: 1024px) {
  .formula-bar { grid-template-columns: 200px 1fr auto; grid-template-areas: "label body link"; }
}
.fb-label {
  grid-area: label;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
}
.fb-label::before { content: ""; width: 8px; height: 8px; background: var(--mark); outline: 1px solid rgba(17, 17, 17, .25); }
.fb-count { color: rgba(17, 17, 17, .5); }
.fb-body {
  grid-area: body;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0;
  font-weight: 600; font-size: clamp(1.25rem, .9rem + 1.2vw, 1.875rem);
  min-height: 1.5em;
}
.fb-op { font-family: var(--mono); font-weight: 400; color: var(--lab); margin: 0 .45em; }
.fb-arrow { font-family: var(--mono); font-weight: 400; color: rgba(17, 17, 17, .4); margin: 0 .6em 0 .8em; font-size: .8em; }
.fb-name { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; color: var(--lab); }
.fb-a, .fb-b { transition: opacity .25s ease; }
.fb-swap .fb-a, .fb-swap .fb-b, .fb-swap .fb-name { opacity: 0; }
.fb-link {
  grid-area: link;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  display: inline-flex; gap: 6px; align-items: center;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.fb-link:hover { color: var(--lab); border-color: var(--lab); }

.ruler {
  height: 12px;
  background:
    repeating-linear-gradient(to right, var(--ink) 0 1px, transparent 1px 120px) left bottom / 100% 12px no-repeat,
    repeating-linear-gradient(to right, rgba(17,17,17,.55) 0 1px, transparent 1px 24px) left bottom / 100% 6px no-repeat;
}
.hero-photo { overflow: hidden; aspect-ratio: 4 / 3; background: #e9e9e3; }
@media (min-width: 768px) { .hero-photo { aspect-ratio: 16 / 8; } }
@media (min-width: 1024px) { .hero-photo { aspect-ratio: auto; height: clamp(340px, 54vh, 600px); } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
html.js .hero-photo img { transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
html.js .hero-photo.is-in img { transform: scale(1); }

.figcap {
  display: flex; gap: 14px; align-items: baseline;
  margin-top: 10px; font-size: 12px; line-height: 1.7; color: rgba(17, 17, 17, .65);
}
.figcap span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--lab); white-space: nowrap; }

/* 見当（トンボ）風の角の印 */
.reg { position: relative; }
.reg::before, .reg::after {
  content: ""; position: absolute; width: 14px; height: 14px; z-index: 2; pointer-events: none;
  border-color: var(--lab); border-style: solid; transition: transform .35s ease;
}
.reg::before { left: 8px; top: 8px; border-width: 1.5px 0 0 1.5px; }
.reg::after { right: 8px; bottom: 8px; border-width: 0 1.5px 1.5px 0; }

/* ---------- 01 計器 ---------- */
.gauges { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gauge {
  display: flex; flex-direction: column;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--rule);
  background: rgba(245, 245, 240, .6);
}
@media (min-width: 768px) {
  .gauge { padding: 28px 20px 36px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .gauge:first-child { padding-left: 0; }
  .gauge:last-child { border-right: 0; }
}
.g-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--lab); display: flex; gap: 10px; }
.g-label span { font-family: var(--sans); letter-spacing: .04em; color: rgba(17, 17, 17, .6); }
.g-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; }
.g-num {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(3.5rem, 1.2rem + 5vw, 7.5rem); line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.g-unit { font-weight: 600; font-size: 18px; }
.g-desc { padding-top: 20px; font-size: 14px; line-height: 1.8; color: rgba(17, 17, 17, .75); }

.g-ticks { display: flex; align-items: flex-end; gap: 4px; height: 22px; margin-top: 22px; }
.g-ticks i { flex: 1; height: 100%; background: var(--ink); max-width: 10px; transform-origin: bottom; }
.g-ticks i:nth-child(5n) { background: var(--lab); }
.g-ticks b { font-family: var(--mono); font-weight: 500; color: var(--lab); font-size: 18px; line-height: 1; margin-left: 4px; }
html.js .g-ticks i { transform: scaleY(.2); opacity: .3; transition: transform .4s ease, opacity .4s ease; }
html.js .is-in .g-ticks i { transform: none; opacity: 1; }

.g-years { display: flex; align-items: center; gap: 10px; height: 22px; margin-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.gy-start { color: var(--lab); font-weight: 500; }
.gy-end { color: rgba(17, 17, 17, .55); }
.gy-line {
  flex: 1; height: 12px; position: relative;
  background: repeating-linear-gradient(to right, rgba(17,17,17,.55) 0 1px, transparent 1px 12px) left center / 100% 8px no-repeat;
}
.gy-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--lab); transform-origin: left; }
html.js .gy-line::before { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
html.js .is-in .gy-line::before { transform: scaleX(1); }

.g-seg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 22px; margin-top: 22px; }
.g-seg i { background: var(--lab); }
html.js .g-seg i { opacity: .15; transition: opacity .3s ease; }
html.js .is-in .g-seg i { opacity: 1; }

.sector-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 24px; }
@media (max-width: 767px) { .sector-list li { font-size: 13px; gap: 8px; } }
@media (min-width: 768px) { .sector-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sector-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sector-list li {
  display: flex; gap: 10px; align-items: baseline;
  border-top: 1px solid var(--ink);
  padding: 12px 0 24px;
  font-size: 15px; font-weight: 600; line-height: 1.6;
}
.sector-list li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--lab); transform: translateY(-2px); }

/* ---------- 02 楽しみ方 ---------- */
.cases { display: grid; grid-template-columns: 1fr; gap: 48px 24px; }
.case { display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .case { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
@media (min-width: 1280px) {
  .cases { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.case-img { aspect-ratio: 4 / 5; overflow: hidden; background: #e9e9e3; }
@media (max-width: 767px) { .case-img { aspect-ratio: 3 / 2; } }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case:hover .case-img img { transform: scale(1.04); }
.case:hover .reg::before { transform: translate(-3px, -3px); }
.case:hover .reg::after { transform: translate(3px, 3px); }
.case-no { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--lab); }
.case-title { margin-top: 6px; font-size: 19px; font-weight: 600; }
.case-desc { margin-top: 12px; font-size: 14px; line-height: 1.85; color: rgba(17, 17, 17, .75); }
.case-tags {
  margin-top: auto; padding-top: 24px;
}
.case-tags li {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--ink); padding: 10px 0 8px;
  font-size: 13px; font-weight: 600;
}
.case-tags li + li { border-top: 0; padding-top: 6px; }
.case-tags span { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .12em; color: var(--lab); }
@media (min-width: 768px) { .case-tags { margin-top: 0; } }

/* ---------- 03 季節のメニュー ---------- */
.works { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
@media (min-width: 768px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .works { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; }
  .w-a { grid-column: span 5; } .w-b { grid-column: span 7; }
  .w-c { grid-column: span 5; } .w-d { grid-column: span 3; } .w-e { grid-column: span 4; }
  .w-f { grid-column: span 4; } .w-g { grid-column: span 5; } .w-h { grid-column: span 3; }
}
.work-img { overflow: hidden; aspect-ratio: 4 / 3; background: #e9e9e3; }
.w-a .work-img, .w-d .work-img, .w-h .work-img { aspect-ratio: 4 / 5; }
@media (min-width: 768px) and (max-width: 1023px) { .work-img, .w-a .work-img, .w-d .work-img, .w-h .work-img { aspect-ratio: 4 / 3; } }
@media (min-width: 1024px) {
  .work-img, .w-a .work-img, .w-d .work-img, .w-h .work-img { aspect-ratio: auto; }
  .w-a .work-img, .w-b .work-img { height: 520px; }
  .w-c .work-img, .w-d .work-img, .w-e .work-img,
  .w-f .work-img, .w-g .work-img, .w-h .work-img { height: 380px; }
}
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.work:hover .work-img img { transform: scale(1.035); }
.work:hover .reg::before { transform: translate(-3px, -3px); }
.work:hover .reg::after { transform: translate(3px, 3px); }
.w-a .work-img img { object-position: 50% 55%; }
.w-h .work-img img { object-position: 50% 30%; }
.w-b .work-img img { transform: scale(1.06); }
.work:hover.w-b .work-img img { transform: scale(1.09); }
.work-meta {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--lab);
}
.work-meta span:last-child { color: rgba(17, 17, 17, .55); }
.work-title { margin-top: 6px; font-size: 17px; font-weight: 600; }
.work-desc { margin-top: 4px; font-size: 14px; line-height: 1.75; color: rgba(17, 17, 17, .72); }

/* ---------- 04 フレーバー（仕様書の表） ---------- */
.flavor-fig { overflow: hidden; aspect-ratio: 3 / 2; background: #e9e9e3; }
.flavor-fig img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { border-top: 1px solid var(--ink); }
.spec-head { display: none; }
.spec-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "thumb no" "thumb formula" "thumb name" "thumb type" "thumb color";
  column-gap: 16px; row-gap: 4px;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.s-thumb { grid-area: thumb; width: 76px; height: 76px; object-fit: cover; align-self: start; }
.s-no { grid-area: no; }
.s-formula { grid-area: formula; }
.s-name { grid-area: name; }
.s-type { grid-area: type; }
.s-color { grid-area: color; }

@media (min-width: 1024px) {
  .spec-head, .spec-row {
    grid-template-columns: 88px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "no formula name type color";
    column-gap: 24px;
    align-items: center;
  }
  .spec-head {
    display: grid;
    padding: 12px 0;
    border-bottom: 1px solid var(--ink);
    font-size: 11px; color: rgba(17, 17, 17, .6);
  }
  .spec-head span:first-child { font-family: var(--mono); letter-spacing: .1em; }
  .spec-row { padding: 26px 0; cursor: default; transition: background-color .25s ease; }
  .spec-row::before {
    content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 3px;
    background: var(--lab); transform: scaleY(0); transition: transform .25s ease;
  }
  .spec-row:hover { background: rgba(255, 255, 255, .55); }
  .spec-row:hover::before { transform: scaleY(1); }
  .spec-row:hover .s-formula b { color: var(--lab); }
  .spec-row:hover .s-no { background: var(--mark); }
  .s-thumb { display: none; }
}
.s-no {
  justify-self: start;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  padding: 2px 6px; margin-left: -6px; transition: background-color .2s ease;
}
.s-formula { display: flex; flex-wrap: wrap; align-items: baseline; font-size: clamp(1.25rem, .95rem + 1vw, 1.75rem); }
.s-formula b { font-weight: 600; transition: color .2s ease; }
.s-formula i { font-style: normal; font-family: var(--mono); color: var(--lab); margin: 0 .5em; font-size: .8em; }
.s-name { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; }
.s-type { font-size: 14px; color: rgba(17, 17, 17, .75); }
.s-color { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: rgba(17, 17, 17, .7); }
.s-color em { width: 22px; height: 22px; background: var(--c); outline: 1px solid rgba(17, 17, 17, .2); outline-offset: -1px; }

/* 行に重ねると出る素材の写真 */
.peek {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 240px; padding: 6px 6px 8px;
  background: var(--paper); border: 1px solid var(--ink);
  pointer-events: none; opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity .2s ease;
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.peek-cap { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--lab); }

/* ---------- 05 大切にしていること（案） ---------- */
.mv { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
@media (min-width: 1024px) { .mv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mv-item { border-top: 1px solid var(--ink); padding-top: 16px; }
.mv-label { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--lab); }
.mv-text { margin-top: 14px; font-weight: 600; font-size: clamp(1.25rem, .95rem + 1.3vw, 1.875rem); line-height: 1.6; }

.values { display: grid; grid-template-columns: 1fr; gap: 40px 24px; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value { display: flex; flex-direction: column; }
.value-img { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e9e3; }
.value-img img { width: 100%; height: 100%; object-fit: cover; }
.value-no { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--lab); }
.value-title { margin-top: 6px; font-size: 19px; font-weight: 600; line-height: 1.5; }
.value-desc { margin-top: 8px; font-size: 14px; line-height: 1.8; color: rgba(17, 17, 17, .75); }

/* ---------- 06 できるまで（工程表） ---------- */
.gantt { border-top: 1px solid var(--ink); }
.gantt-head { display: none; }
.g-row { border-bottom: 1px solid var(--rule); padding: 20px 0 24px; }
.g-info { display: flex; gap: 18px; align-items: baseline; }
.g-step { font-family: var(--mono); font-size: 13px; color: var(--lab); letter-spacing: .08em; flex: none; width: 28px; }
.g-name { font-size: 19px; font-weight: 600; }
.g-text { margin-top: 4px; font-size: 14px; line-height: 1.8; color: rgba(17, 17, 17, .75); }
.g-track {
  display: block; position: relative; height: 8px; margin: 14px 0 0 46px;
  background: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 20%);
  border-right: 1px solid var(--rule);
}
.g-bar {
  position: absolute; top: 0; height: 8px;
  left: calc((var(--col) - 1) * 20% + 2px); width: calc(20% - 4px);
  background: var(--ink); transform-origin: left;
}
.g-bar.is-key { background: var(--lab); }

@media (min-width: 1024px) {
  .gantt-head, .g-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px; }
  .gantt-head {
    padding: 12px 0; border-bottom: 1px solid var(--ink);
    font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: rgba(17, 17, 17, .6);
  }
  .gh-info { font-family: var(--sans); font-size: 11px; letter-spacing: .04em; }
  .gh-cols { display: grid; grid-template-columns: repeat(5, 1fr); }
  .gh-cols span { padding-left: 8px; border-left: 1px solid var(--rule); }
  .g-row { padding: 0; align-items: stretch; }
  .g-info { padding: 22px 0 26px; }
  .g-track { height: auto; margin: 0; border-right: 0; }
  .g-bar {
    top: 50%; height: 12px; margin-top: -6px;
    left: calc((var(--col) - 1) * 20% + 8px);
    width: calc(20% - 16px);
  }
  .g-bar::after {
    /* 次の段階へつなぐ線 */
    content: ""; position: absolute; right: -8px; top: 6px; width: 8px; height: calc(100% + 86px);
    border-top: 1px solid rgba(17, 17, 17, .35); border-right: 1px solid rgba(17, 17, 17, .35);
  }
  .g-row:last-child .g-bar::after { display: none; }
  html.js .g-bar { transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * .22s); }
  html.js .g-bar::after { opacity: 0; transition: opacity .3s ease; transition-delay: calc(var(--i) * .22s + .6s); }
  html.js .gantt.is-in .g-bar { transform: scaleX(1); }
  html.js .gantt.is-in .g-bar::after { opacity: 1; }
}

.process-figs { display: grid; grid-template-columns: 1fr; gap: 32px 24px; }
@media (min-width: 768px) { .process-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .process-figs { width: calc(7 / 12 * 100%); margin-left: auto; } }
.pf-img { aspect-ratio: 3 / 2; overflow: hidden; background: #e9e9e3; }
.pf-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* ---------- 07 お知らせ ---------- */
.news { border-top: 1px solid var(--ink); }
.news-row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) { .news-row { grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: baseline; } }
.news-row time { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--lab); }
.news-row p { font-size: 15px; line-height: 1.8; }

/* ---------- 08 お店の情報 ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 calc(1 / 12 * 100% + 24px); align-items: end; } }
.contact-title { font-weight: 600; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); letter-spacing: .02em; }
.consumer { border-top: 1px solid var(--rule); padding-top: 18px; max-width: 36em; }
.contact-img { aspect-ratio: 4 / 5; overflow: hidden; background: #e9e9e3; }
.contact-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 1023px) { .contact-fig { max-width: 420px; } }

/* ---------- フッター ---------- */
.site-footer { margin-top: 160px; border-top: 1px solid var(--ink); background: rgba(245, 245, 240, .7); }

/* ---------- 10案の一覧へ ---------- */
.back-link {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  font-size: 11px; letter-spacing: .04em;
  padding: 6px 10px;
  background: rgba(245, 245, 240, .92);
  border: 1px solid var(--rule);
  color: rgba(17, 17, 17, .7);
}
.back-link:hover { color: var(--lab); border-color: var(--lab); }

/* ---------- 照準のカーソル（PCのみ） ---------- */
.reticle {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 0; height: 0; pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
.reticle.is-on { opacity: 1; }
.rt-h, .rt-v { position: absolute; transition: transform .2s ease, background .2s ease; }
.rt-h {
  left: -11px; top: 0; width: 22px; height: 1px;
  background: linear-gradient(to right, var(--ink) 0 8px, transparent 8px 14px, var(--ink) 14px);
}
.rt-v {
  left: 0; top: -11px; width: 1px; height: 22px;
  background: linear-gradient(to bottom, var(--ink) 0 8px, transparent 8px 14px, var(--ink) 14px);
}
.rt-read {
  position: absolute; left: 14px; top: 10px; white-space: nowrap;
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--lab);
}
.reticle.is-link .rt-h {
  transform: scaleX(1.5);
  background: linear-gradient(to right, var(--lab) 0 8px, transparent 8px 14px, var(--lab) 14px);
}
.reticle.is-link .rt-v {
  transform: scaleY(1.5);
  background: linear-gradient(to bottom, var(--lab) 0 8px, transparent 8px 14px, var(--lab) 14px);
}
html.has-reticle, html.has-reticle * { cursor: none !important; }

/* ---------- スクロールで出る動き ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js.reveal-all .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .hero-photo img { transform: none; }
  html.js .g-ticks i, html.js .g-seg i { transform: none; opacity: 1; }
  html.js .gy-line::before, html.js .g-bar { transform: none !important; }
  html.js .g-bar::after { opacity: 1; }
}
