/* ========================================
   トールWebサービス｜基本設定
   色や余白はここから調整できます
======================================== */
:root {
  --green: #456957;
  --green-dark: #294637;
  --cream: #f7f3eb;
  --cream-deep: #eee5d6;
  --ink: #28342d;
  --muted: #667268;
  --line: #dcded8;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(37, 57, 45, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 16px; line-height: 1.8; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.45; }

/* レイアウト共通 */
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); }
.section { padding: 104px 0; }
.section-soft { background: var(--cream); }
.center { text-align: center; }
.eyebrow { margin-bottom: 10px; color: var(--green); font-size: .8rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow.light { color: #dbe9de; }
h2 { margin-bottom: 16px; font-size: clamp(1.75rem, 3.3vw, 2.45rem); letter-spacing: .02em; }
.section-lead { margin: 0 auto 45px; color: var(--muted); }

/* ボタン */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75em; min-height: 56px; padding: 12px 25px; border-radius: 999px; font-weight: 800; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary, .button-small { color: var(--white); background: var(--green); box-shadow: 0 8px 18px rgba(69, 105, 87, .22); }
.button-primary:hover, .button-small:hover { background: var(--green-dark); }
.button-small { min-height: 42px; padding: 7px 16px; font-size: .85rem; }
.button-white { color: var(--green-dark); background: var(--white); }

/* ヘッダー */
.site-header { position: sticky; z-index: 10; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(220, 222, 216, .8); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.brand > span:last-child span { color: var(--green); }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; color: var(--white); background: var(--green); border-radius: 50%; font-family: Georgia, serif; }
.main-nav { display: flex; gap: 25px; margin-left: auto; color: var(--muted); font-size: .88rem; font-weight: 700; }
.main-nav a:hover { color: var(--green); }

/* ファーストビュー */
.hero { position: relative; overflow: hidden; padding: clamp(90px, 13vw, 150px) 0; background: linear-gradient(110deg, #fbfaf7 0%, #f0f4ee 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 590px; }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.25rem, 4.2vw, 4rem); line-height: 1.25; letter-spacing: .01em; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-text { max-width: 525px; margin-bottom: 28px; color: #4d5c51; font-size: 1.06rem; }
.note { margin: 12px 0 0 12px; color: var(--muted); font-size: .82rem; }
.hero-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(251, 250, 247, .97) 0%, rgba(251, 250, 247, .9) 40%, rgba(245, 248, 243, .5) 66%, rgba(245, 248, 243, .05) 100%); }
.hero-badge { position: absolute; right: clamp(16px, 4vw, 50px); bottom: 30px; z-index: 2; padding: 14px 20px; color: var(--green-dark); background: var(--white); border-radius: 14px; box-shadow: var(--shadow); line-height: 1.3; }
.hero-badge span { display: block; margin-bottom: 3px; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }

/* お悩み */
.problem-list { display: grid; gap: 12px; margin-top: 38px; padding: 0; list-style: none; }
.problem-list li { position: relative; margin: 0; padding: 17px 20px 17px 52px; background: var(--white); border-radius: 10px; box-shadow: 0 3px 12px rgba(37, 57, 45, .04); }
.problem-list li::before { position: absolute; left: 18px; top: 17px; width: 19px; height: 19px; border: 2px solid var(--green); border-radius: 50%; color: var(--green); content: "✓"; font-size: .76rem; font-weight: 900; line-height: 15px; text-align: center; }

/* サービス */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; padding: 28px; background: var(--white); border: 1px solid #edf0eb; border-radius: 16px; box-shadow: 0 5px 18px rgba(37, 57, 45, .05); }
.service-icon { width: 94px; height: 94px; object-fit: cover; margin-bottom: 17px; border-radius: 15px; }
.number { position: absolute; right: 25px; top: 29px; margin: 0; color: var(--cream-deep); font-size: 1.4rem; font-weight: 800; }
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }

/* 選ばれる理由 */
.reason-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 56px); }
.reason-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border-radius: 24px; box-shadow: var(--shadow); }
.reason-list { display: grid; gap: 17px; margin-top: 30px; }
.reason-list article { display: flex; align-items: flex-start; gap: 15px; }
.reason-list img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; }
.reason-list h3 { margin-bottom: 2px; font-size: 1rem; }
.reason-list p { margin-bottom: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* ご利用の流れ */
.flow-list { display: grid; gap: 0; margin: 40px 0 0; padding: 0; list-style: none; }
.flow-list li { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 20px; min-height: 100px; }
.flow-list li:not(:last-child)::before { position: absolute; left: 25px; top: 52px; bottom: -1px; width: 1px; background: var(--line); content: ""; }
.flow-list span { z-index: 1; display: grid; place-items: center; width: 51px; height: 51px; color: var(--white); background: var(--green); border: 6px solid var(--white); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.flow-list h3 { margin: 5px 0 2px; font-size: 1.08rem; }
.flow-list p { margin-bottom: 0; color: var(--muted); font-size: .91rem; }

/* FAQ */
.faq-list { display: grid; gap: 10px; margin-top: 38px; }
.faq-list details { background: var(--white); border-radius: 10px; }
.faq-list summary { display: flex; align-items: center; gap: 13px; padding: 18px 20px; cursor: pointer; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { color: var(--green); content: "Q"; font-family: Georgia, serif; font-size: 1.25rem; }
.faq-list summary::after { margin-left: auto; color: var(--green); content: "+"; font-size: 1.4rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 20px 19px 53px; color: var(--muted); font-size: .92rem; }

/* お問い合わせ */
.contact { color: var(--white); background: var(--green-dark); }
.contact-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.contact h2 { margin-bottom: 12px; }
.contact p:not(.eyebrow) { margin-bottom: 25px; color: #edf4ee; }
.qr-card { min-width: 170px; padding: 17px; color: var(--green-dark); background: var(--white); border-radius: 14px; text-align: center; }
.qr-card p { margin: 10px 0 0 !important; color: var(--ink) !important; font-size: .72rem; font-weight: 700; line-height: 1.45; }
.qr-placeholder { width: 125px; height: 125px; margin: auto; background: repeating-linear-gradient(90deg, #273d31 0 8px, transparent 8px 14px), repeating-linear-gradient(#273d31 0 8px, transparent 8px 14px); background-color: #fff; border: 8px solid #273d31; }

/* フッター */
.site-footer { padding: 45px 0 85px; background: #1e3026; color: #e7eee8; }
.footer-inner { display: grid; gap: 9px; }
.brand-footer > span:last-child span { color: #b9d5bf; }
.site-footer p { margin: 0; color: #b7c6ba; font-size: .86rem; }
.site-footer small { color: #91a898; font-size: .75rem; }
.mobile-cta { display: none; }

/* ========================================
   スマホ表示（768px以下）
======================================== */
@media (max-width: 768px) {
  body { padding-bottom: 62px; font-size: 15px; }
  .container, .narrow { width: min(560px, calc(100% - 32px)); }
  .section { padding: 72px 0; }
  .main-nav { display: none; }
  .header-inner { min-height: 62px; }
  .header-cta { display: none; }
  .brand { font-size: .95rem; }
  .brand-mark { width: 28px; height: 28px; }
  .hero { padding: 64px 0 96px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(251, 250, 247, .96) 0%, rgba(251, 250, 247, .9) 60%, rgba(251, 250, 247, .72) 100%); }
  .reason-grid, .contact-inner { grid-template-columns: 1fr; }
  h1, h2, h3 { word-break: auto-phrase; line-break: strict; }
  .hero h1 { font-size: 2.25rem; }
  .hero-text { font-size: .98rem; }
  .button-primary { width: 100%; }
  .hero-badge { right: 12px; bottom: 12px; padding: 10px 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 17px; padding: 22px; }
  .service-icon { grid-row: span 2; width: 76px; height: 76px; margin: 0; }
  .service-card h3 { margin-top: 3px; font-size: 1.1rem; }
  .service-card p:last-child { grid-column: 2; }
  .number { display: none; }
  .reason-image-wrap { order: 2; }
  .reason-copy { order: 1; }
  .reason-image { aspect-ratio: 16 / 9; }
  .flow-list li { grid-template-columns: 60px 1fr; gap: 10px; }
  .flow-list li:not(:last-child)::before { left: 23px; }
  .contact-inner { gap: 30px; }
  .qr-card { justify-self: center; }
  .site-footer { padding-bottom: 25px; }
  .mobile-cta { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: block; padding: 16px; color: var(--white); background: var(--green); box-shadow: 0 -4px 15px rgba(0, 0, 0, .13); font-size: .94rem; font-weight: 800; text-align: center; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 2rem; }
  .service-card { grid-template-columns: 70px minmax(0, 1fr); padding: 18px; }
  .service-icon { width: 62px; height: 62px; }
}
