:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #667085;
  --blue: #3f7df6;
  --blue-soft: #eaf1ff;
  --blue-border: #b9cdfb;
  --green: #18a058;
  --green-soft: #e9f8ef;
  --red: #e25353;
  --red-soft: #fff0f2;
  --yellow: #fff5cc;
  --line: #e6eaf2;
  --shadow: 0 10px 28px rgba(40, 70, 120, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

.page {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px 48px;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 28px;
  text-align: center;
}

.logo {
  width: min(74vw, 420px);
  margin: 0 auto;
  display: block;
}

.overseas-logo {
  filter: brightness(0) saturate(100%) invert(53%) sepia(92%) saturate(4161%) hue-rotate(206deg) brightness(99%) contrast(95%);
}

.illust {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 28px;
}

.sample-image {
  width: 100%;
  max-width: 100%;
  margin: 18px auto 0;
  display: block;
  border-radius: 20px;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 1.18;
  letter-spacing: .02em;
  color: var(--blue);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 7vw, 3.2rem);
  line-height: 1.2;
  color: var(--blue);
  margin-bottom: 20px;
  font-weight: 800;
}

h3 {
  font-size: clamp(1.15rem, 4.4vw, 1.55rem);
  line-height: 1.4;
  color: #444444;
  font-weight: 800;
}

.inline-status-icon,
.example-status-icon {
  display: inline-block;
  object-fit: contain;
}

.inline-status-icon {
  width: 1.12em;
  height: 1.12em;
  margin-left: .28em;
  vertical-align: -0.16em;
}

.leading-status-icon {
  margin-left: 0;
  margin-right: .28em;
}

.example-status-icon {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 4.4vw, 1.35rem);
  line-height: 1.75;
  max-width: 34em;
  margin: 0 auto;
}

.section {
  padding: 52px 0;
  border-top: 1px solid rgba(230,234,242,.9);
  scroll-margin-top: 18px;
}

.section:first-of-type {
  border-top: 0;
}

.section > h2 {
  text-align: center;
}

.heading-icon {
  display: block;
  width: auto;
  height: 35px;
  max-width: min(72vw, 132px);
  margin: 0 auto 16px;
  object-fit: contain;
}

.card {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 5vw, 28px);
}

.card.toc-link {
  display: block;
  color: #fff;
  background: linear-gradient(180deg, #4f8dff 0%, #3474f3 100%);
  border-color: rgba(45, 102, 224, 0.55);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.toc-link .text,
.toc-link h3 {
  color: #fff;
}

.toc-heading {
  position: relative;
  text-align: center;
}

.toc-heading h3 {
  display: inline-block;
  position: relative;
}

.toc-icon {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 1.55rem;
  height: 1.55rem;
  margin-right: 10px;
  transform: translateY(-50%);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.card.toc-link:active {
  transform: translateY(1px);
}

.back-button-wrap {
  padding: 34px 0 8px;
  text-align: center;
}

.back-button {
  display: inline-block;
  color: #007aff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.back-button:hover {
  text-decoration: underline;
}

.back-button:active {
  opacity: 0.75;
}

.info-card {
  background: var(--blue-soft);
  border-color: var(--blue-border);
}

.ok-card {
  background: var(--green-soft);
  border-color: #afe8c6;
}

.warn-card {
  background: var(--yellow);
  border-color: #ffe28a;
}

.grid {
  display: grid;
  gap: 14px;
}

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

@media (max-width: 680px) {
  .two {
    grid-template-columns: 1fr;
  }
}

.text {
  font-size: clamp(1rem, 4.2vw, 1.22rem);
  color: #374151;
}

.text strong {
  color: #111827;
}

.mini {
  color: var(--muted);
  font-size: clamp(.94rem, 3.8vw, 1.08rem);
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  margin-right: 10px;
}

.search-box {
  border: 2px solid var(--blue-border);
  border-radius: 18px;
  padding: 15px 18px;
  background: white;
  font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  font-weight: 800;
  color: #24324a;
}

.memo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  font-size: clamp(1.03rem, 4.3vw, 1.28rem);
}

.arrow {
  color: var(--blue);
  font-weight: 900;
  font-size: 1.35em;
  line-height: 1.25;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 680px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.bad {
  background: var(--red-soft);
  border-color: #ffc8cf;
}

.good {
  background: var(--green-soft);
  border-color: #afe8c6;
}

.example-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.icon {
  font-size: 1.45rem;
  line-height: 1;
}

.usage-hint-title {
  text-align: center;
}

.usage-hint-icon {
  display: block;
  width: 1.74rem;
  height: 1.74rem;
  margin: 0 auto 12px;
  object-fit: contain;
}

.final-hint-icon {
  filter: brightness(0) saturate(100%) invert(25%) sepia(0%) saturate(0%) hue-rotate(203deg) brightness(95%) contrast(88%);
}

.list {
  margin: 12px 0 0;
  padding-left: 1.4em;
  font-size: clamp(1rem, 4.2vw, 1.2rem);
}

.list li {
  margin: 6px 0;
}

.tip-list {
  display: grid;
  gap: 14px;
}

.tip {
  display: grid;
  gap: 6px;
  border-left: 7px solid var(--blue-border);
  background: white;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(40, 70, 120, 0.06);
}

.flow {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.footer {
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  padding: 26px 0 10px;
}

@media print {
  body {
    background: white;
  }
  .page {
    max-width: 100%;
    padding: 24mm 18mm;
  }
  .hero, .section {
    page-break-after: always;
    min-height: auto;
  }
  .section {
    border-top: 0;
  }
  .card {
    box-shadow: none;
  }
}
