/* ========================================
   トールWeb屋さん：基本設定
   色や余白は、まずこのブロックから調整できます。
======================================== */
:root {
  --color-ink: #20332d;
  --color-forest: #29483d;
  --color-orange: #d66339;
  --color-cream: #fffaf0;
  --color-sand: #f3ead8;
  --color-white: #ffffff;
  --color-muted: #5d6862;
  --color-line: #d9d2c5;
  --shadow: 0 18px 42px rgba(32, 51, 45, 0.11);
  --radius: 1.25rem;
  --font-body: "Noto Sans JP", sans-serif;
  --font-display: "DM Serif Display", "Noto Sans JP", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; color: var(--color-ink); background: var(--color-cream); font-family: var(--font-body); font-size: 16px; line-height: 1.8; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.35; }
ul, ol { margin: 0; padding: 0; }

/* 共通レイアウト */
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section-padding { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; padding: 0.65rem 1rem; background: var(--color-white); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin-bottom: 0.7rem; color: var(--color-orange); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.section-heading { margin-bottom: 3.4rem; }
.section-heading h2, .split-copy h2, .faq h2, .contact h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -0.04em; }
.section-heading > p:last-child { color: var(--color-muted); }
.center { text-align: center; }

/* ボタン・リンク */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 3.45rem; padding: 0.85rem 1.35rem; border: 1px solid var(--color-orange); border-radius: 999px; color: var(--color-white); background: var(--color-orange); font-size: 0.93rem; font-weight: 700; line-height: 1.3; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { background: #b84f2b; transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .global-nav a:focus-visible, summary:focus-visible { outline: 3px solid #f2af54; outline-offset: 4px; }
.button-small { min-height: 2.65rem; padding: 0.55rem 1rem; font-size: 0.84rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-forest); font-size: 0.9rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(32, 51, 45, .09); background: rgba(255, 250, 240, .92); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.logo-mark { display: grid; width: 2rem; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--color-white); background: var(--color-forest); font-family: var(--font-display); font-size: 1.25rem; }
.global-nav { display: flex; align-items: center; gap: 1.8rem; font-size: 0.87rem; font-weight: 700; }
.global-nav > a:not(.button) { text-decoration: none; }
.global-nav > a:not(.button):hover { color: var(--color-orange); }
.menu-button { display: none; }
.menu-symbol { display: none; }

/* ヒーロー */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 680px; background: var(--color-forest); }
.hero::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(255, 250, 240, .98) 0%, rgba(255, 250, 240, .92) 37%, rgba(255, 250, 240, .42) 64%, rgba(32, 51, 45, .12) 100%); }
.hero-grid { display: flex; min-height: 680px; align-items: center; }
.hero-copy { position: relative; z-index: 2; width: min(590px, 58%); }
.hero h1 { margin-bottom: 1.25rem; font-size: clamp(2.65rem, 5vw, 4.7rem); letter-spacing: -0.065em; }
.hero h1 em { color: var(--color-orange); font-family: var(--font-display); font-style: normal; letter-spacing: 0; }
.hero-text { color: var(--color-muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin-top: 2rem; }
.hero-note { margin-top: 1.15rem; color: var(--color-muted); font-size: 0.78rem; }
.image-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-image.image-frame-hero { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.hero-image.image-frame-hero img { width: 100%; height: 100%; object-position: center; }

/* 悩み */
.problems { background: var(--color-forest); color: var(--color-white); }
.problems .eyebrow { color: #f7b96a; }
.narrow-heading { max-width: 740px; text-align: center; }
.narrow-heading h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.04em; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.problem-card { min-height: 172px; padding: 1.4rem; border: 1px solid rgba(255,255,255,.18); border-radius: 1rem; background: rgba(255,255,255,.07); }
.problem-card span { display: block; margin-bottom: 1.5rem; color: #f7b96a; font-family: var(--font-display); font-size: 1.25rem; }
.problem-card p { margin: 0; font-size: 0.94rem; line-height: 1.7; }
.problem-message { margin-top: 2.2rem; text-align: center; font-weight: 700; }

/* サービス */
.services { background: var(--color-white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card { overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-cream); }
.service-card > img { width: 100%; aspect-ratio: 1.32; object-fit: cover; }
.service-card-body { padding: 1.6rem; }
.card-number { margin-bottom: 0.25rem; color: var(--color-orange); font-family: var(--font-display); font-size: 1.1rem; }
.service-card h3 { margin-bottom: 0.7rem; font-size: 1.35rem; }
.service-card p:last-child { margin-bottom: 0; color: var(--color-muted); font-size: .88rem; }

/* 強み・事例 */
.strengths { background: var(--color-sand); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.split-grid-reverse { grid-template-columns: .85fr 1.15fr; }
.image-frame-square { aspect-ratio: 1.15; }
.split-copy > p:not(.eyebrow) { max-width: 35rem; color: var(--color-muted); }
.check-list { display: grid; gap: .75rem; margin-top: 1.6rem; list-style: none; }
.check-list li { position: relative; padding-left: 1.75rem; font-size: .92rem; font-weight: 600; }
.check-list li::before { position: absolute; top: .45rem; left: 0; width: .85rem; height: .5rem; border-bottom: 2px solid var(--color-orange); border-left: 2px solid var(--color-orange); content: ""; transform: rotate(-45deg); }
.cases { background: var(--color-white); }

/* ご相談の流れ */
.flow { background: var(--color-cream); }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; list-style: none; counter-reset: flow; }
.flow-list li { position: relative; min-height: 220px; padding: 1.6rem; border-top: 2px solid var(--color-forest); background: var(--color-white); }
.flow-list li:not(:last-child)::after { position: absolute; top: 2rem; right: -1.9rem; z-index: 1; color: var(--color-orange); content: "→"; font-size: 1.4rem; }
.flow-list span { display: block; margin-bottom: 2.5rem; color: var(--color-orange); font-family: var(--font-display); font-size: 1.25rem; }
.flow-list h3 { margin-bottom: .65rem; font-size: 1.2rem; }
.flow-list p { margin: 0; color: var(--color-muted); font-size: .84rem; line-height: 1.7; }

/* FAQ */
.faq { background: var(--color-sand); }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 5rem; }
.faq-list { display: grid; gap: .75rem; }
.faq details { border-bottom: 1px solid rgba(32, 51, 45, .25); }
.faq summary { position: relative; padding: 1.05rem 2.4rem 1.05rem 0; cursor: pointer; font-size: .98rem; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: .2rem; color: var(--color-orange); content: "+"; font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.2rem; color: var(--color-muted); font-size: .88rem; }

/* CTA・フッター */
.contact { color: var(--color-white); background: var(--color-forest); text-align: center; }
.contact .eyebrow { color: #f7b96a; }
.contact-inner { max-width: 760px; }
.contact h2 { margin-bottom: 1rem; }
.contact-inner > p:not(.eyebrow):not(.contact-note) { color: rgba(255,255,255,.82); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.button-light { border-color: var(--color-white); color: var(--color-forest); background: var(--color-white); }
.button-light:hover { color: var(--color-white); background: var(--color-orange); }
.contact-mail { color: var(--color-white); font-size: .9rem; font-weight: 700; text-underline-offset: 5px; }
.contact-note { margin-top: 1.35rem; color: rgba(255,255,255,.58); font-size: .75rem; }
.site-footer { padding: 1.5rem 0; background: #172620; color: var(--color-white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo-footer .logo-mark { color: var(--color-forest); background: var(--color-white); }
.footer-tagline { margin: 0; color: rgba(255,255,255,.6); font-size: .8rem; }
.site-footer small { color: rgba(255,255,255,.65); }

/* スマホ・タブレット対応 */
@media (max-width: 820px) {
  .container { width: min(calc(100% - 36px), 680px); }
  .desktop-only { display: none; }
  .menu-button { display: grid; width: 2.75rem; height: 2.75rem; padding: .7rem; border: 0; border-radius: .5rem; background: var(--color-sand); cursor: pointer; gap: .25rem; }
  .menu-symbol { display: block; color: var(--color-forest); font-size: 1.35rem; line-height: 1; }
  .menu-button[aria-expanded="true"] .menu-symbol { font-size: 0; }
  .menu-button[aria-expanded="true"] .menu-symbol::after { content: "×"; font-size: 1.7rem; }
  .global-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 1.25rem 1.5rem 1.5rem; border-bottom: 1px solid var(--color-line); background: var(--color-cream); box-shadow: 0 16px 22px rgba(32,51,45,.08); }
  .global-nav.is-open { display: grid; gap: .95rem; }
  .global-nav .button { justify-self: start; margin-top: .4rem; }
  .split-grid, .split-grid-reverse, .faq-grid { grid-template-columns: 1fr; }
  .hero { min-height: 640px; }
  .hero-grid { min-height: 640px; }
  .hero-copy { width: min(540px, 78%); }
  .hero-text, .hero-note { overflow-wrap: anywhere; }
  .hero::after { background: linear-gradient(90deg, rgba(255, 250, 240, .98) 0%, rgba(255, 250, 240, .9) 52%, rgba(255, 250, 240, .42) 100%); }
  .hero-image.image-frame-hero img { object-position: 64% center; }
  .problem-grid, .service-grid, .flow-list { grid-template-columns: repeat(2, 1fr); }
  .problem-card { min-height: 145px; }
  .flow-list li:not(:last-child)::after { display: none; }
  .faq-grid { gap: 1.5rem; }
}

@media (max-width: 540px) {
  body { font-size: 15px; }
  .section-padding { padding: 4.25rem 0; }
  .header-inner { min-height: 4.5rem; }
  .logo { font-size: .92rem; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero { min-height: 690px; }
  .hero-grid { min-height: 690px; align-items: flex-start; padding-top: 2.5rem; }
  .hero-copy { width: 100%; }
  .hero::after { background: linear-gradient(180deg, rgba(255, 250, 240, .97) 0%, rgba(255, 250, 240, .86) 53%, rgba(255, 250, 240, .35) 100%); }
  .hero-image.image-frame-hero img { object-position: 63% center; }
  .mobile-title-line { display: block; }
  .mobile-title-break { display: block; }
  .hero h1 br { display: none; }
  .hero h1 em { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; }
  .hero-actions, .contact-actions { align-items: stretch; flex-direction: column; gap: .85rem; }
  .hero-actions .button, .contact-actions .button { width: 100%; }
  .hero-actions .text-link { justify-content: center; }
  .problem-grid, .service-grid, .flow-list { grid-template-columns: 1fr; }
  .problem-card { min-height: 0; }
  .problem-card span { margin-bottom: .65rem; }
  .split-grid { gap: 2rem; }
  .split-grid-reverse .split-copy { order: 1; }
  .split-grid-reverse .image-frame { order: 2; }
  .image-frame-square { aspect-ratio: 1.15; }
  .flow-list li { min-height: 0; }
  .flow-list span { margin-bottom: 1.2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
