/* ============================================
   AyaseHeartCareLink — Stylesheet
   Theme: Hospital trust + warmth
   ============================================ */

:root {
  --c-red: #c8102e;
  --c-red-dark: #9b0c24;
  --c-navy: #0d3a6e;
  --c-navy-dark: #07254a;
  --c-cream: #faf8f5;
  --c-paper: #ffffff;
  --c-text: #1f2937;
  --c-muted: #6b7280;
  --c-border: #e5e7eb;
  --c-orange: #e87722;
  --c-success: #2e7d32;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);

  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-red); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}
.btn-sm { padding: .55em 1.3em; font-size: 14px; }
.btn-lg { padding: 1em 2em; font-size: 16px; }
.btn-primary {
  background: var(--c-red);
  color: white;
  box-shadow: 0 4px 14px rgba(200,16,46,.3);
}
.btn-primary:hover {
  background: var(--c-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,16,46,.4);
}
.btn-secondary {
  background: white;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.btn-secondary:hover {
  background: var(--c-navy);
  color: white;
  transform: translateY(-2px);
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--c-navy);
}
.brand:hover { color: var(--c-navy); }
.brand-logo { height: 91px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-en { font-family: var(--font-en); font-size: 16px; color: var(--c-red); letter-spacing: .02em; }
.brand-ja { font-size: 12px; color: var(--c-muted); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.site-nav a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--c-text);
  position: relative;
}
.site-nav a:not(.btn):hover { color: var(--c-red); }
.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--c-red);
  transition: width .2s;
}
.site-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  font-size: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-navy);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  filter: brightness(.6);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,58,110,.85) 0%, rgba(7,37,74,.65) 50%, rgba(200,16,46,.55) 100%);
  z-index: -1;
}
.hero-content { padding: 80px 24px; max-width: var(--container); width: 100%; }
.hero-eyebrow {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: .9;
}
.hero-title {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-title span { display: block; }
.hero-lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 720px;
  opacity: .95;
}
.hero-lead strong { font-weight: 700; color: #ffd966; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.meta-pill {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ===== Section base ===== */
.section { padding: 88px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--c-red);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.section-header .lead {
  color: var(--c-muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.section-note {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--c-muted);
}
.section-note a { color: var(--c-red); border-bottom: 1px dotted; }

/* ===== About ===== */
.section-about { background: white; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.about-card {
  background: var(--c-cream);
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: transform .2s, box-shadow .2s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.about-card h3 {
  color: var(--c-navy);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;       /* 日本語の単語途中で折り返さない */
  overflow-wrap: break-word;
}
.about-card p {
  color: var(--c-text);
  font-size: 14.5px;
}

/* ===== Numbers ===== */
.section-numbers {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-dark) 100%);
  color: white;
}
.section-numbers .section-header h2,
.section-numbers .section-header .eyebrow { color: white; }
.section-numbers .section-header .eyebrow { color: #ffd966; }
.section-numbers .section-header .lead { color: rgba(255,255,255,.85); }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.num-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.num-card.highlight {
  background: var(--c-red);
  border-color: var(--c-red);
  box-shadow: 0 12px 36px rgba(200,16,46,.4);
}
.num-value {
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}
.num-plus { font-size: 32px; }
.num-unit {
  font-size: 14px;
  opacity: .8;
}
.num-label {
  font-size: 13.5px;
  margin-top: 8px;
  opacity: .9;
}
.section-numbers .section-note { color: rgba(255,255,255,.75); }
.section-numbers .section-note a { color: #ffd966; }

/* ===== Flow ===== */
.section-flow { background: white; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  list-style: none;
  counter-reset: step;
}
.flow-step {
  background: var(--c-cream);
  padding: 32px 28px;
  border-radius: var(--radius);
  border-left: 4px solid var(--c-red);
  position: relative;
}
.step-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 8px;
}
.flow-step h3 {
  font-size: 18px;
  color: var(--c-navy);
  margin-bottom: 10px;
}
.flow-step p {
  font-size: 14px;
  color: var(--c-text);
}
.flow-step strong { color: var(--c-red); }

/* ===== Portal preview (HIGHLIGHTED) ===== */
.section-portal-preview {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-dark) 60%, #4a0f1c 100%);
  color: white;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.portal-bg-decor {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(200,16,46,.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,217,102,.12) 0%, transparent 40%);
  z-index: -1;
}
.portal-header { margin-bottom: 36px; }
.portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(200,16,46,.18);
  border: 1px solid rgba(200,16,46,.55);
  color: #ffd966;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.section-portal-preview .eyebrow { color: #ffd966 !important; }
.section-portal-preview h2 {
  color: white !important;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.4;
  letter-spacing: -.01em;
}
.hl-red {
  color: #ff8499;
  text-shadow: 0 2px 14px rgba(200,16,46,.45);
}
.section-portal-preview .lead {
  color: rgba(255,255,255,.92) !important;
  max-width: 780px;
  font-size: 16px;
}
.section-portal-preview .lead strong {
  color: #ffd966;
  font-weight: 700;
}

/* ===== AHCP feature banner ===== */
.ahcp-banner {
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(200,16,46,.12) 100%);
  border: 1.5px solid rgba(255,217,102,.4);
  border-radius: 20px;
  padding: 36px 36px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
}
.ahcp-banner-icon img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.ahcp-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .2em;
  color: #ffd966;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ahcp-banner h3 {
  font-family: var(--font-en);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.ahcp-abbr {
  font-size: .68em;
  color: rgba(255,255,255,.65);
  font-weight: 600;
}
.ahcp-banner p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,.92);
  margin-bottom: 16px;
}
.ahcp-banner strong {
  color: #ffd966;
  font-weight: 700;
}
.ahcp-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
  line-height: 1.7;
}
.ahcp-points li { padding-left: 4px; }
.ahcp-points strong { color: white; }

/* ===== Portal grid (cards) ===== */
.portal-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffd966;
  text-align: center;
  margin: 8px 0 28px;
  letter-spacing: .02em;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.portal-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 28px 26px;
  backdrop-filter: blur(4px);
  transition: transform .2s, border-color .2s, background .2s;
  position: relative;
}
.portal-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-red);
  background: rgba(255,255,255,.1);
}
.portal-card .card-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.portal-card h3 {
  color: white !important;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  word-break: keep-all;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.portal-card p {
  color: rgba(255,255,255,.82) !important;
  font-size: 13.5px;
  line-height: 1.75;
}
.portal-card strong {
  color: #ffd966;
  font-weight: 700;
}
.card-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  background: var(--c-red);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ===== Portal CTA ===== */
.portal-cta {
  margin-top: 48px;
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.22);
}
.portal-cta > p {
  color: rgba(255,255,255,.92);
  font-size: 15px;
  margin-bottom: 18px;
}
.portal-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.section-portal-preview .btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: white;
}
.section-portal-preview .btn-secondary:hover {
  background: white;
  color: var(--c-navy);
}

@media (max-width: 720px) {
  .ahcp-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 22px;
  }
  .ahcp-banner-icon img { margin: 0 auto; width: 90px; }
}

/* ===== FAQ ===== */
.section-faq { background: white; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--c-cream);
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--c-red); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--c-navy);
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--c-red);
  font-weight: 300;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 22px 22px; font-size: 14.5px; color: var(--c-text); }

/* ===== Apply form ===== */
.section-apply {
  background: linear-gradient(180deg, var(--c-cream) 0%, white 100%);
}
.apply-form {
  background: white;
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}
.form-row { margin-bottom: 22px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: block; }
.label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.label em {
  color: var(--c-red);
  font-style: normal;
  font-size: 11px;
  background: rgba(200,16,46,.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
input[type=text],
input[type=tel],
input[type=email],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--c-cream);
  color: var(--c-text);
  transition: border-color .15s, background .15s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--c-red);
  background: white;
}
.form-fieldset {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--c-cream);
}
.form-fieldset legend {
  padding: 0 8px;
  background: white;
  border-radius: 4px;
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
}
.checks label {
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.check-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--c-cream);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.check-agree input { margin-top: 4px; }
.form-actions { text-align: center; margin-top: 30px; }
.form-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--c-muted);
  text-align: center;
}

/* ===== Contact ===== */
.section-contact { background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info h3 {
  font-size: 20px;
  color: var(--c-navy);
  margin-bottom: 22px;
}
.contact-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px 20px;
  margin-bottom: 28px;
}
.contact-info dt {
  font-size: 13px;
  color: var(--c-muted);
  font-weight: 600;
  padding-top: 2px;
}
.contact-info dd {
  font-size: 14.5px;
  color: var(--c-text);
}
.contact-info dd a { color: var(--c-red); font-weight: 600; }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-map iframe { display: block; border: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--c-navy-dark);
  color: rgba(255,255,255,.85);
  padding: 64px 0 24px;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.foot-logo {
  height: 50px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.foot-name {
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.foot-addr {
  font-size: 13px;
  opacity: .8;
}
.foot-nav h4 {
  font-size: 14px;
  color: white;
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.foot-nav ul { list-style: none; }
.foot-nav li { margin-bottom: 8px; }
.foot-nav a {
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
}
.foot-nav a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 12.5px;
  opacity: .7;
}
.badge {
  background: rgba(255,255,255,.08);
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-en);
}



/* ===== Group facilities ===== */
.section-group { background: white; }
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.group-card {
  background: var(--c-cream);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.group-card-primary {
  border: 2px solid var(--c-red);
  box-shadow: 0 8px 28px rgba(200,16,46,.12);
}
.group-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-cream-dark, #f0ece5);
}
.group-body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.group-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  background: var(--c-red);
  color: white;
  margin-bottom: 4px;
}
.group-badge-2 { background: var(--c-navy); }
.group-badge-3 { background: var(--c-orange); }
.group-badge-4 { background: var(--c-success); }

.group-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-navy);
  word-break: keep-all;
  margin-bottom: 4px;
}
.group-tag {
  font-size: 12.5px;
  color: var(--c-muted);
  margin-bottom: 4px;
}
.group-card p {
  font-size: 14px;
  color: var(--c-text);
}
.group-card strong { color: var(--c-red); }
.group-info {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px 10px;
  font-size: 12.5px;
  border-top: 1px dashed var(--c-border);
  padding-top: 14px;
}
.group-info dt {
  color: var(--c-muted);
  font-weight: 600;
}
.group-info dd { color: var(--c-text); }
.group-info a { color: var(--c-red); }

/* ===== Referral routing ===== */
.section-referral {
  background: linear-gradient(135deg, var(--c-cream) 0%, white 100%);
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
.ref-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 2px solid var(--c-border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.ref-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.ref-emergency { border-color: var(--c-red); background: linear-gradient(180deg, #fff7f8 0%, white 60%); }
.ref-general   { border-color: var(--c-navy); background: linear-gradient(180deg, #f5f9ff 0%, white 60%); }
.ref-rehab     { border-color: var(--c-orange); background: linear-gradient(180deg, #fff7eb 0%, white 60%); }

.ref-icon { font-size: 38px; line-height: 1; }
.ref-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--c-muted);
  text-transform: uppercase;
}
.ref-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-navy);
  word-break: keep-all;
  margin: 0;
}
.ref-emergency h3 { color: var(--c-red); }
.ref-pitch {
  font-size: 14px;
  color: var(--c-text);
  margin: 4px 0;
}
.ref-pitch strong { color: var(--c-red); }
.ref-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--c-text);
}
.ref-list li {
  position: relative;
  padding-left: 18px;
}
.ref-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-red);
  font-weight: 700;
}
.ref-cta {
  margin-top: 14px;
  align-self: stretch;
  text-align: center;
  background: var(--c-navy);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  font-family: var(--font-en);
  transition: background .2s;
}
.ref-cta:hover { background: var(--c-red); color: white; }
.ref-emergency .ref-cta { background: var(--c-red); }
.ref-emergency .ref-cta:hover { background: var(--c-red-dark); }

.ref-flow-note {
  margin-top: 24px;
  background: white;
  border: 1px dashed var(--c-orange);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--c-text);
}
.ref-flow-note strong { color: var(--c-red); }

/* ===== Footer group list ===== */
.foot-group {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255,255,255,.85);
}
.foot-group strong {
  color: white;
  font-weight: 600;
}



/* ===== Page hero (sub pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-dark) 100%);
  color: white;
  padding: 70px 0 60px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.page-eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  color: #ffd966;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-lead {
  font-size: 16px;
  line-height: 1.85;
  max-width: 780px;
  opacity: .92;
}
.page-lead strong { color: #ffd966; font-weight: 700; }

/* nav-active marker */
.site-nav a.nav-active {
  color: var(--c-red) !important;
}
.site-nav a.nav-active::after {
  width: 100% !important;
}

/* ===== Invitation section ===== */
.section-invite {
  background: white;
  padding: 80px 0;
}
.invite-card {
  background: linear-gradient(135deg, #fff7f8 0%, white 100%);
  border-left: 6px solid var(--c-red);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}
.invite-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.invite-card h3 {
  color: var(--c-navy);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  word-break: keep-all;
}
.invite-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
  margin-bottom: 12px;
}
.invite-card strong { color: var(--c-red); font-weight: 700; }
.invite-sub {
  font-size: 13px !important;
  color: var(--c-muted) !important;
  margin-bottom: 0 !important;
}

.invite-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-navy);
  text-align: center;
  margin: 48px 0 32px;
}

.invite-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 720px) {
  .invite-benefits { grid-template-columns: 1fr 1fr; }
}

.benefit {
  background: var(--c-cream);
  border-radius: var(--radius);
  padding: 28px 28px;
  border: 1px solid var(--c-border);
  transition: transform .2s, box-shadow .2s;
}
.benefit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.benefit h4 {
  font-size: 17px;
  color: var(--c-navy);
  font-weight: 700;
  margin-bottom: 10px;
  word-break: keep-all;
}
.benefit p {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.8;
}
.benefit strong { color: var(--c-red); }
.benefit-sub {
  margin-top: 10px;
  font-size: 12.5px !important;
  color: var(--c-muted) !important;
  font-style: italic;
}

.invite-cta-box {
  background: var(--c-cream);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  border: 1px solid var(--c-border);
}
.invite-cta-box > p:first-child {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 18px;
}
.invite-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 14px;
}
.invite-note {
  font-size: 12.5px;
  color: var(--c-muted);
  margin-top: 12px;
  line-height: 1.7;
}

/* ===== CTA strip ===== */
.section-cta-strip {
  background: var(--c-cream-dark, #f0ece5);
  padding: 40px 0;
}
.cta-strip {
  background: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.cta-strip h3 {
  font-size: 19px;
  color: var(--c-navy);
  margin-bottom: 4px;
  font-weight: 700;
}
.cta-strip p {
  font-size: 13.5px;
  color: var(--c-muted);
}

/* ===== VPN status indicator ===== */
.vpn-status {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--c-cream);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 40px;
  transition: all .25s;
}
.vpn-status.ok { border-color: var(--c-success); background: #e8f5e9; }
.vpn-status.ng { border-color: var(--c-orange); background: #fff7eb; }
.vpn-status-icon { font-size: 32px; line-height: 1; }
.vpn-status-text strong {
  display: block;
  font-size: 15px;
  color: var(--c-navy);
  margin-bottom: 4px;
}
.vpn-status.ok strong { color: var(--c-success); }
.vpn-status.ng strong { color: var(--c-orange); }
.vpn-status-detail {
  font-size: 13.5px;
  color: var(--c-text);
}
.vpn-status-detail a {
  color: var(--c-red);
  font-weight: 600;
  margin-left: 8px;
}

/* ===== Gateway steps ===== */
.gateway { background: white; padding: 56px 0; }
.gw-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
@media (min-width: 720px) {
  .gw-steps { grid-template-columns: 1fr 1fr 1fr; }
}
.gw-step {
  background: var(--c-cream);
  border-radius: var(--radius);
  padding: 26px 24px;
  border-top: 4px solid var(--c-red);
  position: relative;
}
.gw-step-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--c-red);
  margin-bottom: 8px;
  display: inline-block;
}
.gw-step h3 {
  font-size: 17px;
  color: var(--c-navy);
  margin-bottom: 8px;
  font-weight: 700;
}
.gw-step p {
  font-size: 13.5px;
  color: var(--c-text);
  line-height: 1.75;
}
.gw-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--c-red);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px dotted var(--c-red);
}
.gw-link-strong {
  background: var(--c-navy);
  color: white !important;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
}
.gw-link-strong:hover { background: var(--c-red); color: white !important; }

/* ===== Gateway login CTA ===== */
.gw-cta-card {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-dark) 100%);
  border-radius: var(--radius);
  padding: 36px 36px;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg);
}
.gw-cta-card h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 8px;
}
.gw-cta-card > p {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  margin-bottom: 20px;
}
.gw-login-btn {
  margin: 4px;
  display: inline-flex;
}
.gw-login-btn-sub {
  display: inline-flex;
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
}
.gw-login-btn-sub:hover { background: rgba(255,255,255,.12); color: white; }
.gw-cta-note {
  margin-top: 18px !important;
  font-size: 12.5px !important;
  color: rgba(255,255,255,.7) !important;
}
.gw-cta-note a { color: #ffd966; }

/* ===== Inside grid (portal contents preview) ===== */
.section-portal-content { background: var(--c-cream); }
.inside-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.inside-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--c-border);
  transition: transform .2s, border-color .2s;
}
.inside-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-red);
}
.inside-card.highlight {
  border-color: var(--c-red);
  background: linear-gradient(180deg, #fff7f8 0%, white 80%);
}
.inside-icon { font-size: 28px; margin-bottom: 10px; }
.inside-card h3 {
  font-size: 16px;
  color: var(--c-navy);
  font-weight: 700;
  margin-bottom: 8px;
  word-break: keep-all;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inside-card p {
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.7;
}

/* ===== Prerequisites box ===== */
.prereq-box {
  background: var(--c-cream);
  border-left: 4px solid var(--c-red);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
}
.prereq-box h3 {
  color: var(--c-navy);
  font-size: 18px;
  margin-bottom: 12px;
}
.prereq-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.prereq-box strong { color: var(--c-red); }
.prereq-note {
  font-size: 13px;
  color: var(--c-muted);
  border-top: 1px dashed var(--c-border);
  padding-top: 12px;
}

/* ===== OS tabs (VPN setup) ===== */
.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.os-tab {
  background: white;
  border: 2px solid var(--c-border);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  cursor: pointer;
  transition: all .2s;
}
.os-tab:hover { border-color: var(--c-red); color: var(--c-red); }
.os-tab.active {
  background: var(--c-red);
  color: white;
  border-color: var(--c-red);
}
.os-panel { display: none; }
.os-panel.active { display: block; }

.setup-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.setup-step {
  background: white;
  border-radius: var(--radius);
  padding: 26px 28px;
  border: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
}
.setup-num {
  background: var(--c-navy);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-en);
}
.setup-step-success {
  border-color: var(--c-success);
  background: #f1fbf3;
}
.setup-step-success .setup-num {
  background: var(--c-success);
}
.setup-step h3 {
  font-size: 17px;
  color: var(--c-navy);
  margin-bottom: 8px;
}
.setup-step p {
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 8px;
}
.setup-step strong { color: var(--c-red); }
.setup-step > *:not(.setup-num) { grid-column: 2; }
.dl-btn {
  display: inline-block;
  margin: 8px 0 4px;
  background: var(--c-red);
  color: white !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
}
.dl-btn:hover {
  background: var(--c-red-dark);
  color: white !important;
  transform: translateY(-1px);
}
.setup-note {
  font-size: 12.5px !important;
  color: var(--c-muted) !important;
  margin-top: 8px !important;
}

/* ===== Troubleshooting ===== */
.section-troubleshoot { background: white; }
.ts-list { margin-bottom: 32px; }
.support-cta {
  background: linear-gradient(135deg, var(--c-cream) 0%, white 100%);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--c-orange);
}
.support-cta h3 {
  color: var(--c-navy);
  font-size: 18px;
  margin-bottom: 8px;
}
.support-cta p {
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 14px;
}

/* ===== Group philosophy ===== */
.group-philosophy {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--c-cream) 0%, white 100%);
  border: 1px dashed var(--c-orange);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.85;
}
.group-philosophy strong { color: var(--c-red); }

/* ===== Mobile ===== */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 70px; right: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--c-border); }
  .site-nav a:last-child { border: none; margin-top: 12px; }

  .form-row.two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info dl { grid-template-columns: 90px 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 56px 0; }
  .hero { min-height: 480px; }
  .hero-content { padding: 60px 24px; }
  .apply-form { padding: 28px 22px; }
}

/* ===== Print ===== */
@media print {
  .site-header, .nav-toggle, .hero-ctas, .form-actions, .site-footer { display: none; }
}
