/* =========================================================
   h-gr.com — 現行デザイン（Elementor版）を素のCSSで再現
   フォント：Zen Kaku Gothic New ／ 数字：Barlow Semi Condensed
   キーカラー：ロイヤルブルー #134BC3 ＋ 黄・緑・赤のCTA
   ========================================================= */
:root {
  --blue: #134bc3;
  --blue-deep: #0d3a9c;
  --sky: #eef5fc;        /* ヒーロー・ページタイトル帯 */
  --sky-2: #f0f4fa;      /* SERVICE背景 */
  --cyan: #19c3f0;       /* タイトル帯の三角 */
  --yellow: #fff100;     /* ヘッダー：メール */
  --green: #3cc92b;      /* ヘッダー：LINE */
  --line-green: #06c755; /* LINEブランド */
  --red: #e01e1e;        /* ヘッダー：電話 */
  --eyebrow: #e60012;
  --cream: #fff79a;      /* 青帯の見出し */
  --text: #111;
  --text-2: #333;
  --muted: #666;
  --rule: #d9dde6;
  --white: #fff;

  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --num: "Barlow Semi Condensed", "Avenir Next Condensed", "Arial Narrow", "Zen Kaku Gothic New", sans-serif;
  --w: 1100px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --fs-body: 18px;   /* 現行サイトの本文サイズ */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 500; color: var(--text-2); background: var(--white); font-size: 16px; line-height: 1.85; letter-spacing: .04em; }
main p, main li, main dd, main dt, main td, main th { font-size: var(--fs-body); }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }
h1, h2, h3 { color: var(--text); line-height: 1.35; text-wrap: balance; }
/* 見出しは文節（<wbr> の位置）でだけ改行する。<wbr> は tools/wbr.py が入れる */
h1, h2, h3, dt, .band p, .hero-sub, .guide-cards b, .season-label b { word-break: keep-all; overflow-wrap: anywhere; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.wrap { max-width: var(--w); margin-inline: auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------------- ヘッダー ---------------- */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; background: var(--white); padding-left: max(24px, env(safe-area-inset-left, 0px)); min-height: 76px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.logo { flex: none; display: block; }
.logo img { width: 260px; height: auto; display: block; }
.gnav { flex: 1; }
.gnav > ul { list-style: none; display: flex; gap: 8px 26px; margin: 0; padding: 0; }
.gnav a { text-decoration: none; font-size: 16px; letter-spacing: .12em; color: var(--text); padding: 26px 0; display: block; }
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--blue); }
.gnav .has-sub { position: relative; }
.gnav .has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: 0 0 3px 8px; }
.gnav .has-sub ul { display: none; position: absolute; top: 100%; left: -16px; list-style: none; margin: 0; padding: 8px 0; background: var(--white); min-width: 240px; box-shadow: 0 8px 24px rgba(19,75,195,.15); border-top: 3px solid var(--blue); }
.gnav .has-sub:hover ul, .gnav .has-sub:focus-within ul { display: block; }
.gnav .has-sub ul a { padding: 10px 18px; letter-spacing: .06em; font-size: 15px; }
.gnav .has-sub ul a:hover { background: var(--sky); }

.header-cta { flex: none; align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; width: 280px; }
.header-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--text); padding: 6px 10px; letter-spacing: .02em; }
.header-cta .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #000; color: #fff; }
.hc-mail { background: var(--yellow); }
.hc-line { background: var(--green); }
.hc-tel { grid-column: 1 / -1; background: var(--red); color: #fff !important; white-space: nowrap; overflow: hidden; } /* フォント読み込み前に折り返してヘッダーが伸びる（CLS）のを防ぐ */
.hc-tel span { font-size: 14px; }
.hc-tel b { font-family: var(--num); font-size: 27px; font-weight: 600; letter-spacing: .01em; }

.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; place-content: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.menu-cta { display: none; }
.menu-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 0 !important; padding: 0 !important; }
.menu-cta .m-tel { background: var(--red); color: #fff; font-family: var(--num); font-size: 22px !important; }
.menu-cta .m-line { background: var(--green); color: #000; }
.menu-cta .m-mail { background: var(--yellow); color: #000; }

/* ---------------- 下層：ページタイトル帯 + 青帯 ---------------- */
.page-title { position: relative; overflow: hidden; background: var(--sky); padding-block: 34px 30px; text-align: center; }
.page-title::before { content: ""; position: absolute; top: 0; left: 50%; margin-left: 120px; width: 160px; height: 46px; background: var(--cyan); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.page-title::after { content: ""; position: absolute; bottom: 0; left: 50%; margin-left: 100px; width: 240px; height: 60px; background: var(--white); opacity: .7; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.page-title h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(24px, 3.4vw, 35px); font-weight: 700; letter-spacing: .1em; }
.band { background: var(--blue); color: #fff; text-align: center; padding: 28px var(--gutter); }
.band p { margin: 0; font-weight: 700; letter-spacing: .08em; line-height: 1.5; font-size: clamp(18px, 2.4vw, 25px); }

.breadcrumb { max-width: var(--w); margin-inline: auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 0 var(--gutter); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

main > .wrap, main > article { padding-block: 40px 72px; }

/* ---------------- 共通パーツ ---------------- */
.h-line { font-size: clamp(22px, 2.8vw, 28px); font-weight: 700; letter-spacing: .08em; margin: 56px 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); position: relative; }
.h-line::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 80px; height: 2px; background: var(--cyan); }
section:first-child > .h-line, .product-visual + section .h-line { margin-top: 24px; }
h3 { font-size: 21px; font-weight: 700; margin: 32px 0 8px; }
main .note { font-size: 16px; color: var(--muted); }
.note a, main p a { color: var(--blue); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec, table.data { width: 100%; border-collapse: collapse; background: var(--white); }
table.spec th, table.spec td, table.data th, table.data td { border: 1px solid var(--rule); padding: 12px 16px; text-align: left; vertical-align: top; }
table.spec th { width: 28%; background: var(--sky); color: var(--text); font-weight: 700; white-space: nowrap; }
table.data { font-variant-numeric: tabular-nums; }
table.data caption { caption-side: top; text-align: left; font-weight: 700; font-size: 20px; color: var(--text); padding: 0 0 8px; }
table.data thead th { background: var(--blue); color: #fff; font-weight: 700; text-align: center; }
table.data tbody th { background: var(--sky); color: var(--text); font-weight: 700; white-space: nowrap; }
table.data td.num { text-align: right; }

.btn, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 36px; border-radius: 999px; font-weight: 700; letter-spacing: .1em; text-decoration: none; font-family: inherit; font-size: 18px; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff !important; border: 0; box-shadow: 0 4px 0 var(--blue-deep); }
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--blue-deep); }
.btn-primary:disabled { opacity: .6; }
.btn-outline { border: 2px solid var(--blue); color: var(--blue) !important; background: var(--white); }
.btn-outline:hover { background: var(--blue); color: #fff !important; }

.faq { margin: 0; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--white); }
.faq dt, .faq dd { position: relative; margin: 0; padding: 14px 18px 14px 56px; }
.faq dt { font-weight: 700; color: var(--text); background: var(--sky); }
.faq dt::before, .faq dd::before { position: absolute; left: 16px; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-weight: 600; font-size: 16px; line-height: 1; }
.faq dt::before { content: "Q"; background: var(--blue); color: #fff; }
.faq dd::before { content: "A"; background: var(--cream); color: var(--blue); border: 1px solid #e6d95a; }

/* ---------------- トップ：ヒーロー ---------------- */
.hero { position: relative; background: var(--sky) url(/assets/img/main_b.webp) center / cover no-repeat; overflow: hidden; }
.hero-inner { max-width: 1260px; margin-inline: auto; padding: 48px var(--gutter) 48px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px; }
.ribbon { display: inline-block; margin: 0 0 22px; background: var(--blue); color: #fff; font-weight: 900; letter-spacing: .12em; font-size: clamp(20px, 2.9vw, 40px); padding: 6px 22px; transform: rotate(-3deg); }
.hero h1 { margin: 0; font-size: clamp(40px, 6.2vw, 85px); font-weight: 900; letter-spacing: .02em; line-height: 1.18; }
.hero p.hero-sub { margin: 32px 0 0; font-weight: 700; color: var(--text); font-size: clamp(16px, 2vw, 27px); line-height: 1.3; }
.hero-visual img { width: 100%; }

.news { text-align: center; padding: 28px var(--gutter) 40px; }
.news p { margin: 0 0 14px; font-size: 16px; letter-spacing: .08em; }
.season-card { position: relative; display: block; max-width: 560px; margin-inline: auto; text-decoration: none; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 20px rgba(19,75,195,.18); }
.season-card img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 35%; }
.season-label { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, var(--blue) 0 60%, rgba(19,75,195,.82)); color: #fff; text-align: left; padding: 12px 20px; font-size: 15px; letter-spacing: .06em; }
.season-label b { display: block; font-size: 24px; font-weight: 900; letter-spacing: .1em; }
.season-card--wide { max-width: 860px; }
.season-card--wide img { aspect-ratio: auto; height: auto; object-fit: initial; }
.photo-strip img { display: block; width: 100%; height: clamp(160px, 23vw, 300px); object-fit: cover; }

.advisor { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; padding-block: 80px 24px; }
.advisor .display { font-size: clamp(36px, 4.4vw, 60px); }
.advisor .display-sub { font-size: clamp(22px, 2.5vw, 34px); }
@media (min-width: 768px) { .advisor .display, .advisor .display-sub { white-space: nowrap; } }
main .eyebrow { margin: 0 0 22px; color: var(--eyebrow); font-weight: 700; letter-spacing: .16em; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.5; }
.display { margin: 0; font-size: clamp(40px, 5.9vw, 80px); font-weight: 900; letter-spacing: .03em; line-height: 1.1; }
main .display-sub { margin: 22px 0 0; font-weight: 900; color: var(--text); font-size: clamp(24px, 3.3vw, 45px); letter-spacing: .02em; line-height: 1.2; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 24px 48px; margin-block: 0; }
.methods figure { margin: 0; }
.methods figcaption { font-size: 13px; text-align: center; color: var(--muted); }
.methods figcaption b { color: var(--text); font-size: 15px; }

/* 青帯CTA（全力で解決します!!） */
.cta-band { background: var(--blue); color: #fff; text-align: center; padding: 56px var(--gutter) 60px; }
.cta-band .inner { max-width: 520px; margin-inline: auto; display: grid; gap: 18px; justify-items: center; }
.cta-band h2 { margin: 0; color: var(--cream); font-size: clamp(28px, 3.4vw, 46px); font-weight: 900; letter-spacing: .12em; }
.cta-tel { display: inline-flex; align-items: center; gap: 12px; background: #fffafa; color: var(--blue); text-decoration: none; border-radius: 10px; padding: 8px 24px; font-family: var(--num); font-weight: 600; font-size: clamp(40px, 5.5vw, 74px); letter-spacing: .01em; line-height: 1.15; }
.cta-tel .ico { width: .8em; height: .8em; }
main .cta-info { margin: 0; font-size: 20px; line-height: 1.55; }
.cta-info .fax { font-family: var(--num); font-size: 25px; letter-spacing: .04em; }
.cta-info small { font-size: 16px; letter-spacing: .1em; }
.cta-line { display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; color: var(--line-green); border-radius: 10px; padding: 14px 24px; text-decoration: none; font-weight: 900; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; }
.line-badge { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 16px; background: var(--line-green); color: #fff; flex: none; }
.line-badge .ico { width: 42px; height: 42px; }

.strength { padding-block: 72px; text-align: center; }
.display-m { margin: 0 0 32px; font-size: clamp(28px, 4.2vw, 57px); font-weight: 900; letter-spacing: .04em; }
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.strength-grid img { width: 100%; aspect-ratio: 768 / 444; object-fit: contain; }
main .kicker { margin: 10px 0 4px; font-weight: 700; color: var(--text); font-size: 20px; letter-spacing: .06em; }
.strength-grid h3 { margin: 0 0 16px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 900; letter-spacing: .1em; }
.strength-grid p:last-child { text-align: left; font-size: 16px; line-height: 1.9; letter-spacing: .06em; margin: 0; }

.service { background: var(--sky-2); padding-block: 64px 72px; }
.section-title { text-align: center; margin: 0 0 40px; font-family: var(--num); font-size: clamp(48px, 6vw, 80px); font-weight: 600; letter-spacing: .04em; line-height: 1; }
.section-title small { display: block; font-family: var(--font); font-size: clamp(18px, 1.9vw, 25px); font-weight: 700; letter-spacing: .3em; margin-bottom: 10px; }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc-grid > li { background: var(--white); min-width: 0; }
.svc-grid a { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 0 0 16px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.svc-grid a:hover { box-shadow: 0 8px 22px rgba(19,75,195,.18); transform: translateY(-2px); }
.svc-grid img { width: 100%; aspect-ratio: 566 / 440; object-fit: cover; }
.svc-grid h3 { margin: 10px 0 0; font-size: clamp(18px, 1.9vw, 25px); font-weight: 900; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; letter-spacing: .06em; }
.svc-wide { grid-column: span 2; }
.svc-wide a { padding: 24px 20px; }
.svc-wide h3 { margin: 0; font-size: clamp(24px, 2.7vw, 36px); }
.svc-wide p { margin: 8px 0 14px; font-size: 17px; text-decoration: underline; text-underline-offset: 3px; }
.svc-wide img { aspect-ratio: auto; object-fit: contain; }
.svc-other > div { padding: 18px 12px; text-align: center; }
.svc-other h3 { text-decoration: none; margin: 0 0 8px; }
main .svc-other li { font-size: 16px; }
.svc-other ul { list-style: none; margin: 0; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.8; color: var(--text); }
.more { text-align: center; margin: 36px 0 0; }

.voices { background: linear-gradient(var(--sky-2) 0 40%, var(--blue) 40%); }
.voices ul { list-style: none; margin: 0 auto; padding-block: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; }
.voices img { width: 100%; }
.voices + .cta-band { padding-top: 24px; }

.more-biz { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; padding-block: 72px; }
.more-biz h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: .1em; margin: 0 0 18px; }
main .more-biz p { font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); line-height: 2.3; margin: 0; color: var(--text); }

.q-links { padding-block: 8px 72px; }
.q-links h2 { text-align: center; }

/* ---------------- 実績・事例 ---------------- */
.works { display: grid; gap: 20px; margin-top: 24px; }
.work { display: grid; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; }
.work.has-img { grid-template-columns: 240px 1fr; }
.work-img { background: var(--sky-2); border-radius: 6px; overflow: hidden; }
.work-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.work-body { min-width: 0; }
main .work-cat { margin: 0; font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .06em; }
.work-body h2 { margin: 4px 0 8px; font-size: clamp(20px, 2.2vw, 24px); }
.work-body p { margin: 0 0 10px; }
.work-tags { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
main .work-tags li { font-size: 13px; font-weight: 700; background: var(--sky); color: var(--blue); border-radius: 999px; padding: 2px 12px; }
.works-top { padding-block: 72px 24px; }
.works-top h2 { text-align: center; }
.works-thumbs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.works-thumbs a { display: block; text-decoration: none; text-align: center; }
.works-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--sky-2); border-radius: 6px; }
.works-thumbs span { display: block; margin-top: 8px; font-weight: 700; color: var(--text); }
@media (max-width: 767px) {
  .work.has-img { grid-template-columns: 1fr; }
  .works-thumbs { grid-template-columns: 1fr 1fr; }
}

/* ---------------- 下層：商品 ---------------- */
.intro p { line-height: 1.9; }
.narrow-center { max-width: 760px; margin-inline: auto; text-align: center; }
.check-points { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.check-points li { position: relative; padding: 10px 14px 10px 44px; background: var(--sky); border-radius: 6px; font-weight: 700; color: var(--text); }
.check-points li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.intro .feature-list { margin-top: 16px; }
.gnav .sub-all a { font-weight: 700; border-bottom: 1px solid var(--rule); }
.product-visual { text-align: center; margin: 8px 0 8px; }
.product-visual img { width: min(100%, var(--w, 528px)); height: auto; } /* 幅を先に決めて、画像の読み込み前から場所を確保（CLS対策）。--w は各ページの img に記載 */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--sky); border-radius: 8px; padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 20px; color: var(--blue); }
main .feature p { margin: 0; font-size: 16px; }
.flow-mini { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.flow-mini li { counter-increment: step; position: relative; background: var(--white); border: 1.5px solid var(--blue); border-radius: 8px; padding: 34px 8px 12px; text-align: center; font-weight: 700; color: var(--blue); font-size: 16px; line-height: 1.5; }
.flow-mini li::before { content: counter(step); position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-family: var(--num); font-size: 18px; color: var(--cyan); }
.flow-mini small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related a { display: block; text-decoration: none; background: var(--sky-2); text-align: center; padding-bottom: 10px; }
.related img { aspect-ratio: 566 / 440; object-fit: contain; width: 100%; background: var(--white); }
.related span { font-weight: 700; color: var(--text); }

.product-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-list a { display: block; height: 100%; text-decoration: none; background: var(--white); border: 1px solid var(--rule); transition: box-shadow .2s; }
.product-list a:hover { box-shadow: 0 8px 22px rgba(19,75,195,.18); }
.pl-img { background: var(--sky-2); }
.pl-img img { width: 100%; aspect-ratio: 566 / 440; object-fit: contain; }
.product-list h2 { margin: 14px 16px 4px; font-size: 22px; font-weight: 900; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
main .product-list p { margin: 0 16px 16px; font-size: 16px; }

/* ---------------- 下層：ガイド ---------------- */
.flow-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: grid; gap: 0; }
.flow-steps li { border: 1.5px solid var(--blue); border-radius: 6px; padding: 12px 16px; color: var(--blue); font-weight: 700; background: var(--white); }
.flow-steps li + li { margin-top: 40px; position: relative; }
.flow-steps li + li::before { content: ""; position: absolute; top: -32px; left: 50%; width: 3px; height: 18px; background: var(--blue); transform: translateX(-50%); }
.flow-steps li + li::after { content: ""; position: absolute; top: -18px; left: 50%; width: 10px; height: 10px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: translateX(-50%) rotate(45deg); }
.flow-steps small { display: block; color: var(--text-2); font-weight: 500; font-size: 16px; margin-top: 2px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { background: var(--sky); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 0 6px 6px 0; }
.check-list b { display: block; color: var(--text); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
main .chips li { border: 1.5px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 4px 16px; font-weight: 700; font-size: 16px; }
.callout { background: var(--cream); border-radius: 8px; padding: 20px 24px; color: var(--text); }
.callout p { margin: 0; }
.tables-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; }
.tables-2 > * { min-width: 0; }
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.guide-cards a { display: block; height: 100%; padding: 22px; background: var(--white); border: 1.5px solid var(--blue); border-radius: 8px; text-decoration: none; }
.guide-cards a:hover { background: var(--sky); }
.guide-cards b { display: block; color: var(--blue); font-size: 21px; margin-bottom: 6px; }
.guide-cards span { font-size: 16px; }

.media { display: grid; grid-template-columns: 284px 1fr; gap: 24px; align-items: center; }
.map { aspect-ratio: 16 / 9; background: var(--sky); margin-top: 16px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- フォーム ---------------- */
.contact-form { margin-top: 24px; background: var(--sky-2); padding: 32px clamp(16px, 4vw, 40px); border-radius: 8px; }
.contact-form .field { margin-bottom: 22px; }
.contact-form label, .contact-form legend { display: block; font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 17px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel],
.contact-form input[type=url], .contact-form select, .contact-form textarea { width: 100%; padding: 12px; font-size: 16px; font-family: inherit; border: 1px solid #c4cad8; border-radius: 6px; background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(19,75,195,.2); }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form fieldset label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin-right: 20px; }
.req { font-size: 11px; background: var(--red); color: #fff; padding: 2px 8px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; letter-spacing: .1em; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.error, .form-errors { color: #c40000; }
.form-errors { border: 2px solid #c40000; background: #fff; padding: 12px 18px; border-radius: 6px; }
main .help { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { text-align: center; margin: 8px 0 0; }

/* ---------------- フッター ---------------- */
.site-footer { border-top: 1px solid #bbb; margin-inline: 36px; padding-top: 48px; }
.footer-main { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 32px; align-items: center; max-width: 1240px; margin-inline: auto; }
.footer-logo { text-align: center; }
.footer-logo img { width: 220px; }
.footer-logo address { font-style: normal; font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.footer-contact a { display: flex; align-items: center; gap: 22px; text-decoration: none; font-weight: 700; font-size: 24px; color: var(--text); }
.circle { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #000; color: #fff; flex: none; }
.circle .ico { width: 22px; height: 22px; }
.circle-line { font-family: var(--num); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.footer-contact .num { display: block; font-family: var(--num); font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; letter-spacing: .02em; line-height: 1; }
.footer-contact small { font-size: 17px; font-weight: 500; }
.footer-related p { margin: 0 0 8px; font-size: 16px; color: var(--muted); }
.footer-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-related a { text-decoration: none; font-weight: 700; font-size: 20px; color: var(--text); }
.footer-related a:hover, .footer-bottom a:hover { color: var(--blue); }
.footer-bottom { max-width: 1240px; margin: 40px auto 0; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0 24px 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; border-bottom: 1px solid #bbb; }
.footer-bottom a { text-decoration: none; }
.copy { text-align: right; margin: 8px 0 24px; font-size: 13px; }

.sticky-cta { display: none; }

/* ---------------- レスポンシブ ---------------- */
@media (max-width: 1280px) {
  .gnav a { letter-spacing: .04em; font-size: 15px; }
  .gnav > ul { gap: 8px 18px; }
  .logo img { width: 200px; }
}
@media (max-width: 1024px) {
  .logo img { width: 280px; max-width: calc(100vw - 96px); }
  /* スマホ・タブレット：ハンバーガーメニュー。ヘッダーはスクロールしても上に固定（sticky） */
  .site-header { min-height: 60px; padding-right: max(8px, env(safe-area-inset-right, 0px)); }
  .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .gnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
          max-height: calc(100dvh - 60px); overflow-y: auto; overscroll-behavior: contain;
          padding: 4px max(16px, env(safe-area-inset-right, 0px)) 24px var(--gutter);
          box-shadow: 0 12px 24px rgba(0,0,0,.15); border-top: 3px solid var(--blue); }
  .site-header.is-open .gnav { display: block; }
  .gnav > ul { flex-direction: column; gap: 0; }
  .gnav a { padding: 15px 4px; font-size: 16px; letter-spacing: .06em; border-bottom: 1px solid var(--rule); }
  .gnav .has-sub > a::after { display: none; }
  .gnav .has-sub ul { display: block !important; position: static; box-shadow: none; border: 0; padding: 0 0 0 18px; min-width: 0; }
  .gnav .has-sub ul a { padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--text-2); }
  .gnav .sub-all a { font-weight: 500; border-bottom: 1px solid var(--rule); }
  .gnav .has-sub ul a::before { content: "›"; margin-right: 8px; color: var(--blue); }
  .menu-cta { display: grid; gap: 10px; margin-top: 20px; }
  body.menu-open { overflow: hidden; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
  .sticky-cta { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.12); }
  .sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 0; font-weight: 700; text-decoration: none; }
  .s-tel { background: var(--red); color: #fff; }
  .s-line { background: var(--green); color: #000; }
  .s-mail { background: var(--yellow); color: #000; }
  body { padding-bottom: 52px; }
}
@media (max-width: 767px) {
  :root { --fs-body: 16px; }
  .footer-contact { width: fit-content; margin-inline: auto; }
  .footer-related { text-align: center; }
  .footer-bottom ul { justify-content: center; padding: 0 0 12px; }
  .copy { text-align: center; }
  .svc-wide a { padding: 20px 14px; }
  main .svc-wide p { font-size: 14px; }
  main .svc-other li { font-size: 13px; line-height: 1.7; }
  .hero p.hero-sub { font-size: 15px; line-height: 1.6; }
  .hero-inner, .advisor, .more-biz, .tables-2, .media { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 28px 20px; }
  .hero-visual { max-width: 420px; margin-inline: auto; }
  /* スマホのファーストビューは中央揃え */
  /* 並び順：帯 → 大見出し → メインビジュアル → 説明文（.hero-text の中身をグリッドに直接並べる） */
  .hero-inner { gap: 0; }
  .hero-text { display: contents; text-align: center; }
  .hero .ribbon { order: 1; justify-self: center; margin-bottom: 18px; }
  .hero h1 { order: 2; text-align: center; }
  .hero-visual { order: 3; margin-top: 20px; }
  .hero p.hero-sub { order: 4; text-align: center; }
  /* お知らせバナー：スマホでは文字を画像の下に出す（画像に重ねると収まらないため） */
  .season-label { position: static; display: block; padding: 12px 16px; font-size: 14px; letter-spacing: .02em; }
  .season-label b { font-size: 20px; letter-spacing: .06em; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero p.hero-sub { margin-top: 20px; text-wrap: balance; }
  .advisor { padding-block: 48px 8px; }
  .methods, .strength-grid { grid-template-columns: 1fr; }
  .methods figure { max-width: 360px; margin-inline: auto; }
  .voices ul { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .product-list, .related { grid-template-columns: 1fr 1fr; }
  .flow-mini { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; }
  .site-footer { margin-inline: 16px; }
  .footer-contact a { font-size: 17px; gap: 14px; }
  .circle { width: 46px; height: 46px; }
  table.spec th { width: 34%; white-space: normal; }
  .page-title::before { margin-left: 40px; }
  .page-title::after { display: none; }
}
@media (max-width: 480px) {
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .svc-grid h3 { font-size: 15px; }
  .product-list, .related { grid-template-columns: 1fr; }
  .logo img { width: 266px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
