/* ========================================
  基本設定
  色や余白を変更したい時は、まずここを編集してください。
======================================== */
:root {
  --color-bg: #f7f6f2;
  --color-surface: #ffffff;
  --color-text: #222222;
  --color-muted: #666666;
  --color-line: #ded9d0;
  --color-sage: #788878;
  --color-rose: #b97870;
  --color-rose-dark: #8f514b;
  --color-soft: #eef1ec;
  --shadow: 0 18px 50px rgba(34, 34, 34, 0.08);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.8;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-sage);
  outline-offset: 4px;
}

.container {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-sage);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

p {
  margin: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.visually-hidden {
  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: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--color-text);
  color: #ffffff;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ========================================
  ヘッダー
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.92);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

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

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.55rem;
  font-weight: 700;
}

.logo-sub {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.global-nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--color-text);
  color: #ffffff;
  font-weight: 700;
}

.nav-toggle {
  display: none;
}

/* ========================================
  ボタン
======================================== */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--color-rose);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(143, 81, 75, 0.22);
}

.button-primary:hover {
  background: var(--color-rose-dark);
}

.button-secondary {
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--color-rose-dark);
  font-weight: 700;
  text-underline-offset: 5px;
}

/* ========================================
  ファーストビュー
======================================== */
.hero {
  padding-top: 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 52px;
}

.hero-text {
  margin-top: 22px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.hero-image img,
.section-image img,
.local-panel img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ========================================
  お悩み
======================================== */
.concerns {
  background: var(--color-surface);
}

.concern-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.concern-list li {
  min-height: 98px;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fbfaf7;
}

.concern-list li::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 14px;
  background: var(--color-rose);
}

/* ========================================
  サービス・相談セクション
======================================== */
.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 54px;
}

.split-layout-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
}

.section-content > p:not(.eyebrow) {
  color: var(--color-muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.service-list article {
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
}

.service-list p {
  color: var(--color-muted);
  font-size: 0.94rem;
}

.support {
  background: var(--color-surface);
}

/* ========================================
  選ばれる理由
======================================== */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.reason-card {
  padding: 28px;
  border-radius: 8px;
  background: var(--color-soft);
}

.reason-number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--color-sage);
  font-size: 0.88rem;
  font-weight: 700;
}

.reason-card p {
  color: var(--color-muted);
}

/* ========================================
  制作の流れ
======================================== */
.flow {
  background: var(--color-surface);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  position: relative;
  padding: 26px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fbfaf7;
}

.flow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--color-text);
  color: #ffffff;
  font-weight: 700;
}

.flow-list p {
  color: var(--color-muted);
  font-size: 0.94rem;
}

/* ========================================
  地元特化
======================================== */
.local-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 44px;
}

.local-copy {
  max-width: 520px;
}

.local-copy p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--color-muted);
}

/* ========================================
  FAQ
======================================== */
.faq {
  background: var(--color-surface);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fbfaf7;
}

summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
}

details p {
  padding: 0 24px 22px;
  color: var(--color-muted);
}

/* ========================================
  最後のCTA
======================================== */
.final-cta {
  padding-bottom: 96px;
}

.cta-box {
  padding: 52px;
  border-radius: 8px;
  background: var(--color-text);
  color: #ffffff;
}

.cta-box .eyebrow {
  color: #d8e0d4;
}

.cta-box p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-box .button-primary {
  background: #ffffff;
  color: var(--color-text);
  box-shadow: none;
}

.cta-box .button-primary:hover {
  background: #efece6;
}

/* ========================================
  フッター
======================================== */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-muted);
}

.footer-inner span {
  color: var(--color-text);
  font-weight: 700;
}

/* ========================================
  スマホ対応
======================================== */
@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--content-width));
  }

  .section {
    padding: 66px 0;
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
  }

  .nav-toggle-line {
    width: 20px;
    height: 2px;
    background: var(--color-text);
  }

  .global-nav {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: var(--shadow);
  }

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

  .global-nav a {
    padding: 12px;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-grid,
  .split-layout,
  .split-layout-reverse,
  .local-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image {
    order: -1;
  }

  .concern-list,
  .service-list,
  .reason-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .concern-list li {
    min-height: auto;
  }

  .button {
    width: 100%;
  }

  .cta-box {
    padding: 34px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero-image img,
  .section-image img,
  .local-panel img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
