:root {
  --ink: #111111;
  --paper: #ffffff;
  --line: #d9d9d4;
  --red: #ff6f73;
  --blue: #62aef5;
  --green: #66d19e;
  --yellow: #f6ca52;
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgb(17 17 17 / 4%) 50%, transparent calc(50% + 1px)), var(--paper);
}

a { color: inherit; }

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand img { border-radius: 12px; }
.brand-mark { color: var(--red); }

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

nav a[aria-current="page"], nav a:hover { border-color: var(--red); }

.portal-hero, .hero {
  padding: 72px 0 64px;
}

.portal-hero { max-width: 780px; }

.hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  margin: 0 0 12px;
  font: 800 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.9;
}

.hero-icon {
  width: clamp(132px, 18vw, 200px);
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 30%;
  box-shadow: 18px 18px 0 var(--yellow);
}

.app-list { padding: 8px 0 88px; }

.app-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--yellow);
  text-decoration: none;
}

.app-card img { border-radius: 24px; }
.app-card strong, .app-card small { display: block; }
.app-card strong { margin-bottom: 8px; font-size: 24px; }
.app-card small { color: #4e4e4a; font-size: 15px; }
.app-card .arrow { font-size: 28px; font-weight: 800; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px 0 72px;
}

.info-card {
  min-height: 290px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--line);
}

.card-number {
  display: inline-block;
  margin-bottom: 34px;
  font: 900 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.red-card .card-number { color: var(--red); }
.blue-card .card-number { color: var(--blue); }
.green-card .card-number { color: var(--green); }

.info-card h2, .contact-panel h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.info-card p, .contact-panel p {
  margin-bottom: 0;
  line-height: 1.85;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  padding: 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.contact-panel p {
  max-width: 680px;
  color: #d7d7d2;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary-link:hover { transform: translateY(-2px); }

footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

footer a { font-weight: 700; }

.policy {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 72px 0 84px;
}

.policy-heading {
  padding-bottom: 48px;
  border-bottom: 2px solid var(--ink);
}

.policy-heading h1 { font-size: clamp(42px, 7vw, 68px); }
.policy section { padding: 36px 0 12px; }
.policy section h2 { margin-bottom: 16px; font-size: 23px; }
.policy section p { line-height: 1.95; }

.policy hr {
  margin: 52px 0 10px;
  border: 0;
  border-top: 2px solid var(--ink);
}

.english-policy { color: #30302e; }

.text-link {
  display: inline;
  margin-inline: 4px;
  color: #075aa6;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  main { width: min(100% - 28px, 620px); }
  .site-header { min-height: 74px; }
  .brand span:not(.brand-mark) { display: none; }
  nav { gap: 16px; }
  .portal-hero, .hero { padding: 54px 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 36px; }
  .hero-icon { grid-row: 1; width: 118px; box-shadow: 10px 10px 0 var(--yellow); }
  .card-grid { grid-template-columns: 1fr; padding-bottom: 54px; }
  .info-card { min-height: 0; }
  .contact-panel { grid-template-columns: 1fr; padding: 30px; }
  .primary-link { justify-content: center; }
  .policy { padding-top: 54px; }
  .app-card { grid-template-columns: auto 1fr; }
  .app-card .arrow { display: none; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

