:root {
  --navy: #12394b;
  --deep: #0c2b3c;
  --ink: #223746;
  --muted: #5e6f7c;
  --line: #dce4e9;
  --orange: #b84d21;
  --orange-dark: #943711;
  --wash: #f4f7f9;
  --pale: #fbf5ef;
  --sans: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --display: var(--sans);
  --utility: var(--sans);
}
:root:lang(ja) { --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-synthesis: none; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.45; letter-spacing: .01em; color: var(--navy); }
h1 { font-size: clamp(28px, 3vw, 40px); }
h2 { font-size: clamp(24px, 2.4vw, 32px); }
h3 { font-size: 20px; }
strong, b { font-weight: 600; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: normal; }
input::placeholder, textarea::placeholder { color: #71818c; opacity: 1; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 3px solid #cd713b; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: clamp(48px, 6.2vw, 86px); }
.wash { background: var(--wash); }
.skip { position: absolute; top: -80px; left: 15px; z-index: 20; padding: 5px 16px; background: #fff; }
.skip:focus { top: 5px; }
.site-header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid rgba(19,57,75,.1); }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--navy); line-height: 1.35; }
.brand:hover { color: var(--navy); }
.topbar > .brand { min-width: 0; max-width: min(36%, 360px); }
.brand-mark { display: inline-block; flex: 0 0 37px; width: 37px; height: 37px; position: relative; }
.brand-mark i, .brand-mark b, .brand-mark::after { position: absolute; display: block; }
.brand-mark i { width: 18px; height: 26px; bottom: 9px; left: 0; background: var(--navy); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.brand-mark b { width: 14px; height: 19px; left: 21px; bottom: 9px; background: #698e97; clip-path: polygon(0 0,100% 100%,0 100%); }
.brand-mark::after { content: ""; height: 6px; width: 36px; bottom: 0; left: 0; background: var(--orange); clip-path: polygon(0 0,100% 0,81% 100%,16% 100%); }
.brand-type { display: grid; min-width: 0; gap: 5px; }
.brand-type strong { font-size: 18px; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }
.brand-type small { color: var(--muted); font-size: 12px; letter-spacing: .02em; font-weight: 400; }
.brand-type small { white-space: normal; }
.navigation { margin-left: auto; display: flex; align-self: stretch; align-items: stretch; gap: clamp(16px, 2.2vw, 32px); }
.navigation a { position: relative; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; line-height: 1.5; }
.navigation a[aria-current]::after { position: absolute; content: ""; bottom: 14px; left: 1px; width: 18px; height: 2px; background: var(--orange); }
.nav-actions, .actions, .choice-row { display: flex; align-items: center; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 14px; padding: 11px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 1.5; transition: background .18s, box-shadow .18s; }
.button span, .text-link span { font: inherit; }
.primary { background: var(--orange); color: #fff; }
.primary:hover { color: #fff; background: var(--orange-dark); }
.navy { background: var(--navy); color: #fff; }
.navy:hover { background: var(--deep); color: #fff; }
.outline-light { border-color: rgba(255,255,255,.66); color: #fff; background: rgba(16,42,51,.12); }
.outline-light:hover { background: #fff; color: var(--deep); }
.top-cta { min-height: 44px; padding: 10px 16px; gap: 12px; font-size: 14px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 3px; background: #fff; padding: 10px; }
.menu-toggle i { width: 100%; height: 2px; background: var(--navy); display: block; margin: 3px auto; }
.hero { min-height: clamp(420px, 35.7vw, 540px); position: relative; isolation: isolate; display: grid; align-items: center; background: var(--deep); color: #fff; }
.hero-visual { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero-image { height: 100%; object-fit: cover; object-position: 63% 43%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(11,36,49,.95) 1%,rgba(16,44,54,.85) 28%,rgba(17,43,51,.57) 49%,rgba(16,40,49,.13) 72%,rgba(11,30,37,.06)); }
.hero-visual figcaption { position: absolute; right: 10px; bottom: 8px; z-index: 1; padding: 2px 6px; border-radius: 3px; background: rgba(11,30,37,.76); color: #fff; font-size: 12px; line-height: 1.5; }
.hero-inner { padding-block: 56px 60px; }
.hero-copy { max-width: 520px; }
.hero-kicker { display: flex; gap: 11px; align-items: center; color: #f1e8dd; font-size: 14px; font-weight: 400; letter-spacing: .02em; }
.hero-kicker i { display: inline-block; width: 29px; height: 2px; background: #e09c6a; }
.hero h1 { color: #fff; font-family: var(--display); font-size: clamp(36px, 3.7vw, 52px); line-height: 1.5; letter-spacing: .015em; margin: 16px 0 20px; }
.hero-copy > p { max-width: 455px; font-weight: 400; color: #f2f4f4; line-height: 1.9; }
.hero .actions { margin-top: 27px; flex-wrap: wrap; }
.news-ribbon { border-bottom: 1px solid var(--line); }
.news-ribbon .wrap { display: flex; align-items: center; gap: 19px; padding-block: 15px; }
.ribbon-label { font-weight: 600; color: var(--navy); font-size: 14px; padding-right: 17px; border-right: 1px solid var(--line); }
time { font-family: var(--utility); font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.news-ribbon a { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 14px; }
.news-ribbon a span { color: var(--orange); font-size: 16px; }
.eyebrow, .product-label, .flow-list li > span { font-weight: 400; font-size: 14px; letter-spacing: .02em; color: var(--orange); line-height: 1.5; }
.section-title::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 13px; border-radius: 2px; background: var(--orange); }
.section-title .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.section-title .eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); }
.section-title h2, .page-heading h1, .cta-band h2 { font-family: var(--display); letter-spacing: .01em; }
.section-lead, .spread { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-lead { margin-bottom: 26px; }
.section-lead > p { color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(12,43,60,.035); transition: border-color .2s, box-shadow .2s; }
.scene-photo { min-width: 0; margin: 0; }
.scene-photo figcaption { position: relative; padding: 3px 8px; color: var(--muted); background: #fff; text-align: right; font-size: 12px; line-height: 1.5; }
.card-photo { overflow: hidden; background: var(--wash); }
.card-photo img { aspect-ratio: 16/8.8; object-fit: cover; transition: transform .28s ease; }
.product-card:hover { color: var(--ink); border-color: #97adb2; box-shadow: 0 8px 24px rgba(12,43,60,.09); }
.product-card:hover img { transform: scale(1.025); }
.card-text { padding: 20px 23px 22px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.card-text p { flex: 1; }
.product-label { color: #825432; }
.card-text h3 { margin: 4px 0 9px; font-size: clamp(18px, 1.65vw, 24px); }
.card-text p, .split-intro p, .flow-list p, .company-block p, .service-detail p, .form-aside p, .prose p { color: var(--muted); }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--navy); font-size: 15px; font-weight: 600; }
.text-link span { color: var(--orange); }
.card-text .text-link, .company-block .text-link { margin-top: 18px; }
.split-intro, .company-block { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8%; }
.split-intro > div > p, .company-block > div > p { margin-top: 16px; }
.feature-list > div { padding-block: 18px; border-top: 1px solid var(--line); }
.feature-list > div:last-child { border-bottom: 1px solid var(--line); }
.feature-list h3 { margin-bottom: 5px; font-size: 19px; }
.flow-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; margin-top: 30px; gap: 24px; }
.flow-list li { padding-top: 16px; border-top: 2px solid #b9c9ca; }
.flow-list h3 { margin: 7px 0; font-size: 18px; }
.facts { display: grid; grid-template-columns: minmax(74px, auto) 1fr; margin: 18px 0; }
.facts dt, .facts dd { border-top: 1px solid var(--line); padding: 12px 13px; }
.facts dt { font-weight: 600; color: var(--navy); }
.facts dd { color: var(--muted); }
.facts dd a, .checkline a, .prose a:not(.button):not(.text-link) { text-decoration: underline; text-underline-offset: .2em; }
.news-list { border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 115px 1fr auto; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-list a > span { color: var(--orange); }
.news-list > p { padding: 1em; }
.cta-band { background: var(--deep); color: #e6f0ef; padding: clamp(35px,5vw,68px) 0; }
.cta-band .eyebrow { color: #f1ac80; }
.cta-band h2 { color: #fff; margin: 6px 0 8px; }
.cta-band .spread { align-items: center; }
.site-footer { background: #f9faf9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-block: 44px; }
.footer-grid nav { display: grid; align-content: start; gap: 10px; font-size: 14px; }
.footer-note, .footer-bottom { color: var(--muted); font-size: 14px; }
.footer-bottom small { font: inherit; }
.footer-note { margin-top: 13px; }
.footer-bottom { padding: 15px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.page-heading { background: var(--wash); border-bottom: 1px solid var(--line); }
.page-heading .wrap { padding-block: 18px 40px; }
.crumb { display: flex; gap: 13px; margin-bottom: 25px; align-items: center; color: var(--muted); font-size: 14px; }
.page-heading .eyebrow { margin-bottom: 6px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; }
.jump-links a { display: inline-block; border: 1px solid var(--line); padding: 7px 14px; border-radius: 3px; font-weight: 600; font-size: 14px; }
.service-detail { display: grid; grid-template-columns: .9fr 1.25fr; gap: 6%; padding-block: 34px; align-items: center; border-bottom: 1px solid var(--line); }
.service-detail img { border-radius: 10px; }
.service-detail h2, .result h2 { margin: 6px 0 12px; }
.info, .aside-note { padding: 20px 22px; background: var(--wash); border-left: 3px solid #6c8c93; }
.info { margin-top: 30px; }
.aside-note { margin-top: 28px; }
.aside-note p { margin: 5px 0 12px; font-size: 14px; }
.prose { max-width: 780px; }
.about-visual { margin-bottom: 22px; }
.about-photo { aspect-ratio: 3 / 1; object-fit: cover; object-position: 65% 45%; border-radius: 10px; }
.prose h2:not(:first-child) { margin-top: 32px; }
.prose p, .prose .button, .prose .text-link { margin-top: 15px; }
.prose .receipt { font: 600 clamp(22px,3.5vw,36px) var(--utility); color: var(--navy); letter-spacing: .02em; }
.form-layout { display: grid; grid-template-columns: minmax(210px,.77fr) minmax(0,1.4fr); gap: 7%; align-items: start; }
.form-aside h2, .form-panel > h2, .form-panel > h1 { margin-bottom: 14px; }
.form-panel { padding: clamp(20px,3vw,38px); border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 3px 16px rgba(12,43,60,.025); }
.form-stack { display: grid; gap: 22px; }
.form-stack label, .toolbar label, legend { font-weight: 600; font-size: 14px; line-height: 1.6; color: var(--navy); }
.form-stack input:not([type=checkbox]):not([type=radio]), .form-stack textarea, .form-stack select, .toolbar input, .toolbar select {
  width: 100%; display: block; margin-top: 8px; border: 1px solid #b7c5ce; border-radius: 8px; background: #fff; padding: 11px 13px; min-height: 48px; font-weight: 400; font-size: 16px; line-height: 1.5;
}
.form-stack textarea { resize: vertical; }
.form-stack em { font-size: 12px; font-weight: 400; color: var(--orange); font-style: normal; margin-left: 8px; }
.form-stack .button { justify-self: start; }
.form-stack fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-stack legend { padding: 0; margin: 0 0 8px; }
.choice-row { flex-wrap: wrap; }
.choice-row label, .form-stack .checkline { display: inline-flex; align-items: center; gap: 9px; font-weight: 400; font-size: 15px; }
.choice-row input, .checkline input { width: 17px; height: 17px; accent-color: var(--navy); flex: 0 0 auto; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-hint, .list-meta { margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.result { background: var(--wash); border-top: 3px solid #72949c; padding: 22px; margin-top: 25px; }
.result h2 { font-size: 19px; }
.result-value { font: 600 clamp(27px, 3vw, 40px)/1.4 var(--utility); color: var(--navy); font-variant-numeric: tabular-nums; }
.result-value small { font: 400 16px var(--sans); }
.result .facts { font-size: 14px; }
.alert, .success { margin: 0 0 22px; padding: 14px 18px; border-radius: 3px; }
.alert { color: #7b2e1b; background: #fcf0e9; border-left: 3px solid #ba562e; }
.alert ul { padding-left: 21px; }
.success { color: #255448; background: #e8f4ed; border-left: 3px solid #507f6b; }
.preline { white-space: pre-line; }
.admin-body { background: var(--wash); }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); }
.admin-header > div, .admin-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-header > div { min-height: 88px; flex-wrap: wrap; padding-block: 18px; }
.admin-header .brand { min-width: 0; }
.admin-tools { font-size: 14px; line-height: 1.5; }
.admin-tools form { margin: 0; }
.admin-tools > a { padding-block: 10px; }
.quiet { background: transparent; border: 0; color: var(--muted); padding: 8px 4px; min-height: 44px; }
.quiet:hover { color: var(--navy); }
.language-control { display: flex; align-items: center; gap: 7px; }
.language-control label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.language-control select { padding: 9px 25px 9px 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 14px; color: var(--navy); }
.language-control .quiet { font-size: 14px; color: var(--navy); padding-inline: 10px; }
.login-wrap > .language-control { justify-content: flex-end; margin-bottom: 16px; }
.admin-nav { background: #fff; border-bottom: 1px solid var(--line); }
.admin-nav nav { display: flex; flex-wrap: wrap; gap: 28px; }
.admin-nav a { display: flex; align-items: center; min-height: 56px; padding: 14px 0; font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--muted); }
.admin-nav a:hover { color: var(--navy); }
.admin-nav a[aria-current] { color: var(--navy); box-shadow: inset 0 -3px var(--orange); }
.admin-main { padding-block: 36px 72px; }
.admin-main h1, .login-wrap h1 { font-size: 28px; }
.admin-main .section-lead { margin-bottom: 28px; }
.admin-heading { display: block; }
.admin-heading > p { max-width: 76ch; margin-top: 10px; font-size: 15px; line-height: 1.8; }
.login-wrap { width: min(450px,calc(100% - 32px)); margin: 7vh auto 0; padding-bottom: 36px; }
.login-wrap > .brand { margin-bottom: 25px; }
.login-wrap > .text-link { margin-top: 18px; }
.login-wrap .eyebrow { margin-bottom: 7px; }
.toolbar { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 22px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.toolbar label:first-child { flex: 1 1 260px; }
.toolbar label { min-width: 150px; }
.toolbar .button { min-height: 48px; min-width: 96px; }
.account-search { margin-top: 20px; }
.filter-reset { min-height: 48px; }
.admin-list { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.admin-row { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding: 20px 24px; }
.admin-row + .admin-row { border-top: 1px solid var(--line); }
.admin-row:hover { background: #f9faf9; }
.admin-row > div { display: grid; min-width: 0; gap: 6px; }
.admin-row strong { font-size: 16px; }
.admin-row span, .admin-row small { color: var(--muted); font-size: 14px; font-weight: 400; }
.admin-row b { font-size: 14px; }
.admin-row > b { flex: 0 0 auto; }
.row-meta { justify-items: end; text-align: right; }
.state { background: var(--wash); padding: 3px 10px; border-radius: 5px; color: var(--navy); white-space: nowrap; }
.s-new { background: #f9ede1; color: #7a421b; }
.s-done { background: #e9f5ed; color: #305d4a; }
.empty { display: grid; justify-items: center; align-content: center; text-align: center; min-height: 240px; padding: 48px 24px; }
.empty h2 { font-size: 18px; }
.empty p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.pager { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.admin-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin: 18px 0; align-items: start; }
.admin-detail h3 { font-size: 16px; }
.danger-zone { margin-top: 20px; max-width: 480px; color: #8a3c29; }
.danger-zone summary { cursor: pointer; }
.danger-zone form { margin-top: 14px; }
.danger { background: #8f3929; color: #fff; }
.editor { margin-top: 20px; max-width: 840px; }
.editor .form-hint { margin: 0; padding: 14px 16px; background: var(--wash); border-radius: 8px; }
.form-stack .editor-group { display: grid; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.editor-group > legend { padding-right: 14px; margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.field-help { margin: 0; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.8; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.news-admin { margin-top: 20px; }
@media (max-width: 900px) {
  .wrap { width: min(100% - 48px, 800px); }
  .topbar { gap: 15px; min-height: 66px; }
  .navigation { gap: 14px; }
  .brand-type strong { font-size: 17px; }
  .product-grid { gap: 14px; }
  .card-text { padding: 20px; }
  .hero-copy { max-width: 460px; }
  .hero h1 { font-size: 40px; }
  .flow-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { min-height: 64px; flex-wrap: wrap; padding-block: 9px; gap: 8px; }
  .brand { gap: 7px; }
  .topbar > .brand { max-width: calc(100% - 145px); }
  .brand-mark { transform: scale(.85); transform-origin: left center; flex-basis: 32px; }
  .brand-type small { font-size: 11px; }
  .nav-actions { margin-left: auto; gap: 7px; }
  .top-cta { min-height: 38px; padding: 5px 11px; font-size: 12px; gap: 9px; }
  .navigation { order: 3; width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .navigation a { padding: 8px 0; }
  .navigation a[aria-current]::after { bottom: 4px; }
  .menu-ready .menu-toggle { display: block; }
  .menu-ready .navigation { display: none; }
  .menu-ready .navigation.open { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; border-top: 1px solid var(--line); padding: 5px 0; }
  .hero { display: flex; align-items: stretch; flex-direction: column; min-height: auto; background: var(--deep); }
  .hero-visual { position: relative; inset: auto; z-index: auto; }
  .hero-visual figcaption { left: 10px; right: auto; }
  .hero-image { height: clamp(155px, 42vw, 260px); object-position: 82% 42%; }
  .hero-visual::after { display: none; }
  .hero-inner { padding-block: 28px 32px; }
  .hero h1 { font-size: clamp(28px,7.4vw,40px); line-height: 1.5; margin: 12px 0 18px; }
  .hero-copy { max-width: none; }
  .hero-copy > p { max-width: 560px; font-size: 15px; }
  .hero .actions { margin-top: 24px; gap: 12px; }
  .hero .button { min-height: 48px; padding: 11px 16px; gap: 10px; font-size: 14px; }
  .hero-kicker { font-size: 13px; }
  .news-ribbon .wrap { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; padding-block: 10px; }
  .news-ribbon a { grid-column: 1/-1; align-items: start; line-height: 1.6; }
  .news-ribbon time { font-size: 14px; }
  .section-lead { align-items: start; gap: 14px; margin-bottom: 18px; }
  .section-lead > p { font-size: 14px; }
  #service > .section-lead { flex-direction: column; }
  .product-grid, .split-intro, .company-block, .form-layout, .admin-detail { grid-template-columns: 1fr; gap: 22px; }
  .card-photo img { aspect-ratio: 1.98; }
  .card-text { padding: 22px; }
  .card-text h3 { font-size: 22px; }
  .card-text .text-link { margin-top: 12px; }
  .flow-list { gap: 17px; }
  .flow-list h3 { font-size: 17px; }
  .flow-list p { font-size: 15px; }
  .facts dt, .facts dd { padding: 9px 6px; }
  .news-list a { grid-template-columns: 1fr auto; gap: 3px 14px; }
  .news-list time { grid-column: 1/-1; }
  .cta-band .spread { flex-direction: column; align-items: flex-start; gap: 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; padding-block: 25px; }
  .footer-grid > div { grid-column: 1/-1; }
  .service-detail { grid-template-columns: 1fr; gap: 18px; }
  .page-heading .wrap { padding-block: 14px 24px; }
  .crumb { margin-bottom: 16px; }
  .aside-note { margin-top: 15px; }
  .admin-header > div { min-height: 64px; }
  .admin-tools { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px 24px; }
  .admin-tools .language-control { width: 100%; justify-content: space-between; padding-block: 8px; border-block: 1px solid var(--line); }
  .admin-tools .language-control label { flex: 1; justify-content: space-between; }
  .admin-tools .language-control select { min-width: 116px; }
  .admin-header > div { gap: 14px; padding-block: 20px 4px; }
  .admin-nav nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 12px; }
  .admin-nav a { justify-content: center; text-align: center; min-height: 52px; padding: 12px 2px; font-size: 14px; }
  .admin-main { padding-block: 28px 52px; }
  .admin-main h1, .login-wrap h1 { font-size: 24px; }
  .admin-row { padding: 18px 16px; align-items: start; gap: 12px; }
  .row-meta small { font-size: 13px; }
  .toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 16px 12px; padding: 18px; }
  .toolbar label { min-width: 0; }
  .toolbar label:first-child { grid-column: 1/-1; width: 100%; max-width: 100%; }
  .account-search .button { grid-column: 1/-1; }
  .empty { min-height: 210px; padding: 36px 20px; }
  .form-pair { gap: 10px; }
}
@media (max-width: 440px) {
  .admin-nav nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 24px); }
  .topbar .brand-type strong { font-size: 14px; }
  .topbar > .brand { max-width: calc(100% - 128px); }
  .topbar .brand-type small { display: none; }
  .top-cta span { display: none; }
  .hero .button { padding-inline: 9px; }
  .admin-nav nav { gap: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Content management follows the same type scale and controls as the existing admin. */
.content-shortcuts { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-bottom: 28px; }
.content-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.content-card { display: block; min-width: 0; border: 1px solid var(--line); background: #fff; padding: 26px; border-radius: 8px; }
.content-card:hover { border-color: var(--navy); }
.content-card h2 { font-size: 20px; line-height: 1.6; margin: 10px 0; }
.content-card p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.content-location { color: var(--muted); font-size: 13px; }
.image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.image-card { padding: 0; overflow: hidden; }
.image-card > .image-frame { aspect-ratio: 2.4; }
.image-card-body { padding: 20px 26px 26px; }
.image-frame { aspect-ratio: 16/9; background: #edf3f5; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-contain img { object-fit: contain; padding: 24px; }
.image-editor-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; margin-top: 22px; align-items: start; }
.image-editor-layout .form-panel { min-width: 0; margin: 0; }
.image-editor-layout h2, .image-recovery h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.image-editor-layout .image-frame { margin-block: 20px; }
.image-editor-layout input[type=file] { width: 100%; min-width: 0; font-size: 14px; padding: 12px; }
.image-recovery { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.image-recovery .actions { margin-top: 18px; }
.button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.preview-notice { padding: 18px 24px; background: #e4f0ec; color: #12354a; text-align: center; }
img[data-focus=left] { object-position: 0% center; }
img[data-focus=center] { object-position: 50% center; }
img[data-focus=right] { object-position: 100% center; }
.admin-nav nav { flex-wrap: wrap; }
.admin-nav-toggle { display: none; }
@media (max-width: 1000px) { .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .admin-menu-ready .admin-nav-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 52px; border: 0; background: #fff; color: var(--navy); font-size: 14px; padding: 10px 0; }
  .admin-nav-toggle span { color: var(--muted); margin-left: auto; }
  .admin-menu-ready #admin-menu:not(.open) { display: none; }
  .content-grid, .image-editor-layout { grid-template-columns: minmax(0,1fr); }
  .content-card { padding: 22px; }
  .image-card { padding: 0; }
  .image-editor-layout { gap: 22px; }
  .editor-actions .button { width: 100%; }
  .image-recovery .actions, .image-recovery form { width: 100%; }
  .image-recovery .button { width: 100%; }
  .brand-logo { width: 32px; height: 32px; }
}
/* Application confirmation and support QR codes share the existing form styles. */
.confirmation-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:32px;align-items:start}
.confirmation-layout>*{min-width:0}
.confirmation-layout .result-value{font-size:clamp(1.7rem,4vw,2.7rem);overflow-wrap:anywhere}
.support-card{text-align:center;overflow-wrap:anywhere}
.support-qr{display:block;width:min(100%,260px);height:auto;aspect-ratio:1;object-fit:contain;background:#fff;margin:20px auto;padding:12px;border:1px solid var(--line,#dde5e8);border-radius:12px}
.support-handle{overflow-wrap:anywhere;user-select:all}
.support-grid{margin-top:28px}
.support-grid .support-qr{width:100px;margin:0 auto 12px;padding:4px}
.support-id-line{display:flex;align-items:center;justify-content:center;gap:4px 12px;flex-wrap:wrap}
.support-id-line .quiet{color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.support-jump{display:none}
.company-contact{font-size:.875rem;line-height:1.8;overflow-wrap:anywhere;margin-top:24px}
.company-contact p{margin:8px 0}
.company-contact a{white-space:nowrap}
.confirmation-layout .facts dd{overflow-wrap:anywhere}
@media(max-width:760px){
  .confirmation-layout{grid-template-columns:1fr;gap:20px}
  .confirmation-layout .support-jump{display:inline-flex;align-items:center;min-height:44px}
  #assigned-support{scroll-margin-top:130px}
  .intake-layout{display:flex;flex-direction:column;gap:24px}
  .intake-layout .form-aside{display:contents}
  .intake-layout .form-aside>h2,.intake-layout .form-aside>p{margin:0}
  .intake-layout>.form-panel{order:1}
  .intake-layout .aside-note{order:2}
  .intake-layout .company-contact{order:3}
}

/* Consultation agreements and preserved signature copies. */
.contract-layout { max-width: 960px; }
.contract-document { background: #fff; border: 1px solid var(--line, #d8e2e5); border-radius: 16px; padding: clamp(20px, 5vw, 56px); overflow-wrap: anywhere; }
.contract-document h1 { font-size: clamp(23px, 3vw, 32px); line-height: 1.5; margin-bottom: 28px; }
.contract-prose h2, .contract-signature h2 { font-size: 19px; margin: 30px 0 12px; }
.contract-prose p { white-space: pre-line; line-height: 1.9; }
.contract-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.contract-invite { margin: 32px 0; border-top: 1px solid #d8e2e5; padding-top: 24px; }
.signature-form { margin: 24px auto 0; }
[data-signature-canvas] { display: block; width: 100%; height: auto; aspect-ratio: 5/2; border: 2px solid #819ba8; border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.saved-signature { display: block; width: min(100%, 600px); height: auto; border-bottom: 1px solid #d8e2e5; }
.typed-signature { font-size: 32px; padding: 20px 0; }
.contract-evidence { font-size: 12px; overflow-wrap: anywhere; margin-top: 24px; }
.brand-type { min-width: 0; }
.brand-type strong { overflow-wrap: anywhere; white-space: normal; text-overflow: clip; }
@media (max-width: 600px) { .site-header .brand-type strong { font-size: 14px; max-width: 190px; } .contract-parties { grid-template-columns: 1fr; gap: 6px; } .contract-parties dd { margin-bottom: 12px; } }
@media print {
  .site-header, .site-footer, .page-heading, .admin-header, .admin-nav, .admin-heading, .no-print, .skip { display: none !important; }
  .contract-layout, .admin-main, .wrap { max-width: none; margin: 0; padding: 0; width: auto; }
  .contract-document { border: 0; padding: 0; font-size: 11pt; }
  .contract-document h2 { break-after: avoid; }
  .contract-signature { break-inside: avoid; }
  @page { size: A4; margin: 18mm; }
}

.direct-contact{max-width:760px}.direct-contact .support-card{text-align:center}.direct-contact .support-qr{margin:16px auto;display:block}.direct-contact .company-contact{text-align:left;margin-top:28px}.contract-share{margin:24px 0}.contract-share input{width:100%;font-size:14px}.contract-preview{margin-top:28px}.contract-preview>summary{cursor:pointer;font-weight:600;padding:16px 0}.contract-customer{background:#edf2f5}.contract-customer .contract-layout{max-width:900px}.contract-customer .contract-document{background:#fff}.repayment-terms{border-top:1px solid #dce5e8;margin-top:28px;padding-top:16px}.contract-toolbar{flex-wrap:wrap}.contract-layout,.contract-document,.contract-share{min-width:0;overflow-wrap:anywhere}
