/* ==========================================================
   鎭西 健吉 | 不動産エージェント
   トンマナ: 温かい・信頼できる / ベージュ × 深い緑 × テラコッタ
   ========================================================== */

:root {
  --bg: #f6f1ea;
  --surface: #fffdf9;
  --ink: #23302a;
  --ink-soft: #55615a;
  --muted: #8a918c;
  --green: #2f4a3a;
  --green-deep: #22372b;
  --terra: #b8653f;
  --line: #e2d9cc;
  --line-green: #06c755;

  --serif: "Zen Old Mincho", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Cormorant Garamond", serif;
}

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

html {
  scroll-behavior: smooth;
}

html.lenis {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--green);
  color: #fff;
}

.pc {
  display: inline;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--line {
  color: #fff;
  background: var(--line-green);
}

.btn--ghost {
  color: var(--green);
  border-color: var(--green);
}

.btn--ghost:hover {
  color: #fff;
  background: var(--green);
}

.btn--sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
}

.btn--lg {
  min-height: 64px;
  padding: 0 48px;
  font-size: 17px;
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 234, 0.9);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 10px;
}

.logo__mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logo__role {
  font-family: var(--en);
  font-size: 13px;
  font-style: italic;
  color: var(--terra);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--green);
}

/* ---------- 共通の見出し ---------- */
.section {
  padding: clamp(88px, 12vw, 150px) 0;
}

.label {
  margin: 0 0 12px;
  font-family: var(--en);
  font-size: 18px;
  font-style: italic;
  color: var(--terra);
}

.label--light {
  color: #e8b89a;
}

.title {
  margin: 0 0 56px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--green);
  background: rgba(47, 74, 58, 0.08);
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.hero__lead {
  margin: 0 0 40px;
  color: var(--ink-soft);
}

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

.hero__visual {
  position: relative;
}

.hero__arch {
  overflow: hidden;
  border-radius: 999px 999px 24px 24px;
  background: var(--line);
  aspect-ratio: 4 / 5;
}

.hero__arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__house {
  position: absolute;
  left: -18%;
  bottom: -8%;
  width: 62%;
  fill: none;
  stroke: var(--terra);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  margin: 0;
  font-family: var(--en);
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  transform: translateX(-50%);
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 36px;
  margin: 6px auto 0;
  background: var(--muted);
  animation: scroll-line 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 想い ---------- */
.message {
  background: var(--surface);
}

.message__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px clamp(40px, 6vw, 96px);
}

.message__inner .label {
  grid-column: 1 / -1;
}

.message__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.message__body p {
  margin: 0 0 1.6em;
}

/* ---------- お悩み ---------- */
.worries__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.worries__list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: 16px;
}

.worries__list span {
  font-family: var(--en);
  font-size: 28px;
  font-style: italic;
  line-height: 1;
  color: var(--terra);
}

.worries__answer {
  margin: 48px 0 0;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  text-align: center;
  color: var(--green);
}

/* ---------- できること ---------- */
.service {
  background: var(--green);
  color: #f3efe7;
}

.service .title {
  color: #fff;
}

.service .label {
  color: #e8b89a;
}

.service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 44px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  fill: none;
  stroke: #e8b89a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.08em;
  color: #fff;
}

.service-card p {
  margin: 0;
  font-size: 15px;
  color: rgba(243, 239, 231, 0.82);
}

/* ---------- 流れ ---------- */
.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__item {
  position: relative;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: 16px;
}

.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--terra);
  border-right: 2px solid var(--terra);
  transform: translateY(-50%) rotate(45deg);
}

.flow__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--en);
  font-size: 36px;
  font-style: italic;
  line-height: 1;
  color: var(--terra);
}

.flow__item h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.flow__item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- プロフィール ---------- */
.profile {
  background: var(--surface);
}

.profile__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.profile__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.profile__name {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.12em;
}

.profile__name span {
  margin-left: 16px;
  font-family: var(--en);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
}

.profile__role {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--terra);
}

.profile__body p {
  margin-top: 0;
}

.text-link {
  font-size: 14px;
  color: var(--green);
}

.profile__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

/* 所属会社（株式会社WANDY）の公式サイトへのリンク */
.company-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s, transform 0.25s;
}

@media (max-width: 560px) {
  .company-link {
    max-width: 100%;
    gap: 8px;
    padding: 12px 14px;
  }
}

.company-link:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.company-link__label {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 2px 10px;
  font-size: 12px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}

.company-link__name {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer__name a {
  color: inherit;
}

/* ---------- ご相談 ---------- */
.contact {
  padding: clamp(96px, 12vw, 150px) 0;
  text-align: center;
  color: #fff;
  background: var(--green-deep);
}

.contact__title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.contact__text {
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- フッター ---------- */
.footer {
  padding: 32px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

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

.footer__name {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}

.footer__name span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 動き ---------- */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.motion .hero__house .draw {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

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

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero__inner,
  .message__inner,
  .profile__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    max-width: 360px;
    margin: 0 auto;
    order: -1;
  }

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

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

  .flow__item:not(:last-child)::after {
    display: none;
  }

  .profile__photo {
    max-width: 240px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .pc {
    display: none;
  }

  .header__inner {
    gap: 12px;
    height: 64px;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
  }

  .hero__visual {
    max-width: 240px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__scroll {
    display: none;
  }

  .worries__list,
  .flow__list {
    grid-template-columns: 1fr;
  }

  .profile__name span {
    display: block;
    margin-left: 0;
  }
}

/* 外部サイト・別サイトへ移動する矢印（フォントに左右されないようにSVGで描く） */
.ext {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ==========================================================
   相談メニュー（トップページ）と、各サービスの専用ページ
   ========================================================== */
.menu {
  background: var(--bg);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px 32px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 16px 40px rgba(47, 74, 58, 0.12);
}

.menu-card__en {
  margin: 0 0 6px;
  font-family: var(--en);
  font-size: 16px;
  font-style: italic;
  color: var(--terra);
}

.menu-card__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.menu-card__text {
  flex: 1;
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.menu-card__more {
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}

/* ---------- 専用ページの先頭 ---------- */
.sub-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
  background: var(--surface);
}

.breadcrumb {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--green);
}

.sub-hero__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--green);
  background: rgba(47, 74, 58, 0.08);
  border-radius: 999px;
}

.sub-hero__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.sub-hero__lead {
  max-width: 720px;
  margin: 0 0 32px;
  color: var(--ink-soft);
}

.sub-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.sub-hero__tags li {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}

/* ---------- 強み（番号つき） ---------- */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.point {
  padding: 36px 30px;
  background: var(--surface);
  border-radius: 20px;
}

.point__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--en);
  font-size: 34px;
  font-style: italic;
  line-height: 1;
  color: var(--terra);
}

.point h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.06em;
}

.point p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.point small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 料金のしくみ ---------- */
.fee {
  background: var(--surface);
}

.fee__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fee-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.fee-card__label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 14px;
  font-size: 13px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}

.fee-card--success .fee-card__label {
  background: var(--terra);
}

.fee-card__num {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.4;
}

.fee-card__num small {
  display: inline-block;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}

.fee-card p:not(.fee-card__label):not(.fee-card__num) {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.notice {
  margin: 24px 0 0;
  padding: 20px 24px;
  font-size: 14px;
  background: rgba(184, 101, 63, 0.08);
  border-left: 3px solid var(--terra);
  border-radius: 0 12px 12px 0;
}

.notice strong {
  color: var(--terra);
}

.notes {
  margin: 16px 0 0;
  padding: 0 0 0 1.2em;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 試算の表 ---------- */
.sim {
  overflow-x: auto;
}

.sim table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
}

.sim th,
.sim td {
  padding: 16px 20px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.sim th:first-child,
.sim td:first-child {
  text-align: left;
}

.sim thead th {
  font-family: var(--serif);
  font-size: 15px;
  color: #fff;
  background: var(--green);
}

.sim thead th:last-child {
  background: var(--terra);
}

.sim tbody td:last-child {
  font-weight: 700;
  color: var(--green-deep);
}

.sim tr.sim__total td {
  font-size: 18px;
  font-weight: 700;
  background: rgba(47, 74, 58, 0.06);
}

.sim__result {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.8vw, 28px);
  text-align: center;
}

.sim__result strong {
  font-size: 1.4em;
  color: var(--terra);
}

/* ---------- よくある質問 ---------- */
.faq__list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq__list details {
  background: var(--surface);
  border-radius: 14px;
}

.faq__list summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq__list summary::before {
  content: "Q. ";
  font-family: var(--en);
  font-size: 18px;
  font-style: italic;
  color: var(--terra);
}

.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  font-size: 22px;
  color: var(--green);
  transform: translateY(-50%);
  transition: transform 0.25s;
}

.faq__list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__list details p {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- 取引を行う会社 ---------- */
.dealer {
  margin: 0;
  padding: 24px 28px;
  font-size: 14px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.tbd {
  display: inline-block;
  padding: 0 8px;
  color: #8a5a00;
  background: #fff4dc;
  border: 1px dashed #d9a640;
}

/* ---------- 資格 ---------- */
.profile__licenses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 20px;
  padding: 0;
  list-style: none;
}

.profile__licenses li {
  padding: 2px 12px;
  font-size: 13px;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .menu__grid,
  .points,
  .fee__grid {
    grid-template-columns: 1fr;
  }
}
/* 日本語の見出しを、意味のまとまりの途中で改行させない */
.nw {
  display: inline-block;
}
