/* fonts:begin (generated by tools/beta-hp/subset-fonts.py — do not edit by hand) */
@font-face {
  font-family: "Zen Maru Gothic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/zen-maru-gothic-500.woff2?v=e66d1e0469") format("woff2");
}
@font-face {
  font-family: "Zen Maru Gothic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/zen-maru-gothic-700.woff2?v=16e739d220") format("woff2");
}
@font-face {
  font-family: "Zen Maru Gothic"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("/assets/fonts/zen-maru-gothic-900.woff2?v=cc12efe928") format("woff2");
}
/* fonts:end */

/*
 * Friengers6 Beta HP — shared stylesheet.
 * Colors / sizes: edit the tokens in :root below.
 * Page text, links and images live in config/beta-hp/*.content.json (see config/beta-hp/README.md).
 */
:root {
  --navy: #1b2a63;
  --navy-soft: #3d4a6a;
  --text: #1f2740;
  --muted: #5b6480;
  --orange: #f2661b;
  --orange-dark: #d9540f;
  --orange-text: #c2410c;      /* >= 5:1 on white; used for text and button fills */
  --orange-text-dark: #9a3412;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --card: #ffffff;
  --border: #e3e8f2;
  --shadow: 0 2px 10px rgba(27, 42, 99, 0.06);
  --radius: 12px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500; /* Zen Maru Gothic's regular (400) reads thin at small sizes; bump the default up one step */
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-badge {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy); color: #fff;
  font-weight: 900; font-size: 22.5px; letter-spacing: -0.02em;
  -webkit-text-stroke: 0.6px #fff;   /* a touch heavier; the text fills ~80% of the square */
}
.brand-text { line-height: 1.2; }
.brand-name { display: block; font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.brand-tag { display: block; font-size: 12.5px; color: var(--navy-soft); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 13.5px; font-weight: 600; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { color: var(--orange-text); border-bottom-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--navy);
}
.lang svg { width: 16px; height: 16px; }
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange-text); color: #fff; text-decoration: none;
  font-weight: 700; border-radius: 999px; border: 0;
  box-shadow: 0 6px 16px rgba(242, 102, 27, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--orange-text-dark); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 7.3px 19px; font-size: 16px; }
.menu-toggle {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; color: var(--navy); cursor: pointer; padding: 10px;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: end; min-height: 410px; }
.hero-copy { position: relative; z-index: 2; padding: 36px 0 30px; }
.hero h1 {
  margin: 0 0 18px; color: var(--navy);
  font-size: clamp(36px, 4.8vw, 52px); line-height: 1.22; font-weight: 800; letter-spacing: 0.02em;
}
.hero h1 .ph { display: inline-block; }   /* wrap only between phrases (builder wraps each 。/、 phrase) */
.hero-lede { margin: 0 0 26px; font-size: 18px; line-height: 1.75; color: var(--text); font-weight: 500; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--navy-soft); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: var(--navy); }
.hero-visual { position: relative; align-self: stretch; container-type: inline-size; min-height: 320px; }
/* Everything in the visual scales with its column width (cqi), so no size breaks it. */
.hero-people {
  position: absolute; right: 20cqi; bottom: 0; width: 92cqi; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 20%), linear-gradient(to bottom, transparent 0, #000 12%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 20%), linear-gradient(to bottom, transparent 0, #000 12%);
  mask-composite: intersect, intersect;
}
/* Single composed hero image (people + chat mock baked in): scales as one unit. */
.hero-art { position: absolute; right: -2cqi; bottom: 0; width: 116cqi; max-width: none; }
.hand-note {
  position: absolute; right: 3cqi; top: 2cqi; z-index: 3; margin: 0;
  font-family: "Klee", "Yomogi", "Hiragino Maru Gothic ProN", "Comic Sans MS", cursive;
  font-size: clamp(13px, 3.7cqi, 21px); line-height: 1.35; font-weight: 600; color: #1e3fa8;
  transform: rotate(-12deg); transform-origin: right top;
}
.hand-note::after {
  content: ""; display: block; width: 6em; height: 3px; margin: 0.4em 0 0 0.6em;
  background: var(--orange); border-radius: 2px; transform: rotate(-4deg);
}
/* Phone mock: sized in em, font-size tracks the column width. */
.phone {
  position: absolute; right: 1cqi; bottom: -2.4em; z-index: 2;
  font-size: clamp(6px, 1.85cqi, 10.5px);
  width: 18em; height: 31.5em; padding: 0.95em;
  background: #111827; border-radius: 3.2em;
  box-shadow: 0 18px 40px rgba(27, 42, 99, 0.25);
  transform: rotate(-4deg);
}
.phone-screen {
  height: 100%; border-radius: 2.5em; overflow: hidden;
  background: linear-gradient(180deg, #e9f0fb 0%, #dfe8f7 100%);
  line-height: 1.5; color: var(--text);
}
.phone-bar { display: flex; align-items: center; gap: 1.1em; padding: 2.1em 1.3em 0.95em; font-weight: 800; font-size: 1.33em; color: var(--navy); }
.phone-bar::before { content: "‹"; font-size: 1.3em; line-height: 1; color: var(--navy-soft); }
.chat { display: flex; flex-direction: column; gap: 0.95em; padding: 0.57em 0.95em; }
.msg { display: flex; align-items: flex-start; gap: 0.57em; }
.msg .ava { flex: 0 0 2.1em; height: 2.1em; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.msg .ava svg { width: 1.33em; height: 1.33em; color: var(--navy); }
.bubble { background: #fff; border-radius: 1.14em; padding: 0.57em 0.86em; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { background: #b9ec9a; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.block { padding: 30px 0 8px; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: 0.02em; }
.section-head p { margin: 0; font-size: 13.5px; color: var(--navy-soft); }
.section-head .more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--orange-text); font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.section-head .more svg { width: 16px; height: 16px; }

/* companions */
.section-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.companion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.companion {
  display: block; text-decoration: none; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.companion:hover, .companion:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27, 42, 99, 0.12); }
.companion picture { display: block; }
.companion .portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px 0; }
/* each person in their own frame */
.companion .portraits img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0;
  border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft);
}
.companion img { width: 100%; aspect-ratio: 288 / 104; object-fit: cover; background: var(--bg-soft); }
.companion-body { padding: 10px 14px 12px; }
.companion-name { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.companion-name .ja { font-size: 19px; font-weight: 800; color: var(--navy); }
.companion-name .en { font-size: 14px; color: var(--navy-soft); }
.companion-desc { margin: 2px 0 0; font-size: 14.5px; color: var(--navy-soft); }

/* MY shelf */
.my-shelf {
  display: block; position: relative; margin-top: 16px; text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #eef3fb 0%, #f7f9fd 70%, #fff 100%);
  box-shadow: var(--shadow);
}
.my-row {
  display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; padding: 12px 60px 0 20px; height: 116px; overflow: hidden;
  /* same warm, blurred look as the companion portraits; a light veil keeps the silhouettes readable */
  background: linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)), var(--my-image, none) 50% 44% / cover;
}
.my-row img {
  height: calc(102px * var(--zoom, 1)); width: auto;
  filter: brightness(0.45) saturate(1.3) drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
  transform: translateY(var(--sink, 0%));   /* sunk into the row's bottom edge (the row clips) so the bodies don't float */
}
.my-row img.small { height: calc(90px * var(--zoom, 1)); }
.my-chevron { position: absolute; right: 20px; top: 47px; width: 22px; height: 22px; color: var(--navy); }
.my-label { display: flex; align-items: baseline; gap: 16px; padding: 8px 20px 12px; background: #fff; }
.my-label strong { font-size: 19px; font-weight: 800; color: var(--navy); }
.my-label span { font-size: 13px; color: var(--navy-soft); }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  text-align: center; padding: 14px 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, #f1f6fd 0%, #fff 80%);
}
.feature img {
  width: 150px; height: 74px; margin: 0 auto 6px; object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%);
}
.feature h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--navy); }
.feature p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.feature-tag {
  display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--navy-soft);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 1px 10px;
}

/* info blocks (start / MY / Beta / safety / contact) */
.info { background: var(--bg-soft); margin-top: 36px; padding: 28px 0 36px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 12px; font-size: 21px; font-weight: 800; color: var(--navy); }
.panel ul { margin: 0; padding-left: 1.2em; }
.panel li { margin-bottom: 6px; font-size: 14.5px; }
.panel p { margin: 0 0 8px; font-size: 14.5px; }
.panel.wide { grid-column: 1 / -1; }
.panel-sub { margin: 14px 0 6px; font-size: 14.5px; font-weight: 800; color: var(--navy); }
.panel-sub:first-of-type { margin-top: 4px; }
.note { color: var(--muted); font-size: 13px; }
.panel p.note { font-size: 13px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--orange-text);
  border: 1px solid var(--orange); border-radius: 999px; padding: 2px 12px; margin-bottom: 12px;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; margin: 0; padding: 14px 16px;
  background: var(--bg-soft); border-radius: 10px; font-size: 13.5px;
}
.steps li strong { display: block; color: var(--navy); font-size: 14.5px; margin-bottom: 2px; }
.steps li strong::before { content: counter(step) ". "; color: var(--orange-text); }
.friend-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.friend-link {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 8px 4px; border-radius: 10px; text-decoration: none;
  background: #047a35; color: #fff; font-weight: 700; font-size: 16px; text-align: center;
}
.friend-link:hover, .friend-link:focus-visible { background: #036a2d; }

/* closing band */
.closing {
  position: relative; min-height: 132px;
  display: grid; place-items: center; text-align: center;
  background: #f6d9c6 var(--closing-image, none) center 60% / cover no-repeat;
}
.closing p { margin: 0; padding: 18px 16px 30px; color: var(--navy); }
.closing strong { display: block; font-size: 23px; font-weight: 800; letter-spacing: 0.03em; text-shadow: 0 1px 12px rgba(255, 240, 230, 0.8); }
.closing span { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; }

/* footer */
.site-footer { padding: 20px 0 22px; border-top: 1px solid var(--border); }
.site-footer .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 40px; }
.site-footer .logo-badge { width: 44px; height: 44px; font-size: 19px; border-radius: 10px; -webkit-text-stroke: 0.5px #fff; }
.site-footer .brand-name { font-size: 17px; }
.site-footer .brand-tag { font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 auto; padding: 0; list-style: none; font-size: 13px; }
.footer-links a { text-decoration: none; color: var(--navy-soft); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--orange-text); }
.copyright { flex-basis: 100%; margin: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .site-header .wrap { gap: 14px; }
  .nav { gap: 12px; font-size: 13px; }   /* six items: keep ~28px spare at the 861px edge, just above the hamburger breakpoint */
  .brand-tag { font-size: 11px; }
}
@media (max-width: 860px) {
  .site-header .wrap { height: 64px; gap: 10px; }
  .site-header .brand-tag { display: none; }
  .site-header .brand-name { font-size: 34px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 24px 16px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a[aria-current="page"] { border-bottom-color: var(--border); }
  .site-header.open .nav { display: flex; }

  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 26px 0 8px; }
  .hero h1 { font-size: clamp(34px, 9.8vw, 46px); }
  .hero-lede { font-size: 15.5px; margin-bottom: 20px; }
  .trust { display: none; }
  .hero-visual { margin: 8px -24px 0; min-height: 0; }
  .hero-people {
    position: relative; right: auto; width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%);
    mask-composite: add;
  }
  .hand-note { display: none; }
  .hero-art { position: relative; right: auto; width: 100%; }
  .phone { font-size: 1.5cqi; right: 2cqi; bottom: -1.2em; }

  .section-head h2 { font-size: 24px; }
  .section-head p, .section-head .more { display: none; }
  .companion-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .companion .portraits { gap: 5px; padding: 6px 6px 0; }
  .companion .portraits img { border-radius: 6px; }
  .companion img { aspect-ratio: 1 / 1; object-position: 22% 30%; }
  .companion.focus-center img { object-position: 50% 30%; }
  .companion.focus-right img { object-position: 80% 30%; }
  .companion.has-mobile-image img { object-position: 50% 30%; }
  .companion-body { padding: 8px 8px 10px; text-align: center; }
  .companion-name { justify-content: center; gap: 8px; line-height: 1.3; }
  .companion-name .ja { font-size: 15px; }
  .companion-name .en { font-size: 12px; }
  .companion-desc { margin-top: 2px; font-size: 13px; line-height: 1.5; }
  .my-row { padding: 10px 32px 0 6px; height: 68px; gap: 1px; }
  .my-row img { height: 61px; min-width: 0; flex-shrink: 1; object-fit: contain; }
  .my-row img.small { height: 52px; }
  .my-chevron { right: 8px; top: 23px; }
  .my-label { padding: 6px 14px 10px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature { padding: 10px 8px 12px; }
  .feature img { width: 110px; height: 54px; }
  .feature h3 { font-size: 15px; }
  .feature p { display: none; }
  .info-grid, .steps { grid-template-columns: 1fr; }
  .friend-links { grid-template-columns: repeat(2, 1fr); }
  .closing { min-height: 118px; background-position: 78% 60%; }
  .closing strong { font-size: 17px; }
  .closing p { padding: 14px 12px 26px; }
  .site-footer .wrap { justify-content: space-between; }
  .footer-links { order: 3; flex-basis: 100%; justify-content: center; margin: 0; }
  .copyright { order: 4; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero-visual { margin: 8px -16px 0; }
  .panel { padding: 18px 16px; }
}
/* Phones in landscape: short viewport, so don't pin the header over the content. */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header { position: relative; }
  .hero .wrap { min-height: 0; }
  .hero-copy { padding: 20px 0 22px; }
  .hero h1 { font-size: clamp(34px, 4.6vw, 48px); margin-bottom: 10px; }
  .hero-lede { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .companion { transition: none; }
}
