/* 026 こもれび社労士・行政書士事務所 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f6f7f1;
  --c-white: #ffffff;
  --c-green: #3f7a4c;
  --c-accent-text: #2f6b3f;
  --c-leaf: #a7c98b;
  --c-marker: #d9f0a3;
  --c-ink: #1f2a22;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #dde3d2;
  --tab-1: #eef4e4; --tab-2: #e3eed5; --tab-3: #d7e7c5; --tab-4: #cbe0b6; --tab-5: #bfd9a7; --tab-6: #b3d298;
  --font: "Noto Sans JP", sans-serif;
  --font-ja: "Kiwi Maru", serif;
  --font-hand: "Zen Kurenaido", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 2; 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; }

.h2 { font-family: var(--font-ja); font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1.5; color: var(--c-ink); margin-bottom: 32px; }
.h2__en { display: block; font-family: var(--font); font-weight: 500; font-size: 15px; letter-spacing: .2em; color: var(--c-accent-text); }
.h2--light, .h2--light .h2__en { color: #fff; }
.note { margin-top: 16px; font-size: 15px; color: var(--c-sub); }

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

/* 写真の形（F04）：アーチ・丸・葉 */
.shape { overflow: hidden; }
.shape img { width: 100%; height: 100%; object-fit: cover; }
.shape--arch { border-radius: 999px 999px 12px 12px; }
.shape--circle { border-radius: 50%; aspect-ratio: 1; }
.shape--leaf { border-radius: 12px 72% 12px 72%; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(246, 247, 241, .95); transition: box-shadow .4s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 8px 0 16px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; white-space: nowrap; flex: none; color: var(--c-ink); }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { font-family: var(--font-ja); font-size: 20px; line-height: 1.2; }
.logo__text small { display: block; font-family: var(--font); font-size: 15px; letter-spacing: 0; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; }
@media (max-width: 400px) { .logo__text small { display: none; } }
@media (min-width: 1080px) {
  .header__inner { height: 84px; padding: 0 48px; gap: 24px; }
  .gnav { display: flex; gap: 26px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; color: var(--c-ink); }
  .header__btn { margin-left: 0; }
}

.spmenu { flex: none; color: var(--c-ink); }
.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; border-radius: 1px; 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(31, 42, 34, .12); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== メインビジュアル ===== */
.hero { position: relative; display: grid; gap: 40px; padding: 104px 20px 80px; max-width: 1240px; margin: 0 auto; }
.hero__label { display: inline-block; padding: 0 14px; border: 1px solid var(--c-green); border-radius: 999px; font-size: 15px; color: var(--c-accent-text); }
.hero__title { font-family: var(--font-ja); font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.5; color: var(--c-ink); margin: 20px 0; }
.hero__lead { margin-bottom: 32px; }
.hero__photo { width: min(100%, 420px); margin: 0 auto; aspect-ratio: 2 / 3; }
.hero__leaf { position: absolute; width: 72px; right: 24px; bottom: 48px; }
@media (min-width: 1080px) {
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 100vh; padding: 120px 48px 80px; }
  .hero__photo { width: 100%; max-width: 460px; max-height: 76vh; margin: 0 0 0 auto; }
  .hero__leaf { width: 110px; right: auto; left: 52%; bottom: 12%; }
}

/* ===== 演出①（E06）：ごあいさつの手紙 ===== */
.greeting { padding: 64px 20px 96px; }
.greeting__inner { max-width: 720px; margin: 0 auto; }
.letter { position: relative; background: var(--c-white) repeating-linear-gradient(transparent 0 47px, #e4ead9 47px 48px); background-position: 0 32px; padding: 32px 24px; border-radius: 4px 24px 4px 24px; box-shadow: 0 10px 30px rgba(31, 42, 34, .08); }
.letter__line { font-family: var(--font-hand); font-size: 21px; line-height: 48px; color: var(--c-ink); white-space: nowrap; width: fit-content; }
.letter__sign { margin: 8px 0 0 auto; font-size: 19px; color: var(--c-accent-text); }
.letter mark { color: inherit; background: linear-gradient(transparent 55%, var(--c-marker) 55%, var(--c-marker) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; }
.pen { display: none; }
.is-motion .pen { display: block; position: absolute; top: 0; left: 0; width: 34px; height: 34px; pointer-events: none; }
@media (min-width: 768px) { .letter { padding: 40px 64px; } .letter__line { font-size: 24px; } }

/* ===== できること ===== */
.services { max-width: 1160px; margin: 0 auto; padding: 0 20px 112px; }
.svc-cols { display: grid; gap: 56px; }
.svc-col__photo { width: 200px; margin-bottom: 24px; }
.svc-col__title { font-family: var(--font-ja); font-weight: 500; font-size: 24px; color: var(--c-ink); }
.svc-col__lead { color: var(--c-accent-text); margin-bottom: 12px; }
.list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px dashed var(--c-leaf); }
.list li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 12px; height: 12px; border-radius: 12px 0 12px 0; background: var(--c-leaf); }
@media (min-width: 768px) { .svc-cols { grid-template-columns: 1fr 1fr; gap: 64px; } .svc-col__photo { width: 240px; } }

/* ===== 演出②（B06）：付箋タブのように積み重なる手順（CSSだけ） ===== */
.flow { max-width: 900px; margin: 0 auto; padding: 0 20px 112px; }
.flow__lead { margin: -16px 0 32px; }
.tabs { position: relative; padding-bottom: 28vh; counter-reset: t; }
.tab { position: sticky; top: 84px; padding-top: 56px; margin-bottom: 32px; }
.tab__label { position: absolute; top: 0; left: calc(var(--i) * 100% / 6); width: calc(100% / 6 - 4px); height: 58px; padding: 6px 4px 0; border-radius: 12px 12px 0 0; background: var(--tc); font-family: var(--font-ja); font-size: 15px; line-height: 1.3; color: var(--c-ink); text-align: center; white-space: nowrap; }
.tab__label span { display: block; color: #234f30; }
.tab { counter-increment: t; }
.tab__body { position: relative; overflow: hidden; min-height: 260px; padding: 32px 24px; border-radius: 0 16px 16px 16px; background: var(--tc); box-shadow: 0 -6px 18px rgba(31, 42, 34, .07); }
.tab:not(:first-child) .tab__body { border-radius: 16px; }
.tab__body::after { content: counter(t, decimal-leading-zero); position: absolute; right: 20px; bottom: -18px; font-family: var(--font-ja); font-size: 120px; line-height: 1; color: rgba(47, 107, 63, .12); pointer-events: none; }
.tab__body > * { position: relative; z-index: 1; }
.tab h3 { font-family: var(--font-ja); font-weight: 500; font-size: 23px; color: var(--c-ink); margin-bottom: 8px; }
.tab:nth-child(1) { --tc: var(--tab-1); }
.tab:nth-child(2) { --tc: var(--tab-2); }
.tab:nth-child(3) { --tc: var(--tab-3); }
.tab:nth-child(4) { --tc: var(--tab-4); }
.tab:nth-child(5) { --tc: var(--tab-5); }
.tab:nth-child(6) { --tc: var(--tab-6); }
@media (min-width: 768px) { .tab__label { font-size: 17px; padding-top: 8px; } .tab__body { padding: 40px 48px; min-height: 300px; } .tab h3 { font-size: 28px; } }
@media (min-width: 1080px) { .tab { top: 100px; } }

/* ===== 料金 ===== */
.price { max-width: 900px; margin: 0 auto; padding: 0 20px 112px; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 18px 0; border-bottom: 1px solid var(--c-line); text-align: left; font-weight: 400; vertical-align: top; }
.ptable th { color: var(--c-ink); padding-right: 12px; }
.ptable td { text-align: right; font-family: var(--font-ja); color: var(--c-ink); white-space: nowrap; }
@media (max-width: 599px) { .ptable tr { display: grid; } .ptable th { padding: 14px 0 0; border-bottom: 0; } .ptable td { padding: 0 0 14px; } }

/* ===== 事務所のこと ===== */
.office { max-width: 1160px; margin: 0 auto; padding: 0 20px 112px; }
.office__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; margin-bottom: 40px; }
.office__a { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.office__b { aspect-ratio: 2 / 3; }
.office__c { width: 90%; justify-self: center; }
.voices { display: grid; gap: 24px; }
.voices li { background: var(--c-white); padding: 24px; border-radius: 4px 24px 4px 24px; }
.voices__role { font-size: 15px; color: var(--c-accent-text); }
.voices__name { font-family: var(--font-ja); font-size: 22px; color: var(--c-ink); margin-bottom: 4px; }
@media (min-width: 1080px) {
  .office__photos { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
  .office__a { grid-column: auto; aspect-ratio: 4 / 3; }
  .voices { grid-template-columns: 1fr 1fr; }
}

/* ===== お問い合わせ ===== */
.contact { background: var(--c-accent-text); color: #f0f5ea; padding: 96px 20px; }
.contact__inner { max-width: 900px; margin: 0 auto; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.contact__btns .btn { flex: 1 1 260px; }
.info div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.info dt { color: #fff; font-weight: 500; }
@media (min-width: 768px) { .info div { grid-template-columns: 5em 1fr; gap: 24px; } }

/* ===== フッター ===== */
.footer { background: var(--c-ink); color: #e6ebe0; padding: 64px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-family: var(--font-ja); font-size: 20px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin: 16px 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; }
}
