@charset "UTF-8";
@font-face { font-family: "Clover Sans"; src: url("./assets/fonts/clover-sans-v1.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; }
:root {
  --green: #143e2d; --green-deep: #102c21; --green-pale: #eaf0e7;
  --ink: #20352a; --muted: #58675e; --paper: #f7f6f0; --line: #d7ded3;
  --accent: #e1c173; --accent-hover: #edd18d;
  --sans: "Clover Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, summary, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.5; text-wrap: balance; }
p { text-wrap: pretty; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a97817; outline-offset: 5px; }
svg { display: block; }
svg:not(.svg-definitions) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 12px; padding: 12px 20px; color: #fff; background: var(--green); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.copy-line { display: block; }
.heading-phrase, .text-phrase { display: inline-block; }

/* The brand retains its established Mincho wordmark; interface copy uses a local Japanese sans. */
.site-header { position: relative; z-index: 20; background: var(--paper); }
.header-inner { display: flex; min-height: 80px; width: min(1320px, calc(100% - 32px)); align-items: center; justify-content: space-between; gap: 12px; margin-inline: auto; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--green); font-family: var(--serif); font-size: 23px; font-weight: 800; line-height: 1.3; letter-spacing: -.055em; white-space: nowrap; }
.brand svg { width: 38px; height: 40px; flex: 0 0 auto; stroke: none; }
.brand-name small { display: block; margin: 5px 0 0 2px; font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .22em; }
.menu-toggle { display: flex; width: 48px; height: 48px; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 1px solid #aab7ab; border-radius: 4px; color: var(--green); background: transparent; }
.menu-toggle span { width: 23px; height: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 16px 20px 24px; border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 16px 24px rgb(15 35 24 / 10%); }
.main-nav.is-open { display: grid; }
.main-nav > a:not(.header-contact) { display: flex; min-height: 54px; align-items: center; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.main-nav > a:hover { color: #366048; }
.button { display: inline-flex; min-width: 0; min-height: 58px; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border: 1px solid transparent; border-radius: 5px; font-size: 17px; font-weight: 700; line-height: 1.5; text-align: center; transition: background-color .18s, border-color .18s; }
.button-orange { color: #183021; background: var(--accent); }
.button-orange:hover:not(:disabled) { background: var(--accent-hover); }
.button-green { color: #fff; background: var(--green); }
.button-green:hover { background: #28533d; }
.button-outline-light { border-color: #d5dfd2; color: #fff; background: rgb(9 29 18 / 20%); }
.button-outline-light:hover { background: rgb(255 255 255 / 12%); }
.button-confirm { border-color: #a7b7a6; color: var(--green); background: #fff; }
.button-confirm:hover:not(:disabled) { background: #edf2e9; }
.button-confirm:disabled { border-color: #d7ded4; color: #748170; background: #f0f3ed; }
.arrow { width: 23px; height: 23px; flex: 0 0 auto; }
.arrow-down { transform: rotate(90deg); }
.button-icon { width: 27px; height: 27px; flex: 0 0 auto; }
.phone-icon { width: 23px; height: 25px; flex: 0 0 auto; }
.header-contact { margin-top: 18px; }
.main-nav > .header-contact:hover { color: #fff; }

.hero { position: relative; overflow: hidden; color: #fff; background: #14271c; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.hero::after { position: absolute; z-index: 0; inset: 0; content: ""; background: linear-gradient(0deg, rgb(9 28 18 / 83%), rgb(9 28 18 / 58%) 53%, rgb(9 28 18 / 58%)); }
.hero-inner { position: relative; z-index: 1; display: grid; min-height: 440px; place-items: center; padding-block: 40px 26px; }
.hero-content { width: 100%; max-width: 760px; margin-inline: auto; text-align: center; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 22px; font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.hero-eyebrow > span { width: 7px; height: 7px; background: var(--accent); }
.hero h1 { font-size: clamp(33px, 9.5vw, 44px); font-weight: 700; line-height: 1.48; letter-spacing: .015em; }
.hero-copy { margin-top: 18px; font-size: 18px; font-weight: 500; line-height: 1.8; letter-spacing: .025em; }
.hero-actions { display: grid; max-width: 350px; gap: 12px; margin: 28px auto 0; }
.hero-actions .button { min-height: 60px; font-size: 17px; }
.hero-bottom { position: relative; z-index: 1; }
.hero-bottom > div { display: flex; min-height: 30px; justify-content: flex-end; padding-bottom: 12px; }
.hero-image-note { color: #dbe5da; font-size: 12px; }

.photo-section { padding-block: 28px 8px; }
.photo-entry { max-width: 1000px; margin-inline: auto; padding: 24px 20px; border: 1px solid #e0e6db; border-radius: 12px; background: var(--green-pale); }
.photo-entry-heading { display: flex; align-items: center; gap: 12px; }
.photo-entry-heading > svg { width: 32px; height: 35px; flex: 0 0 auto; color: var(--green); }
.photo-entry-heading h2 { color: var(--green); font-size: 26px; line-height: 1.5; letter-spacing: -.025em; }
.photo-entry-content > p { margin-top: 10px; font-size: 16px; line-height: 1.8; }
.photo-entry-content > .button { width: 100%; min-height: 60px; margin-top: 20px; font-size: 18px; }
.photo-entry-content .photo-entry-scope { color: var(--muted); font-size: 14px; }
.photo-entry-flow { display: flex; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid #c2cfbd; list-style: none; }
.photo-entry-flow li { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 500; }
.photo-entry-flow b { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 13px; font-weight: 600; }
.photo-entry-flow svg { display: none; }
.services-section { padding-block: 40px 44px; }
.section-heading { color: var(--green-deep); font-size: clamp(29px, 7.8vw, 35px); line-height: 1.6; letter-spacing: .01em; }
.services-section .section-heading { margin-bottom: 12px; }
.service-list { display: grid; }
.service-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); align-items: center; gap: 16px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row-image { position: relative; min-height: 140px; height: 100%; overflow: hidden; border-radius: 3px; background: #e6eade; }
.service-row-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-row-copy { min-width: 0; }
.service-row-copy h3 { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 25px; line-height: 1.5; letter-spacing: .015em; }
.service-row-copy h3::before { width: 7px; height: 16px; flex: 0 0 auto; content: ""; border-radius: 1px; background: var(--accent); }
.service-row-copy p { margin-top: 9px; font-size: 16px; line-height: 1.85; letter-spacing: 0; }
.service-image-note { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: right; }
.business-section { color: #fff; background: var(--green); scroll-margin-top: 24px; }
.business-panel { padding-block: 44px; }
.business-panel-icon { display: none; }
.business-panel-copy h2 { font-size: 28px; line-height: 1.6; letter-spacing: .005em; }
.business-panel-copy .heading-phrase { display: block; }
.business-panel-copy > p { margin-top: 15px; color: #e1eadd; font-size: 16px; line-height: 1.9; }
.business-panel-copy > p + p { margin-top: 3px; }
.business-types { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.business-types > span { white-space: nowrap; }
.business-panel-copy .button { width: 100%; max-width: 460px; margin-top: 26px; font-size: 16px; }
.information-section { padding-block: 20px 0; }
.information-details { padding-block: 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.information-details > summary { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; color: var(--green); font-size: 17px; font-weight: 500; line-height: 1.7; list-style: none; }
.information-details > summary::-webkit-details-marker { display: none; }
.details-mark { flex: 0 0 24px; font-size: 24px; font-weight: 400; text-align: center; }
.information-details[open] > summary .details-mark { transform: rotate(45deg); }
.consultation-steps { display: grid; gap: 24px; margin: 12px 0 30px; padding: 0; list-style: none; }
.consultation-steps li { display: flex; align-items: flex-start; gap: 14px; }
.consultation-steps li > b { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 15px; font-weight: 500; }
.consultation-steps h3 { font-size: 18px; line-height: 1.7; }
.consultation-steps p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.preparation-panel { max-width: 900px; padding-bottom: 24px; }
.preparation-panel article { padding-block: 20px; border-top: 1px solid var(--line); }
.preparation-panel article:first-child { border-top: 0; }
.preparation-panel h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.preparation-panel h3 svg, .info-icon { width: 26px; height: 30px; flex: 0 0 auto; }
.info-icon { display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 20px; }
.preparation-panel p { margin-block: 12px; font-size: 16px; }
.source-link, .policy-phone { display: inline-block; padding-block: 8px; color: #285c3d; font-size: 15px; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.tax-source-links { display: grid; justify-items: start; }
.site-footer { background: var(--paper); }
.footer-inner { display: grid; gap: 20px; padding-block: 32px 20px; }
.footer-brand { font-size: 25px; }
.footer-identity > p { margin-top: 15px; color: var(--muted); font-size: 15px; }
.footer-label { color: var(--green); font-size: 14px; font-weight: 500; }
.footer-phone, .contact-phone { display: inline-flex; min-height: 52px; align-items: center; gap: 10px; font-size: clamp(25px, 6.8vw, 30px); font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer-details > summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; list-style: none; }
.footer-details > summary::-webkit-details-marker { display: none; }
.footer-details[open] > summary .details-mark { transform: rotate(45deg); }
.footer-details-body { display: grid; gap: 10px; padding-block: 8px 18px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-bottom small { color: var(--muted); font-size: 12px; }
.footer-bottom .text-button { min-height: 44px; font-size: 14px; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; color: var(--green); background: none; font-size: 15px; line-height: 1.7; text-decoration: underline; text-underline-offset: 4px; }
.mobile-quick-actions { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1.12fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #d5dfcf; background: var(--paper); box-shadow: 0 -4px 20px rgb(17 40 23 / 6%); }
.mobile-quick-actions .button { min-height: 58px; gap: 7px; padding-inline: 8px; font-size: 16px; }
.mobile-quick-actions .button-icon { width: 23px; height: 25px; }
.button-mobile-phone { border-color: var(--green); color: var(--green); background: transparent; }
.noscript-note { padding: 20px; background: #fff; }
.noscript-note a { text-decoration: underline; }

/* Native dialogs keep focus, Escape and background isolation consistent. */
dialog { width: min(640px, calc(100vw - 28px)); max-width: none; max-height: 92dvh; margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgb(8 27 15 / 24%); }
dialog::backdrop { background: rgb(8 24 15 / 70%); }
.dialog-heading { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-heading h2 { color: var(--green); font-size: 21px; line-height: 1.6; }
.dialog-close { display: flex; width: 46px; height: 46px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 10px; border: 1px solid #bdcbbb; border-radius: 5px; color: var(--green); background: transparent; }
.dialog-close svg { width: 23px; height: 23px; }
.dialog-body { padding: 26px 22px; }
.contact-intro { font-size: 17px; font-weight: 500; line-height: 1.9; }
.contact-phone { margin-top: 22px; color: var(--green); }
.contact-phone-note { margin-top: 4px; color: var(--muted); font-size: 14px; }
.contact-preparation-title { margin-top: 28px; font-size: 18px; }
.contact-preparation { display: grid; gap: 10px; margin: 16px 0; padding-left: 24px; font-size: 17px; }
.contact-note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.dialog-done { width: 100%; margin-top: 24px; }
.policy-body { font-size: 16px; line-height: 1.9; }
.policy-body h3 { margin: 25px 0 10px; font-size: 18px; }
.policy-date { margin-top: 24px; color: var(--muted); font-size: 14px; }
.privacy-trigger { margin-top: 8px; }

.photo-dialog.diagnosis-app { width: min(620px, calc(100vw - 40px)); height: min(900px, 94dvh); max-height: 94dvh; overflow: hidden; color: var(--green); background: #fcfcf9; }
.diagnosis-app[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.app-header { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: #fff; background: var(--green); }
.app-brand svg { width: 27px; height: 30px; fill: currentColor; }
.app-header h2 { flex: 1; font-size: 19px; font-weight: 600; }
.app-header .dialog-close { color: #fff; border-color: rgb(255 255 255 / 35%); }
.app-progress { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); list-style: none; background: #fff; }
.app-progress li { display: flex; flex: 1; align-items: center; justify-content: center; gap: 7px; color: #67756b; font-size: 15px; }
.app-progress b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e8ece6; font-size: 14px; font-weight: 600; }
.app-progress [aria-current] { color: var(--green); font-weight: 700; }
.app-progress [aria-current] b { color: #fff; background: var(--green); }
.app-body { min-height: 0; padding: 26px; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 24px; }
.app-question { margin-bottom: 12px; font-size: clamp(23px, 5.5vw, 28px); line-height: 1.6; letter-spacing: 0; }
.app-question:focus { outline: none; }
.app-help, .diagnosis-status { margin: 0 0 22px; color: #526257; font-size: 16px; line-height: 1.8; }
.diagnosis-status:empty { display: none; }
.app-options { display: grid; gap: 12px; }
.app-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-options-grid [data-layout=unknown], .app-options-grid [data-area=custom] { grid-column: 1 / -1; }
.app-choice { display: flex; width: 100%; min-width: 0; min-height: 62px; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 17px; border: 2px solid #d5ddd4; border-radius: 9px; color: var(--green); background: #fff; font-size: 18px; line-height: 1.55; text-align: left; }
.app-choice:hover { border-color: #8ca086; }
.app-choice[aria-pressed=true] { border-color: var(--green); background: #eaf1e6; }
.choice-check { visibility: hidden; flex: 0 0 22px; text-align: center; font-weight: 700; }
[aria-pressed=true] > .choice-check { visibility: visible; }
.app-photo-summary { margin-bottom: 22px; padding: 15px 17px; border-radius: 8px; background: #edf2e9; }
.app-photo-summary > p { color: #526257; font-size: 14px; }
.diagnosis-features { display: block; margin: 8px 0 0; padding-left: 20px; font-size: 16px; }
.diagnosis-features li { margin-block: 4px; }
#diagnosis-result { padding-top: 6px; }
.diagnosis-panel { margin: 0; padding: 0; border: 0; background: transparent; }
.photo-dropzone { display: flex; min-height: 180px; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #92a88e; border-radius: 9px; background: #f0f5eb; cursor: pointer; }
.photo-dropzone:hover, .photo-dropzone.is-dragging { border-color: var(--green); background: #e6eee0; }
.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 25px 12px; font-size: 16px; }
.photo-empty > svg { width: 48px; height: 48px; }
.photo-preview { width: 100%; height: 190px; object-fit: contain; background: #e9eee6; }
.app-pick { width: 100%; min-height: 54px; margin-top: 15px; }
.photo-file-help { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.photo-file-status { margin-top: 16px; font-size: 14px; overflow-wrap: anywhere; }
.photo-error, .diagnosis-error { color: #94331f; font-size: 16px; line-height: 1.8; }
.photo-error:not(:empty) { margin-top: 12px; }
.diagnosis-error { margin-block: 16px; padding: 16px; border-left: 3px solid #ad442b; background: #fff3eb; }
#diagnosis-retry, #diagnosis-change-photo { margin-top: 15px; }
.confirm-image { width: 100%; max-height: 225px; margin-block: 18px; border-radius: 8px; background: #edf0e9; object-fit: contain; }
.dialog-notice { padding: 16px; border-left: 3px solid var(--green); color: #405a45; background: #edf2e8; font-size: 15px; line-height: 1.85; }
.estimate-field { display: grid; gap: 8px; margin-top: 20px; }
.estimate-field > label { font-size: 17px; font-weight: 500; }
.area-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 10px; }
.estimate-field input, .estimate-field select { width: 100%; min-width: 0; min-height: 56px; padding: 12px; border: 1px solid #a4b69f; border-radius: 6px; color: var(--green); background: #fff; font-size: 18px; }
.estimate-field input[aria-invalid=true] { border-color: #a8432c; }
.field-help { color: var(--muted); font-size: 15px; }
.app-footer { display: flex; gap: 12px; padding: 14px 20px max(14px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; }
.app-footer .button { min-height: 58px; border-radius: 7px; padding-inline: 14px; font-size: 16px; }
.app-primary { flex: 1; }
.app-back { flex: 0 0 74px; }
.app-footer .button:disabled { opacity: .48; }
.app-details { margin-block: 16px; color: #425449; font-size: 15px; }
.app-details summary { padding-block: 10px; font-weight: 500; }
.app-details[open] summary { margin-bottom: 10px; }
.app-answer-summary { margin: 5px 0 16px; padding: 13px 15px; border-radius: 7px; background: #eaf0e5; font-size: 16px; font-weight: 500; }
.estimate-summary { padding: 20px 16px; border-radius: 9px; background: #edf2e8; }
.diagnosis-subheading { margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.estimate-display { font-size: clamp(25px, 6.5vw, 33px); font-weight: 700; line-height: 1.7; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.estimate-bound, .estimate-upper { white-space: nowrap; }
.estimate-caption { margin-top: 10px; font-size: 15px; font-weight: 400; line-height: 1.8; letter-spacing: 0; }
.estimate-examples { display: grid; gap: 10px; margin: 14px 0; padding-left: 18px; font-size: 16px; font-weight: 500; line-height: 1.8; }
.estimate-assumptions { margin: 10px 0; padding-left: 20px; font-size: 15px; line-height: 1.8; }
.estimate-assumptions li { margin-block: 8px; }
.estimate-source { display: inline-block; min-height: 44px; padding-block: 8px; color: #285c3e; font-size: 15px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.estimate-disclaimer { margin-top: 12px; color: #4c6051; font-size: 15px; line-height: 1.8; }
.result-contact { margin-top: 26px; }
.result-contact h4 { font-size: 18px; }
.result-contact > p { margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.result-contact .button { width: 100%; margin-top: 15px; }
.diagnosis-panel[aria-busy=true]::after { display: block; width: 40px; height: 40px; margin: 35px auto; border: 3px solid #dce5d7; border-top-color: var(--green); border-radius: 50%; content: ""; animation: diagnosis-spin 1s linear infinite; }
@keyframes diagnosis-spin { to { transform: rotate(360deg); } }

@media (max-width: 359px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 21px; }
  .brand svg { width: 34px; height: 36px; }
  .photo-entry { padding: 22px 18px; }
  .photo-entry-heading > svg { display: none; }
  .photo-entry-heading h2 { font-size: 25px; }
  .service-row { gap: 14px; }
  .service-row-copy h3 { gap: 7px; font-size: 23px; }
  .mobile-quick-actions .button { gap: 5px; padding-inline: 6px; font-size: 15px; }
  .mobile-quick-actions .button-icon { width: 21px; }
}
@media (min-width: 640px) {
  .container { width: min(1200px, calc(100% - 64px)); }
  .brand { font-size: 27px; }
  .brand svg { width: 44px; height: 46px; }
  .hero-inner { min-height: 540px; padding-block: 48px 32px; }
  .hero h1 { font-size: 52px; }
  .hero-actions { display: flex; max-width: none; justify-content: center; gap: 16px; }
  .hero-actions .button { min-width: 220px; }
  .photo-section { padding-block: 38px 12px; }
  .photo-entry { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 34px; padding: 34px; }
  .photo-entry-heading h2 { font-size: 32px; }
  .photo-entry-heading > svg { width: 40px; height: 44px; }
  .photo-entry-content > .button { max-width: 460px; }
  .photo-entry-flow { flex-direction: column; justify-content: space-around; margin: 0; padding: 0 0 0 28px; border-top: 0; border-left: 1px solid #c2cfbd; }
  .photo-entry-flow li { justify-content: flex-start; font-size: 17px; }
  .photo-entry-flow b { width: 27px; height: 27px; margin-right: 4px; font-size: 14px; }
  .photo-entry-flow svg { display: block; width: 26px; height: 28px; }
  .section-heading { font-size: 36px; }
  .services-section { padding-block: 50px; }
  .service-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 28px; padding-block: 28px; }
  .service-row-image { min-height: 180px; }
  .service-row-copy h3 { font-size: 30px; }
  .service-row-copy p { font-size: 17px; }
  .business-panel { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 30px; padding-block: 54px; }
  .business-panel-icon { display: block; width: 58px; height: 66px; margin-top: 6px; color: var(--accent); }
  .business-panel-copy h2 { font-size: 35px; }
  .business-panel-copy .heading-phrase { display: inline-block; }
  .business-panel-copy > p { font-size: 17px; }
  .business-panel-copy .button { font-size: 18px; }
  .consultation-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 52px; }
  .footer-details, .footer-bottom { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .service-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 22px; }
  .service-row:nth-last-child(2) { border-bottom: 0; }
  .service-row-image { min-height: 170px; }
  .service-row-copy h3 { font-size: 28px; }
  .service-row-copy p { font-size: 16px; }
}
@media (min-width: 1100px) {
  body { padding-bottom: 0; }
  .mobile-only, .mobile-quick-actions { display: none; }
  .header-inner { min-height: 94px; width: min(1320px, calc(100% - 64px)); gap: 24px; }
  .brand { font-size: 28px; }
  .menu-toggle { display: none; }
  .main-nav, .main-nav.is-open { position: static; display: flex; align-items: center; gap: 23px; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .main-nav > a:not(.header-contact) { min-height: 48px; border: 0; font-size: 15px; white-space: nowrap; }
  .header-contact { min-height: 54px; margin: 0; padding: 12px 20px; font-size: 16px; white-space: nowrap; }
  .hero-photo img { object-position: center; }
  .hero-inner { min-height: 580px; padding-block: 56px 40px; }
  .hero-eyebrow { font-size: 16px; }
  .hero h1 { font-size: 64px; line-height: 1.4; }
  .hero-copy { font-size: 21px; }
  .hero-actions .button { min-width: 240px; min-height: 64px; font-size: 18px; }
  .section-heading { font-size: 40px; }
  .business-panel { max-width: 1050px; padding-block: 64px; }
  .information-details > summary { font-size: 19px; }
}
@media (max-width: 640px) {
  .photo-dialog.diagnosis-app { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .app-header { padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-inline: 16px; }
  .app-body { padding: 24px 20px; }
  .app-progress { gap: 5px; padding: 13px 15px; }
  .app-footer { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
