:root {
  color-scheme: light;
  --font-sans: "Noto Sans JP", sans-serif;
  --silt: #eee7dc;
  --mist: #f6f0e7;
  --teal: #2b4445;
  --text: #506362;
  --text-muted: #73807e;
  --curtain: #e6ded1; /* 全画面メニューの幕：シルトより一段沈んだ色 */
  --hover: #9a6c32;  /* ホバー：昼は「ソイル」（土壌）、夜は「ムーン」（月明かり）に差し替える */
  --blood: #7a1c2d;  /* 予備のアクセント「ブラッド」：ドス黒い赤。本当にアクセントが必要なときだけ使う（現在未使用） */
  --line-rgb: 43 68 69;     /* 線・枠（ティール）。透明度を付けて使う */
  --field-rgb: 246 240 231; /* 入力欄などの面（ミスト） */
  /* 文字サイズの段階（サイト共通） */
  --fs-xs: 11px;    /* 日付・注記の番号・フッター */
  --fs-sm: 12px;    /* 補足・説明文 */
  --fs-base: 13px;  /* ラベル・ボタン・表 */
  --fs-body: 14px;  /* 本文 */
  --fs-h3: 15px;    /* 小見出し */
  --fs-h2: 17px;    /* 見出し */
  --fs-input: 16px; /* 入力欄（スマホで入力時に拡大されないよう16px） */
}
/* マウス操作の環境では入力欄を本文と同じ大きさに */
@media (hover: hover) and (pointer: fine) {
  :root { --fs-input: var(--fs-body); }
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--silt); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  color: var(--text);
  font-family: var(--font-sans);
}
/* 背景の光と周辺減光は、どちらも画面に固定する。周辺減光はレンズの性質なので、倍率色収差と同じく画面の中心（50%）が基準で、中心からの距離で決まる円（隅で最も暗い）
   ページの長さやスクロールに関係なく、光が少し上から落ちる見え方を保つ
   光は景色の中の光源なので、画面の縦横比に関係なく円形
   ずっと上空から降り注ぐ光として、画面の上にある非常に大きな円にする（中心は画面の上端より0.73画面分上、半径2画面分）
   そのため明るさの変化はほぼ横の帯になる。光は上から4/7の深さまで届き（明るさが半分になる位置）、高さ87%あたりで最も暗くなる
*/
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle 200vh at 50% -73vh, var(--mist) 50%, var(--silt) 80%); /* color-mix 非対応のブラウザ用 */
  /* 色の変わり始めと終わりで線（マッハバンド）が見えないよう、なめらかな曲線（smootherstep：変わり始めと終わりの傾きと曲がり方がともにゼロ）で中間色を足す */
  background: radial-gradient(circle 200vh at 50% -73vh, var(--mist) 50%, color-mix(in srgb, var(--mist) 99.5%, var(--silt)) 52.50%, color-mix(in srgb, var(--mist) 96.5%, var(--silt)) 55.00%, color-mix(in srgb, var(--mist) 89.6%, var(--silt)) 57.50%, color-mix(in srgb, var(--mist) 79%, var(--silt)) 60.00%, color-mix(in srgb, var(--mist) 65.3%, var(--silt)) 62.50%, color-mix(in srgb, var(--mist) 50%, var(--silt)) 65.00%, color-mix(in srgb, var(--mist) 34.7%, var(--silt)) 67.50%, color-mix(in srgb, var(--mist) 21%, var(--silt)) 70.00%, color-mix(in srgb, var(--mist) 10.4%, var(--silt)) 72.50%, color-mix(in srgb, var(--mist) 3.5%, var(--silt)) 75.00%, color-mix(in srgb, var(--mist) 0.5%, var(--silt)) 77.50%, var(--silt) 80%);
}
/* ごく薄いノイズ（ディザリング）：グラデーションの色の段差（バンディング）を紛らわせる。
   背景の光の上、ページの内容（ロゴ・文字）より奥。背景だけにかけ、ロゴや文字には粒を乗せない */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.33 .33 .33 0 0 .33 .33 .33 0 0 .33 .33 .33 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay; /* 灰色（50%）は元の色を変えないので、全体の明るさは変わらず、ざらつきだけが乗る */
  /* オーバーレイは明るい色ほど効きが弱いので、昼は濃さを上げて、夜と近い粒の見え方にする */
  opacity: .35;
}
html[data-theme="night"] body::after { opacity: .15; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5; /* ページの内容より上、ヘッダー（メニューの幕：z-index 10）より下。幕には減光をかけない */
  pointer-events: none;
  background: radial-gradient(circle farthest-corner at 50% 50%, transparent 68%, rgb(var(--line-rgb) / 0.02%) 70.67%, rgb(var(--line-rgb) / 0.14%) 73.33%, rgb(var(--line-rgb) / 0.41%) 76.00%, rgb(var(--line-rgb) / 0.84%) 78.67%, rgb(var(--line-rgb) / 1.39%) 81.33%, rgb(var(--line-rgb) / 2.00%) 84.00%, rgb(var(--line-rgb) / 2.61%) 86.67%, rgb(var(--line-rgb) / 3.16%) 89.33%, rgb(var(--line-rgb) / 3.59%) 92.00%, rgb(var(--line-rgb) / 3.86%) 94.67%, rgb(var(--line-rgb) / 3.98%) 97.33%, rgb(var(--line-rgb) / 4.00%) 100.00%);
}
.home-main {
  --home-logo-width: clamp(240px, 48vw, 445px);
  text-align: center;
  animation: home-identity-fade-in 2.3s ease-out both;
}
h1 {
  margin: 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.2;
}
.home-logo {
  width: var(--home-logo-width);
  max-width: calc(100vw - 48px);
  margin-inline: auto;
  line-height: 0;
}
.home-logo__image {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes home-identity-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
p {
  margin: 24px 0 0;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  letter-spacing: .18em;
  color: var(--text-muted);
}

.site-header {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(
    14px +
    env(safe-area-inset-right, 0px) +
    var(--menu-scrollbar-width, 0px)
  );
  z-index: 10;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  touch-action: manipulation;
}

.menu-toggle:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

/* アイコンの箱は、見た目（18×10px）の周りに6pxの余白を持たせる。
   「×」に回転した線が箱からはみ出さないように（夜の色収差の影の効果が箱で切られないように） */
.menu-toggle__icon {
  position: relative;
  width: 30px;
  height: 22px;
  margin: -6px;
}

.menu-toggle__line {
  position: absolute;
  left: 6px;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 240ms cubic-bezier(.4, 0, .2, 1);
}

.menu-toggle__line:nth-child(1) { top: 8px; }
.menu-toggle__line:nth-child(2) { top: 14px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.menu-panel {
  --menu-foreground: rgb(var(--line-rgb) / 90%); /* 昼：幕（カーテン）がページより一段暗いので、文字は濃いめ */
  position: fixed;
  z-index: 1;
  inset: 0 var(--menu-scrollbar-width, 0px) 0 0;
  display: grid;
  place-items: center;
  place-items: safe center;
  width: auto;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding:
    calc(72px + env(safe-area-inset-top, 0px))
    clamp(24px, 8vw, 72px);
  border: 0;
  /* シャッター（幕）として、ページの背景とは別の、一段濃い1色にする */
  background: var(--curtain);
  color: var(--teal);
  box-shadow: none;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 330ms cubic-bezier(.65, 0, .35, 1) 110ms,
    visibility 0s linear 440ms;
}

.menu-panel.is-open {
  clip-path: inset(0);
  visibility: visible;
  transition:
    clip-path 360ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

html.menu-open {
  padding-right: var(--menu-scrollbar-width, 0px);
  background: var(--curtain);
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle__line { transition: none; }
  .menu-panel,
  .menu-links li { transition: none; }
  .home-main { animation: none; }
}

[hidden] { display: none !important; }

a { color: var(--teal); }
a:focus-visible {
  outline: 1px solid var(--teal);
  outline-offset: 4px;
}
.menu-links {
  width: min(100%, 560px);
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-8px);
}

.menu-links li {
  opacity: 0;
  transform: translateY(-9px);
  transition: opacity 80ms ease-out, transform 120ms ease-out;
}

.menu-panel.is-open .menu-links li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--menu-delay, 80ms);
}

.menu-links a,
.menu-links [aria-current="page"] {
  display: block;
  padding: 9px 2px;
  color: var(--menu-foreground);
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.6;
  letter-spacing: .07em;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease;
}
.menu-social {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding: 8px 2px;
}
.menu-links .menu-instagram {
  display: block;
  width: 1.45em;
  height: 1.45em;
  padding: 0;
  color: var(--menu-foreground);
  opacity: 1;
}
.menu-instagram svg {
  display: block;
  width: 100%;
  height: 100%;
}
.menu-links a:hover { color: var(--hover); }
.menu-links [aria-current="page"] {
  color: var(--menu-foreground);
  cursor: default;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: .5em;
}
.page-body {
  display: block;
  padding: 120px 24px 64px;
  font-family: var(--font-sans);
}
/* 左上の羽（ホームへ戻る）：メニューボタンと同じく画面に固定し、スクロールしても見えるようにする。
   メニューを開いたときは幕（ヘッダー：z-index 10）の下に隠れる */
.site-name {
  position: fixed;
  z-index: 9;
  top: calc(24px + env(safe-area-inset-top, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  display: block;
  width: 34px;
  height: 34px;
}
.site-name img {
  display: block;
  width: 100%;
  height: 100%;
}
.page-content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.page-content h1 {
  font-size: clamp(36px, 7vw, 56px);
  overflow-wrap: anywhere;
}
.page-content h2 {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: .05em;
}
.page-content p,
.page-content li,
.page-content td,
.page-content th {
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--text);
}
.page-content p { margin: 16px 0 0; }
.page-content .page-label {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  letter-spacing: .12em;
}
.page-content section { margin-top: 48px; }
.page-content ul,
.page-content ol { margin: 0; padding-left: 1.4em; }
.page-content li + li { margin-top: 8px; }
.page-content .page-status { color: var(--text-muted); }
.service-examples strong {
  display: block;
  color: var(--teal);
  font-weight: 400;
  letter-spacing: .05em;
}
.service-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.service-content a:not(.button):hover { color: var(--hover); }
.service-packages { margin-top: 24px; }
.service-package {
  padding: 24px 0;
  border-top: 1px solid rgb(var(--line-rgb) / 14%);
}
.service-package:last-child { border-bottom: 1px solid rgb(var(--line-rgb) / 14%); }
.service-package h3 {
  margin: 0;
  color: var(--teal);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.8;
}
.service-package p { margin-top: 12px; }
.service-package a {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--fs-base);
  line-height: 1.8;
}
.collaborator-link a {
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.collaborator-link a:hover { color: var(--hover); }
.collaborator-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgb(var(--line-rgb) / 10%);
}
.collaborator-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 160ms ease;
}
.collaborator-thumbnail:hover img { opacity: .9; }
.form-note {
  color: var(--text-muted) !important;
  font-size: var(--fs-sm) !important;
}
.contact-form { margin-top: 40px; }
.form-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.form-field + .form-field { margin-top: 24px; }
.form-field label,
.form-consent label {
  display: block;
  color: var(--teal);
  font-size: var(--fs-base);
  line-height: 1.7;
  letter-spacing: .04em;
}
.field-requirement {
  margin-left: 6px;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
}
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgb(var(--line-rgb) / 22%);
  border-radius: 0;
  background: rgb(var(--field-rgb) / 65%);
  color: var(--teal);
  font: inherit;
  font-size: var(--fs-input);
  line-height: 1.6;
}
.form-field textarea {
  min-height: 180px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  outline: 1px solid var(--teal);
  outline-offset: 2px;
}
.form-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 28px;
}
.form-consent input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--teal);
}
.form-consent a,
.complete-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.form-actions { margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid var(--teal);
  border-radius: 0;
  background: var(--teal);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.button:hover {
  border-color: var(--hover);
  background: var(--hover);
  color: var(--mist);
}
.button:focus-visible {
  outline: 1px solid var(--teal);
  outline-offset: 3px;
}
.estimate-content { max-width: 760px; }
.estimate-form { margin-top: 32px; }
.estimate-content [hidden] { display: none !important; }
/* 各ステップは、Design Tools（Hue & Harmony など）と同じ枠（細い線・角丸・内側20px）で囲む */
.estimate-step {
  min-width: 0;
  margin: 16px 0 0;
  padding: 0 20px 20px;
  border: 1px solid rgb(var(--line-rgb) / 22%);
  border-radius: 10px;
}
/* legend は枠線の上に乗らないよう float で通常の流れに入れ、中身はその下から始める */
.estimate-step legend {
  float: left;
  width: 100%;
  margin: 0 0 12px;
  padding: 20px 0 0;
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .03em;
}
.estimate-step > :not(legend) { clear: both; }
.estimate-step legend span { margin-right: .3em; }
.estimate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.estimate-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  min-width: 0;
  position: relative;
  padding: 14px 16px;
  border: 1px solid rgb(var(--line-rgb) / 22%);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.estimate-option:hover { border-color: rgb(var(--line-rgb) / 48%); }
.estimate-option:has(input:checked) { border-color: var(--teal); background: var(--teal); }
.estimate-option:has(input:checked) .estimate-option__name { color: rgb(var(--field-rgb)); }
.estimate-option:has(input:checked) .estimate-option__description { color: rgb(var(--field-rgb) / 80%); }
.estimate-option:has(input:focus-visible) { outline: 1px solid var(--teal); outline-offset: 2px; }
/* ラジオボタン自体は見せず、枠全体を選択ボタンにする（キーボード操作はそのまま使える） */
.estimate-option input { position: absolute; opacity: 0; pointer-events: none; }
.estimate-option__name {
  color: var(--teal);
  font-size: var(--fs-base);
  line-height: 1.7;
  letter-spacing: .04em;
}
.estimate-option__description {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  letter-spacing: .03em;
}
.estimate-included {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid rgb(var(--line-rgb) / 25%);
}
.estimate-included h2 { margin: 0; font-size: var(--fs-base); }
.estimate-included p { margin-top: 8px; font-size: var(--fs-base); }
.estimate-field {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
/* ステップ内で最初に見えている欄は、上の余白をなくす（依頼の種類によって先頭の欄が変わるため） */
.estimate-step > div > .estimate-field:first-child { margin-top: 0; }
.estimate-step > div:not([hidden]) ~ div:not([hidden]) > .estimate-field:first-child { margin-top: 24px; }
.estimate-field label { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.8; }
.estimate-service label,
.estimate-check {
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.8;
}
.estimate-field input,
.estimate-field select,
.estimate-field textarea,
.estimate-subfield textarea,
.estimate-service select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgb(var(--line-rgb) / 22%);
  border-radius: 6px;
  background: rgb(var(--field-rgb) / 65%);
  color: var(--teal);
  font: inherit;
  font-size: var(--fs-input);
  line-height: 1.7;
}
.estimate-field textarea { resize: vertical; }
/* 項目に紐づく追加の入力欄（例：外部サービスでしたいこと）。同じ行の中に置き、下線は付けない */
.estimate-subfield {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}
.estimate-service .estimate-subfield label {
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.estimate-subfield textarea { resize: vertical; }
.estimate-field--quantity input { max-width: 180px; }
.estimate-form input:focus-visible,
.estimate-form select:focus-visible,
.estimate-form textarea:focus-visible {
  outline: 1px solid var(--teal);
  outline-offset: 3px;
}
.estimate-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgb(var(--line-rgb) / 12%);
}
/* 枠の中では、行の区切りは上側だけに引く（一番下の行の線が枠と二重にならないように） */
.estimate-service p { margin-top: 6px; font-size: var(--fs-sm); color: var(--text-muted); }
.estimate-step-note { margin: 0 0 8px !important; }
.estimate-step:has(.estimate-service) > .estimate-step-note {
  margin-bottom: 0 !important;
  padding-bottom: 18px;
}
.estimate-update {
  padding: 16px 0;
  border-top: 1px solid rgb(var(--line-rgb) / 12%);
}
.estimate-check {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
.estimate-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal);
}
.estimate-update .estimate-field { margin: 8px 0 0 28px; }
/* ご相談内容（結果）は入力ではないので枠を付けず、上に余白を取って区切る */
.estimate-result { margin-top: 48px !important; padding: 0 4px; }
.estimate-result h2 { margin: 0; color: var(--teal); font-family: var(--font-sans); font-size: var(--fs-h2); font-weight: 400; line-height: 1.6; letter-spacing: .03em; }
.estimate-summary { margin: 20px 0 0; }
.estimate-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(var(--line-rgb) / 10%);
  font-size: var(--fs-base);
  line-height: 1.8;
}
.estimate-summary > div:last-child { border-bottom: 0; } /* 下の概算の区切り線と二重にしない */
.estimate-summary dt { color: var(--text-muted); }
.estimate-summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.estimate-result .button { margin-top: 28px; border-radius: 6px; } /* ツールのボタンと同じ角丸 */
.estimate-notes { margin-top: 12px !important; padding: 0 4px; }
.estimate-notes ul { margin: 0; padding: 0; list-style: none; }
.estimate-notes li { margin: 8px 0 0 !important; padding-left: 1.2em; text-indent: -1.2em; color: var(--text-muted) !important; font-size: var(--fs-base) !important; }
.estimate-notes li::before { content: "※ "; }
.complete-content { max-width: 640px; }
.complete-action { margin-top: 32px !important; }
.privacy-content { max-width: 720px; }
.privacy-content h3 {
  margin: 24px 0 8px;
  color: var(--teal);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .03em;
}
.privacy-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.privacy-content a:hover { color: var(--hover); }
.site-footer {
  width: 100%;
  max-width: 720px;
  margin: 80px auto 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.footer-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.footer-separator span {
  height: 1px;
  background: rgb(var(--line-rgb) / 14%);
}
.footer-to-top {
  display: block;
  line-height: 0;
}
.footer-separator img {
  display: block;
  width: 34px;
  height: auto;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  align-items: center;
  margin-top: 16px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  letter-spacing: .06em;
}
.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-meta a:hover { color: var(--teal); }
.footer-meta small { font: inherit; }
body:not(.page-body) .site-footer {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(720px, calc(100vw - 48px));
  margin: 0;
  transform: translateX(-50%);
}
.policy-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 28px;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.palette {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}
.palette th, .palette td {
  padding: 10px 6px;
  border-bottom: 1px solid rgb(var(--line-rgb) / 12%);
  text-align: left;
  font-weight: 400;
}
.palette th { color: var(--teal); }
.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 1px solid rgb(var(--line-rgb) / 15%);
  vertical-align: -.15em;
  background: var(--swatch);
}
@media (prefers-reduced-motion: reduce) {
  .menu-links a,
  .collaborator-thumbnail img,
  .button,
  .estimate-option { transition: none; }
}
@media (max-width: 620px) {
  .estimate-options { grid-template-columns: minmax(0, 1fr); }
  .estimate-service { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .estimate-summary > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .estimate-result { padding: 24px 20px; }
}

/* メニューの開閉グループ（Design Tools など） */
.menu-group__toggle {
  display: block;
  width: 100%;
  padding: 9px 2px;
  border: 0;
  background: none;
  color: var(--menu-foreground);
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.6;
  letter-spacing: .07em;
  text-align: center;
  cursor: pointer;
  transition: color 160ms ease;
}
.menu-group__toggle::after {
  content: "";
  display: inline-block;
  width: .38em;
  height: .38em;
  margin-left: .55em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-.25em) rotate(45deg);
  transition: transform 200ms ease;
}
.menu-group__toggle[aria-expanded="true"]::after { transform: translateY(-.05em) rotate(-135deg); }
.menu-group__toggle::after { transition-duration: 400ms; }
.menu-group__toggle:hover { color: var(--hover); }
.menu-group__toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.menu-sub {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.menu-panel.is-open .menu-sub li { opacity: 1; transform: none; }
/* グループの開閉アニメーション（menu.js の animateGroup）。開くときは0.5秒、閉じるときは0.4秒 */
.menu-sub {
  overflow: hidden;
  transition: height 500ms cubic-bezier(.22, 1, .36, 1);
}
.menu-sub.is-collapsed { transition-duration: 400ms; transition-timing-function: cubic-bezier(.65, 0, .35, 1); }
.menu-panel.is-open .menu-sub li {
  transition: opacity 280ms ease 120ms, transform 360ms cubic-bezier(.22, 1, .36, 1) 120ms;
}
.menu-panel.is-open .menu-sub li + li { transition-delay: 200ms; }
.menu-panel.is-open .menu-sub.is-collapsed li {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 240ms ease;
}
.menu-links .menu-sub a,
.menu-links .menu-sub [aria-current="page"] {
  padding: 5px 2px;
  font-size: clamp(15px, 1.9vw, 18px);
}
@media (prefers-reduced-motion: reduce) {
  .menu-group__toggle, .menu-group__toggle::after, .menu-sub, .menu-panel.is-open .menu-sub li { transition: none; }
}

/* 見積もりの概算 */
.estimate-price { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(var(--line-rgb) / 14%); }
.estimate-price__title { margin: 0; color: var(--teal); font-size: var(--fs-base); font-weight: 400; letter-spacing: .05em; }
.estimate-price__title + .estimate-price__total,
.estimate-price__title + .estimate-price__monthly { margin-top: 6px !important; }
.estimate-price__total { color: var(--teal) !important; font-family: Georgia, "Times New Roman", serif; font-size: clamp(24px, 4.5vw, 32px) !important; letter-spacing: .02em !important; line-height: 1.4 !important; }
.estimate-price__monthly { color: var(--teal) !important; font-size: var(--fs-h2) !important; }
.estimate-price__tax { margin-top: 2px !important; color: var(--text-muted) !important; font-size: var(--fs-sm) !important; }
.estimate-price__lines { margin: 16px 0 24px; }
.estimate-price__lines > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px;
  padding: 7px 0; border-bottom: 1px solid rgb(var(--line-rgb) / 10%);
  font-size: var(--fs-base); line-height: 1.7;
}
.estimate-price__lines dt { color: var(--text); }
.estimate-price__lines dd { margin: 0; color: var(--teal); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.estimate-price .estimate-price__notes { margin: 0 0 8px; padding: 0; list-style: none; }
.estimate-price__notes li { padding-left: 1.2em; text-indent: -1.2em; font-size: var(--fs-sm) !important; line-height: 1.8 !important; color: var(--text-muted) !important; }
.estimate-price__notes li::before { content: "※ "; }
@media (max-width: 620px) {
  .estimate-price__lines > div { grid-template-columns: minmax(0, 1fr); }
  .estimate-price__lines dd { text-align: left; }
}

/* ナイトモード（theme.js が html[data-theme="night"] を付ける）
   色を反転するのではなく、変数を夜の値に差し替える
   背景：夜空の青を薄く加えたグレー。昼と同じく中央（--mist）から外側（--silt）へのグラデーション
   周辺減光：色が縁に溜まって汚れに見えないよう、黒に近い青黒にする */
html[data-theme="night"] {
  color-scheme: dark;
  --silt: #34373d;
  --mist: #3b3e44; /* 外側 #34373d から赤・緑・青をそろって+7。段差の位置が3色で一致し、色づいた縞が出ないように */
  --teal: #f2f2f2;
  --text: #e2e2e5;
  --text-muted: #b9b9be;
  --hover: #f6dc9c; /* ムーン */
  --curtain: #2d3136; /* 全画面メニューの幕：ミッドナイトより一段暗い色 */
  --line-rgb: 242 242 242;
  --field-rgb: 42 45 51;
}
html[data-theme="night"] body::before {
  background: radial-gradient(circle farthest-corner at 50% 50%, transparent 35%, rgb(6 9 15 / 0.13%) 40.42%, rgb(6 9 15 / 0.92%) 45.83%, rgb(6 9 15 / 2.69%) 51.25%, rgb(6 9 15 / 5.46%) 56.67%, rgb(6 9 15 / 9.01%) 62.08%, rgb(6 9 15 / 13.00%) 67.50%, rgb(6 9 15 / 16.99%) 72.92%, rgb(6 9 15 / 20.54%) 78.33%, rgb(6 9 15 / 23.31%) 83.75%, rgb(6 9 15 / 25.08%) 89.17%, rgb(6 9 15 / 25.87%) 94.58%, rgb(6 9 15 / 26.00%) 100.00%);
}
/* ロゴ（単色のティール）は、夜は明るい色で表示する */
html[data-theme="night"] .home-logo__image,
html[data-theme="night"] .site-name img,
html[data-theme="night"] .footer-separator img { filter: brightness(0) invert(.92); }

/* 夜のグロー（明るい文字やロゴの周りに、光がふわっと広がるにじみ。球面収差のような薄いベール）
   芯の小さい影と、大きく薄い影を明るい色で2重にかける。大きく明るい要素ほど目立つので、
   ロゴ・見出しは「弱」、本文は「微」。夜のレンズ表現は html[data-lens]（theme.js が付ける。Design Toolsで白・ライトグレーの背景を選んだときは付かない）
   夜の倍率色収差（lens.js が --ca-x / --ca-y を要素ごとに入れる）：ロゴ・メニューボタン・開いたメニューの項目に、
   中心から外へ向かう方向に赤、内側にシアンの縁取り。画面の中心ではゼロ、周辺ほど強い */
html[data-lens] {
  --ca-red: rgb(255 70 60 / 50%);   /* 倍率色収差：外側の縁 */
  --ca-cyan: rgb(0 220 255 / 50%);  /* 倍率色収差：内側の縁 */
  --glow-weak: 0 0 1.5px rgb(242 242 242 / 25%), 0 0 6px rgb(242 242 242 / 8%);
  --glow-faint: 0 0 1px rgb(242 242 242 / 18%), 0 0 4px rgb(242 242 242 / 6%);
}
/* 夜のメニューの文字は従来どおり78%（明るい文字なので、これで十分読める） */
html[data-lens] .menu-panel { --menu-foreground: rgb(var(--line-rgb) / 78%); }
html[data-lens] body {
  text-shadow: var(--glow-faint);
}
html[data-lens] :where(h1, h2, h3, legend, .menu-links a, .menu-links [aria-current="page"], .menu-group__toggle, .estimate-price__total) {
  text-shadow: var(--glow-weak);
}
/* 開いたメニューの項目（文字が大きく太め）と、Instagramのアイコンにも倍率色収差 */
html[data-lens] :is(.menu-links a, .menu-links [aria-current="page"], .menu-group__toggle) {
  text-shadow:
    var(--ca-x, 0) var(--ca-y, 0) 0 var(--ca-red),
    calc(var(--ca-x, 0px) * -1) calc(var(--ca-y, 0px) * -1) 0 var(--ca-cyan),
    var(--glow-weak);
}
html[data-lens] .menu-instagram svg {
  filter:
    drop-shadow(var(--ca-x, 0) var(--ca-y, 0) 0 var(--ca-red))
    drop-shadow(calc(var(--ca-x, 0px) * -1) calc(var(--ca-y, 0px) * -1) 0 var(--ca-cyan));
}
/* [data-theme] を重ねているのは、color-designer.css の html[data-cd-dark] のロゴ指定より強くするため */
html[data-theme="night"][data-lens] :is(.home-logo__image, .site-name img, .footer-separator img) {
  filter: brightness(0) invert(.92)
    drop-shadow(var(--ca-x, 0) var(--ca-y, 0) 0 var(--ca-red))
    drop-shadow(calc(var(--ca-x, 0px) * -1) calc(var(--ca-y, 0px) * -1) 0 var(--ca-cyan))
    drop-shadow(0 0 1.5px rgb(242 242 242 / 25%)) drop-shadow(0 0 6px rgb(242 242 242 / 8%));
}
/* トップの大きなロゴだけ、グローを強めに（弱と中の間）。.home-logo を重ねているのは、上の共通指定より強くするため */
html[data-theme="night"][data-lens] .home-logo .home-logo__image {
  filter: brightness(0) invert(.92)
    drop-shadow(var(--ca-x, 0) var(--ca-y, 0) 0 var(--ca-red))
    drop-shadow(calc(var(--ca-x, 0px) * -1) calc(var(--ca-y, 0px) * -1) 0 var(--ca-cyan))
    drop-shadow(0 0 1.75px rgb(242 242 242 / 40%)) drop-shadow(0 0 8px rgb(242 242 242 / 16%));
}
/* メニューボタン：線そのものは「×」に回転するので、回転していないアイコンの箱にかけて、縁取りの向きを画面基準に保つ
   （--ca-x / --ca-y は lens.js がボタンに入れ、箱が受け継ぐ） */
html[data-lens] .menu-toggle__icon {
  filter:
    drop-shadow(var(--ca-x, 0) var(--ca-y, 0) 0 var(--ca-red))
    drop-shadow(calc(var(--ca-x, 0px) * -1) calc(var(--ca-y, 0px) * -1) 0 var(--ca-cyan));
}
/* フッターの After dark（文字とスイッチ）：小さい文字が画面の下端近くにあり、ずれが線の太さを超えると
   赤・白・シアンの3本に分かれて見えるため、ずれを半分にする */
html[data-lens] .theme-toggle > span:first-child {
  text-shadow:
    calc(var(--ca-x, 0px) * .5) calc(var(--ca-y, 0px) * .5) 0 var(--ca-red),
    calc(var(--ca-x, 0px) * -.5) calc(var(--ca-y, 0px) * -.5) 0 var(--ca-cyan),
    var(--glow-faint);
}
html[data-lens] .theme-toggle__switch {
  filter:
    drop-shadow(calc(var(--ca-x, 0px) * .5) calc(var(--ca-y, 0px) * .5) 0 var(--ca-red))
    drop-shadow(calc(var(--ca-x, 0px) * -.5) calc(var(--ca-y, 0px) * -.5) 0 var(--ca-cyan));
}
/* 明るい面に暗い文字のボタンには、にじみをかけない */
html[data-theme="night"] .button { text-shadow: none; }

/* フッターのナイトモード切り替え */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.theme-toggle__switch {
  position: relative;
  width: 26px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 7px;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.theme-toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 160ms ease;
}
/* オン（夜）：枠の中をスターの色（白）で塗り、つまみは背景の色で抜く。オフ（昼）：枠線だけで、つまみは文字の色 */
.theme-toggle[aria-pressed="true"] .theme-toggle__switch {
  border-color: var(--teal);
  background: var(--teal);
}
.theme-toggle[aria-pressed="true"] .theme-toggle__switch::after {
  transform: translateX(12px);
  background: var(--silt);
}
.theme-toggle:hover { color: var(--teal); }
.theme-toggle:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .theme-toggle__switch, .theme-toggle__switch::after { transition: none; }
}
/* 昼夜を切り替えたときは、画面全体をふわっと入れ替える（View Transitions に対応したブラウザのみ。theme.js） */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 1500ms;
  animation-timing-function: ease;
}
