.sj-calc{--ink:#343d35;--muted:#687368;--green:#526c54;--deep:#38533f;--line:#e0e4d9;--paper:#f7f8f3;--white:#fff;--serif:'Noto Serif JP','Yu Mincho','Hiragino Mincho ProN',serif;--sans:'Zen Maru Gothic','Noto Sans JP','Hiragino Kaku Gothic ProN',Meiryo,sans-serif;color:var(--ink);font:400 15px/1.8 var(--sans);background:var(--paper);letter-spacing:.025em;padding:0 0 65px;isolation:isolate}.sj-calc *{box-sizing:border-box}.sj-calc [hidden]{display:none!important}.sj-calc button,.sj-calc select,.sj-calc input{font:inherit;color:inherit}.sj-calc button{cursor:pointer}.sj-calc a{color:var(--green);text-underline-offset:4px}.sj-calc :focus-visible{outline:3px solid #91a987;outline-offset:3px}.sj-wrap{max-width:1130px;margin:auto;padding:0 28px}.sj-crumb{font-size:12px;color:var(--muted);padding:24px 0}.sj-crumb span{margin:0 8px}.sj-hero{display:flex;align-items:center;justify-content:space-between;padding:28px 0 42px;gap:20px}.sj-kicker{font:600 11px/1.5 var(--sans);letter-spacing:.18em;color:var(--green);margin:0 0 15px}.sj-kicker span{display:inline-block;width:22px;height:1px;background:var(--green);vertical-align:middle;margin-right:9px}.sj-hero h1{font:500 clamp(32px,4.6vw,52px)/1.55 var(--serif);letter-spacing:.07em;margin:0 0 18px;color:var(--deep)}.sj-intro{margin:0;color:var(--muted);font-size:15px}.sj-version{font-size:11px;color:#5d6e59;margin:22px 0 0}.sj-version span{margin-left:10px;color:var(--muted)}.sj-hero-art{width:26%;min-width:160px;max-width:250px}.sj-hero-art svg{width:100%;height:auto}.sj-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.sj-tabs button{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;text-align:left;display:grid;gap:3px;position:relative;transition:background .2s,border .2s}.sj-tabs button[aria-pressed=true]{background:var(--deep);color:#fff;border-color:var(--deep)}.sj-tabs button small{font-size:10px;letter-spacing:.09em;opacity:.8}.sj-tabs strong{font:600 21px/1.5 var(--serif)}.sj-tabs button span{font-size:12px;opacity:.9}.sj-tabs button[aria-pressed=true]:after{content:'✓';position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:17px}.sj-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:24px;align-items:start}.sj-inputs{display:grid;gap:18px;min-width:0}.sj-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px 28px}.sj-section-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}.sj-section-head>span{font:400 23px var(--serif);color:#81917a;border-right:1px solid var(--line);padding-right:14px}.sj-section-head small{display:block;font-size:10px;letter-spacing:.14em;color:var(--muted);line-height:1.5}.sj-section-head h2,.sj-information h2{font:600 21px/1.6 var(--serif);margin:2px 0 0}.sj-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.sj-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;font-weight:600}.sj-field small{font-weight:400;color:var(--muted);font-size:11px}.sj-calc select,.sj-calc input[type=number],.sj-calc input[type=month]{width:100%;min-width:0;min-height:44px;border:1px solid #cfd7ca;border-radius:7px;background:#fcfdfb;padding:8px 10px;font-size:14px}.sj-calc input[type=checkbox]{accent-color:var(--deep);width:19px;height:19px;flex:none;margin:2px 0}.sj-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;margin:10px 0}.sj-note{font-size:12px;color:var(--muted);margin:10px 0;line-height:1.8}.sj-visit{border:1px solid var(--line);border-radius:9px;padding:15px;margin-bottom:12px;background:#fafbf8}.sj-visit-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:12px;color:var(--green);font-weight:600}.sj-text-btn{border:0;background:none;padding:6px 0;color:var(--green)!important;font-size:13px!important;text-decoration:underline;text-underline-offset:3px}.sj-add-btn{width:100%;background:#fff;border:1px dashed #9ba992;border-radius:8px;padding:12px;color:var(--deep)!important;font-weight:600}.sj-group{border-bottom:1px solid var(--line);padding:11px 0}.sj-group:first-child{border-top:1px solid var(--line)}.sj-group summary,.sj-breakdown summary,.sj-information summary{cursor:pointer;font-weight:600;font-size:14px;padding:6px 0;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px}.sj-group summary:after,.sj-breakdown summary:after,.sj-information summary:after{content:'＋';font-weight:400;color:var(--green)}.sj-group[open] summary:after,.sj-breakdown[open] summary:after,.sj-information details[open] summary:after{content:'−'}.sj-group-body{display:grid;gap:11px;padding:12px 0 6px}.sj-add-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,42%);gap:10px;align-items:center}.sj-add-row label{font-size:13px;font-weight:500}.sj-add-row small{display:block;color:var(--muted);font-size:11px;font-weight:400}.sj-result{position:sticky;top:22px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.sj-result-top{padding:25px 25px 22px;background:var(--deep);color:#fff}.sj-result-top .sj-kicker{color:#d8e3d3;font-size:10px}.sj-result-top h2{font-size:15px;font-weight:500;margin:0}.sj-total{margin:7px 0;display:flex;align-items:baseline;flex-wrap:wrap;gap:7px}.sj-total>span{font:500 clamp(37px,4.5vw,55px)/1.25 var(--serif);letter-spacing:-.04em;font-variant-numeric:tabular-nums}.sj-total small{font-size:13px}.sj-result-note{font-size:11px;color:#e1e8dc;margin:8px 0 0}.sj-result-body{padding:20px 23px}.sj-result-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:7px 0}.sj-result-row strong{font-variant-numeric:tabular-nums;white-space:nowrap}.sj-breakdown{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.sj-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eef0ea;padding:9px 0;font-size:12px;line-height:1.6}.sj-line span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}.sj-warnings{font-size:12px;color:#76522d;margin:12px 0;line-height:1.7}.sj-warnings p{margin:6px 0}.sj-print{width:100%;border:1px solid var(--green);background:#fff;color:var(--deep)!important;padding:11px 13px;border-radius:8px;display:flex;justify-content:space-between;gap:10px;font-size:13px!important;margin-top:14px}.sj-print:disabled{opacity:.45;cursor:not-allowed}.sj-information{margin-top:36px;padding:27px 0;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.sj-information h2{color:var(--ink)}.sj-information details{border-top:1px solid var(--line);padding:10px 0}.sj-contact{border-top:1px solid var(--line);margin-top:12px;padding-top:18px;display:flex;justify-content:space-between}.sj-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin:12px 0}.sj-cal-head{text-align:center;font-size:11px;color:var(--muted)}.sj-day{border:1px solid var(--line);border-radius:6px;min-height:40px;background:#fff;padding:4px;font-size:13px!important}.sj-day[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.sj-med-day{display:grid;grid-template-columns:65px 1fr 1fr;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}.sj-med-day select{font-size:12px}.sj-span{grid-column:1/-1}.sj-count{font-size:11px;color:var(--muted)}@media(max-width:760px){.sj-wrap{padding:0 16px}.sj-hero{padding:18px 0 26px}.sj-hero-art{display:none}.sj-tabs{gap:6px}.sj-tabs button{padding:12px 9px;border-radius:8px}.sj-tabs button small{font-size:8px;letter-spacing:0}.sj-tabs strong{font-size:18px}.sj-tabs button[aria-pressed=true]:after{display:none}.sj-layout{grid-template-columns:1fr;gap:18px}.sj-result{position:static}.sj-panel{padding:20px 16px}.sj-fields{gap:12px}.sj-add-row{grid-template-columns:minmax(0,1fr) minmax(104px,43%)}.sj-intro br{display:none}.sj-version span{display:block;margin:3px 0}.sj-total>span{font-size:48px}}@media(max-width:380px){.sj-fields{grid-template-columns:1fr}.sj-med-day{grid-template-columns:1fr 1fr}.sj-med-day>span{grid-column:1/-1}}@media print{.sj-standalone-head{display:none!important}.sj-calc{background:#fff;padding:0;font-size:12px}.sj-wrap{padding:0}.sj-crumb,.sj-hero-art,.sj-tabs,.sj-print,.sj-information,.sj-text-btn,.sj-add-btn,.sj-calendar{display:none!important}.sj-layout{display:block}.sj-result{position:static;margin:10px 0;break-inside:avoid}.sj-panel{padding:12px;break-inside:avoid}.sj-hero{padding:0}.sj-hero h1{font-size:25px}.sj-result-top{color:#000;background:#fff;border-bottom:1px solid #ddd}.sj-result-top .sj-kicker,.sj-result-note{color:#444}.sj-inputs{gap:8px}.sj-calc select{min-height:25px;padding:2px}.sj-section-head{margin-bottom:8px}}

/* =========================================================
   KIYOTOKI 2026 — existing Japandi theme integration
   All overrides are confined to the calculator page.
   Background: inherit the actual theme's body background.
========================================================= */
.sj-calc {
  --ink: var(--japandi-text, #4a4641);
  --muted: #666e65;
  --green: #53655b;
  --deep: #34443b;
  --line: #dedfd5;
  --paper: var(--japandi-bg, #f9f7f2);
  --white: #fffefa;
  --serif: var(--font-serif, 'Noto Serif JP', 'Yu Mincho', serif);
  color: var(--ink);
  background: transparent;
  font-size: 15px;
  letter-spacing: .025em;
  padding-bottom: clamp(60px, 8vw, 100px);
}
.sj-calc .sj-wrap { width: min(1180px, calc(100% - 80px)); max-width: none; padding: 0; }
.sj-calc .sj-crumb { padding: 26px 70px 22px 0; font-size: 12px; line-height: 1.8; }
.sj-calc .sj-crumb a:hover { text-decoration: underline; }
.sj-calc .sj-hero { padding: clamp(30px, 4vw, 58px) 0 clamp(34px, 4vw, 54px); gap: clamp(20px, 5vw, 70px); }
.sj-calc .sj-hero > div:first-child { min-width: 0; }
.sj-calc .sj-hero h1 { font-weight: 300; font-size: clamp(34px, 4.2vw, 55px); line-height: 1.65; letter-spacing: .055em; margin-bottom: 20px; }
.sj-calc .sj-kicker { font-size: 12px; font-weight: 500; letter-spacing: .19em; }
.sj-calc .sj-intro { font-size: 15px; line-height: 2.05; }
.sj-calc .sj-version { font-size: 12px; line-height: 1.8; margin-top: 19px; }
.sj-calc .sj-hero-art { flex: 0 0 min(29%, 300px); width: min(29%, 300px); min-width: 0; max-width: none; padding: 0 8px; }
.sj-calc .sj-hero-art img { display: block; width: 100%; height: auto; object-fit: contain; margin: auto; }
.sj-calc .sj-tabs { gap: 13px; margin-bottom: 22px; }
.sj-calc .sj-tabs button { background: rgba(255,254,250,.94); border-color: var(--line); border-radius: 10px; padding: 19px 23px; min-height: 112px; }
.sj-calc .sj-tabs button[aria-pressed=true] { background: var(--deep); border-color: var(--deep); color: #fffefa; }
.sj-calc .sj-tabs button small { font-size: 11px; letter-spacing: .105em; line-height: 1.6; opacity: 1; color: #69746c; }
.sj-calc .sj-tabs button[aria-pressed=true] small { color: #e4e9df; }
.sj-calc .sj-tabs strong { font-size: 23px; font-weight: 400; line-height: 1.55; }
.sj-calc .sj-tabs button span { font-size: 13px; }
.sj-calc .sj-tabs button[aria-pressed=true]::after { right: 16px; }
.sj-calc .sj-layout { gap: 24px; }
.sj-calc .sj-inputs { gap: 18px; }
.sj-calc .sj-panel, .sj-calc .sj-result { background: rgba(255,254,250,.96); border-color: var(--line); border-radius: 10px; }
.sj-calc .sj-panel { padding: 28px; }
.sj-calc .sj-section-head { gap: 15px; margin-bottom: 23px; }
.sj-calc .sj-section-head > span { color: #7a8777; font-size: 25px; font-weight: 300; }
.sj-calc .sj-section-head small { font-size: 11px; letter-spacing: .15em; }
.sj-calc .sj-section-head h2, .sj-calc .sj-information h2 { font-size: 23px; font-weight: 400; color: var(--deep); }
.sj-calc .sj-field, .sj-calc .sj-add-row label { font-size: 14px; font-weight: 500; line-height: 1.65; }
.sj-calc .sj-field small, .sj-calc .sj-add-row small, .sj-calc .sj-count { font-size: 12px; line-height: 1.7; }
.sj-calc select, .sj-calc input[type=number], .sj-calc input[type=month] { font-size: 16px; min-height: 48px; background: #faf9f5; border-color: #cbd1c5; border-radius: 6px; }
.sj-calc select { padding-right: 25px; text-overflow: ellipsis; }
.sj-calc .sj-visit { background: #f9f8f3; border-color: var(--line); border-radius: 7px; }
.sj-calc .sj-visit-head { font-size: 13px; }
.sj-calc .sj-check { font-size: 14px; line-height: 1.7; }
.sj-calc input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; }
.sj-calc .sj-note { font-size: 13px; line-height: 1.85; }
.sj-calc .sj-group { padding: 12px 0; }
.sj-calc .sj-group summary, .sj-calc .sj-breakdown summary, .sj-calc .sj-information summary { font-size: 15px; min-height: 44px; font-weight: 500; }
.sj-calc summary::-webkit-details-marker { display: none; }
.sj-calc .sj-group-body { gap: 13px; }
.sj-calc .sj-add-row { gap: 12px; }
.sj-calc .sj-text-btn { min-height: 36px; }
.sj-calc .sj-add-btn { min-height: 46px; border-radius: 6px; background: transparent; font-weight: 500; }
.sj-calc .sj-result { top: 24px; }
.sj-calc .sj-result-top { padding: 27px 26px 24px; background: var(--deep); }
.sj-calc .sj-result-top .sj-kicker { color: #dce3d8; font-size: 11px; }
.sj-calc .sj-result-top h2 { font-size: 15px; color: #fffefa; }
.sj-calc .sj-total { margin: 11px 0; gap: 8px; }
.sj-calc .sj-total > span { font-weight: 400; font-size: clamp(39px, 4.2vw, 59px); }
.sj-calc .sj-result-note { font-size: 12px; }
.sj-calc .sj-result-body { padding: 23px 25px; }
.sj-calc .sj-result-row { font-size: 14px; line-height: 1.65; padding: 8px 0; }
.sj-calc .sj-line { font-size: 13px; border-color: #e8e8df; }
.sj-calc .sj-line span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sj-calc .sj-warnings { font-size: 13px; }
.sj-calc .sj-warnings:empty { display: none; }
.sj-calc .sj-print { border-radius: 6px; min-height: 46px; background: transparent; font-size: 14px!important; }
.sj-calc .sj-information { font-size: 14px; line-height: 1.9; margin-top: 42px; }
.sj-calc .sj-information a { overflow-wrap: anywhere; text-decoration: underline; }
.sj-calc .sj-day { min-height: 44px; background: #fffefa; }
.sj-calc .sj-day[aria-pressed=true] { background: var(--green); }
.sj-calc .sj-cal-head { font-size: 12px; }
.sj-calc .sj-med-day { grid-template-columns: 65px minmax(0,1fr) minmax(0,1fr); }
.sj-calc .sj-med-day select { font-size: 16px; }
.sj-calc .sj-mobile-result-link { display: none; }
.sj-calc #sj-result { scroll-margin-top: 18px; }
.sj-calc :focus-visible { outline: 2px solid #6b806c; outline-offset: 3px; }
@media (hover:hover) {
  .sj-calc .sj-tabs button:not([aria-pressed=true]):hover, .sj-calc .sj-add-btn:hover, .sj-calc .sj-print:not(:disabled):hover { background: #eeefe7; border-color: #9ca694; }
}
@media (min-width: 761px) {
  .sj-calc .sj-result { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b1baac transparent; }
}
@media (max-width: 760px) {
  .sj-calc .sj-wrap { width: calc(100% - 36px); }
  .sj-calc .sj-crumb { padding-top: 20px; padding-bottom: 16px; }
  .sj-calc .sj-hero { position: relative; display: block; padding: 16px 0 30px; }
  .sj-calc .sj-hero-art { display: block; position: absolute; width: 82px; top: 7px; right: 0; padding: 0; }
  .sj-calc .sj-hero .sj-kicker { min-height: 60px; max-width: calc(100% - 92px); display: flex; align-items: center; gap: 8px; font-size: 10px; line-height: 1.65; margin-bottom: 6px; }
  .sj-calc .sj-hero .sj-kicker span { flex: 0 0 15px; margin: 0; }
  .sj-calc .sj-hero h1 { font-size: clamp(27px, 6.9vw, 38px); letter-spacing: .035em; line-height: 1.65; margin-bottom: 14px; }
  .sj-calc .sj-intro { font-size: 14px; line-height: 1.9; }
  .sj-calc .sj-version { margin-top: 14px; }
  .sj-calc .sj-tabs { gap: 7px; margin-bottom: 12px; }
  .sj-calc .sj-tabs button { padding: 12px 8px; min-height: 99px; border-radius: 7px; }
  .sj-calc .sj-tabs button small { font-size: 9px; letter-spacing: .015em; overflow-wrap: anywhere; }
  .sj-calc .sj-tabs strong { font-size: clamp(16px, 4.7vw, 19px); }
  .sj-calc .sj-tabs button span { font-size: 12px; }
  .sj-calc .sj-mobile-result-link { display: flex; min-height: 44px; justify-content: flex-end; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
  .sj-calc .sj-layout { gap: 18px; }
  .sj-calc .sj-panel { padding: 22px 16px; }
  .sj-calc .sj-section-head { gap: 11px; margin-bottom: 18px; }
  .sj-calc .sj-section-head h2 { font-size: 21px; }
  .sj-calc .sj-fields { grid-template-columns: 1fr; }
  .sj-calc .sj-add-row { grid-template-columns: minmax(0,1fr) minmax(112px, 43%); gap: 9px; }
  .sj-calc .sj-result { position: static; max-height: none; }
  .sj-calc .sj-result-top { padding: 24px 21px; }
  .sj-calc .sj-result-body { padding: 20px; }
  .sj-calc .sj-total > span { font-size: 51px; }
  .sj-calc .sj-med-day { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sj-calc .sj-med-day > span { grid-column: 1/-1; }
  .sj-calc .sj-contact { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sj-calc .sj-tabs button { transition: none; } }
@media print {
  .sj-calc { background: #fff!important; padding: 0; }
  .sj-calc .sj-wrap { width: 100%; }
  .sj-calc .sj-mobile-result-link, .sj-calc .sj-hero-art { display: none!important; }
  .sj-calc .sj-hero { padding: 0; }
  .sj-calc .sj-hero h1 { font-size: 25px; }
  .sj-calc .sj-hero .sj-kicker { min-height: 0; }
  .sj-calc .sj-result { max-height: none; overflow: visible; position: static; }
  .sj-calc .sj-result-top { color: #222; background: #fff; }
  .sj-calc .sj-result-top h2, .sj-calc .sj-result-top .sj-kicker, .sj-calc .sj-result-note { color: #222; }
  .sj-calc .sj-panel { padding: 12px; }
  .sj-calc select { min-height: 25px; padding: 2px; }
}
@media (max-width: 760px) {
  .sj-calc .sj-tabs button { grid-template-rows: minmax(29px,auto) auto auto; align-content: start; }
  .sj-calc .sj-tabs button small { align-self: start; }
  .sj-calc .sj-intro br { display: initial; }
}


/* Hero illustration caption — match the homepage's quiet serif typography. */
.sj-calc .sj-hero-art-caption {
  margin: 0;
  color: #657369;
  font-family: var(--font-serif, var(--serif));
  font-size: 11px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .17em;
  text-align: center;
}
@media (max-width: 760px) {
  .sj-calc .sj-hero-art-caption { display: none; }
}
