/* 024 汐見税理士事務所 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f6f9fc;
  --c-white: #ffffff;
  --c-navy: #0b2a4a;
  --c-blue: #2563eb;
  --c-accent-text: #1d4ed8;
  --c-sky: #38bdf8;
  --c-pale: #e6eefb;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #d7e0ec;
  --font: "Noto Sans JP", sans-serif;
  --font-ja: "Zen Kaku Gothic New", sans-serif;
  --font-num: "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.95; letter-spacing: .03em; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.label { font-family: var(--font-num); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 12px; }
.label--light { color: #bfdbfe; }
.h2 { font-family: var(--font-ja); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.5; color: var(--c-navy); }
.h2--light { color: #fff; }
.note { margin-top: 16px; font-size: 15px; color: var(--c-sub); }
.panel { position: relative; background: var(--c-bg); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-weight: 500; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .3s, color .3s; }
.btn--blue { background: var(--c-blue); color: #fff; }
.btn--blue:hover { background: var(--c-accent-text); }
.btn--white { background: #fff; color: var(--c-navy); }
.btn--white:hover { background: var(--c-pale); }
.btn--line { border: 1px solid rgba(255, 255, 255, .8); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .12); }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(246, 249, 252, .96); border-bottom: 1px solid transparent; transition: border-color .4s; }
.header.is-scrolled { border-bottom-color: var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 8px 0 20px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; white-space: nowrap; flex: none; color: var(--c-navy); }
.logo__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--c-sky), var(--c-blue)); color: #fff; font-family: var(--font-ja); font-weight: 700; font-size: 17px; }
.logo__ja { font-family: var(--font-ja); font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; }
@media (max-width: 420px) { .header__inner { gap: 8px; padding-left: 16px; } .logo { gap: 8px; } .logo__ja { font-size: 16px; letter-spacing: 0; } .header__btn { padding: 0 12px; } }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 48px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; color: var(--c-navy); }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; font-weight: 500; }
  .header__btn { margin-left: 0; }
}

.spmenu { flex: none; color: var(--c-navy); }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg); padding: 8px 20px 24px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(11, 42, 74, .12); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-navy); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出③（F06）：区切りをまたぐリボン ===== */
.zone { position: relative; overflow: hidden; }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ribbon path { stroke-width: 44px; }
@media (min-width: 1080px) { .ribbon path { stroke-width: 88px; } }
.zone > section { position: relative; z-index: 1; }
/* 動く版：伸びる先は、ぼかした縁で少しずつ現れる */
.is-motion .ribbon { --reveal: 104%; -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--reveal) - 4%), transparent var(--reveal)); mask-image: linear-gradient(to bottom, #000 calc(var(--reveal) - 4%), transparent var(--reveal)); }

/* ===== メインビジュアル ===== */
.hero { display: grid; gap: 32px; padding: 108px 20px 72px; max-width: 1280px; margin: 0 auto; }
.hero__text { background: var(--c-bg); }
.hero__title { font-family: var(--font-ja); font-weight: 700; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.35; color: var(--c-navy); margin-bottom: 20px; }
.hero__title span { color: var(--c-accent-text); }
.hero__lead { margin-bottom: 32px; }
.hero__photo { border-radius: 16px; overflow: hidden; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 1080px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: 100vh; padding: 120px 48px 80px; }
  .hero__photo img { aspect-ratio: 4 / 5; }
}

/* ===== 演出①（E02）：ごあいさつ ===== */
.message { padding: 96px 20px; }
.message__panel { max-width: 920px; margin: 0 auto; padding: 40px 24px; border-radius: 16px; box-shadow: 0 0 0 1px var(--c-line); }
.message__text { font-family: var(--font-ja); font-weight: 700; font-size: clamp(22px, 2.8vw, 34px); line-height: 1.8; color: var(--c-navy); }
.message__text em { font-style: normal; color: var(--c-accent-text); }
.message__text .ch { transition: none; }
.message__sign { margin-top: 24px; text-align: right; color: var(--c-sub); }
@media (min-width: 1080px) { .message { padding: 160px 48px; } .message__panel { padding: 64px 72px; } }

/* ===== 演出②（B02）：サービス ===== */
.services { padding: 0 0 96px; }
.services__head { max-width: 1280px; margin: 0 auto 32px; padding: 0 20px; width: fit-content; margin-left: 0; }
@media (min-width: 1080px) { .services__head { padding: 0 48px; } }
.svc-stage { display: grid; gap: 24px; padding: 0 20px; max-width: 1280px; margin: 0 auto; }
.svc-meter { display: none; }
.svc { display: grid; background: var(--c-white); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--c-line); }
.svc__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc__body { padding: 24px; }
.svc__no { font-family: var(--font-num); font-weight: 700; font-size: 36px; line-height: 1; color: var(--c-accent-text); }
.svc h3 { font-family: var(--font-ja); font-weight: 700; font-size: 24px; color: var(--c-navy); margin: 12px 0 8px; }
.svc__price { margin-top: 12px; font-family: var(--font-ja); font-weight: 700; color: var(--c-navy); }
@media (min-width: 768px) { .svc { grid-template-columns: 1fr 1fr; align-items: center; } .svc__photo img { height: 100%; aspect-ratio: 4 / 3; } .svc__body { padding: 40px; } }
/* 動く版：区画を止め、1件ずつ入れ替える */
.is-motion .svc-stage { display: block; position: relative; height: 100vh; max-width: none; padding: 0; background: var(--c-white); overflow: hidden; }
.is-motion .svc { position: absolute; inset: 132px 20px 24px; border-radius: 16px; box-shadow: none; grid-template-rows: 42% 1fr; align-content: start; }
.is-motion .svc__photo { height: 100%; overflow: hidden; border-radius: 12px; }
.is-motion .svc__photo img { height: 100%; aspect-ratio: auto; }
.is-motion .svc__body { padding: 20px 0 0; }
.is-motion .svc-meter { display: flex; align-items: center; gap: 16px; position: absolute; z-index: 2; top: 80px; left: 20px; right: 20px; }
.svc-meter__count { font-family: var(--font-num); font-weight: 700; font-size: 20px; color: var(--c-navy); white-space: nowrap; }
.svc-meter__bar { position: relative; flex: 1; height: 4px; background: var(--c-line); border-radius: 2px; overflow: hidden; }
.svc-meter__bar span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-sky), var(--c-blue)); transform-origin: left; transform: scaleX(.2); }
@media (min-width: 768px) {
  .is-motion .svc { inset: 150px 48px 48px; grid-template-rows: none; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  .is-motion .svc { grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .is-motion .svc__body { padding: 0; align-self: center; }
  .is-motion .svc-meter { top: 100px; left: 48px; right: 48px; }
}
@media (min-width: 1080px) {
  .is-motion .svc { inset: 170px max(48px, calc((100vw - 1280px) / 2 + 48px)) 64px; }
  .is-motion .svc-meter { top: 110px; left: max(48px, calc((100vw - 1280px) / 2 + 48px)); right: max(48px, calc((100vw - 1280px) / 2 + 48px)); }
  .is-motion .svc h3 { font-size: 34px; }
  .is-motion .svc__no { font-size: 56px; }
}

/* ===== 顧問料 ===== */
.fee { padding: 0 20px 96px; max-width: 1280px; margin: 0 auto; }
.fee__head { width: fit-content; margin-bottom: 32px; }
.plans { display: grid; gap: 16px; }
.plan { position: relative; background: var(--c-white); border-radius: 16px; padding: 32px 24px; box-shadow: 0 0 0 1px var(--c-line); }
.plan--pick { box-shadow: 0 0 0 3px var(--c-blue); }
.plan__badge { position: absolute; top: -14px; left: 24px; padding: 0 12px; background: var(--c-blue); color: #fff; border-radius: 999px; font-size: 15px; }
.plan__name { font-family: var(--font-ja); font-weight: 700; font-size: 20px; color: var(--c-navy); }
.plan__price { font-family: var(--font-num); font-weight: 700; font-size: 36px; color: var(--c-navy); margin: 8px 0 12px; }
.plan__price small { font-family: var(--font); font-size: 15px; font-weight: 500; margin-left: 4px; }
.fee .note { background: var(--c-bg); width: fit-content; padding: 4px 12px; border-radius: 8px; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .fee { padding: 0 48px 140px; } }

/* ===== ご相談の流れ ===== */
.flow { padding: 0 20px 112px; max-width: 1280px; margin: 0 auto; }
.flow .panel { padding: 32px 0; max-width: 760px; }
.steps { margin-top: 32px; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.steps span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-pale); font-family: var(--font-num); font-weight: 700; color: var(--c-accent-text); }
.steps h3 { font-family: var(--font-ja); font-weight: 700; font-size: 19px; color: var(--c-navy); }
@media (min-width: 1080px) { .flow { padding: 0 48px 160px; } }

/* ===== ご相談 ===== */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--c-navy); color: #e6eefb; }
.contact__photo img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.contact__body { padding: 56px 20px 64px; }
.contact__body > p:not(.label) { margin-top: 16px; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.contact__btns .btn { flex: 1 1 260px; }
.contact__note { font-size: 15px; }
@media (min-width: 1080px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .contact__body { padding: 96px 72px; align-self: center; } }

/* ===== アクセス ===== */
.access { padding: 96px 20px; }
.access__inner { max-width: 960px; margin: 0 auto; display: grid; gap: 24px; }
.info div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-weight: 500; color: var(--c-navy); }
@media (min-width: 768px) { .access__inner { grid-template-columns: 1fr 2fr; gap: 64px; } .info div { grid-template-columns: 6em 1fr; gap: 24px; } }

/* ===== フッター ===== */
.footer { background: #071c33; color: #dbe5f3; padding: 64px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-ja); font-weight: 700; font-size: 22px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 20px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
