/* =========================================================
   深セン市中弘伝智咨詢有限公司
   Corporate site — minimal & elegant design system
   Palette: deep navy + warm gold on soft cream
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-soft: #f7f4ee;
  --c-soft-2: #f1ece2;
  --c-ink: #1d2733;
  --c-navy: #16263f;
  --c-navy-deep: #0e1b2e;
  --c-green: #079D0E;
  --c-green-soft: #1FAE25;
  --c-muted: #6c7682;
  --c-line: #e6e0d5;
  --maxw: 1160px;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(20, 30, 50, 0.06);
  --shadow-md: 0 14px 40px rgba(20, 30, 50, 0.10);
  --serif: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --sans: "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-green); color: #ffffff; }
.btn-primary:hover { background: var(--c-green-soft); box-shadow: 0 8px 22px rgba(176, 141, 79, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--c-navy); color: var(--c-navy); }
.btn-outline:hover { background: var(--c-navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--c-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark { flex: 0 0 auto; display: flex; align-items: center; }
.logo-mark img { height: 84px; width: auto; display: block; }
/* 左上角 logo 进一步靠左并放大 */
.site-header .nav { padding-left: 4px; }
.site-header .brand { margin-left: -6px; }
.brand-text { line-height: 1.25; }
.brand-text .jp { display: block; font-size: 15px; font-weight: 700; color: var(--c-navy); letter-spacing: .02em; }
.brand-text .en { display: block; font-size: 10.5px; color: var(--c-muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  position: relative;
  font-size: 15px;
  color: var(--c-ink);
  padding: 6px 0;
  font-weight: 500;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--c-green);
  transition: width .28s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--c-navy); font-weight: 700; }
.nav-cta { margin-left: 8px; }
.nav-cta-link { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--c-navy); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(176, 141, 79, .22), transparent 60%),
    linear-gradient(160deg, #1b2d49 0%, #16263f 48%, #0e1b2e 100%);
  color: #fff;
  padding: 122px 0 108px;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow {
  display: inline-block;
  color: var(--c-green-soft);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.34;
  margin: 0 0 22px;
  letter-spacing: .01em;
}
.hero h1 .accent { color: var(--c-green-soft); }
.hero .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 255, 255, .82);
  max-width: 600px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-deco {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 460px; max-width: 42vw;
  opacity: .5;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1b2d49, #0e1b2e);
  color: #fff;
  padding: 78px 0 70px;
}
.page-hero::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,79,.25), transparent 70%);
}
/* keep hero text above the decorative layers */
.page-hero .container { position: relative; z-index: 2; }
/* same green signature motif as the home hero (.hero-deco), scaled for the shorter band */
.page-hero-deco {
  position: absolute;
  right: -32px; top: 50%;
  transform: translateY(-50%);
  width: 240px; height: 240px;
  opacity: .5;
  z-index: 1;
  pointer-events: none;
}
.page-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.page-hero .breadcrumb a:hover { color: var(--c-green-soft); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
}
.page-hero p { color: rgba(255,255,255,.78); max-width: none; margin: 0; white-space: nowrap; }

/* ---------- Section ---------- */
.section { padding: 92px 0; }
.section.soft { background: var(--c-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker {
  display: inline-block;
  color: var(--c-green);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.4;
  margin: 0 0 14px;
  color: var(--c-navy);
}
.section-head p { color: var(--c-muted); margin: 0; font-size: 16px; }
.rule { width: 46px; height: 3px; background: var(--c-green); border: 0; margin: 0 auto 18px; border-radius: 3px; }

/* ---------- Values grid ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 600;
  color: var(--c-green);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.value-card .icon { margin: 14px 0 18px; color: var(--c-navy); }
.value-card h3 { font-size: 18px; margin: 0 0 12px; color: var(--c-navy); line-height: 1.5; }
.value-card p { color: var(--c-muted); font-size: 14.5px; margin: 0; }

/* ---------- Service preview / list ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .icon { color: var(--c-green); margin-bottom: 16px; }
.card h3 { font-size: 18px; margin: 0 0 10px; color: var(--c-navy); }
.card p { color: var(--c-muted); font-size: 14.5px; margin: 0 0 16px; }
.card .more { font-size: 14px; color: var(--c-green); font-weight: 600; }
.card .more::after { content: " →"; }

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--c-green); line-height: 1; }
.stat .label { color: var(--c-muted); font-size: 14px; margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, #1b2d49, #0e1b2e);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 34px); margin: 0 0 14px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; }
.cta-band .cta-lead { white-space: nowrap; }
@media (max-width: 900px) {
  /* 手机/平板：允许换行，避免 nowrap 撑破视口导致整页缩小、右侧留白 */
  .cta-band .cta-lead { white-space: normal; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy-deep); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 4px 0 16px; letter-spacing: .04em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .2s; }
.footer-col a:hover { color: var(--c-green-soft); }
.footer-col address { font-style: normal; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.72); }

.footer-qrcode {
  margin-top: 20px;
  text-align: center;
}
.footer-qrcode img {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  margin: 0 auto 8px;
}
.footer-qrcode p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.6);
  margin: 0;
}

.footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

/* ICP filing number (China MIIT requirement) */
.footer-icp { margin-top: 12px; font-size: 12.5px; }
.footer-icp a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-icp a:hover { color: var(--c-green-soft); }


/* ---------- About specifics ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .lead-text { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.7; color: var(--c-navy); margin: 0 0 22px; }
.split p { color: var(--c-muted); }
.philosophy { display: grid; gap: 28px; }
.philo-item { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; }
.philo-item .badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-soft-2); color: var(--c-green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; font-weight: 600;
}
.philo-item h3 { margin: 0 0 8px; color: var(--c-navy); font-size: 19px; }
.philo-item p { margin: 0; color: var(--c-muted); }

.table { width: 100%; border-collapse: collapse; }
.table tr { border-bottom: 1px solid var(--c-line); }
.table th, .table td { text-align: left; padding: 16px 18px; vertical-align: top; }
.table th { width: 30%; color: var(--c-navy); font-weight: 600; background: var(--c-soft); }
.table td { color: var(--c-muted); }
.table .office-address { margin: 0 0 10px; color: var(--c-muted); }
.table .office-photo {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.profile { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: start; }
.profile .avatar {
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(160deg, #1b2d49, #0e1b2e);
  color: var(--c-green-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 40px;
}
.profile h3 { margin: 0 0 4px; color: var(--c-navy); }
.profile .role { color: var(--c-green); font-size: 14px; margin: 0 0 14px; }
.profile p { color: var(--c-muted); margin: 0 0 12px; }

/* ---------- Leader profile (CEO) ---------- */
.leader-profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 52px;
  align-items: start;
}
.leader-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-soft-2);
  box-shadow: var(--shadow-md);
}
.leader-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}
.leader-body { display: flex; flex-direction: column; gap: 26px; }
.leader-header h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--c-navy);
  margin: 0 0 6px;
}
.leader-role { color: var(--c-green); font-weight: 600; font-size: 15px; margin: 0 0 16px; }
.leader-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.leader-contact li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-muted); }
.leader-contact .contact-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--c-soft-2);
  color: var(--c-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.leader-contact a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.leader-contact a:hover { color: var(--c-green); }
.leader-block h4 {
  font-size: 16px;
  color: var(--c-navy);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-green);
  display: inline-block;
}
.leader-block p { color: var(--c-muted); margin: 0 0 12px; }
.leader-tags { display: flex; flex-wrap: wrap; gap: 14px; }
.leader-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
}
.leader-tag .tag-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-green);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.leader-tag .tag-value { font-size: 14px; color: var(--c-navy); font-weight: 500; }
.leader-profile + .leader-profile { margin-top: 70px; }
.leader-list { margin: 12px 0 0; padding-left: 22px; color: var(--c-muted); }
.leader-list li { margin: 0 0 9px; line-height: 1.55; }

/* ---------- Services specifics ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.step .step-num {
  width: 42px; height: 42px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--c-navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600;
}
.step h4 { margin: 0 0 8px; color: var(--c-navy); font-size: 16px; }
.step p { margin: 0; color: var(--c-muted); font-size: 13.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--c-navy); margin-bottom: 8px; }
.field label .req { color: #c0392b; margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: var(--sans);
  border: 1px solid var(--c-line); border-radius: 10px; background: #fcfbf8;
  color: var(--c-ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(7,157,14,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .err { display: none; color: #c0392b; font-size: 12.5px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--c-muted); margin: 4px 0 22px; }
.form-success {
  display: none; background: #eef6ee; border: 1px solid #bfe0bf; color: #2f6f3a;
  padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px;
}
.form-success.show { display: block; }

.info-card { background: var(--c-soft); border-radius: var(--radius); padding: 34px 30px; }
.info-card h3 { margin: 0 0 18px; color: var(--c-navy); }
.info-list li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .k { color: var(--c-green); font-weight: 600; font-size: 14px; }
.info-list .v { color: var(--c-muted); }
.notice {
  margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--c-green);
  background: #fff; border-radius: 0 10px 10px 0; color: var(--c-muted); font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .values, .cards { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile { grid-template-columns: 1fr; }
  .leader-profile { grid-template-columns: 1fr; gap: 32px; }
  .leader-profile + .leader-profile { margin-top: 48px; }
  .leader-photo { max-width: 300px; margin: 0 auto; }
  .leader-header h3 { font-size: 26px; }
  .table .office-photo { max-width: 100%; }
  .page-hero-deco { width: 200px; height: 200px; right: -26px; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 92px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    padding: 8px 24px 16px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s ease;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--c-line); }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-links a.nav-cta-link {
    display: block; text-align: center; margin-top: 8px;
    background: var(--c-green); color: #ffffff; border-radius: 999px; font-weight: 600;
  }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 84px 0 76px; }
  .hero-deco { display: none; }
  .page-hero-deco { display: none; }
  .page-hero p { white-space: normal; }
}
@media (max-width: 540px) {
  .values, .cards, .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
}

/* ---------- Service detail modal ---------- */
.btn-detail {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--c-green);
  font-weight: 600;
  font-size: 14px;
}
.btn-detail:hover { opacity: .75; }
.btn-detail::after { content: " →"; }

/* card action row: 紹介 ／ 実績 side by side */
.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.card-actions .more { margin: 0; }
.card .more.btn-result {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: var(--c-navy);
  font-weight: 600;
  font-size: 14px;
  padding: 0 0 0 14px;
  border-left: 1px solid var(--c-line);
}
.card .more.btn-result:hover { opacity: .7; }

.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5);
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }

.modal-box {
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  width: min(680px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: transform .3s ease;
  /* background-image + gradient set dynamically via JS */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* hide scrollbar while keeping scroll functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-box::-webkit-scrollbar { display: none; }
.modal-overlay.show .modal-box { transform: translateY(0) scale(1); }

/* gradient overlay: image → dark (title) → soft fade → solid white.
   Many pixel stops spread the transition over a larger, softer range. */
.modal-box::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(11,27,51,.72) 0,
      rgba(11,27,51,.63) 50px,
      rgba(11,27,51,.54) 100px,
      rgba(11,27,51,.45) 145px,
      rgba(11,27,51,.37) 180px,
      rgba(255,255,255,.34) 210px,
      rgba(255,255,255,.70) 232px,
      #fff 250px
    );
  border-radius: inherit;
}

.modal-close {
  position: absolute; top: 14px; right: 16px;
  z-index: 2;
  background: rgba(0,0,0,.25); border: none;
  font-size: 26px; line-height: 1;
  color: #fff; cursor: pointer;
  padding: 6px 10px; border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background .2s;
}
.modal-close:hover { background: rgba(0,0,0,.5); }

.modal-title {
  position: relative; z-index: 1;
  font-size: 24px; font-weight: 700; color: #fff;
  margin: 0; padding: 150px 32px 40px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.modal-body {
  position: relative; z-index: 1;
  /* top 32px stays transparent so the overlay gradient keeps fading into the
     content area; below that it is solid white, keeping text fully readable */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0, #fff 32px);
  font-size: 15px; line-height: 1.75; color: #444;
  padding: 32px 32px 28px;
}
.modal-body h4 { font-size: 16px; font-weight: 700; color: var(--c-navy); margin: 22px 0 8px; }
.modal-body h4:first-child { margin-top: 4px; }
.modal-body ul { padding-left: 20px; margin: 8px 0; }
.modal-body li { margin-bottom: 6px; }
.modal-body p { margin: 8px 0; }

.modal-footer {
  position: relative; z-index: 1;
  background: #fff;
  margin-top: 0; padding: 0 32px 28px; text-align: right;
}
.btn-sm { padding: 10px 24px; font-size: 14px; }

/* ---------- Submit success modal ---------- */
.submit-success-overlay .modal-box::before { display: none; }

/* column wrapper: lets the illustration sit ABOVE (outside) the card's top edge */
.submit-success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(440px, 100%);
}
.submit-success-figure {
  display: block;
  width: 88%;
  max-width: 380px;
  height: auto;
  /* bottom edge tucks slightly behind the card so the figures appear to peek
     out from above the top border */
  margin-bottom: -14px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.submit-success-overlay .modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 64vh;
  padding: 40px 32px 32px;
  text-align: center;
}

@media (max-width: 540px) {
  .submit-success-figure { width: 76%; max-width: 290px; margin-bottom: -12px; }
  .submit-success-overlay .modal-box { max-height: 58vh; padding: 32px 22px 26px; }
}
.submit-success-overlay .modal-close {
  background: rgba(0,0,0,.05);
  color: #888;
}

/* ---------- Service result (実績) modal ---------- */
.result-box::before { display: none; }
.result-box { width: min(780px, 100%); }

.result-head {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #0e8f14, var(--c-green-soft));
  padding: 30px 32px 24px;
}
.result-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 10px;
}
.result-title {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.result-box .modal-close { background: rgba(0,0,0,.22); }

/* case (事例) page layout — reuses .result-body / .r-* */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.case-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.case-card .result-body { padding-bottom: 30px; }

/* ---- アコーディオン：見出し（タイトルのみ常時表示） ---- */
.case-head { margin: 0; }
.case-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 32px 24px;
  border: 0;
  background: linear-gradient(135deg, #0e8f14, var(--c-green-soft));
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: filter .22s ease;
}
.case-toggle:hover { filter: brightness(1.07); }
.case-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -7px;
  border-radius: 0;
}
.case-toggle-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.case-toggle-icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 50%;
  transition: background-color .25s ease;
}
.case-toggle-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .25s ease;
}
.case-toggle:hover .case-toggle-icon { background: rgba(255,255,255,.16); }
.case-card.open .case-toggle-icon { background: #fff; }
.case-card.open .case-toggle-icon::before {
  border-color: var(--c-green);
  transform: translate(-50%, -30%) rotate(-135deg);
}

/* ---- アコーディオン：伸縮する本文 ---- */
/* minmax(0,0fr) にすることで、本文の padding が折りたたみ高さに影響しない */
.case-collapse {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  overflow: hidden;
  visibility: hidden;
  transition:
    grid-template-rows .42s cubic-bezier(.4,0,.2,1),
    visibility 0s linear .42s;
}
.case-card.open .case-collapse {
  grid-template-rows: minmax(0, 1fr);
  visibility: visible;
  transition:
    grid-template-rows .42s cubic-bezier(.4,0,.2,1),
    visibility 0s;
}
.case-collapse > .result-body {
  min-height: 0;
  overflow: hidden;
}

.result-body {
  position: relative;
  z-index: 1;
  background: #fff;
  font-size: 14.5px;
  line-height: 1.75;
  color: #444;
  padding: 26px 32px 8px;
}

/* headline stats */
.r-stats {
  background: #f3faf3;
  border-left: 4px solid var(--c-green);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 26px;
}
.r-stats h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--c-green);
}
.r-stats li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 4px;
  color: var(--c-navy);
  font-size: 14.5px;
}
.r-stats li:last-child { margin-bottom: 0; }
.r-stats li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--c-green);
  font-weight: 700;
}

/* case study */
.r-case { border-top: 1px solid var(--c-line); padding-top: 22px; }
.r-case + .r-case { margin-top: 28px; }
.r-case:first-of-type { border-top: none; padding-top: 0; }
.r-case-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
}

.r-block { margin-bottom: 18px; }
.r-block > h5 {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-green);
}

.r-facts { margin: 0; }
.r-facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 7px;
  font-size: 14px;
}
.r-facts li:last-child { margin-bottom: 0; }
.r-k {
  flex: 0 0 auto;
  min-width: 86px;
  text-align: center;
  background: var(--c-soft);
  color: var(--c-navy);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
}
.r-v { color: #4b5560; }

/* issue → advice pairs */
.r-group { margin-bottom: 16px; }
.r-group:last-child { margin-bottom: 0; }
.r-group h6 {
  margin: 0 0 8px;
  padding-left: 9px;
  border-left: 3px solid var(--c-soft-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-navy);
}
.r-pair {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fcfcfa;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.r-pair:last-child { margin-bottom: 0; }
.r-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #4b5560;
}
.r-row + .r-row { margin-top: 6px; }
.r-tag {
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}
.r-tag-issue { color: #a86400; background: #fff3e0; }
.r-tag-advice { color: var(--c-green); background: #e9f7e9; }

/* support badge + results */
.r-support {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--c-green);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}
.r-results { counter-reset: rr; margin: 0; list-style: none; }
.r-results li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 9px;
  font-size: 14px;
  color: #4b5560;
}
.r-results li:last-child { margin-bottom: 0; }
.r-results li::before {
  counter-increment: rr;
  content: counter(rr);
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 事例ページ：図表（フロー図／問題点→助言マトリクス） ---------- */

/* 1サービスに2ケースある場合は横並び（980px以上） */
.r-panels { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 980px) {
  /* row-gap は 0：下の subgrid が左右で行を共有するため */
  .r-panels { grid-template-columns: 1fr 1fr; column-gap: 30px; row-gap: 0; }
  .r-panels .r-case { border-top: none; padding-top: 0; }
  .r-panels .r-case + .r-case { margin-top: 0; }

  /* 左右の図表（.fl）の上枠・下枠を同じ水平線に揃える。
     subgrid で「見出し / 図表 / 状況 / サポート / 成果」の各行を左右で共有するため、
     図表の行の高さが両パネルで必ず一致する（片方だけ背が高い状態がなくなる）。 */
  @supports (grid-template-rows: subgrid) {
    .r-panels .r-case {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 5;   /* h4 / .fl / .r-block / .r-support / .r-results の5行 */
      align-content: start;
    }
  }
}

/* パネル見出し（緑帯） */
.r-panel-head {
  margin: 0 0 16px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--c-green);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.r-text { margin: 0; font-size: 13.5px; color: #4b5560; line-height: 1.8; }

/* ---- フロー図 ---- */
.fl {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 148px;
  background: #f7faf7;
  border: 1px solid #dbe7db;
  border-radius: 10px;
  padding: 18px 16px;
  margin-bottom: 16px;
}
.fl-stack { display: flex; flex-direction: column; align-items: center; }
.fl-box {
  display: inline-block;
  background: #e7ebef;
  border: 1px solid #cdd6de;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.5;
  text-align: center;
}
.fl-box-green { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.fl-box-warn { background: #eef1f5; border-color: #b8c2cd; }

.fl-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.fl-cols { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; }
.fl-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.fl-col > .fl-fork { width: 100%; }
.fl-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2px; }
.fl-merge { display: flex; justify-content: center; margin-top: 4px; }
.fl-inline { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.fl-dept { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: 8px; }

.fl-vs { align-self: center; font-size: 11px; font-weight: 700; color: #7d8792; text-align: center; padding: 0 2px; }
.fl-vs::before { content: "\2194"; display: block; font-size: 16px; color: #a9b3bd; line-height: 1; margin-bottom: 2px; }

.fl-down { display: flex; flex-direction: column; align-items: center; font-size: 11.5px; font-weight: 700; color: #7d8792; line-height: 1.2; padding: 3px 0; }
.fl-down::after { content: "\25BC"; font-size: 9px; color: #b1bac3; margin-top: 1px; }
.fl-lbl { font-size: 11.5px; }
.fl-up { font-size: 11px; color: #b1bac3; line-height: 1; }
.fl-arrow-left, .fl-arrow-right { font-size: 15px; color: #a9b3bd; line-height: 1; }
.fl-dots { width: 2px; height: 16px; border-left: 2px dotted #b7c0c9; }
.fl-dots-h { width: 46px; height: 2px; border-top: 2px dotted #b7c0c9; }
.fl-link { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: #7d8792; line-height: 1.4; text-align: center; }
.fl-link .fl-arrow-right { font-size: 15px; }

.fl-note {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.2px;
  color: #5a6470;
  line-height: 1.65;
  background: #fff;
  border: 1px solid #dbe7db;
  text-align: left;
}
.fl-note-mini {
  background: #e9f0f8;
  border-color: #c6d6e6;
  color: var(--c-navy);
  font-size: 12px;
  padding: 6px 10px;
  text-align: center;
}
.fl-note strong { display: block; color: var(--c-navy); margin-bottom: 3px; }
.fl-note ul { margin: 0; padding-left: 16px; list-style: disc; }
.fl-note li { margin-bottom: 2px; }
.fl-note-mini.fl-note-list { text-align: left; }
.fl-note-mini.fl-note-list ul { margin-top: 2px; }

/* ---- 問題点 → 助言 マトリクス（監査） ---- */
.mx { border: 1px solid #dbe7db; border-radius: 10px; overflow: hidden; }
.mx-top { display: grid; grid-template-columns: 132px 1fr; }
.mx-side {
  display: flex; align-items: center; justify-content: center;
  background: #eaedf1;
  border-right: 1px solid #dbe7db;
  color: var(--c-navy);
  font-size: 13px; font-weight: 700;
  padding: 14px 10px;
}
.mx-bg { padding: 14px 16px; }
.mx-bg .r-facts li { font-size: 13.5px; }
.mx-flow { border-top: 1px solid #dbe7db; padding: 14px 16px 16px; }
.mx-heads { display: grid; grid-template-columns: 1fr 26px 1fr; gap: 8px; margin-bottom: 6px; }
.mx-head {
  text-align: center; font-size: 12.3px; font-weight: 700; color: #fff;
  background: #98a2ac; border-radius: 4px; padding: 5px 8px;
}
.mx-head-advice { background: var(--c-green); }
.mx-head-arrow { background: none; }
.mx-group {
  margin: 14px 0 8px;
  font-size: 15px; font-weight: 700; color: var(--c-navy);
}
.mx-row { display: grid; grid-template-columns: 1fr 26px 1fr; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.mx-row:last-child { margin-bottom: 0; }
.mx-cell {
  background: #fff;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px; line-height: 1.65; color: #4b5560;
}
.mx-cell-issue { border-left: 3px solid #e2a63c; }
.mx-cell-advice { border-left: 3px solid var(--c-green); background: #f6fbf6; }
.mx-arrow { display: flex; align-items: center; justify-content: center; color: #b1bac3; font-size: 15px; }

@media (max-width: 720px) {
  .fl { padding: 14px 12px; }
  .fl-pair { grid-template-columns: 1fr; gap: 2px; }
  .fl-vs { padding: 4px 0; }
  .fl-vs::before { content: "\2195"; }
  .fl-cols { grid-template-columns: 1fr; gap: 16px; }
  .fl-fork { grid-template-columns: 1fr; gap: 10px; }
  .fl-inline { gap: 8px; }

  .mx-top { grid-template-columns: 1fr; }
  .mx-side { border-right: none; border-bottom: 1px solid #dbe7db; justify-content: flex-start; padding: 9px 14px; }
  .mx-heads { display: none; }
  .mx-flow { padding: 12px 14px 14px; }
  .mx-row { grid-template-columns: 1fr; }
  .mx-arrow { height: 16px; transform: rotate(90deg); margin: -2px 0; }
  .mx-cell { font-size: 12.8px; }
  .mx-cell-issue::before {
    content: "\554f\984c\70b9"; display: block;
    font-size: 10.5px; font-weight: 700; color: #a86400; margin-bottom: 2px;
  }
  .mx-cell-advice::before {
    content: "\52a9\8a00"; display: block;
    font-size: 10.5px; font-weight: 700; color: var(--c-green); margin-bottom: 2px;
  }
}

@media (max-width: 540px) {
  .result-head { padding: 24px 20px 18px; }
  .result-title { font-size: 19px; }
  .result-body { padding: 20px 20px 6px; font-size: 14px; }
  .case-toggle { padding: 20px 20px 16px; gap: 12px; }
  .case-toggle-title { font-size: 17.5px; }
  .case-toggle-icon { width: 26px; height: 26px; }
  .result-box .modal-footer { padding: 0 20px 22px; }
  .r-stats { padding: 14px 16px; }
  .r-k { min-width: 72px; font-size: 12px; }
  .r-pair { padding: 9px 11px; }
  .r-row { font-size: 13.5px; gap: 8px; }
}
.submit-success-overlay .modal-close:hover { background: rgba(0,0,0,.12); color: #333; }
.submit-success-inner { padding: 0; }
.submit-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--c-green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(20,124,82,.35);
}
.submit-success-title {
  font-size: 20px; font-weight: 700; color: var(--c-navy);
  margin: 0 0 12px; line-height: 1.5;
}
.submit-success-text {
  font-size: 14.5px; line-height: 1.85; color: #555;
  margin: 0 0 24px;
}

@media (max-width: 540px) {
  .modal-box { max-height: 90vh; }
  .modal-box::before {
    background:
      linear-gradient(
        to bottom,
        rgba(11,27,51,.72) 0,
        rgba(11,27,51,.62) 40px,
        rgba(11,27,51,.52) 85px,
        rgba(11,27,51,.43) 125px,
        rgba(11,27,51,.35) 155px,
        rgba(255,255,255,.34) 172px,
        rgba(255,255,255,.70) 190px,
        #fff 205px
      );
  }
  .modal-title { font-size: 20px; padding: 120px 20px 30px; }
  .modal-body { padding: 26px 20px 22px; font-size: 14.5px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0, #fff 26px); }
  .modal-footer { padding: 0 20px 22px; }
}

/* =============================================================
   事例ページ 図表：参考スライド（PPT 風）に寄せる
   → .r-panels 内だけに適用（監査の .mx マトリクスには一切影響しない）
   ============================================================= */

/* パネル見出し：フラットな濃緑の帯 */
.r-panels .r-panel-head {
  margin: 0 0 6px;
  padding: 8px 14px;
  border: 1px solid #006600;
  border-radius: 2px;
  background: #008000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

/* 図表の枠：白地＋細い灰色枠。下辺は「状況」行とつないで1つの箱に見せる */
.r-panels .fl {
  min-height: 150px;
  margin: 0;
  padding: 16px 14px 14px;
  background: #fff;
  border: 1px solid #bfbfbf;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

/* 図表を元資料の画像で差し替える場合（.fl の直下に img のみを置く） */
.r-panels .fl.fl-chart {
  display: block;
  min-height: 0;
  padding: 0;
}
.r-panels .fl.fl-chart img {
  display: block;
  width: 100%;
  max-width: 502px;   /* 原本の解像度を超えて拡大しない（ぼけ防止） */
  height: auto;
  margin: 0 auto;
}

/* 状況（説明行）：枠の下ぶた */
.r-panels .r-block {
  margin: 0 0 18px;
  padding: 4px 15px 12px;
  background: #fff;
  border: 1px solid #bfbfbf;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}
.r-panels .r-block > h5 {
  display: inline;
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: #404040;
}
.r-panels .r-block > h5::after { content: "："; }
.r-panels .r-block .r-text {
  display: inline;
  font-size: 12.8px;
  line-height: 1.9;
  color: #404040;
}

/* 方框：灰色ベタ＋枠＋影（合弁会社A・税務局・税関なども全て同じ灰色） */
.r-panels .fl-box,
.r-panels .fl-box-green,
.r-panels .fl-box-warn {
  background: linear-gradient(180deg, #cdcdcd 0%, #b2b2b2 100%);
  border: 1px solid #787878;
  border-radius: 2px;
  color: #1a1a1a;
  font-weight: 700;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, .3);
}

/* 注記：青の破線枠 */
.r-panels .fl-note,
.r-panels .fl-note-mini {
  background: #dce6f2;
  border: 1px dashed #8faadc;
  border-radius: 2px;
  color: #1a1a1a;
  font-weight: 600;
}
.r-panels .fl-note-mini.fl-note-list {
  padding: 0;
  background: none;
  border: 0;
  color: #1a1a1a;
  text-align: left;
}

/* コネクタ：太い黒線＋実心の三角矢印 */
.r-panels .fl-down {
  position: relative;
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 0;
  color: #404040;
  font-weight: 700;
}
.r-panels .fl-down::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 10px;
  width: 2px;
  margin-left: -1px;
  background: #333;
}
.r-panels .fl-down::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  margin-left: -5.5px;
  border-left: 5.5px solid transparent;
  border-right: 5.5px solid transparent;
  border-top: 10px solid #333;
}
.r-panels .fl-lbl {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 3px;
  background: #fff;
  color: #404040;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.r-panels .fl-up {
  position: relative;
  display: inline-block;
  width: 2px;
  height: 24px;
  margin-bottom: 2px;
  background: #333;
  color: transparent;
  font-size: 0;
}
.r-panels .fl-up::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 5.5px solid transparent;
  border-right: 5.5px solid transparent;
  border-bottom: 10px solid #333;
}

.r-panels .fl-arrow-left,
.r-panels .fl-arrow-right {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 2px;
  background: #333;
  color: transparent;
  font-size: 0;
}
.r-panels .fl-arrow-left::before,
.r-panels .fl-arrow-right::before {
  content: "";
  position: absolute;
  top: -5.5px;
  width: 0;
  height: 0;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
}
.r-panels .fl-arrow-left::before { left: 0; border-right: 11px solid #333; }
.r-panels .fl-arrow-right::before { right: 0; border-left: 11px solid #333; }

/* 国境などの破線 */
.r-panels .fl-dots {
  width: 2px;
  height: 24px;
  border: 0;
  background: repeating-linear-gradient(to bottom, #333 0 6px, transparent 6px 12px);
}
.r-panels .fl-dots-h {
  width: 100%;
  min-width: 48px;
  height: 2px;
  border: 0;
  background: repeating-linear-gradient(to right, #333 0 9px, transparent 9px 17px);
}

/* 意見相違：両向き矢印 */
.r-panels .fl-vs {
  position: relative;
  align-self: start;
  margin: 5px 14px 0;
  padding: 3px 14px;
  background: #fff;
  border: 1px solid #787878;
  border-radius: 2px;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.r-panels .fl-vs::before,
.r-panels .fl-vs::after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -7px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.r-panels .fl-vs::before { left: -11px; border-right: 11px solid #787878; }
.r-panels .fl-vs::after { right: -11px; border-left: 11px solid #787878; }

/* 親→子の分岐（T 字の横棒と、親からの縦のつなぎ） */
.r-panels .fl-fork { position: relative; }
.r-panels .fl-fork::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(25% - 3px);
  right: calc(25% - 3px);
  height: 2px;
  background: #333;
}
.r-panels .fl-merge:has(+ .fl-fork),
.r-panels .fl-box:has(+ .fl-fork) { position: relative; }
.r-panels .fl-merge:has(+ .fl-fork)::after,
.r-panels .fl-box:has(+ .fl-fork)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 2px;
  height: 13px;
  margin-left: -1px;
  background: #333;
}

@media (max-width: 720px) {
  .r-panels .fl { min-height: 0; padding: 14px 12px 12px; }
  .r-panels .fl-down { min-height: 30px; }
  .r-panels .fl-vs {
    align-self: center;
    margin: 4px 0;
    padding: 2px 12px;
  }
  .r-panels .fl-vs::before,
  .r-panels .fl-vs::after { content: none; }
  .r-panels .fl-arrow-left,
  .r-panels .fl-arrow-right { width: 30px; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--c-green); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.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;
}

/* ---------- Insights（公式アカウント・記事） ---------- */
.insights .insights-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.insights .articles {
  display: grid;
  grid-template-rows: repeat(2, auto);   /* 始终限制为两行 */
  grid-auto-flow: column;                /* 列优先填充，超出横向滑动 */
  grid-auto-columns: minmax(280px, 300px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;                  /* 给滑动条留出空间 */
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-green) #e9eef0;
}
/* 横向滑动条（拖动条）样式 */
.insights .articles::-webkit-scrollbar { height: 10px; }
.insights .articles::-webkit-scrollbar-track { background: #eef2f3; border-radius: 6px; }
.insights .articles::-webkit-scrollbar-thumb { background: var(--c-green); border-radius: 6px; }
.insights .articles::-webkit-scrollbar-thumb:hover { background: #1f8a4c; }
.article-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: box-shadow .2s ease, transform .2s ease;
}
.article-card:hover {
  box-shadow: 0 10px 26px rgba(0,0,0,.09);
  transform: translateY(-3px);
}
.article-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f4f7;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--c-green);
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 4px;
}
.article-body { padding: 14px 16px 18px; }
.article-meta {
  display: inline-block;
  font-size: 12px;
  color: var(--c-green);
  background: #eaf6ec;
  padding: 2px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.article-body h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
  color: var(--c-navy);
  line-height: 1.45;
}
.article-body p { font-size: 13px; color: var(--c-muted); margin: 0; }

.wechat-block {
  background: #f7faf8;
  border: 1px solid #e3efe6;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  position: sticky;
  top: 88px;
}
.wechat-block h3 { font-size: 17px; color: var(--c-navy); margin: 0 0 10px; }
.wechat-block p { font-size: 13px; color: var(--c-muted); line-height: 1.7; margin: 0 0 14px; }
.wechat-qr { display: flex; justify-content: center; }
.wechat-qr img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  border: 1px solid #e3efe6;
}
.wechat-name { font-weight: 700; color: var(--c-navy); margin-top: 10px; font-size: 14px; }

@media (max-width: 900px) {
  .insights .insights-layout { grid-template-columns: 1fr; }
  .wechat-block { position: static; }
}
@media (max-width: 560px) {
  /* 移动端：两行不变，仅收窄卡片以适配屏幕 */
  .insights .articles { grid-auto-columns: 76vw; }
}

/* ---------- Article / Post pages (お役立ち情報) ---------- */
.post { padding: 72px 0 92px; }
.post .container { max-width: 860px; }
.post .breadcrumb { font-size: 13px; color: var(--c-muted); margin-bottom: 18px; }
.post .breadcrumb a { color: var(--c-muted); }
.post .breadcrumb a:hover { color: var(--c-green); }
.post-head { border-bottom: 1px solid #ececec; padding-bottom: 22px; margin-bottom: 30px; }
.post-head .article-meta { margin-bottom: 12px; }
.post-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 34px); color: var(--c-navy); margin: 0 0 14px; line-height: 1.4; }
.post-date { font-size: 13px; color: var(--c-muted); margin: 0; }
.post-content { font-size: 16px; line-height: 1.9; color: #2b3340; }
.post-content h2 { font-size: 21px; color: var(--c-navy); margin: 36px 0 14px; font-weight: 700; line-height: 1.5; }
.post-content h3 { font-size: 17px; color: var(--c-navy); margin: 26px 0 10px; font-weight: 700; }
.post-content p { margin: 0 0 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 1.5em; }
.post-content li { margin: 0 0 8px; }
.post-content ol { list-style: decimal; }
.post-content strong { color: var(--c-navy); }
.post-content .note { background: #f7faf8; border-left: 3px solid var(--c-green); padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--c-muted); font-size: 14px; line-height: 1.85; }
.post-source { margin-top: 38px; padding-top: 18px; border-top: 1px solid #ececec; font-size: 13px; color: var(--c-muted); }
.post-back { display: inline-block; margin-top: 22px; color: var(--c-green); font-weight: 700; }
.post-back:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .post { padding: 48px 0 64px; }
  .post-content { font-size: 15px; }
}

/* ---------- FAQ ---------- */
.faq .faq-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid #e3efe6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  color: var(--c-navy);
  position: relative;
  font-size: 16px;
  line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--c-green);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer {
  padding: 0 20px 20px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.85;
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--c-green); font-weight: 700; }
