/* =========================================================
   ここからlab. — サイト全体のスタイル
   色はすべてヘッダー画像（水彩）から取っています。
   ========================================================= */

:root {
  /* 紙と水彩 */
  --paper: #fcfbf7;        /* 画像の白い余白。ページの地 */
  --mist: #eaf5f6;         /* 水彩の青をうすく溶いた色 */
  --sand: #f6efe2;         /* 画像右下の生成り・砂色 */
  --aqua: #a4dbe5;         /* 水彩の青（飾りにだけ使う） */

  /* 文字 — シルエットの青灰色を深くした色 */
  --ink: #2b4150;
  --ink-soft: #506b7a;

  /* お茶の色 — 小さなアクセントにだけ使う */
  --tea: #b06d34;
  --tea-text: #8a5226;

  --line: rgba(43, 65, 80, 0.14);

  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;

  --measure: 36rem;
  --wide: 64rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 2;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  font-feature-settings: "palt";
  word-break: auto-phrase;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--tea);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-thickness 0.2s, color 0.2s;
}
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

/* 改行の調整：PCだけ / スマホだけ */
@media (max-width: 640px) { .pc { display: none; } }
@media (min-width: 641px) { .sp { display: none; } }

/* 仮の文字（公開前に差し替えるところ） */
.ph {
  background: rgba(176, 109, 52, 0.12);
  border-bottom: 1px dashed var(--tea);
  padding: 0 0.15em;
}

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--paper);
}
.site-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.35;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}
.brand__sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
}
.site-nav a {
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--tea); }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(43, 65, 80, 0.25);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .js .site-nav a {
    display: block;
    padding: 0.7rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav li:last-child a { border-bottom: 0; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .brand__name { font-size: 1.2rem; }
  .brand__sub { font-size: 0.66rem; letter-spacing: 0.04em; }
}

/* ---------------------------------------------------------
   トップの画像
   --------------------------------------------------------- */
.hero {
  position: relative;
  margin: 0;
}
.hero img {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
  object-position: center 58%;
}
/* 画像の下端を紙ににじませる */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(to bottom, rgba(252, 251, 247, 0), var(--paper));
  pointer-events: none;
}

/* ---------------------------------------------------------
   旗印の言葉
   --------------------------------------------------------- */
.lead {
  text-align: center;
  padding: 0.5rem var(--gutter) 0;
  margin-top: -1.5rem;
  position: relative;
}
.lead h1 {
  font-weight: 500;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  letter-spacing: 0.14em;
}
.lead p {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 2;
}

/* ---------------------------------------------------------
   二つの扉
   --------------------------------------------------------- */
.doors {
  max-width: var(--wide);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  padding: clamp(1.9rem, 3.5vw, 2.6rem) clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.2rem);
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
/* 水彩の紙を、額のマットのように縁どる */
.door::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  pointer-events: none;
}
.door--support {
  background-image:
    linear-gradient(to bottom, rgba(252, 251, 247, 0.2), rgba(252, 251, 247, 0.74) 50%, rgba(252, 251, 247, 0.88)),
    url("../images/wash-aqua.webp");
}
.door--everyday {
  background-image:
    linear-gradient(to bottom, rgba(252, 251, 247, 0.1), rgba(252, 251, 247, 0.7) 50%, rgba(252, 251, 247, 0.86)),
    url("../images/wash-sand.webp");
}
.door:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -22px rgba(43, 65, 80, 0.45);
}
.door__for {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 0;
}
.door__title {
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  line-height: 1.75;
  margin: 0.6rem 0 1.1rem;
}
.door__title a { text-decoration: none; }
/* 扉全体を押せるようにする */
.door__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.door__title a:focus-visible { outline: none; }
.door:focus-within { outline: 2px solid var(--tea); outline-offset: 4px; }
.door__text {
  font-size: 0.95rem;
  line-height: 1.95;
  flex: 1;
  margin: 0;
}
.door__go {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  align-self: flex-start;
  border-bottom: 1px solid var(--tea);
  padding-bottom: 0.15rem;
}
.door__go span {
  display: inline-block;
  margin-left: 0.4em;
  transition: transform 0.3s ease;
}
.door:hover .door__go span { transform: translateX(4px); }

.to-org {
  text-align: center;
  margin: 2.25rem auto 0;
  padding: 0 var(--gutter);
  font-size: 0.95rem;
  line-height: 1.9;
}
.to-org small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
}

/* ---------------------------------------------------------
   セクション
   --------------------------------------------------------- */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) var(--gutter);
}
.section--mist {
  background: linear-gradient(to bottom, var(--paper), var(--mist) 5rem, var(--mist) calc(100% - 5rem), var(--paper));
}
.section--sand {
  background: linear-gradient(to bottom, var(--paper), var(--sand) 5rem, var(--sand) calc(100% - 5rem), var(--paper));
}
.section__inner {
  max-width: var(--measure);
  margin: 0 auto;
}
.section__inner--wide { max-width: 52rem; }

.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-bottom: 1.6rem;
}
.section h3 {
  font-size: 1.15rem;
  margin: 2.4rem 0 0.8rem;
}
.center { text-align: center; }

/* 本文の中の、少し語りかける文 */
.prose p { text-indent: 1em; }
.prose p.no-indent { text-indent: 0; }

.quiet {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* はじめての方へ：要点の一覧（カードではなく、罫線で区切る） */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts > div:nth-child(even) { padding-left: 1.5rem; padding-right: 0; }
.facts dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.facts dd { margin: 0; line-height: 1.9; }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div,
  .facts > div:nth-child(even) { padding: 1.1rem 0; border-right: 0; }
  .facts > div:nth-child(odd) { border-right: 0; }
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
}

/* ボタン */
.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.85em 1.8em;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: background-color 0.2s;
}
.button:hover { background: #1f313d; }
.button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.button--ghost:hover { background: rgba(43, 65, 80, 0.06); }

/* カウンセラー紹介（トップ） */
.person__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  margin: 0 0 1rem;
  text-align: center;
}
.person__name small {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-left: 0.9rem;
}

/* ---------------------------------------------------------
   下層ページの見出し帯
   --------------------------------------------------------- */
.page-head {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
  background:
    linear-gradient(to bottom, rgba(252, 251, 247, 0.15), rgba(252, 251, 247, 0.55) 55%, var(--paper)),
    url("../images/band.webp") center 70% / cover no-repeat;
  text-align: center;
}
.page-head h1 {
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.12em;
}
.page-head p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: 0.08em;
  line-height: 1.9;
  margin: 1rem auto 0;
  max-width: 34rem;
  word-break: auto-phrase;
}

/* 下層ページの本文 */
.page-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem var(--gutter) clamp(4rem, 8vw, 6rem);
}
.page-body > section + section { margin-top: clamp(3rem, 7vw, 4.5rem); }
.page-body h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.55rem);
  margin-bottom: 1.25rem;
}
.page-body h3 {
  font-size: 1.1rem;
  margin: 2rem 0 0.7rem;
}

/* 箇条書き：点ではなく、水彩の小さなにじみ */
.list {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}
.list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.65em;
  line-height: 1.9;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.75em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #c6e8ee, var(--aqua) 70%);
  opacity: 0.95;
}
.list--warm li::before { background: radial-gradient(circle at 40% 40%, #f3dcc2, #dcae80 75%); }

/* 順番のある流れ */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.8rem 3.2rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 2rem;
  text-align: center;
  color: var(--ink-soft);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.5rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--line);
}
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.85;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
}
td.num { white-space: nowrap; font-feature-settings: "tnum"; }

/* 定義の一覧（特商法・経歴など） */
.deflist { margin: 0; }
.deflist > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.deflist > div:first-child { border-top: 1px solid var(--line); }
.deflist dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.deflist dd { margin: 0; font-size: 0.96rem; line-height: 1.9; }
@media (max-width: 640px) {
  .deflist > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* 注意書きの箱 */
.note-box {
  background: var(--sand);
  border-radius: 4px;
  padding: 1.5rem 1.6rem;
  margin: 1.8rem 0;
}
.note-box h3 { margin-top: 0; font-size: 1.05rem; }
.note-box .list { margin-bottom: 0; }
.note-box--mist { background: var(--mist); }

/* ご予約への案内 */
.cta {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding: 2rem 1.75rem;
  text-align: center;
  border-radius: 4px;
  background:
    linear-gradient(rgba(252, 251, 247, 0.78), rgba(252, 251, 247, 0.78)),
    url("../images/wash-aqua.webp") center / cover;
}
.cta p { margin-bottom: 1.2rem; }
.cta .links-row { justify-content: center; margin-top: 1.25rem; }

/* よくある質問 */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.25rem 1.15rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 1.4rem; font-size: 0.97rem; }
@media (max-width: 640px) {
  .faq summary { letter-spacing: 0.02em; font-size: 0.98rem; }
}

/* ---------------------------------------------------------
   危機時の案内とフッター
   --------------------------------------------------------- */
.crisis {
  max-width: 52rem;
  margin: 0 auto clamp(3rem, 6vw, 4rem);
  padding: 0 var(--gutter);
}
.crisis__box {
  background: var(--sand);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.5vw, 2.2rem) clamp(1.4rem, 3.5vw, 2.4rem);
}
.crisis h2 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}
.crisis p { font-size: 0.94rem; line-height: 1.95; }
.crisis ul {
  list-style: none;
  margin: 1rem 0 1.2rem;
  padding: 0;
  font-size: 0.94rem;
  line-height: 1.85;
}
.crisis li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(43, 65, 80, 0.12);
}
.crisis li:first-child { border-top: 1px solid rgba(43, 65, 80, 0.12); }
.crisis li strong { font-weight: 700; margin-right: 0.6em; }
.crisis .tel { font-feature-settings: "tnum"; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.crisis li small { display: block; color: var(--ink-soft); font-size: 0.85rem; }

.site-footer {
  background: linear-gradient(to bottom, var(--paper), var(--mist) 4rem);
  padding: clamp(3rem, 6vw, 4rem) var(--gutter) 2rem;
}
.site-footer__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem 3rem;
}
.site-footer .brand__name { font-size: 1.2rem; }
.site-footer p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.9; margin-top: 0.6rem; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-nav li { margin-bottom: 0.6rem; break-inside: avoid; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--tea); }
.copyright {
  max-width: 64rem;
  margin: 2.5rem auto 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .footer-nav ul { columns: 1; }
}

/* 動きを減らす設定の方には、動きを止める */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .door:hover { transform: none; }
}
