/* ChildCareWeb — design base from sandbox/re-planning/PC.png */

:root {
  /* The client's three colours are used as given, never darkened. None of them
     reaches 4.5:1 as small text, so coloured text stays --color-text and the
     colours carry surfaces, lines and icons. Primary buttons are pink with white
     text (2.6:1) by the client's choice. --color-gold is the one coloured text:
     sand darkened to 4.8:1 on --color-bg for the trust numbers. */
  --color-key: #d8899a;
  --color-key-soft: #f8e6eb;
  --color-mint: #5d8c6a;
  --color-mint-soft: #e5f0e9;
  --color-sand: #c8a96b;
  --color-sand-soft: #efe4cf;
  --color-gold: #86682c;
  --color-blue: #5b9bd5;
  --color-blue-soft: #eef5fb;
  --color-text: #222222;
  --color-text-muted: #555555;
  --color-border: #e6dcd2;
  --color-bg: #faf6f2;
  --color-bg-soft: #f3ebe4;
  --color-surface: #ffffff;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Lora", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-latin-serif: var(--font-serif);
  --container: 1440px;
  --gutter: clamp(1rem, 4vw, 4rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgba(51, 51, 51, 0.06);
  --space-section: clamp(4.5rem, 10vw, 8rem);
  --header-full-h: 4.25rem;
  --header-compact-h: 3.75rem;
  /* The header's current height, which sticky elements sit below. */
  --header-h: var(--header-full-h);
  /* 3行の宣言と、文の長い記事タイトル。ほかの下層見出しはトップと同じ。 */
  --page-title-size: clamp(1.35rem, 5.2vw, 2.05rem);
}

.is-header-compact {
  --header-h: var(--header-compact-h);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* Holds the full header's place, so the page does not move when it shrinks. */
  padding-top: calc(var(--header-full-h) + 1px);
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-text);
  text-decoration: none;
  text-decoration-color: var(--color-key);
  text-decoration-thickness: 2px;
}

a:hover {
  text-decoration-line: underline;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccw-icon {
  display: inline-block;
  font-family: "Material Symbols Outlined";
  font-size: 1.15em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
  vertical-align: -0.2em;
  overflow: hidden;
  width: 1em;
  font-feature-settings: "liga";
}

.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;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* White on the base pink is only 2.6:1, so a tight glow of deeper pink
   lifts the letters without reading as an outline. The hex is the same
   colour for browsers without relative colour syntax. */
.btn--primary {
  background: var(--color-key);
  color: #fff;
  text-shadow: 0 0 2px #ad4561;
  text-shadow: 0 0 2px oklch(from var(--color-key) calc(l - 0.18) calc(c + 0.04) h);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-key) 45%, transparent);
}

.btn--outline {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-key);
}

.btn--outline:hover {
  background: var(--color-key-soft);
}

.btn--sm {
  min-height: 2.25rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.85rem 1.9rem;
  font-size: 1rem;
}

/* Header */
/* Fixed rather than sticky, and shrunk once the page is scrolled (see footer.php). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: min-height 0.3s ease;
}

.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo img {
  width: auto;
  height: 40px;
  transition: height 0.3s ease, max-height 0.3s ease;
}

.is-header-compact .site-header__logo img {
  height: 34px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__inner,
  .site-header__logo img {
    transition: none;
  }
}

.site-header__menu-btn {
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.site-header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
}

.site-nav.is-open {
  display: block;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}

.site-nav__list {
  display: grid;
  gap: 0.35rem;
}

.site-nav__link {
  display: block;
  padding: 0.55rem 0.25rem;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav__link.is-current,
.site-nav__link:hover {
  text-decoration: underline 2px var(--color-key);
  text-underline-offset: 0.45em;
}

/* In the phone menu the child pages sit indented under their parent. */
.site-nav__sub {
  display: grid;
  margin: 0 0 0.35rem 0.25rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-key-soft);
}

.site-nav__sub-link {
  display: block;
  padding: 0.35rem 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.site-nav__utils {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.site-nav__util {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.site-nav__utils .btn--primary::after {
  content: "arrow_forward";
  content: "arrow_forward" / "";
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  line-height: 1;
  vertical-align: -0.15em;
}

/* The menu button sits at the far right on phones, with the CTA just to its left. */
.site-header__cta {
  order: 1;
  margin-left: auto;
  white-space: nowrap;
}

.site-header__menu-btn {
  order: 2;
}

.site-header__menu-btn:has(~ .site-header__cta) {
  margin-left: 0;
}

@media (max-width: 379px) {
  .site-header__logo {
    flex-shrink: 1;
    min-width: 0;
  }

  .site-header__logo img {
    height: auto;
    max-height: 36px;
    max-width: 100%;
  }

  .is-header-compact .site-header__logo img {
    height: auto;
    max-height: 34px;
  }

  .site-header__cta {
    padding-inline: 0.8rem;
    font-size: 0.78rem;
  }
}

/* Once scrolled, the PC header keeps one height and logo size at every width. */
@media (min-width: 960px) {
  :root {
    --header-compact-h: 4rem;
  }

  .site-header__inner {
    gap: 1rem;
  }

  .site-header__logo img {
    height: 44px;
  }

  .is-header-compact .site-header__logo img {
    height: 40px;
  }

  .site-header__menu-btn {
    display: none;
  }

  .site-header__cta {
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .site-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.5rem;
  }

  .site-nav__link {
    padding: 0.35rem 0;
    font-size: 0.84rem;
  }

  .site-nav__utils {
    margin: 0;
    padding: 0;
    border: 0;
    margin-left: 0.5rem;
  }
}

/* Child pages drop down on hover, and on focus so they can be reached by keyboard.
   The parent stays a link to its hub page, so touch users can still get there. */
@media (min-width: 960px) {
  .site-nav__item--has-sub {
    position: relative;
  }

  .site-nav__item--has-sub > .site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .site-nav__item--has-sub > .site-nav__link::after {
    content: "";
    width: 0.35rem;
    height: 0.35rem;
    border-right: 1.5px solid var(--color-key);
    border-bottom: 1.5px solid var(--color-key);
    transform: translateY(0) rotate(45deg);
  }

  .site-nav__sub {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: -1rem;
    z-index: 10;
    min-width: 12.5rem;
    margin: 0;
    padding: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }

  /* Bridges the gap under the parent so the pointer can travel into the menu. */
  .site-nav__sub::before {
    content: "";
    position: absolute;
    top: -0.7rem;
    left: 0;
    right: 0;
    height: 0.7rem;
  }

  .site-nav__item:last-child .site-nav__sub {
    left: auto;
    right: -1rem;
  }

  .site-nav__item--has-sub:hover > .site-nav__sub,
  .site-nav__item--has-sub:focus-within > .site-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .site-nav__sub-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    white-space: nowrap;
  }

  .site-nav__sub-link:hover {
    background: var(--color-bg);
    text-decoration-line: none;
  }
}

/* Six nav items plus the CTA only just fit here, so the header gives up
   its wide gutter until the layout reaches 1200px. */
@media (min-width: 960px) and (max-width: 1199px) {
  .site-header__inner {
    width: calc(100% - 1.5rem);
  }

  .site-nav__list {
    column-gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .site-header__logo img {
    height: 52px;
  }
}

@media (min-width: 1280px) {
  :root {
    --header-full-h: 6rem;
  }

  .site-header__logo img {
    height: 72px;
  }
}

/* On the staff pages the nav would wrap and stretch the header, so the link
   to the top page gives way to the logo, which goes to the same place. */
@media (min-width: 960px) and (max-width: 1039px) {
  .site-nav__util:first-child {
    display: none;
  }
}

/* Section helpers */
.section {
  padding: var(--space-section) 0;
}

.section + .section {
  padding-top: clamp(2.25rem, 5vw, 4rem);
}

.section--soft + .section:not(.section--soft),
.section:not(.section--soft) + .section--soft,
.section--pink + .section:not(.section--pink),
.section:not(.section--pink) + .section--pink {
  padding-top: var(--space-section);
}

/* White and cream alternate; cards sit white on the cream bands. */
.section--soft {
  background: var(--color-bg);
}

.section--pink {
  background: var(--color-key-soft);
}

.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-label::before,
.section-label::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--color-key);
}

.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* Keep anchored headings clear of the sticky header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.section-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, var(--color-key) 50%, var(--color-sand) 50%);
}

.section-lead {
  margin: 0;
  color: var(--color-text);
  font-size: 1.05rem;
}

/* Heading on the left, its question on the right. */
.section-head--split {
  max-width: none;
  text-align: left;
}

.section-head--split .section-label {
  justify-content: flex-start;
}

.section-head--split .section-label::before {
  display: none;
}

.section-head--split .section-title {
  margin: 0;
}

.section-head--split .section-title::after {
  margin-left: 0;
}

.section-head__intro {
  margin-top: 2rem;
}

.section-head__kicker {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.section-head--split .section-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.8;
}

.section-head__jump {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-weight: 700;
  text-decoration-line: underline;
  text-underline-offset: 0.3em;
}

@media (min-width: 900px) {
  .section-head--split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: end;
  }

  .section-head__intro {
    margin-top: 0;
    padding-left: 2.5rem;
    border-left: 1px solid var(--color-border);
  }

  .section-head--split [data-reveal="right"] {
    --reveal-delay: 0.5s;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--color-key) 14%, transparent), transparent 40%),
    radial-gradient(circle at 10% 80%, color-mix(in srgb, var(--color-mint) 10%, transparent), transparent 35%),
    #fff;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--color-key-soft);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* Each line breaks as a unit so particles never orphan */
.hero__title-line {
  display: block;
}

/* Full-bleed photo hero: 16:9 image with the subject on the right,
   copy sits over the open left side. */
.hero--photo {
  position: relative;
  padding: 0;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

/* Veil keeps the dark copy legible. Nearly flat on mobile, where the
   copy covers the whole frame; a left-to-right wipe on wider screens. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.93),
    rgba(255, 255, 255, 0.86)
  );
}

.hero--photo .hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 22rem;
  padding: 3rem 0;
}

.hero--photo .hero__copy {
  max-width: 34rem;
}

/* Latest case study, pinned to the lower right of the photo on wide
   screens and stacked under the copy on narrow ones. */
.hero__news {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(3px);
  color: inherit;
  text-decoration: none;
}

.hero__news:hover .hero__news-title {
  text-decoration-line: underline;
}

.hero__news-thumb {
  flex-shrink: 0;
  width: 6.5rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
}

.hero__news-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__news-body {
  display: block;
  min-width: 0;
}

.hero__news-label {
  display: block;
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__news-title {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.hero__news-meta {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1040px) {
  .hero__news {
    position: absolute;
    right: 0;
    bottom: 2.25rem;
    width: min(24rem, 44%);
    margin-top: 0;
  }
}

@media (min-width: 860px) {
  .hero__bg img {
    object-position: right center;
  }

  .hero__bg::after {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 34%,
      rgba(255, 255, 255, 0.55) 58%,
      rgba(255, 255, 255, 0.08) 82%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .hero--photo .hero__inner {
    min-height: clamp(26rem, 40vw, 33rem);
    padding: 4rem 0;
  }
}

.hero__news-kicker,
.hero__news-side,
.hero__news-body .hero__news-tag,
.hero__news-area,
.hero__news-name,
.hero__news-more {
  display: none;
}

/* Case hero: cream field, copy on the left, a large case on the right
   with a beige blob behind the photo. */
.hero--case {
  position: relative;
  isolation: isolate;
  padding: 0;
  background: var(--color-bg);
  overflow: clip;
}

/* Two overlapping beige shapes on the right: a deep one behind and a
   translucent pale one in front, both under the copy and photo. */
.hero--case::before,
.hero--case::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.hero--case::before {
  top: -40%;
  right: -10%;
  width: 59%;
  height: 155%;
  background: linear-gradient(130deg, color-mix(in srgb, var(--color-sand), #fff 30%) 0%, var(--color-sand) 80%);
  border-radius: 55% 0 0 45%;
  transform: rotate(11deg);
}

.hero--case::after {
  top: 25%;
  right: 20%;
  width: 40%;
  height: 130%;
  background: color-mix(in srgb, var(--color-sand-soft) 50%, transparent);
  border-radius: 55% 50% 0 0;
  transform: rotate(25deg);
}

/* Stacked, the hero is tall enough to stretch the shapes into stripes
   across the copy, so they sit behind the photo only. */
@media (max-width: 859px) {
  .hero--case::before {
    top: 50%;
    right: -35%;
    width: 100%;
    height: 70%;
  }

  .hero--case::after {
    top: 72%;
    right: 40%;
    width: 75%;
    height: 50%;
  }
}

.hero--case .hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--color-text);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.hero--case .hero__eyebrow::after {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: var(--color-key);
}

@media (max-width: 859px) {
  .hero--case .hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    gap: 0.5rem;
    margin: 0 0 1.1rem;
    white-space: nowrap;
  }

  .hero--case .hero__eyebrow::after {
    width: 1.75rem;
    flex-shrink: 0;
  }
}

.hero__title-mark,
.text-mark {
  padding-inline: 0.05em;
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--color-key) 40%, transparent) 64%);
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  color: var(--color-text);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: var(--color-key);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: color 0.15s ease;
}

.hero__link .ccw-icon {
  transition: transform 0.15s ease;
}

.hero__link:hover,
.hero__link:focus-visible {
  color: var(--color-key);
}

.hero__link:hover .ccw-icon,
.hero__link:focus-visible .ccw-icon {
  transform: translateX(0.2em);
}

.hero__cta-note {
  margin: -0.5rem 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.hero--case .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 0;
  padding: 2.5rem 0 3rem;
}

.hero--case .hero__copy {
  max-width: none;
}

/* Generous leading and space around the title so it reads as its own
   statement rather than the first line of the copy. */
.hero--case .hero__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-latin-serif);
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* Balancing alone splits Japanese mid-word, so only balance where the
   browser can break between phrases. */
@supports (word-break: auto-phrase) {
  .hero--case .hero__title-line,
  .hero--case .hero__news-title,
  .worry-card__title,
  .worry-card__text,
  .worry-card__takeaway,
  .solution-declare__title .solution-declare__line,
  .case-card__title,
  .page-hero__title,
  .page-hero__title-line,
  .catalog__title,
  .feature-sheet__name,
  .nation-role__name,
  .strength .split__title,
  .section-title,
  .day-flow__title {
    word-break: auto-phrase;
    text-wrap: balance;
  }

  .hero--case .hero__lead,
  .page-hero__lead {
    word-break: auto-phrase;
  }
}

.hero--case .hero__lead,
.hero--case .hero__note {
  color: var(--color-text);
}

.hero--case .hero__news {
  position: relative;
  isolation: isolate;
  right: auto;
  bottom: auto;
  width: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero--case .hero__news-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero--case .hero__news-kicker::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
}

.hero--case .hero__news-thumb {
  width: calc(100% - 1rem);
  margin-top: 0.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 16px 36px rgba(51, 51, 51, 0.12);
}

.hero--case .hero__news-thumb img {
  aspect-ratio: 4 / 3;
}

.hero--case .hero__news-label {
  display: none;
}

.hero--case .hero__news-tag {
  display: inline-flex;
  align-self: flex-start;
}

.hero--case .hero__news-area {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.hero--case .hero__news-title {
  margin-top: 0.3rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.55;
}

.hero--case .hero__news-name {
  display: block;
  margin-top: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero--case .hero__news-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.hero--case .hero__news-meta {
  margin-top: 0;
}

.hero--case .hero__news-more {
  display: inline;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
}

@media (min-width: 860px) {
  .hero--case [data-reveal="right"] {
    --reveal-delay: 0.5s;
  }

  .hero--case .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 2.5rem;
    padding: 3.5rem 0 4rem;
  }

  .hero--case .hero__news-side {
    display: block;
    position: absolute;
    top: 2.5rem;
    left: -2.25rem;
    color: var(--color-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
  }
}

/* Small pill tag for case categories */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-mint-soft);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.hero__note a {
  white-space: nowrap;
}

.hero__visual {
  position: relative;
}

.hero__visual-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #eee;
}

.hero__visual-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero__float {
  position: absolute;
  right: 4%;
  bottom: 8%;
  display: grid;
  gap: 0.5rem;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero__chip::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-mint);
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.trust-strip__item {
  padding: 1rem 0.9rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: center;
}

@media (min-width: 720px) {
  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-strip__num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--color-text);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.trust-strip__label {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Tooltip: shown on hover and on keyboard/tap focus, no JS */
.tip {
  position: relative;
  display: flex;
  align-items: center;
}

.tip__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  background: var(--color-key-soft);
  border: 0;
  border-radius: 50%;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.tip__body {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  z-index: 5;
  width: min(20rem, 76vw);
  padding: 0.75rem 0.9rem;
  background: var(--color-text);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
}

.tip__body::before {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--color-text);
  transform: translateX(-50%) rotate(45deg);
}

.tip:hover .tip__body,
.tip:focus-within .tip__body {
  visibility: visible;
  opacity: 1;
}

/* Award logos: third-party proof, kept separate from our own numbers */
.award-row {
  margin-top: 1rem;
  padding: 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.award-row__label {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.award-row__note {
  margin-left: 0.35rem;
  color: #999;
  font-size: 0.68rem;
  font-weight: 400;
}

.award-row__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-row__list img {
  display: block;
  height: 48px;
  width: auto;
}

/* Two rows scroll left. They hold different logos. Each row is
   listed twice, so moving by half is seamless. The lower row starts
   half a logo to the left so the gaps do not line up. */
.logo-marquee {
  display: grid;
  gap: 1.25rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-marquee__row {
  display: flex;
  width: max-content;
  animation: logo-marquee 90s linear infinite;
}

.logo-marquee__row--offset {
  margin-left: -6.5rem;
}

.logo-marquee:hover .logo-marquee__row {
  animation-play-state: paused;
}

.logo-marquee__list {
  display: flex;
  align-items: center;
}

.logo-marquee__list li {
  margin-right: 3rem;
}

.logo-marquee__list img {
  width: auto;
  height: 48px;
}

@keyframes logo-marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee__row {
    animation: none;
  }
}

/* Source files are square. Shown as equal squares, uncropped. */
.award-row--marks .award-row__list img {
  height: 140px;
  width: auto;
}

/* Phone: three marks, then two centred. */
@media (max-width: 759px) {
  .award-row--marks .award-row__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem 0.4rem;
    justify-items: center;
  }

  .award-row--marks .award-row__list li {
    grid-column: span 2;
  }

  .award-row--marks .award-row__list li:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .award-row--marks .award-row__list li:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .award-row--marks .award-row__list img {
    height: 72px;
  }
}

.trust-strip__note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 720px) {
  .trust-strip__note {
    grid-column: 3;
  }
}

/* Top page: one white band split by thin rules, icon beside a large
   serif number. */
.trust-strip--band {
  gap: 0;
}

.trust-strip--band .trust-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.75rem 1rem;
  background: var(--color-bg);
  border: 0;
  border-radius: 0;
  text-align: left;
}

.trust-strip--band .trust-strip__item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.trust-strip--band .trust-strip__item:nth-child(3) {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.trust-strip--band .trust-strip__item + .trust-strip__item {
  border-top: 1px solid var(--color-border);
}

.trust-strip__icon {
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-mint);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-strip__body {
  display: block;
}

.trust-strip--band .trust-strip__num {
  justify-content: flex-start;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.trust-strip__unit {
  margin-inline: 0.1em;
  font-size: 0.5em;
  letter-spacing: 0.04em;
}

.trust-strip--band .trust-strip__label {
  margin-top: 0.25rem;
}

/* The ? sits right of centre here, so a centred tooltip runs off narrow
   screens. Hang it from the right edge instead. */
.trust-strip--band .tip__body {
  left: auto;
  right: -0.5rem;
  transform: none;
}

.trust-strip--band .tip__body::before {
  left: auto;
  right: 0.6rem;
}

.trust-strip--band .trust-strip__num > span:first-child {
  white-space: nowrap;
}

@media (max-width: 379px) {
  .trust-strip--band .trust-strip__num {
    font-size: 1.75rem;
  }
}

.trust-strip--band .trust-strip__note {
  margin-top: 0.6rem;
}

/* The numbers carry a word as well as digits, so three columns only fit
   from 960px, and only with the icon lifted above until 1200px. */
@media (min-width: 720px) and (max-width: 959px) {
  .trust-strip--band {
    grid-template-columns: 1fr;
  }

  .trust-strip--band .trust-strip__note {
    grid-column: auto;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .trust-strip--band .trust-strip__item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .trust-strip--band .trust-strip__num {
    justify-content: center;
  }

  .trust-strip--band .trust-strip__note {
    grid-column: 1 / -1;
    text-align: right;
  }

  .trust-strip--band .trust-strip__item:first-child .tip__body {
    left: -0.5rem;
    right: auto;
  }

  .trust-strip--band .trust-strip__item:first-child .tip__body::before {
    left: 0.6rem;
    right: auto;
  }
}

@media (min-width: 960px) {
  .trust-strip--band .trust-strip__item:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
  }

  .trust-strip--band .trust-strip__item:nth-child(3) {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }

  .trust-strip--band .trust-strip__item + .trust-strip__item {
    border-top: 0;
    border-left: 1px solid var(--color-border);
  }
}

/* Solution declaration: one green panel on the plain page, the statement
   on the left and a faint white logo in the corner. */
.solution-declare__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  background: var(--color-mint);
  border-radius: var(--radius-sm) clamp(2.5rem, 6vw, 5rem) var(--radius-sm) var(--radius-sm);
  color: #fff;
}

/* The logo is used only as a silhouette, so its own colours never show. */
.solution-declare__inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -2%;
  bottom: -4%;
  width: min(75%, 46rem);
  aspect-ratio: 1188 / 367;
  background: color-mix(in srgb, #fff 12%, transparent);
  mask: url("../assets/ccw-logo.svg") no-repeat center / contain;
  pointer-events: none;
}

.solution-declare__kicker {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.solution-declare__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.solution-declare__title .solution-declare__line {
  display: block;
}

.solution-declare__lead {
  margin: 0 0 2.25rem;
  font-size: 0.95rem;
  line-height: 2;
}

.solution-declare__link {
  display: inline-block;
  min-width: 11rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid currentColor;
  color: #fff;
  font-size: 0.9rem;
}

.solution-declare__link:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Lines arrive one after another once the block is in view. */
.js .solution-declare__line {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.15s + var(--line, 0) * 0.3s);
}

.js .solution-declare__inner.is-visible .solution-declare__line {
  opacity: 1;
  transform: none;
}

/* Cards / grids */
.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--2 {
  grid-template-columns: 1fr;
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

.card-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card--pad {
  padding: 1.25rem 1.2rem 1.4rem;
}

.card__fig {
  margin: 0;
  background: #eee;
}

.card__fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.card__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
}

.card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.card__link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Worry cards. Height follows the copy; the row still stretches siblings. */
.worry-grid {
  gap: 1.5rem;
}

@media (min-width: 600px) and (max-width: 899px) {
  .worry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.worry-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 2.25rem;
  background: var(--color-surface);
  border: 0;
  border-radius: var(--radius-md);
}

@media (min-width: 900px) {
  .worry-grid {
    gap: 2rem;
  }

  .worry-card {
    padding: 2.5rem 2rem 1.5rem;
  }
}

.worry-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-mint-soft);
}

.worry-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.worry-card__index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.worry-card__num {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.6vw, 2.6rem);
  line-height: 1;
}

.worry-card__index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-sand);
}

.worry-card__visual {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 1.25rem;
}

.worry-card__visual img {
  width: min(11.5rem, 78%);
  height: auto;
}

.worry-card__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.6;
}

.worry-card__text {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* Top page phone: icon left, title and text right. */
@media (max-width: 599px) {
  .worry-grid:not(.worry-grid--pair) {
    gap: 0.7rem;
  }

  .worry-grid:not(.worry-grid--pair) .worry-card {
    display: grid;
    grid-template-columns: 4.4rem minmax(0, 1fr);
    column-gap: 0.85rem;
    row-gap: 0.2rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
  }

  .worry-grid:not(.worry-grid--pair) .worry-card__index {
    display: none;
  }

  .worry-grid:not(.worry-grid--pair) .worry-card__visual {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
    align-self: center;
  }

  .worry-grid:not(.worry-grid--pair) .worry-card__visual img {
    width: 4.2rem;
  }

  .worry-grid:not(.worry-grid--pair) .worry-card__title {
    grid-column: 2;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.45;
  }

  .worry-grid:not(.worry-grid--pair) .worry-card__text {
    grid-column: 2;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
  }
}

.worry-card__takeaway {
  margin: auto 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.7;
}

/* The title follows the card in a beat later, so the eye lands on it. */
.js .worry-card .worry-card__title {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0s) + 0.4s);
}

.js .worry-card.is-visible .worry-card__title {
  opacity: 1;
  transform: none;
}

.section-arrow {
  display: grid;
  place-items: center;
  margin-top: 2rem;
  color: var(--color-mint);
  font-size: 2rem;
  line-height: 1;
}

/* Leads the eye from the worries down into the mint answer block below.
   The badge straddles the edge of the cream band, so it hands over to the next section. */
.flow-cue {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 calc(-1 * var(--space-section) - 1.75rem);
}

.flow-cue__line {
  position: relative;
  width: 2px;
  height: calc(var(--space-section) + 0.5rem);
  overflow: hidden;
  border-radius: 1px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--color-mint) 45%, transparent));
}

.flow-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--color-mint));
  transform: translateY(-100%);
  animation: flow-cue-run 2.4s cubic-bezier(0.55, 0, 0.35, 1) infinite;
}

.flow-cue__badge {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-top: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--color-mint) 40%, transparent);
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-mint) 22%, transparent);
  color: var(--color-mint);
  animation: flow-cue-bob 2.4s ease-in-out infinite;
}

.flow-cue__badge svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes flow-cue-run {
  0% {
    transform: translateY(-100%);
  }

  70%,
  100% {
    transform: translateY(100%);
  }
}

@keyframes flow-cue-bob {
  0%,
  55%,
  100% {
    transform: none;
  }

  75% {
    transform: translateY(4px);
  }
}

/* Split media */
.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--rev .split__media {
  order: -1;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .split--rev .split__media {
    order: 0;
  }

  .split--rev {
    direction: rtl;
  }

  .split--rev > * {
    direction: ltr;
  }
}

.split__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.split__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.45;
}

.split__text {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.split__media {
  position: relative;
}

.split__media-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.split__media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split__overlay {
  position: absolute;
  right: 6%;
  bottom: 8%;
  max-width: 55%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Criteria / answer points */
.point-list {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .point-list--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .point-list--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.point-card {
  padding: 1.35rem 1.2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.point-card__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: var(--color-key);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.point-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.point-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.point-card__fig {
  margin: 0 0 0.85rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.point-card__fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Migration / soft band cards */
.band-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .band-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.band-card {
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--color-key) 30%, transparent);
}

.band-card__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
}

.band-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.note-box__title {
  margin: 0 0 0.5rem;
  color: var(--color-text);
  font-weight: 700;
}

.note-box__text {
  margin: 0;
}

.note-box__text + .note-box__title {
  margin-top: 1rem;
}

.note-box__list {
  display: grid;
  gap: 0.3rem;
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.note-box__list + .note-box__text {
  margin-top: 0.75rem;
}

.note-box__list a,
.note-box__text a {
  text-decoration-line: underline;
}

.note-box {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--color-mint);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Feature groups */
.feature-groups {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .feature-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-group {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feature-group__head {
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.feature-group__head--pink {
  background: var(--color-key);
}

.feature-group__head--mint {
  background: var(--color-mint);
}

.feature-group__head--blue {
  background: var(--color-blue);
}

.feature-group__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.feature-item {
  text-align: center;
}

.feature-item img {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.4rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.feature-item span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Cases */
.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 0;
}

.case-card__body {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.35rem;
}

.case-card .card__fig {
  margin: 0.75rem 0.75rem 0;
  overflow: hidden;
  border-radius: 12px;
}

/* Interview photos are 4:3; keep them whole rather than crop to 16:10. */
.case-card .card__fig img {
  aspect-ratio: 4 / 3;
}

.case-card__meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.pin-icon {
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-mint);
  stroke-width: 2;
}

.case-card__name {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Titles differ in length; keep the links on one line across the row. */
.case-card .card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.85rem;
}

.case-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.case-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

.case-card__label {
  margin: 0 0 0.55rem;
}

/* CTA band */
.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.cta-band__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta-band__text {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  color: var(--color-text-muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Cycle flow (Plan B) */
.cycle-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.band-grid + .cycle-flow {
  margin-top: 1.25rem;
}

/* Flow steps: a sequence, not a list of points.
   Connectors point down in one column, right in four. */
.flow-steps {
  display: grid;
  gap: 2.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.flow-steps__item {
  position: relative;
  padding: 1.15rem 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.flow-steps__item::after {
  content: "arrow_downward";
  font-family: "Material Symbols Outlined";
  position: absolute;
  right: 50%;
  bottom: -1.75rem;
  transform: translateX(50%);
  color: var(--color-mint);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.flow-steps__item:last-child::after {
  content: none;
}

.flow-steps__num {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--color-key);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.flow-steps__label {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.flow-steps__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.flow-steps__loop {
  max-width: 46rem;
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-mint);
}

@media (min-width: 900px) {
  .flow-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .flow-steps__item::after {
    content: "arrow_forward";
    top: 50%;
    right: -1.35rem;
    bottom: auto;
    transform: translateY(-50%);
  }

  /* No connector at the end of a row; the next row continues the sequence. */
  .flow-steps__item:nth-child(4n)::after {
    content: none;
  }
}

/* Mechanism cards: thick explanation blocks */
.mech-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .mech-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mech-card {
  padding: 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.mech-card__label {
  margin: 0 0 0.55rem;
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mech-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.55;
}

.mech-card__text {
  margin: 0;
  font-size: 0.93rem;
}

.mech-card__text + .mech-card__text {
  margin-top: 0.75rem;
}

.mech-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.mech-card__chips li {
  padding: 0.25rem 0.7rem;
  background: var(--color-key-soft);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.mech-card__note {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Sub-heading inside a section */
.subsection-head {
  max-width: 40rem;
  margin: 3rem auto 1.75rem;
  text-align: center;
}

.subsection-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 800;
  line-height: 1.5;
}

.subsection-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.statement {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-key);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-key-soft);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
}

.statement p {
  margin: 0;
}

.statement p + p {
  margin-top: 0.75rem;
  font-weight: 400;
}

.point-card__year {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-mint-soft);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 800;
}

.cycle-flow__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.cycle-flow__num {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--color-key);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.cycle-flow__label {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 599px) {
  .cycle-flow--six {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .cycle-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cycle-flow--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Footer */
.site-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__tag {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

/* The fifth column sits alone on its row, so it takes the full width for the long legal titles. */
.site-footer__cols > :last-child {
  grid-column: 1 / -1;
}

.site-footer__heading {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.site-footer__list {
  display: grid;
  gap: 0.35rem;
}

.site-footer__list a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0 1.25rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__copy {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr 3fr;
  }

  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__cols > :last-child {
    grid-column: auto;
  }
}

@media (min-width: 1100px) {
  .site-footer__inner {
    grid-template-columns: 1fr 5fr;
  }

  .site-footer__cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Page head: simple heading area for non-marketing pages */
.page-head {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2rem);
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.page-head__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-head__title {
  margin: 0 0 0.75rem;
  font-size: var(--page-title-size);
  font-weight: 800;
  line-height: 1.4;
}

.page-head__lead {
  margin: 0;
  max-width: 44rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.page-head--center {
  text-align: center;
}

.page-head--center .page-head__lead {
  margin-inline: auto;
}

/* Login card: the primary need of an existing user */
.login-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--color-key-soft);
  border-radius: var(--radius-md);
}

.login-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800;
}

.login-card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.login-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .login-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Visitor judge: asks once, then remembers */
.visitor-judge {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.visitor-judge__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}

.visitor-judge__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.visitor-judge__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.visitor-judge__skip {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.visitor-judge__done {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
}

.visitor-judge__done-text {
  margin: 0;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Lets a visitor undo the declaration instead of silencing the guidance for good */
.visitor-judge__clear {
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration-line: underline;
  cursor: pointer;
}

.visitor-judge__clear:hover {
  color: var(--color-text);
}

.visitor-judge.is-answered .visitor-judge__actions {
  display: none;
}

.visitor-judge.is-answered .visitor-judge__done {
  display: flex;
}

@media (min-width: 720px) {
  .visitor-judge {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .visitor-judge__done {
    grid-column: 1 / -1;
  }
}

/* News list */
.news-list {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.news-list__item + .news-list__item {
  border-top: 1px solid var(--color-border);
}

.news-list__item a {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1.15rem;
  color: inherit;
  text-decoration: none;
}

.news-list__item a:hover .news-list__title {
  text-decoration-line: underline;
}

.news-list__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.news-list__date {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.news-list__tag {
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-mint-soft);
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 700;
}

.news-list__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 720px) {
  .news-list__item a {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
    gap: 1rem;
  }
}

/* Support box */
.support-box {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.support-box__label {
  margin: 0 0 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.support-box__tel {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.support-box__hours {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.support-box__text {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (min-width: 800px) {
  .support-box {
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
  }

  .support-box__side {
    padding-left: 2.5rem;
    border-left: 1px solid var(--color-border);
  }
}

/* FAQ list */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.faq-item__q {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-item__q::marker,
.faq-item__q::-webkit-details-marker {
  content: none;
  display: none;
}

.faq-item__q::before {
  content: "＋";
  color: var(--color-text);
  font-weight: 800;
}

.faq-item[open] .faq-item__q::before {
  content: "−";
}

.faq-item__a {
  margin: 0;
  padding: 0 1.15rem 1.15rem 2.4rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.faq-item__a a {
  color: var(--color-text);
  font-weight: 700;
  text-decoration-line: underline;
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

.page-head .anchor-chips {
  margin-top: 1.25rem;
}

.faq-group + .faq-group {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.faq-group .section-title {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

/* Visitor switch: fixed entry for existing users, open by default.
   Closing it collapses the panel into .visitor-switch-pill for 24h, so the
   page entry is never lost (see visitor-switch.js). Same deep green, gold
   and ivory as /for-staff/, /for-parent/ and the visitor modal. */
.visitor-switch {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 19.5rem;
  max-width: calc(100% - 2rem);
  background: var(--lux-ivory);
  border: 1px solid var(--lux-gold);
  outline: 1px solid color-mix(in srgb, var(--lux-gold-pale) 70%, transparent);
  outline-offset: -5px;
  border-radius: 6px;
  box-shadow: 0 16px 36px -12px rgb(18 54 46 / 0.35);
  overflow: hidden;
}

.visitor-switch__head {
  position: relative;
  padding: 0.75rem 2.4rem 0.65rem 1.1rem;
  background: linear-gradient(120deg, var(--lux-deep), var(--lux-green));
}

.visitor-switch__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.visitor-switch__title::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1px;
  background: var(--lux-gold-light);
}

.visitor-switch__close {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--lux-gold-pale);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.3s, color 0.3s;
}

.visitor-switch__close:hover {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.visitor-switch__body {
  padding: 0.2rem 1.1rem 0.35rem;
}

.visitor-switch__group {
  padding: 0.7rem 0;
}

.visitor-switch__group + .visitor-switch__group {
  border-top: 1px solid var(--lux-gold-pale);
}

.visitor-switch__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: var(--lux-deep);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity 0.3s var(--lux-ease);
}

.visitor-switch__label::before {
  content: "arrow_forward";
  order: 2;
  margin-left: auto;
  color: var(--lux-gold);
  font-family: "Material Symbols Outlined";
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  transition: transform 0.35s var(--lux-ease);
}

.visitor-switch__label:hover {
  text-decoration: none;
  opacity: 0.7;
}

.visitor-switch__label:hover::before {
  transform: translateX(3px);
}

.visitor-switch__group.is-suggested .visitor-switch__label::after {
  content: "選択中";
  order: 1;
  padding: 0.05rem 0.6rem;
  border: 1px solid var(--lux-gold-light);
  border-radius: 999px;
  background: linear-gradient(180deg, #fbf3dc, var(--lux-gold-pale));
  color: var(--lux-deep);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* Collapsed form of the panel. Shown in its place, never at the same time.
   Small enough to leave the page readable, but still a visible way back in. */
.visitor-switch-pill {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  background: linear-gradient(120deg, var(--lux-deep), var(--lux-green));
  border: 1px solid var(--lux-gold);
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgb(18 54 46 / 0.55);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.3s var(--lux-ease);
}

.visitor-switch-pill::before {
  content: "";
  flex: none;
  width: 0.9rem;
  height: 1px;
  background: var(--lux-gold-light);
}

.visitor-switch-pill:hover {
  opacity: 0.85;
}

/* display above would otherwise win over the UA rule for [hidden] */
.visitor-switch-pill[hidden] {
  display: none;
}

/* On phones the panel is always open, so a floating box would cover the copy.
   Lay it out as a slim bar pinned to the bottom edge instead. */
@media (max-width: 639px) {
  .visitor-switch {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    border-width: 1px 0 0;
    border-radius: 0;
  }

  .visitor-switch__head {
    padding: 0.45rem 2.4rem 0.4rem 1rem;
  }

  .visitor-switch {
    outline: none;
  }

  .visitor-switch__group {
    padding: 0.5rem 0;
  }
}

/* Visitor modal: only for people who told us they are existing users.
   Same deep green, gold and ivory as /for-staff/ and /for-parent/. */
.visitor-modal {
  width: min(40rem, calc(100% - 2rem));
  max-width: min(40rem, calc(100% - 2rem));
  max-height: 80vh;
  padding: 0;
  border: 1px solid var(--lux-gold);
  border-radius: 6px;
  background: var(--lux-ivory);
  box-shadow: 0 24px 60px rgb(18 54 46 / 0.3);
  overflow: hidden;
}

.visitor-modal::backdrop {
  background: rgb(13 42 35 / 0.55);
}

.visitor-modal__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 80vh;
  padding: 2rem clamp(1.25rem, 4vw, 2.25rem) 1.5rem;
  outline: 1px solid color-mix(in srgb, var(--lux-gold-pale) 70%, transparent);
  outline-offset: -6px;
  overflow-y: auto;
}

.visitor-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: 0;
  color: var(--lux-deep);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.visitor-modal__eyebrow {
  margin: 0;
  color: var(--lux-gold);
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-align: center;
  text-transform: uppercase;
}

.visitor-modal__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: -0.6rem 0 0;
  color: var(--lux-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.visitor-modal__rule {
  flex: 0 1 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lux-gold));
}

.visitor-modal__rule:last-child {
  background: linear-gradient(90deg, var(--lux-gold), transparent);
}

.visitor-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.visitor-modal__actions .lux-btn {
  flex: 1 1 0;
  min-width: 9rem;
  max-width: 15rem;
}

.visitor-modal__actions--stack {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.visitor-modal__actions--stack .lux-btn {
  flex: none;
  max-width: none;
}

@media (max-width: 599px) {
  .visitor-modal__title {
    gap: 0.5rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .visitor-modal__rule {
    flex-basis: 1rem;
  }

  .visitor-modal__actions .lux-btn {
    gap: 0.6rem;
    min-width: 0;
    padding-inline: 0.75rem;
    white-space: nowrap;
  }
}

.visitor-modal__page {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--lux-gold-pale);
  text-align: center;
}

.visitor-modal__page a {
  color: var(--lux-deep);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--lux-gold);
  text-underline-offset: 0.25em;
}

/* Features pages (/features/ and its subpages) */
.container--narrow {
  width: min(100% - 2 * var(--gutter), 56rem);
}

.section-head--start {
  margin: 0 0 1.5rem;
  text-align: left;
}

.section-head--start .section-label {
  justify-content: flex-start;
}

.section-head--start .section-label::before {
  display: none;
}

.section-head--start .section-title::after {
  margin-left: 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem);
  background: var(--color-bg);
}

.page-hero--surface {
  background: var(--color-surface);
}

.page-hero--compact {
  padding: clamp(1.5rem, 3.2vw, 2.25rem) 0;
}

.page-hero--compact .page-hero__eyebrow {
  margin-bottom: 0.85rem;
}

.page-hero--compact .page-hero__title {
  margin-bottom: 0.85rem;
}

.page-hero--compact .page-hero__lead {
  margin-bottom: 0;
}

.page-hero--compact .anchor-chips {
  margin-top: 1.15rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -14rem;
  right: -12rem;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: var(--color-sand-soft);
  opacity: 0.6;
  pointer-events: none;
}

.page-hero > .container {
  position: relative;
}

.page-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .page-hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
  }

  .page-hero__media {
    --reveal-delay: 0.2s;
  }
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.page-hero__eyebrow::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--color-key);
}

.page-hero__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-latin-serif);
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.page-hero__title:last-child {
  margin-bottom: 0;
}

.page-hero__title--long {
  max-width: 50rem;
  font-size: var(--page-title-size);
  line-height: 1.5;
}

.page-hero__title-line {
  display: inline-block;
}

.page-hero__lead {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.page-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.page-hero__media {
  margin: 0;
}

.page-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.page-hero__media--illust img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

/* 白地のヒーローでも、透過イラストの背後に地面が見えるようにする。 */
.page-hero__media--backed {
  position: relative;
  isolation: isolate;
}

.page-hero__media--backed::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% -2% 0;
  border-radius: 48% 46% 44% 50%;
  background: radial-gradient(ellipse at 50% 58%, var(--color-sand-soft) 0%, var(--color-bg) 74%);
  pointer-events: none;
}

/* 導入事例のメインは、右上の円だけでなく面として背景を置く。 */
.page-hero--ground {
  background: var(--color-bg-soft);
}

.page-hero--ground::before {
  top: -10rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  opacity: 0.9;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.breadcrumb {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--color-border);
}

.breadcrumb a {
  text-decoration-line: underline;
  text-underline-offset: 0.25em;
}

.anchor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.anchor-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.anchor-chips a::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--color-key);
  border-bottom: 1.5px solid var(--color-key);
  transform: translateY(-2px) rotate(45deg);
}

.anchor-chips a:hover {
  border-color: var(--color-key);
  background: var(--color-key-soft);
  text-decoration-line: none;
}

/* Where records are written -> the child's record -> where they are used.
   Chevrons on the core point down when stacked and right when in a row. */
.record-map {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  max-width: 68rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .record-map {
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
  }
}

.record-map__col {
  padding: 1.5rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-key);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.record-map__col--out {
  border-top-color: var(--color-sand);
}

.record-map__label {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.record-map__list {
  display: grid;
  gap: 0.5rem;
}

.record-map__list li {
  padding: 0.55rem 0.85rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
}

.record-map__core {
  position: relative;
  display: grid;
  place-content: center;
  justify-self: center;
  width: min(16rem, 72vw);
  aspect-ratio: 1;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow:
    0 0 0 10px var(--color-mint-soft),
    0 0 0 11px color-mix(in srgb, var(--color-mint) 35%, transparent),
    var(--shadow-card);
  text-align: center;
}

.record-map__core::before,
.record-map__core::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border-right: 2px solid var(--color-mint);
  border-bottom: 2px solid var(--color-mint);
  transform: translateX(-50%) rotate(45deg);
}

.record-map__core::before {
  top: -2rem;
}

.record-map__core::after {
  bottom: -1.6rem;
}

@media (min-width: 900px) {
  .record-map__core::before,
  .record-map__core::after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }

  .record-map__core::before {
    left: -2.75rem;
  }

  .record-map__core::after {
    left: auto;
    right: -2.4rem;
  }
}

.record-map__core-label {
  margin: 0 0 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.record-map__core-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
}

.record-map__core-text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.features-note {
  margin: 2.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.point-list + .section-lead {
  margin-top: 2.5rem;
  text-align: center;
}

.section-lead + .record-map {
  margin-top: 2rem;
}

.flow-block + .section-head {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.strength-list {
  display: grid;
  gap: clamp(4rem, 8vw, 7rem);
}

.strength__num {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.strength__num > span:first-child {
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--color-key);
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
}

.strength .split__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
}

.strength .check-list {
  margin-top: 1.25rem;
}

.strength__link {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid var(--color-key);
  font-weight: 700;
}

.strength__link:hover {
  text-decoration-line: none;
}

.check-list {
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--color-mint-soft);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: calc(0.32em + 0.22rem);
  left: 0.4rem;
  width: 0.35rem;
  height: 0.6rem;
  border-right: 2px solid var(--color-mint);
  border-bottom: 2px solid var(--color-mint);
  transform: rotate(45deg);
}

.check-list--no li::before {
  background: var(--color-bg-soft);
}

.check-list--no li::after {
  content: "×";
  top: 0.32em;
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  border: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  transform: none;
}

.check-panel {
  padding: 1.75rem 1.6rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
}

.check-panel__title {
  margin: 0 0 1rem;
  font-weight: 800;
}

@media (min-width: 600px) {
  .split .check-panel .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1.25rem;
  }
}

.badge-original {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.8rem;
  background: var(--color-sand-soft);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.badge-original::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-sand);
}

.day-flow {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.day-flow__item {
  display: grid;
  gap: 0.5rem 1.75rem;
  padding: 1.4rem 1.35rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-sand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-card);
}

@media (min-width: 700px) {
  .day-flow__item {
    grid-template-columns: 8.5rem 1fr;
    padding: 1.6rem 1.75rem;
  }
}

.day-flow__time {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.day-flow__time--period {
  font-size: 1.05rem;
}

.day-flow__time small {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.day-flow__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.day-flow__text {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Feature catalogue: one <details> per category, laid out in columns. */
.catalog {
  column-gap: 1.25rem;
}

@media (min-width: 860px) {
  .catalog {
    columns: 2;
  }
}

@media (min-width: 1200px) {
  .catalog {
    columns: 3;
  }
}

.catalog__group {
  margin: 0 0 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  break-inside: avoid;
}

.catalog__summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.catalog__summary::-webkit-details-marker {
  display: none;
}

.catalog__summary::after {
  content: "＋";
  font-weight: 800;
}

.catalog__group[open] .catalog__summary {
  border-bottom: 1px solid var(--color-border);
}

.catalog__group[open] .catalog__summary::after {
  content: "−";
}

.catalog__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.catalog__count {
  margin-left: auto;
  padding: 0.1rem 0.6rem;
  background: var(--color-mint-soft);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.catalog__body {
  padding: 1rem 1.25rem 1.35rem;
}

.catalog__lead {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.catalog__label {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.catalog__items {
  display: grid;
  gap: 0.75rem;
}

.catalog__items li {
  display: grid;
  gap: 0.1rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-key-soft);
}

.catalog__item-name {
  font-size: 0.92rem;
  font-weight: 800;
}

.catalog__item-text {
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.catalog__link {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: 1.1rem;
  border-bottom: 1.5px solid var(--color-key);
  font-size: 0.88rem;
  font-weight: 700;
}

.catalog__link:hover {
  text-decoration-line: none;
}

.catalog__manual {
  margin: 1.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.catalog__manual a {
  text-decoration-line: underline;
}

.nation-roles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nation-roles__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.nation-roles__caption::before,
.nation-roles__caption::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--color-key);
}

.nation-role {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.35rem 1.1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.nation-role--focus {
  background: var(--color-key-soft);
  border-color: transparent;
}

.nation-role__mark {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
}

.nation-role__icon {
  display: grid;
  place-items: center;
  color: var(--color-key);
}

.nation-role__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.nation-role__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.feature-sheet {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .feature-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-sheet__item {
  padding: 1.15rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.feature-sheet__name {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
}

.feature-sheet__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 1.75rem 0 0;
}

.feature-links .catalog__link {
  margin-top: 0;
}

.system-group {
  padding: 1.5rem;
  background: var(--color-surface);
  border-top: 4px solid var(--color-mint);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.system-group--parents {
  border-top-color: var(--color-key);
}

.system-group__label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.2rem 0.8rem;
  background: var(--color-mint-soft);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
}

.system-group--parents .system-group__label {
  background: var(--color-key-soft);
}

.system-item + .system-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.system-item__name {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.system-item__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Subpages show two of the top page's worry cards, so drop their full-screen height. */
.worry-grid--pair {
  max-width: 60rem;
  margin-inline: auto;
}

.worry-grid--pair .worry-card {
  min-height: 0;
}

.voice {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 760px) {
  .voice {
    grid-template-columns: 9rem 1fr;
    gap: 0.75rem 2.25rem;
    justify-items: start;
  }

  .voice__photo {
    grid-row: span 2;
  }

  .voice:not(:has(.voice__photo)) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.voice__photo img {
  width: 9rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.voice__text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.9;
}

.voice__text p {
  margin: 0;
}

.voice__name {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.compare-table-wrap {
  max-width: 60rem;
  margin: 0 auto;
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.compare-table-wrap:focus-visible {
  outline: 2px solid var(--color-key);
  outline-offset: 2px;
}

.compare-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.compare-table tr:last-child > * {
  border-bottom: 0;
}

.compare-table thead th {
  background: var(--color-bg-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.compare-table tbody th {
  width: 9rem;
  font-weight: 800;
}

.compare-table .is-ours {
  background: color-mix(in srgb, var(--color-key-soft) 55%, var(--color-surface));
  font-weight: 700;
}

.compare-table thead .is-ours {
  background: var(--color-key-soft);
}

.flow-block {
  max-width: 60rem;
  margin-inline: auto;
}

.flow-block .statement {
  margin: 2rem 0 0;
}

.flow-note {
  margin: 2.5rem 0 0;
  text-align: left;
}

.flow-note p {
  margin: 0 0 1.25rem;
}

.flow-note p:last-child {
  margin-bottom: 0;
}

.features-next__card {
  display: flex;
  flex-direction: column;
}

.features-next__card:hover {
  border-color: var(--color-key);
  text-decoration-line: none;
}

.features-next__card .card__link {
  margin-top: auto;
  padding-top: 0.85rem;
}

.can-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .can-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Scroll reveal (js/reveal.js). Hidden only under html.js, so the page
   stays readable when the script never runs. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

/* Blocks waiting to slide in sit 32px outside the viewport. Clip them on <main>,
   not <body>, whose overflow would pass to the viewport as hidden. */
.js main {
  overflow-x: clip;
}

.js [data-reveal="left"] {
  transform: translateX(-32px);
}

.js [data-reveal="right"] {
  transform: translateX(32px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js .worry-card .worry-card__title,
  .js .solution-declare__line {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flow-cue__line::after,
  .flow-cue__badge {
    transform: none;
    animation: none;
  }
}

/* ?noanim=1 (header.php) shows the finished state from the first paint,
   so a screen capture does not miss elements that are still fading in. */
.js.is-noanim [data-reveal],
.js.is-noanim .worry-card .worry-card__title,
.js.is-noanim .solution-declare__line,
.is-noanim .logo-marquee__row,
.is-noanim .flow-cue__line::after,
.is-noanim .flow-cue__badge,
.is-noanim .site-header__inner,
.is-noanim .site-header__logo img {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

/* Contact forms (/contact/). One column, using the existing text, border and key colour. */
/* Contact hub (/contact/) */
.contact-choices {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .contact-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-choice {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-key);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration-line: none;
}

.contact-choice:hover {
  border-color: var(--color-key);
  text-decoration-line: none;
}

.contact-choice__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.45;
}

.contact-choice__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-choice .btn {
  align-self: flex-start;
  margin-top: auto;
}

.contact-group-title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-user {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.contact-user__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-user__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

.contact-user__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.contact-tel {
  display: grid;
  gap: 0.1rem;
  margin: 0;
}

.contact-tel a {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration-line: none;
}

.contact-tel span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .contact-user {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.contact-call {
  margin: 1.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.contact-call a {
  color: var(--color-text);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.contact-partner {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  margin: 2rem 0 0;
  padding: 1.15rem 1.25rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.contact-partner__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-partner__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Contact forms: side panel first in the markup so it sits above the form on phones. */
.container.contact-layout {
  display: grid;
  gap: 2rem;
  width: min(100% - 2 * var(--gutter), 68rem);
}

@media (min-width: 960px) {
  .container.contact-layout {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: clamp(2.5rem, 4vw, 4rem);
    align-items: start;
  }

  .contact-aside {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .contact-layout__main {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-layout--with-note .consult-sales {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .contact-layout--with-note .contact-aside,
  .contact-layout--with-note .contact-layout__main {
    grid-row: 2;
  }
}

.consult-sales {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 1.25rem 1.4rem;
  background: var(--color-bg);
  border-left: 4px solid var(--color-key);
  border-radius: var(--radius-md);
}

.consult-sales__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.consult-sales p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
}

.contact-aside {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.8;
}

.contact-aside__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.contact-aside p {
  margin: 0;
}

.contact-aside__list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}

.contact-aside__list li::marker {
  color: var(--color-key);
}

.contact-steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: contact-step;
}

.contact-steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.6rem;
  counter-increment: contact-step;
}

.contact-steps li::before {
  content: counter(contact-step);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-key);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.contact-form fieldset {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: 0;
}

.form-section__title {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.form-section__fields {
  display: grid;
  gap: 1.4rem 1.25rem;
}

@media (min-width: 640px) {
  .form-section__fields {
    grid-template-columns: 1fr 1fr;
  }

  .form-section__fields > * {
    grid-column: 1 / -1;
  }

  .form-section__fields > .form-field--half {
    grid-column: auto;
  }
}

.form-field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.form-field__label {
  padding: 0;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.5;
}

fieldset.form-field > .form-field__label {
  margin-bottom: 0.45rem;
}

.form-req,
.form-opt {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: 0.1em;
}

.form-req {
  background: var(--color-key-soft);
}

.form-opt {
  background: var(--color-sand-soft);
}

.form-hint {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  line-height: 1.6;
}

.form-field--short input {
  max-width: 16rem;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input[type="file"] {
  font-size: 0.9rem;
}

.form-field input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--color-key);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--color-key);
  outline-offset: 1px;
  border-color: var(--color-key);
}

/* Option buttons: the real radio or checkbox stays in the label for keyboard and screen readers. */
.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.45rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.93rem;
  line-height: 1.4;
  cursor: pointer;
}

.form-option:hover {
  border-color: var(--color-key);
}

.form-option input[type="radio"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.form-option input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--color-key);
}

.form-option:has(input:checked) {
  background: var(--color-key-soft);
  border-color: var(--color-key);
  font-weight: 700;
}

.form-option:has(input:focus-visible) {
  outline: 2px solid var(--color-key);
  outline-offset: 2px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.6;
  cursor: pointer;
}

.form-check input {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.3rem 0 0;
  accent-color: var(--color-key);
}

.form-error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-error[hidden] {
  display: none;
}

.form-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--color-key-soft);
  border: 1px solid var(--color-key);
  border-radius: 50%;
  font-size: 0.72rem;
  line-height: 1;
}

.form-field.is-invalid input:not([type="radio"], [type="checkbox"], [type="file"]),
.form-field.is-invalid textarea,
.form-field.is-invalid .form-option {
  border-color: var(--color-key);
}

.form-submit {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

@media (max-width: 639px) {
  .form-submit__btn {
    width: 100%;
  }
}

.form-pending {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--color-surface);
  border-left: 3px solid var(--color-key);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.7;
}

.form-back {
  margin: 1.75rem 0 0;
}

/* Pricing page (/pricing/) */
.price-hero-card {
  justify-self: center;
  width: min(100%, 24rem);
  padding: 1.75rem 1.75rem 1.6rem;
  background: var(--color-surface);
  border-top: 4px solid var(--color-key);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .price-hero-card {
    --reveal-delay: 0.2s;
  }
}

.price-hero-card__label {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.price-hero-card__price {
  margin: 0.1rem 0 1rem;
  font-weight: 700;
}

.price-hero-card__price strong {
  margin-right: 0.1em;
  padding-inline: 0.05em;
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--color-key) 35%, transparent) 68%);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.price-hero-card__price--sub strong {
  background: none;
  font-size: 1.7rem;
}

.price-hero-card__price small {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.price-hero-card__note {
  margin: 0 0 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Four points: two by two until there is room for a single row. */
@media (min-width: 700px) {
  .price-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .price-points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.price-points .point-card {
  display: flex;
  flex-direction: column;
}

.price-points .point-card__text {
  margin-bottom: 1rem;
}

.price-points .card__link {
  margin-top: auto;
}

/* Small price figures drawn in HTML, standing in for the old site's images. */
.price-scale,
.price-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 0.5rem;
  margin-top: auto;
  padding: 1rem 0.85rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.price-compare {
  align-items: stretch;
}

.price-scale__item,
.price-compare__item {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  text-align: center;
}

.price-scale__cap {
  justify-self: center;
  padding: 0.05rem 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
}

/* The bar's height stands for the size of the facility. */
.price-scale__item::before {
  content: "";
  order: 1;
  justify-self: center;
  width: 2.5rem;
  height: 1.25rem;
  margin: 0.4rem 0 0.2rem;
  background: var(--color-sand-soft);
  border: 1px solid var(--color-sand);
  border-radius: 4px 4px 0 0;
}

.price-scale__item--large::before {
  height: 4.5rem;
  background: var(--color-key-soft);
  border-color: var(--color-key);
}

.price-scale__label {
  order: 2;
}

.price-scale__num {
  order: 3;
}

.price-scale__label,
.price-compare__label {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
}

.price-scale__num,
.price-compare__num {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}

.price-scale__num small,
.price-compare__num small {
  font-size: 0.75rem;
}

.price-compare__item {
  align-content: center;
  padding: 0.75rem 0.4rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

.price-compare__item--set {
  background: var(--color-key-soft);
  box-shadow: inset 0 0 0 1.5px var(--color-key);
}

.price-scale__arrow,
.price-compare__arrow {
  align-self: center;
  width: 0.65rem;
  height: 0.65rem;
  margin-inline: 0.15rem 0.35rem;
  border-top: 2px solid var(--color-key);
  border-right: 2px solid var(--color-key);
  transform: rotate(45deg);
}

.price-figure-note {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* Capacity tabs. Without JS the nav stays hidden and every panel is listed. */
.price-tabs,
.price-notes,
.set-features,
.price-all {
  max-width: 72rem;
  margin-inline: auto;
}

.price-tabs__nav {
  margin-bottom: 1.5rem;
}

.price-tabs__scale {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.price-tabs__scale::after {
  content: "";
  order: 1;
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--color-sand-soft), var(--color-key));
  border-radius: 2px;
}

.price-tabs__scale span:last-child {
  order: 2;
}

.price-tabs__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

@media (min-width: 760px) {
  .price-tabs__list {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.price-tabs__tab {
  padding: 0.7rem 0.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

@media (min-width: 760px) {
  .price-tabs__tab {
    font-size: 0.88rem;
  }
}

.price-tabs__tab:hover {
  border-color: var(--color-key);
}

/* Selected: soft fill and a key underline, keeping the text dark. */
.price-tabs__tab[aria-selected="true"] {
  background: var(--color-key-soft);
  border-color: var(--color-key);
  box-shadow: inset 0 -3px 0 var(--color-key);
}

.price-tabs__tab:focus-visible,
.price-panel:focus-visible {
  outline: 2px solid var(--color-key);
  outline-offset: 2px;
}

.price-panel {
  border-radius: var(--radius-md);
}

.price-panel + .price-panel {
  margin-top: 2.5rem;
}

.price-tabs.is-tabbed .price-panel {
  margin-top: 0;
}

.price-panel__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
}

/* The selected tab already names the capacity. */
.price-tabs.is-tabbed .price-panel__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.plan-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr 0.85fr;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-sand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.plan-card--advance {
  border-top-color: var(--color-key);
}

.plan-card--custom {
  border-top-color: var(--color-mint);
}

.plan-card__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
}

.plan-card__lead {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
}

.plan-card__for {
  align-self: flex-start;
  margin: 0 0 1.1rem;
  padding: 0.15rem 0.75rem;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-card__text {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.plan-card--custom .btn {
  align-self: flex-start;
  margin-top: auto;
}

.plan-card__prices {
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--color-border);
}

.plan-card__price {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}

.plan-card__price dt {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.plan-card__price dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  margin: 0;
}

.plan-card__before {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration-thickness: 1px;
}

.plan-card__after {
  font-size: 0.95rem;
  font-weight: 700;
}

.plan-card__after::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.65rem;
  border-top: 2px solid var(--color-key);
  border-right: 2px solid var(--color-key);
  transform: translateY(-0.2em) rotate(45deg);
}

.plan-card__after strong {
  margin-right: 0.1em;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
}

.plan-card__after small {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.plan-card__pack {
  margin-top: auto;
  padding: 1rem 1.05rem;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.plan-card__pack-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.plan-card__pack-tag {
  padding: 0.05rem 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
}

.plan-card--advance .plan-card__pack-tag {
  border-color: var(--color-key);
}

.plan-card__more {
  margin-top: 0.6rem;
}

.plan-card__more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.plan-card__more summary::-webkit-details-marker {
  display: none;
}

.plan-card__more summary::before {
  content: "＋";
}

.plan-card__more[open] summary::before {
  content: "−";
}

.plan-card__more p {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.price-notes {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.price-notes li {
  position: relative;
  padding-left: 1.1em;
}

.price-notes li::before {
  content: "※";
  position: absolute;
  left: 0;
}

.price-notes a,
.price-all__note a {
  text-decoration-line: underline;
  text-underline-offset: 0.2em;
}

/* On the cream band the panel sits white, like the other cards. */
.set-features {
  margin-top: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

@media (min-width: 900px) {
  .set-features .check-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.set-features__note {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.price-all {
  margin-top: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.price-all__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.25rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.price-all__summary::-webkit-details-marker {
  display: none;
}

.price-all__summary::after {
  content: "＋";
}

.price-all[open] .price-all__summary {
  border-bottom: 1px solid var(--color-border);
}

.price-all[open] .price-all__summary::after {
  content: "−";
}

.price-all__table {
  max-width: none;
  margin: 1.25rem;
}

.price-all .compare-table thead th {
  text-align: center;
  vertical-align: middle;
}

.price-all .compare-table tbody th {
  width: auto;
  white-space: nowrap;
}

.price-all .compare-table td {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.price-all__note {
  margin: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.option-grid,
.subsidy-grid {
  max-width: 60rem;
  margin-inline: auto;
}

.support-cols {
  max-width: 72rem;
  margin-inline: auto;
}

.option-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--color-mint);
}

.option-card__name {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.option-card__text {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.option-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.25rem;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
  font-weight: 700;
}

.option-card__price span {
  flex-basis: 100%;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.option-card__price strong {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.option-card__price small {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.option-card__note {
  margin: 0.4rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.campaign-note {
  max-width: 40rem;
  margin-inline: auto;
}

.campaign-actions,
.support-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subsidy-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.6rem 1.5rem;
  border-left: 4px solid var(--color-sand);
}

.subsidy-card__office {
  margin: 0;
  padding: 0.1rem 0.7rem;
  background: var(--color-sand-soft);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
}

.subsidy-card__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.6;
}

.subsidy-link {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.subsidy-link a {
  border-bottom: 1.5px solid var(--color-key);
}

.subsidy-link a:hover {
  text-decoration-line: none;
}

.support-col {
  border-top: 4px solid var(--color-mint);
}

.support-col__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.support-col .check-list + .support-col__title {
  margin-top: 1.6rem;
}

.support-col__sub {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.support-col .check-list + .support-col__sub {
  margin-top: 1.1rem;
}

.support-col .check-list li {
  font-size: 0.9rem;
}

/* Company page (/company/) */
.mission-statement {
  max-width: 52rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  padding: 0.25rem 0 0.25rem clamp(1.1rem, 3vw, 1.75rem);
  border-left: 3px solid var(--color-key);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 2;
}

.mission-statement p {
  margin: 0 0 0.75rem;
}

.mission-statement p:first-child {
  font-weight: 700;
}

.mission-statement p:last-child {
  margin-bottom: 0;
}

.message-sign {
  margin: 1.5rem 0 1.25rem;
  font-size: 0.88rem;
}

.message-sign__name {
  margin-left: 0.5em;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
}

/* Greeting (/company/message/). The wording is the current site's letter. */
.letter {
  max-width: 40rem;
  margin-inline: auto;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 2.05;
  text-align: left;
}

.letter-back {
  max-width: 40rem;
  margin-inline: auto;
  text-align: left;
}

.letter p {
  margin: 0 0 1.75rem;
}

.letter .message-sign {
  margin-top: 2.5rem;
  line-height: 1.8;
}

.assessment-column {
  max-width: 46rem;
}

.assessment-column__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.6;
}

.assessment-column h3 {
  margin: 2rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.assessment-column ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.assessment-column li {
  margin: 0 0 0.45rem;
}

.company-data {
  margin: 0;
  border-top: 1px solid var(--color-border);
}

.company-data__row {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 700px) {
  .company-data__row {
    grid-template-columns: 11rem 1fr;
    gap: 1.5rem;
    padding: 1.2rem 0.5rem;
  }
}

.company-data dt {
  font-weight: 700;
}

.company-data dd {
  margin: 0;
  line-height: 1.8;
}

.company-data__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-data__tel {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.history-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.4rem;
  width: 2px;
  background: var(--color-key-soft);
}

.history-list__item {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 0 0 1.75rem 2rem;
}

.history-list__item:last-child {
  padding-bottom: 0;
}

.history-list__item::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid var(--color-key);
  border-radius: 50%;
  background: var(--color-surface);
}

@media (min-width: 700px) {
  .history-list__item {
    grid-template-columns: 8rem 1fr;
    gap: 1.5rem;
  }
}

.history-list__year {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.history-list__title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
}

.history-list__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.award-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .award-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .award-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.award-list__item {
  padding: 1.25rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}

.award-list__logo {
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.award-list__kind {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-sand-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.award-list__name {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.award-list__note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  text-align: left;
}

.office-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .office-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.office-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.office-card__map {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
}

.office-card__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.office-card__body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.office-card__name {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.office-card__address,
.office-card__tel {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
}

.office-card__tel {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

.link-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.link-card:hover {
  border-color: var(--color-key);
  transform: translateY(-2px);
}

.link-card .card__link {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--color-text);
}

/* /research/: figures beside the hero copy, theme cards, then the archive by year */
.research-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}

.research-stats__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 1rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.research-stats__item dt {
  margin-top: 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}

.research-stats__item dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.research-stats__unit {
  margin-inline: 0.1em;
  font-size: 0.5em;
  letter-spacing: 0.04em;
}

@media (min-width: 900px) {
  .research-stats {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .research-stats__item {
    padding: 1.4rem 1.75rem;
    text-align: left;
  }

  .research-stats__item dt {
    font-size: 0.85rem;
  }
}

.research-themes {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .research-themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-theme:last-child {
    grid-column: 1 / -1;
  }
}

/* The two themes tied to today's features take the wider first row. */
@media (min-width: 1100px) {
  .research-themes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .research-theme,
  .research-theme:last-child {
    grid-column: span 2;
  }

  .research-theme--lead {
    grid-column: span 3;
  }
}

.research-theme {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.research-theme--lead {
  border-top: 4px solid var(--color-key);
}

.research-theme__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin: 0 0 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.research-theme__meta .tag {
  background: var(--color-key-soft);
}

.research-theme__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.5;
}

.research-theme__text {
  margin: 0;
  font-size: 0.95rem;
}

.research-theme__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: auto 0 0;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.research-theme__links a {
  border-bottom: 2px solid var(--color-key);
}

.research-theme__links a:hover {
  text-decoration-line: none;
}

.research-filter {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.research-filter[hidden],
.research-year[hidden],
.research-item[hidden] {
  display: none;
}

.research-filter__group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.research-filter__label {
  margin: 0;
  min-width: 3em;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.research-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.research-filter__chip {
  padding: 0.4rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.research-filter__chip:hover {
  border-color: var(--color-key);
}

@media (max-width: 599px) {
  .research-filter__chips {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .research-filter__chip {
    flex-shrink: 0;
  }
}

.research-filter__chip[aria-pressed="true"] {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.research-filter__count {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.research-year {
  display: grid;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.research-year__label {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.research-year__label span {
  margin-left: 0.1em;
  font-size: 0.55em;
}

@media (min-width: 760px) {
  .research-year {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 2rem;
  }

  .research-year__label {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
  }
}

.research-year__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-item + .research-item {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--color-border);
}

.research-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin: 0 0 0.45rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.tag--presentation {
  background: var(--color-key-soft);
}

.tag--seminar {
  background: var(--color-sand-soft);
}

.research-item__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.research-item__title a {
  text-decoration-line: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 0.3em;
}

.research-item__title a:hover {
  text-decoration-color: var(--color-key);
}

.research-item__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.research-item__detail {
  margin: 0.35rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.research-media {
  margin-bottom: 2.5rem;
  padding: 1.75rem 1.6rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}

/* /research/{id}/: the facts sit beside the body on wide screens and above it when stacked */
.research-detail-head {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2rem, 5vw, 3rem);
  background: var(--color-bg);
}

.research-detail-head .breadcrumb {
  margin-bottom: 1.5rem;
}

.research-detail-head__title {
  max-width: 50rem;
  margin: 0.25rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: var(--page-title-size);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.research-detail-head__lead {
  max-width: 50rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.research-detail {
  display: grid;
  gap: 2rem;
}

.research-detail--facts-only .research-detail__aside {
  max-width: 32rem;
}

@media (min-width: 900px) {
  .research-detail:not(.research-detail--facts-only) {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 4rem;
    align-items: start;
  }

  .research-detail:not(.research-detail--facts-only) .research-detail__aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    grid-column: 2;
    grid-row: 1;
  }
}

.research-detail__aside {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.research-detail__facts {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.research-detail__facts dt {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.research-detail__facts dd {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
}

.research-detail__original {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.8rem;
}

.research-detail__original a {
  text-decoration-line: underline;
  text-underline-offset: 0.25em;
}

.research-detail__heading {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
}

* + .research-detail__heading {
  margin-top: 2.5rem;
}

.research-detail__figure {
  margin: 0 0 1.5rem;
}

.research-detail__figure img {
  max-width: min(100%, 22rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.research-body__heading {
  margin: 1.75rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.research-body > :first-child {
  margin-top: 0;
}

.research-body__topic {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.research-body__line {
  margin: 0.35rem 0 0;
}

.research-body__role {
  display: inline-block;
  min-width: 6em;
  margin-right: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.research-detail__links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.25rem;
}

.research-detail__links a {
  text-decoration-line: underline;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Difference page
   ========================================================================== */

/* The two explanatory lines under the thesis, on /difference/ only. */
.mission-statement__detail {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.85;
}

.reason-solves {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

.reason-solves__label {
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.reason-solves__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-solves__item {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.reason-solves__item img {
  flex: none;
  width: 2.75rem;
  height: auto;
}

.title-mark {
  text-decoration: underline;
  text-decoration-color: var(--color-key);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

#proof .point-card__year {
  margin-bottom: 0.9rem;
  padding: 0.4rem 1rem;
  font-size: 1.15rem;
}

.page-hero__sublead {
  max-width: 36rem;
  margin: -0.5rem 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.7;
  word-break: auto-phrase;
  text-wrap: balance;
}

.endorse-list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .endorse-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.endorse-list__item {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-sand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.endorse-list__quote {
  flex: 1;
  margin: 0 0 1.1rem;
}

.endorse-list__quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.95;
}

.endorse-list__name {
  margin: 0;
  font-weight: 800;
}

.endorse-list__title {
  margin: 0.15rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.general-tags {
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.general-tags .tag {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

/* Case studies: list hero without a second column, and the article body. */
@media (min-width: 900px) {
  .page-hero__inner--solo {
    grid-template-columns: minmax(0, 40rem);
  }
}

.page-hero .breadcrumb {
  margin-bottom: 1.15rem;
}

.case-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin: 0 0 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.case-body p,
.case-quote p {
  margin: 0 0 1.15rem;
  line-height: 1.9;
}

.case-body__h2,
.case-chapter__title {
  margin: 2.25rem 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.6;
}

.case-chapter {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.case-chapter__title {
  margin-top: 0;
}

.case-body__h3 {
  margin: 1.75rem 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
}

.case-body__h4 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.case-figure {
  margin: 0 0 1.25rem;
}

.case-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.case-quote {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--color-key-soft);
  border-left: 4px solid var(--color-key);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.case-quote p {
  margin: 0;
  font-family: var(--font-serif);
}

.case-body a {
  text-decoration-line: underline;
  text-underline-offset: 0.2em;
}

.case-more {
  margin: 0.5rem 0 0;
}

.case-gallery {
  margin-bottom: 2rem;
}

.case-gallery .case-figure {
  margin: 0;
}

.case-gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-features {
  margin: 0 0 1rem;
}

.case-feature__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.case-actions {
  justify-content: flex-start;
}

/* News list: same row pattern as the research archive. Chips narrow the list. */
.news-filter .research-filter__chip {
  cursor: pointer;
  text-decoration: none;
}

.news-filter .research-filter__chip:hover {
  text-decoration: none;
}

.news-filter .research-filter__chip.is-current {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

@media (max-width: 599px) {
  .news-filter .research-filter__chips {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* Help hubs, manual indexes, and article bodies. */
.page-head__eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.help-manuals,
.help-tiles {
  display: grid;
  gap: 0.75rem;
}

.help-manuals {
  grid-template-columns: 1fr;
}

.help-manual,
.help-tile {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.help-manual:hover,
.help-tile:hover {
  text-decoration: none;
  border-color: var(--color-text);
}

.help-manual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.help-manual__name,
.help-tile__label {
  font-weight: 700;
  font-size: 1rem;
}

.help-manual__label,
.help-tile__text {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.help-tile img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.help-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-tiles--single {
  grid-template-columns: minmax(12rem, 18rem);
}

.faq-item__a p {
  margin: 0 0 0.7rem;
}

.faq-item__a p:last-child {
  margin-bottom: 0;
}

.help-tabs {
  position: relative;
  display: grid;
  gap: 1rem;
}

.help-tabs > input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.help-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.help-tabs__nav label {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

#staff-faq-ccw:checked ~ .help-tabs__nav label[for="staff-faq-ccw"],
#staff-faq-app:checked ~ .help-tabs__nav label[for="staff-faq-app"],
#staff-faq-parent:checked ~ .help-tabs__nav label[for="staff-faq-parent"] {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

#staff-faq-ccw:focus-visible ~ .help-tabs__nav label[for="staff-faq-ccw"],
#staff-faq-app:focus-visible ~ .help-tabs__nav label[for="staff-faq-app"],
#staff-faq-parent:focus-visible ~ .help-tabs__nav label[for="staff-faq-parent"] {
  outline: 2px solid var(--color-key);
  outline-offset: 2px;
}

.help-tab {
  display: none;
}

#staff-faq-ccw:checked ~ .help-tab--ccw,
#staff-faq-app:checked ~ .help-tab--app,
#staff-faq-parent:checked ~ .help-tab--parent {
  display: block;
}

.help-contact {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
}

.help-contact p {
  margin: 0;
}

.help-line img {
  width: 1.35rem;
  height: 1.35rem;
}

.help-support {
  margin: 1.25rem 0 0;
}

.help-support img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.manual-back {
  margin: 0 0 1.25rem;
}

.manual-back a,
.manual-body a,
.manual-index a {
  color: var(--color-text);
  font-weight: 700;
  text-decoration-line: underline;
  text-underline-offset: 0.25em;
}

.manual-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.manual-body {
  display: grid;
  gap: 1.15rem;
}

.manual-body h2,
.manual-body h3,
.manual-block p {
  margin: 0;
}

.manual-body h2 {
  font-size: 1.25rem;
}

.manual-body h3 {
  font-size: 1.05rem;
}

.manual-block {
  display: grid;
  gap: 0.75rem;
}

.manual-shot img,
.manual-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

.manual-shot img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.manual-side {
  border: 2px solid #ccc;
  background: #fff;
}

.manual-side__label {
  margin: 0;
  padding: 0.85rem 0.7rem 0.7rem;
  border-bottom: 1px solid #000;
  background: #ffeff6;
  font-weight: 700;
  line-height: 1.4;
}

.manual-side--parent .manual-side__label {
  background: #d9f0ff;
}

.manual-side__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.manual-side__item {
  display: block;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--color-border);
  color: #5c5c5c;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
}

a.manual-side__item:hover {
  background: #dcfaee;
  padding-left: 0.6rem;
  text-decoration: none;
}

.manual-side__item.is-current {
  background: #999;
  color: #fff;
  font-weight: 700;
}

.manual-side__top {
  font-weight: 700;
}

.manual-index {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  max-width: 46rem;
  list-style: none;
}

.manual-index a {
  display: block;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.manual-videos {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.manual-video {
  position: relative;
  width: min(100%, 40rem);
  aspect-ratio: 16 / 9;
}

.manual-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 760px) {
  .help-manuals {
    grid-template-columns: 1fr 1fr;
  }

  .help-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .help-tiles--single {
    grid-template-columns: minmax(14rem, 18rem);
  }

  .manual-layout {
    grid-template-columns: minmax(0, 3fr) minmax(11rem, 1fr);
    gap: 2.5rem;
  }

  .manual-side {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    max-height: min(600px, calc(100dvh - var(--header-h) - 2rem));
    overflow-y: auto;
  }
}

@media (max-width: 759px) {
  .help-support {
    overflow-x: auto;
  }

  .help-support img {
    width: 46rem;
    max-width: none;
  }
}

/* The news index has no section heading, so the list starts under the hero. */
.news-list,
.release-list {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.release-tabs {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.release-tabs > input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.release-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.release-tabs__nav label {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

#release-tab-parent:checked ~ .release-tabs__nav label[for="release-tab-parent"],
#release-tab-manager:checked ~ .release-tabs__nav label[for="release-tab-manager"],
#release-tab-staff:checked ~ .release-tabs__nav label[for="release-tab-staff"],
#release-tab-attendance:checked ~ .release-tabs__nav label[for="release-tab-attendance"] {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

#release-tab-parent:focus-visible ~ .release-tabs__nav label[for="release-tab-parent"],
#release-tab-manager:focus-visible ~ .release-tabs__nav label[for="release-tab-manager"],
#release-tab-staff:focus-visible ~ .release-tabs__nav label[for="release-tab-staff"],
#release-tab-attendance:focus-visible ~ .release-tabs__nav label[for="release-tab-attendance"] {
  outline: 2px solid var(--color-key);
  outline-offset: 2px;
}

.release-pane {
  display: none;
}

#release-tab-parent:checked ~ .release-pane--parent,
#release-tab-manager:checked ~ .release-pane--manager,
#release-tab-staff:checked ~ .release-pane--staff,
#release-tab-attendance:checked ~ .release-pane--attendance {
  display: block;
}

.release-group + .release-group {
  margin-top: 2.25rem;
}

.release-group__title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.release-cards {
  display: grid;
  gap: 0.75rem;
}

.release-card {
  padding: 1.1rem 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.release-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.release-card__when {
  margin: 0.4rem 0 0;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.release-card__text {
  margin: 0.7rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* /admin/sitemap/ : progress list, not a public page */
.progress-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}


.progress-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 1.15rem;
}

.progress-tabs__tab {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.3rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.progress-tabs__tab:hover {
  text-decoration: none;
  border-color: var(--color-text);
}

.progress-tabs__tab.is-current {
  background: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.progress-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.progress-group {
  margin: 0 0 2.25rem;
}

.progress-group__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.progress-table-wrap {
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.progress-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.progress-table__col-status {
  width: 9rem;
}

.progress-table__col-name {
  width: 24rem;
}

.progress-table--current {
  min-width: 64rem;
}

.progress-table--current .progress-table__col-name {
  width: 14rem;
}

.progress-table--release {
  min-width: 76rem;
}

.progress-table--release tbody td {
  height: auto;
}

.progress-table__col-url {
  width: 14rem;
}

.progress-table__col-kind {
  width: 6.5rem;
}

.progress-table__col-redirect {
  width: 12rem;
}

.progress-table__col-chars {
  width: 7rem;
}

.progress-table--release .progress-table__url,
.progress-table--release td a {
  overflow-wrap: anywhere;
  white-space: normal;
}

.release-check__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0.5rem 0 0;
}

.release-check__toolbar button {
  padding: 0.45rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-key);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.release-check__toolbar button:hover {
  opacity: 0.85;
}

.release-check__meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.release-check__ok {
  color: #1b5e20;
  font-weight: 700;
}

.release-check__ng {
  color: #8f1d1d;
  font-weight: 700;
}

.progress-table tr.is-short td {
  background: #fde8e8;
}

.progress-table tr.is-redirect-ng td {
  box-shadow: inset 3px 0 0 #c62828;
}

.progress-status--catch {
  background: var(--color-blue-soft);
}

.progress-status--new {
  background: var(--color-mint-soft);
}

.progress-table__col-decision {
  width: 14rem;
}

.progress-table__col-from {
  width: 14rem;
}

.progress-table th,
.progress-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.progress-table tbody td {
  height: 4.75rem;
}

.progress-table tr:last-child > * {
  border-bottom: 0;
}

.progress-table th {
  background: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 700;
}

.progress-table a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.progress-table__url {
  display: block;
  margin-top: 0.15rem;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-table__note,
.progress-table__decision {
  margin: 0;
  line-height: 1.6;
}

.progress-table__decision {
  color: var(--color-text);
  font-weight: 700;
}

.progress-sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-sources li + li {
  margin-top: 0.25rem;
}

.progress-sources + .progress-table__note {
  margin-top: 0.35rem;
}

.progress-status {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.progress-status--fix {
  background: #c62828;
  color: #fff;
}

.progress-status--fix-check {
  background: #fde8e8;
  color: #8f1d1d;
  box-shadow: inset 0 0 0 1px #e7b4b4;
}

.progress-status--done {
  background: var(--color-mint-soft);
}

.progress-status--partial {
  background: var(--color-sand-soft);
}

.progress-status--soon,
.progress-status--missing {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.progress-status--redirect {
  background: var(--color-blue-soft);
}

.progress-status--kept {
  background: var(--color-key-soft);
}

.progress-status--later {
  background: #eceae8;
  color: #777;
}

.progress-table tr.is-later,
.progress-table tr.is-later a,
.progress-table tr.is-later .progress-table__url {
  color: #8a8683;
}

.progress-table tr.is-later a {
  font-weight: 500;
}

.progress-table tr.is-dropped td {
  background: var(--color-bg);
}

.progress-table tr.is-dropped,
.progress-table tr.is-dropped a,
.progress-table tr.is-dropped .progress-table__url,
.progress-table tr.is-dropped .progress-table__note,
.progress-table tr.is-dropped .progress-table__decision,
.progress-table tr.is-dropped .progress-status {
  color: var(--color-text-muted);
}

.progress-table tr.is-dropped a {
  font-weight: 500;
}

/* /privacy/ : the current site's wording, set in this site's type */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.legal h2 + h3 {
  margin-top: 0;
}

.legal p {
  margin: 0 0 1rem;
}

.legal-sign {
  text-align: right;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.legal-table th {
  background: var(--color-bg);
  font-weight: 700;
}

.legal-mark {
  width: 200px;
  height: auto;
}

.legal-spec {
  margin: 0;
}

.legal-spec dt {
  margin: 1.35rem 0 0.3rem;
  font-weight: 700;
}

.legal-spec dt:first-child {
  margin-top: 0;
}

.legal-spec dd {
  margin: 0;
}

.ai-copy .card > h3 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.ai-copy h4 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.ai-copy .check-list {
  margin-bottom: 0;
}

.ai-shot {
  margin: 0 0 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ai-shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 759px) {
  .ai-copy .compare-table {
    min-width: 0;
  }

  .ai-copy .compare-table thead {
    display: none;
  }

  .ai-copy .compare-table,
  .ai-copy .compare-table tbody,
  .ai-copy .compare-table tr,
  .ai-copy .compare-table th,
  .ai-copy .compare-table td {
    display: block;
    width: auto;
  }

  .ai-copy .compare-table tr {
    padding: 0.85rem 0.15rem 0.35rem;
    border-bottom: 1px solid var(--color-border);
  }

  .ai-copy .compare-table tr:last-child {
    border-bottom: 0;
  }

  .ai-copy .compare-table tbody th,
  .ai-copy .compare-table td {
    padding: 0.15rem 0.7rem 0.45rem;
    border-bottom: 0;
    background: transparent;
  }

  .ai-copy .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.1rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 700;
  }
}

@media (max-width: 759px) {
  .progress-table {
    min-width: 0;
  }

  .progress-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .progress-table,
  .progress-table tbody,
  .progress-table tr,
  .progress-table td {
    display: block;
    width: auto;
  }

  .progress-table tr {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--color-border);
  }

  .progress-table tbody td {
    height: auto;
    padding: 0.15rem 0;
    border-bottom: 0;
  }

  .progress-table tr:last-child {
    border-bottom: 0;
  }
}

/* Column index cards, and the article body read from Markdown. */
.article-card {
  color: inherit;
}

.article-card:hover {
  text-decoration: none;
}

.article-card:hover .case-card__title {
  text-decoration-line: underline;
  text-decoration-color: var(--color-key);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.article-body {
  max-width: 46rem;
  margin-inline: auto;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 2rem 0 0.75rem;
  font-weight: 800;
  line-height: 1.45;
}

.article-body h2 {
  font-size: 1.35rem;
}

.article-body h3 {
  font-size: 1.15rem;
}

.article-body h4 {
  font-size: 1rem;
}

.article-body p,
.article-body ul {
  margin: 0 0 1rem;
  line-height: 1.85;
}

.article-body ul {
  padding-left: 1.3rem;
  list-style: disc;
}

.article-body li + li {
  margin-top: 0.3rem;
}

.article-body ul ul {
  margin: 0.3rem 0 0;
  list-style: circle;
}

.article-body a {
  font-weight: 700;
  text-decoration-line: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

.article-figure {
  margin: 0 0 1.25rem;
}

.article-table {
  margin: 0 0 1.25rem;
  overflow-x: auto;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-body th,
.article-body td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--color-bg);
}

.article-source {
  margin: 2rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.enquete-hub {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.enquete-choices {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.enquete-choice {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.enquete-choice h2 {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}

.enquete-choice img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.enquete-choice p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.enquete-choice .btn {
  margin-top: auto;
  align-self: center;
}

.enquete-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.enquete-body h2,
.enquete-body h3,
.enquete-body h4 {
  margin: 0 0 0.85rem;
  line-height: 1.5;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.enquete-body h2 {
  font-size: 1.28rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--color-text);
}

.enquete-body h3 {
  font-size: 1.08rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--color-text);
}

.enquete-body h4 {
  font-size: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.enquete-body p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.enquete-body a {
  color: var(--color-text);
  font-weight: 700;
  text-decoration-line: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.enquete-body .mb-5 {
  margin-bottom: 2.25rem;
}

.enquete-body .mb-4 {
  margin-bottom: 1rem;
}

.enquete-body .mb-3 {
  margin-bottom: 0.75rem;
}

.enquete-body .fw-bold {
  font-weight: 700;
}

.enquete-body .text-center {
  text-align: center;
}

.enquete-body .section-title {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0 0 0.25rem;
  background: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-border);
}

.enquete-body img {
  display: block;
  width: 100%;
  max-width: 46rem;
  height: auto;
  margin: 0.5rem auto 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.enquete-toc {
  padding: 0.75rem 0.65rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.enquete-toc__label {
  margin: 0 0.4rem 0.45rem;
  font-weight: 700;
}

.enquete-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.enquete-toc a {
  display: block;
  padding: 0.32rem 0.45rem;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.82rem;
  line-height: 1.45;
  text-decoration: none;
}

.enquete-toc__link--3 {
  padding-left: 1.15rem;
  color: var(--color-text-muted);
}

.enquete-toc a:hover {
  background: var(--color-bg-soft);
  text-decoration: none;
}

.enquete-toc a.is-current {
  background: var(--color-key-soft);
  color: var(--color-text);
  font-weight: 700;
}

@media (min-width: 760px) {
  .enquete-choices {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .enquete-layout {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 2.5rem;
  }

  .enquete-toc {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    max-height: min(70dvh, calc(100dvh - var(--header-h) - 2rem));
    overflow: auto;
  }
}

/* CoNNect と MyPage の統合案内 */
.mc-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  line-height: 1.4;
}

.mc-lead {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  line-height: 1.8;
}

.mc-mark {
  background: var(--color-key-soft);
  font-weight: 700;
}

.mc-back {
  margin: 0 0 1.5rem;
}

.mc-back a,
.page-head__eyebrow a {
  font-weight: 700;
  text-decoration-line: underline;
  text-underline-offset: 0.2em;
}

.mc-compare,
.mc-types,
.mc-judge,
.mc-trouble {
  display: grid;
  gap: 1rem;
}

.mc-compare__card,
.mc-type,
.mc-judge article,
.mc-trouble__card,
.mc-note,
.mc-diagram,
.mc-next {
  padding: 1.25rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.mc-compare__card h3,
.mc-type h3,
.mc-judge h3,
.mc-trouble__card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.mc-compare__card ul,
.mc-trouble__card ul,
.mc-text-steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
  line-height: 1.75;
}

.mc-text-steps {
  list-style: decimal;
}

.mc-compare__card li + li,
.mc-trouble__card li + li,
.mc-text-steps li + li {
  margin-top: 0.45rem;
}

.mc-compare__card img,
.mc-sample img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mc-note p,
.mc-trouble__card p,
.mc-type p,
.mc-judge p,
.mc-next p {
  margin: 0 0 0.7rem;
  line-height: 1.75;
}

.mc-note p:last-child,
.mc-type p:last-child,
.mc-judge p:last-child {
  margin-bottom: 0;
}

.mc-note {
  margin-top: 1.25rem;
  border-left: 4px solid var(--color-mint);
}

.mc-type {
  display: flex;
  flex-direction: column;
}

.mc-type__label {
  margin: 0 0 0.7rem;
  color: var(--color-key);
  font-size: 0.82rem;
  font-weight: 800;
}

.mc-type .card__link {
  margin-top: auto;
  padding-top: 0.8rem;
}

.mc-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.page-hero .mc-usage {
  margin-bottom: 0;
}

.mc-usage__item {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-width: 6.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.mc-usage__item img {
  display: block;
  width: auto;
  max-width: 7.5rem;
  height: 2rem;
  object-fit: contain;
}

.mc-usage__item.is-off {
  opacity: 0.45;
}

.mc-branch {
  margin: 0 0 0.45rem;
  font-weight: 800;
}

.mc-branch--ok {
  color: var(--color-mint);
}

.mc-branch--need {
  color: var(--color-key);
}

.mc-login,
.mc-next {
  margin: 0 0 1.5rem;
}

.mc-login p,
.mc-next p {
  margin: 0.7rem 0 0;
}

.mc-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-step {
  padding: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.mc-step h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.mc-step h3 span {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  font-size: 0.85rem;
}

.mc-step img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto;
}

.mc-step__note {
  margin: 0 0 0.7rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.mc-step__more {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  line-height: 1.7;
}

.mc-step__more p {
  margin: 0 0 0.45rem;
}

.mc-screens,
.mc-sample {
  margin-top: 0.9rem;
}

.mc-screens summary,
.mc-sample summary {
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mc-screens__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.mc-screens figure {
  margin: 0;
  text-align: center;
}

.mc-screens figcaption {
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.mc-screens img {
  width: min(100%, 260px);
  height: auto;
}

.mc-screens p {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.mc-sample img {
  margin-top: 0.8rem;
}

.mc-trouble__card ul {
  padding-left: 0;
  list-style: none;
}

.mc-trouble__card li strong {
  display: block;
}

.mc-trouble__card a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.mc-trouble__action {
  margin: 0.8rem 0 0;
}

.mc-diagram__title {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.mc-diagram__lead,
.mc-diagram__foot,
.mc-diagram__note {
  margin: 0;
  line-height: 1.7;
}

.mc-diagram__flow {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.mc-diagram__panel {
  padding: 0.9rem;
  background: var(--color-bg);
  border-radius: 12px;
}

.mc-diagram__panel--target {
  background: var(--color-key-soft);
}

.mc-diagram__label {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.mc-diagram__kids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
}

.mc-kid {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.mc-kid span,
.mc-kid--new span {
  font-size: 0.72rem;
  font-weight: 700;
}

.mc-diagram__arrow {
  margin: 0;
  font-size: 1.4rem;
  text-align: center;
}

.mc-parent-notice {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--color-key-soft);
  border-radius: var(--radius-md);
}

.mc-parent-notice p {
  margin: 0;
  line-height: 1.7;
}

.mc-parent-notice a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.parent-services {
  display: grid;
  gap: 1.25rem;
}

.parent-service {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.parent-service__logo {
  width: auto;
  max-width: 11rem;
  height: auto;
}

.parent-service__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.55;
}

.parent-service__body {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.parent-service__text,
.parent-service__note {
  margin: 0;
  line-height: 1.75;
}

.parent-service__note {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.parent-service__screen {
  width: 7.5rem;
  height: auto;
  justify-self: center;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
}

.parent-service__actions,
.parent-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.parent-stores img {
  width: auto;
  height: 2.6rem;
}

.parent-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.parent-links li + li {
  margin-top: 0.35rem;
}

.parent-links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 720px) {
  .parent-service__body {
    grid-template-columns: 1fr 7.5rem;
  }

  .parent-service__screen {
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .parent-services {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

@media (min-width: 760px) {
  .mc-compare,
  .mc-judge,
  .mc-trouble,
  .mc-screens__grid {
    grid-template-columns: 1fr 1fr;
  }

  .mc-steps {
    grid-template-columns: 1fr 1fr;
  }

  .mc-diagram__flow {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .mc-diagram__arrow {
    text-align: center;
  }
}

@media (min-width: 980px) {
  .mc-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mc-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.migration {
  max-width: 44rem;
}

.migration__banner {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  margin: 0 auto 2.25rem;
}

.migration__copy {
  display: grid;
  gap: 1.15rem;
}

.migration__copy p {
  margin: 0;
  line-height: 1.9;
}

.migration__offer {
  padding: 1.15rem 1.3rem;
  background: var(--color-key-soft);
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
}

.migration__offer strong {
  font-weight: 800;
}

.migration .note-box {
  margin-top: 1.75rem;
}

.partner {
  max-width: 56rem;
}

.partner__logo {
  display: block;
  width: 14.375rem;
  height: auto;
  margin: 0 0 1.25rem;
}

.partner__name {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.4;
}

.partner__lead {
  margin: 0 0 1rem;
  font-weight: 700;
  line-height: 1.7;
}

.partner__text {
  margin: 0 0 1.75rem;
  line-height: 1.9;
}

.partner-releases {
  display: grid;
  gap: 1rem;
}

.partner-release {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
}

.partner-release img {
  display: block;
  width: 100%;
  height: auto;
}

.partner-release span {
  display: block;
  padding: 0.9rem 1rem 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.partner-release:hover span {
  text-decoration: none;
}

.partner__site {
  margin: 1.35rem 0 0;
  font-weight: 700;
}

.partner__site a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.news-empty {
  margin: 0;
  color: var(--color-text-muted);
}

.news-date {
  letter-spacing: 0.08em;
}

.news-date__unit {
  font-size: 0.78em;
}

@media (min-width: 720px) {
  .partner-releases {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.home-news__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.home-news__link:hover {
  text-decoration: none;
}

.home-news__thumb {
  position: relative;
  display: grid;
  flex: 0 0 7rem;
  place-items: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
}

.home-news__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news__empty {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-news__body {
  min-width: 0;
}

.home-news__date {
  color: var(--color-text);
  font-size: 0.92rem;
}

.home-news .research-item__title {
  text-decoration-line: underline;
  text-decoration-color: var(--color-border);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.home-news__link:hover .research-item__title {
  text-decoration-color: var(--color-key);
}

.home-news__link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 720px) {
  .home-news__link {
    gap: 1.25rem;
  }

  .home-news__thumb {
    flex-basis: 9.5rem;
  }
}

/* Pricing: live /price/ figures, in this site's type. */
.price-points {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .price-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

.price-point__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
}

.price-point p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.price-point img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
}

.price-point .price-point__note {
  margin: 0.45rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.price-support-lead {
  max-width: 48rem;
  margin: 2.5rem auto 0;
  padding: 1.6rem 1.4rem 1.3rem;
  background: var(--color-bg-soft);
  text-align: center;
}

.price-support-lead h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
}

.price-support-lead p {
  margin: 0;
}

.price-support-lead__link {
  margin-top: 0.85rem;
  font-weight: 700;
}

.price-support-lead__link a,
.price-offer__support a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.price-groups {
  display: none;
}

@media (min-width: 760px) {
  .price-groups {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 0.4rem;
    margin: 0 0 0.35rem;
  }

  .price-groups p {
    margin: 0;
    padding: 0.4rem 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
  }

  .price-groups p:nth-child(1) { background: #fff2d2; }
  .price-groups p:nth-child(2) { background: #ffead6; }
  .price-groups p:nth-child(3) { background: #ffded7; }
}

.price-offer {
  max-width: 62rem;
  margin: 0 auto 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--color-border);
}

.price-offer__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.price-offer__name span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--color-bg);
  font-size: 1rem;
}

.price-offer__lead {
  max-width: 46rem;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.price-offer__support {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.price-offer--custom .btn {
  display: inline-flex;
}

.price-offer--custom {
  text-align: center;
}

.plan-rates {
  display: grid;
  gap: 0.9rem;
  max-width: 44rem;
  margin: 0 auto;
}

.plan-rate {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr) 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.plan-rate__label {
  margin: 0;
  padding: 0.25rem 0.3rem;
  background: var(--color-bg);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.plan-rate__before,
.plan-rate__after {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.plan-rate__tax {
  margin-left: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
}

.plan-rate__struck {
  position: relative;
  display: inline-block;
}

.plan-rate__struck::before,
.plan-rate__struck::after {
  content: "";
  position: absolute;
  left: -0.1rem;
  right: -0.1rem;
  top: 50%;
  height: 3px;
  background: rgb(255 127 127 / 80%);
}

.plan-rate__struck::before { transform: rotate(14deg); }
.plan-rate__struck::after { transform: rotate(-14deg); }

.plan-rate__after strong {
  background-image: linear-gradient(#ffd776, #ffd776);
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.42em;
}

.plan-rate__arrow {
  position: relative;
  height: 2px;
  background: #c8c8c8;
}

.plan-rate__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  border: 5px solid transparent;
  border-left-color: #a3a3a3;
  transform: translateY(-50%);
}

.plan-bundle {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}

@media (min-width: 800px) {
  .plan-bundle {
    grid-template-columns: minmax(16rem, 24rem) 6.5rem minmax(11rem, 16rem);
    align-items: center;
    justify-content: center;
  }

  .plan-bundle__arrow {
    align-self: center;
    margin-top: 1.5rem;
  }
}

.plan-bundle__list {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1.15rem;
  background: #facbe0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.plan-bundle__arrow {
  width: 5.5rem;
  height: auto;
}

.plan-bundle__result {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 16rem);
  min-height: 9.5rem;
  margin: 3.4rem 0 0;
  background: #eb5096;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}

.plan-bundle__result span {
  position: absolute;
  top: -3.3rem;
  right: 0;
  left: 0;
  color: var(--color-text);
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
}

.plan-pack,
.plan-option {
  max-width: 52rem;
  margin: 0 auto 1.25rem;
  padding: 1.35rem 1.25rem 1.15rem;
  background: var(--color-bg-soft);
}

.plan-pack__title,
.plan-option__label {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  text-align: center;
}

.plan-pack__body,
.plan-option__body {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .plan-pack__body {
    grid-template-columns: 9.5rem 1fr;
    align-items: center;
  }

  .plan-option__body {
    grid-template-columns: 6.5rem 1fr 8.5rem;
    align-items: center;
  }
}

.plan-pack__mark,
.plan-option__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.8rem 0.4rem;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.plan-pack__mark img,
.plan-option__icon img {
  width: 4rem;
  height: auto;
}

.plan-pack__text,
.plan-option__body p {
  margin: 0;
  font-size: 0.92rem;
}

.plan-option h5 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.plan-option__price {
  font-weight: 700;
  text-align: center;
}

.plan-option__price span:first-child {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.plan-option__price strong {
  font-size: 1.8rem;
}

.plan-option__cap {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 759px) {
  .plan-rate {
    grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr);
  }

  .plan-rate__label {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .plan-rate__before,
  .plan-rate__after {
    font-size: 1.15rem;
  }
}

.staff-columns {
  display: grid;
  gap: 1.75rem;
}

.staff-columns__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.staff-feed {
  padding-top: 0;
}

.staff-feed .news-list__static {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1.15rem;
}

.staff-feed .news-list__meta {
  flex-wrap: wrap;
}

.staff-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0 0;
  font-weight: 700;
}

.staff-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.staff-note {
  margin: 0;
  line-height: 1.8;
}

.staff-support-head {
  margin-bottom: 1.25rem;
}

.staff-support .staff-note {
  text-align: center;
}

@media (min-width: 760px) {
  .staff-columns {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .staff-feed .news-list__item a,
  .staff-feed .news-list__static {
    grid-template-columns: minmax(0, 1fr);
  }
}

.catalog__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.1rem;
}

.catalog__links .catalog__link {
  margin-top: 0;
}

.is-lux,
.visitor-modal,
.visitor-switch,
.visitor-switch-pill {
  --lux-deep: #12362e;
  --lux-green: #22483c;
  --lux-green-light: #426653;
  --lux-gold: #b4975c;
  --lux-gold-light: #cdb77b;
  --lux-gold-pale: #d8c9a7;
  --lux-ivory: #fdfbf6;
  --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.is-lux {
  background: transparent;
}

.is-lux::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #f6f0e6 url("../assets/for-parent/ivory-silk.jpg") center / cover no-repeat;
}

.lux-hero {
  padding: 0.75rem;
  background: linear-gradient(160deg, var(--lux-green) 0%, var(--lux-deep) 55%, #0d2a23 100%);
  border-bottom: 1px solid var(--lux-gold);
  overflow: hidden;
}

.lux-hero__frame {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--lux-gold) 55%, transparent);
  outline: 1px solid color-mix(in srgb, var(--lux-gold) 25%, transparent);
  outline-offset: 4px;
}

.lux-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, rgb(255 255 255 / 0.1), transparent 70%);
  pointer-events: none;
}

.lux-hero__inner {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
  text-align: center;
}

.lux-hero__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--lux-gold-light);
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lux-hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 3vw, 1.75rem);
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.16em;
}

.lux-hero__rule {
  flex: 0 1 6.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lux-gold-light));
  transform-origin: right center;
}

.lux-hero__rule:last-child {
  background: linear-gradient(90deg, var(--lux-gold-light), transparent);
  transform-origin: left center;
}

.lux-hero__lead {
  margin: 1.5rem 0 0;
  color: rgb(255 255 255 / 0.88);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2.1;
  letter-spacing: 0.06em;
}

@media (max-width: 599px) {
  .lux-hero__title {
    gap: 0.75rem;
    white-space: nowrap;
    letter-spacing: 0.1em;
  }

  .lux-hero__rule {
    flex-basis: 1.5rem;
  }

  .lux-hero__lead {
    font-size: 0.85rem;
  }

  .lux-hero__lead br {
    display: none;
  }
}

.js .lux-hero__eyebrow,
.js .lux-hero__title > span:not(.lux-hero__rule),
.js .lux-hero__lead {
  animation: lux-rise 1.1s var(--lux-ease) both;
}

.js .lux-hero__title > span:not(.lux-hero__rule) {
  animation-delay: 0.12s;
}

.js .lux-hero__lead {
  animation-delay: 0.3s;
}

.js .lux-hero__rule {
  animation: lux-draw 1.3s var(--lux-ease) 0.35s both;
}

@keyframes lux-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes lux-draw {
  from {
    transform: scaleX(0);
  }
}

.lux-body {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.lux-stack {
  display: grid;
  gap: 1.5rem;
  max-width: 58rem;
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

.lux-card {
  background: color-mix(in srgb, var(--lux-ivory) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--lux-gold-pale) 85%, transparent);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.8) inset,
    0 18px 40px -24px rgb(18 54 46 / 0.28);
  backdrop-filter: blur(6px);
}

.lux-notice {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.4rem 1.25rem;
  overflow: hidden;
  border: 1px solid var(--lux-gold);
  outline: 1px solid color-mix(in srgb, var(--lux-gold-pale) 70%, transparent);
  outline-offset: 4px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--lux-deep), var(--lux-green) 50%, var(--lux-deep));
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform 0.4s var(--lux-ease), box-shadow 0.4s var(--lux-ease), opacity 0.4s var(--lux-ease);
}

.lux-notice::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgb(255 236 190 / 0.22), transparent);
  transform: skewX(-18deg);
  animation: lux-sheen 6s ease-in-out 1.2s infinite;
  pointer-events: none;
}

@keyframes lux-sheen {
  0%,
  70% {
    left: -40%;
  }

  100% {
    left: 130%;
  }
}

.lux-notice:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -18px rgb(18 54 46 / 0.6);
  opacity: 0.7;
}

.lux-notice__badge {
  padding: 0.25rem 1.1rem;
  border: 1px solid var(--lux-gold-light);
  border-radius: 999px;
  background: linear-gradient(180deg, #fbf3dc, var(--lux-gold-pale));
  color: var(--lux-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lux-notice__badge,
.lux-notice__cta {
  white-space: nowrap;
}

.lux-notice__tail {
  display: inline-block;
}

.lux-notice__title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: 0.06em;
}

.lux-notice__brand {
  color: #f3e4b9;
  font-weight: 700;
}

.lux-notice__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6e9c4, var(--lux-gold-light));
  color: var(--lux-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

@media (min-width: 760px) {
  .lux-notice {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    padding: 1.25rem 1.75rem;
    text-align: left;
  }
}

.lux-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--lux-gold-pale);
  background: linear-gradient(180deg, rgb(216 201 167 / 0.28), rgb(216 201 167 / 0.12));
  border-radius: 10px 10px 0 0;
}

.lux-news__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.lux-news__more {
  display: inline-flex;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.lux-news__more:hover {
  color: var(--lux-deep);
}

.lux-news__empty {
  margin: 0;
  padding: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.lux-news__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lux-news__list li + li {
  border-top: 1px solid color-mix(in srgb, var(--lux-gold-pale) 60%, transparent);
}

.lux-news__list a {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 1rem 1.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.lux-news__list a:hover {
  background: rgb(216 201 167 / 0.16);
}

.lux-news__list time {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

@media (min-width: 640px) {
  .lux-news__list a {
    grid-template-columns: 6.5rem 1fr;
  }
}

.lux-section {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
}

.lux-narrow {
  max-width: 46rem;
}

.lux-head {
  margin-bottom: 2.25rem;
  text-align: center;
}

.lux-head__title {
  margin: 0;
  color: var(--lux-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.lux-head__title::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 9px;
  margin: 1.1rem auto 0;
  background:
    radial-gradient(circle, var(--lux-gold) 0 2.5px, transparent 3px) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, var(--lux-gold) 30%, var(--lux-gold) 70%, transparent) center / 100% 1px no-repeat;
}

.lux-head__lead {
  margin: 1.1rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.lux-apps {
  position: relative;
  max-width: 62rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.lux-apps__logo {
  display: block;
  width: auto;
  height: 3.25rem;
  margin-bottom: 1.25rem;
}

.lux-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .lux-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.lux-tiles > li {
  display: grid;
}

.lux-tiles__brand {
  place-items: stretch;
}

.lux-tile--brand {
  align-content: center;
  grid-template-rows: 1fr;
}

.lux-tile--brand:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--lux-gold-pale) 70%, transparent);
  box-shadow: none;
}

.lux-tiles__brand img {
  display: block;
  width: auto;
  height: 4.25rem;
}

.lux-tile {
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.15rem 0.85rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--lux-gold-pale) 70%, transparent);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, var(--lux-ivory));
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.45s var(--lux-ease),
    border-color 0.45s,
    box-shadow 0.45s var(--lux-ease);
}

.lux-tile:hover,
.lux-tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--lux-gold);
  box-shadow: 0 16px 28px -18px rgb(18 54 46 / 0.45);
}

.lux-tile__title {
  color: var(--lux-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lux-tile__icon {
  color: var(--lux-green-light);
  transition: color 0.45s, transform 0.45s var(--lux-ease);
}

.lux-tile:hover .lux-tile__icon {
  color: var(--lux-deep);
  transform: scale(1.08);
}

.lux-tile__text {
  color: var(--color-text-muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.lux-apps__inner {
  position: relative;
  margin-top: 0.75rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--lux-gold-pale);
  border-radius: 8px;
  background: rgb(216 201 167 / 0.2);
}

.lux-tiles__mypage {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1rem 0.75rem;
  border: 1px solid var(--lux-gold-pale);
  border-radius: 8px;
  background: rgb(216 201 167 / 0.2);
}

.lux-apps__mypage {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--lux-deep);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lux-apps__face {
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--lux-green-light);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 42%, var(--lux-deep) 0 2px, transparent 2.2px),
    radial-gradient(circle at 62% 42%, var(--lux-deep) 0 2px, transparent 2.2px),
    radial-gradient(circle at 50% 62%, transparent 0 8px, transparent 8px);
  position: relative;
}

.lux-apps__face::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  width: 0.85rem;
  height: 0.45rem;
  border-bottom: 1.5px solid var(--lux-green-light);
  border-radius: 0 0 1rem 1rem;
  transform: translateX(-50%);
}

@media (min-width: 860px) {
  .lux-tiles__mypage {
    position: relative;
    z-index: 1;
    margin-bottom: calc(-1rem - 1px);
    padding-bottom: calc(1rem + 1.1rem);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }

  .lux-apps__inner {
    margin-top: 0;
    border-radius: 8px 0 8px 8px;
  }
}

.lux-login {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
  text-align: center;
}

.lux-login--in-apps {
  margin-top: 1.25rem;
}

.lux-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 3rem;
  padding: 0.75rem 2.25rem;
  overflow: hidden;
  border: 1px solid var(--lux-deep);
  border-radius: 4px;
  background: linear-gradient(160deg, var(--lux-green-light), var(--lux-deep) 60%);
  box-shadow: 0 10px 22px -12px rgb(18 54 46 / 0.7), 0 1px 0 rgb(255 255 255 / 0.18) inset;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--lux-ease), box-shadow 0.35s var(--lux-ease);
}

.lux-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -14px rgb(18 54 46 / 0.75), 0 1px 0 rgb(255 255 255 / 0.18) inset;
}

.lux-btn > span[aria-hidden="true"] {
  transition: transform 0.35s var(--lux-ease);
}

.lux-btn:hover > span[aria-hidden="true"] {
  transform: translateX(4px);
}

.lux-btn--lg {
  min-width: min(100%, 17rem);
  min-height: 3.5rem;
}

.lux-btn--ghost {
  min-height: 2.6rem;
  padding: 0.55rem 1.75rem;
  border-color: var(--lux-gold);
  background: rgb(255 255 255 / 0.7);
  box-shadow: none;
  color: var(--lux-deep);
  font-size: 0.85rem;
}

.lux-btn--ghost:hover {
  background: #fff;
  box-shadow: 0 10px 20px -14px rgb(18 54 46 / 0.5);
}

.lux-login__note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.lux-apps + .lux-judge {
  margin-top: 2.25rem;
}

.lux-judge {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.lux-judge.is-answered .lux-judge__title,
.lux-judge.is-answered .lux-judge__text,
.lux-judge.is-answered .visitor-judge__actions {
  display: none;
}

.lux-judge.is-answered .visitor-judge__done {
  display: flex;
  justify-content: center;
}

.lux-judge__title {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.lux-judge__text {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.76rem;
}

.lux-faq {
  overflow: hidden;
}

.lux-faq__item + .lux-faq__item {
  border-top: 1px solid color-mix(in srgb, var(--lux-gold-pale) 70%, transparent);
}

.lux-faq__item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s;
}

.lux-faq__item summary::-webkit-details-marker {
  display: none;
}

.lux-faq__item summary:hover {
  background: rgb(216 201 167 / 0.14);
}

.lux-faq__q {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--lux-gold);
  border-radius: 50%;
  background: var(--lux-deep);
  color: #f3e4b9;
  font-family: var(--font-serif);
  font-size: 0.78rem;
}

.lux-faq__sign {
  position: relative;
  width: 12px;
  height: 12px;
}

.lux-faq__sign::before,
.lux-faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--lux-gold);
  transition: transform 0.4s var(--lux-ease);
}

.lux-faq__sign::after {
  transform: rotate(90deg);
}

.lux-faq__item[open] .lux-faq__sign::after {
  transform: rotate(0deg);
}

.lux-faq__a {
  overflow: hidden;
}

.lux-faq__inner {
  padding: 0.55rem 1.25rem 1.25rem 3.85rem;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

.lux-faq__inner p {
  margin: 0 0 0.6rem;
}

.lux-faq__inner p:last-child {
  margin-bottom: 0;
}

.lux-contact {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  max-width: 50rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--lux-gold);
  outline: 1px solid color-mix(in srgb, var(--lux-gold-pale) 80%, transparent);
  outline-offset: -8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgb(253 251 246 / 0.95), rgb(245 238 224 / 0.95));
  text-align: center;
}

.lux-contact p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 2;
}

.lux-hero__lead a {
  color: #f3e4b9;
  text-underline-offset: 0.25em;
}

.lux-alert {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--lux-gold);
  border-left: 4px solid var(--lux-deep);
  border-radius: 6px;
  background: linear-gradient(90deg, rgb(216 201 167 / 0.45), rgb(253 251 246 / 0.9));
  font-size: 0.88rem;
}

.lux-alert__label {
  margin: 0;
  color: var(--lux-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lux-alert__list {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lux-alert__list a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  align-items: baseline;
  color: var(--color-text);
  text-underline-offset: 0.25em;
}

.lux-alert__date {
  color: var(--lux-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .lux-alert {
    grid-template-columns: auto 1fr;
  }
}

.lux-signin {
  display: grid;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
  outline: 1px solid color-mix(in srgb, var(--lux-gold-pale) 70%, transparent);
  outline-offset: -6px;
}

.lux-signin__title {
  margin: 0;
  color: var(--lux-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.lux-signin__text {
  margin: 0.6rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.lux-signin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lux-signin__actions .lux-btn {
  flex: 1 1 0;
  min-width: 8.5rem;
  min-height: 3rem;
  padding-inline: 1rem;
}

@media (min-width: 760px) {
  .lux-signin {
    grid-template-columns: 1fr auto;
  }
}

.lux-btn--sm {
  min-height: 2.3rem;
  padding: 0.4rem 1.25rem;
  font-size: 0.8rem;
}

.lux-judge--bar {
  justify-items: stretch;
  gap: 0.75rem 1.5rem;
  margin-top: 0;
  padding: 0.9rem 1.4rem;
}

.lux-judge--bar .lux-judge__text {
  margin: 0;
  font-size: 0.82rem;
}

.lux-judge--bar.is-answered .visitor-judge__done {
  justify-content: flex-start;
}

@media (min-width: 760px) {
  .lux-judge--bar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .lux-judge--bar .visitor-judge__done {
    grid-column: 1 / -1;
  }
}

.lux-news__kind {
  justify-self: start;
  padding: 0.1rem 0.7rem;
  border: 1px solid var(--lux-gold-pale);
  border-radius: 3px;
  background: rgb(216 201 167 / 0.25);
  color: #555;
  font-size: 0.72rem;
  white-space: nowrap;
}

.lux-news__list--kind a {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem 0.9rem;
}

.lux-news__list--kind a > span:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .lux-news__list--kind a > span:last-child {
    grid-column: auto;
  }

  .lux-news__list--kind a {
    grid-template-columns: 6.5rem 6.5rem 1fr;
    align-items: center;
  }
}

.lux-wide {
  max-width: 58rem;
}

.lux-center {
  margin: 1.75rem 0 0;
  text-align: center;
}

.lux-head__note {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.lux-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--lux-gold);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.75);
}

.lux-tabs__tab {
  padding: 0.9rem 0.5rem;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.4s var(--lux-ease), color 0.4s var(--lux-ease);
}

.lux-tabs__tab + .lux-tabs__tab {
  border-left: 1px solid var(--lux-gold-pale);
}

.lux-tabs__tab:hover {
  background: rgb(216 201 167 / 0.2);
}

.lux-tabs__tab[aria-selected="true"] {
  background: linear-gradient(160deg, var(--lux-green-light), var(--lux-deep) 70%);
  color: #fff;
  font-weight: 700;
}

.lux-faq + .lux-faq {
  margin-top: 1.25rem;
}

.lux-faq__group {
  margin: 0;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--lux-gold-pale);
  color: var(--lux-deep);
  font-size: 0.9rem;
}

.is-tabbed .lux-faq__group {
  display: none;
}

.is-tabbed .lux-faq + .lux-faq {
  margin-top: 0;
}

.is-tabbed .lux-faq:not([hidden]) {
  animation: lux-rise 0.5s var(--lux-ease);
}

.lux-steps {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.lux-steps img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.lux-phones {
  max-width: 52rem;
  margin: 2rem auto 0;
}

.lux-phones__lead {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.lux-phones__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .lux-phones__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lux-phones__card {
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--lux-gold);
  border-radius: 8px;
  background: rgb(253 251 246 / 0.92);
  text-align: center;
}

.lux-phones__kind {
  margin: 0;
  color: var(--lux-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.lux-phones__num {
  margin: 0.45rem 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.lux-phones__num a {
  color: var(--lux-deep);
  text-decoration: none;
}

.lux-phones__note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

@media (max-width: 599px) {
  .lux-tabs__tab {
    font-size: 0.75rem;
  }

  .lux-steps {
    overflow-x: auto;
  }

  .lux-steps img {
    width: 46rem;
    max-width: none;
  }

  .lux-hero__lead br,
  .lux-head__lead br,
  .lux-contact p br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .lux-hero__eyebrow,
  .js .lux-hero__title > span,
  .js .lux-hero__lead,
  .lux-notice::after,
  .is-tabbed .lux-faq:not([hidden]) {
    animation: none;
  }
}

.is-noanim .lux-hero__eyebrow,
.is-noanim .lux-hero__title > span,
.is-noanim .lux-hero__lead,
.is-noanim .lux-notice::after {
  animation: none;
}

.admin-news {
  padding: 2rem 0 2.5rem;
}

.admin-news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: end;
  margin: 1.25rem 0;
}

.admin-news-filter label,
.admin-news-form__field > label,
.admin-news-form legend {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.admin-news-filter input,
.admin-news-filter select,
.admin-news-form input[type="text"],
.admin-news-form input[type="date"],
.admin-news-form input[type="search"],
.admin-news-form textarea {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.admin-news-edit {
  padding: 2rem 0 4.5rem;
}

.admin-back {
  position: fixed;
  left: var(--gutter);
  bottom: 1rem;
  z-index: 80;
  margin: 0;
}

.admin-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 20px -12px rgb(34 34 34 / 0.35);
}

.admin-back a:hover {
  text-decoration: none;
  opacity: 0.75;
}

.admin-news-form {
  display: grid;
  gap: 1.15rem;
}

.admin-news-form__field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.admin-news-form__field--short {
  max-width: 16rem;
}

.admin-news-form__hint {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.admin-news-form fieldset {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.admin-news-form legend {
  padding: 0 0.35rem;
  font-size: 0.88rem;
}

.admin-news-form__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
}

.admin-news-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.admin-news-form textarea,
.admin-news-form input[type="text"],
.admin-news-form input[type="date"] {
  width: 100%;
}

.admin-news-form textarea {
  min-height: 16rem;
  resize: vertical;
  line-height: 1.7;
}

.admin-news-form input:focus-visible,
.admin-news-form textarea:focus-visible {
  outline: 2px solid var(--color-key);
  outline-offset: 1px;
  border-color: var(--color-key);
}

.admin-news-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
}

.staff-feed .news-list__static.admin-news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
}

.admin-news-item__body {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 14rem;
}

.admin-news-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
  margin: 0 0 0 auto;
}

.news-list__item .admin-news-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  color: inherit;
  font-size: 0.88rem;
  text-decoration: none;
}

.news-list__item .admin-news-row a:hover {
  text-decoration: none;
  opacity: 0.7;
}

.admin-news-notice,
.admin-news-errors {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: var(--color-mint-soft);
}

.admin-news-errors {
  background: var(--color-key-soft);
}

.admin-news-preview {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.admin-news-preview > h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.admin-news-preview > h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.15rem;
}

.admin-mail {
  padding: 2rem 0 2.5rem;
}

.admin-mail__title {
  margin: 2rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.admin-mail__title:first-child {
  margin-top: 0;
}

.admin-mail__dl {
  display: grid;
  gap: 0.65rem 1.5rem;
  margin: 0;
}

.admin-mail__dl > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 1rem;
}

.admin-mail__dl dt,
.admin-mail__dl dd {
  margin: 0;
}

.admin-mail__dl dt {
  color: var(--color-text-muted);
  font-weight: 700;
}

.admin-mail__form {
  margin: 0 0 2rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.admin-mail__form:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-mail__form-name {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.admin-mail__mail-title {
  margin: 1.15rem 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-mail__subject {
  margin: 0 0 0.45rem;
}

.admin-mail__pre {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.admin-mail__scroll {
  overflow-x: auto;
  margin-top: 1rem;
}

.admin-mail__table {
  width: 100%;
  min-width: 40rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-mail__table th,
.admin-mail__table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.admin-mail__table th {
  font-weight: 700;
}

.is-admin {
  --header-h: 3.25rem;
  --header-full-h: 3.25rem;
  --header-compact-h: 3.25rem;
}

.is-admin .site-header__logo img,
.is-admin .site-header__brand img {
  width: auto;
  height: 26px;
  max-height: 28px;
}

.site-header__brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 1;
  min-width: 0;
  color: var(--color-text);
}

.site-header__brand:hover {
  text-decoration: none;
  opacity: 0.75;
}

.site-header__brand img {
  width: auto;
  height: 26px;
}

.site-header__brand-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(1px);
}

@media (min-width: 960px) {
  .is-admin .site-header__inner {
    min-height: 3.5rem;
  }

  .is-admin .site-header__logo img,
  .is-admin .site-header__brand img,
  .site-header__brand img {
    height: 28px;
    max-height: 28px;
  }
}

.site-footer--admin {
  padding: 1rem 0 1.15rem;
}

.page-hero--admin {
  padding: 1.15rem 0 1.2rem;
  overflow: visible;
}

.page-hero--admin::before {
  content: none;
}

.page-hero--admin .page-hero__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.4;
}

.page-head--admin {
  padding: 1.15rem 0 1.25rem;
}

.page-head--admin .page-head__title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.admin-home {
  padding: 2rem 0 2.5rem;
}

.admin-home__list {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-home__list a {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: inherit;
}

.admin-home__list a:hover {
  text-decoration: none;
  opacity: 0.75;
}

.admin-home__name {
  font-weight: 700;
}

.admin-home__desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}
