/* =========================================================
   せき行政書士事務所 共通スタイル
   色を変えたいときは :root の値だけ変更してください
   ========================================================= */
:root {
  --green-900: #163a2c;   /* 深い緑（見出し・フッター） */
  --green-700: #1f5540;   /* メインの緑 */
  --green-100: #e8f1ec;   /* 薄い緑（背景） */
  --river: #2c6e8a;       /* 清流の青 */
  --river-100: #e6f1f5;
  --washi: #f8f6f0;       /* 和紙のような生成り */
  --ink: #23302a;         /* 本文の文字色 */
  --muted: #5d6b64;
  --line: #dfe5e1;
  --cta: #c2622d;         /* 問い合わせボタン（柿色） */
  --cta-dark: #a24f20;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(22, 58, 44, .08);
  --max: 1120px;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--river); }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-900); line-height: 1.5; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.nw { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 未確定情報の目印（公開前にすべて置き換え、このクラスを消してください） */
.todo {
  background: #fff4b8;
  border-bottom: 2px dashed #d4a800;
  padding: 0 .25em;
  font-weight: 700;
  color: #6b5200;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { white-space: nowrap; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.logo-text small { display: block; font-family: var(--sans); font-weight: 400; font-size: .68rem; color: var(--muted); letter-spacing: .08em; }
.global-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.global-nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.global-nav a:hover, .global-nav a[aria-current="page"] { color: var(--green-700); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-tel { text-decoration: none; color: var(--green-900); font-weight: 700; line-height: 1.2; text-align: right; font-size: .95rem; }
.header-tel small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; transition: .2s; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--sans);
  transition: background .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: #fff; }
.btn-outline:hover { background: var(--green-100); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; white-space: nowrap; }
.header-tel { white-space: nowrap; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg svg, .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,40,30,.72) 0%, rgba(14,40,30,.35) 55%, rgba(14,40,30,.05) 100%); }
.hero-content { padding: 80px 0; max-width: 640px; }
.hero-eyebrow { display: inline-block; font-size: .85rem; letter-spacing: .15em; border: 1px solid rgba(255,255,255,.6); padding: .2em 1em; border-radius: 999px; margin-bottom: 1.2em; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.45; margin-bottom: .5em; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-lead { font-size: clamp(1rem, 2.2vw, 1.15rem); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 1.4em; font-size: .85rem; opacity: .9; }
.photo-credit { position: absolute; right: 12px; bottom: 8px; font-size: .7rem; opacity: .75; }

/* ---------- セクション共通 ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--washi); }
.section-green { background: var(--green-100); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .25em; color: var(--river); text-transform: uppercase; margin-bottom: .4em; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.section-head p { color: var(--muted); max-width: 680px; margin: 0 auto; }

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

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.18rem; }
.card p:last-child { margin-bottom: 0; }

/* 挨拶 */
.greeting { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--green-100), var(--river-100)); display: grid; place-items: center; color: var(--muted); text-align: center; font-size: .9rem; padding: 20px; border: 2px dashed #b9cbc1; }
.greeting h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.signature { font-family: var(--serif); text-align: right; margin-top: 1.5em; }

/* 業務カード */
.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(22,58,44,.13); color: inherit; }
.service-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green-100); display: grid; place-items: center; margin-bottom: 14px; }
.service-icon svg { width: 28px; height: 28px; stroke: var(--green-700); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.service-card .more { font-size: .88rem; font-weight: 700; color: var(--river); }
.tag { display: inline-block; font-size: .72rem; padding: .1em .7em; border-radius: 999px; background: var(--river-100); color: var(--river); margin-bottom: 8px; font-weight: 700; }
.tag-plan { background: #fff4b8; color: #6b5200; }

/* お悩み */
.worry-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.worry-list li { background: #fff; border-radius: 12px; padding: 18px 20px 18px 52px; position: relative; border: 1px solid var(--line); }
.worry-list li::before { content: "?"; position: absolute; left: 16px; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: var(--river); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; line-height: 1; }
.worry-list strong { display: block; color: var(--green-900); }
.worry-list span { font-size: .9rem; color: var(--muted); }

/* 流れ */
.flow { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 24px 18px; border: 1px solid var(--line); position: relative; }
.flow li::before { content: "STEP " counter(step); display: block; font-size: .75rem; letter-spacing: .15em; color: var(--river); font-weight: 700; margin-bottom: 6px; }
.flow h3 { font-size: 1.05rem; }
.flow p { font-size: .88rem; color: var(--muted); margin: 0; }

/* 料金 */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { background: var(--green-700); color: #fff; font-family: var(--sans); font-size: .9rem; }
.price-table td:last-child { white-space: nowrap; font-weight: 700; }
.price-points { margin-top: 32px; }
.price-points li { margin-bottom: .5em; }
.note { font-size: .85rem; color: var(--muted); }

/* プロフィール・アクセス */
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.profile-table th { width: 32%; color: var(--green-900); font-weight: 700; white-space: nowrap; }
.map-box { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--river-100); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 20px; border: 2px dashed #b4cfda; }
.map-box iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 48px 18px 56px; position: relative; font-weight: 700; color: var(--green-900); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 20px; top: 16px; font-family: var(--serif); font-size: 1.2rem; color: var(--river); }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 20px 56px; position: relative; }
.faq .answer::before { content: "A"; position: absolute; left: 20px; top: -2px; font-family: var(--serif); font-size: 1.2rem; color: var(--cta); }

/* 岐阜の魅力 */
.gifu-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.gifu-card .thumb { aspect-ratio: 16/10; }
.gifu-card .thumb svg, .gifu-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gifu-card .body { padding: 20px 22px 24px; }
.gifu-card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.gifu-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* コラム一覧 */
.post-list { display: grid; gap: 16px; }
.post-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; }
.post-item:hover { border-color: var(--green-700); color: inherit; }
.post-item .cat { font-size: .78rem; font-weight: 700; color: var(--river); }
.post-item h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.post-item p { font-size: .88rem; color: var(--muted); margin: 0; }
.post-item time { font-size: .8rem; color: var(--muted); }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.cat-filter button { border: 1px solid var(--line); background: #fff; padding: .4em 1em; border-radius: 999px; cursor: pointer; font-family: var(--sans); font-size: .88rem; }
.cat-filter button[aria-pressed="true"] { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* CTA帯 */
.cta-band { background: linear-gradient(120deg, var(--green-900), var(--green-700) 60%, var(--river)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3.2vw, 2rem); }
.cta-band p { opacity: .92; }
.cta-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 32px auto 0; }
.cta-option { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 24px 16px; text-decoration: none; color: #fff; display: block; }
.cta-option:hover { background: rgba(255,255,255,.18); color: #fff; }
.cta-option strong { display: block; font-size: 1.15rem; margin: 4px 0; }
.cta-option small { opacity: .85; }

/* 下層ページ */
.page-hero { background: linear-gradient(120deg, var(--green-100), var(--river-100)); padding: 56px 0 44px; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .3em; }
.page-hero p { color: var(--muted); margin: 0; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }

.service-detail { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.detail-grid h3 { font-size: 1rem; color: var(--river); font-family: var(--sans); }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: .4em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 700; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; border: 1px solid var(--line); background: #fff; padding: .35em 1em; border-radius: 999px; font-size: .88rem; color: var(--green-900); }
.toc a:hover { border-color: var(--green-700); }

/* 記事本文 */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 1.45rem; margin-top: 2.2em; padding-bottom: .3em; border-bottom: 2px solid var(--green-100); }
.article h3 { font-size: 1.15rem; margin-top: 1.6em; }
.article .meta { color: var(--muted); font-size: .85rem; }
.point-box { background: var(--river-100); border-left: 4px solid var(--river); padding: 18px 22px; border-radius: 8px; margin: 1.5em 0; }
.point-box p:last-child { margin-bottom: 0; }
.timeline-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.timeline-table th, .timeline-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.timeline-table th { background: var(--green-100); white-space: nowrap; }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--washi); border-radius: var(--radius); padding: 20px; margin-top: 2.5em; }
.author-box .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); flex: none; }
.inline-cta { background: var(--washi); border: 2px solid var(--green-100); border-radius: var(--radius); padding: 24px; text-align: center; margin: 2.5em 0; }

/* フォーム */
.form { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 22px; }
.form label, .form legend { display: block; font-weight: 700; margin-bottom: 6px; color: var(--green-900); }
.req { display: inline-block; background: var(--cta); color: #fff; font-size: .7rem; padding: 0 .5em; border-radius: 4px; margin-left: .5em; vertical-align: middle; }
.opt { display: inline-block; background: var(--line); color: var(--muted); font-size: .7rem; padding: 0 .5em; border-radius: 4px; margin-left: .5em; vertical-align: middle; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c9d3cd; border-radius: 8px; font-size: 16px; font-family: var(--sans); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(44,110,138,.25); border-color: var(--river); }
.form textarea { min-height: 160px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choice-group label { font-weight: 400; color: var(--ink); display: inline-flex; align-items: center; gap: .4em; margin: 0; }
.form .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-weight: 700; }

/* フッター */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.85); padding: 56px 0 100px; font-size: .9rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 36px; padding-top: 20px; font-size: .78rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer .todo { color: #6b5200; }

/* スマホ下部の固定ボタン */
.mobile-cta { display: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .header-tel { display: none; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .global-nav { position: fixed; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .global-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .header-cta .btn { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .greeting { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 260px; margin: 0 auto; }
  .worry-list { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .cta-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { padding: .75em .5em; font-size: .95rem; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero-actions .btn { width: 100%; }
  .post-item { grid-template-columns: 1fr; gap: 6px; }
  .form { padding: 24px 18px; }
  .price-table td:last-child { white-space: normal; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
