@charset "UTF-8";

/* ==========================================================
   相続とお金の相談室（よしだ相続FP事務所）
   色や文字の大きさは、下の「色と大きさの設定」を書き換えれば
   サイト全体にまとめて反映されます。
   ========================================================== */

/* ----------------------------------------------------------
   色と大きさの設定
   ---------------------------------------------------------- */
:root {
  /* 生成り（きなり）の背景 */
  --color-bg: #faf6ef;
  --color-bg-alt: #f3ece0;

  /* 木の色。見出しの下線やアクセントに使う */
  --color-wood: #a9784b;
  --color-wood-dark: #855b34;

  /* 緑。ボタンやアイコンに使う */
  --color-green: #4a7a55;
  --color-green-dark: #37603f;

  /* 文字の色 */
  --color-text: #2e2a24;
  --color-text-muted: #5e574c;

  /* 枠線 */
  --color-line: #e3d9c8;

  --color-white: #ffffff;

  /* 本文の文字の大きさ。50代から70代の方が読みやすい大きさにしています */
  --font-size-base: 1.125rem;   /* 18px */

  /* 中身の最大幅 */
  --width-container: 1080px;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(70, 55, 35, 0.08);
}

/* ----------------------------------------------------------
   全体の土台
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの分だけ、リンク先が隠れないようにずらす */
  scroll-padding-top: 96px;
}

body {
  /* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
  word-break: auto-phrase;

  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.9;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

a {
  color: var(--color-green-dark);
}

/* 中身の横幅をそろえる箱 */
.container {
  width: 100%;
  max-width: var(--width-container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow {
  max-width: 780px;
}

/* アイコン（SVG）の共通設定。色はCSSで指定してサイト全体でそろえる */
.icon,
.card__icon svg,
.info__icon svg {
  width: 1.5em;
  height: 1.5em;
  stroke: currentColor;
  flex-shrink: 0;
}

/* キーボード操作で今どこにいるかがわかるようにする */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-wood);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   ボタン
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: bold;
  text-decoration: none;
  line-height: 1.5;
  text-align: center;
  transition: background-color 0.2s, transform 0.2s;
}

/* 予約用のメインボタン */
.btn--line {
  background-color: var(--color-green);
  color: var(--color-white);
  box-shadow: var(--shadow);
}

.btn--line:hover {
  background-color: var(--color-green-dark);
  transform: translateY(-2px);
}

/* 電話などの控えめなボタン */
.btn--ghost {
  background-color: var(--color-white);
  color: var(--color-wood-dark);
  border: 2px solid var(--color-wood);
}

.btn--ghost:hover {
  background-color: #f6efe4;
}

.btn--small {
  padding: 10px 18px;
  font-size: 1rem;
}

.btn--large {
  padding: 22px 44px;
  font-size: 1.25rem;
  width: 100%;
  max-width: 480px;
}

/* ----------------------------------------------------------
   ヘッダー
   ---------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 246, 239, 0.96);
  border-bottom: 1px solid var(--color-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.header__logo {
  font-weight: bold;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--color-text);
  line-height: 1.4;
}

.header__logo-sub {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--color-text-muted);
}

/* スマホ用のメニューボタン。パソコンでは隠す */
.header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 2px solid var(--color-line);
  border-radius: 8px;
  color: var(--color-text);
  cursor: pointer;
}

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

.nav__list {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav__list a:hover {
  border-bottom-color: var(--color-wood);
}

/* ----------------------------------------------------------
   ヒーロー（最初に見える画面）
   ---------------------------------------------------------- */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #f6efe2 0%, var(--color-bg) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--color-wood-dark);
  font-weight: bold;
  letter-spacing: 0.04em;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero__lead {
  margin: 0 0 28px;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__note {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hero__image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* 縦長の写真でも間延びしないように、高さを決めて切り抜く */
  object-fit: cover;
  max-height: 420px;
}

/* ----------------------------------------------------------
   セクション共通
   ---------------------------------------------------------- */
.section {
  padding: 72px 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.6;
  text-align: center;
}

/* 見出しの下に木の色の短い線を引く */
.section__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 16px auto 0;
  background-color: var(--color-wood);
  border-radius: 2px;
}

.section__lead {
  margin: 0 auto 40px;
  max-width: 720px;
  text-align: center;
  color: var(--color-text-muted);
}

.subsection__title {
  margin: 56px 0 24px;
  font-size: 1.3rem;
  text-align: center;
}

/* ----------------------------------------------------------
   カード（悩み・選ばれる理由）
   ---------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-wood-dark);
}

.card p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* アイコン付きのカード */
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background-color: #e8f0e6;
  color: var(--color-green-dark);
}

/* ----------------------------------------------------------
   悩みセクションの締め
   ---------------------------------------------------------- */
.worries__closing {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  padding: 28px;
  background-color: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
}

.worries__image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 260px;
}

.worries__message {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.9;
}

/* ----------------------------------------------------------
   写真とキャプション
   ---------------------------------------------------------- */
.figure {
  margin: 48px 0 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 380px;
}

.figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------
   プロフィール
   ---------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  margin-top: 56px;
  padding: 32px;
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.profile__photo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile__name {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--color-wood-dark);
}

.profile__body p {
  margin: 0 0 16px;
  font-size: 1rem;
}

.profile__subtitle {
  margin: 24px 0 12px;
  font-size: 1.05rem;
  padding-left: 12px;
  border-left: 4px solid var(--color-wood);
}

/* チェック印つきのリスト */
.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--color-green);
  border-bottom: 3px solid var(--color-green);
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------
   料金
   ---------------------------------------------------------- */
.price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.price__item {
  background-color: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

/* 主力メニューは枠を目立たせる */
.price__item--main {
  border-color: var(--color-green);
}

.price__name {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--color-wood-dark);
}

.price__value {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.price__value strong {
  font-size: 2rem;
  color: var(--color-green-dark);
}

.price__value span {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.price__note {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  text-align: left;
}

/* 行わないことのお知らせ */
.notice {
  margin-top: 28px;
  padding: 22px 26px;
  background-color: var(--color-white);
  border-left: 6px solid var(--color-wood);
  border-radius: 8px;
}

.notice__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.notice p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* ----------------------------------------------------------
   相談の流れ
   ---------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background-color: var(--color-green);
  color: var(--color-white);
  font-weight: bold;
  font-size: 1.15rem;
}

.steps__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.steps__item p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-muted);
  text-align: left;
}

/* ----------------------------------------------------------
   よくある質問
   ---------------------------------------------------------- */
.faq__item {
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq__q {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
}

/* JavaScriptが動く場合は、見出しの中身がボタンに置き換わる */
.faq__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: none;
  border: none;
  font: inherit;
  color: var(--color-wood-dark);
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}

.faq__button:hover {
  background-color: #faf6ef;
}

/* 開閉を示す記号。プラスとマイナスをCSSで描く */
.faq__mark {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 3px;
  background-color: var(--color-green);
  border-radius: 2px;
  transition: transform 0.2s;
}

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

/* 開いているときは横棒だけにする */
.faq__button[aria-expanded="true"] .faq__mark::after {
  transform: rotate(0deg);
}

.faq__q:not(:has(.faq__button)) {
  padding: 20px 22px;
  color: var(--color-wood-dark);
}

.faq__a {
  padding: 0 22px 20px;
}

.faq__a p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* JavaScriptで閉じた状態にする */
.faq__a[hidden] {
  display: none;
}

/* ----------------------------------------------------------
   予約とアクセス
   ---------------------------------------------------------- */
.section--contact {
  background-color: var(--color-bg-alt);
}

.contact__lead {
  margin-bottom: 32px;
}

.contact__cta {
  text-align: center;
  margin-bottom: 44px;
}

.contact__cta-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
}

.info__item {
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.info__item dt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.info__icon {
  color: var(--color-green-dark);
}

.info__item dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.info__item dd a {
  text-decoration: none;
}

.figure--room {
  margin-top: 40px;
}

/* ----------------------------------------------------------
   フッター
   ---------------------------------------------------------- */
.footer {
  background-color: #3b332a;
  color: #f0e9dd;
  padding: 40px 0 32px;
  text-align: center;
}

.footer p {
  margin: 0 0 10px;
}

.footer__name {
  font-weight: bold;
  font-size: 1.1rem;
}

.footer__meta {
  font-size: 0.98rem;
}

.footer__note {
  font-size: 0.9rem;
  color: #c9bfae;
  max-width: 680px;
  margin-inline: auto;
}

.footer__copy {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #a99e8c;
}

/* ==========================================================
   スマートフォン・タブレット向けの調整
   ここから下は画面が狭いときだけ効きます
   ========================================================== */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .worries__closing,
  .profile {
    grid-template-columns: 1fr;
  }

  .profile__photo {
    max-width: 200px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 80px;
  }

  .header__toggle {
    display: inline-flex;
  }

  /* スマホではメニューを折りたたむ。開くまで隠しておく */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

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

  .nav__list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-line);
    font-size: 1.05rem;
  }

  .nav .btn {
    margin-top: 14px;
  }

  .header__inner {
    position: relative;
    min-height: 68px;
  }

  .section {
    padding: 52px 0;
  }

  .hero {
    padding: 36px 0 44px;
  }

  /* スマホではボタンを横幅いっぱいにして押しやすくする */
  .hero__actions .btn {
    width: 100%;
  }

  .btn--large {
    padding: 20px 24px;
    font-size: 1.15rem;
  }

  .worries__closing,
  .profile {
    padding: 20px;
  }

  .worries__message {
    font-size: 1.05rem;
  }

  .figure img,
  .hero__image img {
    max-height: 300px;
  }
}

/* 動きを減らす設定にしている方には、動きを止める */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
