/* SSG Lupine — homepage and shared shell */
:root { --rh-ink:#173043; --rh-muted:#536775; --rh-blue:#2d6cdf; --rh-soft:#eef5fb; --rh-line:rgba(23,48,67,.11); --rh-white:#fff; }

.rh-home *, .rh-site-header *, .rh-site-footer *, .rh-mobile-panel * { box-sizing:border-box; }
.rh-home img, .rh-site-header img, .rh-site-footer img { display:block; max-width:100%; height:auto; }
.home #content > .ast-container { display:block; max-width:none; padding:0; }

.rh-site-header { position:relative; z-index:100; width:100%; background:#fff; border-bottom:1px solid var(--rh-line); }
.rh-site-header__inner { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:32px; }
.rh-site-brand { display:flex; align-items:center; gap:12px; min-width:0; color:var(--rh-ink); text-decoration:none; }
.rh-site-brand__logo-image { width:auto; max-width:150px; max-height:52px; object-fit:contain; }
.rh-site-brand__text { display:grid; line-height:1.15; }
.rh-site-brand__name { font-size:1.05rem; font-weight:800; }
.rh-site-brand__tagline { max-width:34ch; margin-top:4px; color:var(--rh-muted); font-size:.78rem; }
.rh-main-nav { margin-left:auto; }
.rh-main-nav__list, .rh-main-nav ul { display:flex; align-items:center; gap:26px; margin:0; padding:0; list-style:none; }
.rh-main-nav a { color:var(--rh-ink); font-size:.86rem; font-weight:800; letter-spacing:.06em; text-decoration:none; text-transform:uppercase; }
.rh-main-nav a:hover, .rh-main-nav a:focus-visible { color:var(--rh-blue); }
.rh-menu-toggle { display:none; align-items:center; gap:9px; min-height:44px; padding:9px 13px; border:1px solid var(--rh-line); border-radius:999px; background:#fff; color:var(--rh-ink); font-weight:800; }
.rh-menu-toggle__icon { display:grid; gap:3px; width:18px; }
.rh-menu-toggle__icon span { display:block; height:2px; border-radius:2px; background:currentColor; }
.rh-mobile-panel[hidden] { display:none !important; }
.rh-mobile-panel { position:fixed; inset:0; z-index:9999; }
.rh-mobile-panel__backdrop { position:absolute; inset:0; background:rgba(13,29,40,.55); }
.rh-mobile-panel__sheet { position:absolute; top:0; right:0; width:min(88vw,380px); height:100%; padding:24px; overflow:auto; background:#fff; box-shadow:-20px 0 60px rgba(13,29,40,.2); }
.rh-mobile-panel__head { display:flex; align-items:center; justify-content:space-between; padding-bottom:20px; border-bottom:1px solid var(--rh-line); }
.rh-mobile-panel__title { font-size:1.1rem; font-weight:800; }
.rh-mobile-panel__close { width:42px; height:42px; border:0; border-radius:50%; background:var(--rh-soft); color:var(--rh-ink); font-size:1.6rem; }
.rh-mobile-panel__list, .rh-mobile-panel__nav ul { display:grid; gap:0; margin:22px 0; padding:0; list-style:none; }
.rh-mobile-panel__nav a { display:block; padding:14px 0; border-bottom:1px solid var(--rh-line); color:var(--rh-ink); font-size:1.05rem; font-weight:800; text-decoration:none; }
.rh-mobile-panel__foot { margin-top:28px; color:var(--rh-muted); }
.rh-menu-open { overflow:hidden; }

.rh-home { width:100%; max-width:none; margin:0; overflow-x:clip; color:var(--rh-ink); background:linear-gradient(180deg,#f7fbff 0%,#fff 38%,#f4f8fb 100%); }
.rh-home__hero, .rh-home__themes, .rh-home__latest { position:relative; overflow:hidden; }
.rh-home__hero { background:radial-gradient(circle at 83% 10%,rgba(45,108,223,.15),transparent 34%); }
.rh-home__hero-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr); align-items:center; gap:clamp(40px,6vw,90px); padding-top:clamp(64px,7vw,112px); padding-bottom:clamp(64px,7vw,112px); }
.rh-home__copy { max-width:620px; }
.rh-kicker { display:inline-flex; align-items:center; gap:8px; color:var(--rh-blue); font-size:.78rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.rh-home h1, .rh-home h2, .rh-home h3 { margin:0; color:var(--rh-ink); line-height:1.08; }
.rh-home h1 { max-width:11ch; margin-top:14px; font-size:clamp(3rem,5.5vw,6.2rem); letter-spacing:-.055em; }
.rh-home h2 { font-size:clamp(2rem,3.5vw,3.5rem); letter-spacing:-.035em; }
.rh-home h3 { font-size:clamp(1.08rem,1.4vw,1.35rem); }
.rh-intro { max-width:58ch; margin:20px 0 0; color:var(--rh-muted); font-size:clamp(1.02rem,1.4vw,1.18rem); line-height:1.72; }
.rh-cta-group { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.rh-btn { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:12px 20px; border-radius:999px; font-weight:800; text-decoration:none; transition:transform .18s ease,box-shadow .18s ease; }
.rh-btn:hover, .rh-btn:focus-visible { transform:translateY(-2px); }
.rh-btn--solid { color:#fff; background:var(--rh-ink); box-shadow:0 14px 30px rgba(23,48,67,.18); }
.rh-btn--ghost { color:var(--rh-ink); background:rgba(45,108,223,.09); }
.rh-hero-visual { display:grid; gap:14px; min-width:0; }
.rh-hero-visual__frame { overflow:hidden; aspect-ratio:16/11; border-radius:32px; background:#dce8f2; box-shadow:0 28px 70px rgba(23,48,67,.17); }
.rh-hero-visual__frame img { width:100%; height:100%; object-fit:cover; }
.rh-hero-visual__notes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.rh-hero-note { min-width:0; padding:17px; border:1px solid var(--rh-line); border-radius:20px; background:rgba(255,255,255,.94); box-shadow:0 10px 24px rgba(23,48,67,.06); }
.rh-hero-note__eyebrow, .rh-theme-card__label, .rh-post-card__cat { display:block; margin-bottom:7px; color:var(--rh-blue); font-size:.7rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.rh-hero-note strong { display:block; font-size:.9rem; line-height:1.42; }

.rh-home__themes { padding:clamp(72px,8vw,120px) 0; background:#fff; }
.rh-home__latest { padding:clamp(72px,8vw,120px) 0; }
.rh-home__section-head { max-width:760px; margin:0 auto 38px; text-align:center; }
.rh-home__section-head--left { max-width:none; margin-left:0; text-align:left; }
.rh-theme-grid, .rh-post-grid { display:grid; gap:22px; }
.rh-theme-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.rh-post-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.rh-theme-card, .rh-post-card { min-width:0; overflow:hidden; border:1px solid var(--rh-line); border-radius:24px; background:#fff; box-shadow:0 12px 34px rgba(23,48,67,.07); }
.rh-theme-card a, .rh-post-card__link { display:grid; height:100%; color:inherit; text-decoration:none; }
.rh-theme-card__media, .rh-post-card__media { overflow:hidden; background:#eaf1f6; }
.rh-theme-card__media img { width:100%; aspect-ratio:4/3; object-fit:cover; transition:transform .3s ease; }
.rh-post-card__media img { width:100%; aspect-ratio:16/10; object-fit:cover; transition:transform .3s ease; }
.rh-theme-card:hover img, .rh-post-card:hover img { transform:scale(1.025); }
.rh-theme-card__body, .rh-post-card__body { padding:22px; }
.rh-theme-card__body p { margin:12px 0 0; color:var(--rh-muted); line-height:1.62; }
.rh-theme-card__link, .rh-post-card__more { display:inline-flex; margin-top:16px; color:var(--rh-blue); font-weight:800; }
.rh-post-card__body h3 { overflow-wrap:anywhere; }
.rh-home__empty { padding:24px; border:1px solid var(--rh-line); border-radius:20px; background:#fff; }

.rh-site-footer { color:#dce8ef; background:#102938; }
.rh-site-footer__inner { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(380px,.8fr); gap:clamp(48px,8vw,120px); padding-top:72px; padding-bottom:72px; }
.rh-site-footer__brand-link { display:inline-flex; align-items:center; gap:12px; color:#fff; text-decoration:none; }
.rh-site-footer__logo-image { width:auto; max-width:145px; max-height:54px; object-fit:contain; }
.rh-site-footer__name { font-size:1.2rem; font-weight:800; }
.rh-site-footer__text { max-width:48ch; margin:20px 0 0; color:#b9cad4; line-height:1.7; }
.rh-site-footer__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:34px; }
.rh-site-footer__title { margin:0 0 15px; color:#fff; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; }
.rh-site-footer__list { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.rh-site-footer__list a { color:#dce8ef; text-decoration:none; }
.rh-site-footer__list a:hover, .rh-site-footer__list a:focus-visible { color:#fff; text-decoration:underline; }

@media (max-width:1024px) {
  .rh-site-brand__tagline { display:none; }
  .rh-main-nav__list, .rh-main-nav ul { gap:16px; }
  .rh-home__hero-grid { grid-template-columns:minmax(0,.9fr) minmax(360px,1.1fr); gap:38px; }
  .rh-hero-visual__notes { grid-template-columns:1fr; }
  .rh-theme-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rh-site-footer__inner { grid-template-columns:1fr; }
}

@media (max-width:767px) {
  .rh-site-header__inner { min-height:70px; padding-left:20px; padding-right:20px; }
  .rh-site-brand__logo-image { max-width:118px; max-height:44px; }
  .rh-site-brand__tagline { display:none; }
  .rh-main-nav { display:none; }
  .rh-menu-toggle { display:inline-flex; }
  .rh-home__hero-grid { grid-template-columns:1fr; gap:34px; padding:48px 20px 64px; }
  .rh-home h1 { max-width:none; font-size:clamp(2.65rem,14vw,4.25rem); }
  .rh-cta-group { display:grid; }
  .rh-btn { width:100%; }
  .rh-hero-visual__frame { aspect-ratio:4/3; border-radius:24px; }
  .rh-home__themes, .rh-home__latest { padding:64px 20px; }
  .rh-home__themes > .ast-container, .rh-home__latest > .ast-container { width:100%; max-width:none; padding:0; }
  .rh-home__section-head, .rh-home__section-head--left { margin-bottom:28px; text-align:left; }
  .rh-theme-grid, .rh-post-grid { grid-template-columns:1fr; gap:18px; }
  .rh-site-footer__inner { display:grid; grid-template-columns:1fr; gap:38px; padding:56px 20px; }
  .rh-site-footer__grid { grid-template-columns:1fr 1fr; gap:24px; }
}

@media (max-width:420px) {
  .rh-site-brand__text { display:none; }
  .rh-site-footer__grid { grid-template-columns:1fr; }
}
