:root {
  --white: #FFFFFF;
  --bg-alt: #F4F5F8;
  --navy: #1C287D;
  --navy-mid: #2E3A94;
  --navy-deep: #12183D;
  --ink: #262A3D;
  --ink-soft: #6B7089;
  --line: rgba(28, 40, 125, 0.12);
  --success: #2E7D5B;
  --error: #C0392B;
  --max-width: 1080px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
}

a { color: var(--navy); }
a:hover { color: var(--navy-mid); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.03em;
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-header .logo img { height: 26px; }

.site-nav { display: flex; gap: 30px; }
.site-nav a { text-decoration: none; color: var(--navy); font-size: 0.9rem; font-weight: 500; font-family: "Noto Sans JP", sans-serif; letter-spacing: 0; }
.site-nav a:hover { color: var(--navy-mid); }

.nav-cta {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 4px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  transition: background-color .2s ease, border-color .2s ease;
}
.nav-cta:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff !important; }

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 110px;
  background:
    linear-gradient(135deg, rgba(18,24,61,0.92) 0%, rgba(28,40,125,0.90) 100%),
    url('/assets/img/hero-manila-skyline.png') center 55% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { text-align: center; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.6;
  margin: 0 0 22px;
  color: #fff;
}
.hero p.sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 620px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.85);
  font-family: "Noto Sans JP", sans-serif;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff !important; }
.hero .btn-outline:hover { background: #fff; color: var(--navy) !important; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: "Noto Sans JP", sans-serif;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(28,40,125,0.25); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 6px 18px rgba(18,24,61,0.3); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--navy); color: var(--navy) !important; }
.btn-outline:hover { background: var(--navy); color: #fff !important; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--navy) !important; border: 1px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff !important; transform: translateY(-1px); }

/* Sections */
section { padding: 88px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 12px;
  font-family: "Noto Sans JP", sans-serif;
}
.section-head .eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--navy);
}
.section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 0 0 14px; color: var(--navy); }
.section-head p { color: var(--ink-soft); margin: 0; font-family: "Noto Sans JP", sans-serif; }

/* Pillars / cards */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 780px) {
  .pillars { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(28,40,125,0.06);
}
.card h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--navy); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; font-family: "Noto Sans JP", sans-serif; }
.card .card-link { display: inline-block; margin-top: 16px; font-size: 0.88rem; font-weight: 700; text-decoration: none; color: var(--navy); }

/* Card accents (single, consistent navy — no color cycling) */
.pillars .card { border-top: 4px solid var(--navy); }
.service-detail .card { border-left: 4px solid var(--navy); }
#faq .card { border-left: 4px solid var(--navy); }

.other-biz { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .other-biz { grid-template-columns: 1fr; } }
.other-biz .card { border-top: 4px solid var(--navy); }

/* Icon badges (circular, single navy tone) */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: rgba(28,40,125,0.08);
  color: var(--navy);
}
.icon-badge svg { width: 26px; height: 26px; }

/* Teaser cards (hub page → detail pages) */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 780px) { .teaser-grid { grid-template-columns: 1fr; } }
.teaser-grid > .teaser-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.teaser-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px;
  box-shadow: 0 4px 20px rgba(28,40,125,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.teaser-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(28,40,125,0.14); }
.teaser-card h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--navy) !important; }
.teaser-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.92rem; font-family: "Noto Sans JP", sans-serif; }
.teaser-card .teaser-link { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.teaser-card .teaser-link::after { content: " →"; }
.teaser-card { border-top: 4px solid var(--navy); }

/* Flow steps with connecting arrows */
.flow-steps { display: flex; align-items: stretch; gap: 4px; }
.flow-steps .card { flex: 1; }
.flow-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--navy); }
.flow-arrow svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .flow-steps { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* FAQ chat bubbles */
.faq-thread { display: flex; flex-direction: column; gap: 30px; }
.faq-msg { display: flex; align-items: flex-start; gap: 12px; }
.faq-msg-a { flex-direction: row-reverse; }
.faq-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-avatar svg { width: 22px; height: 22px; }
.faq-avatar-q { background: var(--navy); color: #fff; }
.faq-avatar-a { background: var(--ink-soft); color: #fff; }
.faq-bubble {
  padding: 16px 20px;
  border-radius: 14px;
  max-width: 80%;
  font-size: 0.95rem;
  font-family: "Noto Sans JP", sans-serif;
}
.faq-bubble p { margin: 0; }
.faq-bubble-q { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; color: var(--ink); font-weight: 600; }
.faq-bubble-a { background: var(--bg-alt); border-top-right-radius: 4px; color: var(--ink); }
@media (max-width: 560px) { .faq-bubble { max-width: 100%; } }

/* Long-form content pages */
.content-page { max-width: 760px; position: relative; z-index: 1; }
.ph-map-bg { position: absolute; top: 10px; right: 0; width: 260px; height: auto; pointer-events: none; z-index: 0; opacity: 0.08; }
@media (max-width: 1100px) { .ph-map-bg { display: none; } }
.content-page h2 { color: var(--navy); font-size: 1.4rem; margin: 48px 0 16px; }
.content-page h2:first-child { margin-top: 0; }
.content-page h3 { color: var(--navy); font-size: 1.1rem; margin: 28px 0 10px; }
.content-page p { margin: 0 0 16px; }
.content-page ul, .content-page ol { margin: 0 0 16px; padding-left: 1.3em; }
.content-page li { margin-bottom: 8px; }
.content-page table { width: 100%; border-collapse: collapse; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); }
.content-page th, .content-page td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.content-page th { background: var(--bg-alt); color: var(--ink-soft); font-weight: 600; }
.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--navy);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 0 0 24px;
  font-size: 0.92rem;
  color: var(--ink);
}
.callout strong { color: var(--navy); }

.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.info-table th, .info-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 0.95rem; font-family: "Noto Sans JP", sans-serif; }
.info-table th { width: 160px; color: var(--ink-soft); font-weight: 600; background: var(--bg-alt); }

/* Data charts (comparison visualizations) */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 0 0 8px; }
@media (max-width: 780px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-block { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 24px 18px; }
.chart-block h3 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.chart-block .chart-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 16px; }
.chart-legend { display: flex; gap: 18px; margin-bottom: 10px; font-size: 0.82rem; color: var(--ink-soft); flex-wrap: wrap; }
.chart-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.chart-svg-wrap { overflow-x: auto; }
.chart-source { font-size: 0.76rem; color: var(--ink-soft); margin: 10px 0 0; }
.chart-value-label { font-family: "Noto Sans JP", sans-serif; font-weight: 700; }
.chart-axis-label { font-family: "Noto Sans JP", sans-serif; }

/* Stat tiles (momentum highlights) */
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px 26px; text-align: center; }
.stat-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(28,40,125,0.08); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.stat-icon svg { width: 26px; height: 26px; }
.stat-value { font-size: 2.1rem; font-weight: 800; color: var(--navy); line-height: 1.2; font-family: "Noto Sans JP", sans-serif; }
.stat-label { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 14px; }
.stat-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(46,125,91,0.1); color: var(--success); }
.stat-delta svg { width: 12px; height: 12px; }
.stat-delta-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }
.stat-sparkline { margin: 16px 0 4px; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

.service-detail { display: grid; gap: 24px; margin-bottom: 28px; }

/* Page hero (non-top pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 68px 0 76px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; }
.page-hero p { margin: 0; color: rgba(255,255,255,0.85); font-family: "Noto Sans JP", sans-serif; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 780px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }

.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); font-family: "Noto Sans JP", sans-serif; }
.contact-form .req { color: var(--error); font-size: 0.72rem; font-weight: 700; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(28,40,125,0.22);
  background: #fff;
  color: var(--ink);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(107,112,137,0.5); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,40,125,0.12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button { align-self: flex-start; border: none; cursor: pointer; }
.contact-form button:disabled { opacity: 0.6; cursor: default; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.4em; font-size: 0.9rem; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer { position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: rgba(255,255,255,0.75); padding: 48px 0 28px; font-size: 0.88rem; }
.site-footer .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: 0.82rem; margin: 0 0 12px; letter-spacing: 0.08em; font-family: "Noto Sans JP", sans-serif; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .copyright { margin-top: 20px; font-size: 0.78rem; color: rgba(255,255,255,0.4); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }
.site-footer img[alt="株式会社FOREVER"] { filter: brightness(0) invert(1); }
