:root {
  --c-primary: #1f3556;
  --c-primary-2: #2f3e4e;
  --c-primary-soft: #e8edf3;
  --c-gold: #c8a96a;
  --c-gold-deep: #a8894e;
  --c-ivory: #f7f2e8;
  --c-white: #fff;
  --c-text: #222;
  --c-muted: #666;
  --c-border: #e6e0d4;
  --c-success: #39745b;
  --c-error: #a23d3d;
  --font-ja: "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-zh: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-en: Inter, system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", serif;
  --container: 1180px;
  --shadow: 0 18px 50px rgba(31, 53, 86, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--c-text); background: var(--c-white); font-family: var(--font-ja); line-height: 1.8; -webkit-font-smoothing: antialiased; }
body[data-lang="zh"] { font-family: var(--font-zh); }
body[data-lang="en"] { font-family: var(--font-en); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.35; letter-spacing: .015em; }
body[data-lang="en"] h1, body[data-lang="en"] h2, body[data-lang="en"] h3 { font-family: var(--font-en); }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(820px, 100%); margin-inline: auto; }
.section { padding: 96px 0; }
.section-ivory { background: var(--c-ivory); }
.section-navy { background: var(--c-primary); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow { color: var(--c-gold-deep); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 14px; }
.section-navy .eyebrow, .hero .eyebrow { color: #e6cf9e; }
.section-title { margin-bottom: 18px; color: var(--c-primary); font-size: clamp(30px, 4vw, 48px); }
.section-lead { max-width: 760px; color: var(--c-muted); font-size: 17px; }
.section-head { margin-bottom: 48px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }
.gold-rule { width: 64px; height: 2px; margin: 22px 0; background: var(--c-gold); }
.center .gold-rule { margin-inline: auto; }

.topbar { background: #172941; color: rgba(255,255,255,.78); font-size: 12px; }
.topbar-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--c-border); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.nav .container { width: min(1720px, calc(100% - 32px)); }
.nav-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { flex: 0 0 auto; }
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1vw, 18px); flex: 1 0 auto; }
.nav-menu a { position: relative; color: var(--c-primary-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.nav-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--c-gold); transition: right .25s; }
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-actions .btn, .lang-switch { flex: 0 0 auto; white-space: nowrap; }
.nav-cta { min-width: max-content; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--c-border); background: var(--c-ivory); }
.lang-switch button { border: 0; background: transparent; padding: 5px 8px; font-size: 11px; }
.lang-switch button.active { color: #fff; background: var(--c-primary); }
.mobile-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--c-border); background: #fff; place-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 23px; border: 1px solid transparent; font-weight: 700; font-size: 14px; letter-spacing: .04em; transition: .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-2); box-shadow: var(--shadow); }
.btn-gold { background: var(--c-gold); color: #172941; }
.btn-gold:hover { background: #d4b87c; }
.btn-outline { border-color: currentColor; color: var(--c-primary); background: transparent; }
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.07); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(120deg, rgba(23,41,65,.97), rgba(31,53,86,.84)), var(--hero-image, none) center/cover; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(90deg, transparent 49.5%, #fff 50%, transparent 50.5%), linear-gradient(transparent 49.5%, #fff 50%, transparent 50.5%); background-size: 90px 90px; }
.hero-content { position: relative; z-index: 1; max-width: 850px; padding: 110px 0; }
.hero h1 { color: #fff; font-size: clamp(43px, 6vw, 76px); margin-bottom: 24px; font-weight: 500; }
.hero .home-hero-title { color: #fff; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.35; }
.hero .lead { max-width: 720px; margin-bottom: 32px; color: rgba(255,255,255,.82); font-size: 18px; }
.hero-tagline { max-width: 820px; margin-bottom: 22px; color: #e6cf9e; font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; line-height: 1.45; }
.hero-copy { max-width: 820px; margin-bottom: 10px; color: rgba(255,255,255,.84); font-size: 16px; }
.hero-copy + .btn-row { margin-top: 28px; }
.page-hero { min-height: 430px; }
.page-hero .hero-content { padding: 78px 0; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4vw, 52px); font-weight: 500; line-height: 1.35; }
.page-hero-subtitle { display: block; margin-top: 12px; color: #e6cf9e; font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; line-height: 1.45; }
.hero-section-name { margin: -4px 0 18px; color: rgba(255,255,255,.84); font-size: 16px; font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.card { padding: 32px; border: 1px solid var(--c-border); background: #fff; }
.card h3 { color: var(--c-primary); font-size: 23px; }
.card p { color: var(--c-muted); }
.card-number { color: var(--c-gold-deep); font-weight: 700; letter-spacing: .16em; margin-bottom: 14px; }
.card-dark { background: var(--c-primary-2); border-color: var(--c-primary-2); color: #fff; }
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,.72); }
body[data-page="education"] .card { background: #fff; border-color: var(--c-border); color: var(--c-text); }
body[data-page="education"] .card h3 { color: var(--c-primary); }
body[data-page="education"] .card p, body[data-page="education"] .card .check-list li { color: var(--c-muted); }
.business-card { display: flex; flex-direction: column; }
.business-card .business-services { flex: 1; margin: 4px 0 24px; padding-top: 15px; border-top: 1px solid var(--c-border); color: var(--c-primary); font-size: 13px; font-weight: 600; line-height: 1.9; }
.business-card.card-dark .business-services { border-color: rgba(255,255,255,.18); color: #e6cf9e; }
.feature-list, .check-list { list-style: none; padding: 0; margin: 0; }
.feature-list li, .check-list li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--c-border); }
.feature-list li::before, .check-list li::before { content: ""; position: absolute; left: 0; top: 25px; width: 12px; height: 2px; background: var(--c-gold); }
.support-list { padding: 8px 16px !important; }
.support-list li { padding: 14px 16px 14px 38px; }
.support-list li::before { left: 14px; top: 27px; }
.media { min-height: 440px; background: var(--c-primary-soft) center/cover; box-shadow: 18px 18px 0 var(--c-ivory); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(255,255,255,.22); }
.stat { padding: 28px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.22); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: #e6cf9e; font-family: var(--font-serif); font-size: 42px; }
.timeline { counter-reset: step; }
.timeline-item { position: relative; padding: 0 0 36px 68px; }
.timeline-item::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--c-primary); font-weight: 700; }
.timeline-item::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 1px; background: var(--c-border); }
.timeline-item:last-child::after { display: none; }
.timeline-item h3 { margin-bottom: 5px; color: var(--c-primary); }
.timeline-item p { color: var(--c-muted); }
.case-card { overflow: hidden; border: 1px solid var(--c-border); background: #fff; }
.case-image { aspect-ratio: 16/10; background: var(--c-primary-soft) center/cover; }
.case-body { padding: 28px; }
.case-body h3 { color: var(--c-primary); }
.tag { display: inline-block; margin-bottom: 13px; color: var(--c-gold-deep); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.case-features { display: flex; flex-direction: column; gap: 0; }
.case-feature { padding: 64px 0; }
.case-feature + .case-feature { border-top: 1px solid var(--c-border); }
.case-feature-title { margin: 6px 0 18px; color: var(--c-primary); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.4; }
.case-feature-text > p { color: var(--c-muted); }
.case-feature-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(18px, 1fr)); gap: 28px 20px; margin-top: 34px; }
.case-feature-icon-item { text-align: center; }
.case-feature-icon-item .icon { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--c-gold-deep); }
.case-feature-icon-item span { display: block; margin: 0 auto 12px; color: var(--c-primary); font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.case-feature-icon-item::after { content: ""; display: block; width: 26px; height: 2px; margin: 0 auto; background: var(--c-gold); }
.case-feature-single { display: flex; align-items: center; gap: 20px; margin-top: 34px; }
.icon-circle { flex: 0 0 auto; width: 62px; height: 62px; display: grid; place-items: center; border: 1.5px solid var(--c-gold-deep); border-radius: 50%; }
.icon-circle .icon { width: 26px; height: 26px; margin: 0; color: var(--c-gold-deep); }
.case-feature-single p { margin: 0; color: var(--c-primary); font-size: 14.5px; font-weight: 600; line-height: 1.8; white-space: pre-line; }
.case-feature-media { position: relative; }
.case-feature-media-main { aspect-ratio: 4/3; background: var(--c-primary-soft) center/cover; box-shadow: var(--shadow); }
.case-feature-media-overlap { position: absolute; right: -26px; bottom: -34px; width: 54%; aspect-ratio: 4/3; background: var(--c-primary-soft) center/cover; border: 6px solid #fff; box-shadow: 0 20px 45px rgba(23,41,65,.25); }
.case-feature-media-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-feature-media-grid figure { margin: 0; }
.case-feature-media-grid .thumb { aspect-ratio: 4/3; background: var(--c-primary-soft) center/cover; }
.case-feature-media-grid figcaption { margin-top: 9px; padding: 0 2px; color: var(--c-primary); font-size: 10px; font-weight: 600; letter-spacing: -.01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-feature-quote { display: flex; align-items: center; gap: 26px; margin-top: 56px; }
.case-feature-quote .rule { flex: 1; height: 2px; background: var(--c-gold); opacity: .55; }
.case-feature-quote p { margin: 0; color: var(--c-gold); font-family: var(--font-serif); font-size: clamp(17px, 2vw, 21px); text-align: center; white-space: nowrap; }
@media (max-width: 1480px) {
  .case-feature-media-overlap { right: -12px; bottom: -22px; width: 50%; }
}
@media (max-width: 680px) {
  .case-feature { padding: 46px 0; }
  .case-feature-media-overlap { position: static; width: 100%; margin-top: 14px; border-width: 4px; }
  .case-feature-media-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .case-feature-quote { flex-direction: column; gap: 14px; }
  .case-feature-quote .rule { width: 40px; height: 2px; }
  .case-feature-quote p { white-space: normal; }
}
.quote { padding: 38px; border-left: 3px solid var(--c-gold); background: var(--c-ivory); font-family: var(--font-serif); font-size: 20px; }

.message-section { position: relative; overflow: hidden; }
.message-split { align-items: stretch; }
.message-media { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.message-media img { display: block; width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; }
.message-copy { display: flex; flex-direction: column; }
.message-section .section-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.message-quote { margin: 14px 0 18px; padding: 16px 20px; border-left: 3px solid var(--c-gold); background: var(--c-ivory); color: var(--c-primary); font-family: var(--font-serif); font-size: clamp(14.5px, 1.4vw, 16px); font-weight: 600; line-height: 1.55; white-space: pre-line; }
.message-section p { font-size: 13.5px; line-height: 1.75; }
.message-signature { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.message-signature .sig-org { color: var(--c-primary); font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.message-signature .sig-name { color: var(--c-primary); font-family: var(--font-serif); font-size: 20px; font-weight: 600; white-space: nowrap; }
.message-section .btn { margin-top: 14px; min-height: 38px; padding: 8px 18px; gap: 6px; font-size: 12.5px; align-self: flex-start; }
.btn-pill { border-radius: 999px; }
.message-watermark { margin-top: auto; padding-top: 14px; color: var(--c-primary); font-family: var(--font-serif); font-size: clamp(46px, 6vw, 76px); font-weight: 700; letter-spacing: .05em; line-height: 1; white-space: nowrap; overflow: hidden; user-select: none; text-align: right; }
@media (max-width: 1480px) {
  .message-media img { aspect-ratio: 16/11; }
}
@media (max-width: 680px) {
  .message-split { align-items: start; }
  .message-watermark { font-size: clamp(34px, 12vw, 52px); margin-top: 18px; }
}
.pricing-card { max-width: 760px; margin: 0 auto; padding: 40px; border: 1px solid var(--c-border); background: #fff; text-align: center; }
.pricing-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.pricing-tags span { padding: 7px 16px; border: 1px solid var(--c-border); border-radius: 999px; color: var(--c-primary); font-size: 12.5px; font-weight: 600; }
.pricing-list { list-style: none; margin: 0 0 24px; padding: 0; text-align: left; }
.pricing-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 4px; border-bottom: 1px solid var(--c-border); }
.pricing-list li span { color: var(--c-text); font-size: 14.5px; }
.pricing-list li b { color: var(--c-gold-deep); font-size: 14.5px; white-space: nowrap; }
.pricing-note { margin-bottom: 26px; color: var(--c-muted); font-size: 12.5px; }
.pricing-dialog { width: min(920px, 92vw); max-height: 90vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.pricing-dialog::backdrop { background: rgba(23, 41, 65, .72); }
.pricing-dialog img { width: 100%; max-height: 86vh; object-fit: contain; background: #fff; }
.pricing-dialog-close { position: absolute; top: -18px; right: -18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--c-primary); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 680px) {
  .pricing-card { padding: 26px 20px; }
  .pricing-dialog-close { top: -14px; right: 0; }
}
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { padding: 17px 20px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.profile-table th { width: 190px; color: var(--c-primary); background: var(--c-ivory); }

.contact { background: var(--c-primary-2); color: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; }
.contact h2 { color: #fff; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-list b { display: inline-block; width: 90px; color: #e6cf9e; }
.contact-form { padding: 30px; background: #fff; color: var(--c-text); }
.contact-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 260px; padding: 34px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
.contact-panel p { max-width: 560px; color: rgba(255,255,255,.82); font-size: 17px; }
body[data-page="home"] .contact { padding: 82px 0; }
body[data-page="home"] .contact-grid { display: flex; justify-content: center; }
body[data-page="home"] .contact-grid > div:first-child,
body[data-page="home"] .contact-panel p { display: none; }
body[data-page="home"] .contact-panel { min-height: 0; padding: 0; border: 0; background: transparent; align-items: center; }
body[data-page="home"] .contact-panel .btn { min-height: 66px; padding: 18px 46px; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 5px; color: var(--c-primary); font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 12px; border: 1px solid var(--c-border); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }

.news-grid { align-items: stretch; }
.news-card { height: 100%; transition: transform .22s ease, box-shadow .22s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card a { display: flex; flex-direction: column; height: 100%; }
.news-card h3 { margin-bottom: 12px; }
.news-card p { margin-bottom: 0; }
.news-empty { grid-column: 1 / -1; margin: 0; color: var(--c-muted); }
.news-more { margin-top: 34px; }
.news-detail .tag { margin-bottom: 18px; }
.news-body { margin-top: 34px; color: var(--c-text); font-size: 16px; line-height: 2; }
.news-body p { margin-bottom: 20px; }
.news-body h2 { margin: 34px 0 14px; color: var(--c-primary); font-size: 30px; }
.news-body h3 { margin: 28px 0 10px; color: var(--c-primary); font-size: 23px; }
.news-body ul, .news-body ol { margin: 0 0 22px; padding-left: 1.6em; }
.news-body blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--c-gold); background: var(--c-ivory); color: var(--c-primary); }
.news-body img { max-width: 100%; height: auto; margin: 24px 0; box-shadow: var(--shadow); }
.news-attachments { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--c-border); }
.news-attachments h3 { color: var(--c-primary); font-size: 22px; }
.news-attachment-list { display: grid; gap: 12px; }
.news-attachment { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--c-border); background: #fff; }
.news-attachment:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-attachment-kind { display: grid; place-items: center; width: 58px; height: 44px; background: var(--c-primary-soft); color: var(--c-primary); font-size: 12px; font-weight: 800; }
.news-attachment b { display: block; color: var(--c-primary); }
.news-attachment small { color: var(--c-muted); }
.news-back { margin-top: 40px; }

.footer { padding: 58px 0 24px; background: #172941; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer h3, .footer h4 { color: #fff; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #e6cf9e; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1480px) {
  .nav-menu { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 22px 24px; background: #fff; border-bottom: 1px solid var(--c-border); flex-direction: column; align-items: flex-start; }
  .nav-menu.open { display: flex; }
  .mobile-toggle { display: grid; }
  .nav-actions .btn { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 42px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 68px 0; }
  .topbar-inner span:first-child { display: none; }
  .nav-inner { height: 68px; }
  .nav-logo img { height: 40px; }
  .nav-menu { top: 68px; }
  .lang-switch button { padding: 5px 7px; }
  .hero { min-height: 590px; }
  .page-hero { min-height: 390px; }
  .hero h1 { font-size: 39px; }
  .hero .lead { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .stat:last-child { border-bottom: 0; }
  .card { padding: 25px; }
  .media { min-height: 300px; }
  .profile-table th, .profile-table td { display: block; width: 100%; }
  .profile-table th { padding-bottom: 6px; }
  .profile-table td { padding-top: 8px; }
  .contact-form { padding: 22px; }
  .footer-bottom { flex-direction: column; }
}
