@charset "UTF-8";
/* ============================================================
   一之瀬司法書士・行政書士事務所 — デザインサンプル（架空ブランド）
   方向: クラシック/新聞 × スイス・グリッド
   シグネチャー: 相続の期限カレンダー（縦軸・金→朱で緊急度が上がる）
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  --c-paper:  #f5f2ea;   /* 生成り・地 */
  --c-white:  #ffffff;
  --c-tone:   #eeeade;   /* 一段沈めた面 */
  --c-navy:   #17233d;   /* 濃紺・主張色 */
  --c-ink:    #23231f;   /* 墨・本文 */
  --c-muted:  #6b675d;
  --c-line:   #d6cfc0;   /* 罫線 */
  --c-gold:   #a8863f;   /* 金・キャップライン */
  --c-red:    #b03a2e;   /* 朱・期限マーカー */

  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-en: "Libre Baskerville", Georgia, serif;
  --font-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --section-pad: clamp(76px, 11vw, 144px);
  --container: 1120px;
  --container-narrow: 760px;
  --gutter: clamp(22px, 5vw, 56px);

  --z-header: 100;
  --z-nav: 200;
  --z-fixed: 1000;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.85s;
}

/* ---------- 2. リセット / ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-paper);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

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

:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.6; letter-spacing: 0.05em; }
b { font-weight: 700; color: var(--c-navy); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-fixed);
  background: var(--c-navy); color: #fff; padding: 10px 18px; font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* 飾り罫（クラシックの記号） */
.rule--double {
  height: 4px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  margin-block: clamp(22px, 3vw, 34px);
}
.rule--light { border-color: rgba(255,255,255,0.32); }

.note { margin-top: 22px; font-size: 12.5px; color: var(--c-muted); line-height: 1.9; }

/* ---------- 3. レイアウト ---------- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.container--narrow { width: min(var(--container-narrow), 100% - var(--gutter) * 2); margin-inline: auto; }

.section { padding-block: var(--section-pad); }
.section--tone { background: var(--c-tone); }

.sec-head { margin-bottom: clamp(38px, 5vw, 62px); }
.sec-head__en {
  font-family: var(--font-en); font-style: italic; font-size: 14px;
  letter-spacing: 0.14em; color: var(--c-gold); margin-bottom: 10px;
}
.sec-head__title { font-size: clamp(24px, 3.4vw, 38px); }
.sec-head__lead { margin-top: 18px; font-size: 14.5px; color: var(--c-muted); line-height: 2.05; }

/* ---------- 4. ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--c-paper) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); backdrop-filter: blur(10px); }
.site-header__name {
  display: block; font-family: var(--font-serif); font-size: 15.5px; letter-spacing: 0.08em;
}
.site-header__en {
  display: block; font-family: var(--font-en); font-size: 9px;
  letter-spacing: 0.2em; color: var(--c-muted); margin-top: 2px;
}

.global-nav { display: flex; align-items: center; gap: 26px; }
.global-nav ul { display: flex; gap: 22px; }
.global-nav a { font-size: 13.5px; letter-spacing: 0.06em; }
.global-nav ul a { position: relative; padding-bottom: 3px; }
.global-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--c-gold); transition: width 0.4s var(--ease-out);
}
.global-nav ul a:hover::after { width: 100%; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: none;
  cursor: pointer; position: relative; z-index: calc(var(--z-nav) + 1);
}
.nav-toggle span {
  display: block; width: 24px; height: 1px; margin: 6px auto;
  background: var(--c-ink); transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. ボタン ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; min-height: 52px;
  background: var(--c-navy); color: #fff; border: 1px solid var(--c-navy);
  font-family: var(--font-body); font-weight: 700;
  font-size: 14.5px; letter-spacing: 0.08em; cursor: pointer;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.button:hover { background: transparent; color: var(--c-navy); }
.button--sm { padding: 10px 20px; min-height: 44px; font-size: 13px; }
.button--lg { padding: 19px 48px; min-height: 60px; font-size: 15.5px; }
.button--ghost { background: transparent; color: var(--c-navy); border-color: var(--c-line); }
.button--ghost:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ---------- 6. ヒーロー（中央揃え・格式） ---------- */
.hero { padding: clamp(132px, 17vw, 200px) 0 clamp(64px, 8vw, 104px); }
.hero__inner { text-align: center; }
.hero__cap {
  font-size: 12.5px; letter-spacing: 0.32em; color: var(--c-gold);
}
.hero__title { font-size: clamp(28px, 5.2vw, 54px); line-height: 1.55; }
.hero__lead { margin-top: 6px; font-size: 15px; color: var(--c-muted); line-height: 2.1; }
.hero__actions {
  margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

.band img { width: 100%; height: clamp(240px, 42vh, 460px); object-fit: cover; }

/* ---------- 7. シグネチャー: 相続の期限カレンダー ---------- */
.deadline { position: relative; padding-left: clamp(74px, 11vw, 116px); }
/* 縦の時間軸。下るほど金→朱（緊急度が上がる） */
.deadline::before {
  content: ""; position: absolute; top: 12px; bottom: 12px;
  left: clamp(56px, 8.4vw, 88px); width: 1px;
  background: linear-gradient(180deg, var(--c-gold), var(--c-red));
}
.deadline__item {
  position: relative;
  padding-block: clamp(24px, 3.2vw, 34px);
  border-bottom: 1px solid var(--c-line);
}
.deadline__item:first-child { padding-top: 0; }
.deadline__item--last { border-bottom: none; }
/* 軸上のマーカー */
.deadline__item::before {
  content: ""; position: absolute;
  left: calc(clamp(56px, 8.4vw, 88px) - clamp(74px, 11vw, 116px) - 4px);
  top: clamp(30px, 3.6vw, 38px);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-paper); border: 2px solid var(--c-gold);
}
.deadline__item:first-child::before { top: 6px; }
.deadline__item--last::before { border-color: var(--c-red); background: var(--c-red); }

.deadline__when {
  position: absolute; left: calc(clamp(74px, 11vw, 116px) * -1);
  top: clamp(18px, 2.4vw, 24px);
  width: clamp(52px, 7.4vw, 78px); text-align: right;
}
.deadline__item:first-child .deadline__when { top: -6px; }
.deadline__num {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1; color: var(--c-navy);
}
.deadline__unit { font-size: 11.5px; color: var(--c-muted); margin-left: 2px; }
.deadline__title { font-size: clamp(17px, 2.1vw, 21px); margin-bottom: 10px; }
.deadline__text { font-size: 14px; color: var(--c-muted); line-height: 2.05; }

/* ---------- 8. 取扱業務（見える罫線と通し番号） ---------- */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  border-top: 1px solid var(--c-line);
}
.services__item {
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--c-line);
  transition: background 0.35s, padding-left 0.35s var(--ease-out);
}
.services__item:hover { background: var(--c-white); padding-left: 16px; }
.services__num {
  font-family: var(--font-en); font-size: 13px; color: var(--c-gold); letter-spacing: 0.08em;
}
.services__name { font-family: var(--font-serif); font-size: 16.5px; letter-spacing: 0.05em; }

/* ---------- 9. 費用 ---------- */
.fee { width: 100%; border-collapse: collapse; }
.fee th, .fee td {
  padding: 18px 6px; border-bottom: 1px solid var(--c-line); font-weight: 400;
}
.fee th { text-align: left; font-family: var(--font-serif); font-size: 15.5px; }
.fee td {
  text-align: right; font-family: var(--font-serif); font-weight: 700;
  font-size: 19px; color: var(--c-navy); white-space: nowrap;
}
.fee__free { color: var(--c-red) !important; }

/* ---------- 10. 事務所案内 ---------- */
.profile { display: grid; gap: clamp(34px, 5vw, 68px); align-items: start; }
@media (min-width: 880px) { .profile { grid-template-columns: 0.78fr 1fr; } }
.profile__photo { margin: 0; }
.profile__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.profile__quote {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(22px, 3.2vw, 34px); line-height: 1.75; letter-spacing: 0.05em;
  margin: 12px 0 26px; color: var(--c-navy);
}
.profile__text { font-size: 14.5px; color: var(--c-muted); line-height: 2.1; margin-bottom: 16px; }
.profile__name {
  margin-top: 28px; font-family: var(--font-serif); font-weight: 700;
  font-size: 17px; letter-spacing: 0.08em;
}
.profile__romaji {
  display: block; font-family: var(--font-en); font-style: italic;
  font-size: 13px; color: var(--c-muted); letter-spacing: 0.08em; margin-top: 2px;
}
.profile__data {
  margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 0 20px; font-size: 13.5px;
}
.profile__data dt {
  padding: 11px 0; border-bottom: 1px solid var(--c-line);
  color: var(--c-gold); white-space: nowrap; letter-spacing: 0.08em;
}
.profile__data dd { padding: 11px 0; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }

/* ---------- 11. 最終CTA ---------- */
.cta {
  background: var(--c-navy); color: #fff;
  padding-block: clamp(72px, 10vw, 128px); text-align: center;
}
.cta__title { font-size: clamp(24px, 4vw, 42px); line-height: 1.65; }
.cta__text { margin-top: 24px; font-size: 14.5px; line-height: 2.1; color: rgba(255,255,255,0.76); }
.cta__actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .button { background: var(--c-paper); color: var(--c-navy); border-color: var(--c-paper); }
.cta .button:hover { background: transparent; color: var(--c-paper); }
.cta .button--ghost { background: transparent; color: var(--c-paper); border-color: rgba(255,255,255,0.4); }
.cta .button--ghost:hover { background: var(--c-paper); color: var(--c-navy); }

/* ---------- 12. フッター ---------- */
.site-footer { padding: 44px 0 36px; border-top: 1px solid var(--c-line); }
.site-footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-muted);
}
.site-footer__logo { font-family: var(--font-serif); font-size: 15px; color: var(--c-ink); letter-spacing: 0.08em; }

/* ---------- 13. サンプル明示バッジ（全サンプル共通仕様） ---------- */
.sample-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: var(--z-fixed);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(35,35,31,0.88); backdrop-filter: blur(8px);
  color: #fff; font-size: 11.5px; letter-spacing: 0.03em; line-height: 1.5;
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
  transition: background 0.3s;
}
.sample-badge:hover { background: rgba(35,35,31,0.97); }
.sample-badge__tag {
  background: var(--c-gold); color: #23231f; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; font-size: 10px; letter-spacing: 0.12em;
}
@media (max-width: 640px) {
  .sample-badge { left: 10px; bottom: 10px; padding: 6px 12px 6px 8px; font-size: 10.5px; }
  .sample-badge__text { max-width: 15em; }
}

/* ---------- 14. SPナビ ---------- */
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; z-index: var(--z-nav);
    background: var(--c-paper);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 40px;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; text-align: center; gap: 26px; }
  .global-nav ul a { font-family: var(--font-serif); font-size: 19px; }
}

/* ---------- 15. モーション基盤 ---------- */
.js-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.js-reveal.is-inview { opacity: 1; transform: none; }
.js-reveal[data-delay="1"] { transition-delay: 0.1s; }
.js-reveal[data-delay="2"] { transition-delay: 0.2s; }
.js-reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- 16. モーション停止（reduced-motion環境のみボタン表示） ---------- */
.motion-stop {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: var(--z-fixed);
  padding: 10px 16px; font: inherit; font-size: 12px;
  background: var(--c-white); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: 999px; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .motion-stop { display: block; } }
html.is-motion-off *, html.is-motion-off *::before, html.is-motion-off *::after {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }

/* ================================================================
   sample-notice:v1 — サンプル表記（14本共通・apply_sample_notice.py が生成）
   帯 / 商品CTAのモーダル / ラクシス導線 / フッター注記
   ================================================================ */
:root {
  --sample-bar-bg: #17233d;
  --sample-bar-fg: #ffffff;
  --sample-bar-h: 40px;
  --sample-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --laxis-band-bg: #eeeade;
  --laxis-band-fg: #23231f;
  --laxis-band-line: rgba(0, 0, 0, 0.1);
  --z-sample-bar: 3000;
  --z-sample-modal: 4000;
}

/* ---- 1. 最上部の固定帯 ---- */
.sample-bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-sample-bar);
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  min-height: 40px; padding: 8px 14px;
  background: var(--sample-bar-bg); color: var(--sample-bar-fg);
  font-family: var(--sample-font); font-size: 12.5px; font-weight: 500;
  line-height: 1.6; letter-spacing: 0.02em; text-align: center;
}
.sample-bar__tag {
  flex: none; background: var(--sample-bar-fg); color: var(--sample-bar-bg);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  padding: 3px 9px; border-radius: 3px; white-space: nowrap;
}
.sample-bar__text b { font-weight: 700; }
.sample-bar__by { opacity: 0.72; }
body { padding-top: var(--sample-bar-h); }
.site-header { top: var(--sample-bar-h); }
.skip-link:focus { top: calc(var(--sample-bar-h) + 12px); }
@media (max-width: 640px) {
  :root { --sample-bar-h: 54px; }
  .sample-bar { font-size: 11px; gap: 6px; padding: 7px 12px; }
  .sample-bar__tag { font-size: 9.5px; padding: 2px 7px; }
  .sample-bar__by { display: block; width: 100%; }
}

/* ---- 2. 商品CTAのモーダル ---- */
.sample-modal {
  position: fixed; inset: 0; z-index: var(--z-sample-modal);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  font-family: var(--sample-font);
}
.sample-modal[hidden] { display: none; }
.sample-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 10, 14, 0.66); backdrop-filter: blur(3px); }
.sample-modal__panel {
  position: relative; width: min(480px, 100%); background: #fff; color: #1f2933;
  border-radius: 16px; padding: 34px 30px 28px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); border-top: 4px solid var(--sample-bar-bg);
}
.sample-modal__tag {
  display: inline-block; background: var(--sample-bar-bg); color: var(--sample-bar-fg);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  padding: 4px 10px; border-radius: 3px; margin-bottom: 18px;
}
.sample-modal__title { font-size: 20px; font-weight: 700; line-height: 1.6; margin-bottom: 14px; color: #1f2933; }
.sample-modal__text { font-size: 13.5px; line-height: 2; color: #56606b; margin-bottom: 26px; text-align: left; }
.sample-modal__actions { display: flex; flex-direction: column; gap: 10px; }
.sample-modal__button {
  display: block; background: var(--sample-bar-bg); color: var(--sample-bar-fg); text-decoration: none;
  font-size: 15px; font-weight: 700; padding: 16px 20px; border-radius: 11px;
}
.sample-modal__close {
  display: block; width: 100%; background: none; border: 1px solid #d5dbe1; color: #56606b;
  font-family: inherit; font-size: 13.5px; padding: 14px 20px; border-radius: 11px; cursor: pointer;
}
.sample-modal__close:hover { background: #f2f4f6; }

/* ---- 3. 最下部の案内帯（架空フッターの下） ---- */
/* 下の余白は、左下に固定されている SAMPLE バッジに文字が隠されないための逃げ */
.laxis-band {
  position: relative; z-index: 1;
  background: var(--laxis-band-bg); color: var(--laxis-band-fg);
  border-top: 1px solid var(--laxis-band-line);
  font-family: var(--sample-font); text-align: center;
  padding: 32px 6vw 58px;
}
.laxis-band__text { font-size: 12.5px; line-height: 1.95; opacity: 0.85; margin: 0 0 18px; }
.laxis-band__text b { font-weight: 700; }
.laxis-band__text .nb { display: inline-block; }
.laxis-band__actions { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; align-items: center; }
.laxis-band__button {
  display: inline-flex; align-items: center; background: var(--sample-bar-bg); color: var(--sample-bar-fg);
  font-size: 13.5px; font-weight: 700; text-decoration: none; padding: 13px 28px; border-radius: 10px;
}
.laxis-band__back {
  color: inherit; font-size: 12px; opacity: 0.68;
  text-decoration: underline; text-underline-offset: 3px;
}
.laxis-band__back:hover { opacity: 1; }
@media (max-width: 640px) {
  .laxis-band { padding: 28px 20px 82px; }
}

/* ---- 4. フッターの注記 ---- */
.sample-note {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(128, 128, 128, 0.3);
}
.sample-note p {
  font-family: var(--sample-font); font-size: 12px; line-height: 1.95;
  opacity: 0.9; margin: 0; text-align: left;
}
