:root {
  --navy: #0c1830;
  --navy-2: #152845;
  --navy-3: #1a2f52;
  --gold: #c1a35d;
  --gold-deep: #9a7c3c;
  --gold-soft: #e4d3a6;
  --wine: #872734;
  --ivory: #faf7f0;
  --paper: #ffffff;
  --ink: #23262d;
  --muted: #6f6a5f;
  --line: #e3ddcd;
  --sky: #e8f1f8;
  --header-offset: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #ece8df;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.mincho {
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
}

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

a {
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--wine);
  color: #fff;
  padding: 8px 14px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  background: #001529;
  color: #fff;
  position: relative;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 42px 24px 40px;
  min-height: 220px;
}

.header-host {
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.18em;
  color: #fff;
  font-weight: 600;
}

.host-name {
  display: inline-block;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(26px, 3.8vw, 48px);
  letter-spacing: 0.1em;
  line-height: 1.25;
  margin-top: 22px;
}

.hero-sub {
  margin-top: 18px;
  font-size: clamp(13px, 1.7vw, 16px);
  letter-spacing: 0.12em;
  color: #fff;
  font-weight: 500;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.16em;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: #6e1c28;
  transform: translateY(-1px);
}

.ribbon {
  background: linear-gradient(90deg, #b8944a, var(--gold-soft) 18%, #e8d6a8 50%, var(--gold-soft) 82%, #b8944a);
  color: var(--navy);
  text-align: center;
  padding: 12px 16px;
}

.ribbon-text {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 20px);
  letter-spacing: 0.18em;
}

.ribbon-en {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.72em;
  letter-spacing: 0.22em;
  font-weight: 800;
  margin-left: 8px;
}

/* ---------- Nav ---------- */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 24, 48, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(193, 163, 93, 0.35);
}

.nav-toggle {
  display: none;
}

.page-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
}

.page-nav a {
  color: #d7dde8;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  border-bottom: 2px solid transparent;
}

.page-nav a:hover,
.page-nav a.is-active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

/* ---------- Layout ---------- */
main {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--ivory);
  box-shadow: 0 18px 50px rgba(12, 24, 48, 0.12);
}

.intro {
  padding: 40px 36px 12px;
  text-align: center;
}

.intro p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  color: #43423c;
}

.mark {
  font-weight: 700;
  color: var(--wine);
  box-shadow: inset 0 -0.38em 0 rgba(135, 39, 52, 0.16);
}

.mark-lg {
  font-size: 1.18em;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
  box-shadow: none;
}

.mark-strong {
  font-weight: 800;
  color: var(--wine);
  font-size: 1.05em;
  box-shadow: inset 0 -0.22em 0 rgba(135, 39, 52, 0.32);
}

.section {
  padding: 28px 36px 12px;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  color: var(--navy);
  padding: 0;
  margin-bottom: 22px;
}

.sec-head h2 {
  flex: none;
  background: var(--navy);
  color: #fff;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 11px 22px 11px 20px;
  position: relative;
}

.sec-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}

.sec-bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.sec-en {
  flex: none;
  color: var(--gold-deep);
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
}

.section-body {
  padding-bottom: 20px;
}

.lead {
  font-size: 15px;
  color: #43423c;
  margin-bottom: 20px;
}

/* ---------- Compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: transparent;
}

.compare-col {
  padding: 0;
}

.compare-col + .compare-col {
  border-left: none;
  background: none;
}

.compare-col h3 {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0;
  padding: 10px 16px;
  background: #d8c196;
  border-bottom: none;
}

.compare-col ul {
  list-style: none;
}

.compare-col li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 12px 4px;
  border-bottom: 1px dotted #d8c196;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
}

.compare-col li:last-child {
  border-bottom: 1px dotted #d8c196;
}

.check {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #8b3a3a;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
}

.domains {
  margin-top: 18px;
  background: var(--sky);
  border: 1px solid #c9dcea;
  padding: 16px 18px 10px;
}

.domains-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.domains ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 8px 20px;
}

.domains li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
}

.domains li span {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
  font-size: 13px;
}

.book-gift {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 0;
  align-items: stretch;
  margin-top: 22px;
  background: #fff;
  border: 1px solid #cfc8b8;
}

.book-gift-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
}

.book-gift-text p {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.8;
}

.book-gift-text .book-gift-title {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--gold);
  font-family: "Shippori Mincho B1", "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.book-gift-fig {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fff;
  border-right: 1px solid #cfc8b8;
}

.book-gift-fig img {
  width: auto;
  max-width: calc(100% - 8px);
  max-height: 220px;
  height: auto;
  display: block;
  margin: 12px;
  box-shadow: 0 6px 16px rgba(12, 24, 48, 0.28);
}

/* ---------- Curriculum cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, #152845, var(--navy));
  color: #fff;
  padding: 22px 20px 20px;
  position: relative;
  overflow: hidden;
  min-height: 210px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(12, 24, 48, 0.28);
}

.card-kind {
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  font-weight: 700;
}

.card-hours {
  font-weight: 800;
  font-size: 42px;
  margin: 8px 0 12px;
  line-height: 1;
}

.card-hours span {
  font-size: 15px;
  font-weight: 600;
  margin-left: 4px;
  color: #cdd6e4;
}

.card-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #d7dde8;
}

.total {
  margin-top: 28px;
  text-align: center;
  background: linear-gradient(180deg, #fffdf6, #f4ead0);
  border: 2px solid var(--gold);
  padding: 22px 16px 20px;
}

.total-hours {
  display: block;
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--navy);
  line-height: 1.2;
}

.total-hours em {
  font-style: normal;
  color: var(--wine);
  font-size: 1.2em;
  box-shadow: inset 0 -0.14em 0 rgba(135, 39, 52, 0.28);
}

.total-note {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.syllabus-wrap {
  text-align: center;
  margin-top: 22px;
}

.syllabus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 18px);
  letter-spacing: 0.12em;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, transform 0.2s ease;
}

.syllabus-btn:hover {
  background: #6e1c28;
  transform: translateY(-1px);
}

/* ---------- Guidelines ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gold);
  background: #fff;
}

.guide-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  min-height: 88px;
}

.guide-item:nth-child(2n) {
  border-right: none;
}

.guide-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.guide-label {
  flex: none;
  display: inline-block;
  background: var(--gold-deep);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.16em;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 0;
  font-weight: 700;
  min-width: 5.6em;
  text-align: center;
}

.guide-item p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy);
}

.guide-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.date-cont {
  display: inline-block;
  padding-left: 2.5em;
}

.guide-item--periods,
.guide-item--wide {
  grid-column: 1 / -1;
  border-right: none;
  border-top: 1px solid var(--gold);
}

.guide-item:nth-child(-n + 2) {
  border-bottom: none;
}

.guide-item p.guide-periods {
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 1.55;
}

.guide-periods span {
  white-space: nowrap;
}

.sp-br {
  display: none;
}

.fee {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.fee span {
  display: inline;
}

.fee span + span::before {
  content: "／";
  margin: 0 0.35em;
}

/* ---------- Contact ---------- */
.open-date {
  text-align: center;
  color: var(--wine);
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

#contact .section-body {
  padding-bottom: 72px;
}

.apply-lead,
.apply-done {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
  line-height: 1.8;
}

.apply-done {
  color: var(--wine);
  font-size: clamp(20px, 3vw, 28px);
}

.apply-errors {
  list-style: none;
  background: #f8ecec;
  border: 1px solid #e2b8b8;
  color: var(--wine);
  padding: 14px 18px;
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 14px;
}

.apply-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: left;
}

.apply-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.apply-row {
  display: grid;
  gap: 8px;
}

.apply-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.apply-label span,
.apply-check span {
  display: inline-block;
  margin-left: 8px;
  background: var(--wine);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: 1px;
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  border-radius: 2px;
}

.apply-form textarea {
  resize: vertical;
  min-height: 110px;
}

.apply-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.apply-sessions {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.apply-sessions .apply-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 16px;
}

.apply-label-note {
  margin-left: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.apply-radios,
.apply-check {
  display: grid;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
}

.apply-radios label,
.apply-check {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  line-height: 1.7;
  text-align: left;
}

.apply-radios input[type="radio"],
.apply-check input[type="checkbox"] {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin: 0.325em 0 0;
  padding: 0;
  accent-color: var(--navy);
}

.apply-radios label.is-disabled {
  color: var(--muted);
  font-weight: 500;
}

.apply-radios label.is-disabled input {
  opacity: 0.45;
}

.apply-full-note {
  color: #c41212;
  font-weight: 700;
  margin-left: 0.4em;
}

.apply-note {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.apply-note a {
  color: var(--wine);
  font-weight: 700;
}

.apply-hospital-wrap {
  position: relative;
}

.apply-hospital-suggest {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(20, 32, 56, 0.12);
  max-height: 240px;
  overflow: auto;
}

.apply-hospital-suggest button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
}

.apply-hospital-suggest button:hover,
.apply-hospital-suggest button.is-active {
  background: #f4f6f9;
}

.apply-hospital-suggest small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.apply-hospital-status {
  min-height: 1.4em;
  font-size: 13px;
  font-weight: 700;
}

.apply-hospital-status.is-member {
  color: #1c6b3a;
}

.apply-hospital-status.is-guest {
  color: var(--wine);
}

.apply-hospital-status.is-wait {
  color: var(--muted);
  font-weight: 500;
}

.apply-radios--member.is-locked {
  pointer-events: none;
}

.apply-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.apply-btn {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--wine);
  color: #fff;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 12px 28px;
  cursor: pointer;
}

.apply-btn:hover {
  background: #6e1c28;
}

.apply-btn--ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

.apply-confirm {
  max-width: 720px;
  margin: 0 auto 24px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.apply-confirm > div {
  display: grid;
  grid-template-columns: 10.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.apply-confirm dt {
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
}

.apply-confirm dd {
  font-weight: 700;
}

.cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--wine);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 12px 22px;
  border: 1px solid rgba(228, 211, 166, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: #6e1c28;
  transform: translateY(-1px);
}

/* ---------- Rationale ---------- */
.excerpt {
  background: #f0f2f5;
  border: 1px solid #cfd3d9;
  padding: 0 22px 18px;
  margin: 4px 0 18px;
  text-align: left;
}

.excerpt-label {
  display: inline-block;
  background: #1a233a;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 8px 16px;
  margin: 0 0 14px -22px;
}

.excerpt p {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  text-align: left;
  line-height: 1.85;
}

.excerpt p.excerpt-label {
  color: #fff;
}

.excerpt-row {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  column-gap: 0.5em;
  margin: 0 0 6px;
  align-items: start;
}

.excerpt-mark {
  text-align: left;
  white-space: nowrap;
}

.excerpt-items {
  margin-top: 4px;
  margin-left: calc(3.2em + 0.5em);
  padding-left: 0;
  font-weight: 700;
  line-height: 1.9;
}

.cert-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: clamp(15px, 2vw, 18px);
  padding: 14px 16px;
  position: relative;
}

.cert-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--gold);
}

.cert-accent {
  color: #D8C196;
}

/* ---------- Competencies ---------- */
.caps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 0 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 22px 10px;
}

.caps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.caps li:nth-child(4),
.caps li:nth-child(8) {
  border-bottom: none;
}

.cap-no {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}

.caps h3 {
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.caps p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 4px;
}

/* ---------- Flow ---------- */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow li {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 16px 18px;
  position: relative;
  text-align: left;
  display: grid;
  grid-template-rows: auto 3.6em auto 1fr;
  align-items: start;
}

.flow li:not(:last-child)::after {
  content: "▶";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-deep);
  font-size: 12px;
  z-index: 1;
}

.flow-num {
  display: block;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  line-height: 1;
}

.flow h3 {
  margin-top: 10px;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.06em;
  line-height: 1.4;
  min-height: 0;
}

.flow h3 span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.flow-hours {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  display: inline-block;
  background: var(--wine);
  border: 1px solid var(--wine);
  border-radius: 999px;
  padding: 5px 12px 6px;
  justify-self: start;
  max-width: 100%;
  box-sizing: border-box;
}

.flow-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.qr-box {
  text-align: center;
  justify-self: end;
}

.qr-caption {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
}

.qr-box img {
  width: 168px;
  height: 168px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(150deg, #081426, var(--navy) 60%, #16294a);
  color: #fff;
  text-align: center;
  padding: 28px 16px 32px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-message {
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-contact {
  max-width: 560px;
  margin: 22px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(193, 163, 93, 0.35);
  text-align: left;
}

.footer-contact .org {
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 14px;
  line-height: 1.7;
}

.contact-list {
  list-style: none;
  font-size: 14px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
  color: #d7dde8;
}

.contact-list .ico {
  color: var(--gold-soft);
  margin-top: 3px;
  flex: none;
}

.contact-list a {
  color: #fff;
  font-weight: 500;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  background: #0c1830;
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(12, 24, 48, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.to-top:hover {
  background: var(--navy-2);
  color: #fff;
}

body.nav-open .to-top {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .card {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    padding: 52px 16px 32px;
    min-height: 0;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 40px;
    height: 40px;
    place-content: center;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 40;
    background: #001529;
    border: 1px solid rgba(193, 163, 93, 0.55);
    color: var(--gold-soft);
    cursor: pointer;
    padding: 0;
  }

  .nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .page-nav {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 12, 28, 0.48);
    border: none;
    z-index: 35;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .page-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .page-nav-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    position: absolute;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100%;
    padding: 64px 0 24px;
    background: #0c1830;
    border-left: 1px solid rgba(193, 163, 93, 0.35);
    box-shadow: -12px 0 28px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  .page-nav.is-open .page-nav-inner {
    transform: translateX(0);
  }

  .page-nav a {
    white-space: nowrap;
    padding: 14px 22px;
    font-size: 15px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .page-nav a.is-active,
  .page-nav a:hover {
    border-bottom-color: transparent;
    border-left-color: var(--gold);
    background: rgba(193, 163, 93, 0.08);
  }

  .to-top {
    right: 14px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  .sp-br {
    display: block;
  }

  .intro,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .compare,
  .cards,
  .guide-grid,
  .contact-wrap,
  .domains ol,
  .caps,
  .flow {
    grid-template-columns: 1fr;
  }

  .domains ol {
    grid-auto-flow: row;
    grid-template-rows: none;
  }

  .caps {
    grid-auto-flow: row;
    grid-template-rows: none;
  }

  .caps li:nth-child(4),
  .caps li:nth-child(8) {
    border-bottom: 1px solid var(--line);
  }

  .caps li:last-child {
    border-bottom: none;
  }

  .flow li:not(:last-child)::after {
    content: "▼";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -14px;
    transform: translateX(-50%);
  }

  .sec-en {
    display: none;
  }

  .compare-col + .compare-col {
    border-left: none;
    border-top: none;
    margin-top: 8px;
  }

  .guide-item,
  .guide-item:nth-child(2n) {
    border-right: none;
  }

  .guide-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .guide-item:last-child {
    border-bottom: none;
  }

  .guide-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--gold);
  }

  .guide-item--periods,
  .guide-item--wide {
    border-top: none;
  }

  .guide-item--periods {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .guide-item p.guide-periods {
    font-size: 12px;
  }

  .fee {
    display: grid;
    gap: 2px;
    white-space: normal;
  }

  .fee span {
    display: block;
  }

  .fee span + span::before {
    content: none;
    margin: 0;
  }

  .qr-box {
    justify-self: center;
  }

  .apply-pair,
  .apply-confirm > div {
    grid-template-columns: 1fr;
  }

  .apply-actions {
    flex-direction: column;
  }
}
