/*
Theme Name: Kunitachi Medical Law
Description: 患者側の医療事故・医療過誤サイト専用テーマ
Version: 1.6.0
Author: Kunitachi Law Office site project
*/
:root{--bg:#faf9f6;--paper:#fff;--ink:#30383a;--muted:#687477;--main:#526f73;--dark:#354d52;--pale:#edf2f1;--accent:#ad9270;--line:#dfe6e4;--max:1160px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans JP","Yu Gothic",sans-serif;line-height:1.9;font-size:17px}a{color:var(--dark);text-underline-offset:.18em}.wrap{width:min(calc(100% - 40px),var(--max));margin:auto}.site-header{position:sticky;top:0;z-index:20;background:#faf9f6f2;border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{text-decoration:none;color:var(--dark);line-height:1.35}.brand strong{display:block;font-family:"Noto Serif JP","Yu Mincho",serif;font-size:20px}.brand span{font-size:12px;color:var(--muted)}.nav{display:flex;align-items:center;gap:20px;font-size:14px}.nav a{text-decoration:none}.nav .cta{padding:9px 14px;border:1px solid var(--main);border-radius:999px}.menu-toggle{display:none;border:0;background:none;font-size:25px}.hero{padding:110px 0;background:linear-gradient(135deg,var(--bg),var(--pale))}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center}.eyebrow{font-size:12px;letter-spacing:.14em;color:var(--main);font-weight:700}.hero h1,.section-title,.article h1{font-family:"Noto Serif JP","Yu Mincho",serif;color:var(--dark);font-weight:600}.hero h1{font-size:clamp(38px,5vw,60px);line-height:1.35;margin:.25em 0}.hero-panel{background:#ffffffbd;border:1px solid var(--line);border-radius:24px;padding:34px}.buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.button{display:inline-block;text-decoration:none;padding:12px 20px;border-radius:999px;background:var(--main);color:#fff;border:1px solid var(--main)}.button.secondary{background:transparent;color:var(--dark)}section{padding:92px 0}.section-head{max-width:760px;margin-bottom:40px}.section-title{font-size:clamp(28px,3.5vw,40px);line-height:1.5;margin:.2em 0}.pale{background:var(--pale)}.questions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 26px}.question{padding:15px 0;border-bottom:1px solid var(--line)}.question:before{content:"—";color:var(--accent);margin-right:10px}.responsibility,.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.pillar,.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:28px}.pillar{border-top:3px solid var(--main);border-radius:0 0 16px 16px}.pillar h3,.card h3{font-family:"Noto Serif JP",serif;color:var(--dark);font-size:23px;margin-top:6px}.num{font-size:12px;color:var(--accent);font-weight:700}.contrast{display:grid;grid-template-columns:1fr 1fr;gap:18px}.contrast>div{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px}.notice{border-left:4px solid var(--accent);background:#fffaf3;padding:20px 24px;margin-top:28px}.flow{max-width:760px}.flow-step{display:grid;grid-template-columns:54px 1fr;gap:18px;padding-bottom:24px}.flow-num{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:var(--main);color:#fff;font-weight:700}.footer{background:var(--dark);color:#e8efee;padding:60px 0 28px}.footer a{color:#e8efee}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:40px}.article{padding:80px 0}.article-inner{width:min(calc(100% - 40px),760px);margin:auto}.article h1{font-size:42px}.article h2{font-family:"Noto Serif JP",serif;color:var(--dark);font-size:30px;margin-top:2.1em}.summary{background:var(--pale);padding:24px;border-radius:16px}.placeholder{background:#fff7e8;border:1px dashed #c8aa75;padding:16px;border-radius:10px}@media(max-width:900px){body{font-size:16.5px}.nav{display:none}.menu-toggle{display:block}.nav.open{display:flex;position:absolute;left:0;right:0;top:76px;background:var(--bg);padding:24px;flex-direction:column;align-items:flex-start}.hero{padding:72px 0}.hero-grid,.responsibility,.cards,.contrast,.footer-grid{grid-template-columns:1fr}.questions{grid-template-columns:1fr}section{padding:70px 0}.article h1{font-size:32px}}

/* v0.2 content system */
.breadcrumbs{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:13px;margin-bottom:24px}.breadcrumbs a{color:var(--muted)}
.article-lead{font-family:"Noto Serif JP","Yu Mincho",serif;font-size:20px;line-height:2;color:var(--dark);border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:34px}
.article strong{color:var(--dark)}.article ul{padding-left:1.35em}.article li{margin:.55em 0}
.three-map{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:34px 0 46px}.three-map>a,.three-map>span{display:flex;flex-direction:column;text-decoration:none;background:#fff;border:1px solid var(--line);padding:18px 16px;border-radius:12px}.three-map b{font-family:"Noto Serif JP",serif;font-size:19px}.three-map span,.three-map small{color:var(--muted);font-size:13px}.three-map .active{background:var(--dark);color:#fff;border-color:var(--dark)}.three-map .active b,.three-map .active small{color:#fff}
.point{background:var(--pale);border-left:4px solid var(--main);padding:22px 24px;margin:30px 0}.point p{margin:.4em 0 0}.next-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:32px 0}.next-links a{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;text-decoration:none;font-weight:700}
.process-list{border-top:1px solid var(--line);margin:24px 0}.process-list>div{display:grid;grid-template-columns:180px 1fr;gap:20px;border-bottom:1px solid var(--line);padding:18px 0}.process-list p{margin:0}
.sources{margin-top:64px;border-top:1px solid var(--line);padding-top:30px}.sources h2{font-size:24px}.sources li{font-size:14px}.source-note{font-size:12px;color:var(--muted)}
.causal-flow{display:flex;flex-direction:column;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;margin:28px 0}.causal-flow span{color:var(--accent)}
.cards.compact{grid-template-columns:repeat(2,1fr);margin:30px 0}.cards.compact .card{padding:20px}.cards.compact h3{font-size:20px;margin-bottom:6px}
.fee-warning,.profile-placeholder{background:#fff7e8;border:1px dashed #c8aa75;padding:20px 22px;border-radius:12px;margin:28px 0}.fee-table{border-top:1px solid var(--line);margin:18px 0 34px}.fee-table>div{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:16px 8px}.fee-table span{color:var(--muted)}
.profile-card{background:linear-gradient(135deg,var(--pale),#fff);border:1px solid var(--line);padding:34px;border-radius:20px;margin:26px 0 40px}.profile-card h2{margin:.3em 0;font-size:32px}.profile-kicker{font-size:11px;letter-spacing:.16em;color:var(--main)}
.kml-form{display:grid;gap:18px;margin:28px 0}.kml-form>label,.kml-form fieldset{display:grid;gap:7px}.kml-form input,.kml-form select,.kml-form textarea{width:100%;font:inherit;border:1px solid #cbd7d5;border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink)}.kml-form fieldset{border:1px solid var(--line);border-radius:12px;padding:16px}.radio-row{display:flex;flex-wrap:wrap;gap:12px 22px}.radio-row label,.privacy-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important}.radio-row input,.privacy-check input{width:auto}.required{font-size:11px;background:var(--dark);color:#fff;border-radius:4px;padding:2px 5px}.form-note{font-size:12px;color:var(--muted)}.form-success{background:#edf7ef;border:1px solid #b9d8bf;padding:16px;border-radius:10px}.form-error{background:#fff0ee;border:1px solid #e2c0bb;padding:16px;border-radius:10px}
.footer-bottom{margin-top:36px;padding-top:22px;border-top:1px solid #ffffff26;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
@media(max-width:900px){.three-map,.cards.compact{grid-template-columns:1fr}.next-links{grid-template-columns:1fr}.process-list>div{grid-template-columns:1fr;gap:4px}.article-lead{font-size:18px}.fee-table>div{grid-template-columns:1fr;gap:4px}.radio-row{flex-direction:column;gap:8px}}


/* v0.3 content / precedent */
.topic-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:28px 0}.topic-card{display:block;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}.topic-card strong{display:block;font-family:"Noto Serif JP",serif;font-size:20px;margin-bottom:5px}.topic-card span{color:var(--muted);font-size:14px}.precedent-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:24px 0 34px;background:#fff}.precedent-meta div{padding:14px 16px;border-bottom:1px solid var(--line)}.precedent-meta div:nth-child(odd){border-right:1px solid var(--line)}.precedent-meta b{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}.precedent-list{display:grid;gap:16px}.precedent-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px}.precedent-item h2{font-size:24px;margin:.2em 0}.precedent-item p{margin:.5em 0}.tagline{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.tagline span{font-size:12px;padding:3px 8px;border-radius:999px;background:var(--pale);color:var(--dark)}.update-note{font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:30px}.article-index{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:28px 0}.article-index a{display:block;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.fact-check{background:#f7f7f5;border:1px solid var(--line);border-radius:12px;padding:18px 20px;margin:28px 0}.fact-check strong{display:block;margin-bottom:6px}.home-topics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.home-topics a{background:#fff;border:1px solid var(--line);padding:18px;border-radius:12px;text-decoration:none;font-weight:700}.home-precedents{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.home-precedents article{background:#fff;border:1px solid var(--line);padding:22px;border-radius:14px}.home-precedents h3{font-family:"Noto Serif JP",serif;margin-top:5px}.home-precedents a{text-decoration:none}
@media(max-width:900px){.topic-grid,.precedent-meta,.article-index,.home-topics,.home-precedents{grid-template-columns:1fr}.precedent-meta div:nth-child(odd){border-right:0}}
/* v0.3 precedent database */
.precedent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:36px 0 80px}.precedent-card{background:#fff;border:1px solid #dfe7e5;border-radius:18px;padding:28px;box-shadow:0 10px 32px rgba(53,77,82,.05)}.precedent-card h2{font-size:1.25rem;line-height:1.65;margin:.6rem 0 1rem}.precedent-card h2 a{text-decoration:none;color:var(--dark,#354d52)}.precedent-label{font-size:.75rem;letter-spacing:.12em;color:#73898d}.case-meta{display:grid;grid-template-columns:130px 1fr;gap:10px 20px;background:#edf2f1;border-radius:16px;padding:22px 26px;margin:0 0 34px}.case-meta b{color:#354d52}.case-meta span{color:#465154}.text-link{font-weight:700;text-decoration:none;color:#526f73}
@media(max-width:820px){.precedent-grid{grid-template-columns:1fr}.case-meta{grid-template-columns:1fr;gap:4px}.case-meta span{margin-bottom:12px}}

/* v0.4 */
.office-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px}.office-dl{display:grid;grid-template-columns:110px 1fr;border-top:1px solid var(--line)}.office-dl dt,.office-dl dd{margin:0;padding:14px 8px;border-bottom:1px solid var(--line)}.office-dl dt{font-weight:700;color:var(--deep)}.fee-responsive{overflow-x:auto}.fee-matrix{width:100%;border-collapse:collapse;margin:22px 0 28px}.fee-matrix th,.fee-matrix td{padding:14px 12px;border:1px solid var(--line);text-align:left}.fee-matrix th{background:var(--pale);color:var(--deep)}.kml-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.html-sitemap ul{columns:2;column-gap:44px}.html-sitemap li{break-inside:avoid;margin:0 0 10px}.footer a[href^="tel:"]{font-size:1.1rem;font-weight:700}.source-note{font-size:.86rem;color:var(--muted)}
@media(max-width:760px){.office-grid{grid-template-columns:1fr;gap:24px}.office-dl{grid-template-columns:92px 1fr}.html-sitemap ul{columns:1}.fee-matrix{min-width:660px}}

/* v0.5 accessibility / launch polish */
.skip-link{position:fixed;left:12px;top:-60px;z-index:9999;background:#fff;color:var(--dark);padding:10px 14px;border:2px solid var(--main);border-radius:8px;text-decoration:none}.skip-link:focus{top:12px}
:focus-visible{outline:3px solid #8a704e;outline-offset:3px;border-radius:3px}
.article-dates{font-size:12px;color:var(--muted);margin:-10px 0 28px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.search-form-kml{display:flex;gap:10px;margin:24px 0 34px}.search-form-kml label{flex:1}.search-form-kml input{width:100%;font:inherit;background:#fff;border:1px solid #cbd7d5;border-radius:999px;padding:11px 16px}.search-form-kml button{font:inherit;border:0;border-radius:999px;padding:10px 20px;background:var(--main);color:#fff;cursor:pointer}.search-results-list{border-top:1px solid var(--line)}.search-result{padding:24px 0;border-bottom:1px solid var(--line)}.search-result h2{font-size:23px;margin:0 0 8px}.search-result h2 a{text-decoration:none}.navigation.pagination{margin:32px 0}.nav-links{display:flex;gap:8px;flex-wrap:wrap}.page-numbers{display:inline-block;padding:7px 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none;background:#fff}.page-numbers.current{background:var(--dark);color:#fff;border-color:var(--dark)}
.custom-logo{max-height:54px;width:auto;display:block}
@media(max-width:900px){.search-form-kml{flex-direction:column}.search-form-kml button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.site-header,.footer,.menu-toggle,.buttons,.next-links,.search-form-kml{display:none!important}body{background:#fff;color:#000;font-size:11pt}.article,.article-inner{width:100%;max-width:none;padding:0}.article a{color:#000;text-decoration:none}.article a[href^="http"]:after{content:" (" attr(href) ")";font-size:8pt}.point,.notice,.summary{border:1px solid #999;background:#fff}}

/* v0.6: approved identity and photography */
.header-top{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:flex;align-items:center;gap:13px;min-width:max-content}.brand-text{display:block}.brand-text strong{font-size:27px;letter-spacing:.02em}.brand-text>span{display:block;font-size:14px;margin-top:4px}.brand-mark{width:68px;height:68px;object-fit:contain;border-radius:50%}.header-contact{margin-left:auto;display:grid;grid-template-columns:auto auto;column-gap:18px;row-gap:2px;align-items:center}.header-contact-label{grid-column:1/3;font-size:12px;color:var(--muted)}.header-phone{font-family:"Noto Sans JP",sans-serif;font-size:27px;line-height:1.2;font-weight:700;text-decoration:none;color:#086b63;letter-spacing:.03em}.header-phone:before{content:"☎";font-size:.72em;margin-right:7px}.header-form{grid-row:2;grid-column:2;text-decoration:none;background:#08655f;color:#fff;padding:10px 18px;border-radius:4px;font-weight:700;white-space:nowrap}.nav-row{border-top:1px solid var(--line);background:#fff}.nav-row .nav{min-height:50px;justify-content:space-between;width:100%;gap:14px}.nav-row .nav a{padding:13px 3px;white-space:nowrap;color:#263234;font-weight:500}.hero{padding:0;background:#fff;border-bottom:1px solid var(--line)}.hero-grid-v06{width:100%;max-width:none;display:grid;grid-template-columns:minmax(500px,1.15fr) 250px minmax(420px,.95fr);align-items:stretch;padding:0}.hero-copy{padding:52px 34px 48px max(44px,calc((100vw - 1480px)/2));background:linear-gradient(115deg,#fff 0%,#fbfcfb 100%)}.hero-copy h1{font-size:clamp(38px,4vw,58px);margin:0 0 28px}.hero-copy p{max-width:720px;margin:0 0 15px}.hero-points{display:flex;gap:25px;flex-wrap:wrap;margin-top:32px;font-size:14px;font-weight:500}.hero-points span:before{content:"✓";display:inline-grid;place-items:center;width:19px;height:19px;margin-right:8px;border-radius:50%;background:#08716c;color:#fff;font-size:12px}.hero-lawyer{padding:48px 18px 22px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;background:#fcfdfc;border-left:1px solid #eef2f1}.hero-lawyer>img{width:142px;height:180px;object-fit:cover;object-position:50% 16%;background:#fff;display:block;border:1px solid #e7ecea}.hero-lawyer-text{width:100%;max-width:190px;margin-top:12px;display:flex;flex-direction:column;gap:2px;line-height:1.65;font-size:13px}.hero-lawyer-text strong{font-family:"Noto Serif JP",serif;font-size:17px;color:var(--ink);margin-bottom:2px}.hero-first{width:100%;max-width:215px;margin-top:15px;padding:11px 15px;border:1px solid #4d8685;text-decoration:none;display:flex;flex-direction:column;line-height:1.55;text-align:center;background:#fff}.hero-first strong{color:#075f5d}.hero-first span{font-size:12px;color:var(--ink)}.hero-office{overflow:hidden;min-height:440px;background:#f2f0eb}.hero-office img{width:100%;height:100%;min-height:440px;object-fit:cover;object-position:center center;display:block}.article-lawyer-photo{width:min(250px,42vw);margin:24px 0 34px}.article-lawyer-photo img{width:100%;height:auto;display:block;border:1px solid var(--line);background:#fff}.article-office-photo{width:100%;margin:24px 0 36px}.article-office-photo img{width:100%;height:auto;display:block}.footer a[href^="tel:"]{font-size:20px;font-weight:700;text-decoration:none}
@media(max-width:1150px){.header-contact-label{display:none}.header-contact{grid-template-columns:auto auto}.header-phone{font-size:21px}.hero-grid-v06{grid-template-columns:1fr 220px}.hero-office{grid-column:1/3;height:360px;min-height:0}.hero-office img{min-height:0;height:360px}.hero-copy{padding-left:40px}.nav-row .nav{overflow-x:auto;justify-content:flex-start}.nav-row .nav a{margin-right:18px}}
@media(max-width:900px){.header-top{min-height:76px}.brand-text strong{font-size:20px}.brand-text>span{font-size:11px}.brand-mark{width:50px;height:50px}.header-contact{display:none}.nav-row{border-top:0}.nav-row .wrap{width:100%}.nav-row .nav.open{top:76px}.hero-grid-v06{grid-template-columns:1fr}.hero-copy{padding:52px 24px}.hero-lawyer{grid-row:2;padding:30px 24px;display:grid;grid-template-columns:118px 1fr;gap:18px;align-items:center}.hero-lawyer>img{width:118px;height:150px}.hero-lawyer-text{margin:0;max-width:none}.hero-first{grid-column:1/3;max-width:none;margin-top:0}.hero-office{grid-column:1;height:260px}.hero-office img{height:260px}.hero-points{gap:12px;flex-direction:column}.brand{gap:8px}}

/* v0.8 hero readability refinements */
@media (min-width:1151px){
  .hero-grid-v06{grid-template-columns:minmax(650px,1.38fr) 220px minmax(430px,.92fr)}
  .hero-copy{padding:48px 30px 44px max(52px,calc((100vw - 1500px)/2))}
  .hero-copy h1{font-size:clamp(42px,3.35vw,56px);line-height:1.42;letter-spacing:.015em;white-space:nowrap;margin:0 0 24px}
  .hero-copy p{font-size:17px;line-height:1.95;max-width:760px}
  .hero-lawyer{padding:44px 15px 20px}
  .hero-lawyer>img{width:126px;height:160px}
  .hero-lawyer-text{max-width:178px;font-size:12.5px}
  .hero-lawyer-text strong{font-size:16px}
  .hero-first{max-width:190px}
  .hero-office,.hero-office img{min-height:420px}
}
@media (min-width:901px) and (max-width:1150px){
  .hero-copy h1{font-size:clamp(38px,4.2vw,48px);line-height:1.45;letter-spacing:0}
}
@media (max-width:900px){
  .hero-copy h1{font-size:clamp(31px,8.7vw,42px);line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
}


/* v0.9 actual-screen hero reconstruction */
.hero-title{display:flex;flex-direction:column;align-items:flex-start}
.hero-title span{display:block}
@media (min-width:1151px){
  :root{--max:1280px}
  .header-inner{min-height:82px}
  .brand-text strong{font-size:29px}
  .brand-text>span{font-size:13px}
  .brand-mark{width:62px;height:62px}
  .header-phone{font-size:25px}
  .nav-row .nav{font-size:15px;min-height:54px}
  .hero-grid-v06{grid-template-columns:minmax(0,1.58fr) 178px minmax(0,.94fr)}
  .hero-copy{padding:44px 28px 40px max(34px,calc((100vw - 1320px)/2))}
  .hero-title{margin:0 0 22px!important;font-size:clamp(39px,3.05vw,51px)!important;line-height:1.38!important;letter-spacing:.005em!important;white-space:normal!important}
  .hero-title span{white-space:nowrap}
  .hero-copy p{font-size:17.5px;line-height:1.95;max-width:790px}
  .hero-points{font-size:14.5px;margin-top:26px}
  .hero-lawyer{padding:38px 10px 18px}
  .hero-lawyer>img{width:108px;height:137px;object-fit:cover;object-position:50% 16%}
  .hero-lawyer-text{max-width:154px;font-size:11.8px;line-height:1.6}
  .hero-lawyer-text strong{font-size:15px;white-space:nowrap}
  .hero-first{max-width:160px;padding:9px 10px;margin-top:13px}
  .hero-first strong{font-size:14px}
  .hero-first span{font-size:10.5px}
  .hero-office,.hero-office img{min-height:400px}
  section{padding:76px 0}
  .section-head{margin-bottom:32px}
  .section-title{font-size:clamp(27px,2.7vw,36px)}
}
@media (min-width:901px) and (max-width:1150px){
  .hero-title span{white-space:normal}
}
@media (max-width:900px){
  .hero-title{display:block}
  .hero-title span{display:inline;white-space:normal}
  .hero-title span:first-child:after{content:" ";}
}


/* v1.0 actual-device hero lock: explicit two-line headline and tighter first view */
.hero-title{
  display:block!important;
  margin:0 0 20px!important;
  line-height:1.36!important;
  letter-spacing:.002em!important;
}
.hero-title-line{display:inline!important;white-space:nowrap!important}
.hero-title-break{display:block!important}
@media (min-width:901px){
  .hero-grid-v06{grid-template-columns:minmax(0,1.66fr) 166px minmax(0,.90fr)!important}
  .hero-copy{padding-top:36px!important;padding-bottom:32px!important}
  .hero-title{font-size:clamp(34px,2.65vw,46px)!important}
  .hero-copy p{font-size:17px!important;line-height:1.9!important;margin-bottom:12px!important}
  .hero-points{margin-top:20px!important}
  .hero-lawyer{padding-top:32px!important;padding-bottom:16px!important}
  .hero-lawyer>img{width:98px!important;height:124px!important}
  .hero-lawyer-text{font-size:11.5px!important;max-width:145px!important}
  .hero-lawyer-text strong{font-size:14.5px!important}
  .hero-first{max-width:150px!important;margin-top:10px!important}
  .hero-office,.hero-office img{min-height:340px!important;height:340px!important}
  .hero + section{padding-top:68px!important}
}
@media (max-width:900px) and (min-width:681px){
  .hero-title{font-size:34px!important}
  .hero-title-line{white-space:nowrap!important}
  .hero-title-break{display:block!important}
}
@media (max-width:680px){
  .hero-title{font-size:clamp(29px,8.2vw,38px)!important}
  .hero-title-line{white-space:normal!important}
  .hero-title-break{display:none!important}
  .hero-title-line:first-child:after{content:" ";}
}


/* v1.1: cache-safe final desktop headline lock */
@media (min-width:901px){
  .hero-copy .hero-title{
    display:block!important;
    font-size:34px!important;
    line-height:1.42!important;
    letter-spacing:0!important;
  }
  .hero-copy .hero-title .hero-title-line{
    display:block!important;
    width:max-content!important;
    max-width:none!important;
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow-wrap:normal!important;
  }
  .hero-copy .hero-title .hero-title-break{
    display:none!important;
  }
}
@media (min-width:1350px){
  .hero-copy .hero-title{
    font-size:38px!important;
  }
}
@media (max-width:900px){
  .hero-copy .hero-title .hero-title-line{
    width:auto!important;
    max-width:100%!important;
  }
}


/* v1.2: first-questions section rebuilt for readability and a softer visual rhythm */
.questions-section{
  padding:76px 0 82px;
  background:#f8faf9;
  border-top:1px solid #eef2f1;
  border-bottom:1px solid #eef2f1;
}
.questions-wrap{max-width:1240px}
.questions-head{max-width:860px;margin-bottom:30px}
.questions-head .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:13px;
  letter-spacing:.08em;
  color:var(--main);
}
.questions-head .eyebrow:before{
  content:"";
  width:28px;
  height:1px;
  background:var(--main);
}
.questions-head .section-title{
  font-size:34px;
  line-height:1.55;
  margin:.35em 0 .45em;
}
.section-lead{
  max-width:780px;
  margin:0;
  color:#586568;
  font-size:16px;
  line-height:1.9;
}
.question-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.question-card{
  position:relative;
  min-height:116px;
  padding:23px 23px 20px 65px;
  background:#fff;
  border:1px solid #e2e9e7;
  border-radius:10px;
  box-shadow:0 5px 18px rgba(47,67,70,.035);
  display:flex;
  align-items:center;
}
.question-card p{
  margin:0;
  font-family:"Noto Serif JP","Yu Mincho",serif;
  font-size:17px;
  line-height:1.75;
  color:#354346;
}
.question-no{
  position:absolute;
  left:21px;
  top:22px;
  width:30px;
  height:30px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e8f2f0;
  color:#176c67;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}
.questions-note{
  margin-top:24px;
  padding:22px 26px;
  background:#f4efe6;
  border-left:3px solid #ad9270;
  color:#485355;
}
.questions-note strong{
  display:block;
  margin-bottom:5px;
  font-family:"Noto Serif JP","Yu Mincho",serif;
  font-size:18px;
  font-weight:600;
  color:#3b484a;
}
.questions-note p{margin:0;font-size:15px;line-height:1.85}
.desktop-break{display:block}
@media(max-width:1050px){
  .question-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .questions-section{padding:58px 0 62px}
  .questions-head .section-title{font-size:27px;line-height:1.55}
  .desktop-break{display:none}
  .question-cards{grid-template-columns:1fr;gap:10px}
  .question-card{min-height:auto;padding:20px 18px 20px 58px}
  .question-no{left:17px;top:19px}
  .question-card p{font-size:16.5px}
  .questions-note{padding:20px}
}


/* v1.3 legal framework */
.kml-legal-framework{
  background:#f7f9f8;
  padding:88px 0 92px;
}
.kml-legal-framework .section-inner{
  width:min(1120px, calc(100% - 48px));
  margin:0 auto;
}
.kml-legal-framework .section-kicker{
  font-size:12px;
  letter-spacing:.16em;
  color:#5f7c77;
  margin-bottom:10px;
  font-weight:600;
}
.kml-legal-framework .section-title{
  margin:0;
  font-family:var(--font-serif, "Noto Serif JP", serif);
  font-size:32px;
  line-height:1.55;
  color:#243d3a;
  font-weight:500;
}
.kml-legal-framework .section-lead{
  max-width:820px;
  margin:18px 0 34px;
  font-size:16px;
  line-height:1.95;
  color:#56615f;
}
.legal-flow{
  display:grid;
  grid-template-columns:1fr 46px 1fr 46px 1fr;
  align-items:stretch;
  gap:0;
}
.legal-flow-card{
  position:relative;
  display:block;
  min-height:260px;
  padding:28px 28px 26px;
  background:#fff;
  border:1px solid #dfe8e5;
  border-radius:12px;
  text-decoration:none;
  color:inherit;
  box-shadow:0 6px 24px rgba(46,73,68,.045);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.legal-flow-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(46,73,68,.08);
  border-color:#b7cbc6;
}
.legal-flow-no{
  display:block;
  font-size:12px;
  letter-spacing:.12em;
  color:#8aa09c;
  margin-bottom:10px;
}
.legal-flow-icon{
  display:flex;
  width:46px;
  height:46px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  background:#edf5f2;
  color:#1f6b62;
  font-size:24px;
  margin-bottom:18px;
  font-style:normal;
}
.legal-flow-card h3{
  margin:0 0 14px;
  font-family:var(--font-serif, "Noto Serif JP", serif);
  font-size:24px;
  line-height:1.45;
  color:#274b46;
  font-weight:500;
}
.legal-flow-card h3 span{
  display:block;
  font-size:14px;
  margin-top:3px;
  color:#6d7d79;
  font-family:var(--font-sans, sans-serif);
}
.legal-flow-card p{
  margin:0 0 22px;
  font-size:14.5px;
  line-height:1.85;
  color:#56615f;
}
.legal-flow-link{
  position:absolute;
  left:28px;
  bottom:24px;
  font-size:13px;
  color:#1e6a62;
  font-weight:600;
}
.legal-flow-arrow{
  align-self:center;
  justify-self:center;
  font-size:28px;
  color:#91aaa5;
}
.causation-demo{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:42px;
  margin-top:38px;
  padding:34px 36px;
  border-radius:14px;
  background:#edf4f3;
}
.causation-demo-label{
  display:inline-block;
  margin-bottom:12px;
  font-size:12px;
  letter-spacing:.08em;
  color:#1c6b61;
  font-weight:700;
}
.causation-demo h3{
  margin:0 0 14px;
  font-family:var(--font-serif, "Noto Serif JP", serif);
  font-size:23px;
  line-height:1.65;
  font-weight:500;
  color:#24433f;
}
.causation-demo p{
  margin:0;
  font-size:14.5px;
  line-height:1.9;
  color:#58625f;
}
.causation-demo-visual{
  display:grid;
  grid-template-columns:1fr 50px 1fr;
  align-items:center;
  gap:8px;
}
.causation-step{
  min-height:150px;
  padding:22px 18px;
  background:#fff;
  border-radius:10px;
  border:1px solid #d9e6e2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
}
.causation-step span{
  font-size:12px;
  color:#73827f;
  margin-bottom:7px;
}
.causation-step strong{
  font-size:16px;
  line-height:1.55;
  color:#2b4642;
}
.causation-step em{
  display:inline-block;
  align-self:center;
  margin-top:14px;
  padding:5px 12px;
  border-radius:999px;
  background:#e1efeb;
  color:#1f6a61;
  font-size:12px;
  font-style:normal;
  font-weight:700;
}
.causation-not-equal{
  text-align:center;
  font-size:36px;
  color:#526d68;
}

@media (max-width:900px){
  .kml-legal-framework{padding:64px 0 68px}
  .kml-legal-framework .section-inner{width:min(100% - 32px, 720px)}
  .kml-legal-framework .section-title{font-size:27px}
  .legal-flow{
    grid-template-columns:1fr;
    gap:14px;
  }
  .legal-flow-arrow{
    transform:rotate(90deg);
    height:24px;
    line-height:24px;
  }
  .legal-flow-card{
    min-height:0;
  }
  .legal-flow-link{
    position:static;
    display:block;
    margin-top:18px;
  }
  .causation-demo{
    grid-template-columns:1fr;
    gap:26px;
    padding:28px 24px;
  }
}
@media (max-width:560px){
  .kml-legal-framework .section-inner{width:calc(100% - 24px)}
  .causation-demo-visual{
    grid-template-columns:1fr;
  }
  .causation-not-equal{
    transform:rotate(90deg);
  }
}


/* v1.5 lower-half refinements */
.kml-investigation-flow{background:#f4f7f6;padding:82px 0 86px}
.kml-investigation-flow .section-inner,.kml-process .section-inner,.kml-issues .section-inner{width:min(1120px,calc(100% - 48px));margin:0 auto}
.kml-investigation-flow .section-title,.kml-process .section-title,.kml-issues .section-title{margin:0;font-family:var(--font-serif,"Noto Serif JP",serif);font-size:31px;line-height:1.55;font-weight:500;color:#283f3b}
.kml-investigation-flow .section-kicker,.kml-process .section-kicker,.kml-issues .section-kicker{font-size:12px;letter-spacing:.14em;color:#607d77;font-weight:600;margin-bottom:9px}
.kml-investigation-flow .section-lead,.kml-process .section-lead,.kml-issues .section-lead{max-width:840px;font-size:15.5px;line-height:1.95;color:#596562;margin:17px 0 32px}
.investigation-steps{display:grid;grid-template-columns:1fr 26px 1fr 26px 1fr 26px 1fr 26px 1fr 26px 1fr;align-items:stretch}
.investigation-step{min-width:0;text-decoration:none;color:inherit;background:#fff;border:1px solid #dce7e4;border-radius:12px;padding:22px 16px 20px;text-align:center;box-shadow:0 5px 20px rgba(38,65,59,.035)}
.investigation-step-final{background:#eef5f3;border-color:#c9ddd7}
.investigation-no{display:block;font-size:11px;color:#829792;margin-bottom:9px}
.investigation-icon{display:flex;width:38px;height:38px;margin:0 auto 12px;align-items:center;justify-content:center;border-radius:50%;background:#edf4f2;color:#22685f;font-size:18px}
.investigation-step h3{margin:0 0 10px;font-size:17px;font-family:var(--font-serif,"Noto Serif JP",serif);font-weight:500;color:#294a45}
.investigation-step p{margin:0;font-size:12.5px;line-height:1.7;color:#5f6966}
.investigation-arrow{display:flex;align-items:center;justify-content:center;color:#8fa6a1;font-size:20px}
.investigation-principle{margin-top:28px;display:flex;gap:18px;align-items:baseline;padding:17px 20px;border-left:3px solid #a78b65;background:#faf8f3;color:#59615f}
.investigation-principle strong{color:#2e4b46;white-space:nowrap;font-size:14px}
.investigation-principle span{font-size:13.5px;line-height:1.7}

.kml-process{padding:84px 0 88px;background:#fff}
.process-flow{display:grid;grid-template-columns:1fr 34px 1fr 34px 1fr 34px 1fr;align-items:stretch}
.process-card{padding:24px 22px 22px;border-radius:12px;background:#f8faf9;border:1px solid #e1e8e6}
.process-card-final{background:#eef5f3;border-color:#cbded8}
.process-no{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#244f49;color:#fff;font-size:12px;margin-bottom:14px}
.process-card h3{margin:0 0 10px;font-family:var(--font-serif,"Noto Serif JP",serif);font-size:18px;color:#28453f;font-weight:500}
.process-card p{margin:0;font-size:13.5px;line-height:1.8;color:#606a67}
.process-arrow{display:flex;justify-content:center;align-items:center;color:#91a6a1;font-size:21px}
.process-branches{margin-top:26px;display:grid;grid-template-columns:1fr 88px 1fr;align-items:stretch;gap:14px}
.process-branch{border-radius:12px;padding:22px 24px}
.process-branch span{display:block;font-size:11px;letter-spacing:.08em;margin-bottom:7px}
.process-branch strong{display:block;font-family:var(--font-serif,"Noto Serif JP",serif);font-size:20px;font-weight:500;margin-bottom:8px}
.process-branch p{margin:0;font-size:13.5px;line-height:1.75}
.process-branch-neutral{background:#f5f3ef;color:#5f5b54}
.process-branch-action{background:#eaf3f0;color:#2f5a53}
.process-branch-divider{display:flex;align-items:center;justify-content:center;font-size:12px;color:#84908d}

.kml-issues{padding:80px 0 86px;background:#f7f8f7}
.issue-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.issue-card{display:block;min-height:210px;text-decoration:none;color:inherit;background:#fff;border:1px solid #e0e7e4;border-radius:12px;padding:24px 22px 22px;position:relative;transition:transform .18s ease,box-shadow .18s ease}
.issue-card:hover{transform:translateY(-2px);box-shadow:0 9px 25px rgba(38,62,57,.07)}
.issue-tag{display:inline-block;padding:4px 9px;border-radius:999px;background:#edf4f2;color:#28655d;font-size:11px;margin-bottom:14px}
.issue-card h3{margin:0 0 12px;font-family:var(--font-serif,"Noto Serif JP",serif);font-size:21px;color:#2f4944;font-weight:500}
.issue-card p{margin:0 0 26px;font-size:13.5px;line-height:1.8;color:#606a67}
.issue-link{position:absolute;bottom:21px;left:22px;font-size:12px;color:#22665e;font-weight:600}

@media(max-width:1000px){
  .investigation-steps{grid-template-columns:1fr 24px 1fr 24px 1fr;row-gap:14px}
  .issue-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .kml-investigation-flow .section-inner,.kml-process .section-inner,.kml-issues .section-inner{width:calc(100% - 28px)}
  .investigation-steps,.process-flow{grid-template-columns:1fr}
  .investigation-arrow,.process-arrow{height:24px;transform:rotate(90deg)}
  .investigation-principle{display:block}
  .investigation-principle strong{display:block;margin-bottom:6px}
  .process-branches{grid-template-columns:1fr}
  .issue-grid{grid-template-columns:1fr}
}


/* v1.6 lower-page completion */
.kml-precedents,.kml-lawyer-office,.kml-fees{padding:84px 0 88px}
.kml-precedents{background:#f5f8f7}.kml-lawyer-office{background:#fff}.kml-fees{background:#f7f7f4}
.kml-precedents .section-inner,.kml-lawyer-office .section-inner,.kml-fees .section-inner{width:min(1120px,calc(100% - 48px));margin:0 auto}
.kml-precedents .section-kicker,.kml-lawyer-office .section-kicker,.kml-fees .section-kicker,.kml-final-cta .section-kicker{font-size:12px;letter-spacing:.14em;color:#607d77;font-weight:600;margin-bottom:9px}
.kml-precedents .section-title,.kml-lawyer-office .section-title,.kml-fees .section-title{margin:0;font-family:var(--font-serif,"Noto Serif JP",serif);font-size:31px;line-height:1.55;font-weight:500;color:#283f3b}
.kml-precedents .section-lead,.kml-fees .section-lead{max-width:840px;font-size:15.5px;line-height:1.95;color:#596562;margin:17px 0 32px}
.precedent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.precedent-card{background:#fff;border:1px solid #dfe8e5;border-radius:12px;padding:25px 24px 24px;min-height:245px;position:relative}
.precedent-meta{font-size:11px;letter-spacing:.05em;color:#5e7c76;margin-bottom:13px}
.precedent-card h3{margin:0 0 14px;font-family:var(--font-serif,"Noto Serif JP",serif);font-size:19px;line-height:1.65;color:#2d4944;font-weight:500}
.precedent-card p{margin:0 0 28px;font-size:13.5px;line-height:1.8;color:#626c69}
.precedent-card a{position:absolute;bottom:22px;left:24px;font-size:12px;color:#22665e;text-decoration:none;font-weight:600}
.section-actions{margin-top:28px}

.lawyer-office-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:24px}
.lawyer-profile-card,.office-card{border:1px solid #e0e8e5;border-radius:14px;overflow:hidden;background:#fafcfa}
.lawyer-profile-card{display:grid;grid-template-columns:190px 1fr}
.profile-photo{background:#f3f5f3;display:flex;align-items:flex-end;justify-content:center}
.profile-photo img{display:block;width:100%;height:100%;max-height:360px;object-fit:cover;object-position:center 15%}
.profile-copy{padding:30px 30px 28px}.profile-copy .section-title,.office-copy .section-title{font-size:26px}
.profile-copy h3{font-size:18px;margin:16px 0 6px;color:#2f4944}.profile-affiliation{font-size:13px!important;color:#6c7774!important;margin:0 0 16px!important}
.profile-copy p,.office-copy p{font-size:13.5px;line-height:1.85;color:#5f6966}.text-link{display:inline-block;margin-top:8px;color:#22665e;text-decoration:none;font-size:12.5px;font-weight:600}
.office-card img{display:block;width:100%;height:265px;object-fit:cover;object-position:center}.office-copy{padding:24px 26px 26px}

.fee-steps{display:grid;grid-template-columns:1fr 36px 1fr 36px 1fr;align-items:stretch;margin-top:30px}
.fee-step{background:#fff;border:1px solid #e1e6e3;border-radius:12px;padding:25px 24px 24px}.fee-step-no{display:block;font-size:10px;letter-spacing:.08em;color:#77918b;margin-bottom:10px}
.fee-step h3{margin:0 0 8px;font-family:var(--font-serif,"Noto Serif JP",serif);font-size:18px;font-weight:500;color:#2d4843}.fee-step strong{display:block;font-size:19px;color:#244f49;margin-bottom:9px}
.fee-step p{margin:0;font-size:13px;line-height:1.75;color:#626c69}.fee-step-arrow{display:flex;align-items:center;justify-content:center;color:#93aaa5;font-size:20px}
.fee-note{margin-top:22px;padding:14px 18px;border-left:3px solid #ad916d;background:#fbf8f3;font-size:13px;color:#67615a}

.kml-final-cta{background:#254a45;color:#fff;padding:58px 0 60px}.final-cta-inner{width:min(1120px,calc(100% - 48px));margin:0 auto;display:grid;grid-template-columns:1.25fr .75fr;gap:64px;align-items:center}
.kml-final-cta .section-kicker{color:#b9d0ca}.final-cta-copy h2{margin:0 0 15px;font-family:var(--font-serif,"Noto Serif JP",serif);font-size:29px;line-height:1.6;font-weight:500}
.final-cta-copy p{margin:0;max-width:700px;font-size:14px;line-height:1.9;color:#e1ece9}.final-cta-actions{display:flex;flex-direction:column;align-items:stretch}
.cta-phone{display:block;text-decoration:none;color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:10px;padding:15px 18px;margin-bottom:12px}
.cta-phone span{display:block;font-size:11px;margin-bottom:4px;color:#cce0db}.cta-phone strong{font-size:23px;letter-spacing:.03em}
.cta-form{background:#fff!important;color:#255149!important;border-color:#fff!important;text-align:center}.final-cta-actions small{display:block;margin-top:9px;text-align:center;color:#c8d9d5;font-size:11px}

@media(max-width:900px){
 .precedent-grid{grid-template-columns:1fr}.precedent-card{min-height:0}.precedent-card a{position:static;display:inline-block;margin-top:12px}
 .lawyer-office-grid{grid-template-columns:1fr}.fee-steps{grid-template-columns:1fr}.fee-step-arrow{height:26px;transform:rotate(90deg)}
 .final-cta-inner{grid-template-columns:1fr;gap:28px}
}
@media(max-width:620px){
 .kml-precedents .section-inner,.kml-lawyer-office .section-inner,.kml-fees .section-inner,.final-cta-inner{width:calc(100% - 28px)}
 .lawyer-profile-card{grid-template-columns:120px 1fr}.profile-copy{padding:22px 20px}.profile-photo img{max-height:300px}.final-cta-copy h2{font-size:24px}
}
