/* ============================================
   HAIR STRAIGHT TEMPLATE
   縮毛矯正・髪質改善の専門店 — 白×墨グラファイト×コバルト
   方眼の罫線と等幅数字で組んだ「検査報告書・カルテ」風のデザイン
============================================ */

:root {
  /* Color */
  --paper: #fbfbfa; /* 紙の白（背景） */
  --white: #ffffff;
  --ink: #22262a; /* 墨グラファイト（文字・罫線） */
  --ink-soft: #5d636a;
  --cobalt: #2b54c8; /* コバルト（アクセント。ベタで使う） */
  --cobalt-deep: #1f3f9a;
  --cobalt-tint: #e8edfa;
  --grid: rgba(34, 38, 42, 0.055); /* 方眼の罫線 */
  --line: rgba(34, 38, 42, 0.18);
  --line-strong: #22262a;

  /* Font */
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --cell: 24px; /* 方眼の1マス */

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--ink);
  background-color: var(--paper);
  /* 方眼紙：1pxの線を24pxごとに（色のグラデーションではなく罫線） */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn--primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
}

.btn--line {
  background: var(--white);
}

.btn--line:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--block {
  width: 100%;
}

/* ============================================
   Header
============================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 251, 250, 0.96);
  border-bottom: 1px solid var(--line-strong);
}

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

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.logo__en {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.logo__ja {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 7px;
  background: var(--cobalt);
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__list {
  display: flex;
  gap: 18px;
}

.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
}

.nav__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cobalt);
}

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

.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--cobalt);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  z-index: 2;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span:first-child {
  top: 16px;
}

.nav-toggle span:last-child {
  top: 24px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================
   Hero
============================================ */
.hero {
  padding: calc(var(--header-h) + 40px) 0 56px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.hero__meta .mono {
  color: var(--cobalt);
  font-weight: 600;
}

.hero__title {
  margin: 28px 0 32px;
  font-size: clamp(30px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero__title .hero__line {
  display: inline-block;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* 比較スライダー */
.ba {
  margin: 0;
}

.ba__stage {
  position: relative;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  user-select: none;
  touch-action: pan-y;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba__img--after {
  object-position: 50% 30%;
}

.ba__img--before {
  object-position: 50% 22%;
  /* 左から --pos までだけ見せる */
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  pointer-events: none;
}

.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  background: var(--cobalt);
  color: var(--white);
  border: 2px solid var(--white);
}

.ba__tag {
  position: absolute;
  top: 12px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--ink);
  color: var(--white);
  pointer-events: none;
}

.ba__tag--before {
  left: 12px;
}

.ba__tag--after {
  right: 12px;
  background: var(--cobalt);
}

/* range は全面に重ねて透明に。ドラッグ・クリック・キーボードはこれが受け持つ */
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 100%;
}

.ba__stage:focus-within {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.ba__cap {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.ba__cap .mono {
  color: var(--cobalt);
  font-weight: 600;
  margin-right: 6px;
}

/* スペック表 */
.spec {
  background: var(--white);
  border: 1.5px solid var(--ink);
}

.spec__head {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--ink);
  color: var(--white);
}

.spec__head .mono {
  color: #9db3f0;
  margin-right: 8px;
}

.spec__row {
  display: grid;
  grid-template-columns: 7em 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.spec__row dt {
  font-size: 14px;
  color: var(--ink-soft);
}

.spec__row dd {
  text-align: right;
  white-space: nowrap;
}

.spec__row small {
  font-size: 13px;
  margin: 0 2px;
}

.num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--cobalt);
  letter-spacing: -0.02em;
}

.num--s {
  font-size: 22px;
}

.spec__btns {
  display: grid;
  gap: 10px;
  padding: 16px;
}

/* ============================================
   News
============================================ */
.news {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
}

.news__inner {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.news__label {
  font-weight: 600;
  color: var(--cobalt);
  font-size: 13px;
  padding-top: 2px;
}

.news__list li {
  font-size: 14px;
  line-height: 1.8;
  padding: 4px 0;
}

.news__list time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin-right: 14px;
}

.news__list a {
  color: var(--cobalt);
}

/* ============================================
   Section 共通
============================================ */
.sec {
  padding: clamp(72px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.sec__head {
  margin-bottom: 40px;
  max-width: 720px;
}

.sec__head--row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
}

.sec__no {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--cobalt);
  margin-bottom: 18px;
}

.sec__title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.sec__lead {
  margin-top: 16px;
  color: var(--ink-soft);
}

.sec__head--row .sec__lead {
  margin-top: 0;
}

.note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================
   01 Check（お悩み診断）
============================================ */
.check__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.check__form {
  background: var(--white);
  border: 1.5px solid var(--ink);
}

.check__form fieldset {
  border: none;
}

.check__legend {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-soft);
}

.ck {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  line-height: 1.6;
  transition: background-color 0.2s ease;
}

.ck:hover {
  background: var(--cobalt-tint);
}

.ck input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.ck__box {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
}

.ck__box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translateY(-1px) rotate(-45deg);
  opacity: 0;
}

.ck input:checked + .ck__box {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.ck input:checked + .ck__box::after {
  opacity: 1;
}

.ck input:focus-visible + .ck__box {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

.check__reset {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
}

.result {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  background: var(--ink);
  color: var(--white);
}

.result__label {
  font-size: 12px;
  font-weight: 600;
  color: #9db3f0;
  margin-bottom: 14px;
}

.result__empty {
  font-size: 15px;
  color: #c9ccd0;
  min-height: 7em;
}

.result__lead {
  font-size: 14px;
  color: #c9ccd0;
}

.result__name {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cobalt);
}

.result__text {
  font-size: 14px;
  line-height: 1.8;
  color: #dfe2e6;
}

.meter {
  margin: 20px 0;
  display: grid;
  gap: 8px;
}

.meter__row {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.meter__track {
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: #7f9be6;
  transition: width 0.4s var(--ease);
}

.meter__fill.is-top {
  background: var(--white);
}

.result .btn--line {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.result .btn--line:hover {
  background: var(--white);
  color: var(--ink);
}

/* ============================================
   02 Process（工程表）
============================================ */
.steps {
  border-top: 1.5px solid var(--ink);
  counter-reset: step;
}

.step {
  --unit: calc(100% / 60); /* 60分で1行ぶん */
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 90px;
  gap: 16px;
  align-items: start;
  padding: 20px 0 26px;
  border-bottom: 1px solid var(--line);
}

.step__no {
  font-size: 28px;
  font-weight: 500;
  color: var(--cobalt);
  line-height: 1.1;
}

.step__body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.step__body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.step__time {
  font-size: 24px;
  text-align: right;
  line-height: 1.1;
}

.step__time small {
  font-size: 12px;
  margin-left: 2px;
  color: var(--ink-soft);
}

/* 所要時間の割合を下端の横棒で（60分＝全幅） */
.step__bar {
  position: absolute;
  left: 80px;
  bottom: 10px;
  height: 4px;
  width: calc((100% - 80px) * var(--min) / 60);
  background: var(--cobalt);
  transform-origin: left;
}

.steps__total {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

/* ============================================
   03 Chem（薬剤比較）
============================================ */
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.cmp {
  min-width: 720px;
  font-size: 14px;
}

.cmp th,
.cmp td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.cmp thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-left-color: rgba(255, 255, 255, 0.2);
}

.cmp thead th small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #9db3f0;
}

.cmp tbody th {
  width: 9em;
  font-weight: 700;
  background: var(--paper);
  border-left: none;
}

.dots {
  display: block;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--cobalt);
}

.goods {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.goods__item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border: 1px solid var(--ink);
}

.goods__item figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.goods__item figcaption .mono {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cobalt);
}

/* ============================================
   Case（事例カルテ）
============================================ */
.case {
  background: var(--white);
}

.case__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.case__photo img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  border: 1.5px solid var(--ink);
}

.case__title {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.5;
  font-weight: 700;
  margin-bottom: 24px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.kv {
  font-size: 14px;
  border-top: 1.5px solid var(--ink);
}

.kv th,
.kv td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.kv th {
  width: 8em;
  padding-right: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.kv small {
  color: var(--ink-soft);
  font-size: 13px;
}

.case__memo {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--cobalt-tint);
  border-left: 4px solid var(--cobalt);
  font-size: 14px;
}

.case__memo .mono {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cobalt);
}

/* ============================================
   04 Price（料金表＋シミュレーター）
============================================ */
.price__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ptable {
  font-size: 15px;
}

.ptable th,
.ptable td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-family: var(--font-mono);
  line-height: 1.4;
}

.ptable thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  vertical-align: bottom;
}

.ptable thead th:first-child,
.ptable tbody th {
  text-align: left;
  font-family: var(--font-body);
}

.ptable tbody th {
  font-weight: 700;
  font-size: 15px;
}

.ptable tbody th small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

/* シミュレーターで選んでいるセル */
.ptable td.is-picked {
  background: var(--cobalt);
  color: var(--white);
}

.sim {
  border: 1.5px solid var(--ink);
  background: var(--white);
  padding: 0 0 4px;
}

.sim__head {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--cobalt);
}

.sim__field {
  padding: 14px 16px 6px;
  border: none;
}

.sim__field > label:not(.ck),
.sim__label,
.sim__opts legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.sim__opts legend {
  padding: 0;
}

.sim__select {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2322262a' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1.5px solid var(--ink);
}

.seg__item {
  position: relative;
  cursor: pointer;
}

.seg__item + .seg__item {
  border-left: 1px solid var(--ink);
}

.seg__item input {
  position: absolute;
  opacity: 0;
}

.seg__item span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.seg__item input:checked + span {
  background: var(--ink);
  color: var(--white);
}

.seg__item input:focus-visible + span {
  outline: 2px solid var(--cobalt);
  outline-offset: -4px;
}

.ck--s {
  min-height: 46px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}

.ck--s:hover {
  background: none;
}

.ck--s .mono {
  color: var(--ink-soft);
}

.sim__out {
  margin: 10px 16px 12px;
  padding-top: 12px;
  border-top: 1.5px solid var(--ink);
}

.sim__sum {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-weight: 700;
}

.sim__sum b {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 500;
  color: var(--cobalt);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sim__sum span {
  font-size: 14px;
}

.sim__time {
  font-size: 14px;
  color: var(--ink-soft);
}

.price__extra {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.price__extra li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--ink-soft);
  font-size: 15px;
}

.price__extra b {
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================
   05 FAQ（アコーディオン：grid-template-rows 0fr→1fr）
============================================ */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 56px;
  align-items: start;
}

.acc {
  border-top: 1.5px solid var(--ink);
}

.acc__item {
  border-bottom: 1px solid var(--line);
}

.acc__btn {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 16px 48px 16px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.acc__btn .mono {
  flex: none;
  color: var(--cobalt);
  font-size: 14px;
}

.acc__icon {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  transition: transform 0.35s var(--ease);
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.acc__icon::after {
  transform: rotate(90deg);
}

.acc__btn[aria-expanded="true"] .acc__icon {
  transform: rotate(45deg);
}

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.acc__panel.is-open {
  grid-template-rows: 1fr;
}

.acc__inner {
  overflow: hidden;
  min-height: 0;
}

.acc__inner p {
  padding: 0 0 20px 34px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* JSが動かないときは開いた状態で見せる */
html:not(.js) .acc__panel {
  grid-template-rows: 1fr;
}

/* ============================================
   06 Staff
============================================ */
.staff__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  background: var(--white);
  border: 1.5px solid var(--ink);
}

.person--text {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
}

.person__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  border-right: 1.5px solid var(--ink);
}

.person__initial {
  padding: 18px 20px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  background: var(--cobalt);
}

.person__body {
  padding: 22px;
}

.person__role {
  font-size: 12px;
  font-weight: 600;
  color: var(--cobalt);
}

.person__name {
  font-size: 22px;
  font-weight: 700;
  margin: 2px 0 14px;
  line-height: 1.4;
}

.person__name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

.kv--s th {
  width: 7.5em;
}

.person__word {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.85;
}

/* ============================================
   07 Shop / Reserve / Recruit
============================================ */
.shop__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.shop__table {
  background: var(--white);
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-collapse: separate;
  border-spacing: 0;
}

.shop__table tr:last-child th,
.shop__table tr:last-child td {
  border-bottom: none;
}

.shop__map {
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.shop__map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.reserve {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--ink);
  color: var(--white);
}

.reserve .sec__no {
  color: #9db3f0;
  border-color: #9db3f0;
}

.reserve__title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.45;
  margin-bottom: 12px;
  word-break: keep-all;
}

.reserve__text p:last-child {
  font-size: 14px;
  color: #c9ccd0;
}

.reserve__btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
}

.rbtn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 120px;
  padding: 16px;
  border: 1.5px solid var(--white);
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.rbtn:hover {
  background: var(--white);
  color: var(--ink);
}

.rbtn--fill {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.rbtn--fill:hover {
  background: var(--white);
  border-color: var(--white);
}

.rbtn__label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

.rbtn__main {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: auto;
}

.rbtn__main span {
  display: inline-block;
}

.rbtn__sub {
  font-size: 12px;
  opacity: 0.8;
}

.recruit {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-top: 28px;
  border-top: 1.5px solid var(--ink);
}

.recruit .sec__no {
  align-self: start;
  justify-self: start;
}

.recruit__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.recruit__list {
  margin-bottom: 18px;
}

.recruit__list li {
  display: grid;
  grid-template-columns: 4em 1fr;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}

.recruit__list span {
  font-weight: 700;
  color: var(--ink-soft);
}

/* ============================================
   Footer / Fixbar
============================================ */
.footer {
  background: var(--ink);
  color: #c9ccd0;
  padding: 40px 0 48px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}

.logo--foot .logo__en {
  color: var(--white);
}

.footer__addr,
.footer__copy {
  font-size: 13px;
}

.fixbar {
  display: none;
}

/* ============================================
   スクロール出現（JSが動いたときだけ初期状態を隠す）
============================================ */
.js .rv {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js .rv.is-in {
  opacity: 1;
  transform: none;
}

/* ヒーローは読み込み直後に順に出す（合計1秒以内） */
.js .hero__line {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js .hero__line:nth-child(3) {
  transition-delay: 0.1s;
}

.js .hero__grid .hero__line:nth-child(1) {
  transition-delay: 0.18s;
}

.js .hero__grid .hero__line:nth-child(2) {
  transition-delay: 0.28s;
}

.js.is-ready .hero__line {
  opacity: 1;
  transform: none;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1080px) {
  .nav__list {
    gap: 12px;
  }

  .nav__no {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--pad) 40px;
    background: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0s linear 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: flex;
    gap: 14px;
    font-size: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__no {
    display: inline;
    font-size: 13px;
  }

  .nav__cta {
    margin-top: 24px;
    justify-content: center;
    min-height: 52px;
    font-size: 16px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero__grid,
  .check__grid,
  .price__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .spec__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec__row:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .spec__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .spec__row dd {
    text-align: left;
    white-space: normal;
    min-width: 0;
  }

  .spec__btns {
    grid-template-columns: 1fr 1fr;
  }

  .result {
    position: static;
  }

  .sec__head--row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .staff__grid {
    grid-template-columns: 1fr;
  }

  .shop__grid {
    grid-template-columns: 1fr;
  }

  .reserve {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    padding-bottom: 64px; /* 下の予約バーぶん */
  }

  .logo__en {
    font-size: 16px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .hero__title {
    margin: 20px 0 22px;
    /* 「くせの強さを測ってから、」の12字が1行に収まる大きさ */
    font-size: min(30px, calc((100vw - 32px) / 12.6));
  }

  .ba__stage {
    aspect-ratio: 4 / 5;
  }

  .num {
    font-size: 26px;
  }

  .spec__btns {
    grid-template-columns: 1fr;
  }

  .news__inner {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .news__list time {
    display: block;
  }

  .step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .step__no {
    font-size: 22px;
  }

  .step__time {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    font-size: 18px;
    order: -1;
  }

  .step__body {
    grid-column: 2;
  }

  .step__bar {
    left: 52px;
    width: calc((100% - 52px) * var(--min) / 60);
  }

  .goods {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .goods__item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .goods__item figcaption {
    margin-top: 0;
  }

  .case__grid {
    grid-template-columns: 1fr;
  }

  .case__photo img {
    aspect-ratio: 4 / 3;
  }

  .kv th {
    width: 6.5em;
  }

  .kv--s th {
    width: 7.2em;
    white-space: nowrap;
  }

  .seg__item span {
    font-size: 13px;
  }

  .ptable th,
  .ptable td {
    padding: 10px 8px;
    font-size: 14px;
    white-space: nowrap;
  }

  .ptable thead th {
    font-size: 13px;
  }

  .price__extra {
    grid-template-columns: 1fr;
  }

  .acc__btn {
    font-size: 15px;
  }

  .acc__inner p {
    padding-left: 0;
  }

  .person {
    grid-template-columns: 1fr;
  }

  .person__photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
    border-right: none;
    border-bottom: 1.5px solid var(--ink);
  }

  .shop__map iframe {
    height: 300px;
  }

  .reserve__btns {
    grid-template-columns: 1fr;
  }

  .rbtn {
    min-height: 0;
  }

  .rbtn__main {
    margin-top: 2px;
  }

  .recruit {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fixbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    background: var(--ink);
    border-top: 1px solid var(--ink);
  }

  .fixbar__btn {
    display: grid;
    place-items: center;
    min-height: 56px;
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
  }

  .fixbar__btn + .fixbar__btn {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .fixbar__btn--fill {
    background: var(--cobalt);
  }
}

/* ============================================
   Reduced motion
============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .rv,
  .js .hero__line {
    opacity: 1;
    transform: none;
  }
}

.nowrap {
  display: inline-block;
}

/* 読みやすさ：注記・キャプションも14px以上にそろえる */
.note,
.spec__head { font-size: 14px; }
