/* 023 要総合法律事務所 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f5f5f4;
  --c-white: #ffffff;
  --c-dark: #0f1012;
  --c-silver: #b8bcc4;
  --c-accent-text: #57534e;
  --c-ink: #1c1917;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #d6d3d1;
  --metal-text: linear-gradient(100deg, #8b9097 0%, #f5f6f8 30%, #9aa0a8 48%, #ffffff 62%, #8b9097 100%);
  --font: "Noto Sans JP", sans-serif;
  --font-ja: "Shippori Mincho", serif;
  --font-en: "Cinzel", serif;
}

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

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; text-decoration: none; letter-spacing: .12em; white-space: nowrap; flex: none; transition: background-color .4s, color .4s, filter .4s; }
.btn--silver { background: var(--metal-text); color: var(--c-dark); font-weight: 500; }
.btn--silver:hover { filter: brightness(1.1); }
.btn--line { border: 1px solid var(--c-silver); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .1); }
.btn--lg { min-height: 60px; padding: 0 36px; }
.metal-text { background: var(--metal-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background-color .5s, color .5s; }
.header.is-scrolled { background: rgba(15, 16, 18, .94); }
.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; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__ja { font-family: var(--font-ja); font-weight: 700; font-size: 18px; letter-spacing: .14em; }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 48px; }
  .gnav { display: flex; gap: 26px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; letter-spacing: .1em; }
  .header__btn { margin-left: 0; }
}
@media (max-width: 400px) { .logo__ja { font-size: 16px; letter-spacing: .08em; } .header__btn { padding: 0 12px; letter-spacing: .04em; } }

.spmenu { flex: none; }
.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: 1.5px; 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-dark); padding: 8px 20px 24px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: #fff; text-decoration: none; font-family: var(--font-ja); border-bottom: 1px solid #2c2e33; }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 煙（D05） ===== */
.smoke { position: absolute; inset: 0; overflow: hidden; }
.smoke img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smoke__b { opacity: .4; transform: scaleX(-1); }

/* ===== 演出①：開幕 ===== */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; background: var(--c-dark); color: #e7e5e4; text-align: center; overflow: hidden; padding: 120px 20px 80px; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(15, 16, 18, .25), rgba(15, 16, 18, .75)); }
.hero__inner { position: relative; z-index: 1; }
.hero__emblem { width: clamp(110px, 14vw, 170px); height: clamp(110px, 14vw, 170px); margin: 0 auto 28px; display: block; }
.hero__en { font-family: var(--font-en); font-weight: 500; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: .4em; padding-left: .4em; }
.hero__title { font-family: var(--font-ja); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.6; letter-spacing: .14em; color: #fff; margin: 28px 0 16px; }
.hero__lead { color: #e7e5e4; }

/* ===== 演出②（B09）：目次と本文 ===== */
.doc { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.toc { display: none; }
.tocbar { display: none; }
.is-js .tocbar { display: block; position: fixed; z-index: 45; left: 0; right: 0; top: 68px; padding: 6px 20px; background: rgba(245, 245, 244, .96); border-bottom: 1px solid var(--c-line); font-family: var(--font-ja); font-weight: 600; font-size: 15px; color: var(--c-ink); transform: translateY(-120%); opacity: 0; transition: transform .4s, opacity .4s; pointer-events: none; }
.is-js .tocbar.is-on { transform: none; opacity: 1; }
.tocbar span:first-child { font-family: var(--font-en); }
@media (min-width: 1080px) {
  .doc { display: grid; grid-template-columns: 240px 1fr; gap: 80px; padding: 0 48px; }
  .is-js .tocbar { display: none; }
  .toc { display: block; position: sticky; top: 120px; align-self: start; padding: 120px 0 0; }
  .toc__title { font-family: var(--font-en); font-size: 16px; letter-spacing: .3em; color: var(--c-accent-text); margin-bottom: 20px; }
  .toc a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; color: var(--c-sub); transition: color .4s; }
  .toc a::before { content: ""; width: 20px; height: 1px; background: var(--c-line); transition: width .5s, background-color .5s; }
  .toc__no { font-family: var(--font-en); font-size: 15px; width: 1.6em; }
  .toc a.is-current { color: var(--c-ink); font-weight: 500; }
  .toc a.is-current::before { width: 56px; background: var(--c-ink); }
  .toc a:hover { color: var(--c-ink); }
}

.sec { padding: 96px 0 0; }
.sec:last-child { padding-bottom: 120px; }
@media (min-width: 1080px) { .sec { padding-top: 140px; } .sec:last-child { padding-bottom: 160px; } }
.sec__en { font-family: var(--font-en); font-size: 15px; letter-spacing: .24em; color: var(--c-accent-text); margin-bottom: 8px; }
.h2 { font-family: var(--font-ja); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.5; letter-spacing: .12em; color: var(--c-ink); margin-bottom: 40px; }
.h2 .ch, .finale__title .ch { display: inline-block; }
.note { margin-top: 16px; font-size: 15px; color: var(--c-sub); }

.msg { display: grid; gap: 32px; }
.msg__photo img, .wide-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.msg__body p + p { margin-top: 20px; }
.msg__sign { font-family: var(--font-ja); font-weight: 600; color: var(--c-ink); text-align: right; }
@media (min-width: 768px) { .msg { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .msg__photo img { aspect-ratio: 4 / 5; } }

.areas { display: grid; border-top: 1px solid var(--c-line); }
.areas li { padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.areas h3 { font-family: var(--font-ja); font-weight: 700; font-size: 20px; color: var(--c-ink); letter-spacing: .1em; margin-bottom: 4px; }
@media (min-width: 768px) {
  .areas { grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--c-line); }
  .areas li { padding: 28px 24px 32px; border-right: 1px solid var(--c-line); }
}

.wide-photo { margin-bottom: 32px; }
.flow { display: grid; gap: 0; counter-reset: f; }
.flow li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.flow__no { font-family: var(--font-en); font-size: 24px; color: var(--c-accent-text); line-height: 1.4; }
.flow h3 { font-family: var(--font-ja); font-weight: 700; font-size: 19px; color: var(--c-ink); }

.lawyers { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.lawyers li { background: var(--c-white); padding: 28px 24px; }
.lawyers__role { font-size: 15px; color: var(--c-accent-text); letter-spacing: .1em; }
.lawyers h3 { font-family: var(--font-ja); font-weight: 700; font-size: 22px; letter-spacing: .2em; color: var(--c-ink); margin: 2px 0 8px; }
.lawyers li p:last-child { font-size: 15px; color: var(--c-sub); }
@media (min-width: 768px) { .lawyers { grid-template-columns: 1fr 1fr; } }

.fees { width: 100%; border-collapse: collapse; }
.fees th, .fees td { padding: 20px 0; border-bottom: 1px solid var(--c-line); text-align: left; font-weight: 400; vertical-align: top; }
.fees th { color: var(--c-ink); padding-right: 16px; }
.fees td { text-align: right; font-family: var(--font-ja); font-weight: 600; color: var(--c-ink); }
@media (max-width: 599px) { .fees tr { display: grid; } .fees th { padding: 16px 0 0; border-bottom: 0; } .fees td { padding: 0 0 16px; } }

.access { display: grid; gap: 32px; }
.access__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.info div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-family: var(--font-ja); font-weight: 700; color: var(--c-ink); }
@media (min-width: 768px) { .access { grid-template-columns: 2fr 3fr; gap: 48px; align-items: start; } .access__photo img { aspect-ratio: 3 / 4; } }

/* ===== 演出③（D05 結び）：紋の格子 ===== */
.finale { position: relative; background: var(--c-dark); color: #e7e5e4; overflow: hidden; padding: 120px 20px; text-align: center; }
.wall { position: absolute; inset: -4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6vw; padding: 4vw; opacity: .4; align-content: center; }
.tile { width: 100%; aspect-ratio: 1; height: auto; }
@media (min-width: 768px) { .wall { grid-template-columns: repeat(4, 1fr); gap: 5vw; padding: 3vw 8vw; } }
@media (min-width: 1080px) { .wall { grid-template-columns: repeat(6, 1fr); gap: 4vw; } }
.finale::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 50%, rgba(15, 16, 18, .9) 0%, rgba(15, 16, 18, .72) 45%, rgba(15, 16, 18, .2) 100%); }
.finale__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.finale__en { font-family: var(--font-en); font-size: 16px; letter-spacing: .3em; color: var(--c-silver); }
.finale__title { font-family: var(--font-ja); font-weight: 700; font-size: clamp(28px, 4vw, 48px); line-height: 1.6; letter-spacing: .12em; color: #fff; margin: 16px 0 24px; }
.finale__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.finale__btns .btn { flex: 1 1 260px; max-width: 340px; }
@media (min-width: 1080px) { .finale { padding: 200px 48px; } }

/* ===== フッター ===== */
.footer { background: #070708; color: #d6d3d1; padding: 64px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-ja); font-weight: 700; font-size: 22px; letter-spacing: .2em; color: #fff; }
.footer__logo svg { width: 40px; height: 40px; }
.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; }
}
