/*
Theme Name: Takada Law
Theme URI: https://jurist.osaka/
Author: Taku Takada
Description: 弁護士 高田 拓 公式サイト用テーマ(案02・動的/先進的)。
Version: 1.0.0
License: GPL v2 or later
Text Domain: takada-law
*/

/* ===== 基礎 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: #05060a;
  color: #e8ecf3;
  font-family: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body.theme-light { background: #fbf9f5; color: #0a1930; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

:root {
  --bg: #05060a;
  --fg: #e8ecf3;
  --accent: #7ab4ff;
  --accent-2: #c8a770;
}
body.theme-light {
  --bg: #fbf9f5;
  --fg: #0a1930;
  --accent: #1e3d6b;
  --accent-2: #a88851;
}

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

::selection { background: #c8a770; color: #0a1930; }

/* アニメーション */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes glowPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.1); }
  100% { transform: translate(-40px, 40px) scale(0.95); }
}
@keyframes riseUp { to { transform: translateY(0); } }
@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ナビ */
.v2-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, rgba(5,6,10,0.9) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}
body.theme-light .v2-nav { background: linear-gradient(180deg, rgba(251,249,245,0.9), transparent); }
.v2-brand { font-family: "Shippori Mincho", serif; display: flex; align-items: center; gap: 14px; }
.v2-brand .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2);
  animation: glowPulse 2s infinite; box-shadow: 0 0 12px var(--accent-2);
}
.v2-brand .n { font-size: 16px; letter-spacing: 0.2em; }
.v2-brand .s { font-size: 10px; letter-spacing: 0.3em; opacity: 0.6; font-family: "JetBrains Mono", monospace; }
.v2-menu { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.15em; font-family: "Shippori Mincho", serif; }
.v2-menu a { opacity: 0.7; transition: opacity 0.3s; }
.v2-menu a:hover { opacity: 1; }
.v2-nav-cta {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  padding: 10px 18px; border: 1px solid var(--fg); letter-spacing: 0.15em; transition: all 0.3s;
}
.v2-nav-cta:hover { background: var(--fg); color: var(--bg); }

/* ヒーロー */
.v2-hero { height: 100vh; min-height: 780px; position: relative; display: flex; align-items: center; overflow: hidden; }
.v2-hero-canvas { position: absolute; inset: 0; z-index: 0; }
.v2-hero-canvas .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: drift 20s ease-in-out infinite alternate; }
.v2-hero-canvas .orb.a { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -100px; }
.v2-hero-canvas .orb.b { width: 600px; height: 600px; background: var(--accent-2); bottom: -200px; right: -150px; animation-delay: -10s; opacity: 0.3; }
.v2-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--fg) 1px, transparent 1px),
    linear-gradient(90deg, var(--fg) 1px, transparent 1px);
  background-size: 120px 120px; opacity: 0.04;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
}
.v2-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.v2-hero-label {
  display: flex; align-items: center; gap: 14px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.35em;
  color: var(--accent-2); margin-bottom: 36px;
  opacity: 0; animation: fadeInUp 0.9s 0.3s forwards;
}
.v2-hero-label .box { width: 8px; height: 8px; background: var(--accent-2); animation: glowPulse 2s infinite; }
.v2-hero-title { font-family: "Shippori Mincho", serif; font-weight: 500; font-size: clamp(56px, 9vw, 140px); line-height: 1.05; letter-spacing: 0.02em; margin-bottom: 44px; max-width: 1200px; }
.v2-hero-title .line { display: block; overflow: hidden; }
.v2-hero-title .line span { display: inline-block; transform: translateY(110%); animation: riseUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.v2-hero-title .line:nth-child(1) span { animation-delay: 0.5s; }
.v2-hero-title .line:nth-child(2) span { animation-delay: 0.7s; }
.v2-hero-title .line:nth-child(3) span { animation-delay: 0.9s; }
.v2-hero-title .gold {
  background: linear-gradient(90deg, var(--accent-2), #e8cb9e, var(--accent-2));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
.v2-hero-title .outline { -webkit-text-stroke: 1px var(--fg); color: transparent; }
.v2-hero-foot { position: absolute; bottom: 48px; left: 48px; right: 48px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 3; }
.v2-hero-sub { font-size: 15px; line-height: 2; max-width: 440px; opacity: 0; animation: fadeInUp 1s 1.4s forwards; }
.v2-hero-ticker { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.3em; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; opacity: 0; animation: fadeIn 1s 1.6s forwards; }
.v2-hero-ticker .live { color: var(--accent-2); display: flex; align-items: center; gap: 8px; }
.v2-hero-ticker .live::before { content: ""; width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%; animation: glowPulse 1.5s infinite; }
.v2-hero-cta { display: flex; gap: 16px; opacity: 0; animation: fadeInUp 1s 1.2s forwards; }

.v2-btn {
  font-family: "Shippori Mincho", serif; font-size: 15px; padding: 18px 32px; letter-spacing: 0.15em;
  border: 1px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer;
  position: relative; overflow: hidden; transition: color 0.3s; display: inline-block;
}
.v2-btn::before { content: ""; position: absolute; inset: 0; background: var(--accent-2); transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: -1; }
.v2-btn:hover::before { transform: translateY(0); }
.v2-btn:hover { color: #0a1930; border-color: var(--accent-2); }
.v2-btn.fill { background: var(--accent-2); border-color: var(--accent-2); color: #0a1930; }
.v2-btn.fill::before { background: var(--fg); }
.v2-btn.fill:hover { color: var(--bg); border-color: var(--fg); }

/* マーキー */
.v2-marquee { padding: 30px 0; border-top: 1px solid rgba(232,236,243,0.1); border-bottom: 1px solid rgba(232,236,243,0.1); overflow: hidden; white-space: nowrap; font-family: "Shippori Mincho", serif; font-size: 48px; letter-spacing: 0.08em; }
.v2-marquee-inner { display: inline-flex; gap: 60px; animation: marquee 40s linear infinite; }
.v2-marquee-inner > span { display: inline-flex; align-items: center; gap: 60px; }
.v2-marquee-inner .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); }

/* セクション共通 */
.v2-sec { padding: 160px 0; position: relative; }
.v2-sec-head { margin-bottom: 100px; }
.v2-sec-tag { display: flex; align-items: center; gap: 14px; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.3em; color: var(--accent-2); margin-bottom: 32px; }
.v2-sec-tag .l { width: 48px; height: 1px; background: currentColor; }
.v2-sec-title { font-family: "Shippori Mincho", serif; font-size: clamp(48px, 6.5vw, 96px); line-height: 1.1; letter-spacing: 0.04em; max-width: 1100px; font-weight: 500; }
.v2-sec-title em { font-style: normal; background: linear-gradient(90deg, var(--accent-2), #e8cb9e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.v2-sec-title .outline { -webkit-text-stroke: 1px var(--fg); color: transparent; }
.v2-sec-lede { margin-top: 28px; font-size: 15px; line-height: 2; max-width: 680px; opacity: 0.8; }

/* 取扱分野 */
.v2-practice { background: radial-gradient(ellipse at 20% 50%, rgba(200,167,112,0.08), transparent 60%), var(--bg); }
.v2-practice-list { display: flex; flex-direction: column; border-top: 1px solid rgba(232,236,243,0.14); }
body.theme-light .v2-practice-list { border-color: rgba(10,25,48,0.14); }
.v2-prow { padding: 32px 0; border-bottom: 1px solid rgba(232,236,243,0.14); display: grid; grid-template-columns: 64px 72px 240px 1fr auto; gap: 36px; align-items: center; transition: padding 0.5s; }
body.theme-light .v2-prow { border-color: rgba(10,25,48,0.14); }
.v2-prow:hover { padding: 60px 0; }
.v2-prow-thumb { width: 72px; height: 54px; background-size: cover; background-position: center; filter: grayscale(0.35) brightness(0.85); transition: filter 0.5s, transform 0.5s; }
.v2-prow:hover .v2-prow-thumb { filter: none; transform: scale(1.04); }
.v2-prow .n { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--accent-2); letter-spacing: 0.25em; }
.v2-prow .k { font-family: "Shippori Mincho", serif; font-size: clamp(44px, 5vw, 72px); letter-spacing: 0.08em; line-height: 1; transition: transform 0.5s; }
.v2-prow:hover .k { transform: translateX(20px); }
.v2-prow .e { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.3em; opacity: 0.5; margin-top: 8px; display: block; }
.v2-prow .desc { font-size: 14px; line-height: 1.9; opacity: 0.75; max-width: 540px; }
.v2-prow .arr { width: 64px; height: 64px; border: 1px solid var(--fg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.5s; }
.v2-prow:hover .arr { background: var(--accent-2); border-color: var(--accent-2); color: #0a1930; transform: rotate(-45deg) scale(1.1); }
.v2-practice-note { margin-top: 50px; padding: 30px 36px; border: 1px solid rgba(232,236,243,0.14); font-size: 14px; line-height: 2; opacity: 0.82; }
body.theme-light .v2-practice-note { border-color: rgba(10,25,48,0.14); }
.v2-practice-note .tag { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--accent-2); margin-right: 14px; }

/* マニフェスト */
.v2-manifesto { padding: 200px 0; }
.v2-manifesto-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: center; }
.v2-manifesto-text { font-family: "Shippori Mincho", serif; font-size: clamp(36px, 5vw, 80px); line-height: 1.5; letter-spacing: 0.05em; max-width: 1200px; }
.v2-manifesto-text em { font-style: normal; color: var(--accent-2); }
.v2-manifesto-img { width: 240px; aspect-ratio: 4/5; background-size: cover; background-position: center; position: relative; filter: grayscale(0.3) contrast(1.05); justify-self: end; }
.v2-manifesto-img .cap { position: absolute; bottom: -28px; left: 0; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.2em; opacity: 0.6; }
.v2-manifesto-sig { margin-top: 80px; display: flex; justify-content: space-between; align-items: flex-end; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.25em; opacity: 0.6; }

/* プロフィール */
.v2-profile { background: linear-gradient(180deg, transparent, rgba(200,167,112,0.04), transparent), var(--bg); padding: 160px 0; }
.v2-profile-split { display: grid; grid-template-columns: 1fr; border: 1px solid rgba(232,236,243,0.14); }
body.theme-light .v2-profile-split { border-color: rgba(10,25,48,0.14); }
.v2-profile-right { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.v2-profile-right h3 { font-family: "Shippori Mincho", serif; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.5; letter-spacing: 0.05em; margin-bottom: 32px; font-weight: 500; }
.v2-profile-right p { font-size: 15px; line-height: 2.1; opacity: 0.8; margin-bottom: 18px; }
.v2-profile-meta { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 30px; border-top: 1px solid rgba(232,236,243,0.14); }
body.theme-light .v2-profile-meta { border-color: rgba(10,25,48,0.14); }
.v2-profile-meta dt { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.25em; color: var(--accent-2); margin-bottom: 6px; }
.v2-profile-meta dd { font-size: 13px; line-height: 1.7; opacity: 0.8; }

.v2-career, .v2-works { margin-top: 80px; padding-top: 60px; border-top: 1px solid rgba(232,236,243,0.14); }
body.theme-light .v2-career, body.theme-light .v2-works { border-color: rgba(10,25,48,0.14); }
.v2-career-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.v2-career-head .tag { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.3em; color: var(--accent-2); }
.v2-career-head h4 { font-family: "Shippori Mincho", serif; font-size: clamp(28px, 3vw, 40px); letter-spacing: 0.06em; font-weight: 500; }
.v2-career-list li { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 22px 0; border-bottom: 1px dotted rgba(232,236,243,0.18); align-items: baseline; }
body.theme-light .v2-career-list li { border-color: rgba(10,25,48,0.18); }
.v2-career-list .yr { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.2em; color: var(--accent-2); }
.v2-career-list .ev { font-family: "Shippori Mincho", serif; font-size: 19px; letter-spacing: 0.06em; }

.v2-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.v2-work-card { display: block; padding: 36px 32px; border: 1px solid rgba(232,236,243,0.14); background: rgba(232,236,243,0.02); transition: all 0.4s; }
body.theme-light .v2-work-card { border-color: rgba(10,25,48,0.14); background: rgba(10,25,48,0.02); }
.v2-work-card:hover { border-color: var(--accent-2); background: rgba(200,167,112,0.08); transform: translateY(-4px); }
.v2-work-num { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.3em; color: var(--accent-2); margin-bottom: 20px; }
.v2-work-title { font-family: "Shippori Mincho", serif; font-size: 22px; line-height: 1.5; letter-spacing: 0.06em; margin-bottom: 12px; }
.v2-work-role { font-size: 13px; opacity: 0.7; margin-bottom: 24px; }
.v2-work-arr { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.25em; color: var(--accent-2); }

/* フロー */
.v2-flow { padding: 160px 0; }
.v2-flow-timeline { position: relative; }
.v2-flow-timeline::before { content: ""; position: absolute; left: 40px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--accent-2), transparent); }
.v2-flow-step { display: grid; grid-template-columns: 80px 200px 1fr; gap: 40px; padding: 40px 0; position: relative; align-items: start; }
.v2-flow-step::before { content: ""; position: absolute; left: 35px; top: 48px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2); z-index: 2; }
.v2-flow-step:hover::before { background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2); }
.v2-flow-step .nn { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.3em; color: var(--accent-2); padding-left: 60px; padding-top: 8px; }
.v2-flow-step .tt { font-family: "Shippori Mincho", serif; font-size: 26px; letter-spacing: 0.08em; }
.v2-flow-step .dd { font-size: 14px; line-height: 1.9; opacity: 0.7; max-width: 560px; padding-top: 6px; }

/* FAQ */
.v2-faq { padding: 160px 0; }
.v2-faq-list { max-width: 960px; margin: 0 auto; }
.v2-faq-item { border-top: 1px solid rgba(232,236,243,0.14); padding: 32px 0; cursor: pointer; }
body.theme-light .v2-faq-item { border-color: rgba(10,25,48,0.14); }
.v2-faq-item:last-child { border-bottom: 1px solid rgba(232,236,243,0.14); }
body.theme-light .v2-faq-item:last-child { border-color: rgba(10,25,48,0.14); }
.v2-faq-q { display: flex; gap: 28px; align-items: center; font-family: "Shippori Mincho", serif; font-size: 22px; letter-spacing: 0.05em; }
.v2-faq-q .qm { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--accent-2); letter-spacing: 0.2em; }
.v2-faq-q .tg { margin-left: auto; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform 0.4s; }
.v2-faq-item.open .tg { transform: rotate(45deg); background: var(--accent-2); border-color: var(--accent-2); color: #0a1930; }
.v2-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s, padding 0.4s; padding-left: 78px; font-size: 14px; line-height: 2; opacity: 0.8; }
.v2-faq-item.open .v2-faq-a { max-height: 400px; padding-top: 18px; }

/* CTA */
.v2-cta { padding: 200px 0; position: relative; overflow: hidden; text-align: center; background: linear-gradient(180deg, var(--bg), #0a1a30); }
body.theme-light .v2-cta { background: linear-gradient(180deg, var(--bg), #e8e0d0); }
.v2-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(200,167,112,0.15), transparent 40%), radial-gradient(ellipse at 70% 60%, rgba(122,180,255,0.1), transparent 40%); }
.v2-cta-inner { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 48px; }
.v2-cta .t { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.35em; color: var(--accent-2); margin-bottom: 36px; }
.v2-cta h2 { font-family: "Shippori Mincho", serif; font-size: clamp(48px, 7vw, 104px); line-height: 1.1; letter-spacing: 0.04em; margin-bottom: 40px; font-weight: 500; }
.v2-cta h2 em { font-style: normal; background: linear-gradient(90deg, var(--accent-2), #e8cb9e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.v2-cta p { font-size: 16px; line-height: 2; opacity: 0.8; max-width: 600px; margin: 0 auto 60px; }
.v2-cta-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; align-items: center; }
.v2-cta-tel { display: inline-flex; align-items: center; gap: 20px; padding: 20px 36px; border: 1px solid var(--accent-2); color: var(--accent-2); font-family: "JetBrains Mono", monospace; }
.v2-cta-tel .num { font-size: 24px; letter-spacing: 0.1em; }
.v2-cta-tel .hrs { font-size: 10px; letter-spacing: 0.2em; opacity: 0.7; }

/* フッター */
.v2-foot { padding: 80px 0 40px; border-top: 1px solid rgba(232,236,243,0.14); }
body.theme-light .v2-foot { border-color: rgba(10,25,48,0.14); }
.v2-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 50px; }
.v2-foot h5 { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--accent-2); margin-bottom: 20px; }
.v2-foot .bn { font-family: "Shippori Mincho", serif; font-size: 24px; letter-spacing: 0.1em; margin-bottom: 12px; }
.v2-foot ul { font-size: 13px; line-height: 2.2; opacity: 0.75; }
.v2-foot-bot { display: flex; justify-content: space-between; padding-top: 30px; border-top: 1px solid rgba(232,236,243,0.14); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.25em; opacity: 0.5; }
body.theme-light .v2-foot-bot { border-color: rgba(10,25,48,0.14); }

/* お知らせ */
.v2-news { padding: 120px 0; }
.v2-news-list { display: grid; gap: 20px; max-width: 1000px; }
.v2-news-item { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px dotted rgba(232,236,243,0.18); }
body.theme-light .v2-news-item { border-color: rgba(10,25,48,0.18); }
.v2-news-item .date { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.2em; color: var(--accent-2); padding-top: 4px; }
.v2-news-item .ttl { font-family: "Shippori Mincho", serif; font-size: 17px; letter-spacing: 0.06em; line-height: 1.7; }
.v2-news-item a:hover .ttl { color: var(--accent-2); }

/* お問い合わせフォーム */
.v2-form-wrap { max-width: 720px; margin: 60px auto 0; text-align: left; }
.v2-form-wrap .wpcf7 { color: var(--fg); }
.v2-form-wrap p { margin: 0 0 20px; font-size: 14px; }
.v2-form-wrap label { display: block; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.25em; color: var(--accent-2); margin-bottom: 8px; }
.v2-form-wrap input[type=text],
.v2-form-wrap input[type=email],
.v2-form-wrap input[type=tel],
.v2-form-wrap textarea {
  width: 100%; padding: 14px 16px; background: rgba(232,236,243,0.04);
  border: 1px solid rgba(232,236,243,0.2); color: var(--fg);
  font-family: "Shippori Mincho", serif; font-size: 15px;
}
body.theme-light .v2-form-wrap input,
body.theme-light .v2-form-wrap textarea { background: #fff; border-color: rgba(10,25,48,0.2); }
.v2-form-wrap textarea { min-height: 160px; resize: vertical; }
.v2-form-wrap input[type=submit] {
  font-family: "Shippori Mincho", serif; font-size: 15px; padding: 18px 40px;
  letter-spacing: 0.15em; background: var(--accent-2); color: #0a1930;
  border: none; cursor: pointer; transition: background 0.3s;
}
.v2-form-wrap input[type=submit]:hover { background: var(--fg); color: var(--bg); }

/* レスポンシブ */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .v2-nav { padding: 18px 24px; }
  .v2-menu { display: none; }
  .v2-hero-foot { flex-direction: column; align-items: flex-start; gap: 30px; left: 24px; right: 24px; }
  .v2-prow { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
  .v2-prow-thumb { width: 100%; height: 160px; }
  .v2-manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
  .v2-career-list li { grid-template-columns: 1fr; gap: 4px; }
  .v2-works-grid { grid-template-columns: 1fr; }
  .v2-prow:hover { padding: 40px 0; }
  .v2-profile-right { padding: 36px 24px; }
  .v2-flow-step { grid-template-columns: 1fr; gap: 8px; padding-left: 60px; }
  .v2-flow-step .nn { padding-left: 0; }
  .v2-foot-grid { grid-template-columns: 1fr 1fr; }
  .v2-news-item { grid-template-columns: 1fr; gap: 6px; }
  .v2-sec { padding: 100px 0; }
  .v2-marquee { font-size: 28px; }
}

/* Codex hero imagery v5 START - 2026-04-26 */
:root {
  --codex-hero-home: url("https://jurist.osaka/wp-content/uploads/2026/04/home-hero-v5.jpg");
  --codex-hero-practice: url("https://jurist.osaka/wp-content/uploads/2026/04/practice-overview-hero-v5.jpg");
  --codex-hero-inheritance: url("https://jurist.osaka/wp-content/uploads/2026/04/inheritance-will-hero-v5.jpg");
  --codex-hero-traffic: url("https://jurist.osaka/wp-content/uploads/2026/04/traffic-accident-hero-v5.jpg");
  --codex-hero-divorce: url("https://jurist.osaka/wp-content/uploads/2026/04/divorce-hero-v5.jpg");
  --codex-hero-criminal: url("https://jurist.osaka/wp-content/uploads/2026/04/criminal-defense-hero-v5.jpg");
  --codex-hero-elderly: url("https://jurist.osaka/wp-content/uploads/2026/04/elderly-issues-hero-v5.jpg");
}

body.home .v2-hero,
body.page-id-75 .sub-inh-hero,
body.page-id-76 .sub-s-hero,
body.page-id-77 .sub-s-hero,
body.page-id-78 .sub-s-hero,
body.page-id-79 .sub-s-hero {
  isolation: isolate;
}

body.home .v2-hero::before,
body.page-id-75 .sub-inh-hero::before,
body.page-id-76 .sub-s-hero::before,
body.page-id-77 .sub-s-hero::before,
body.page-id-78 .sub-s-hero::before,
body.page-id-79 .sub-s-hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(232,236,243,0.16);
  box-shadow: 0 28px 80px rgba(0,0,0,0.36);
}

body.home .v2-hero::before {
  top: clamp(96px, 15vh, 150px);
  right: clamp(20px, 5vw, 76px);
  width: min(45vw, 660px);
  height: min(46vh, 420px);
  border-radius: 18px;
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.08), rgba(5,6,10,0.22)),
    var(--codex-hero-home);
  opacity: 0.9;
}

body.home .v2-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,10,0.97) 0%, rgba(5,6,10,0.82) 46%, rgba(5,6,10,0.22) 76%, rgba(5,6,10,0.66) 100%);
}

body.home .v2-hero-inner,
body.home .v2-hero-foot {
  position: relative;
  z-index: 2;
}

body.page-id-75 .sub-inh-hero,
body.page-id-76 .sub-s-hero,
body.page-id-77 .sub-s-hero,
body.page-id-78 .sub-s-hero,
body.page-id-79 .sub-s-hero {
  position: relative;
  min-height: 520px;
}

body.page-id-75 .sub-inh-hero::before,
body.page-id-76 .sub-s-hero::before,
body.page-id-77 .sub-s-hero::before,
body.page-id-78 .sub-s-hero::before,
body.page-id-79 .sub-s-hero::before {
  top: 118px;
  right: max(28px, calc((100vw - 1120px) / 2));
  width: min(42vw, 500px);
  height: clamp(240px, 30vw, 360px);
  border-radius: 16px;
  opacity: 0.96;
}

body.page-id-75 .sub-inh-hero::after,
body.page-id-76 .sub-s-hero::after,
body.page-id-77 .sub-s-hero::after,
body.page-id-78 .sub-s-hero::after,
body.page-id-79 .sub-s-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,6,10,0.98) 0%, rgba(5,6,10,0.88) 44%, rgba(5,6,10,0.24) 68%, rgba(5,6,10,0.16) 100%);
}

body.page-id-75 .sub-inh-wrap,
body.page-id-76 .sub-s-wrap,
body.page-id-77 .sub-s-wrap,
body.page-id-78 .sub-s-wrap,
body.page-id-79 .sub-s-wrap {
  position: relative;
  z-index: 2;
}

body.page-id-75 .sub-inh-hero::before {
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.04), rgba(5,6,10,0.18)),
    var(--codex-hero-inheritance);
}
body.page-id-76 .sub-s-hero::before {
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.04), rgba(5,6,10,0.18)),
    var(--codex-hero-traffic);
}
body.page-id-77 .sub-s-hero::before {
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.04), rgba(5,6,10,0.18)),
    var(--codex-hero-divorce);
}
body.page-id-78 .sub-s-hero::before {
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.04), rgba(5,6,10,0.2)),
    var(--codex-hero-criminal);
}
body.page-id-79 .sub-s-hero::before {
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.04), rgba(5,6,10,0.18)),
    var(--codex-hero-elderly);
}

body.page-id-55 .sub-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 128px 32px 96px;
}

body.page-id-55 .sub-page::before {
  content: "";
  display: block;
  width: 100%;
  height: clamp(240px, 38vw, 430px);
  margin: 0 0 48px;
  border-radius: 16px;
  border: 1px solid rgba(232,236,243,0.14);
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.16), rgba(5,6,10,0.04)),
    var(--codex-hero-practice);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 26px 70px rgba(0,0,0,0.3);
}

@media (max-width: 900px) {
  body.home .v2-hero::before,
  body.page-id-75 .sub-inh-hero::before,
  body.page-id-76 .sub-s-hero::before,
  body.page-id-77 .sub-s-hero::before,
  body.page-id-78 .sub-s-hero::before,
  body.page-id-79 .sub-s-hero::before {
    position: relative;
    display: block;
    top: auto;
    right: auto;
    width: calc(100% - 48px);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 96px auto 32px;
  }

  body.home .v2-hero {
    height: auto;
    min-height: 760px;
    padding-top: 1px;
  }

  body.home .v2-hero-inner,
  body.home .v2-hero-foot {
    z-index: 3;
  }

  body.home .v2-hero-inner {
    margin-top: 0;
  }

  body.page-id-75 .sub-inh-hero,
  body.page-id-76 .sub-s-hero,
  body.page-id-77 .sub-s-hero,
  body.page-id-78 .sub-s-hero,
  body.page-id-79 .sub-s-hero {
    min-height: 0;
    padding-bottom: 88px;
  }

  body.page-id-75 .sub-inh-hero::after,
  body.page-id-76 .sub-s-hero::after,
  body.page-id-77 .sub-s-hero::after,
  body.page-id-78 .sub-s-hero::after,
  body.page-id-79 .sub-s-hero::after {
    background: linear-gradient(180deg, rgba(5,6,10,0.1), rgba(5,6,10,0.92) 52%, rgba(5,6,10,0.98));
  }

  body.page-id-55 .sub-page {
    padding: 96px 24px 72px;
  }

  body.home .v2-hero::before {
    position: absolute;
    top: 112px;
    right: 18px;
    left: auto;
    width: min(62vw, 270px);
    height: min(34vh, 240px);
    aspect-ratio: auto;
    margin: 0;
    opacity: 0.34;
  }

  body.home .v2-hero::after {
    background:
      linear-gradient(90deg, rgba(5,6,10,0.97) 0%, rgba(5,6,10,0.84) 56%, rgba(5,6,10,0.38) 100%);
  }
}
/* Codex hero imagery v5 END */

/* Codex inheritance/will split imagery v6 START - 2026-04-26 */
body.page-id-75 {
  --codex-hero-inheritance: url("https://jurist.osaka/wp-content/uploads/2026/04/inheritance-hero-v7-20260426.jpg");
}

body.page-id-101 {
  --codex-hero-inheritance: url("https://jurist.osaka/wp-content/uploads/2026/04/will-hero-v6.jpg");
  --codex-hero-will: url("https://jurist.osaka/wp-content/uploads/2026/04/will-hero-v6.jpg");
}

body.page-id-75 .sub-inh-hero::before {
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.02), rgba(5,6,10,0.12)),
    var(--codex-hero-inheritance) !important;
  opacity: 0.98 !important;
}

body.page-id-101 .sub-inh-hero {
  isolation: isolate;
  position: relative;
  min-height: 520px;
}

body.page-id-101 .sub-inh-hero::before {
  content: "";
  position: absolute;
  top: 118px;
  right: max(28px, calc((100vw - 1120px) / 2));
  width: min(42vw, 600px);
  height: min(60vh, 460px);
  border-radius: 18px;
  border: 1px solid rgba(232,236,243,0.16);
  background-image:
    linear-gradient(90deg, rgba(5,6,10,0.02), rgba(5,6,10,0.12)),
    var(--codex-hero-will) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 0.98 !important;
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
  pointer-events: none;
  z-index: 0;
}

body.page-id-101 .sub-inh-hero::after {
  background:
    linear-gradient(90deg, rgba(5,6,10,0.96) 0%, rgba(5,6,10,0.84) 42%, rgba(5,6,10,0.24) 66%, rgba(5,6,10,0.12) 100%) !important;
}

body.page-id-101 .sub-inh-wrap {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  body.page-id-101 .sub-inh-hero {
    min-height: 0;
    padding-bottom: 88px;
  }

  body.page-id-101 .sub-inh-hero::before {
    display: block !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: calc(100% - 48px) !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 96px auto 32px !important;
  }

  body.page-id-101 .sub-inh-hero::after {
    background:
      linear-gradient(180deg, rgba(5,6,10,0.08), rgba(5,6,10,0.9) 52%, rgba(5,6,10,0.98)) !important;
  }
}
/* Codex inheritance/will split imagery v6 END */
