:root {
    --navy: #0d1736;
    --navy-2: #17254f;
    --red: #d92f45;
    --red-dark: #b81f34;
    --ink: #172033;
    --muted: #526072;
    --bg: #ffffff;
    --soft: #f4f6fa;
    --line: #d9deea;
    --success: #176b4d;
    --radius: 18px;
    --shadow: 0 18px 48px rgba(13, 23, 54, .09);
    --container: 1180px;
    --section: clamp(4.5rem, 8vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Noto Sans TC", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; line-height: 1.75; }
body.mobile-menu-open { overflow: hidden; }
a { color: inherit; text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffb4bf; outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .75rem 1rem; background: #fff; color: var(--navy); border: 2px solid var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

h1, h2, h3 { color: var(--navy); line-height: 1.18; letter-spacing: -.025em; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4.65rem); max-width: 15ch; }
h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--muted); }
ul, ol { margin: 1rem 0; padding-left: 1.25rem; }
li + li { margin-top: .55rem; }
.lead, .page-lead, .hero-description { font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.small-note, .caution, .disclosure { font-size: .9rem; }
.eyebrow { display: inline-flex; color: var(--red-dark); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.15rem; }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: .28rem .72rem; border-radius: 999px; background: #eef1f7; color: var(--navy); font-size: .78rem; font-weight: 800; }
.badge-client { background: #dcefe7; color: #155f45; }
.badge-demo { background: #fbe5e9; color: #982238; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(217,222,234,.9); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header-inner { min-height: 84px; display: grid; grid-template-columns: minmax(210px, auto) 1fr auto; align-items: center; gap: 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.brand-mark { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; overflow: hidden; background: var(--navy); }
.logo-symbol { width: 100%; height: 100%; object-fit: contain; }
.brand-wordmark { display: flex; gap: .28rem; font-size: 1rem; letter-spacing: -.01em; margin: 0; }
.brand-wordmark-main { color: var(--navy); }
.brand-wordmark-accent { color: var(--red); }
.brand small { display: block; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.65rem, 1.2vw, 1.25rem); }
.primary-nav a { color: #3e4859; font-size: .84rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a.active { color: var(--red-dark); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.language-pills { display: flex; gap: .2rem; border: 1px solid var(--line); padding: .18rem; border-radius: 999px; }
.language-pills a { padding: .35rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-decoration: none; }
.language-pills a.active { background: var(--navy); color: white; }
.mobile-nav { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; border: 2px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--red); border-color: var(--red); }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-secondary { color: var(--navy); background: transparent; border-color: var(--navy); }
.button-on-dark { color: white; border-color: white; }
.header-cta { min-height: 42px; padding: .5rem .9rem; font-size: .78rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.text-link { display: inline-block; color: var(--red-dark); font-weight: 800; margin-top: 1rem; }

.hero-section, .page-hero { padding: var(--section) 0; background: radial-gradient(circle at 82% 22%, rgba(217,47,69,.11), transparent 28%), linear-gradient(145deg,#fff 0%,#f5f7fb 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-description { max-width: 62ch; }
.proof-list { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; list-style: none; padding: 0; margin-top: 1.5rem; }
.proof-list li { position: relative; padding-left: 1.05rem; margin: 0; color: #354055; font-size: .9rem; font-weight: 700; }
.proof-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero-visual { min-height: 440px; position: relative; border-radius: 32px; background: var(--navy); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(217,47,69,.6), transparent 25%), linear-gradient(120deg, transparent 30%, rgba(255,255,255,.07)); }
.visual-browser, .visual-phone, .visual-admin { position: absolute; z-index: 1; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.visual-browser { inset: 52px 60px 118px 38px; border-radius: 15px; padding: 4rem 1.5rem 1.5rem; }
.visual-browser::before { content: ""; position: absolute; inset: 0 0 auto; height: 34px; border-radius: 15px 15px 0 0; background: #e8ebf2; }
.visual-browser span { position: absolute; top: 13px; left: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 14px 0 #f0b44d, 28px 0 #56a874; }
.visual-browser strong { color: var(--navy); font-size: 2rem; }
.visual-phone { right: 24px; bottom: 28px; width: 150px; min-height: 230px; padding: 2rem 1rem; border: 8px solid #11182c; border-radius: 28px; }
.visual-phone strong { color: #168b56; }
.visual-admin { left: 24px; bottom: 30px; width: 230px; padding: 1rem; border-radius: 12px; }
.visual-admin strong { display: block; margin-bottom: .7rem; color: var(--navy); }
.visual-admin i { display: block; height: 8px; border-radius: 99px; background: #e2e6ef; margin-top: .5rem; }
.visual-admin i:nth-child(3) { width: 70%; }

.section { padding: var(--section) 0; }
.section-alt { background: var(--soft); }
.section-dark { background: var(--navy); color: white; }
.section-dark h2, .section-dark h3, .section-dark p { color: white; }
.section-dark .eyebrow { color: #ff9baa; }
.section-heading { max-width: 780px; margin-bottom: 2.7rem; }
.card-grid { display: grid; gap: 1.25rem; }
.card-grid.three { grid-template-columns: repeat(3,1fr); }
.card-grid.four { grid-template-columns: repeat(4,1fr); }
.card, .price-card { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 30px rgba(13,23,54,.04); }
.card-number { display: block; color: var(--red); font-weight: 900; margin-bottom: 1.3rem; }
.service-card ul, .check-list { padding-left: 1.1rem; }
.section-link { margin-top: 2rem; }
.works-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.work-card { padding: 1.5rem; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.home-work-card { display: flex; min-width: 0; flex-direction: column; padding: 0; overflow: hidden; background: rgba(255,255,255,.09); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.home-work-card:hover, .home-work-card:focus-within { transform: translateY(-4px); border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.12); }
.home-work-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.35rem; }
.home-work-content h3 { margin-bottom: .65rem; }
.home-work-content > p:not(.work-category) { margin-bottom: 1.2rem; }
.home-work-content .text-link { margin-top: auto; }
.home-work-visual { position: relative; display: grid; aspect-ratio: 16/10; place-items: center; overflow: hidden; background: linear-gradient(135deg,#1c2850,#d22f45); isolation: isolate; }
.home-work-visual::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(5,12,32,.52)); pointer-events: none; }
.home-work-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-work-card:hover .home-work-visual img, .home-work-card:focus-within .home-work-visual img { transform: scale(1.035); }
.home-work-visual-label { position: relative; z-index: 2; color: white; font-size: clamp(1.25rem,2.5vw,2rem); font-weight: 900; letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.home-work-mockup { position: absolute; z-index: 0; inset: 18% 9% 10%; display: grid; gap: .55rem; padding: 1rem; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; background: rgba(255,255,255,.15); box-shadow: 0 18px 35px rgba(0,0,0,.2); transform: rotate(-3deg); }
.home-work-mockup i { display: block; height: 12px; border-radius: 99px; background: rgba(255,255,255,.76); }
.home-work-mockup i:nth-child(2) { width: 72%; }
.home-work-mockup i:nth-child(3) { align-self: end; width: 42%; height: 34px; background: var(--red); }
.home-work-visual-demo-2 { background: linear-gradient(135deg,#5d201b,#d98745); }
.home-work-visual-demo-2 .home-work-mockup::before { content: "RESERVE"; color: white; font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.home-work-visual-demo-3 { background: linear-gradient(135deg,#14285a,#247db1); }
.home-work-visual-demo-3 .home-work-mockup { grid-template-columns: 1fr 2fr; }
.home-work-visual-demo-3 .home-work-mockup i { width: 100%; height: auto; min-height: 24px; }
.home-work-visual-demo-3 .home-work-mockup i:first-child { grid-row: 1/3; }
.home-work-visual-demo-4 { background: linear-gradient(135deg,#075d3b,#20b76c); }
.home-work-visual-demo-4 .home-work-mockup { inset: 16% 18% 8% 28%; border-radius: 24px 24px 8px 24px; transform: rotate(2deg); }
.home-work-visual-demo-4 .home-work-mockup i:nth-child(2) { justify-self: end; background: #9af1bd; }
.home-work-visual-demo-5 { background: linear-gradient(135deg,#32245d,#8953b8); }
.home-work-visual-demo-5 .home-work-mockup::before { content: "日本語  ↔  繁體中文"; color: white; font-size: .78rem; font-weight: 900; }
.work-card.light { color: var(--ink); background: white; border-color: var(--line); box-shadow: var(--shadow); }
.work-card.light p, .work-card.light h2, .work-card.light h3 { color: inherit; }
.work-category { margin: .8rem 0 .35rem; font-size: .83rem; font-weight: 800; color: var(--muted) !important; }
.work-visual { aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; margin: -1.5rem -1.5rem 1.3rem; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(135deg,var(--navy),var(--navy-2)); color: white; font-size: 1.4rem; font-weight: 900; }
.work-visual img { width: 100%; height: 100%; object-fit: cover; }
.works-page-grid { grid-template-columns: repeat(2,1fr); }
.flow-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; list-style: none; padding: 0; }
.flow-list li { display: flex; gap: .8rem; padding: 1.4rem; border-top: 3px solid var(--red); background: white; box-shadow: var(--shadow); margin: 0; }
.flow-list li > span { color: var(--red); font-weight: 900; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); align-items: start; }
.price-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.price-list li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.cta-section { background: white; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem,5vw,4rem); border-radius: 28px; background: var(--navy); color: white; }
.cta-panel h2, .cta-panel p { color: white; }

.service-detail-list { display: grid; gap: 1.5rem; }
.service-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,5rem); padding: clamp(1.6rem,4vw,3rem); border: 1px solid var(--line); border-radius: var(--radius); }
.service-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.value-note { padding: 1rem; border-left: 3px solid var(--red); background: var(--soft); color: var(--ink); font-weight: 700; }
.filter-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 800; }
.filter-nav a.active { color: white; background: var(--navy); border-color: var(--navy); }
.pricing-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.plan-note { color: var(--red-dark); font-size: .8rem; font-weight: 800; }
.plan-price { color: var(--navy); font-size: 1.65rem; font-weight: 900; }
.about-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.fact-list { margin: 0; }
.fact-list div, .case-facts div { display: grid; grid-template-columns: 9rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact-list dt, .case-facts dt { color: var(--muted); font-weight: 700; }
.fact-list dd, .case-facts dd { margin: 0; font-weight: 800; }
.faq-list { display: grid; gap: .8rem; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: white; }
.faq-list summary { position: relative; padding: 1.2rem 3rem 1.2rem 1.2rem; color: var(--navy); font-weight: 800; cursor: pointer; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.2rem; color: var(--red); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 1.2rem 1.2rem; }
.policy-list section + section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.policy-list h2 { font-size: 1.45rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; color: var(--muted); font-size: .85rem; }
.case-hero-image { width: 100%; max-height: 760px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.case-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,6vw,6rem); }
.case-facts { margin: 0; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.comparison-card { padding: 1.5rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.comparison-card iframe { width: 100%; height: 360px; margin: 1rem 0; border: 0; border-radius: 10px; background: white; }
.result-card { margin-top: 1.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--red-dark); }

.contact-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.5rem; align-items: start; }
.contact-card, .contact-aside { padding: clamp(1.4rem,3vw,2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
#contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: grid; gap: .4rem; }
.form-group.full, #contact-form > button, #contact-form > .privacy-note, #contact-form > .submit-status { grid-column: 1/-1; }
label { color: var(--navy); font-weight: 800; }
.form-control { width: 100%; min-height: 48px; padding: .72rem .85rem; border: 1px solid #adb6c7; border-radius: 10px; background: white; color: var(--ink); }
textarea.form-control { min-height: 160px; resize: vertical; }
.form-control[aria-invalid="true"], .form-group:has(.field-errors) .form-control { border-color: var(--red); }
.field-errors, .form-error-summary { color: #9d1f32; font-weight: 700; }
.form-error-summary { grid-column: 1/-1; padding: 1rem; margin-bottom: 1rem; border-left: 4px solid var(--red); background: #fff0f2; }
.consent-field label { display: flex; align-items: flex-start; gap: .6rem; }
.consent-field input { width: 22px; height: 22px; margin-top: .18rem; }
.privacy-note a { color: var(--red-dark); font-weight: 800; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside ol { list-style: none; padding: 0; }
.contact-aside li { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-aside li span { color: var(--red); font-weight: 900; }

.flash-stack { margin-top: 1rem; }
.flash { padding: 1rem; border-radius: 10px; background: #e4f4ed; color: var(--success); font-weight: 800; }
.flash.error { background: #fff0f2; color: #9d1f32; }
.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line); background: #f7f8fb; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-wordmark { font-size: 1.1rem; margin: 0; }
.footer-nav { display: grid; align-content: start; gap: .6rem; }
.footer-nav a { color: var(--ink); font-weight: 700; }
.footer-note, .copyright { margin-top: 1.2rem; font-size: .82rem; }

@media (max-width: 1100px) {
    .desktop-nav, .desktop-language-switcher, .header-cta { display: none; }
    .header-inner { grid-template-columns: 1fr auto; }
    .header-actions { display: none; }
    .mobile-nav { display: block; }
    .mobile-nav summary { display: inline-flex; align-items: center; min-height: 46px; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 800; cursor: pointer; list-style: none; }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .menu-close-label { display: none; }
    .mobile-nav[open] .menu-open-label { display: none; }
    .mobile-nav[open] .menu-close-label { display: inline; }
    .mobile-nav-panel { position: fixed; inset: 84px 0 auto; max-height: calc(100dvh - 84px); overflow: auto; padding: 1.2rem 20px 2rem; border-top: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
    .mobile-only { display: grid; align-items: stretch; gap: 0; }
    .mobile-only a { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .mobile-language-switcher { display: grid; gap: .5rem; margin: 1.2rem 0; }
    .mobile-language-switcher .language-pills { width: fit-content; }
}

@media (max-width: 900px) {
    .hero-grid, .service-detail, .split-section, .case-grid, .contact-layout { grid-template-columns: 1fr; }
    .hero-visual { min-height: 390px; }
    .card-grid.four, .flow-list { grid-template-columns: repeat(2,1fr); }
    .works-grid, .card-grid.three { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1/-1; }
}

@media (max-width: 640px) {
    .container, .narrow { width: min(100% - 28px, var(--container)); }
    .header-inner { min-height: 72px; }
    .brand small { display: none; }
    .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
    .mobile-nav-panel { inset-block-start: 72px; max-height: calc(100dvh - 72px); }
    .hero-section, .page-hero { padding: 4.5rem 0; }
    h1 { font-size: clamp(2rem, 11vw, 3.15rem); }
    .hero-visual { min-height: 330px; }
    .visual-browser { inset: 30px 30px 95px 18px; }
    .visual-phone { width: 122px; min-height: 195px; right: 12px; bottom: 18px; }
    .visual-admin { width: 175px; left: 12px; bottom: 18px; }
    .button-row, .button { width: 100%; }
    .proof-list { display: grid; }
    .card-grid.three, .card-grid.four, .works-grid, .works-page-grid, .flow-list, .pricing-grid, .about-grid, .comparison-grid, .service-columns, #contact-form { grid-template-columns: 1fr; }
    .cta-panel { display: grid; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > :first-child { grid-column: auto; }
    .fact-list div, .case-facts div { grid-template-columns: 1fr; gap: .2rem; }
    .comparison-card iframe { height: 260px; }
}

@media (max-width: 360px) {
    .brand-wordmark { font-size: .9rem; }
    .hero-visual { min-height: 300px; }
    .visual-browser { right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
