/* base.html wraps content in .container — override for full-bleed */
body.page-home-v9-peach .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.page-home-v9-peach,
body.page-search-warm,
body.page-search,
body.page-search-v2,
body.page-owner-console-warm,
body.page-facility-detail-warm,
body.page-revenue-upload-warm,
body.page-owner-today-warm {
  --p9-primary:     oklch(0.6  0.14 200);
  --p9-primary-deep:oklch(0.46 0.13 230);
  --p9-sage:        oklch(0.66 0.15 155);
  --p9-ink:         #272d35;
  --p9-ink-muted:   #5c6370;
  --p9-ink-light:   #8c93a0;
  --p9-border:      #dde3e8;
  --p9-border-dash: #c8d2da;
  --p9-card:        #ffffff;
  --p9-bg:          #f6f9fb;
  --p9-bg-warm:     #eef4f7;
  --p9-radius:      0.65rem;
  --p9-radius-lg:   1.1rem;
  --p9-font-display:"Zen Kaku Gothic New","Noto Sans JP",system-ui,sans-serif;
  --p9-font-body:   "Noto Sans JP",system-ui,sans-serif;
  --p9-max-w:       76rem;
  background: var(--p9-bg);
  color: var(--p9-ink);
  font-family: var(--p9-font-body);
}

/* ── Preview banner ─────────────────────────────── */
.p9-preview-banner {
  background: var(--p9-primary-deep);
  color: #fff;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.p9-preview-banner a { color: #fff !important; text-decoration: underline; }

/* ── 2-tier header ──────────────────────────────── */
.p9-header-top {
  background: #fff;
  border-bottom: 1px solid var(--p9-border);
}
.p9-header-top-inner {
  max-width: var(--p9-max-w);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--p9-ink-muted);
}
.p9-util-link {
  color: var(--p9-ink-muted) !important;
  text-decoration: none !important;
}
.p9-util-link:hover { color: var(--p9-ink) !important; }

.p9-header-main {
  background: #fff;
  border-bottom: 1px solid var(--p9-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.p9-header-main-inner {
  max-width: var(--p9-max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.p9-brand { flex-shrink: 0; display: flex; align-items: center; text-decoration: none !important; }
.p9-brand img { margin-right: -0.4rem; }

.p9-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex: 1;
}
@media (min-width: 860px) { .p9-nav { display: flex; } }

.p9-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--p9-ink-muted) !important;
  text-decoration: none !important;
}
.p9-nav-link:hover { color: var(--p9-ink) !important; }
.p9-nav-link--active { color: var(--p9-primary) !important; font-weight: 700; border-bottom: 2px solid var(--p9-primary); padding-bottom: 2px; }

.p9-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

/* ── Shared button ──────────────────────────────── */
.p9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-family: var(--p9-font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none !important;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.p9-btn--ghost {
  background: transparent;
  border-color: var(--p9-border);
  color: var(--p9-ink) !important;
}
.p9-btn--primary {
  background: var(--p9-primary);
  color: #fff !important;
  border-color: var(--p9-primary);
}
.p9-btn--primary:hover { background: var(--p9-primary-deep); border-color: var(--p9-primary-deep); }
.p9-btn--lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ── 「発電所管理」ドロップダウン（メインナビ・ログイン時） ── */
.p9-navdrop { position: relative; display: inline-flex; align-items: center; }
.p9-navdrop-toggle { border: none; background: transparent; cursor: pointer; padding: 0;
  font-family: var(--p9-font-body); font-size: inherit; font-weight: inherit;
  color: var(--p9-ink-muted); display: inline-flex; align-items: center; gap: 0.28rem; }
.p9-navdrop-toggle:hover, .p9-navdrop.is-open .p9-navdrop-toggle { color: var(--p9-ink); }
.p9-navdrop .nav-user-menu-chevron { font-size: 0.55rem; opacity: 0.7; transition: transform 0.15s ease; }
.p9-navdrop.is-open .nav-user-menu-chevron { transform: rotate(180deg); }
.p9-navdrop .nav-user-menu-panel {
  position: absolute; top: calc(100% + 0.55rem); left: 0; right: auto; z-index: 200;
  min-width: 12rem; padding: 0.4rem 0;
  background: #fff; border: 1px solid var(--p9-border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(39, 45, 53, 0.16);
}
.p9-navdrop .nav-user-menu-panel[hidden] { display: none; }
.p9-navdrop .nav-user-menu-item {
  display: block; padding: 0.55rem 1rem;
  color: var(--p9-ink) !important; text-decoration: none !important;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.p9-navdrop .nav-user-menu-item:hover { background: var(--p9-bg-warm); color: var(--p9-primary) !important; }

/* ── ログイン時のユーザーメニュー（営業ヘッダー） ─────────────── */
.p9-msg-link { position: relative; }
.p9-msg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.05rem; height: 1.05rem; margin-left: 0.25rem; padding: 0 0.28rem;
  border-radius: 999px; background: var(--p9-primary); color: #fff;
  font-size: 0.62rem; font-weight: 700; line-height: 1; vertical-align: middle;
}
.p9-user-menu { position: relative; display: inline-flex; align-items: center; }
.p9-user-menu .p9-user-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  max-width: 12rem; padding: 0.28rem 0.6rem 0.28rem 0.32rem;
  border: 1.5px solid var(--p9-border); background: #fff;
  border-radius: 999px; cursor: pointer;
  font-family: var(--p9-font-body); font-weight: 700; font-size: 0.82rem;
  color: var(--p9-ink);
  transition: border-color 0.15s, color 0.15s;
}
.p9-user-menu .p9-user-toggle:hover,
.p9-user-menu.is-open .p9-user-toggle { border-color: var(--p9-primary); color: var(--p9-primary); }
.p9-user-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--p9-primary); color: #fff; font-weight: 700; font-size: 0.8rem;
}
.p9-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p9-user-menu .nav-user-menu-chevron { font-size: 0.58rem; opacity: 0.7; transition: transform 0.15s ease; }
.p9-user-menu.is-open .nav-user-menu-chevron { transform: rotate(180deg); }
.p9-user-menu .nav-user-menu-panel {
  position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 200;
  min-width: 12rem; padding: 0.4rem 0;
  background: #fff; border: 1px solid var(--p9-border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(39, 45, 53, 0.16);
}
.p9-user-menu .nav-user-menu-panel[hidden] { display: none; }
.p9-user-menu .nav-user-menu-item {
  display: block; padding: 0.55rem 1rem;
  color: var(--p9-ink) !important; text-decoration: none !important;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.p9-user-menu .nav-user-menu-item:hover { background: var(--p9-bg-warm); color: var(--p9-primary) !important; }

/* ── Hero — full-bleed photo (from v8) ─────────── */
.p9-hero-full {
  position: relative;
  overflow: hidden;
  min-height: 76vh;
  display: flex;
  align-items: center;
}
.p9-hero-full-bg {
  position: absolute;
  inset: 0;
  background: url('/static/home/hero-solar-coastal.png') center 42% / cover;
}
.p9-hero-full-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in oklab, #0d1520 60%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, transparent 48%, color-mix(in oklab, #0d1520 65%, transparent) 100%);
}
.p9-hero-full-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--p9-max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) { .p9-hero-full-inner { grid-template-columns: 1.5fr 1fr; } }

.p9-hero-full-title {
  font-family: var(--p9-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.25;
  color: #fff;
}
.p9-hero-full-sub {
  margin-top: 1.1rem;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.85;
  color: color-mix(in oklab, #fff 82%, transparent);
}
.p9-hero-full-ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.p9-hero-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-family: var(--p9-font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  color: #fff !important;
  border: 1.5px solid color-mix(in oklab, #fff 55%, transparent);
  background: color-mix(in oklab, #000 20%, transparent);
}

/* AI notification card */
.p9-ai-card {
  border-radius: var(--p9-radius-lg);
  padding: 1px;
  background: linear-gradient(100deg, var(--p9-primary-deep) 0%, var(--p9-primary) 48%, var(--p9-sage) 100%);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
}
.p9-ai-card-inner {
  padding: 1.25rem 1.4rem;
  border-radius: calc(var(--p9-radius-lg) - 1px);
  background: color-mix(in oklab, #0d1a2e 92%, transparent);
  backdrop-filter: blur(8px);
}
.p9-ai-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--p9-primary) 25%, transparent);
  color: oklch(0.85 0.1 195);
  font-weight: 700;
  font-size: 0.7rem;
  border: 1px solid color-mix(in oklab, var(--p9-primary) 40%, transparent);
}
.p9-ai-card-tag svg { width: 0.6rem; height: 0.6rem; }
.p9-ai-card-title {
  margin-top: 0.75rem;
  font-family: var(--p9-font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}
.p9-ai-card-title strong { color: oklch(0.85 0.12 195); }
.p9-ai-card-sub { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.7; color: color-mix(in oklab, #fff 70%, transparent); }
.p9-ai-card-foot { margin-top: 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.p9-ai-card-time { font-size: 0.74rem; color: color-mix(in oklab, #fff 50%, transparent); }
.p9-ai-card-link { font-weight: 700; font-size: 0.8rem; color: oklch(0.85 0.12 195) !important; text-decoration: none !important; }

/* ── Hero — split layout (kept for reference) ───── */
.p9-hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 56vh;
}
@media (min-width: 860px) {
  .p9-hero { grid-template-columns: 1fr 1fr; min-height: 60vh; }
}

.p9-hero-text {
  background: var(--p9-bg);
  padding: 4rem 3rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* decorative arc accent */
.p9-hero-text::before {
  content: '';
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: color-mix(in oklab, var(--p9-primary) 8%, transparent);
  pointer-events: none;
}
.p9-hero-text-inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.p9-hero-eyebrow {
  display: inline-flex;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--p9-primary) 10%, transparent);
  color: var(--p9-primary-deep);
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 1.1rem;
}

.p9-hero-title {
  font-family: var(--p9-font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--p9-ink);
}

.p9-hero-sub {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--p9-ink-muted);
}

.p9-hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.p9-hero-note {
  font-size: 0.78rem;
  color: var(--p9-ink-light);
}

.p9-hero-photo {
  background: url('/static/home/hero-solar-coastal.png') center 42% / cover;
  min-height: 320px;
}

/* ── Action panel (below hero) ──────────────────── */
.p9-action {
  background: #fff;
  border-bottom: 1px solid var(--p9-border);
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.08);
}
.p9-action-inner {
  max-width: var(--p9-max-w);
  margin: 0 auto;
}

.p9-tabs {
  display: flex;
  border-bottom: 1px solid var(--p9-border);
  overflow-x: auto;
}
.p9-tab {
  padding: 1rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--p9-ink-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--p9-font-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.p9-tab svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.p9-tab--active {
  color: var(--p9-primary) !important;
  border-bottom-color: var(--p9-primary);
  background: color-mix(in oklab, var(--p9-primary) 4%, transparent);
}
.p9-tab:hover:not(.p9-tab--active) { color: var(--p9-ink); }

.p9-action-body {
  padding: 2rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.p9-action-body-text { }
.p9-action-body-text h2 {
  font-family: var(--p9-font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--p9-ink);
}
.p9-action-body-text p {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--p9-ink-muted);
  line-height: 1.7;
}

/* ── Section wrapper ────────────────────────────── */
.p9-section {
  padding: clamp(3rem, 7vh, 5rem) 1.5rem;
}
.p9-section-inner {
  max-width: var(--p9-max-w);
  margin: 0 auto;
}

/* Section title — large text + full-width colored underline */
.p9-section-title {
  font-family: var(--p9-font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  color: var(--p9-ink);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--p9-primary);
  margin-bottom: 2.25rem;
}
.p9-section-sub {
  margin-top: -1.75rem;
  margin-bottom: 2.25rem;
  font-size: 0.9rem;
  color: var(--p9-ink-muted);
  line-height: 1.8;
}

/* ── Feature cards — 3-col, dashed border ───────── */
.p9-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .p9-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .p9-feature-grid { grid-template-columns: repeat(3, 1fr); } }

.p9-feature-card {
  border: 1.5px dashed var(--p9-border-dash);
  border-radius: var(--p9-radius-lg);
  padding: 2rem 1.75rem;
  background: var(--p9-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.p9-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--p9-primary) 10%, transparent);
  color: var(--p9-primary);
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
}
.p9-feature-icon svg { width: 1.35rem; height: 1.35rem; }
.p9-feature-card h3 {
  font-family: var(--p9-font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--p9-ink);
}
.p9-feature-card p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--p9-ink-muted);
}
.p9-feature-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--p9-primary) !important;
  text-decoration: none !important;
}
.p9-feature-link:hover { text-decoration: underline !important; }

/* ── Arrow link cards (Peach "こんなページも" style) */
.p9-link-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .p9-link-cards { grid-template-columns: repeat(3, 1fr); } }

.p9-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid var(--p9-border);
  border-radius: var(--p9-radius);
  background: var(--p9-card);
  text-decoration: none !important;
  color: var(--p9-ink) !important;
  font-weight: 700;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.p9-link-card:hover {
  border-color: var(--p9-primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--p9-primary) 12%, transparent);
}
.p9-link-card-arrow { color: var(--p9-primary); font-size: 1.1rem; }

/* ── KPI stats strip ────────────────────────────── */
.p9-stats {
  background: var(--p9-bg-warm);
  border-top: 1px solid var(--p9-border);
  border-bottom: 1px solid var(--p9-border);
  padding: 2.5rem 1.5rem;
}
.p9-stats-inner {
  max-width: var(--p9-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}
@media (min-width: 860px) { .p9-stats-inner { grid-template-columns: repeat(4, 1fr); } }

.p9-stat { text-align: center; }
.p9-stat-num {
  font-family: var(--p9-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--p9-primary-deep);
  display: block;
}
.p9-stat-label {
  font-size: 0.78rem;
  color: var(--p9-ink-muted);
  margin-top: 0.25rem;
  display: block;
}

/* ── CTA close section ──────────────────────────── */
.p9-close {
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  background: var(--p9-bg);
}
.p9-close-inner { max-width: 40rem; margin: 0 auto; }
.p9-close-title {
  font-family: var(--p9-font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  color: var(--p9-ink);
  line-height: 1.4;
}
.p9-close-sub {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--p9-ink-muted);
  line-height: 1.8;
}
.p9-close-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.p9-close-note { margin-top: 1rem; font-size: 0.78rem; color: var(--p9-ink-light); }

/* ── Footer — solid primary color ──────────────── */
.p9-footer {
  background: var(--p9-primary);
  color: #fff;
  padding: 3rem 1.5rem 2rem;
}
.p9-footer-inner {
  max-width: var(--p9-max-w);
  margin: 0 auto;
}
.p9-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .p9-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .p9-footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }

.p9-footer-brand img {
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 10px;
}
.p9-footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: color-mix(in oklab, #fff 70%, transparent);
  line-height: 1.7;
}

.p9-footer-col-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: color-mix(in oklab, #fff 60%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}
.p9-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.p9-footer-links a {
  font-size: 0.875rem;
  color: color-mix(in oklab, #fff 85%, transparent) !important;
  text-decoration: none !important;
}
.p9-footer-links a:hover { color: #fff !important; }

.p9-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklab, #fff 20%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: color-mix(in oklab, #fff 55%, transparent);
}
.p9-footer-bottom a {
  color: color-mix(in oklab, #fff 55%, transparent) !important;
  text-decoration: none !important;
}
.p9-footer-bottom a:hover { color: #fff !important; }
.p9-footer-bottom-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* PV brand wordmark (logo3 mark + text) */
.pv-wordmark {
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: #0d1a2e;
  white-space: nowrap;
}
.pv-wm-pv   { font-weight: 700; letter-spacing: 0.04em; }
.pv-wm-market { font-weight: 600; letter-spacing: 0.005em; }
.pv-jp { color: #e07820; }

/* ── Footer brand — logo on dark teal bg ────────── */
/* PNG has white bg; mix-blend-mode:multiply doesn't work on teal.
   Use a tight white pill so the PV mark reads cleanly. */
.p9-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.p9-footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.p9-footer-logo-wrap img {
  background: #fff;
  border-radius: 5px;
  padding: 3px 5px;
  mix-blend-mode: normal;
}
.p9-footer-logo-wrap .pv-wordmark {
  color: #fff;
  font-size: 1rem;
}
.p9-footer-logo-wrap .pv-jp {
  color: rgba(255, 220, 150, 0.95);
}
.p9-footer-logo-wrap .pv-tagline { display: none; }

/* ── Brand tagline ── */
.pv-brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1;
}
.pv-tagline {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  color: #7a8494;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── Mobile fixes ────────────────────────────────── */
@media (max-width: 640px) {
  /* Hide tagline in header on mobile */
  .p9-header-main .pv-tagline { display: none; }

  /* Tabs: horizontal scroll instead of clipping */
  .p9-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 2px;
  }
  .p9-tabs::-webkit-scrollbar { display: none; }
  .p9-tab {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
    white-space: nowrap;
  }

  /* Action body: stack vertically */
  .p9-action-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Hero: smaller title */
  .p9-hero-full-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  /* Stats: 2x2 grid */
  .p9-stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }

  /* Footer: single column */
  .p9-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Header actions: tighter */
  .p9-header-actions { gap: 0.4rem; }
  .p9-btn { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
}
