:root {
  --sky-top: #7ec8ff;
  --sky-mid: #c8e7ff;
  --sky-bottom: #f7fbff;
  --gold: #d4a017;
  --gold-deep: #a67c00;
  --blue: #1a5f9e;
  --blue-deep: #0d3b66;
  --ink: #142033;
  --muted: #44566e;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.95);
  --shadow: 0 12px 40px rgba(13, 59, 102, 0.12);
  --focus: #0b6bcb;
  --max: 46rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 28%, var(--sky-bottom) 70%, #ffffff 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
label:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 255, 0.88);
  border-bottom: 1px solid rgba(26, 95, 158, 0.12);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(100% - 2rem, 56rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.18);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.nav a {
  color: var(--blue-deep);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--gold-deep);
  text-decoration: underline;
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.privacy-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 95, 158, 0.18);
  font-size: 0.88rem;
  font-weight: 700;
}

.privacy-langs a {
  color: var(--blue-deep);
  text-decoration: none;
}

.privacy-langs a[aria-current="page"] {
  color: var(--gold-deep);
  text-decoration: underline;
}

.lang-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lang-switch label {
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 95, 158, 0.25);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

#lang-ja:checked ~ .site-header .lang-switch label[for="lang-ja"],
#lang-en:checked ~ .site-header .lang-switch label[for="lang-en"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.en {
  display: none;
}

#lang-en:checked ~ main .en,
#lang-en:checked ~ .site-footer .en {
  display: block;
}

#lang-en:checked ~ main .ja,
#lang-en:checked ~ .site-footer .ja {
  display: none;
}

#lang-en:checked ~ main .en-inline,
#lang-en:checked ~ .site-footer .en-inline {
  display: inline;
}

#lang-en:checked ~ main .ja-inline,
#lang-en:checked ~ .site-footer .ja-inline {
  display: none;
}

.ja-inline {
  display: inline;
}

.en-inline {
  display: none;
}

main {
  padding: 1.5rem 0 3rem;
}

main > .wrap:first-child {
  padding-top: 0.5rem;
}

.hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.hero-card,
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.5rem;
}

.hero-visual {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, #6eb8ff 0%, #c8e7ff 40%, #fff6d6 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 22rem;
  margin-inline: auto;
  width: 100%;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 40rem);
  object-fit: contain;
  object-position: center top;
}

@media (min-width: 800px) {
  .hero-visual {
    max-width: none;
    margin-inline: 0;
  }
}

h1,
h2,
h3 {
  line-height: 1.25;
  color: var(--blue-deep);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(26, 95, 158, 0.12);
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.2rem;
}

p,
li {
  color: var(--ink);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.14);
  color: var(--gold-deep);
  font-size: 0.82rem;
  font-weight: 750;
}

.grid-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

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

.grid-links a {
  display: block;
  text-decoration: none;
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 95, 158, 0.14);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(13, 59, 102, 0.08);
  font-weight: 750;
}

.grid-links a span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.steps li {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 3.1rem;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0.9rem;
  border: 1px solid rgba(26, 95, 158, 0.1);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.note,
.callout {
  background: rgba(255, 248, 220, 0.85);
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  margin: 1rem 0;
}

.site-footer {
  margin-top: auto;
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid rgba(26, 95, 158, 0.12);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.75rem 0 1rem;
}

.trademark {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.meta-date {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-box {
  font-size: 1.15rem;
  font-weight: 750;
}

ul.compact > li {
  margin-bottom: 0.35rem;
}

@media (max-width: 360px) {
  .header-inner,
  .footer-inner,
  .wrap {
    width: min(100% - 1.25rem, 56rem);
  }

  .nav {
    font-size: 0.85rem;
  }
}
