/* ============================================================
   めぐりの家 デザイン案D「色がもどる」
   桜島の実写真を主役にしたエディトリアル系スタイル
   ============================================================ */

:root {
  --color-bg: #faf7f2;
  --color-text: #2d3237;
  --color-accent: #2f6e8d;
  --color-muted: #6f7a84;
  --color-line: #cfc9be;

  --font-serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "BIZ UDMincho", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;

  --container-max: 1080px;
  --measure: 65ch;
  --section-gap: 88px;
  --header-height: 72px;
}

@media (min-width: 900px) {
  :root {
    --section-gap: 140px;
  }
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 900px) {
  .container {
    padding: 0 40px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 10px 16px;
  z-index: 300;
  transition: top 0.2s ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  height: var(--header-height);
  background: transparent;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 1px 0 var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav__list a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.nav__list a:hover,
.nav__list a:focus-visible {
  border-bottom-color: currentColor;
  opacity: 0.8;
}

/* ハンバーガーボタン（767px以下のみ表示） */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 220;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle__bar:nth-child(1) { top: 14px; }
.nav-toggle__bar:nth-child(2) { top: 19px; }
.nav-toggle__bar:nth-child(3) { top: 24px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

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

  /* メニュー展開中は象牙色オーバーレイの上に乗るため、×ボタンを濃色にする */
  .nav-toggle[aria-expanded="true"] {
    color: var(--color-text);
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .nav__list a {
    color: var(--color-text);
    font-family: var(--font-serif);
    font-size: 1.25rem;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ---------- 共通: セクション ---------- */
main {
  padding-top: 0;
}

.section {
  position: relative;
  /* ::before(水脈)のz-index:-1を「この章の背景の上・文字の下」に固定する */
  isolation: isolate;
  padding: var(--section-gap) 0;
  scroll-margin-top: var(--header-height);
}

/* 物語に連動した紙の色。各章の「終わりの色」を次章の「始まりの色」につなげ、
   水が上から下へ流れるようにひと続きのグラデーションにする */
#about   { background: linear-gradient(180deg, #f3f9f7 0%, #e7f1ef 100%); }
#why     { background: linear-gradient(180deg, #e7f1ef 0%, #dcebe8 100%); }
/* 幕間1(色あせ)以降: 色が抜けたグレー寄りの紙 */
#menu    { background: linear-gradient(180deg, #edebe6 0%, #e7e5e0 100%); }
#profile { background: linear-gradient(180deg, #e7e5e0 0%, #e1dfda 100%); }
#faq     { background: linear-gradient(180deg, #e1dfda 0%, #dcd9d3 100%); }
/* 幕間2(色もどり)以降: 色が戻った、あたたかい紙 */
#contact { background: linear-gradient(180deg, #f7edd8 0%, #f0e2c8 100%); }

/* 章の背景の水の気配（文字の下に敷く装飾レイヤー）
   1枚目: 章番号の後ろに「しずくの波紋」(オリジナルSVG・ゆっくり明滅)
   2枚目・3枚目: 輪郭のない「水たまりの光」(radial-gradient)
   レイヤー全体が30秒かけてゆっくり漂う */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: left -150px top 30px, right -140px top 90px, left -100px bottom -140px;
  background-size: 640px 240px, 560px 560px, 480px 480px;
  pointer-events: none;
  animation: water-drift 30s ease-in-out infinite alternate;
}

/* しずくの波紋SVG(章番号の後ろ)＋水たまりの光2つ。色は章の空気に合わせた3種 */
#about::before,
#why::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240' viewBox='0 0 640 240'%3E%3Cg fill='none' stroke='%236fa9b4' stroke-width='1'%3E%3Canimate attributeName='opacity' values='0.55;0.95;0.55' dur='11s' repeatCount='indefinite'/%3E%3Cellipse cx='320' cy='120' rx='70' ry='26' opacity='0.6'/%3E%3Cellipse cx='320' cy='120' rx='150' ry='56' opacity='0.42'/%3E%3Cellipse cx='320' cy='120' rx='230' ry='86' opacity='0.28'/%3E%3Cellipse cx='320' cy='120' rx='310' ry='116' opacity='0.16'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(closest-side, rgba(111, 169, 180, 0.26), rgba(111, 169, 180, 0) 72%),
    radial-gradient(closest-side, rgba(143, 192, 201, 0.22), rgba(143, 192, 201, 0) 72%);
}

#menu::before,
#profile::before,
#faq::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240' viewBox='0 0 640 240'%3E%3Cg fill='none' stroke='%23949ea6' stroke-width='1'%3E%3Canimate attributeName='opacity' values='0.55;0.95;0.55' dur='11s' repeatCount='indefinite'/%3E%3Cellipse cx='320' cy='120' rx='70' ry='26' opacity='0.6'/%3E%3Cellipse cx='320' cy='120' rx='150' ry='56' opacity='0.42'/%3E%3Cellipse cx='320' cy='120' rx='230' ry='86' opacity='0.28'/%3E%3Cellipse cx='320' cy='120' rx='310' ry='116' opacity='0.16'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(closest-side, rgba(148, 158, 166, 0.22), rgba(148, 158, 166, 0) 72%),
    radial-gradient(closest-side, rgba(167, 177, 184, 0.18), rgba(167, 177, 184, 0) 72%);
}

#contact::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240' viewBox='0 0 640 240'%3E%3Cg fill='none' stroke='%23c29a62' stroke-width='1'%3E%3Canimate attributeName='opacity' values='0.55;0.95;0.55' dur='11s' repeatCount='indefinite'/%3E%3Cellipse cx='320' cy='120' rx='70' ry='26' opacity='0.6'/%3E%3Cellipse cx='320' cy='120' rx='150' ry='56' opacity='0.42'/%3E%3Cellipse cx='320' cy='120' rx='230' ry='86' opacity='0.28'/%3E%3Cellipse cx='320' cy='120' rx='310' ry='116' opacity='0.16'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(closest-side, rgba(203, 166, 110, 0.22), rgba(203, 166, 110, 0) 72%),
    radial-gradient(closest-side, rgba(216, 185, 140, 0.18), rgba(216, 185, 140, 0) 72%);
}

/* スマホは小さめ・控えめに */
@media (max-width: 767px) {
  .section::before {
    background-position: left -170px top 14px, right -180px top 140px, left -140px bottom -160px;
    background-size: 480px 180px, 420px 420px, 380px 380px;
  }
}

@keyframes water-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(26px, 14px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .section::before {
    animation: none;
  }
}

/* 章の区切りは、同じ空気の章どうしの間だけ「ゆるい波の線」にする
   （写真の幕間が挟まる場所は線なしで写真に受け渡す） */
#about::after,
#menu::after,
#profile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cpath d='M0 7 Q30 3.5 60 7 T120 7' fill='none' stroke='%23bfb7a6' stroke-width='1'/%3E%3C/svg%3E") repeat-x center / 120px 14px;
  pointer-events: none;
}

.section-number {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 13vw, 7.5rem);
  line-height: 1;
  margin: 0 0 4px;
  /* 濃くなった紙色の上でも透かしとして見える濃度 */
  color: rgba(58, 72, 78, 0.14);
  letter-spacing: 0.02em;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  margin-bottom: 36px;
  text-wrap: balance;
}

.lead {
  max-width: var(--measure);
  margin-bottom: 48px;
  font-size: 1.0625rem;
  line-height: 1.95;
}

.note {
  margin-top: 48px;
  max-width: var(--measure);
  padding: 20px 24px;
  border-left: 2px solid var(--color-accent);
  /* 背景の装飾が文字の下に透けないよう、白寄りの不透明に近い紙にする */
  background: rgba(252, 253, 253, 0.72);
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--color-text);
}

/* ---------- 水のヴェール ----------
   ページ全体にかぶせる、目を凝らすとやっと分かる薄さの光の帯。
   2枚を別々の速さで上→下へ流し、水がゆっくりめぐっている気配を作る。
   transformのみのアニメなので描画負荷は小さい */
.water-veil {
  position: fixed;
  inset: 0;
  z-index: 150;
  overflow: hidden;
  pointer-events: none;
}

.water-veil::before,
.water-veil::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
}

.water-veil::before {
  height: 400vh;
  background: repeating-linear-gradient(
    180deg,
    rgba(80, 145, 172, 0) 0vh,
    rgba(80, 145, 172, 0.11) 35vh,
    rgba(116, 168, 188, 0.04) 60vh,
    rgba(80, 145, 172, 0) 100vh
  );
  animation: veil-flow-a 34s linear infinite;
}

.water-veil::after {
  height: 480vh;
  background: repeating-linear-gradient(
    180deg,
    rgba(96, 152, 165, 0) 0vh,
    rgba(96, 152, 165, 0.08) 54vh,
    rgba(80, 145, 172, 0.03) 92vh,
    rgba(96, 152, 165, 0) 140vh
  );
  animation: veil-flow-b 52s linear infinite;
}

/* パターン1周期ぶん(100vh / 140vh)だけ動かしてループさせる */
@keyframes veil-flow-a {
  from { transform: translateY(-100vh); }
  to   { transform: translateY(0); }
}

@keyframes veil-flow-b {
  from { transform: translateY(-140vh); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .water-veil::before,
  .water-veil::after {
    animation: none;
  }
}

/* ---------- 出現アニメ（JS有効時のみ・1回きり） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 22, 24, 0.4) 0%, rgba(20, 22, 24, 0) 18%),
    linear-gradient(to top, rgba(20, 22, 24, 0.78) 0%, rgba(20, 22, 24, 0.32) 45%, rgba(20, 22, 24, 0) 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 56px;
  padding-top: calc(var(--header-height) + 24px);
  color: #fff;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  /* 375px幅で「いのちは、めぐる。」が1行に収まる下限にする */
  font-size: clamp(1.85rem, 8vw, 4.5rem);
  text-wrap: balance;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero__sub {
  max-width: 34em;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: #fff;
  color: var(--color-text);
}

.btn--solid {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: transparent;
  color: #fff;
}

/* お問い合わせセクション内の送信ボタンは常時ダーク配色にする */
.contact-form .btn--solid {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.contact-form .btn--solid:hover,
.contact-form .btn--solid:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ---------- 番号付きリスト ---------- */
.numbered-list {
  display: flex;
  flex-direction: column;
}

.numbered-list__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--color-line);
}

.numbered-list__item:last-child {
  border-bottom: 1px solid var(--color-line);
}

.numbered-list__index {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.numbered-list__content h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.1875rem;
  margin-bottom: 12px;
  text-wrap: balance;
}

.numbered-list__content p {
  max-width: var(--measure);
}

@media (min-width: 900px) {
  .numbered-list__item {
    grid-template-columns: 88px 1fr;
  }
}

/* ---------- なぜセクションの円形写真装飾 ---------- */
.why-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.why-photo__circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-line);
}

.why-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 船と航跡（元画像の横88%・縦70%付近）を拡大して見せる */
  object-position: 88% 70%;
  transform: scale(2.5);
  transform-origin: 88% 70%;
  display: block;
}

.why-photo__caption {
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

@media (min-width: 900px) {
  .why-photo {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

/* ---------- 幕間（写真バンド） ---------- */
.interlude {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.interlude--fade {
  min-height: 60vh;
}

.interlude--return {
  min-height: 70vh;
}

.interlude__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 幕間1: 色あせ（常時グレースケール・アニメなし） */
.interlude--fade .interlude__img {
  filter: grayscale(0.9) saturate(0.45) brightness(0.92);
}

/* 幕間2: 色もどり。JS無効時はデフォルトでフルカラー */
.interlude--return .interlude__img {
  filter: none;
}

/* JSが有効な場合のみ、スクロール計算前の初期状態としてグレー化しておく
   （main.js が読み込まれた直後にスクロール位置に応じたfilterへ差し替える） */
html.js .interlude--return .interlude__img {
  filter: grayscale(1) saturate(0.4) brightness(0.92);
}

@media (prefers-reduced-motion: reduce) {
  html.js .interlude--return .interlude__img {
    filter: none;
  }
}

.interlude__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 19, 0.42);
}

.interlude__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 48px 24px;
}

.interlude__copy {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.375rem, 4.5vw, 2.25rem);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.interlude__note {
  max-width: 32em;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- メニュー / 料金 ---------- */
.price-list {
  border-top: 1px solid var(--color-line);
}

.price-list__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-line);
}

.price-list__info h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.price-list__info p {
  max-width: var(--measure);
}

.price-list__meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.price-list__time {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.price-list__amount {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  letter-spacing: 0.02em;
}

.menu-note {
  margin-top: 32px;
  max-width: var(--measure);
  font-size: 0.9375rem;
  color: var(--color-muted);
}

@media (min-width: 900px) {
  .price-list__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .price-list__meta {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    min-width: 160px;
  }
}

/* ---------- プロフィール ---------- */
.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.profile-portrait {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-line), var(--color-bg));
}

.profile-portrait__placeholder {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

.profile-body {
  max-width: var(--measure);
}

.profile-name {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.profile-title {
  font-size: 0.9375rem;
  color: var(--color-accent);
  margin-bottom: 28px;
}

.profile-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.profile-history li {
  padding-left: 20px;
  position: relative;
}

.profile-history li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--color-accent);
}

.profile-message {
  max-width: var(--measure);
}

@media (min-width: 900px) {
  .profile-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--color-line);
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-item summary {
  padding: 22px 32px 22px 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-item[open] summary {
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  border-color: var(--color-accent);
  transform: translateY(-35%) rotate(225deg);
}

.faq-item p {
  padding: 0 24px 26px 0;
  max-width: var(--measure);
}

/* ---------- お問い合わせ ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 560px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  border: none;
  border-bottom: 1px solid var(--color-muted);
  background: transparent;
  padding: 10px 2px;
  font-size: 1rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-accent);
}

.form-status {
  margin-top: 4px;
  padding: 14px 18px;
  border-left: 2px solid var(--color-accent);
  background: rgba(47, 110, 141, 0.05);
  font-size: 0.9375rem;
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 56px 0 64px;
  font-size: 0.875rem;
  /* お問い合わせ章の終わりの色を受け継ぐ */
  background: #f6eede;
}

.site-footer p {
  margin-bottom: 14px;
}

.site-footer__brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.site-footer__disclaimer {
  max-width: var(--measure);
  color: var(--color-muted);
  line-height: 1.8;
}

.site-footer__closing {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.site-footer__copyright {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--color-muted);
}
