/* =========================================================
   高木行政書士事務所 - 共通スタイル
   テーマ: シルバーグリーン（オリーブ）× 柔らかく上品で、きっちりとした信頼感
   ========================================================= */

/* ---------- カラー / 変数 ---------- */
:root {
  /* ベースのシルバーグリーン（オリーブ系） */
  --olive-900: #4a5340;
  --olive-700: #6e7d63;
  --olive-600: #7c8a6f;
  --olive-500: #8fa07f;   /* メイン */
  --olive-400: #a7b69a;
  --olive-200: #d4dccb;
  --olive-100: #e8edE1;
  --olive-050: #f3f6ef;

  /* 温かみのあるニュートラル */
  --cream:     #faf9f5;
  --paper:     #f5f3ec;
  --beige:     #e9e4d8;
  --gold:      #b9a47a;   /* 上品なアクセント */

  --ink:       #3a3b36;   /* 本文 */
  --ink-soft:  #5f6159;
  --ink-mute:  #8b8d83;
  --line:      #e3e0d6;
  --white:     #ffffff;

  --shadow-sm: 0 2px 10px rgba(74, 83, 64, .06);
  --shadow-md: 0 8px 30px rgba(74, 83, 64, .10);
  --shadow-lg: 0 20px 50px rgba(74, 83, 64, .14);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;

  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", 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(--cream);
  line-height: 1.95;
  font-size: 19.5px;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: .25s; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.5; margin: 0; color: var(--olive-900); }

/* ---------- レイアウト ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--olive-050); }
.section--paper { background: var(--paper); }

.lead { color: var(--ink-soft); }
.center { text-align: center; }
.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: inline; } }
/* olive 補助色（fallbackの明示定義） */
:root { --olive-300: #b7c4ab; --olive-800: #5b6650; }

/* セクション見出し */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .en {
  display: inline-block;
  font-family: var(--serif);
  font-size: 15.5px; letter-spacing: .35em;
  color: var(--olive-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-head h2 {
  font-size: clamp(27px, 3.4vw, 37px);
  letter-spacing: .04em;
}
.sec-head .desc { margin-top: 18px; color: var(--ink-soft); font-size: 19px; }
.sec-head--left { text-align: left; }
.sec-head--left .deco { margin: 16px 0 0; }

/* 飾り線 */
.deco { display:flex; align-items:center; justify-content:center; gap:12px; margin: 18px 0 0; }
.deco::before, .deco::after { content:""; width:34px; height:1px; background: var(--olive-400); }
.deco span { width:7px; height:7px; border-radius:50%; background: var(--gold); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 18.5px;
  letter-spacing: .05em; cursor: pointer; border: none;
}
.btn--primary { background: var(--olive-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--olive-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--olive-700); border: 1.5px solid var(--olive-300, #b7c4ab); }
.btn--ghost:hover { background: var(--olive-050); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { filter: brightness(.96); transform: translateY(-2px); }
.btn--lg { padding: 18px 44px; font-size: 19.5px; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 249, 245, .96);
  border-bottom: 1px solid transparent;
  transition: transform .45s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: flex-start; height: 78px; }
/* 左右の余白を詰め、事務所名を左端・その他を右端へ */
.site-header .container { max-width: 100%; padding: 0 36px; }
.header-inner .brand { margin-right: auto; }
.header-inner .nav { margin-right: 14px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--serif); font-size: 21.5px; font-weight: 600; color: var(--olive-900); letter-spacing: .04em; }
.brand__sub { font-size: 13px; color: var(--ink-mute); letter-spacing: .18em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--serif); font-size: 18.5px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; letter-spacing: .06em; }
.nav a::after { content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background: var(--olive-500); transition:.25s; }
.nav a:hover { color: var(--olive-700); }
.nav a:hover::after { width: 100%; }
/* 現在開いているページのメニュー強調 */
.nav a.active { color: var(--olive-700); font-weight: 600; }
.nav a.active::after { width: 100%; background: var(--gold); height: 2.5px; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-tel { text-align: right; line-height: 1.25; }
.header-tel .num { font-family: var(--serif); font-size: 21.5px; font-weight: 600; color: var(--olive-800, #5b6650); letter-spacing: .04em; }
.header-tel .lbl { font-size: 13px; color: var(--ink-mute); letter-spacing: .1em; }

.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex-direction: column; gap: 6px; justify-content: center; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--olive-800, #5b6650); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: var(--olive-900); color: #dfe4d7; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #aeb8a3; }
.footer-brand p { color: #b9c2ad; font-size: 17px; margin: 18px 0 0; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 17.5px; margin-bottom: 18px; letter-spacing:.08em; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: #c4cdb8; font-size: 17px; }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 17px; color: #c4cdb8; margin: 0 0 10px; }
.footer-contact .num { font-family: var(--serif); font-size: 24.5px; color: #fff; letter-spacing: .04em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; text-align: center; font-size: 14.5px; color: #9aa490; letter-spacing: .06em; }

/* =========================================================
   下層ページ共通ヘッダー
   ========================================================= */
.page-hero {
  margin-top: 78px;
  padding: 78px 0;
  background: linear-gradient(135deg, var(--olive-100), var(--olive-050));
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 12% 20%, rgba(143,160,127,.18), transparent 45%),
                    radial-gradient(circle at 88% 80%, rgba(185,164,122,.14), transparent 45%);
}
.page-hero .en { position:relative; font-family:var(--serif); letter-spacing:.35em; color:var(--olive-500); font-size:15.5px; text-transform:uppercase; }
.page-hero h1 { position:relative; font-size: clamp(29px, 4vw, 43px); margin-top: 12px; letter-spacing:.05em; }
.page-hero .sub { position:relative; margin-top: 14px; color: var(--ink-soft); font-size: 19px; }

/* パンくず */
.breadcrumb { background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; margin: 0; padding: 14px 0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size: 17px; color: var(--ink-mute); }
.breadcrumb li { display:flex; align-items:center; }
.breadcrumb a:hover { color: var(--olive-700); }
.breadcrumb li:not(:last-child)::after { content:"›"; margin-left:8px; color: var(--olive-400); }

/* =========================================================
   汎用パーツ
   ========================================================= */
.card { background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border:1px solid var(--line); }

/* フェードイン */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   フローティングCTA（モバイル）
   ========================================================= */
.float-cta { display: none; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .header-tel { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .float-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    box-shadow: 0 -4px 20px rgba(74,83,64,.14);
  }
  .float-cta a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 6px; font-weight: 600; font-size: 16.5px; color:#fff; }
  .float-cta .fc-tel { background: var(--olive-700); }
  .float-cta .fc-mail { background: var(--gold); }
  body { padding-bottom: 54px; }
}


/* =========================================================
   画像プレースホルダー（差し替え用の灰色ボックス）
   ========================================================= */
.img-ph-label { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#9a9a92; font-family:var(--sans); font-size:14.5px; letter-spacing:.15em; }
.img-ph-label svg { width:38px; height:38px; opacity:.45; }


/* 埋め込み画像（枠いっぱいに固定／画像サイズの影響を受けない） */
.hero-visual .photo,
.profile-photo,
.split-visual,
.service-card .card-img { position: relative; }
.hero-visual .photo img,
.profile-photo img,
.split-visual img,
.service-card .card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}


/* =========================================================
   スプラッシュ画面（サイト表示時の演出）
   ========================================================= */
#splash {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 38%, #f7f9f3 0%, #e4ead9 45%, #b9c6a8 100%);
  animation: splashOut .8s ease 1.4s forwards;
}
#splash.hide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease; }
#splash .splash-logo { width: 132px; height: 132px; animation: splashPop 1.1s cubic-bezier(.2,.8,.2,1); }
#splash .splash-name { font-family: var(--serif); font-size: 34px; color: var(--olive-900); letter-spacing: .14em; opacity: 0; animation: splashUp .9s ease .35s forwards; }
#splash .splash-sub  { font-size: 15px; letter-spacing: .36em; color: var(--olive-700); opacity: 0; animation: splashUp .9s ease .65s forwards; }
#splash .splash-line { width: 0; height: 2px; background: var(--gold); animation: splashLine 1s ease .8s forwards; }
body.splash-lock { overflow: hidden; }
@keyframes splashPop { 0%{transform:scale(.5) rotate(-8deg);opacity:0} 60%{transform:scale(1.06) rotate(0);opacity:1} 100%{transform:scale(1)} }
@keyframes splashUp  { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
@keyframes splashLine{ to{width:130px} }
@keyframes splashOut { to{opacity:0;visibility:hidden;pointer-events:none} }
@media (prefers-reduced-motion: reduce){
  #splash{ animation-delay:.4s }
  #splash .splash-logo,#splash .splash-name,#splash .splash-sub,#splash .splash-line{ animation:none; opacity:1; width:auto }
  #splash .splash-line{ width:130px }
}


/* モバイルメニューの暗幕 */
.nav-backdrop { position: fixed; inset: 0; background: rgba(58,59,54,.45); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 90; }
.nav-backdrop.show { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
@media (min-width: 1301px) { .nav-backdrop { display: none !important; } body.menu-open { overflow: auto; } }


/* =========================================================
   ハンバーガーメニュー（〜1300px）右ドロワー・画面右端に密着
   ========================================================= */
@media (max-width: 1300px) {
  .nav-toggle { display: flex; }
  .header-inner .nav { margin-right: 0; }
  .nav {
    position: fixed; top: 78px; right: 0; bottom: 0; left: auto;
    width: min(82vw, 320px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    padding: 6px 0 24px;
    transform: translateX(100%); pointer-events: none; visibility: hidden;
    transition: transform .32s ease, visibility .32s ease;
    box-shadow: -10px 0 30px rgba(74, 83, 64, .18);
    overflow-y: auto; z-index: 95;
  }
  .nav.open { transform: none; pointer-events: auto; visibility: visible; }
  .nav a { padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a::after { display: none; }
}


/* ヒーロー画像の表示位置（看板が中央寄りになるよう少し左へ） */
.hero-visual .photo img { object-fit: contain; object-position: center; transform: none; }


/* オリーブの装飾（全体）*/
.section--tint, .section--paper, .page-hero, .site-footer, .cta-band, .empathy { position: relative; overflow: hidden; }
.section--tint > .container, .section--paper > .container, .page-hero > .container,
.site-footer > .container, .cta-band > .container, .empathy > .container { position: relative; z-index: 1; }

.section--tint::before, .section--paper::after, .page-hero::after, .page-hero::before,
.site-footer::before, .empathy::before, .empathy::after {
  content:""; position:absolute; z-index:0; pointer-events:none;
  background: url(../images/leaf.svg) no-repeat center/contain;
  width:150px; height:215px;
}
.section--tint::before { top:-36px; left:-30px; transform: rotate(20deg); opacity:.4; }
.section--paper::after { bottom:-40px; right:-26px; transform: rotate(-158deg); opacity:.38; }
.page-hero::before { top:-30px; left:-26px; transform: rotate(24deg); opacity:.5; width:130px; height:185px; }
.page-hero::after  { bottom:-34px; right:-22px; transform: rotate(-150deg); opacity:.5; width:130px; height:185px; }
.empathy::before { top:-30px; right:-24px; transform: rotate(-150deg) scaleX(-1); opacity:.28; width:120px; height:170px; }
.empathy::after  { bottom:-36px; left:-26px; transform: rotate(150deg); opacity:.28; width:120px; height:170px; }
.site-footer::before { top:-10px; right:30px; transform: rotate(8deg); opacity:.1; width:120px; height:170px; }
@media (max-width:768px){
  .section--tint::before, .section--paper::after, .empathy::before, .empathy::after { width:96px; height:138px; opacity:.3; }
}


/* ボタン幅の統一 */
.hero-actions .btn, .cta-actions .btn, .cta-mini .actions .btn { min-width: 252px; justify-content: center; }
@media (max-width: 768px){
  .hero-actions .btn, .cta-actions .btn, .cta-mini .actions .btn { min-width: 0; width: 100%; }
}
