/* Shared Nanndemoya page polish based on templete.html. */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #5b6472;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #dbe3ee;
  --soft: #eff6ff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 240px);
  color: var(--text);
  line-height: 1.8;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
body > header,
.hero {
  padding: 64px 20px 44px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 58%, #60a5fa 100%);
  color: #fff;
  text-align: center;
}
.hero-inner,
.container,
body > main {
  max-width: 980px;
  margin: 0 auto;
}
body > main,
.container { padding: 28px 20px 56px; }
.eyebrow,
.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
  font-weight: 700;
}
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.25; }
h2 { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.4; color: inherit; }
h3 { margin: 20px 0 8px; font-size: 1.12rem; color: inherit; }
p { margin: 0 0 14px; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
.lead { max-width: 760px; margin: 18px auto 0; color: rgba(255,255,255,.94); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.button,
button.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-1px); opacity: .96; }
.button-primary { background: #fff; color: #1d4ed8; }
.button-secondary { border: 1px solid rgba(255,255,255,.36); background: rgba(255,255,255,.14); color: #fff; }
.grid { display: grid; gap: 22px; }
.card,
body > main > section {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
body > main > section + section { margin-top: 22px; }
.note { padding: 14px 16px; border-left: 4px solid #60a5fa; border-radius: 12px; background: var(--soft); color: #1e3a8a; }
.item-list { margin: 0; padding-left: 1.2em; }
.item-list li { margin-bottom: 10px; }
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.page-nav a {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--soft);
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
}
.site-search { margin-bottom: 22px; }
.site-search-form { margin-top: 10px; }
.site-search-label {
  display: block;
  margin-bottom: 8px;
}
.site-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.site-search-input { min-height: 48px; }
.site-search-button {
  min-height: 48px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.site-search-button:hover { background: var(--accent-dark); }
.site-search-status {
  min-height: 1.8em;
  margin-top: 12px;
  color: var(--muted);
  font-size: .95rem;
}
.site-search-list {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.site-search-list li {
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
}
.site-search-list a {
  font-weight: 700;
  text-decoration: none;
}
.site-search-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}
.link-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.link-card,
.service-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.link-card:hover,
.service-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.link-card span,
.service-card p { display: block; margin-top: 6px; color: var(--muted); font-size: .92rem; font-weight: 400; }
.table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
th { background: #e5e7eb; color: #111827; font-weight: 700; }
.price-table { min-width: 620px; }
.price-table th, .price-table td { text-align: right; white-space: nowrap; }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.cta { border-color: #93c5fd; background: #eff6ff; text-align: center; }
.cta .button { margin-top: 6px; background: var(--accent); color: #fff; }
.footer,
body > footer { padding: 8px 20px 46px; color: var(--muted); text-align: center; }
.footer a,
body > footer a { font-weight: 700; text-decoration: none; }
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .3);
}
.back-top:hover { background: var(--accent-dark); color: #fff; }
.simulator-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 22px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; color: #334155; font-size: .94rem; }
input, select { width: 100%; padding: 12px 13px; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 3px solid rgba(37,99,235,.18); border-color: var(--accent); }
.result-panel { position: sticky; top: 18px; background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 100%); color: #fff; border: 0; }
.result-total { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.14); text-align: center; }
.result-total .label { color: rgba(255,255,255,.78); font-weight: 700; font-size: .9rem; }
.result-total .price { display: block; margin-top: 6px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.breakdown { margin: 18px 0 0; padding: 0; list-style: none; }
.breakdown li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.92); }
.breakdown li:last-child { border-bottom: 0; }
@media (max-width: 820px) { .simulator-grid, .form-grid { grid-template-columns: 1fr; } .result-panel { position: static; } }
@media (max-width: 760px) { .link-grid, .service-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { body > header, .hero { padding-top: 54px; } .card, body > main > section { padding: 22px 18px; } .hero-actions { flex-direction: column; align-items: center; } .button { width: min(100%, 320px); text-align: center; } .site-search-row { grid-template-columns: 1fr; } .site-search-button { width: 100%; } .back-top { right: 16px; bottom: 16px; } }
