/* Stories — site stylesheet */
:root {
  --bg: #f7f7f9;
  --surface: #fff;
  --ink: #121214;
  --muted: #6b6b74;
  --line: rgba(18, 18, 20, 0.1);
  --navy: #0c0c0e;
  --blue: #1370b2;
  --sky: #00a8e7;
  --mist: #dff2fb;
  --warm: #f6ebe0;
  --radius: 0;
  --shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.05), 0 12px 32px -12px rgba(var(--shadow-rgb), 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "IBM Plex Sans JP", "Hiragino Sans", sans-serif;
  --round: "Zen Kaku Gothic New", "IBM Plex Sans JP", sans-serif;
  --latin: "Fraunces", serif;
  --wrap: min(72rem, calc(100% - 3rem));
  --header-h: 4.25rem;
  --header-bg: rgba(12, 12, 14, 0.9);
  --hero-a: #0c0c0e;
  --hero-b: #1b1b1f;
  --hero-c: #2c3036;
  --glow: 0, 168, 231;
  --shadow-rgb: 12, 12, 14;
}


html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
html[data-text-size="s"] { font-size: 95%; }
html[data-text-size="l"] { font-size: 118.75%; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.025rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.6rem 1rem; background: var(--navy); color: #fff;  }
.skip-link:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35); }

.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  width: min(80rem, calc(100% - 3rem));
  min-height: var(--header-h);
  margin-inline: auto;
}

.logo { display: block; flex: 0 1 auto; min-width: 0; }
.logo img { width: clamp(15rem, 36vw, 24rem); height: auto; position: relative; top: 0.1rem; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; font-size: 0.9rem; }
.site-nav a {
  white-space: nowrap;
  padding: 0.5rem 0.9rem; text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--sky); padding-inline: 0.5rem; margin-inline: 0.4rem; }
.site-nav .nav-cta { margin-left: 0.5rem; background: var(--sky); color: var(--navy); font-weight: 600; }
.site-nav .nav-cta:hover { background: #fff; color: var(--navy); }

.text-size { display: flex; gap: 0.25rem; }
.text-size__btn {
  min-width: 2.2rem; height: 2.2rem; border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent; color: #fff; font: 600 0.82rem/1 var(--sans); cursor: pointer;
}
.text-size__btn small { font-size: 0.7em; margin-left: 0.05em; }
.text-size__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.text-size__btn:disabled { opacity: 0.35; cursor: default; }

.nav-toggle { display: none; margin-left: auto; width: 2.75rem; height: 2.75rem; border: 0; background: rgba(255, 255, 255, 0.1); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 0.8rem; right: 0.8rem; height: 2px; background: #fff; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span:first-child { top: 1.05rem; }
.nav-toggle span:last-child { top: 1.6rem; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 1.33rem; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 1.33rem; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(58, 62, 66, 0.82) 0%, rgba(58, 62, 66, 0.6) 35%, rgba(58, 62, 66, 0.12) 65%, transparent 100%);
}

.hero__inner { width: var(--wrap); margin-inline: auto; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(6rem, 11vw, 9rem); max-width: 72rem; }

.hero__note {
  display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1.5rem;
  font-family: var(--round); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.85);
}
.hero__note::before { content: ""; width: 2.2rem; height: 1px; background: var(--sky); }

.hero__title { margin: 0 0 1.75rem; }
.hero__title img { width: clamp(17rem, 40vw, 29rem); height: auto; }

.hero__lede { max-width: 38rem; margin: 0 0 2.25rem; font-size: clamp(0.98rem, 1.5vw, 1.1rem); line-height: 2; color: rgba(255, 255, 255, 0.9); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__count { margin: 1.75rem 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.hero__count strong { font: 500 1.7rem/1 var(--latin); color: #fff; margin: 0 0.15em; vertical-align: -0.1em; }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(2.5rem, 6vw, 5rem); color: var(--bg); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgba(255, 255, 255, 0.5);
  --btn-sep: rgba(255, 255, 255, 0.3); --btn-hover: #fff; --btn-hover-fg: var(--navy);
  --btn-h: 3.25rem;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 1.5rem;
  min-height: var(--btn-h); padding: 0 0 0 1.6rem;
  border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--round); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; line-height: 1.3; text-decoration: none;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* hover: 左から色が流れ込む */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--btn-hover-fg); border-color: var(--btn-hover); }
.btn:hover::before { transform: scaleX(1); }
.prose a.btn, .prose a.btn:hover { text-decoration: none; }
.prose a.btn { color: var(--btn-fg); }
.prose a.btn:hover { color: var(--btn-hover-fg); }

/* 矢印は正方形のセルに入れて、区切り線で分ける */
.btn svg {
  flex: none; box-sizing: border-box; width: var(--btn-h); height: calc(var(--btn-h) - 2px); padding: 1.05rem;
  border-left: 1px solid var(--btn-sep); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover svg { transform: translateX(3px); border-color: transparent; }

/* 戻るボタン: 矢印を左に */
.btn--back { padding: 0 1.6rem 0 0; }
.btn--back svg { border-left: 0; border-right: 1px solid var(--btn-sep); }
.btn--back:hover svg { transform: translateX(-3px); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); --btn-line: #fff; --btn-sep: rgba(12, 12, 14, 0.16); --btn-hover: var(--sky); --btn-hover-fg: var(--navy); }
.btn--line { --btn-line: rgba(255, 255, 255, 0.55); }
.btn--dark { --btn-bg: var(--navy); --btn-fg: #fff; --btn-line: var(--navy); --btn-sep: rgba(255, 255, 255, 0.25); --btn-hover: var(--blue); --btn-hover-fg: #fff; }

.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ---------- stories ---------- */
.stories { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 9vw, 7rem); }

.section-head { display: flex; align-items: baseline; gap: 1.1rem; margin-bottom: 2.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0; font: 400 1.05rem/1 var(--latin); font-style: italic; letter-spacing: 0.04em; color: var(--blue); }
.section-head h2 { margin: 0; font-family: var(--round); font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: 0.04em; line-height: 1.4; }

.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.story-grid > li { display: flex; }
.story-grid > li.is-featured { grid-column: 1 / -1; }

.card {
  position: relative; display: flex; flex: 1; flex-direction: column; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(var(--shadow-rgb), 0.05), 0 22px 44px -16px rgba(var(--shadow-rgb), 0.24); }

.card__media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--warm); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.7rem; }

.card__meta { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.7rem; font-size: 0.82rem; color: var(--muted); }
.card__no { font: 500 0.95rem/1 var(--latin); color: var(--blue); letter-spacing: 0.06em; }
.card__no::after { content: ""; display: inline-block; width: 1.4rem; height: 1px; background: var(--blue); opacity: 0.4; vertical-align: middle; margin-left: 0.7rem; }

.card__title { margin: 0 0 0.7rem; font-family: var(--round); font-weight: 700; font-size: clamp(1.08rem, 1.7vw, 1.22rem); line-height: 1.6; }
.card__title a { text-decoration: none; background: linear-gradient(var(--sky), var(--sky)) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--ease); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { background-size: 100% 2px; }

.card__excerpt { margin: 0; font-size: 0.93rem; line-height: 1.85; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.tags li { padding: 0.2rem 0.75rem; background: var(--mist); color: var(--blue); font-size: 0.74rem; font-weight: 500; line-height: 1.7; }
.tags li::before { content: "#"; opacity: 0.55; margin-right: 0.1em; }

/* featured: 横長 */
.is-featured .card { flex-direction: row; }
.is-featured .card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 20rem; }
.is-featured .card__body { justify-content: center; padding: clamp(1.75rem, 4vw, 3rem); }
.is-featured .card__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.is-featured .card__excerpt { font-size: 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); font-size: 0.88rem; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 4rem 0 2.5rem; text-align: center; }
.site-footer__logo { width: min(15rem, 60%); height: auto; }
.site-footer p { margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.site-footer__copy { margin-top: 1rem !important; padding-top: 1.5rem; width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.55); }

/* ---------- responsive ---------- */
@media (max-width: 70rem) {
  .text-size { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0.25rem;
    margin: 0; padding: 1rem 1.5rem 1.5rem; background: var(--navy);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.4s var(--ease), visibility 0s 0.4s;
  }
  .site-nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.4s var(--ease); }
  .site-nav a { padding: 0.85rem 0.5rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; margin: 0; color: var(--sky); }
  .site-nav .nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

@media (max-width: 48rem) {
  :root { --wrap: calc(100% - 2.5rem); --header-h: 3.75rem; }
  .site-header__inner { width: calc(100% - 2.5rem); }
  .hero__bg img { object-position: 72% 50%; }
  .hero__bg::after { background: linear-gradient(90deg, rgba(58, 62, 66, 0.78) 0%, rgba(58, 62, 66, 0.5) 60%, rgba(58, 62, 66, 0.2) 100%); }
  .hero__actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .story-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .is-featured .card { flex-direction: column; }
  .is-featured .card__media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .section-head { flex-direction: column; gap: 0.5rem; }
  .br-pc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- story detail ---------- */
.page-narrow { max-width: 40rem; padding: 5rem 0; }

.story-head {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 50% 90% at 90% 0%, rgba(var(--glow), 0.28), transparent 70%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 60%, var(--hero-c) 100%);
}
.story-head__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(11rem, 24vw, 17rem); gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center; max-width: 64rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.story-head__eyebrow { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.1rem; font-family: var(--round); font-size: 0.85rem; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.8); }
.story-head__eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--sky); }
.story-head__no { font: 400 1.15rem/1 var(--latin); letter-spacing: 0.06em; color: var(--sky); }
.story-head h1 { margin: 0 0 1.5rem; font-family: var(--round); font-weight: 700; font-size: clamp(1.55rem, 3.6vw, 2.4rem); line-height: 1.5; letter-spacing: 0.02em; text-wrap: balance; }

.byline { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; margin: 0 0 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.92rem; }
.byline > div { display: flex; align-items: baseline; gap: 0.8rem; }
.byline dt { font-size: 0.72rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6); }
.byline dd { margin: 0; font-weight: 600; }
.byline__links { display: flex; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.byline__links a { color: var(--sky); text-decoration: none; border-bottom: 1px solid currentColor; }
.byline__links a:hover { color: #fff; }

.tags--dark { margin-top: 0; }
.tags--dark li { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.92); }

.story-head__media { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--warm); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55); }
.story-head__media img { width: 100%; height: 100%; object-fit: cover; }

.story-main { max-width: 44rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 9vw, 6.5rem); }

.prose { font-size: 1.06rem; line-height: 2.15; letter-spacing: 0.02em; }
.prose p { margin: 0 0 1.75em; }
.prose p:first-child { font-size: 1.12em; }
.prose strong { font-weight: 600; background: linear-gradient(transparent 62%, rgba(var(--glow), 0.32) 62%); }
.prose em { font-style: normal; font-weight: 600; color: var(--blue); }
.prose a { color: var(--blue); }
.prose img { height: auto; margin: 2rem auto; }

.story-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

@media (max-width: 48rem) {
  .story-head__inner { grid-template-columns: 1fr; }
  .story-head__media { display: none; }
  .byline > div { flex-direction: column; gap: 0.15rem; }
  .prose { line-height: 2.05; }
}

/* ---------- static pages (about / contact / contribute / thanks / error) ---------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse 50% 120% at 90% 0%, rgba(var(--glow), 0.28), transparent 70%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 60%, var(--hero-c) 100%);
}
.page-head__inner { max-width: 44rem; padding: clamp(2.5rem, 6vw, 4.25rem) 0; }
.page-head__eyebrow { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.9rem; font: 400 1.05rem/1 var(--latin); font-style: italic; letter-spacing: 0.06em; color: var(--sky); }
.page-head__eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--sky); }
.page-head h1 { margin: 0; font-family: var(--round); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.5; letter-spacing: 0.03em; }

.page-main { max-width: 44rem; padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(4rem, 9vw, 6.5rem); }

.prose h2 { margin: 3rem 0 1rem; padding-left: 0.9rem; border-left: 4px solid var(--sky); font-family: var(--round); font-weight: 700; font-size: 1.3rem; line-height: 1.5; letter-spacing: 0.03em; }
.prose h3 { margin: 2rem 0 0.6rem; font-family: var(--round); font-size: 1.1rem; }
.prose ul { margin: 0 0 1.75em; padding-left: 1.4rem; }
.prose li { margin: 0 0 0.5rem; padding-left: 0.2rem; }
.prose li::marker { color: var(--sky); }
.prose .text-marker { font-weight: 600; background: linear-gradient(transparent 62%, rgba(var(--glow), 0.32) 62%); color: inherit; }
.prose .text-link { font-weight: 600; color: var(--blue); }
.prose .btn { margin-top: 0.5rem; }

/* ---------- forms ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.story-form { margin-top: 2.5rem; padding: clamp(1.4rem, 4vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1rem; line-height: 1.7; letter-spacing: 0; }
.story-form p { margin: 0; }
.form-field { margin: 0 0 1rem; }
.form-field input[type="text"], .form-field input[type="email"], .form-field textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1px solid rgba(var(--shadow-rgb), 0.25); background: var(--bg); color: var(--ink); font: inherit;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-field textarea { min-height: 14rem; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8a8076; }
.form-field input:focus, .form-field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(var(--glow), 0.28); }

.form-options { margin: 1.5rem 0 1.25rem; padding: 0; border: 0; }
.form-options legend { margin-bottom: 0.7rem; padding: 0; font-family: var(--round); font-weight: 700; }
.form-options p, .form-confirm { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0 0 0.7rem; }
.form-options p label, .form-confirm label { flex: 1; line-height: 1.5; cursor: pointer; padding-top: 0.1rem; }

.story-form input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 1.45rem; width: 1.45rem; height: 1.45rem; margin: 0.05rem 0 0; border: 2px solid var(--blue); background: #fff; cursor: pointer; position: relative; }
.story-form input[type="checkbox"]::after { content: ""; position: absolute; left: 0.38rem; top: 0.1rem; width: 0.38rem; height: 0.72rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform 0.2s var(--ease); }
.story-form input[type="checkbox"]:checked { background: var(--blue); }
.story-form input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.story-form input[type="checkbox"]:disabled { border-color: #c9c2ba; background: #f1ede8; cursor: not-allowed; }
.form-options p.form-options__nested { margin: 0.15rem 0 0.7rem; padding-left: 2.15rem; }

.privacy-policy-open { appearance: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.45rem 1.1rem; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.privacy-policy-open:hover { background: var(--ink); color: #fff; }

.privacy-policy-dialog { padding: 0; border: 0; width: min(92vw, 40rem); max-height: min(86vh, 40rem); background: transparent; }
.privacy-policy-dialog::backdrop { background: rgba(12, 12, 14, 0.6); }
.privacy-policy-dialog__panel { display: flex; flex-direction: column; max-height: min(86vh, 40rem); background: #fff; }
.privacy-policy-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; background: var(--navy); color: #fff; }
.privacy-policy-dialog__head h2 { margin: 0; padding: 0; border: 0; font-size: 1.05rem; }
.privacy-policy-dialog__close { width: 2rem; height: 2rem; border: 0; background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; }
.privacy-policy-dialog__body iframe { display: block; width: 100%; height: min(68vh, 32rem); border: 0; }
.privacy-policy-dialog__fallback { margin: 0; padding: 0.7rem 1.1rem 0.9rem; border-top: 1px solid var(--line); font-size: 0.88rem; }

.form-actions, div.mfp_buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1rem; margin-top: 1.5rem; }
.form-actions button:not([type="reset"]), div.mfp_buttons button:not(#mfp_button_cancel):not([type="reset"]), #mfp_button_send {
  appearance: none; -webkit-appearance: none; min-height: 3.1rem; padding: 0.7rem 2rem; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.form-actions button:not([type="reset"]):hover, div.mfp_buttons button:not(#mfp_button_cancel):not([type="reset"]):hover, #mfp_button_send:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.form-actions button[type="reset"], div.mfp_buttons button[type="reset"], div.mfp_buttons #mfp_button_cancel { appearance: none; margin-left: auto; min-height: 0; padding: 0.1rem 0; border: 0; background: transparent; color: #8f8f98; font: inherit; font-size: 0.75rem; box-shadow: none; cursor: pointer; }
.form-actions button[type="reset"]:hover, div.mfp_buttons button[type="reset"]:hover, div.mfp_buttons #mfp_button_cancel:hover { color: var(--muted); background: transparent; }

.mfp_err { color: #b42318; min-height: 0.5rem; font-size: 0.88rem; }
div#mfp_hidden { overflow: hidden; width: 1px; height: 1px; padding: 0; margin: 0; }
div#mfp_overlay_background, div#mfp_loading_screen { position: fixed; inset: 0; background: rgba(12, 12, 14, 0.5); z-index: 80; display: none; }
div#mfp_overlay { position: fixed; z-index: 90; inset: 8vh 6vw auto; max-height: 84vh; overflow: auto; display: none; background: #fff; border: 1px solid var(--line); padding: 1.5rem; }
table#mfp_confirm_table { width: 100%; border-collapse: collapse; }
table#mfp_confirm_table th, table#mfp_confirm_table td { text-align: left; border-top: 1px solid var(--line); padding: 0.6rem 0.4rem; vertical-align: top; }
