/* ==========================================================================
   みらい社会保険労務士事務所 — デザインシステム
   コンセプト：「人と組織に、安心できる労務のかたちを。」
   深い墨緑（信頼・専門性）× オフホワイト（清潔感）× テラコッタ（人間味）
   ========================================================================== */

:root{
  /* --- カラーシステム --- */
  --color-ink:        #1f2e28;   /* 深い墨緑：見出し・ロゴ・重要テキスト */
  --color-ink-soft:   #2f4238;   /* ホバー・サブ見出し */
  --color-forest:     #2c4338;   /* セクション背景（濃） */
  --color-forest-deep:#182420;   /* 最深部（フッター等） */
  --color-paper:      #faf7f0;   /* オフホワイト：ベース背景 */
  --color-paper-dim:  #f2ede1;   /* オフホワイト（やや濃い帯） */
  --color-stone:      #6b6558;   /* ウォームグレー：本文 */
  --color-stone-soft: #8c8778;   /* 補足テキスト・キャプション */
  --color-line:       #ddd6c6;   /* 罫線 */
  --color-terracotta: #b5693f;   /* アクセント：CTA・強調・温かみ */
  --color-terracotta-deep:#8f4f2d;
  --color-cream-card: #ffffff;   /* カード背景 */
  --color-gold-line:  #a98a4e;   /* 細い装飾線・数字 */

  /* --- タイポグラフィ --- */
  --font-serif: "Noto Serif JP", "Shippori Mincho", serif;
  --font-sans:  "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;

  /* --- レイアウト --- */
  --content-width: 1120px;
  --content-width-narrow: 820px;
  --radius-s: 2px;
  --radius-m: 4px;
  --shadow-soft: 0 10px 30px -14px rgba(31,46,40,0.25);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-paper);
  font-size:16px;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
  text-rendering: optimizeLegibility;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }

.container{
  width:100%;
  max-width: var(--content-width);
  margin-inline:auto;
  padding-inline: 24px;
}
.container--narrow{ max-width: var(--content-width-narrow); }

@media (min-width:768px){
  .container{ padding-inline: 40px; }
}

/* --- 見出し階層 --- */
h1,h2,h3,h4,h5,h6{
  font-family: var(--font-serif);
  color: var(--color-ink);
  font-weight:600;
  line-height:1.5;
  margin:0;
  letter-spacing:.02em;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-serif);
  font-size:13px;
  letter-spacing:.32em;
  color: var(--color-terracotta-deep);
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width:28px; height:1px;
  background: var(--color-terracotta);
  display:inline-block;
}

.section-head{
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 18px;
}
.section-head p{
  color: var(--color-stone);
  font-size:15.5px;
  line-height:1.95;
}

.lede{
  font-size:17px;
  line-height:2.05;
  color: var(--color-stone);
}

/* --- セクション共通 --- */
.section{ padding: 96px 0; position:relative; }
.section--tight{ padding: 72px 0; }
.section--paper{ background: var(--color-paper); }
.section--dim{ background: var(--color-paper-dim); }
.section--forest{ background: var(--color-forest); color:#f3efe3; }
.section--forest h2, .section--forest h3{ color:#fdfbf4; }
.section--forest .section-head p{ color:#cfd7ca; }
.section--border-top{ border-top:1px solid var(--color-line); }

@media (max-width:767px){
  .section{ padding: 64px 0; }
  .section--tight{ padding: 52px 0; }
}

/* --- ボタン --- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 16px 34px;
  font-family: var(--font-serif);
  font-size:15px;
  letter-spacing:.08em;
  border-radius: var(--radius-s);
  border:1px solid transparent;
  cursor:pointer;
  transition: all .35s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background: var(--color-terracotta);
  color:#fff7ee;
  border-color: var(--color-terracotta);
}
.btn-primary:hover{ background: var(--color-terracotta-deep); border-color: var(--color-terracotta-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-outline{
  background:transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-outline:hover{ background: var(--color-ink); color:#faf7f0; }

.btn-ghost-light{
  background:transparent;
  color:#fdfbf4;
  border-color: rgba(253,251,244,.5);
}
.btn-ghost-light:hover{ background: rgba(253,251,244,.12); border-color:#fdfbf4; }

.btn-sm{ padding:11px 22px; font-size:13.5px; }

.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

.text-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-serif);
  font-size:15px;
  color: var(--color-ink);
  padding-bottom:3px;
  border-bottom:1px solid var(--color-line);
  transition: border-color .3s var(--ease), color .3s var(--ease), gap .3s var(--ease);
}
.text-link:hover{ border-color: var(--color-terracotta); color: var(--color-terracotta-deep); gap:12px; }
.text-link .arrow{ transition: transform .3s var(--ease); }
.text-link:hover .arrow{ transform: translateX(3px); }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
}
.site-header.is-scrolled{
  background: rgba(250,247,240,0.94);
  backdrop-filter: blur(8px);
  padding: 13px 0;
  box-shadow: 0 6px 24px -16px rgba(31,46,40,.35);
  border-bottom-color: var(--color-line);
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-family: var(--font-serif);
  font-weight:600; font-size:16px;
  color: var(--color-ink);
  line-height:1.3;
  min-width:0;
}
.brand > span{
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
@media (max-width:420px){
  .brand > span{ font-size:13.5px; max-width:150px; }
  .brand small{ font-size:9px; }
}
@media (max-width:1023px){
  .brand small{ display:none; }
}
.site-header.is-scrolled .brand,
body:not(.is-home) .brand{ color: var(--color-ink); }
.brand .mark{
  width:40px;height:40px;border-radius:50%;
  border:1.2px solid currentColor;
  display:flex;align-items:center;justify-content:center;
  font-family: var(--font-serif); font-size:17px; flex:none;
}
.brand small{ display:block; font-family:var(--font-sans); font-size:10.5px; letter-spacing:.14em; color:var(--color-stone-soft); font-weight:400; }

.site-header.transparent-on-top:not(.is-scrolled) .brand{ color:#fdfbf4; }
.site-header.transparent-on-top:not(.is-scrolled) .brand small{ color:#d9ddd1; }

.main-nav{ display:none; }
@media (min-width:1024px){
  .main-nav{
    display:flex; align-items:center; gap:34px;
    font-family: var(--font-serif); font-size:14.5px; letter-spacing:.03em;
  }
  .main-nav a{ position:relative; padding:4px 0; color:inherit; }
  .main-nav a::after{
    content:""; position:absolute; left:0; right:0; bottom:-3px; height:1px;
    background: currentColor; transform:scaleX(0); transform-origin:right;
    transition: transform .35s var(--ease);
  }
  .main-nav a:hover::after, .main-nav a.active::after{ transform:scaleX(1); transform-origin:left; }
}
.site-header.transparent-on-top:not(.is-scrolled) .main-nav{ color:#fdfbf4; }
.site-header.is-scrolled .main-nav, body:not(.is-home) .main-nav{ color: var(--color-ink); }

.header-cta{ display:flex; align-items:center; gap:18px; flex:none; }
.header-cta .btn{ padding:12px 24px; font-size:13.5px; }
@media (max-width:640px){
  .header-cta .btn{ display:none; }
}

.nav-toggle{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:40px; height:40px; background:none; border:none; cursor:pointer; z-index:1100;
}
@media (min-width:1024px){ .nav-toggle{ display:none; } }
.nav-toggle span{ display:block; width:24px; height:1.6px; background: currentColor; transition: all .3s var(--ease); }
.site-header.transparent-on-top:not(.is-scrolled) .nav-toggle{ color:#fdfbf4; }
.site-header.is-scrolled .nav-toggle, body:not(.is-home) .nav-toggle{ color: var(--color-ink); }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

.mobile-nav{
  position:fixed; inset:0; z-index:1050;
  background: var(--color-ink);
  color:#f3efe3;
  display:flex; flex-direction:column;
  padding: 100px 32px 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-nav.is-open{ transform: translateY(0); }
.mobile-nav nav{ display:flex; flex-direction:column; gap:4px; font-family: var(--font-serif); }
.mobile-nav nav a{
  padding: 16px 0; font-size:21px; border-bottom:1px solid rgba(255,255,255,.12);
  display:flex; justify-content:space-between; align-items:center;
}
.mobile-nav .mobile-cta{ margin-top:36px; }
@media (min-width:1024px){ .mobile-nav{ display:none; } }

body.nav-open{ overflow:hidden; }

/* ==========================================================================
   パンくずリスト
   ========================================================================== */
.breadcrumb{
  padding: 118px 0 18px;
  font-size:13px;
  color: var(--color-stone-soft);
}
.breadcrumb ol{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.breadcrumb a{ color: var(--color-stone); border-bottom:1px solid transparent; }
.breadcrumb a:hover{ border-color: var(--color-stone); }
.breadcrumb li:not(:last-child)::after{ content:"/"; margin-left:8px; color: var(--color-line); }
.breadcrumb li[aria-current] { color: var(--color-ink); }

/* ==========================================================================
   ページヘッダー（下層ページ共通タイトル部）
   ========================================================================== */
.page-hero{
  padding: 28px 0 72px;
  background: var(--color-paper-dim);
  border-bottom:1px solid var(--color-line);
}
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero h1{ font-size: clamp(30px, 4.4vw, 44px); margin-bottom:18px; }
.page-hero p{ color: var(--color-stone); max-width:680px; font-size:16px; line-height:1.95; }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer{
  background: var(--color-forest-deep);
  color: #d9ddd1;
  padding: 72px 0 28px;
}
.footer-grid{
  display:grid; gap:48px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width:860px){ .footer-grid{ grid-template-columns: 1fr; gap:40px; } }
.footer-brand{ font-family: var(--font-serif); color:#fdfbf4; font-size:19px; margin-bottom:14px; }
.footer-col h4{
  font-family: var(--font-sans); font-size:13px; letter-spacing:.14em; color:#aeb6a4;
  margin-bottom:18px; font-weight:600;
}
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:14.5px; color:#e6e8de; transition: color .25s; }
.footer-col a:hover{ color: var(--color-terracotta); }
.footer-contact p{ font-size:14.5px; margin:0 0 8px; color:#e6e8de; line-height:1.9; }
.footer-bottom{
  margin-top:56px; padding-top:24px; border-top:1px solid rgba(255,255,255,.12);
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px;
  font-size:12.5px; color:#8f988a;
}
.footer-bottom a{ color:#8f988a; }
.footer-bottom a:hover{ color:#e6e8de; }

/* ==========================================================================
   カード／業務紹介パーツ（共通）
   ========================================================================== */
.card{
  background: var(--color-cream-card);
  border:1px solid var(--color-line);
  border-radius: var(--radius-m);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.card:hover{ box-shadow: var(--shadow-soft); transform: translateY(-4px); border-color:#cfc6ac; }

.service-pill{
  display:inline-flex; align-items:center; justify-content:center;
  width:46px;height:46px;border-radius:50%;
  border:1px solid var(--color-gold-line); color:var(--color-gold-line);
  font-family: var(--font-serif); font-size:15px; flex:none;
}

/* --- CTA帯 --- */
.cta-band{
  background: var(--color-ink);
  color:#f3efe3;
  padding: 72px 0;
  text-align:center;
}
.cta-band h2{ color:#fdfbf4; font-size: clamp(24px,3vw,32px); margin-bottom:16px; }
.cta-band p{ color:#cfd7ca; max-width:560px; margin:0 auto 32px; font-size:15.5px; line-height:1.9; }
.cta-band .cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ==========================================================================
   FAQ（アコーディオン）
   ========================================================================== */
.faq-list{ display:flex; flex-direction:column; gap:1px; border-top:1px solid var(--color-line); }
.faq-item{ border-bottom:1px solid var(--color-line); background: var(--color-paper); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px;
  text-align:left; background:none; border:none; cursor:pointer;
  padding: 24px 4px; font-family: var(--font-serif); font-size:16.5px; color: var(--color-ink);
}
.faq-q .q-mark{ font-family: var(--font-serif); color: var(--color-terracotta); font-size:15px; flex:none; }
.faq-q-text{ flex:1; }
.faq-icon{ position:relative; width:18px; height:18px; flex:none; }
.faq-icon::before, .faq-icon::after{
  content:""; position:absolute; background: var(--color-ink); transition: transform .35s var(--ease), opacity .3s;
}
.faq-icon::before{ left:0; top:50%; width:100%; height:1.4px; transform:translateY(-50%); }
.faq-icon::after{ top:0; left:50%; width:1.4px; height:100%; transform:translateX(-50%); }
.faq-item.is-open .faq-icon::after{ transform:translateX(-50%) rotate(90deg); opacity:0; }
.faq-a{
  max-height:0; overflow:hidden; transition: max-height .45s var(--ease);
}
.faq-a-inner{ padding: 0 4px 26px; color: var(--color-stone); font-size:15px; line-height:1.95; max-width:760px; }

/* ==========================================================================
   フォーム
   ========================================================================== */
.form-grid{ display:grid; gap:24px; grid-template-columns: 1fr 1fr; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size:13.5px; color: var(--color-ink); display:flex; gap:8px; align-items:center; }
.required-tag{
  font-size:11px; color:#fff; background: var(--color-terracotta); padding:2px 8px; border-radius:2px; letter-spacing:.05em;
}
.optional-tag{
  font-size:11px; color: var(--color-stone-soft); border:1px solid var(--color-line); padding:2px 8px; border-radius:2px;
}
.form-field input, .form-field textarea, .form-field select{
  font-family: inherit; font-size:15.5px; color: var(--color-ink);
  background: #fff; border:1px solid var(--color-line); border-radius: var(--radius-s);
  padding: 14px 16px; transition: border-color .25s;
  width:100%;
}
.form-field textarea{ resize:vertical; min-height:150px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{
  border-color: var(--color-terracotta); outline:none;
}
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select{
  border-color:#b23b3b;
}
.field-error{ font-size:12.5px; color:#b23b3b; min-height:1em; }
.form-note{
  font-size:13px; color: var(--color-stone-soft); line-height:1.9; background: var(--color-paper-dim);
  border:1px solid var(--color-line); padding:18px 20px; border-radius: var(--radius-s);
}
.form-consent{ display:flex; align-items:flex-start; gap:10px; font-size:14px; color: var(--color-stone); }
.form-consent input{ margin-top:4px; }
.form-submit-row{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top:8px; }
.form-status{ font-size:14px; }
.form-status.error{ color:#b23b3b; }
.form-status.success{ color: var(--color-ink-soft); }

.form-success{
  text-align:center; padding: 56px 24px;
  border:1px solid var(--color-line); background: var(--color-paper-dim); border-radius: var(--radius-m);
}
.form-success h3{ margin-bottom:14px; font-size:22px; }
.form-success p{ color: var(--color-stone); }

/* ==========================================================================
   スクロールフェード系ユーティリティ
   ========================================================================== */
.reveal{ opacity:0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger > *{ opacity:0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-stagger.is-visible > *{ opacity:1; transform:none; }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay:.14s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay:.23s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay:.32s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay:.41s; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay:.5s; }
.reveal-stagger.is-visible > *:nth-child(7){ transition-delay:.59s; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-stagger > *{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ==========================================================================
   プレースホルダー画像（素材未確定箇所）
   ========================================================================== */
.ph-image{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  background: repeating-linear-gradient(135deg, #e7e2d4, #e7e2d4 10px, #ded8c6 10px, #ded8c6 20px);
  color:#8c8778; text-align:center;
  border:1px solid var(--color-line);
}
.ph-image span{
  font-size:12.5px; letter-spacing:.08em; background:rgba(250,247,240,.9);
  padding:8px 16px; border-radius:3px;
}

/* ==========================================================================
   トップ：HERO
   ========================================================================== */
.hero{
  position:relative;
  min-height: 100svh;
  display:flex; align-items:center;
  background: var(--color-ink);
  color:#fdfbf4;
  overflow:hidden;
  padding-top: 90px;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(181,105,63,.22), transparent 45%),
    radial-gradient(ellipse at 85% 85%, rgba(169,138,78,.18), transparent 50%);
  pointer-events:none;
}
.hero-grain{
  position:absolute; inset:0; opacity:.5; mix-blend-mode:overlay; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.hero-inner{
  position:relative; z-index:2;
  display:grid; grid-template-columns: 1.15fr .85fr; gap:60px; align-items:center;
  width:100%;
}
@media (max-width:960px){
  .hero-inner{ grid-template-columns: 1fr; gap:48px; }
}
.hero-eyebrow{
  font-family: var(--font-serif); letter-spacing:.3em; font-size:12.5px; color:#e9c79f;
  display:flex; align-items:center; gap:14px; margin-bottom:26px;
}
.hero-eyebrow::before{ content:""; width:38px; height:1px; background:#e9c79f; }
.hero h1{
  color:#fdfbf4;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height:1.55;
  margin-bottom: 28px;
  font-weight:600;
}
.hero h1 .accent{ color:#e6a06a; }
.hero-sub{
  font-size:16.5px; line-height:2.05; color:#dfe3d6; max-width:540px; margin-bottom:38px;
}
.hero-cta{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom:46px; }
.hero-points{
  display:flex; flex-wrap:wrap; gap:22px 32px; font-size:13.5px; color:#cfd7ca;
}
.hero-points li{ display:flex; align-items:center; gap:9px; }
.hero-points li::before{ content:""; width:5px; height:5px; border-radius:50%; background:#e6a06a; }

.hero-portrait{
  position:relative;
}
.hero-portrait-frame{
  position:relative;
  aspect-ratio: 4/5;
  overflow:hidden;
  border-radius: 3px;
  clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
}
.hero-portrait-frame img{ width:100%; height:100%; object-fit:cover; object-position: 50% 12%; }
.hero-portrait-frame::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(24,36,32,0) 55%, rgba(24,36,32,.55) 100%);
}
.hero-portrait-caption{
  position:absolute; left:22px; bottom:22px; z-index:2;
  color:#fdfbf4; font-family:var(--font-serif);
}
.hero-portrait-caption .name{ font-size:19px; display:block; }
.hero-portrait-caption .role{ font-size:12px; letter-spacing:.1em; color:#dfe3d6; }
.hero-portrait-deco{
  position:absolute; top:-18px; right:-18px; width:84px; height:84px;
  border:1px solid rgba(233,199,159,.6); border-radius:50%; z-index:-1;
}

.scroll-cue{
  position:absolute; left:50%; bottom:28px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color:#cfd7ca; font-size:11px; letter-spacing:.2em; z-index:2;
}
.scroll-cue .line{ width:1px; height:40px; background: linear-gradient(#e6a06a, transparent); position:relative; overflow:hidden; }
.scroll-cue .line::after{
  content:""; position:absolute; top:-40px; left:0; width:100%; height:40px; background:#fdfbf4;
  animation: scrollDrip 2.2s infinite ease-in-out;
}
@keyframes scrollDrip{
  0%{ transform:translateY(0); opacity:0; }
  20%{ opacity:1; }
  100%{ transform:translateY(80px); opacity:0; }
}
@media (prefers-reduced-motion: reduce){ .scroll-cue .line::after{ animation:none; display:none; } }

/* ==========================================================================
   MESSAGE セクション
   ========================================================================== */
.message-layout{
  display:grid; grid-template-columns: .9fr 1.4fr; gap:64px; align-items:start;
}
@media (max-width:900px){ .message-layout{ grid-template-columns:1fr; gap:40px; } }
.message-quote{
  font-family: var(--font-serif);
  font-size: clamp(22px,2.6vw,28px);
  line-height:1.85;
  color: var(--color-ink);
  position:relative;
  padding-left:28px;
  border-left: 2px solid var(--color-terracotta);
}
.message-signature{
  margin-top:28px; font-family:var(--font-serif); font-size:14.5px; color: var(--color-stone);
  text-align:right;
}
.message-body p{ color: var(--color-stone); margin-bottom:22px; font-size:15.5px; line-height:2.05; }
.message-body p:last-child{ margin-bottom:0; }
.message-more{ margin-top:28px; }

/* ==========================================================================
   PROBLEMS セクション
   ========================================================================== */
.problem-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap:1px;
  background: var(--color-line);
  border:1px solid var(--color-line);
}
@media (max-width:860px){ .problem-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .problem-grid{ grid-template-columns: 1fr; } }
.problem-item{
  background: var(--color-paper);
  padding: 34px 28px;
  display:flex; flex-direction:column; gap:14px;
  transition: background .35s var(--ease);
}
.problem-item:hover{ background:#fff; }
.problem-item .num{ font-family: var(--font-serif); color: var(--color-gold-line); font-size:13px; letter-spacing:.1em; }
.problem-item h3{ font-size:17.5px; line-height:1.6; }
.problem-item p{ font-size:14px; color: var(--color-stone); line-height:1.85; }
.problem-item a.text-link{ margin-top:auto; font-size:13.5px; }

/* ==========================================================================
   SERVICES（業務内容）
   ========================================================================== */
.services-feature{
  display:grid; grid-template-columns: 1fr 1fr; gap:0;
  border:1px solid var(--color-line); margin-bottom: 56px;
  background:#fff;
}
@media (max-width:860px){ .services-feature{ grid-template-columns:1fr; } }
.services-feature-media{ position:relative; min-height:280px; }
.services-feature-media img{ width:100%;height:100%;object-fit:cover; }
.services-feature-body{ padding: 44px; display:flex; flex-direction:column; gap:18px; justify-content:center; }
.services-feature-body .num{ font-family: var(--font-serif); color: var(--color-gold-line); font-size:13px; letter-spacing:.14em; }
.services-feature-body h3{ font-size: clamp(21px,2.4vw,27px); }
.services-feature-body p{ color: var(--color-stone); font-size:15px; line-height:1.95; }
.services-feature-body ul{ display:flex; flex-direction:column; gap:8px; margin:6px 0; }
.services-feature-body ul li{ font-size:13.8px; color: var(--color-ink-soft); padding-left:18px; position:relative; }
.services-feature-body ul li::before{ content:"―"; position:absolute; left:0; color: var(--color-gold-line); }

.service-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 2px;
  background: var(--color-line); border:1px solid var(--color-line);
}
@media (max-width:860px){ .service-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .service-grid{ grid-template-columns: 1fr; } }
.service-card{
  background:#fff; padding:36px 30px; display:flex; flex-direction:column; gap:16px;
  transition: background .3s;
}
.service-card:hover{ background: var(--color-paper-dim); }
.service-card .num{ font-family: var(--font-serif); font-size:12.5px; color: var(--color-gold-line); letter-spacing:.1em; }
.service-card h4{ font-size:17.5px; line-height:1.55; }
.service-card p{ font-size:13.8px; color: var(--color-stone); line-height:1.85; flex:1; }

/* ==========================================================================
   APPROACH セクション
   ========================================================================== */
.approach-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 48px;
}
@media (max-width:860px){ .approach-grid{ grid-template-columns: 1fr; gap:40px; } }
.approach-item{ position:relative; padding-top:28px; }
.approach-item .roman{
  font-family: var(--font-serif); font-size:13px; letter-spacing:.14em; color:#e6a06a;
  display:block; margin-bottom:16px;
}
.approach-item h3{ font-size:19px; margin-bottom:14px; color:#fdfbf4; }
.approach-item p{ font-size:14.5px; line-height:1.95; color:#cfd7ca; }

/* ==========================================================================
   FLOW（相談の流れ）
   ========================================================================== */
.flow-list{ display:flex; flex-direction:column; }
.flow-step{
  display:grid; grid-template-columns: 90px 1fr; gap: 28px;
  padding: 32px 0; border-bottom:1px solid var(--color-line);
  position:relative;
}
.flow-step:first-child{ border-top:1px solid var(--color-line); }
.flow-step .step-no{
  font-family: var(--font-serif); font-size:34px; color: var(--color-gold-line); line-height:1;
}
.flow-step h3{ font-size:18.5px; margin-bottom:10px; }
.flow-step p{ color: var(--color-stone); font-size:14.8px; line-height:1.9; max-width:620px; }
.flow-step .note{
  display:inline-block; margin-top:10px; font-size:12px; color: var(--color-terracotta-deep);
  background: #fbe9dd; padding:3px 10px; border-radius:2px;
}
@media (max-width:600px){
  .flow-step{ grid-template-columns: 50px 1fr; gap:18px; }
  .flow-step .step-no{ font-size:26px; }
}

/* ==========================================================================
   OFFICE（事務所概要）
   ========================================================================== */
.office-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:start;
}
@media (max-width:900px){ .office-grid{ grid-template-columns: 1fr; gap:40px; } }
.office-table{ width:100%; border-collapse:collapse; }
.office-table th, .office-table td{
  text-align:left; padding: 18px 0; border-bottom:1px solid var(--color-line);
  font-size:14.8px; vertical-align:top;
}
.office-table th{ width:120px; color: var(--color-stone-soft); font-weight:500; font-family: var(--font-serif); }
.office-table td{ color: var(--color-ink); line-height:1.9; }
.office-table a{ border-bottom:1px solid var(--color-line); }
.office-table a:hover{ border-color: var(--color-terracotta); }
.map-frame{ border:1px solid var(--color-line); aspect-ratio:4/3.1; width:100%; }
.map-frame iframe{ width:100%; height:100%; border:0; }

/* ==========================================================================
   詳細ページ共通：業務ページテンプレート
   ========================================================================== */
.service-detail-nav{
  position:sticky; top:84px; display:flex; flex-direction:column; gap:2px;
}
.service-detail-nav a{
  padding:14px 16px; font-size:13.8px; border-left:2px solid transparent; color: var(--color-stone);
  transition: all .25s;
}
.service-detail-nav a:hover, .service-detail-nav a.active{ border-color: var(--color-terracotta); color: var(--color-ink); background: var(--color-paper-dim); }

.detail-layout{ display:grid; grid-template-columns: 220px 1fr; gap:64px; align-items:start; }
@media (max-width:900px){ .detail-layout{ grid-template-columns:1fr; } .service-detail-nav{ position:static; flex-direction:row; flex-wrap:wrap; } }

.detail-block{ margin-bottom:64px; scroll-margin-top:100px; }
.detail-block h2{ font-size: clamp(21px,2.3vw,26px); margin-bottom:22px; padding-bottom:16px; border-bottom:1px solid var(--color-line); }
.detail-block h3{ font-size:17px; margin:26px 0 12px; color: var(--color-ink-soft); }
.detail-block p{ color: var(--color-stone); font-size:15px; line-height:2; margin-bottom:16px; }
.detail-block ul{ display:flex; flex-direction:column; gap:10px; margin:12px 0 20px; }
.detail-block ul li{ font-size:14.8px; color: var(--color-ink-soft); padding-left:22px; position:relative; line-height:1.9; }
.detail-block ul li::before{ content:"―"; position:absolute; left:0; color: var(--color-gold-line); }
.note-box{
  background: var(--color-paper-dim); border:1px solid var(--color-line); border-left:3px solid var(--color-terracotta);
  padding:20px 24px; font-size:13.8px; color: var(--color-stone); line-height:1.9; border-radius: 2px; margin:24px 0;
}
.note-box strong{ color: var(--color-ink); }

.related-services{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:760px){ .related-services{ grid-template-columns:1fr; } }
.related-card{ padding:26px; }
.related-card h4{ font-size:15.5px; margin-bottom:10px; }
.related-card p{ font-size:13.3px; color: var(--color-stone); line-height:1.8; margin-bottom:14px; }

/* ==========================================================================
   プロフィール
   ========================================================================== */
.profile-layout{ display:grid; grid-template-columns: 300px 1fr; gap:60px; align-items:start; }
@media (max-width:860px){ .profile-layout{ grid-template-columns:1fr; gap:36px; } }
.profile-photo{ position:sticky; top:110px; width:100%; max-width:300px; }
.profile-photo img{ width:100%; height:auto; aspect-ratio: 4 / 5; object-fit:cover; border-radius:2px; display:block; }
.profile-photo .cap{ text-align:center; font-size:12.5px; color: var(--color-stone-soft); margin-top:14px; }
@media (max-width:860px){
  .profile-photo{ position:static; max-width:240px; margin-inline:auto; }
}
.profile-name{ font-size:13px; color: var(--color-stone-soft); margin-bottom:6px; }
.career-list{ margin-top:14px; }
.career-list li{ padding:12px 0; border-bottom:1px dashed var(--color-line); font-size:14.5px; color: var(--color-stone); display:flex; gap:16px; }
.career-list li .yr{ color: var(--color-gold-line); font-family:var(--font-serif); flex:none; width:90px; }

/* ==========================================================================
   NOTICE / FAQ カテゴリタブ
   ========================================================================== */
.tag-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px; }
.tag-chip{
  padding:9px 18px; font-size:13px; border:1px solid var(--color-line); border-radius:20px; cursor:pointer;
  background:#fff; color: var(--color-stone); transition: all .25s;
}
.tag-chip.active, .tag-chip:hover{ background: var(--color-ink); color:#fdfbf4; border-color: var(--color-ink); }

/* ==========================================================================
   ユーティリティ
   ========================================================================== */
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.text-center{ text-align:center; }
.visually-hidden{
  position:absolute !important; width:1px;height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; padding:0; margin:-1px;
}
.skip-link{
  position:absolute; left:12px; top:-60px; background:var(--color-ink); color:#fff; padding:12px 18px; z-index:2000; transition: top .25s;
  border-radius:3px; font-size:13.5px;
}
.skip-link:focus{ top:12px; }
