/* ============================================================
   在日通 — 共通样式
   移动优先;字体栈兼顾简体中文 + 日文环境
   ============================================================ */
:root {
  --c-primary: #287fc0;
  --c-primary-deep: #185d91;
  --c-primary-soft: #eaf5ff;
  --c-accent: #ef9f28;
  --c-accent-soft: #fff5e3;
  --c-ok: #059669;
  --c-ok-soft: #e6f7f1;
  --c-warn: #b45309;
  --c-danger: #b42318;
  --c-danger-soft: #fff0ee;
  --c-info: #1d4ed8;
  --c-info-soft: #eef4ff;
  --c-text: #172033;
  --c-text-sub: #667085;
  --c-line: #e6e8ec;
  --c-bg: #fbfaf8;
  --c-card: #ffffff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 10px 30px rgba(16, 24, 40, .055);
  --shadow-lift: 0 4px 10px rgba(16, 24, 40, .05), 0 22px 54px rgba(16, 24, 40, .10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI",
          "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans", sans-serif;
}

html:lang(vi) {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Noto Sans", Arial, sans-serif;
}

/* Kokuho city landing pages */
.kokuho-city-page { padding-top: 24px; padding-bottom: 72px; }
.kokuho-city-page .crumb { margin: 4px 0 18px; color: var(--c-text-sub); font-size: 13px; }
.kokuho-city-page .crumb a { color: inherit; text-decoration: none; }
.kokuho-city-page .crumb a:hover { color: var(--c-text); }
.kokuho-estimated-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid #f4b6b0;
  border-radius: 16px;
  background: #fff1ef;
  color: #a52b23;
  font-weight: 700;
}
.kokuho-city-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 14%, rgba(255,255,255,.8), transparent 32%),
    linear-gradient(135deg, #e9f4ff 0%, #effaf4 48%, #fff4df 100%);
}
.kokuho-city-rate-section,
.kokuho-city-calculator,
.kokuho-city-copy,
.kokuho-city-neighbors,
.kokuho-city-related {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(27, 42, 65, .09);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 48px rgba(27, 42, 65, .07);
}
.kokuho-city-rate-section { background: linear-gradient(145deg, #ffffff, #f5f9ff); }
.kokuho-city-calculator { background: linear-gradient(145deg, #fff8e9, #fffdf8); }
.kokuho-city-copy { background: linear-gradient(145deg, #effaf5, #fbfffd); }
.kokuho-city-page .section-head { margin-bottom: 20px; }
.kokuho-city-page .section-head h2 { margin: 4px 0 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.03em; }
.kokuho-rate-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(27, 42, 65, .1); }
.kokuho-rate-table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; }
.kokuho-rate-table th,
.kokuho-rate-table td { padding: 15px 14px; border-bottom: 1px solid rgba(27, 42, 65, .08); text-align: right; white-space: nowrap; }
.kokuho-rate-table thead th { background: #edf5ff; color: #36516f; font-size: 12px; }
.kokuho-rate-table th:first-child { text-align: left; }
.kokuho-rate-table tbody tr:nth-child(2) th { color: #7b4d00; }
.kokuho-rate-table tbody tr:nth-child(3) th { color: #6a3c8d; }
.kokuho-rate-table tbody tr:nth-child(4) th { color: #a33c4a; }
.kokuho-city-notes { display: grid; gap: 10px; margin: 20px 0; }
.kokuho-city-notes p { margin: 0; padding: 13px 15px; border-radius: 14px; background: rgba(237, 245, 255, .72); color: var(--c-text-sub); }
.kokuho-city-notes strong { margin-right: 6px; color: var(--c-text); }
.kokuho-city-copy p { max-width: 78ch; color: var(--c-text-sub); line-height: 1.9; }
.kokuho-neighbor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kokuho-neighbor-grid a {
  display: flex;
  min-height: 96px;
  padding: 17px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(27, 42, 65, .09);
  border-radius: 18px;
  background: #fff;
  color: var(--c-text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kokuho-neighbor-grid a:nth-child(3n + 1) { background: #f1f7ff; }
.kokuho-neighbor-grid a:nth-child(3n + 2) { background: #f2fbf6; }
.kokuho-neighbor-grid a:nth-child(3n) { background: #fff7e8; }
.kokuho-neighbor-grid a:hover { transform: translateY(-2px); border-color: rgba(48, 109, 174, .28); box-shadow: 0 12px 28px rgba(27, 42, 65, .08); }
.kokuho-neighbor-grid span { margin-top: 5px; color: var(--c-text-sub); font-size: 13px; line-height: 1.5; }

@media (max-width: 680px) {
  .kokuho-city-page { padding-top: 12px; }
  .kokuho-city-rate-section,
  .kokuho-city-calculator,
  .kokuho-city-copy,
  .kokuho-city-neighbors,
  .kokuho-city-related { padding: 22px; border-radius: 22px; }
  .kokuho-neighbor-grid { grid-template-columns: 1fr; }
}

.tool-spokes { margin-top: 34px; margin-bottom: 34px; padding: clamp(24px, 4vw, 38px); border-radius: 26px; background: linear-gradient(135deg, #eef6ff, #f4fbf7 55%, #fff8eb); }
.tool-spokes h2 { margin: 5px 0 20px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.tool-spoke-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tool-spoke-card { display: flex; min-height: 112px; padding: 18px; flex-direction: column; justify-content: center; border: 1px solid rgba(27, 42, 65, .09); border-radius: 18px; background: rgba(255, 255, 255, .9); color: var(--c-text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.tool-spoke-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27, 42, 65, .08); }
.tool-spoke-card span { margin-top: 7px; color: var(--c-text-sub); font-size: 13px; line-height: 1.55; }

@media (max-width: 680px) {
  .tool-spokes { width: min(100% - 28px, 560px); padding: 22px; }
  .tool-spoke-grid { grid-template-columns: 1fr; }
}

/* Multilingual navigation -------------------------------------------------- */
.language-switcher {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.language-switcher select {
  min-height: 44px;
  max-width: 128px;
  padding: 0 30px 0 12px;
  border: 1px solid rgba(24, 33, 51, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.language-suggestion {
  position: relative;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  background: #182133;
  color: #fff;
  font-size: 13px;
}
.language-suggestion a { color: #fff; font-weight: 800; text-decoration: underline; }
.language-suggestion button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .76);
  cursor: pointer;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 680px) {
  .language-switcher select { max-width: 106px; min-height: 44px; font-size: 12px; }
  .language-suggestion { flex-wrap: wrap; gap: 8px 12px; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* JS 可用时才隐藏待入场元素,避免无 JS 环境下内容不可见 */
.js [data-reveal] { opacity: 0; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; position: relative;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 700; font-size: 17px; color: var(--c-text);
  text-decoration: none;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #e8798d 100%);
  color: #fff; display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
}
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 70px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--c-line); border-radius: 10px;
  background: #fff; color: var(--c-text); font: 700 14px/1 var(--font);
  cursor: pointer;
}
@media (max-width: 620px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 2px; padding: 10px;
    background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
    box-shadow: var(--shadow-lift);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 12px; }
}
.nav-links a {
  display: inline-flex; min-height: 44px; align-items: center;
  color: var(--c-text-sub); text-decoration: none; font-size: 14px;
  padding: 8px 12px; border-radius: 8px; transition: all .2s;
}
.nav-links a:hover { color: var(--c-primary); background: var(--c-primary-soft); }
.nav-links a[href*="type=feedback"],
.nav-links a[href*="type=business"] {
  display: inline-flex; min-height: 44px; align-items: center;
  border: 1px solid rgba(23, 32, 51, .09); border-radius: 999px; font-weight: 720;
}
.nav-links a[href*="type=feedback"] {
  color: #9f514f; background: #ffe9e7; border-color: #f0cbc8;
}
.nav-links a[href*="type=business"] {
  color: #5f46a6; background: #f1ecff; border-color: #d9cef6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(29, 78, 216, .34);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 36px; text-align: center; }
.hero h1 {
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 800; line-height: 1.3; letter-spacing: .01em;
}
.hero h1 .hl { color: var(--c-primary); }
.hero .sub {
  margin: 16px auto 0; max-width: 560px;
  color: var(--c-text-sub); font-size: clamp(15px, 2.5vw, 17px);
}
.hero .cta-row { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 首页功能区块(大标题 + 小按钮,纵向排列) ---------- */
.feature { padding: 46px 0; text-align: center; }
.feature + .feature { border-top: 1px solid var(--c-line); }
.feature .f-icon {
  width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
  font-weight: 850; letter-spacing: .04em; color: var(--c-primary-deep);
  background: var(--c-primary-soft); border: 1px solid #f0cbd4;
}
.feature .kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--c-primary); background: var(--c-primary-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.feature h2 { font-size: clamp(22px, 4.8vw, 30px); font-weight: 800; line-height: 1.4; }
.feature p {
  color: var(--c-text-sub); max-width: 520px;
  margin: 12px auto 24px; font-size: 15px;
}

/* ---------- 广告位预留(AdSense 接入前的占位) ---------- */
.ad-slot {
  display: grid; place-items: center; text-align: center;
  border: 1.5px dashed #ecc9d1; border-radius: 12px;
  background: #fdf3f5; color: #80515d;
  font-size: 12px; letter-spacing: .1em; line-height: 1.8;
}
.ad-banner { height: 90px; max-width: 728px; margin: 0 auto 20px; display: none; }
.ad-rect { height: 250px; margin-top: 16px; }
.ad-tower { height: 600px; margin-top: 16px; }

/* ---------- 首页侧栏 ---------- */
.home-side { display: none; }
.side-tools h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.side-tools a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 10px 2px; text-decoration: none; color: var(--c-text);
  font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--c-line);
}
.side-tools a:last-of-type { border-bottom: none; }
.side-tools a:hover { color: var(--c-primary); }
.side-tools .arr { color: var(--c-primary); font-weight: 800; }

/* 桌面端:紧凑 hero + 主内容/侧栏两栏 + 功能横向卡片,提高信息密度 */
@media (min-width: 1000px) {
  .hero { padding: 42px 0 24px; }
  .hero h1 { font-size: 40px; }
  .hero .sub { font-size: 16.5px; margin-top: 14px; }
  .wrap-wide { max-width: 1200px; }
  .home-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px; align-items: start;
  }
  .home-side { display: block; }
  .ad-banner { display: grid; }
  .feature {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 8px 22px; align-items: center; text-align: left;
    background: var(--c-card); border: 1px solid rgba(229, 231, 235, .7);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px 28px; margin-bottom: 14px;
    transition: transform .18s, box-shadow .18s;
  }
  .feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
  .feature + .feature { border-top: none; }
  .feature .f-icon { margin: 0; }
  .feature .f-body { min-width: 0; }
  .feature .kicker { font-size: 12px; padding: 3px 10px; margin-bottom: 8px; }
  .feature h2 { font-size: 21px; }
  .feature p { font-size: 14.5px; max-width: none; margin: 6px 0 0; }
  .feature .btn { white-space: nowrap; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; border: none; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 14px rgba(217, 85, 107, .3); }
.btn-primary:hover { background: var(--c-primary-deep); box-shadow: 0 6px 20px rgba(217, 85, 107, .4); }
.btn-ghost { background: var(--c-card); color: var(--c-primary); border: 1.5px solid var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.btn-accent { background: var(--c-accent); color: #3d2800; box-shadow: 0 4px 14px rgba(180, 83, 9, .22); }
.btn-accent:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; opacity: .58; box-shadow: none; transform: none;
}

/* ---------- 分区 ---------- */
.section { padding: 40px 0; }
.section-head { margin-bottom: 24px; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--c-primary); background: var(--c-primary-soft);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(21px, 3.6vw, 27px); font-weight: 800; }
.section-head p { color: var(--c-text-sub); margin-top: 8px; max-width: 620px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--c-card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
  border: 1px solid rgba(229, 231, 235, .6);
}
a.card { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: var(--c-primary-soft); margin-bottom: 14px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--c-text-sub); }
.card.disabled { opacity: .62; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px; vertical-align: middle;
}
.badge-live { background: var(--c-ok-soft); color: var(--c-ok); }
.badge-soon { background: #f3f4f6; color: var(--c-text-sub); }
.badge-best { background: #9a5700; color: #fff; box-shadow: 0 2px 8px rgba(154,87,0,.3); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--c-text-sub); margin-top: 5px; }
.input, .select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--c-line); background: #fff;
  font-family: var(--font); font-size: 16px; color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(217, 85, 107, .12);
}
.input-unit { position: relative; min-width: 0; }
.input-unit .input { padding-right: 64px; min-width: 0; }
.input-unit .unit {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--c-text-sub); font-size: 14px; pointer-events: none;
}

/* 数字单位已经显示在输入框右侧，隐藏浏览器自带的小箭头，避免和“円/年/人”挤在一起。 */
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--c-primary); cursor: pointer; }
.check-row .t { font-weight: 600; font-size: 15px; }

.subform {
  border-left: 3px solid var(--c-primary-soft);
  padding: 4px 0 4px 16px; margin: 6px 0 14px;
}
.subform.hidden { display: none; }

/* ---------- 结果面板 ---------- */
.result-panel {
  background: linear-gradient(160deg, #92263f 0%, #a9344d 52%, var(--c-primary) 100%);
  color: #fff; border-radius: 20px; padding: 30px 26px;
  box-shadow: 0 12px 36px rgba(143, 47, 69, .28); scroll-margin-top: 76px;
}
.result-panel .label { font-size: 14px; opacity: .85; }
.result-panel .big {
  font-size: clamp(34px, 8vw, 48px); font-weight: 800;
  line-height: 1.2; margin: 6px 0 2px; font-variant-numeric: tabular-nums;
}
.result-panel .big .yen { font-size: .55em; font-weight: 700; margin-right: 4px; opacity: .9; }
.result-rows { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 6px; }
.result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; font-size: 14.5px;
}
.result-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.result-row .v.minus { color: #ffe3b3; }
.result-row .v.plus { color: #a7f3d0; }
.result-cta { margin-top: 22px; display: grid; gap: 10px; }

/* ---------- 汇款比较卡片 ---------- */
.rank-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--c-card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
  border: 1.5px solid transparent;
}
.rank-card.best { border-color: var(--c-accent); background: linear-gradient(135deg, #fffdf8, #fff8ec); }
.rank-card .rank {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: #f3f4f6; color: var(--c-text-sub);
}
.rank-card.best .rank { background: #9a5700; color: #fff; }
.rank-card .mid { flex: 1; min-width: 0; }
.rank-card .name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank-card .meta { font-size: 12.5px; color: var(--c-text-sub); margin-top: 3px; }
.rank-card .recv { text-align: right; flex: none; }
.rank-card .recv .cny { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-card .recv .fee { font-size: 12px; color: var(--c-text-sub); margin-top: 2px; }
.rank-card .go {
  flex: none; margin-left: 4px; font-size: 13px; font-weight: 600;
  color: var(--c-primary); text-decoration: none; white-space: nowrap;
  padding: 8px 14px; border-radius: 9px; background: var(--c-primary-soft);
  transition: background .2s;
}
.rank-card .go:hover { background: #f6d5dc; }
@media (max-width: 560px) {
  .rank-card { flex-wrap: wrap; }
  .rank-card .recv { text-align: left; width: 100%; order: 4; padding-left: 50px; }
  .rank-card .go { order: 5; margin-left: auto; }
}

.diff-note {
  margin-top: 18px; padding: 14px 18px; border-radius: 12px;
  background: var(--c-accent-soft); color: var(--c-warn);
  font-size: 14px; font-weight: 600;
}

/* ---------- 可信度、状态与来源 ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin: -14px auto 26px; max-width: 760px;
}
.trust-item {
  background: rgba(255,255,255,.94); border: 1px solid var(--c-line);
  border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow);
}
.trust-item strong { display: block; font-size: 13.5px; }
.trust-item span { display: block; color: var(--c-text-sub); font-size: 12px; margin-top: 2px; }

.data-notice {
  border: 1px solid #e7bdc7; border-left: 5px solid var(--c-primary);
  border-radius: 12px; background: #fff7f8; color: #6f2638;
  padding: 14px 16px; margin: 14px 0; font-size: 14px;
}
.data-notice strong { display: block; color: var(--c-text); margin-bottom: 3px; }
.data-notice.danger { background: var(--c-danger-soft); border-color: #f2b8b1; border-left-color: var(--c-danger); color: #7a271a; }
.data-notice.info { background: var(--c-info-soft); border-color: #bfd2ff; border-left-color: var(--c-info); color: #1e429f; }

.status-list { display: grid; gap: 10px; margin-top: 18px; }
.status-line {
  display: flex; justify-content: space-between; gap: 18px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: 14px;
}
.status-line:last-child { border-bottom: none; }
.status-line strong { flex: 0 0 auto; }
.status-line span { color: var(--c-text-sub); text-align: right; }
.status-pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 750;
}
.status-pill.ok { background: var(--c-ok-soft); color: #047857; }
.status-pill.pending { background: var(--c-accent-soft); color: #8a4b06; }
.status-pill.blocked { background: var(--c-danger-soft); color: var(--c-danger); }

.source-list { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.source-list a, .text-link {
  color: var(--c-primary-deep); font-size: 13px; font-weight: 700;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.privacy-note {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 14px;
  color: var(--c-text-sub); font-size: 12.5px;
}
.privacy-note strong { color: var(--c-text); }

.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.action-row .btn { flex: 1 1 190px; }

.quote-grid { display: grid; gap: 12px; margin-top: 18px; }
#quote-results, #checklists { scroll-margin-top: 76px; }
#quote-results:focus, #checklists:focus, .result-panel:focus { outline: none; }
.quote-row {
  display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(130px, 1fr);
  gap: 12px; align-items: end; padding: 16px;
  border: 1px solid var(--c-line); border-radius: 14px; background: #fff;
}
.quote-row .field { margin: 0; }
.quote-result {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--c-line); border-radius: 14px; background: #fff;
}
.quote-result.is-best { border-color: var(--c-ok); background: #f5fffb; }
.quote-result .rank {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #f3f4f6; color: var(--c-text-sub); font-weight: 800;
}
.quote-result.is-best .rank { background: var(--c-ok); color: #fff; }
.quote-result .quote-name { font-weight: 800; }
.quote-result .quote-meta { color: var(--c-text-sub); font-size: 12.5px; margin-top: 2px; }
.quote-result .quote-amount { text-align: right; font-size: 19px; font-weight: 800; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 说明区块 ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15px; color: #374151; }
.prose ul, .prose ol { padding-left: 22px; margin: 8px 0; }
.prose li { margin: 5px 0; }
.prose .formula {
  background: var(--c-primary-soft); border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px; font-weight: 600;
  color: var(--c-primary-deep); margin: 10px 0; overflow-wrap: anywhere;
}
.callout {
  border-left: 4px solid var(--c-accent); background: var(--c-accent-soft);
  border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 14px 0;
  font-size: 14px; color: #7c4a03;
}

details.faq {
  background: var(--c-card); border-radius: 12px; box-shadow: var(--shadow);
  padding: 16px 20px; margin-bottom: 10px;
}
details.faq summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; position: relative; padding-right: 24px; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--c-primary); font-weight: 800; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { font-size: 14px; color: var(--c-text-sub); margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer { margin-top: 56px; padding: 32px 0 40px; border-top: 1px solid var(--c-line); background: #fff; }
.footer .wrap { font-size: 12.5px; color: var(--c-text-sub); }
.footer .links { margin-bottom: 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer .links a { color: var(--c-text-sub); text-decoration: none; }
.footer .links a:hover { color: var(--c-primary); }
.footer .disclaimer { line-height: 1.8; }

/* ---------- 工具页布局 ---------- */
.tool-layout { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .tool-layout { grid-template-columns: 1fr 1fr; } }
.tool-head { padding: 36px 0 8px; }
.tool-head h1 { font-size: clamp(23px, 4.5vw, 32px); font-weight: 800; line-height: 1.35; }
.tool-head .sub { color: var(--c-text-sub); margin-top: 8px; font-size: 15px; }
.crumb { font-size: 13px; color: var(--c-text-sub); padding-top: 18px; }
.crumb a { color: var(--c-primary); text-decoration: none; }

@media (max-width: 680px) {
  .hero { padding: 38px 0 28px; }
  .trust-strip { grid-template-columns: 1fr; margin-top: -10px; }
  .trust-item { padding: 10px 12px; }
  .status-line { display: block; }
  .status-line span { display: block; text-align: left; margin-top: 3px; }
  .quote-row { grid-template-columns: 1fr; }
  .quote-result { grid-template-columns: 34px minmax(0, 1fr); }
  .quote-result .quote-amount { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   2026.08 C 端视觉升级
   多色生活工具 + Apple 式留白；保留原有计算器结构与可访问性
   ============================================================ */

body {
  letter-spacing: -.006em;
  background: #fbfaf8;
}

.wrap-wide { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }

.nav {
  background: rgba(255,255,255,.88);
  border-bottom-color: rgba(23,32,51,.08);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.nav-inner { height: 72px; padding: 0; }
.brand { gap: 11px; font-size: 19px; font-weight: 780; letter-spacing: -.02em; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; flex: none; }
.brand small {
  display: block; margin-left: 2px; color: var(--c-text-sub);
  font-size: 11px; font-weight: 540; letter-spacing: 0;
}
.nav-links { gap: 8px; }
.nav-links a { padding: 9px 11px; color: #4c5567; font-size: 14px; font-weight: 590; }
.nav-links a:hover { color: var(--tool-strong, #185d91); background: var(--tool-soft, #edf6ff); }
.nav-toggle {
  min-width: 64px; min-height: 44px; border-radius: 999px;
  background: #fff; border-color: rgba(23,32,51,.11); font-size: 13px;
}

/* 首页 */
.home-page { background: #fffdf9; }
.home-page .nav { position: sticky; top: 0; z-index: 50; }
.home-page .nav-links { align-items: center; }
.home-page .nav-links a.is-active:not(.nav-contact-link) {
  color: #185f98; background: #e8f4ff;
}
.home-page .nav-links .nav-contact-link {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 15px;
  border: 1px solid rgba(23,32,51,.1); border-radius: 999px; font-weight: 720;
}
.home-page .nav-links .nav-feedback-link { color: #9f514f; background: #ffe9e7; border-color: #f0cbc8; }
.home-page .nav-links .nav-feedback-link:hover { color: #8d403e; background: #ffdfdc; }
.home-page .nav-links .nav-business-link { color: #5f46a6; background: #f1ecff; border-color: #d9cef6; }
.home-page .nav-links .nav-business-link:hover { color: #503895; background: #e8dfff; }
.nav-quick-contact { display: none; align-items: center; gap: 6px; }
.nav-quick-contact a {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px;
  border: 1px solid rgba(23,32,51,.1); border-radius: 999px; text-decoration: none;
  font-size: 11px; font-weight: 760; white-space: nowrap;
}
.nav-quick-contact .nav-feedback-link { color: #9f514f; background: #ffe9e7; border-color: #f0cbc8; }
.nav-quick-contact .nav-business-link { color: #5f46a6; background: #f1ecff; border-color: #d9cef6; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.home-hero {
  display: grid; grid-template-columns: minmax(360px,.82fr) minmax(520px,1.18fr);
  align-items: center; gap: 56px; min-height: 420px; padding-top: 38px; padding-bottom: 22px;
}
.home-hero-copy { padding-left: 8px; }
.home-eyebrow {
  color: #3d8063; font-size: 15px; font-weight: 720; margin-bottom: 16px;
}
.home-hero h1 {
  max-width: 560px; font-size: clamp(48px,5.6vw,76px); line-height: 1.05;
  letter-spacing: -.055em; font-weight: 850;
}
.home-lead {
  margin-top: 24px; color: #5c6574; font-size: clamp(18px,2vw,23px);
  line-height: 1.65; letter-spacing: -.018em;
}
.home-hero-art {
  height: 390px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 28px;
}
.home-hero-art img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
}
.life-section { padding: 44px 0 26px; }
.life-section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px;
}
.life-section-head h2 {
  font-size: clamp(28px,3.3vw,42px); line-height: 1.15; letter-spacing: -.04em;
}
.life-section-head p { color: var(--c-text-sub); font-size: 16px; }
.life-grid {
  display: grid; grid-template-columns: 1.08fr 1fr 1fr; grid-auto-rows: 238px;
  gap: 18px;
}
.life-card {
  --life-ink: #305c91;
  position: relative; display: block; min-width: 0; overflow: hidden;
  border-radius: 28px; padding: 28px 28px 24px; color: var(--c-text);
  text-decoration: none; border: 1px solid rgba(23,32,51,.06);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s;
}
.life-card:hover { transform: translateY(-5px); box-shadow: 0 24px 58px rgba(23,32,51,.11); border-color: rgba(23,32,51,.11); }
.life-card:active { transform: scale(.985); }
.life-card-large { grid-row: span 2; padding: 34px; }
.life-card-gaimen { background: #e8f4ff; --life-ink: #1d76bd; }
.life-card-kokuho { background: #ebf7e6; --life-ink: #438b52; }
.life-card-eiju { background: #fff0d9; --life-ink: #b66b0a; }
.life-card-nenkin { background: #f1ecff; --life-ink: #7659c4; }
.life-card-soukin { background: #ffe9e7; --life-ink: #c85b58; }
.life-copy { position: relative; z-index: 2; max-width: 58%; }
.life-card-large .life-copy { max-width: 100%; }
.life-card h3 {
  color: var(--life-ink); font-size: clamp(22px,2.2vw,31px); line-height: 1.2;
  letter-spacing: -.035em; margin: 0 0 10px; font-weight: 820;
}
.life-card p { max-width: 330px; color: #4f596a; font-size: 14.5px; line-height: 1.7; }
.life-cta {
  display: inline-flex; margin-top: 18px; min-height: 42px; align-items: center;
  padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.88);
  color: var(--life-ink); font-size: 14px; font-weight: 760; box-shadow: 0 3px 12px rgba(23,32,51,.06);
}
.life-art {
  position: absolute; right: 12px; bottom: 6px; width: 44%; height: 82%;
  object-fit: contain; object-position: right bottom;
}
.life-card-large .life-art {
  right: 20px; bottom: 14px; width: 88%; height: 50%; object-position: center bottom;
}
.home-footer { margin-top: 44px; background: #fffdf9; }

/* 首页：按留学生活阶段找事情 */
.journey-home { scroll-behavior: smooth; }
.journey-home .home-hero { min-height: 400px; }
.journey-picker { padding: 28px 0 48px; }
.journey-picker-note {
  margin: 0 0 14px; color: #5c6574; font-size: 14px; font-weight: 650;
}
.journey-entry-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.journey-entry {
  --journey-ink: #236887;
  display: flex; min-height: 184px; flex-direction: column; align-items: flex-start;
  padding: 24px; border: 1px solid rgba(23,32,51,.07); border-radius: 24px;
  color: var(--c-text); text-decoration: none; box-shadow: 0 12px 32px rgba(23,32,51,.045);
  opacity: .74;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, border-color .25s, opacity .25s;
}
.journey-entry:hover {
  transform: translateY(-5px); box-shadow: 0 22px 48px rgba(23,32,51,.09);
  border-color: color-mix(in srgb, var(--journey-ink) 25%, transparent);
}
.journey-entry:active { transform: scale(.985); }
.journey-entry.is-active {
  opacity: 1; transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--journey-ink) 42%, transparent);
  box-shadow: 0 22px 52px color-mix(in srgb, var(--journey-ink) 16%, transparent);
}
.journey-entry.is-active:hover { transform: translateY(-4px); }
.journey-entry[role="tab"]:focus-visible { outline-color: color-mix(in srgb, var(--journey-ink) 45%, transparent); }
.journey-entry-arrival { background: #e8f4ff; --journey-ink: #176fa7; }
.journey-entry-living { background: #ebf7e6; --journey-ink: #357d48; }
.journey-entry-leaving { background: #f1ecff; --journey-ink: #674db0; }
.journey-entry-time {
  display: inline-flex; min-height: 30px; align-items: center; padding: 0 12px;
  border-radius: 999px; background: rgba(255,255,255,.78); color: var(--journey-ink);
  font-size: 12px; font-weight: 760;
}
.journey-entry strong {
  margin-top: 18px; color: var(--journey-ink); font-size: clamp(26px,2.5vw,34px);
  line-height: 1.12; letter-spacing: -.04em;
}
.journey-entry p { margin-top: 8px; max-width: 340px; color: #535d6c; font-size: 14px; line-height: 1.6; }
.journey-entry-link {
  margin-top: auto; padding-top: 12px; color: var(--journey-ink); font-size: 13px; font-weight: 780;
}
.journey-entry-link::after { content: " →"; }

.journey-compact-shell {
  position: sticky; top: 72px; z-index: 44; padding: 9px 0;
  background: linear-gradient(180deg, rgba(255,253,249,.97) 72%, rgba(255,253,249,0));
  pointer-events: none;
}
.journey-compact-nav {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  padding: 6px; border: 1px solid rgba(23,32,51,.09); border-radius: 999px;
  background: rgba(255,255,255,.88); box-shadow: 0 12px 34px rgba(23,32,51,.09);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  pointer-events: auto;
}
.journey-compact-link {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: 999px; color: #5c6574; text-decoration: none;
  font-size: 13px; font-weight: 760; transition: color .18s, background .18s, box-shadow .18s;
}
.journey-compact-link:hover { color: #243044; background: #f2f4f6; }
.journey-compact-arrival.is-active { color: #176fa7; background: #e8f4ff; box-shadow: inset 0 0 0 1px #c9e4f7; }
.journey-compact-living.is-active { color: #357d48; background: #ebf7e6; box-shadow: inset 0 0 0 1px #cee7c8; }
.journey-compact-leaving.is-active { color: #674db0; background: #f1ecff; box-shadow: inset 0 0 0 1px #ddd2f7; }

.home-find { padding: 22px 0 48px; }
.home-find-card {
  padding: 34px; border: 1px solid rgba(23,32,51,.08); border-radius: 30px;
  background: linear-gradient(145deg, #fff 0%, #f6faff 55%, #fbf8ff 100%);
  box-shadow: 0 18px 48px rgba(23,32,51,.065);
}
.home-find-head {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr);
  align-items: end; gap: 28px;
}
.home-find-eyebrow { margin-bottom: 8px; color: #407f67; font-size: 13px; font-weight: 780; }
.home-find-head h2 { font-size: clamp(28px,3.4vw,44px); line-height: 1.12; letter-spacing: -.04em; }
.home-find-intro > p { color: #5b6575; font-size: 15px; line-height: 1.7; }
.home-find-intro > a {
  display: inline-flex; margin-top: 9px; color: #276f99; font-size: 13px; font-weight: 760;
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.home-find-search { display: block; margin-top: 24px; }
.home-find-search input {
  width: 100%; min-height: 58px; padding: 0 20px; border: 1px solid #cfd6df;
  border-radius: 18px; color: #172033; background: rgba(255,255,255,.94); font: inherit;
  font-size: 17px; box-shadow: 0 8px 24px rgba(23,32,51,.055);
  transition: border-color .18s, box-shadow .18s;
}
.home-find-search input:focus {
  outline: none; border-color: #4a92c3; box-shadow: 0 0 0 4px rgba(74,146,195,.14), 0 10px 28px rgba(23,32,51,.07);
}
.home-find-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.home-find-filters button,
.home-find-more {
  min-height: 42px; padding: 0 16px; border: 1px solid rgba(23,32,51,.1); border-radius: 999px;
  color: #526071; background: rgba(255,255,255,.86); font: inherit; font-size: 13px; font-weight: 730;
  cursor: pointer; transition: transform .18s, color .18s, background .18s, border-color .18s;
}
.home-find-filters button:hover,
.home-find-more:hover { transform: translateY(-1px); border-color: rgba(23,32,51,.2); }
.home-find-filters button.is-active { color: #fff; border-color: #266f99; background: #266f99; }
.home-find-status { margin-top: 19px; color: #667181; font-size: 12.5px; font-weight: 680; }
.home-guide-results {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 11px;
}
.home-guide-card {
  --guide-card-color: #36779f;
  display: flex; min-height: 156px; min-width: 0; flex-direction: column; padding: 19px;
  border: 1px solid rgba(23,32,51,.075); border-radius: 20px; color: #263246;
  background: rgba(255,255,255,.9); text-decoration: none; box-shadow: 0 8px 22px rgba(23,32,51,.04);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.home-guide-card:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--guide-card-color) 28%, transparent);
  box-shadow: 0 15px 32px rgba(23,32,51,.08);
}
.home-guide-card-arrival { --guide-card-color: #176fa7; }
.home-guide-card-living { --guide-card-color: #357d48; }
.home-guide-card-leaving { --guide-card-color: #674db0; }
.home-guide-stage {
  width: fit-content; margin-bottom: 10px; padding: 4px 9px; border-radius: 999px;
  color: var(--guide-card-color); background: color-mix(in srgb, var(--guide-card-color) 10%, #fff);
  font-size: 11px; font-weight: 780;
}
.home-guide-card strong { font-size: 17px; line-height: 1.4; }
.home-guide-card p {
  display: -webkit-box; margin-top: 8px; overflow: hidden; color: #5b6575; font-size: 13px; line-height: 1.65;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.home-find-empty { margin: 18px 0 4px; color: #815d34; font-size: 14px; }
.home-find-more { display: block; margin: 20px auto 0; color: #256c96; background: #fff; }

.journey-panel-stack { scroll-margin-top: 142px; min-height: 680px; }
.journey-band { scroll-margin-top: 142px; padding: 58px 0 82px; }
.journey-band-arrival { background: #f6fbff; }
.journey-band-living { background: #f7fbf5; }
.journey-band-leaving { background: #faf8ff; }
.journey-section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: center; gap: 36px; min-height: 330px; margin-bottom: 34px; padding: 34px 38px;
  border: 1px solid rgba(23,32,51,.065); border-radius: 30px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(23,32,51,.055);
}
.journey-band-arrival .journey-section-head { background: #e8f4ff; }
.journey-band-living .journey-section-head { background: #ebf7e6; }
.journey-band-leaving .journey-section-head { background: #f1ecff; }
.journey-section-copy { max-width: 670px; }
.journey-kicker { color: #5d6877; font-size: 14px; font-weight: 720; margin-bottom: 10px; }
.journey-section-head h2 { font-size: clamp(38px,5vw,60px); line-height: 1.05; letter-spacing: -.05em; }
.journey-section-head h2 + p { margin-top: 13px; color: #596474; font-size: 17px; line-height: 1.7; }
.journey-section-art {
  width: 100%; min-width: 0; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden;
  background: rgba(255,255,255,.72);
}
.journey-section-art img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.journey-badge {
  display: inline-flex; min-height: 42px; align-items: center; padding: 0 17px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(23,32,51,.08); color: #525d6d; font-size: 13px; font-weight: 730;
  box-shadow: 0 6px 18px rgba(23,32,51,.045); white-space: nowrap; margin-top: 22px;
}
.journey-subhead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin: 38px 0 18px; padding-top: 24px; border-top: 1px solid rgba(23,32,51,.08);
}
.journey-section-head + .journey-subhead { margin-top: 0; padding-top: 0; border-top: 0; }
.journey-subhead span {
  display: inline-flex; min-height: 30px; align-items: center; padding: 0 11px;
  border-radius: 999px; background: #e7f3fb; color: #286f96; font-size: 12px; font-weight: 780;
}
.journey-subhead h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.025em; text-align: right; }
.student-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.student-card {
  display: flex; min-width: 0; min-height: 252px; flex-direction: column; padding: 24px;
  border: 1px solid rgba(23,32,51,.075); border-radius: 22px; background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(23,32,51,.045);
}
.student-card-priority { border-top: 5px solid #2d86c8; padding-top: 20px; }
.student-tag {
  display: inline-flex; width: fit-content; min-height: 27px; align-items: center; padding: 0 10px;
  border-radius: 999px; background: rgba(255,255,255,.8); color: inherit; font-size: 11px; font-weight: 760;
}
.student-card > .student-tag { background: #edf4f8; color: #476477; }
.student-card h3, .leave-step h3 {
  margin-top: 16px; font-size: 20px; line-height: 1.3; letter-spacing: -.025em;
}
.student-card p, .leave-step p { margin-top: 10px; color: #596474; font-size: 14px; line-height: 1.72; }
.student-action {
  display: inline-flex; width: fit-content; margin-top: auto; padding-top: 18px;
  color: #236f94; font-size: 13px; line-height: 1.45; font-weight: 780; text-decoration: none;
}
.student-action::after { content: " →"; }
.student-action:hover { text-decoration: underline; text-underline-offset: 3px; }

.help-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 20px; padding: 26px 28px; border: 1px solid #c9e1c8; border-radius: 22px;
  background: #eaf6e7; color: #274e31;
}
.help-strip > div { max-width: 820px; }
.help-strip span { font-size: 12px; font-weight: 780; color: #4a7b56; }
.help-strip h3 { margin-top: 7px; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
.help-strip p { margin-top: 8px; color: #506658; font-size: 14px; line-height: 1.7; }
.help-strip a {
  display: inline-flex; flex: none; min-height: 46px; align-items: center; padding: 0 18px;
  border-radius: 999px; background: #fff; color: #347441; font-size: 14px; font-weight: 780;
  text-decoration: none; box-shadow: 0 6px 16px rgba(39,78,49,.08);
}

.journey-tools {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px;
}
.journey-tool-card { min-height: 290px; padding: 26px; }
.journey-tool-card .life-copy { max-width: 68%; }
.journey-tool-card .student-tag { color: var(--life-ink); }
.journey-tool-card h3 { margin-top: 14px; }
.journey-tool-card .life-art { width: 40%; height: 58%; }
.journey-tools-leaving { grid-template-columns: 1.25fr .75fr; }
.journey-tools-leaving .journey-tool-card { min-height: 310px; }
.journey-tool-featured .life-copy { max-width: 64%; }

.leave-checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.leave-step {
  display: flex; min-height: 240px; flex-direction: column; padding: 25px;
  border-radius: 22px; border: 1px solid rgba(103,77,176,.11); background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(74,55,126,.045);
}
.leave-step > span {
  display: inline-flex; width: fit-content; min-height: 28px; align-items: center; padding: 0 10px;
  border-radius: 999px; background: #f1ecff; color: #674db0; font-size: 11px; font-weight: 780;
}
.leave-step .student-action { color: #674db0; }
.journey-home .home-footer { margin-top: 0; }
.footer-contact-actions {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 24px;
}
.footer-contact-button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px;
  border: 1px solid rgba(23,32,51,.09); border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 760; box-shadow: 0 8px 22px rgba(23,32,51,.06);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.footer-contact-button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,32,51,.1); }
.footer-feedback-button { color: #9f514f; background: #ffe9e7; }
.footer-business-button { color: #5f46a6; background: #f1ecff; }

.content-trust-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 34px; padding: 24px 26px; border: 1px solid rgba(23,32,51,.085);
  border-radius: 22px; background: #f7f8f9; color: #4d5868;
}
.content-trust-copy { min-width: 0; }
.content-trust-copy > span { color: #6a7482; font-size: 11px; font-weight: 780; }
.content-trust-copy h2 { margin-top: 5px; color: #273245; font-size: 19px; line-height: 1.3; }
.content-trust-copy p { margin-top: 6px; font-size: 13px; line-height: 1.65; }
.content-trust-meta span { white-space: pre; }
.content-trust-bar > a {
  display: inline-flex; flex: none; min-height: 44px; align-items: center; justify-content: center;
  padding: 0 17px; border: 1px solid #d6cbea; border-radius: 999px; color: #5f46a6;
  background: #fff; font-size: 13px; font-weight: 760; text-decoration: none;
}
.content-trust-bar > a:hover { background: #f1ecff; }

/* 五个工具的独立配色 */
.tool-page {
  --tool-accent: #287fc0;
  --tool-strong: #185d91;
  --tool-soft: #eaf5ff;
  --tool-soft-2: #d8ecff;
  --tool-line: #b9dcf5;
  background: #fcfcfb;
}
.theme-gaimen { --tool-accent:#2d86c8; --tool-strong:#185f98; --tool-soft:#e8f4ff; --tool-soft-2:#d6ebfd; --tool-line:#b8dbf4; }
.theme-kokuho { --tool-accent:#54a05d; --tool-strong:#347441; --tool-soft:#ebf7e6; --tool-soft-2:#dff1d8; --tool-line:#c3e3bc; }
.theme-eiju { --tool-accent:#d28a22; --tool-strong:#9a5f0c; --tool-soft:#fff1dc; --tool-soft-2:#ffe5bf; --tool-line:#f4d39e; }
.theme-nenkin { --tool-accent:#8066c9; --tool-strong:#5f46a6; --tool-soft:#f1ecff; --tool-soft-2:#e6dcff; --tool-line:#d3c5f5; }
.theme-soukin { --tool-accent:#d86a67; --tool-strong:#a74745; --tool-soft:#ffeceb; --tool-soft-2:#ffdfdc; --tool-line:#efc5c2; }

.tool-page .wrap { max-width: 1080px; }
.tool-page .nav-inner { max-width: 1320px; }
.tool-page .crumb { padding-top: 22px; }
.tool-page .crumb a, .tool-page .text-link, .tool-page .source-list a { color: var(--tool-strong); }
.tool-head-modern {
  min-height: 230px; margin-top: 16px; padding: 36px 40px;
  display: grid; grid-template-columns: minmax(0,1fr) 250px; align-items: center; gap: 28px;
  border-radius: 28px; background: var(--tool-soft); overflow: hidden;
}
.tool-head-copy { min-width: 0; }
.tool-head-modern h1 {
  font-size: clamp(34px,5vw,52px); line-height: 1.12; letter-spacing: -.045em;
}
.tool-head-modern .sub { max-width: 650px; margin-top: 15px; font-size: 17px; line-height: 1.7; color: #515c6c; }
.tool-head-art { width: 100%; height: 190px; object-fit: contain; }

.tool-page .tool-layout { gap: 28px; padding-top: 28px; }
.tool-page .card {
  border-radius: 24px; padding: 28px; border-color: rgba(23,32,51,.075);
  box-shadow: 0 10px 34px rgba(23,32,51,.055);
}
.tool-page form.card { border-top: 5px solid var(--tool-accent); }
.form-title { margin-bottom: 22px; }
.form-title h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.form-title p { margin-top: 7px; color: var(--c-text-sub); font-size: 14px; }
.tool-page .field { margin-bottom: 22px; }
.tool-page .field > label { font-size: 15px; font-weight: 720; margin-bottom: 8px; }
.tool-page .field .hint { font-size: 13px; line-height: 1.65; }
.tool-page .input, .tool-page .select {
  min-height: 50px; padding: 13px 15px; border-radius: 14px;
  border-color: #d8dce2; background: #fff; font-size: 16px;
}
.tool-page .input-unit .input { padding-right: 66px; }
.tool-page .input:focus, .tool-page .select:focus {
  border-color: var(--tool-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tool-accent) 16%, transparent);
}
.tool-page .check-row input[type="checkbox"] { accent-color: var(--tool-accent); }
.tool-page .subform { border-left-color: var(--tool-line); }
.tool-page .btn { border-radius: 14px; min-height: 48px; font-weight: 720; }
.tool-page .btn-primary {
  background: var(--tool-accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--tool-accent) 22%, transparent);
}
.tool-page .btn-primary:hover { background: var(--tool-strong); box-shadow: 0 10px 24px color-mix(in srgb, var(--tool-accent) 28%, transparent); }
.tool-page .btn-accent { background: var(--tool-accent); color: #fff; }
.tool-page .data-notice,
.tool-page .data-notice.danger,
.tool-page .data-notice.info {
  background: #fff8e9; border: 1px solid #f1d9aa; border-left: 5px solid #e5a43a;
  color: #6f541c; border-radius: 17px; padding: 16px 18px;
}
.tool-page .data-notice strong { font-size: 15px; margin-bottom: 4px; }
.tool-page .callout {
  border: 0; border-radius: 16px; background: #fff8e9; color: #6e571f; padding: 15px 17px;
}
.tool-page .privacy-note {
  margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px;
  background: #f6f7f8; color: #6b7280;
}
.tool-page .privacy-note strong { color: #3d4655; }
.tool-page .privacy-note a {
  margin-left: 5px; color: var(--tool-strong); font-weight: 700; text-underline-offset: 3px;
}
[data-analytics-consent-row] {
  padding: 13px 14px; border: 1px solid var(--tool-line, #d9dee5); border-radius: 14px;
  background: var(--tool-soft, #f6f7f8);
}
[data-analytics-consent-row] input { accent-color: var(--tool-accent, #287fc0); }

.tool-page .result-panel {
  background: var(--tool-soft); color: var(--c-text); border: 1px solid var(--tool-line);
  border-radius: 24px; box-shadow: 0 12px 36px color-mix(in srgb, var(--tool-accent) 13%, transparent);
  scroll-margin-top: 84px;
}
.tool-page #quote-results { scroll-margin-top: 84px; }
.tool-page .result-panel .label { color: var(--tool-strong); opacity: 1; font-weight: 720; }
.tool-page .result-panel .big { color: var(--tool-strong); }
.tool-page .result-rows { border-top-color: color-mix(in srgb, var(--tool-accent) 25%, transparent); }
.tool-page .result-row { border-bottom: 1px solid color-mix(in srgb, var(--tool-accent) 12%, transparent); }
.tool-page .result-row:last-child { border-bottom: 0; }
.tool-page .result-row .v.minus { color: #b54b43; }
.tool-page .result-row .v.plus { color: #2f7c4a; }
.tool-page .result-panel .hint { color: #586273 !important; }
.tool-page .result-panel .btn {
  background: #fff !important; color: var(--tool-strong) !important;
  border: 1px solid var(--tool-line); box-shadow: none;
}
.tool-page .result-panel .btn.btn-accent {
  background: var(--tool-accent) !important; color: #fff !important; border-color: var(--tool-accent);
}
.tool-page .quote-result.is-best { border-color: var(--tool-accent); background: var(--tool-soft); }
.tool-page .quote-result.is-best .rank { background: var(--tool-accent); }
.tool-page .section-head .kicker, .tool-page .badge-live { color: var(--tool-strong); background: var(--tool-soft); }
.tool-page .prose .formula { background: var(--tool-soft); color: var(--tool-strong); }
.tool-page details.faq summary::after { color: var(--tool-accent); }
.official-link-row {
  grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  color: inherit; text-decoration: none;
}

.learn-more {
  margin: 38px 0 0; border-top: 1px solid var(--c-line); padding-top: 22px;
}
.learn-more > summary {
  width: fit-content; cursor: pointer; list-style: none; padding: 12px 18px;
  border-radius: 999px; background: #f2f4f6; color: #465061; font-size: 14px; font-weight: 720;
}
.learn-more > summary::-webkit-details-marker { display: none; }
.learn-more > summary::after { content: " +"; color: var(--tool-accent); }
.learn-more[open] > summary::after { content: " −"; }
.learn-more-body { padding-top: 8px; }

.footer {
  background: #fbfbfa; border-top-color: rgba(23,32,51,.08); margin-top: 72px;
}
.footer .links a:hover { color: var(--tool-strong, #185d91); }

@media (max-width: 1180px) {
  .home-page .brand small { display: none; }
  .home-page .nav-toggle { display: none; }
  .home-page .nav-links { display: none; }
  .home-page .nav-quick-contact { display: flex; }
}

@media (max-width: 1280px) {
  .tool-page .nav-toggle { display: inline-flex; }
  .tool-page .nav-links {
    display: none; position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 2px; padding: 10px;
    background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
    box-shadow: var(--shadow-lift);
  }
  .tool-page .nav-links.is-open { display: flex; }
  .tool-page .nav-links a { padding: 11px 12px; }
}

@media (max-width: 1000px) {
  .wrap-wide { width: min(100% - 32px, 820px); }
  .home-hero { grid-template-columns: 1fr 1fr; gap: 24px; min-height: 360px; }
  .home-hero-art { height: 310px; }
  .life-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 250px; }
  .life-card-large { grid-row: span 2; }
  .life-card:nth-child(5) { grid-column: 2; }
  .journey-entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-entry { min-height: 170px; }
  .journey-section-head { grid-template-columns: minmax(0,1fr) minmax(280px,.82fr); gap: 24px; padding: 30px; }
  .student-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-tools { grid-template-columns: 1fr 1fr; }
  .journey-tools .journey-tool-card:last-child { grid-column: 1 / -1; }
  .journey-tools-leaving { grid-template-columns: 1fr 1fr; }
  .journey-tools-leaving .journey-tool-card:last-child { grid-column: auto; }
  .leave-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-guide-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .wrap-wide { width: min(100% - 28px, 560px); }
  .nav-inner { height: 62px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand { font-size: 17px; }
  .brand small { display: none; }
  .home-page .nav { position: relative; }
  .home-page .brand-logo { width: 32px; height: 32px; }
  .home-page .brand { gap: 9px; font-size: 17px; }
  .home-page .nav-inner { height: auto; min-height: 62px; padding: 9px 0; flex-wrap: wrap; row-gap: 7px; }
  .home-page .nav-quick-contact {
    order: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 100%; gap: 6px; margin: 0;
  }
  .home-page .nav-quick-contact a { min-height: 44px; padding: 0 10px; font-size: 12px; }
  .home-page .language-switcher { order: 2; flex: 0 0 auto; justify-content: flex-end; margin-left: auto; }
  .nav-links { top: 100%; margin: 0 2px; }
  .home-hero { display: flex; flex-direction: column; min-height: 0; padding: 48px 0 6px; gap: 22px; text-align: center; }
  .home-hero-copy { padding: 0; }
  .home-eyebrow { font-size: 14px; margin-bottom: 12px; }
  .home-hero h1 { font-size: clamp(44px,14vw,58px); }
  .home-lead { margin-top: 18px; font-size: 17px; }
  .home-hero-art { width: 100%; height: 260px; }
  .journey-home .home-hero { padding-top: 42px; }
  .journey-picker { padding: 16px 0 26px; }
  .journey-picker-note { margin-bottom: 10px; font-size: 13px; }
  .journey-entry-grid { grid-template-columns: 1fr; gap: 10px; }
  .journey-entry {
    min-height: 92px; padding: 13px 16px; border-radius: 18px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center;
  }
  .journey-entry-time { min-height: 24px; padding: 0 9px; font-size: 10px; grid-column: 1; width: fit-content; }
  .journey-entry strong { margin-top: 9px; font-size: 24px; grid-column: 1; }
  .journey-entry p { display: none; }
  .journey-entry-link {
    grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; padding: 8px 0 8px 14px;
    font-size: 12px; white-space: nowrap;
  }
  .journey-entry-link::after { content: " →"; }
  .journey-compact-shell { top: 0; padding: 7px 0; }
  .journey-compact-nav { gap: 4px; padding: 5px; }
  .journey-compact-link { min-height: 42px; padding: 0 7px; font-size: 11px; line-height: 1.2; text-align: center; }
  .home-find { padding: 14px 0 34px; }
  .home-find-card { padding: 23px 18px; border-radius: 23px; }
  .home-find-head { display: block; }
  .home-find-head h2 { font-size: 30px; }
  .home-find-intro > p { margin-top: 10px; font-size: 14px; }
  .home-find-search { margin-top: 18px; }
  .home-find-search input { min-height: 54px; padding: 0 15px; border-radius: 15px; font-size: 16px; }
  .home-find-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-find-filters button { padding: 0 8px; }
  .home-guide-results { grid-template-columns: 1fr; }
  .home-guide-card { min-height: 138px; padding: 17px; }
  .journey-band { padding: 42px 0 58px; scroll-margin-top: 68px; }
  .journey-panel-stack { scroll-margin-top: 68px; }
  .journey-section-head { display: flex; flex-direction: column; gap: 22px; min-height: 0; margin-bottom: 24px; padding: 26px 22px; }
  .journey-section-copy { width: 100%; }
  .journey-section-head h2 { font-size: 44px; }
  .journey-section-head h2 + p { font-size: 15px; }
  .journey-badge { margin-top: 16px; }
  .journey-section-art { width: 100%; aspect-ratio: 3 / 2; border-radius: 20px; }
  .journey-section-art img { object-fit: contain; object-position: center bottom; }
  .journey-subhead { display: block; }
  .journey-subhead h3 { margin-top: 10px; text-align: left; }
  .student-grid, .journey-tools, .journey-tools-leaving, .leave-checklist { grid-template-columns: 1fr; }
  .journey-tools .journey-tool-card:last-child,
  .journey-tools-leaving .journey-tool-card:last-child { grid-column: auto; }
  .student-card, .leave-step { min-height: 224px; padding: 22px; }
  .journey-tool-card, .journey-tools-leaving .journey-tool-card { min-height: 300px; padding: 24px; }
  .journey-tool-card .life-copy, .journey-tool-featured .life-copy { max-width: 78%; }
  .journey-tool-card .life-art { width: 46%; height: 50%; }
  .help-strip { display: block; padding: 24px; }
  .help-strip a { width: fit-content; margin-top: 18px; }
  .footer-contact-actions { flex-direction: column; gap: 10px; }
  .footer-contact-button { width: 100%; }
  .official-link-row { grid-template-columns: 1fr; align-items: start; }
  .official-link-row .text-link { margin-top: 5px; }
  .life-section { padding-top: 42px; }
  .life-section-head { display: block; text-align: center; margin-bottom: 20px; }
  .life-section-head p { margin-top: 8px; font-size: 14px; }
  .life-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; }
  .life-card, .life-card-large { min-height: 300px; padding: 25px; grid-row: auto; grid-column: auto !important; }
  .life-copy, .life-card-large .life-copy { max-width: 100%; }
  .life-card p { max-width: 68%; }
  .life-card h3 { font-size: 26px; }
  .life-art, .life-card-large .life-art { right: 12px; bottom: 8px; width: 53%; height: 54%; object-position: right bottom; }
  .tool-head-modern {
    min-height: 0; margin-top: 12px; padding: 22px 20px;
    grid-template-columns: minmax(0,1fr) 92px; gap: 12px; text-align: left;
  }
  .tool-head-modern h1 { font-size: clamp(28px,9vw,36px); }
  .tool-head-modern .sub { margin-top: 9px; font-size: 14px; line-height: 1.55; }
  .tool-head-art { height: 92px; order: initial; }
  .tool-page .card { padding: 22px; }
  .tool-page .tool-layout { padding-top: 16px; }
  .content-trust-bar { align-items: stretch; flex-direction: column; gap: 16px; padding: 21px; }
  .content-trust-bar > a { width: 100%; }
  .content-trust-meta span { display: block; height: 0; overflow: hidden; }
  .content-trust-meta strong:nth-of-type(2) { display: inline-block; margin-top: 3px; }
}

/* Gaimen prefecture selector and static prefecture landing page */
.prefecture-search { margin-bottom: 9px; }
.gaimen-center-list { display: grid; gap: 8px; margin-top: 10px; }
.gaimen-center-item { padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 14px; background: #fff; }
.gaimen-center-item p { margin-top: 4px; font-size: 13px; color: var(--c-text-sub); }
.gaimen-pref-page { padding-bottom: 28px; }
.gaimen-pref-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); gap: 28px; align-items: center;
  margin: 20px 0 36px; padding: 40px; border: 1px solid rgba(18, 116, 105, .12); border-radius: 30px;
  background: linear-gradient(135deg, #f0fbf8, #fff7ec); box-shadow: 0 18px 45px rgba(24, 54, 66, .08);
}
.gaimen-pref-hero .kicker { color: var(--tool-strong); font-size: 13px; font-weight: 780; letter-spacing: .08em; }
.gaimen-pref-hero h1 { margin-top: 10px; font-size: clamp(30px, 5vw, 50px); line-height: 1.18; letter-spacing: -.03em; }
.gaimen-pref-hero .lead { max-width: 690px; margin-top: 16px; color: var(--c-text-sub); font-size: 17px; line-height: 1.75; }
.gaimen-pref-hero img { width: 100%; height: 250px; object-fit: contain; }
.gaimen-pref-content { max-width: 900px; margin: 0 auto; }
.gaimen-pref-content > section { margin-top: 44px; scroll-margin-top: 90px; }
.gaimen-pref-content h2 { margin-bottom: 14px; font-size: 26px; line-height: 1.35; }
.gaimen-pref-content h3 { font-size: 18px; }
.gaimen-pref-content p, .gaimen-pref-content li { color: #374151; line-height: 1.85; }
.gaimen-pref-intro { padding: 24px 26px; border-left: 5px solid var(--tool-accent); border-radius: 0 18px 18px 0; background: var(--tool-soft); font-size: 16px; }
.gaimen-pref-centers, .gaimen-pref-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gaimen-pref-center-card, .gaimen-pref-panel { padding: 24px; border: 1px solid var(--c-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(24, 54, 66, .06); }
.gaimen-pref-center-card p, .gaimen-pref-panel p { margin-top: 8px; }
.gaimen-pref-status { width: fit-content; padding: 4px 10px; border-radius: 999px; background: #e5f7ed; color: #17643d !important; font-size: 13px; font-weight: 720; }
.gaimen-pref-warning { padding: 14px 16px; border-radius: 14px; background: #fff2f0; color: #b42318 !important; }
.gaimen-pref-total { font-weight: 800; color: var(--tool-strong) !important; }
.gaimen-pref-fee-source { color: var(--c-text-sub) !important; font-size: 14px; }
.gaimen-pref-fee-ask { margin-top: 10px; padding-left: 20px; }
.gaimen-pref-fee-ask li { margin-top: 6px; }
.gaimen-pref-notice { padding: 22px 24px; border-radius: 18px; background: #fff7e8; }
.gaimen-pref-process { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: gaimen-step; }
.gaimen-pref-process li { position: relative; padding: 18px 20px 18px 58px; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; counter-increment: gaimen-step; }
.gaimen-pref-process li::before { content: counter(gaimen-step); position: absolute; left: 18px; top: 18px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--tool-accent); color: #fff; font-size: 13px; font-weight: 800; }
.gaimen-pref-process p { margin-top: 4px; }
.gaimen-pref-links { display: flex; flex-wrap: wrap; gap: 10px; }
.gaimen-pref-links a { padding: 10px 14px; border-radius: 999px; background: var(--tool-soft); text-decoration: none; font-weight: 680; }
.gaimen-pref-sources { padding: 24px; border-radius: 18px; background: #f7f8f8; }
.gaimen-pref-sources ul { padding-left: 20px; }

@media (max-width: 680px) {
  .gaimen-pref-hero { grid-template-columns: 1fr; padding: 26px 22px; text-align: center; }
  .gaimen-pref-hero img { height: 160px; order: -1; }
  .gaimen-pref-centers, .gaimen-pref-split { grid-template-columns: 1fr; }
  .gaimen-pref-content h2 { font-size: 23px; }
  .gaimen-pref-intro { padding: 20px; }
}

/* Kokuho city finder */
.kokuho-city-picker {
  padding: 18px;
  border: 1px solid rgba(41, 98, 87, .12);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(239, 250, 246, .9), rgba(248, 250, 255, .96));
  box-shadow: 0 12px 30px rgba(29, 78, 67, .07);
}
.kokuho-city-search-wrap { position: relative; }
.kokuho-city-search-wrap::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 17px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #687786;
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}
.kokuho-city-search-wrap::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 29px;
  top: calc(50% + 7px);
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #687786;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}
.kokuho-city-search {
  min-height: 54px;
  padding-left: 48px;
  border-color: rgba(67, 99, 111, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 16px rgba(34, 67, 74, .06);
}
.kokuho-city-search:focus {
  border-color: #2b8a78;
  box-shadow: 0 0 0 4px rgba(43, 138, 120, .14), 0 8px 20px rgba(34, 67, 74, .08);
}
.kokuho-popular,
.kokuho-same-pref {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.kokuho-city-chip {
  appearance: none;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(43, 138, 120, .16);
  border-radius: 999px;
  background: #e9f8f2;
  color: #1f6255;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.kokuho-city-chip:nth-child(3n + 2) { border-color: rgba(65, 105, 225, .14); background: #eef2ff; color: #405ca8; }
.kokuho-city-chip:nth-child(3n) { border-color: rgba(218, 126, 53, .16); background: #fff4e7; color: #9a5d2c; }
.kokuho-city-chip:hover,
.kokuho-city-chip:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(36, 76, 70, .1);
}
.kokuho-city-select-label {
  display: block;
  margin: 17px 0 7px;
  color: var(--c-text-sub);
  font-size: 12px;
  font-weight: 700;
}
.kokuho-city-select { border-radius: 14px; background-color: #fff; }
.kokuho-city-loading,
.kokuho-city-load-error { margin-top: 9px; font-size: 13px; font-weight: 650; }
.kokuho-city-loading { color: #326b60; }
.kokuho-city-load-error { color: #b42318; }
.kokuho-city-missing {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #f5b9ae;
  border-radius: 17px;
  background: #fff4f0;
  color: #714039;
  font-size: 13px;
  line-height: 1.7;
}
.kokuho-city-missing p + p { margin-top: 3px; }
.kokuho-city-missing label { display: block; margin: 12px 0 6px; font-weight: 750; }
.kokuho-city-missing .text-link { display: inline-block; margin-top: 13px; font-weight: 750; }
.kokuho-source-list {
  margin: 22px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
  color: var(--c-text-sub);
  font-size: 13px;
}
.kokuho-source-list-title { margin-bottom: 9px; font-weight: 750; color: var(--c-text); }
.kokuho-source-list #city-source-links { display: flex; flex-wrap: wrap; gap: 7px 15px; }
.kokuho-source-list a { color: var(--tool-strong); text-underline-offset: 3px; }

@media (max-width: 680px) {
  .kokuho-city-picker { padding: 15px; border-radius: 18px; }
  .kokuho-city-search { min-height: 52px; font-size: 15px; }
  .kokuho-popular { gap: 7px; }
  .kokuho-city-chip { min-height: 44px; padding: 7px 10px; font-size: 12px; }
}

/* 蜜罐字段：对人不可见、对读屏器隐藏，机器人仍会填 */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
