/* ==========================================================
   宮の森法律事務所 — Top page base style
   Formal & Cool / 明朝体 / 余白広め
   WordPress化の際は theme/assets/css/style.css に配置
   ========================================================== */

:root {
  --navy-900: #2e3434;
  --navy-800: #414848;
  --navy-700: #596161;
  --slate-500: #646c6c;
  --slate-300: #b5bbbb;
  --line: #dcdfde;
  --paper: #f6f5f1;
  --white: #ffffff;
  --gold: #a68a5b;           /* アクセント（使い過ぎない） */
  --ink: #262c2c;

  --font-serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1120px;
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: .06em;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

.sp-only { display: none; }

/* ---------- Section heading ---------- */
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.section--navy { background: var(--navy-900); color: #e8eaea; }
.section--white { background: var(--white); }

.sec-head { margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head__en {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.sec-head__ja {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.6;
}
.sec-head__ja::after {
  content: "";
  display: block;
  width: 48px; height: 1px;
  background: var(--gold);
  margin-top: 28px;
}
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__ja::after { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 40px;
  border: 1px solid currentColor;
  font-size: 14px; letter-spacing: .24em;
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  z-index: 0;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--navy-800);
  transform: translateX(-101%);
  transition: transform .6s var(--ease);
  z-index: -1;
}
.btn::after {
  content: ""; width: 28px; height: 1px; background: currentColor;
  transition: width .5s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--navy-800); }
.btn:hover::before { transform: translateX(0); }
.btn:hover::after { width: 42px; }
.btn--light { color: #fff; }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--navy-900); border-color: #fff; }
.btn--solid { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn--solid::before { background: var(--gold); }
.btn--solid:hover { border-color: var(--gold); }

.link-more {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; text-transform: uppercase;
}
.link-more::after {
  content: ""; width: 40px; height: 1px; background: currentColor;
  transition: width .5s var(--ease);
}
.link-more:hover::after { width: 64px; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: 100%;
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1.3; }
.logo__ja { font-size: 20px; letter-spacing: .24em; font-weight: 500; }
.logo__en { font-family: var(--font-en); font-size: 11px; letter-spacing: .36em; text-transform: uppercase; opacity: .75; }

.gnav { display: flex; align-items: center; gap: 40px; }
.gnav__list { display: flex; gap: 36px; }
.gnav__list a {
  position: relative; display: block; padding: 6px 0;
  font-size: 14px; letter-spacing: .2em;
}
.gnav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.gnav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.gnav__tel { font-family: var(--font-en); font-size: 20px; letter-spacing: .12em; }
.gnav__cta {
  padding: 12px 28px; border: 1px solid currentColor; font-size: 13px; letter-spacing: .22em;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.gnav__cta:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.menu-btn { display: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; min-height: 100svh;
  color: #fff; display: flex; align-items: center;
  overflow: hidden; background: var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg .media, .hero__bg .media img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; }
.hero__bg .media { transform: scale(1.12); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 2; width: min(1120px, 100% - 48px); margin-inline: auto; padding: calc(var(--header-h) + 40px) 0 120px; }
.hero__en {
  font-family: var(--font-en); font-size: 14px; letter-spacing: .5em; text-transform: uppercase;
  color: var(--slate-300); margin-bottom: 36px;
  opacity: 0; animation: fadeUp 1.4s var(--ease) .4s forwards;
}
.hero__title {
  font-size: clamp(28px, 4.6vw, 54px);
  font-weight: 500; line-height: 1.75; letter-spacing: .18em;
}
.hero__title .line { display: block; }
.hero__title .char {
  display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(6px);
  animation: charIn 1.2s var(--ease) forwards;
}
@keyframes charIn { to { opacity: 1; transform: none; filter: blur(0); } }
.hero__lead {
  margin-top: 44px; max-width: 560px; font-size: 15px; line-height: 2.3; color: #d4d8d8;
  opacity: 0; animation: fadeUp 1.6s var(--ease) 2.4s forwards;
}
.hero__cta { margin-top: 56px; display: flex; gap: 20px; flex-wrap: wrap; opacity: 0; animation: fadeUp 1.6s var(--ease) 2.8s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; z-index: 2; right: 40px; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .4em; writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 90px; background: rgba(255,255,255,.3);
  background-image: linear-gradient(#fff, #fff); background-size: 1px 30px; background-repeat: no-repeat;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { background-position: 0 -30px; } 100% { background-position: 0 90px; } }

/* ==========================================================
   Placeholder media (画像差し替え用)
   画像未設置の間はグラデーションを表示
   ========================================================== */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   News
   ========================================================== */
.news { background: var(--white); padding: 72px 0; border-bottom: 1px solid var(--line); }
.news__inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.news__title { font-family: var(--font-en); font-size: 15px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.news__title span { display: block; font-family: var(--font-serif); color: var(--ink); font-size: 22px; letter-spacing: .2em; margin-top: 6px; }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list li:first-child { border-top: 1px solid var(--line); }
.news__list a { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 8px; transition: background .4s var(--ease), padding .4s var(--ease); }
.news__list a:hover { background: var(--paper); padding-left: 20px; }
.news__date { font-family: var(--font-en); font-size: 16px; letter-spacing: .14em; color: var(--slate-500); }
.news__text { font-size: 15px; line-height: 1.9; }

/* ==========================================================
   Message
   ========================================================== */
.message__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.message__visual { position: relative; aspect-ratio: 4 / 5; }
.message__visual::before {
  content: ""; position: absolute; top: 28px; left: -28px; right: 28px; bottom: -28px;
  border: 1px solid var(--gold); z-index: 0;
}
.message__visual .media { position: absolute; inset: 0; z-index: 1; }
.message__copy { font-size: clamp(22px, 2.4vw, 30px); line-height: 2.1; letter-spacing: .16em; font-weight: 500; margin-bottom: 40px; }
.message__body p { font-size: 15.5px; line-height: 2.4; color: #414848; }
.message__body p + p { margin-top: 1.6em; }
.message .link-more { margin-top: 56px; }

/* ==========================================================
   Strengths（選ばれる理由）
   ========================================================== */
.strengths__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.strengths__item { padding: 56px 40px 24px; border-right: 1px solid rgba(255,255,255,.18); }
.strengths__item:last-child { border-right: 0; }
.strengths__head { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.strengths__num { flex: none; font-family: var(--font-en); font-size: 60px; line-height: 1; color: var(--gold); letter-spacing: .04em; }
.strengths__item h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: .14em; line-height: 1.7; }
.strengths__item p { font-size: 14.5px; line-height: 2.2; color: #bdc3c3; }

/* ==========================================================
   Practice areas
   ========================================================== */
.areas__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 300px; padding: 44px 36px 36px; background: var(--white); overflow: hidden;
  transition: color .6s var(--ease);
}
.area-card::before {
  content: ""; position: absolute; inset: 0; background: var(--navy-800);
  transform: translateY(101%); transition: transform .7s var(--ease); z-index: 0;
}
.area-card:hover { color: #fff; }
.area-card:hover::before { transform: translateY(0); }
.area-card > * { position: relative; z-index: 1; }
.area-card__no { font-family: var(--font-en); font-size: 34px; line-height: 1; letter-spacing: .08em; color: var(--gold); }
.area-card h3 { margin-top: 20px; font-size: 22px; font-weight: 500; letter-spacing: .16em; line-height: 1.6; }
.area-card p { margin-top: 14px; font-size: 14px; line-height: 2.1; color: var(--slate-500); transition: color .6s var(--ease); }
.area-card:hover p { color: #c4caca; }
.area-card__arrow { margin-top: 24px; width: 36px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.area-card:hover .area-card__arrow { width: 64px; }
.areas__more { margin-top: 64px; text-align: center; }

/* ==========================================================
   Lawyer
   ========================================================== */
.lawyer__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 110px); align-items: start; }
.lawyer__id .sec-head { margin-bottom: 48px; }
.lawyer__body { padding-left: clamp(0px, 4vw, 56px); border-left: 1px solid rgba(255,255,255,.18); }
.lawyer__career { margin: 0 0 48px; }
.lawyer__career div { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 14.5px; line-height: 1.9; }
.lawyer__career div:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.lawyer__career dt { font-family: var(--font-en); font-size: 18px; letter-spacing: .12em; color: var(--gold); }
.lawyer__career dd { margin: 0; color: #cbd0d0; }
.lawyer__role { font-size: 13px; letter-spacing: .3em; color: var(--gold); }
.lawyer__name { margin: 12px 0 6px; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: .3em; font-weight: 500; }
.lawyer__kana { font-size: 13px; letter-spacing: .24em; color: var(--slate-300); }
.lawyer__text { margin: 0 0 40px; font-size: 15px; line-height: 2.4; color: #cbd0d0; }

/* ==========================================================
   Fee & Flow
   ========================================================== */
.fee__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.fee__lead { font-size: 15.5px; line-height: 2.4; color: #414848; margin-bottom: 40px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fee-table th, .fee-table td { padding: 20px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; line-height: 1.9; vertical-align: top; }
.fee-table tr:first-child th, .fee-table tr:first-child td { border-top: 1px solid var(--line); }
.fee-table th { width: 38%; letter-spacing: .12em; }
.fee-table td { text-align: right; font-family: var(--font-serif); }
.fee-note { margin-top: 20px; font-size: 12.5px; line-height: 2; color: var(--slate-500); }

.flow__list { counter-reset: flow; }
.flow__item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-bottom: 40px; }
.flow__item::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 8px; width: 1px; background: var(--line); }
.flow__item:last-child::before { display: none; }
.flow__no {
  counter-increment: flow; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font-family: var(--font-en); font-size: 22px; color: var(--gold); background: var(--paper);
}
.flow__no::before { content: counter(flow, decimal-leading-zero); }
.flow__item h3 { font-size: 18px; font-weight: 500; letter-spacing: .14em; line-height: 1.7; margin-top: 10px; }
.flow__item p { margin-top: 6px; font-size: 14px; line-height: 2.1; color: var(--slate-500); }

/* ==========================================================
   Access
   ========================================================== */
.access__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: stretch; }
.access__dl { margin: 0; }
.access__dl div { display: grid; grid-template-columns: 110px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.access__dl div:first-child { border-top: 1px solid var(--line); }
.access__dl dt { font-size: 13px; letter-spacing: .24em; color: var(--gold); }
.access__dl dd { margin: 0; font-size: 15px; line-height: 2; }
.access__tel { font: inherit; letter-spacing: inherit; }
.access__map { position: relative; min-height: 440px; background: var(--line); }
.access__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .8s var(--ease); }
.access__map:hover iframe { filter: grayscale(0); }

/* ==========================================================
   Contact CTA
   ========================================================== */

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--navy-900); color: #b5bbbb; padding: 88px 0 36px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer .logo { color: #fff; }
.site-footer address { margin-top: 24px; font-style: normal; font-size: 13.5px; line-height: 2.1; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 56px; font-size: 14px; letter-spacing: .16em; align-content: start; }
.site-footer__nav a:hover { color: #fff; }
.copyright { margin-top: 32px; font-family: var(--font-en); font-size: 12px; letter-spacing: .18em; text-align: center; }

/* ==========================================================
   Scroll animations
   ========================================================== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--fade { transform: none; }

/* 画像：幕が開くように現れる */
.reveal-img { position: relative; overflow: hidden; }
.reveal-img .media { clip-path: inset(0 100% 0 0); transform: scale(1.12); transition: clip-path 1.5s var(--ease), transform 2.2s var(--ease); }
.reveal-img.is-in .media { clip-path: inset(0 0 0 0); transform: scale(1); }

/* 見出しなどの文字：1文字ずつふんわり */
.split .char { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(4px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--i) * 45ms); }
.split.is-in .char { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img .media, .split .char, .hero__title .char, .hero__en, .hero__lead, .hero__cta {
    opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; animation: none !important; transition: none !important;
  }
  .hero__bg .media { animation: none; transform: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .gnav__tel { display: none; }
  .gnav__list { gap: 24px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  body { font-size: 15px; }
  .sp-only { display: inline; }

  .menu-btn { display: block; position: relative; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; z-index: 120; }
  .menu-btn span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
  .menu-btn span:nth-child(1) { top: 15px; }
  .menu-btn span:nth-child(2) { top: 22px; }
  .menu-btn span:nth-child(3) { top: 29px; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gnav {
    position: fixed; inset: 0; background: var(--navy-900); color: #fff;
    flex-direction: column; justify-content: center; gap: 40px;
    opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
  }
  .menu-open .gnav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
  .gnav__list { flex-direction: column; align-items: center; gap: 20px; }
  .gnav__list a { font-size: 18px; letter-spacing: .3em; }
  .gnav__tel { display: block; font-size: 26px; }

  .news__inner, .message__grid, .lawyer__grid, .fee__grid, .access__grid { grid-template-columns: 1fr; }
  .news__list a { grid-template-columns: 1fr; gap: 4px; }
  .message__visual { max-width: 420px; margin-inline: 0 auto; margin-right: 28px; }
  .strengths__list, .areas__grid { grid-template-columns: 1fr; }
  .strengths__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); padding: 40px 0; }
  .area-card { min-height: 0; }
  .lawyer__body { padding-left: 0; border-left: 0; }
  .access__map { min-height: 340px; }
  .hero__scroll { display: none; }
  .hero__inner { padding-bottom: 80px; }
  .site-footer__top { flex-direction: column; }
}

/* ==========================================================
   Contact Form 7 — デザイン
   固定ページ「お問い合わせ」で使用。
   CF7は <p> を自動挿入するため、レイアウトは .cf7-row 単位で制御
   ========================================================== */
.cf7-wrap { max-width: 800px; margin-inline: auto; }
.cf7-wrap .wpcf7 { margin: 0; }
.wpcf7-form p { margin: 0; }
.wpcf7-form br { display: none; }

.cf7-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px 32px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.cf7-row:first-of-type { border-top: 1px solid var(--line); }
.cf7-label { display: flex; align-items: center; gap: 12px; padding-top: 10px; font-size: 15px; letter-spacing: .14em; line-height: 1.6; }
.cf7-label .req, .cf7-label .opt {
  flex: none; padding: 3px 10px; font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; line-height: 1.5;
}
.cf7-label .req { background: var(--navy-800); color: #fff; }
.cf7-label .opt { border: 1px solid var(--slate-300); color: var(--slate-500); }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; padding: 14px 18px;
  font-family: var(--font-serif); font-size: 16px; letter-spacing: .06em; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 0; outline: 0;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.wpcf7-form textarea { min-height: 220px; resize: vertical; line-height: 1.9; }
.wpcf7-form select {
  padding-right: 48px;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate-500) 50%), linear-gradient(135deg, var(--slate-500) 50%, transparent 50%);
  background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(65,72,72,.12); }
.wpcf7-form ::placeholder { color: #a9afaf; }

/* ラジオ・チェックボックス */
.wpcf7-radio, .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 8px; }
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.wpcf7-list-item input { position: absolute; opacity: 0; }
.wpcf7-list-item-label { position: relative; padding-left: 28px; line-height: 1.6; }
.wpcf7-list-item-label::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 1px solid var(--slate-300); background: var(--white); transition: border-color .3s, background .3s;
}
.wpcf7-radio .wpcf7-list-item-label::before { border-radius: 50%; }
.wpcf7-list-item input:checked + .wpcf7-list-item-label::before { border-color: var(--navy-800); background: var(--navy-800); box-shadow: inset 0 0 0 3px var(--white); }
.wpcf7-checkbox .wpcf7-list-item input:checked + .wpcf7-list-item-label::before { box-shadow: none; }
.wpcf7-checkbox .wpcf7-list-item input:checked + .wpcf7-list-item-label::after {
  content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 9px; margin-top: -7px;
  border: solid #fff; border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.wpcf7-list-item input:focus-visible + .wpcf7-list-item-label::before { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 注意書き・同意 */
.cf7-privacy { margin-top: 40px; padding: 28px 32px; background: var(--white); border: 1px solid var(--line); font-size: 13.5px; line-height: 2.1; color: var(--slate-500); }
.cf7-privacy a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 4px; }
.cf7-agree { margin-top: 28px; text-align: center; }

/* 送信ボタン */
.cf7-submit { margin-top: 48px; text-align: center; position: relative; }
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  min-width: 320px; padding: 20px 56px;
  font-family: var(--font-serif); font-size: 15px; letter-spacing: .4em; color: #fff;
  background: var(--navy-800); border: 1px solid var(--navy-800); border-radius: 0; cursor: pointer;
  transition: background .5s var(--ease), border-color .5s var(--ease), letter-spacing .5s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.wpcf7-form input[type="submit"]:hover { background: var(--gold); border-color: var(--gold); letter-spacing: .46em; }
.wpcf7-form input[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }
.wpcf7-spinner { position: absolute; margin: 0 0 0 16px; top: 50%; transform: translateY(-50%); }

/* バリデーション・メッセージ */
.wpcf7-not-valid { border-color: #a4443f !important; background: #fdf7f6 !important; }
.wpcf7-not-valid-tip { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .08em; color: #a4443f; }
.wpcf7 form .wpcf7-response-output {
  margin: 40px 0 0; padding: 22px 28px; border: 1px solid var(--line); border-left-width: 3px;
  background: var(--white); font-size: 14px; line-height: 2;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--navy-700); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: #a4443f; color: #a4443f; }

@media (max-width: 700px) {
  .cf7-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .cf7-label { padding-top: 0; }
  .wpcf7-submit, .wpcf7-form input[type="submit"] { width: 100%; min-width: 0; }
}

/* ==========================================================
   下層ページ共通
   ========================================================== */
.container--narrow { width: min(860px, 100% - 48px); }

.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-900);
  padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) 0 clamp(72px, 9vw, 120px); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title { margin-top: 0; font-size: clamp(32px, 4.6vw, 52px); font-weight: 500; letter-spacing: .24em; line-height: 1.6;
  opacity: 0; animation: fadeUp 1.6s var(--ease) .5s forwards; }
@media (prefers-reduced-motion: reduce) { .page-hero__title { opacity: 1 !important; animation: none !important; } }

.lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 2.5; letter-spacing: .1em; max-width: 860px; color: #323a3a; }

.prose p { font-size: 15.5px; line-height: 2.5; color: #414848; }
.prose p + p { margin-top: 1.6em; }
.prose h2 { font-size: 24px; font-weight: 500; letter-spacing: .12em; margin: 8px 0 28px; line-height: 1.7; }

.pager { margin-top: 56px; text-align: center; font-family: var(--font-en); letter-spacing: .2em; }
.pager .page-numbers { display: inline-block; padding: 6px 14px; }
.pager .current { color: var(--gold); }

/* 弁護士紹介 */
.lawyer-page { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.lawyer-page__photo { position: relative; max-width: 300px; aspect-ratio: 4 / 5; }
.lawyer-page__photo .media { position: absolute; inset: 0; }
.lawyer-page__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.lawyer-page__id { margin-bottom: 40px; }
.lawyer-page__name { margin: 8px 0 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: .24em; line-height: 1.5; }
.lawyer-page__name small { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: .2em; color: var(--slate-500); }
.timeline div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 8px; border-bottom: 1px solid var(--line); }
.timeline div:first-child { border-top: 1px solid var(--line); }
.timeline dt { color: var(--gold); letter-spacing: .14em; font-size: 15px; }
.timeline dd { margin: 0; font-size: 15.5px; line-height: 2; }
.timeline--info { margin-top: 56px; }
.policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.policy li { padding: 48px 36px 16px; border-right: 1px solid var(--line); }
.policy li:last-child { border-right: 0; }
.policy span { font-family: var(--font-en); font-size: 48px; color: var(--gold); line-height: 1; }
.policy h3 { margin: 22px 0 14px; font-size: 20px; font-weight: 500; letter-spacing: .14em; }
.policy p { font-size: 14.5px; line-height: 2.2; color: var(--slate-500); }

/* 取扱分野 */
.area-detail { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.area-detail:first-of-type { margin-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--line); }
.area-detail__head h2 { margin-top: 14px; font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; letter-spacing: .16em; line-height: 1.6; }
.area-detail__body h3 { font-size: 14px; letter-spacing: .24em; color: var(--gold); font-weight: 500; margin: 0 0 16px; }
.area-detail__body h3:not(:first-child) { margin-top: 40px; }
.area-detail__body p { font-size: 15.5px; line-height: 2.4; color: #414848; }
.check-list li { position: relative; padding: 6px 0 6px 32px; font-size: 15.5px; line-height: 2; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 6px; border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(-45deg); }

/* 弁護士費用 */
.def-list div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px 8px; border-bottom: 1px solid var(--line); }
.def-list div:first-child { border-top: 1px solid var(--line); }
.def-list dt { letter-spacing: .14em; }
.def-list dd { margin: 0; font-size: 15px; line-height: 2.1; color: #414848; }
.fee-table--page { font-size: 16px; }
.table-scroll { overflow-x: auto; }
.fee-grid { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.fee-grid th, .fee-grid td { padding: 20px 18px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; line-height: 1.8; }
.fee-grid thead th { background: var(--navy-800); color: #fff; letter-spacing: .16em; font-size: 14px; }
.fee-grid tbody tr:nth-child(even) { background: rgba(255,255,255,.6); }
.notice-box { margin-top: 96px; padding: 40px 44px; background: var(--white); border: 1px solid var(--line); }
.notice-box h3 { font-size: 17px; font-weight: 500; letter-spacing: .16em; margin-bottom: 18px; }
.notice-box li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 2.2; color: #414848; }
.notice-box li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 1px; background: var(--gold); }
.container--narrow > .notice-box:first-child, .notice-box.reveal:only-child { margin-top: 0; }

/* 事務所案内 */
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.route-grid h3 { font-size: 18px; font-weight: 500; letter-spacing: .14em; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.route-grid p { font-size: 15px; line-height: 2.3; color: #414848; }
.route-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; }
.route-photos .reveal-img { aspect-ratio: 3 / 2; }
.route-photos .media { width: 100%; height: 100%; }

/* お問い合わせ */
.contact-intro { max-width: 800px; margin: 0 auto 72px; text-align: center; }
.contact-intro p { font-size: 15.5px; line-height: 2.5; color: #414848; }
.contact-note { max-width: 800px; margin: 48px auto 0; text-align: left; font-size: 13px; line-height: 2.1; color: var(--slate-500); }

@media (max-width: 900px) {
  .lawyer-page, .area-detail, .route-grid, .route-photos { grid-template-columns: 1fr; }
  .lawyer-page__id { position: static; }
  .timeline div, .def-list div { grid-template-columns: 1fr; gap: 4px; }
  .policy { grid-template-columns: 1fr; }
  .policy li { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 0; }
  .notice-box { padding: 28px 24px; }
}

/* 画像の見え方調整 */
.message__visual img { object-position: 62% center; }
.route-photos:has(> :only-child) { grid-template-columns: minmax(0, 760px); }
.route-photos .reveal-img { aspect-ratio: 16 / 10; }
.hero__bg img { object-position: center 60%; }

/* ==========================================================
   日本語の改行調整（句読点だけが行頭に落ちるのを防ぐ）
   ========================================================== */
body { line-break: strict; word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, .hero__lead, .message__copy, .lead { text-wrap: balance; }
.char { white-space: nowrap; }
.hero__title .line { white-space: nowrap; }
@media (max-width: 900px) {
  .hero__title { font-size: clamp(22px, 7.4vw, 40px); letter-spacing: .12em; line-height: 1.8; }
  .hero__lead br { display: none; }
  .hero__lead { font-size: 14px; line-height: 2.2; }
  .page-hero__title { font-size: clamp(24px, 7vw, 36px); letter-spacing: .16em; }
  .sec-head__ja { letter-spacing: .12em; }
  .strengths__num { font-size: 52px; }
}


/* ---------- トップ：弁護士紹介バナー ---------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
.lawyer-banner { position: relative; display: block; margin-top: 64px; overflow: hidden; color: #fff; background: var(--navy-900); }
.lawyer-banner__bg { position: absolute; inset: 0; }
.lawyer-banner__bg .media { width: 100%; height: 100%; }
.lawyer-banner__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) brightness(.9); transition: transform 1.2s var(--ease); }
.lawyer-banner::after { content: ""; position: absolute; inset: 0; background: rgba(36,42,42,.7); }
.lawyer-banner:hover .lawyer-banner__bg img { transform: scale(1.04); }
.lawyer-banner__inner { position: relative; z-index: 2; padding: clamp(64px, 9vw, 120px) 24px; text-align: center; }
.lawyer-banner__copy { font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; letter-spacing: .14em; line-height: 2.1; text-wrap: balance; }
.lawyer-banner__more { display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.6); font-size: 14px; letter-spacing: .24em; }
.lawyer-banner__more i { display: block; width: 36px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.lawyer-banner:hover .lawyer-banner__more i { width: 56px; }

/* 見出しが長くなっても横にはみ出さず折り返す（目安の文字数内なら通常どおり1行） */
.hero__title .line { white-space: normal; }

/* 固定ページ（プライバシーポリシーなど）の本文 */
.prose h2:not(:first-child) { margin-top: 72px; }
.prose h3 { font-size: 18px; font-weight: 500; letter-spacing: .1em; margin: 40px 0 12px; }
.prose ul, .prose ol { margin: 1em 0 0; padding-left: 1.6em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { font-size: 15.5px; line-height: 2.3; color: #414848; }
.prose a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 4px; }

/* トップの大きな写真は元の明るさのまま表示する。明るい空の上でも文字が読めるよう、文字に影を付ける */
.hero { background: var(--navy-900); }
.hero__inner { text-shadow: 0 0 3px rgba(10, 18, 32, .55), 0 2px 22px rgba(10, 18, 32, .6); }
.hero__lead, .hero__en { text-shadow: 0 0 3px rgba(10, 18, 32, .7), 0 1px 14px rgba(10, 18, 32, .75); }
.hero .btn--light { background: rgba(15, 22, 34, .28); border-color: rgba(255,255,255,.85); text-shadow: none; }
.hero__scroll { text-shadow: 0 0 6px rgba(10, 18, 32, .7); }
.site-header:not(.is-scrolled) { text-shadow: 0 0 3px rgba(10, 18, 32, .6), 0 1px 12px rgba(10, 18, 32, .6); }
.site-header:not(.is-scrolled)::before { content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(15, 22, 34, .32), rgba(15, 22, 34, 0)); }
@media (max-width: 900px) { .lawyer-page__photo { max-width: 240px; } }
.hero__lead, .hero__en { color: #fff; }
.hero__lead { font-weight: 500; text-shadow: 0 0 3px rgba(10, 18, 32, .85), 0 0 10px rgba(10, 18, 32, .75), 0 2px 18px rgba(10, 18, 32, .7); }
