:root {
  --blue-900: #123b66;
  --blue-800: #174f86;
  --blue-700: #1769aa;
  --blue-600: #1f7ac2;
  --blue-100: #eaf5fd;
  --blue-50: #f5faff;
  --ink: #17324d;
  --text: #40566c;
  --muted: #52687d;
  --line: #dbe7f0;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --green: #0f6b56;
  --green-soft: #e9f8f3;
  --yellow: #aa6810;
  --yellow-soft: #fff8e8;
  --red: #c23c4b;
  --shadow-sm: 0 8px 24px rgba(27, 73, 113, 0.08);
  --shadow-md: 0 20px 50px rgba(27, 73, 113, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

a {
  color: var(--blue-700);
}

img,
svg {
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow-container {
  width: min(calc(100% - 40px), 850px);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--blue-900);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 231, 240, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue-900);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-800));
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(31, 122, 194, 0.22);
}

.brand-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--blue-700);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 104px;
  background:
    radial-gradient(circle at 84% 20%, rgba(101, 190, 235, 0.18) 0, rgba(101, 190, 235, 0) 28%),
    linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -190px;
  width: 450px;
  height: 450px;
  border: 70px solid rgba(31, 122, 194, 0.035);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 70px;
}

.eyebrow,
.step-label,
.section-label {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.eyebrow span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 0.72rem;
}

.hero h1 {
  margin: 22px 0;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 3.65rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-color: rgba(31, 122, 194, 0.22);
  text-decoration-thickness: 10px;
  text-underline-offset: -3px;
  text-decoration-skip-ink: none;
}

.hero-description {
  max-width: 590px;
  margin: 0 0 32px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:focus-visible,
.guide-card:focus-visible,
.candidate-link:focus-visible,
.back-link:focus-visible {
  outline: 3px solid rgba(31, 122, 194, 0.3);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 12px 25px rgba(23, 105, 170, 0.24);
}

.button-primary:hover {
  background: linear-gradient(135deg, #2188d5, #175b95);
  box-shadow: 0 16px 30px rgba(23, 105, 170, 0.28);
}

.button-large {
  min-width: 230px;
  min-height: 60px;
  font-size: 1.05rem;
}

.button-note {
  margin: 10px 0 0 26px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  background: linear-gradient(145deg, #dceffc, #f3faff);
  border-radius: 50%;
}

.mail-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e1ebf3;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
}

.mail-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mail-dot {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #e4f2fb, #c9e6f7);
  border-radius: 50%;
}

.mail-line {
  width: 100%;
  height: 10px;
  display: block;
  margin: 12px 0;
  background: #e9f0f5;
  border-radius: 999px;
}

.mail-line-short {
  width: 36%;
  margin: 0;
  background: #d7e5ef;
}

.mail-line-medium {
  width: 70%;
}

.found-link {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding: 15px 16px;
  color: var(--blue-800);
  background: var(--blue-100);
  border: 1px solid #c8e3f6;
  border-radius: 13px;
}

.found-link strong,
.found-link span {
  display: block;
}

.found-link strong {
  font-size: 0.88rem;
}

.found-link span {
  color: var(--blue-600);
  font-size: 0.72rem;
}

.found-icon {
  width: 31px;
  height: 31px;
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  color: #fff !important;
  background: var(--green);
  border-radius: 50%;
  font-size: 0.9rem !important;
  font-weight: 800;
}

.visual-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  font-weight: 800;
}

.visual-badge-lock {
  top: 18px;
  right: -2px;
}

.visual-badge-check {
  bottom: 20px;
  left: -12px;
}

.visual-badge-check span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 0.68rem;
}

.trust-section,
.how-section,
.guides-section {
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.section-heading p:last-child {
  margin: 0;
}

.compact-heading {
  margin-bottom: 35px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-card {
  padding: 28px 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 7px 20px rgba(27, 73, 113, 0.05);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 13px;
}

.icon-box svg,
.local-note svg,
.search-button svg,
.how-icon svg,
.service-mark-ec svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.diagnosis-section {
  padding: 95px 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
    repeating-linear-gradient(135deg, rgba(31, 122, 194, 0.035) 0 1px, transparent 1px 20px),
    var(--blue-50);
}

.step-label {
  display: inline-block;
  padding: 5px 11px;
  background: var(--blue-100);
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.diagnosis-card {
  padding: 34px;
  background: #fff;
  border: 1px solid #d9e6ef;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--blue-700);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
}

.step-heading h3 {
  margin: 1px 0 2px;
  color: var(--ink);
  font-size: 1.04rem;
}

.step-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

#emailBody {
  width: 100%;
  min-height: 245px;
  padding: 19px;
  resize: vertical;
  color: var(--ink);
  background: #fbfdff;
  border: 1.5px solid #cddce8;
  border-radius: 13px;
  outline: none;
  line-height: 1.65;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#emailBody::placeholder {
  color: #8a9bab;
}

#emailBody:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(31, 122, 194, 0.11);
}

.local-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 28px;
  color: var(--green);
  font-size: 0.8rem;
}

.local-note span {
  margin-top: 2px;
}

.local-note svg {
  width: 18px;
}

.local-note p {
  margin: 0;
}

.input-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.eml-upload {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 18px;
  margin-top: 16px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1.5px dashed #b8d3e6;
  border-radius: 13px;
  transition: background 160ms ease, border-color 160ms ease;
}

.eml-upload.is-dragging {
  background: var(--blue-100);
  border-color: var(--blue-600);
}

.eml-upload-copy strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.eml-upload-copy p,
.eml-status {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.eml-select-button {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.78rem;
  cursor: pointer;
}

.eml-status {
  grid-column: 1 / -1;
  margin: 0;
}

.eml-status-success {
  color: var(--green);
  font-weight: 800;
}

.eml-status-error {
  color: var(--red);
  font-weight: 800;
}

.input-tool-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-button {
  padding: 6px 10px;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid #bfd7e8;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  background: var(--blue-50);
  border-color: var(--blue-600);
}

.text-button-danger {
  color: #9b3945;
  border-color: #e6c6ca;
}

.sensitive-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -12px 0 28px;
  padding: 13px 15px;
  color: #76591c;
  background: var(--yellow-soft);
  border: 1px solid #efdfa9;
  border-radius: 11px;
  font-size: 0.79rem;
}

.sensitive-note p {
  margin: 0;
}

.sensitive-note-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.second-step {
  margin-top: 4px;
}

.search-button {
  width: 100%;
  min-height: 59px;
  margin-top: 4px;
  font-size: 1.03rem;
}

.search-button svg {
  width: 22px;
}

.results {
  margin-top: 26px;
  scroll-margin-top: 95px;
}

.result-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.result-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
}

.result-status-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
}

.result-status-icon.no-link {
  background: var(--yellow);
}

.result-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
}

.result-header h3:focus {
  outline: none;
}

.result-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.result-body {
  padding: 28px;
}

.candidate-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.candidate-item {
  padding: 17px;
  background: var(--blue-50);
  border: 1px solid #d4e7f5;
  border-radius: 13px;
}

.candidate-item-caution {
  background: #fffaf0;
  border-color: #ebd99e;
}

.candidate-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 9px;
}

.candidate-label {
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 800;
}

.candidate-priority {
  padding: 2px 8px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.candidate-warning-badge {
  padding: 2px 8px;
  color: #875d0a;
  background: #fff0bd;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.candidate-header-badge {
  padding: 2px 8px;
  color: #6550a3;
  background: #f0ecff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.candidate-reference-badge {
  padding: 2px 8px;
  color: #0f6e62;
  background: #e1f5f1;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.candidate-domain {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.candidate-url {
  display: block;
  margin: 4px 0 13px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.candidate-reason {
  margin: -3px 0 13px;
  color: #3f5f76;
  font-size: 0.78rem;
  line-height: 1.65;
}

.candidate-reason strong {
  color: var(--ink);
}

.candidate-link {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 13px;
  color: #fff;
  background: var(--blue-700);
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.candidate-link:hover {
  background: var(--blue-800);
}

.url-warning-list {
  margin: 0 0 13px;
  padding: 10px 12px 10px 30px;
  color: #76591c;
  background: rgba(255, 240, 189, 0.55);
  border-radius: 9px;
  font-size: 0.77rem;
}

.url-warning-list li + li {
  margin-top: 3px;
}

.other-urls {
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.other-urls summary {
  padding: 13px 16px;
  color: var(--blue-800);
  background: var(--surface-soft);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.other-urls[open] summary {
  border-bottom: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
}

.other-urls .candidate-list {
  margin: 0;
  padding: 15px;
}

.result-caution,
.no-result-message,
.gmail-help,
.related-guides,
.service-result,
.sender-check,
.official-site-help {
  margin-top: 20px;
  padding: 18px;
  border-radius: 13px;
}

.eml-header-notice {
  margin-bottom: 20px;
  padding: 18px;
  color: #55418f;
  background: #f5f2ff;
  border: 1px solid #d9d0f8;
  border-radius: 13px;
}

.eml-header-notice h4 {
  margin: 0 0 8px;
  color: #49357e;
  font-size: 0.96rem;
}

.eml-header-notice p {
  margin: 0;
  font-size: 0.83rem;
}

.eml-header-notice .one-click-note {
  margin-top: 8px;
  font-weight: 800;
}

.sender-check {
  margin-top: 0;
  margin-bottom: 20px;
  color: #315267;
  background: #f4f9fc;
  border: 1px solid #cedfea;
}

.sender-check h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.96rem;
}

.sender-check p {
  margin: 0;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.sender-check p + p {
  margin-top: 5px;
}

.sender-check .sender-check-warning {
  margin-top: 10px;
  padding: 9px 11px;
  color: #76591c;
  background: var(--yellow-soft);
  border-radius: 8px;
  font-weight: 700;
}

.result-caution {
  color: #735416;
  background: var(--yellow-soft);
  border: 1px solid #f1dfa9;
  font-size: 0.84rem;
}

.result-caution strong {
  color: #6c4b08;
}

.no-result-message {
  margin-top: 0;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.no-result-message p {
  margin: 0;
}

.gmail-help {
  background: #fff;
  border: 1px solid var(--line);
}

.gmail-help h4,
.related-guides h4,
.service-result h4,
.official-site-help h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.96rem;
}

.gmail-help ol,
.official-site-help ol {
  margin: 0;
  padding-left: 1.4em;
  font-size: 0.86rem;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.service-result {
  margin-top: 0;
  color: var(--blue-900);
  background: var(--blue-100);
  border: 1px solid #c9e2f3;
}

.service-result p,
.official-site-help p {
  margin: 0;
  font-size: 0.85rem;
}

.official-site-help {
  background: #fff;
  border: 1px solid var(--line);
}

.official-site-help ol {
  margin-top: 10px;
}

.related-guides {
  background: var(--blue-50);
  border: 1px solid #d4e7f5;
}

.result-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.result-guide-links a {
  padding: 8px 12px;
  color: var(--blue-800);
  background: #fff;
  border: 1px solid #c9dfef;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.result-guide-links a:hover {
  border-color: var(--blue-600);
}

.result-actions {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.button-secondary {
  color: var(--blue-800);
  background: #fff;
  border: 1px solid #b9d3e6;
}

.button-secondary:hover {
  background: var(--blue-50);
}

.how-section {
  background: #fff;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-grid li {
  position: relative;
  text-align: center;
}

.how-grid li:not(:last-child)::after {
  content: "·····";
  position: absolute;
  top: 40px;
  right: -32px;
  color: #c9dce9;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
}

.how-number {
  position: absolute;
  top: -7px;
  left: calc(50% - 50px);
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-700);
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.how-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 19px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 25px;
  transform: rotate(3deg);
}

.how-icon svg {
  width: 35px;
  transform: rotate(-3deg);
}

.how-grid h3 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.02rem;
}

.how-grid p {
  max-width: 270px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
}

.guides-section {
  background: var(--surface-soft);
}

.section-heading-left {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  text-align: left;
}

.section-heading-left h2 {
  margin-bottom: 0;
}

.section-heading-left > p {
  max-width: 440px;
  text-align: right;
  font-size: 0.9rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 5px 15px rgba(27, 73, 113, 0.04);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: #b8d3e7;
  box-shadow: var(--shadow-sm);
}

.service-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  border-radius: 13px;
  font-size: 1.15rem;
  font-weight: 900;
}

.service-mark-rakuten {
  background: #bf2635;
}

.service-mark-recruit {
  background: #1975c6;
}

.service-mark-yahoo {
  background: #d72c35;
}

.service-mark-ec {
  color: #306282;
  background: #deedf6;
}

.service-mark-amazon {
  color: #172333;
  background: #ffb347;
}

.service-mark-zozo {
  background: #232323;
}

.service-mark-line {
  background: #06c755;
}

.service-mark-docomo {
  background: #cc0033;
}

.guide-card-copy {
  min-width: 0;
  display: block;
}

.guide-card-copy strong,
.guide-card-copy small {
  display: block;
}

.guide-card-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

.guide-card-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.card-arrow {
  margin-left: auto;
  color: var(--blue-600);
  font-size: 1.25rem;
}

.safety-banner {
  padding: 38px 0;
  color: #715214;
  background: var(--yellow-soft);
  border-top: 1px solid #f0dfa9;
  border-bottom: 1px solid #f0dfa9;
}

.safety-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.safety-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--yellow);
  border-radius: 50%;
  font-weight: 900;
}

.safety-banner h2 {
  margin: 0 0 5px;
  color: #684807;
  font-size: 1.05rem;
}

.safety-banner p {
  margin: 0;
  font-size: 0.86rem;
}

.faq-section {
  padding: 88px 0;
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.faq-list summary {
  padding: 17px 20px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.88rem;
}

.link-dialog {
  width: min(calc(100% - 28px), 620px);
  max-height: calc(100vh - 28px);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.link-dialog::backdrop {
  background: rgba(13, 34, 53, 0.68);
  backdrop-filter: blur(3px);
}

.link-dialog-card {
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 28px);
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.dialog-label {
  margin: 0 0 4px;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 800;
}

.link-dialog h2 {
  margin: 0 45px 20px 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.45;
}

.dialog-domain {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.dialog-url {
  display: block;
  max-height: 130px;
  overflow: auto;
  padding: 12px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.76rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dialog-reveal-button {
  margin-top: 8px;
  padding: 0;
  color: var(--blue-700);
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dialog-reference {
  margin: 13px 0 0;
  padding: 10px 12px;
  color: #0f6e62;
  background: #e8f7f4;
  border: 1px solid #c3e8e1;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.dialog-warning {
  margin-top: 18px;
  padding: 15px;
  color: #76591c;
  background: var(--yellow-soft);
  border: 1px solid #efdda5;
  border-radius: 11px;
  font-size: 0.82rem;
}

.dialog-warning ul {
  margin: 7px 0 0;
  padding-left: 1.4em;
}

.dialog-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 22px;
}

.dialog-copy-status {
  min-height: 1.5em;
  margin: 9px 0 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.site-footer {
  padding: 52px 0 20px;
  color: #b9c8d5;
  background: #15334e;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 35px;
}

.footer-brand {
  color: #fff;
}

.footer-inner p {
  margin: 12px 0 0;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 28px;
  max-width: 580px;
  padding-top: 8px;
}

.footer-links a {
  color: #d9e5ee;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom small {
  font-size: 0.72rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 下層ページ共通 */
.subpage-main {
  min-height: calc(100vh - 270px);
  background: var(--surface-soft);
}

.subpage-hero {
  padding: 60px 0 45px;
  background: linear-gradient(180deg, #fff, var(--blue-50));
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.8rem;
}

.breadcrumbs a {
  color: var(--blue-700);
}

.subpage-hero h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.4;
}

.subpage-hero p {
  max-width: 740px;
  margin: 0;
}

.subpage-hero .updated-date {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.subpage-content {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
  padding: 50px 0 80px;
}

.content-card {
  margin-bottom: 20px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(27, 73, 113, 0.045);
}

.content-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 1.25rem;
}

.content-card h2::before {
  content: "";
  width: 5px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--blue-600);
  border-radius: 999px;
}

.content-card p:last-child,
.content-card ul:last-child,
.content-card ol:last-child {
  margin-bottom: 0;
}

.content-card ol,
.content-card ul {
  padding-left: 1.45em;
}

.content-card li + li {
  margin-top: 10px;
}

.official-link-list {
  list-style: none;
  padding-left: 0 !important;
}

.official-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.official-link-list a::after {
  content: "↗";
  font-size: 0.82rem;
}

.source-note {
  color: var(--muted);
  font-size: 0.76rem;
}

.test-page {
  min-height: 100vh;
  background: var(--surface-soft);
}

.test-page h1 {
  color: var(--ink);
  line-height: 1.4;
}

.test-results {
  padding-left: 1.5em;
}

.test-results li + li {
  margin-top: 8px;
}

.test-pass {
  color: var(--green);
}

.test-fail {
  color: var(--red);
  font-weight: 800;
}

.note-card {
  background: var(--yellow-soft);
  border-color: #efdda5;
  box-shadow: none;
}

.note-card h2::before {
  background: var(--yellow);
}

.info-list {
  margin: 0;
}

.info-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.info-list > div:first-child {
  padding-top: 0;
}

.info-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list dt {
  color: var(--ink);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-email {
  font-size: 1.05rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.privacy-summary {
  padding: 23px;
  color: var(--blue-900);
  background: var(--blue-100);
  border: 1px solid #cae3f4;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.back-area {
  margin-top: 32px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--blue-800);
  background: #fff;
  border: 1px solid #bdd5e6;
  border-radius: 11px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  background: var(--blue-50);
}

@media (max-width: 900px) {
  .hero-grid {
    gap: 35px;
  }

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

  .header-nav {
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .container,
  .narrow-container,
  .subpage-content {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .header-nav a:not(:first-child) {
    display: none;
  }

  .header-nav a:first-child {
    padding: 7px 12px;
    color: var(--blue-800);
    background: var(--blue-100);
    border-radius: 9px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 58px 0 66px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    margin: 17px 0;
    font-size: clamp(2.05rem, 10vw, 2.8rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .button-large {
    width: 100%;
  }

  .button-note {
    margin-left: 0;
    text-align: center;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-visual::before {
    width: 280px;
    height: 280px;
  }

  .mail-card {
    width: calc(100% - 20px);
    padding: 25px;
  }

  .visual-badge-lock {
    right: 0;
  }

  .visual-badge-check {
    left: 0;
  }

  .trust-section,
  .how-section,
  .guides-section,
  .faq-section,
  .diagnosis-section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .trust-grid,
  .how-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .trust-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    padding: 22px;
  }

  .trust-card .icon-box {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .trust-card h3 {
    align-self: end;
  }

  .diagnosis-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .eml-upload {
    grid-template-columns: 1fr;
  }

  .eml-select-button {
    width: 100%;
  }

  .input-tools {
    align-items: flex-start;
  }

  #emailBody {
    min-height: 225px;
    padding: 15px;
    font-size: 0.92rem;
  }

  .step-heading p {
    line-height: 1.55;
  }

  .result-header,
  .result-body {
    padding: 20px;
  }

  .how-grid {
    gap: 38px;
  }

  .how-grid li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: auto;
    bottom: -33px;
    left: calc(50% - 6px);
    color: #b6cddd;
    font-size: 1rem;
    letter-spacing: 0;
  }

  .section-heading-left {
    display: block;
  }

  .section-heading-left > p {
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }

  .guide-card {
    padding: 18px;
  }

  .safety-inner {
    gap: 13px;
  }

  .footer-inner,
  .footer-bottom {
    display: block;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 25px;
  }

  .footer-bottom small {
    display: block;
  }

  .footer-bottom small + small {
    margin-top: 7px;
  }

  .subpage-hero {
    padding: 42px 0 35px;
  }

  .subpage-content {
    padding: 35px 0 60px;
  }

  .content-card {
    padding: 23px 20px;
  }

  .info-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .link-dialog-card {
    padding: 25px 20px 20px;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .brand {
    gap: 8px;
    font-size: 0.9rem;
  }

  .header-nav a:first-child {
    padding: 6px 9px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .visual-badge {
    font-size: 0.68rem;
  }

  .trust-card {
    grid-template-columns: 43px 1fr;
    padding: 18px;
  }

  .icon-box {
    width: 43px;
    height: 43px;
  }

  .candidate-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .candidate-link,
  .button-secondary {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
