* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #0f172a;
  --primary-soft: #e2e8f0;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warn-bg: #fef3c7;
  --hash-bg: #020617;
  --hash-text: #86efac;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 24px;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  margin-bottom: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  color: #dbeafe;
  max-width: 900px;
  font-size: 15px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.hero-point {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px;
  font-size: 14px;
  color: #e2e8f0;
}

.note-bar {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 20px;
}

.top-grid {
  grid-template-columns: 1.45fr 0.95fr;
}

.bottom-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-desc {
  color: var(--muted);
  font-size: 14px;
  margin: -4px 0 16px;
}

.section-gap {
  margin-top: 20px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.input,
.button,
.range {
  width: 100%;
}

.input {
  height: 46px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}

.input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.secondary {
  background: var(--primary-soft);
  color: var(--text);
}

.button.outline {
  background: white;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.mini-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid #eef2f7;
}

.mini-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.range-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0 0;
}

.toggle-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.toggle-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #0f172a;
  flex-shrink: 0;
}

.toggle-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.toggle-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
  border: 1px solid #eef2f7;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.goal-box {
  background: var(--primary);
  color: white;
  border-radius: 22px;
  padding: 18px;
}

.goal-prefix {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.35em;
  margin-top: 8px;
  line-height: 1.15;
  word-break: break-all;
}

.goal-note {
  margin: 12px 0 0;
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

.progress-wrap {
  margin-top: 18px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 8px;
}

.progress {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.15s ease;
}

.status {
  border-radius: 22px;
  padding: 18px;
  margin-top: 18px;
  background: var(--warn-bg);
  transition: background 0.2s ease, transform 0.2s ease;
}

.status.success {
  background: var(--success-bg);
  animation: popSuccess 0.35s ease;
}

@keyframes popSuccess {
  0% {
    transform: scale(0.985);
  }
  50% {
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}

.status-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-main {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.6;
}

.status-sub {
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
}

.status-tip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(71, 85, 105, 0.24);
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
}

.hash-box {
  background: var(--hash-bg);
  color: var(--hash-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  border-radius: 22px;
  padding: 18px;
  line-height: 1.8;
  word-break: break-all;
  font-size: 14px;
  min-height: 118px;
}

.detail-list {
  margin-top: 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.95;
}

.detail-list strong {
  color: #0f172a;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.log-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  padding: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  background: #fbfdff;
}

.log-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}

.log-item.success {
  background: #ecfdf5;
  border-color: #86efac;
}

.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 8px;
}

.log-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #475569;
  word-break: break-all;
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-card {
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.faq-q {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}

.faq-a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.success-banner {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
}

.success-banner.show {
  display: block;
  animation: popSuccess 0.35s ease;
}

@media (max-width: 980px) {
  .top-grid,
  .bottom-grid,
  .controls,
  .info-grid,
  .stats,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: 25px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .goal-prefix {
    font-size: 28px;
    letter-spacing: 0.28em;
  }

  .wrap {
    padding: 16px;
  }

  .hero,
  .card {
    border-radius: 22px;
  }
}
.footer-note a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  font-size: 18px;
}

.site-logo-text {
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.08s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.site-nav a:active {
  transform: translateY(1px);
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.08s ease;
}

.hero-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-link:active {
  transform: translateY(1px);
}

.footer-note a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .site-header-inner {
    padding: 12px 16px;
  }

  .site-logo {
    font-size: 17px;
  }

  .site-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
}


.ad-area {
  margin: 40px 0 10px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

}







*{
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0f172a;
  --primary-soft: #e2e8f0;
  --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.site-logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .08s ease, box-shadow .2s ease;
}

.site-nav a:hover {
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.site-nav a:active {
  transform: translateY(1px);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  margin-bottom: 22px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 820px;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.9;
}

.content-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid #eef2f7;
}

.toc {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdff;
}

.toc-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.toc ul {
  margin: 0;
  padding-left: 18px;
}

.toc li {
  margin: 6px 0;
  color: var(--muted);
  font-size: 14px;
}

.toc a {
  text-decoration: underline;
}

.policy-section + .policy-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.policy-section p {
  margin: 0 0 14px;
  color: #334155;
  font-size: 15px;
}

.policy-section ul {
  margin: 0;
  padding-left: 20px;
}

.policy-section li {
  margin: 8px 0;
  color: #334155;
  font-size: 15px;
}

.note-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #475569;
  font-size: 14px;
}

.footer-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.footer-note a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 720px) {
  .site-header-inner,
  .wrap {
      padding-left: 16px;
      padding-right: 16px;
  }

  .hero {
      padding: 24px 22px;
      border-radius: 22px;
  }

  .hero h1 {
      font-size: 28px;
  }

  .content-card {
      padding: 22px 18px;
      border-radius: 20px;
  }

  .policy-section h2 {
      font-size: 22px;
  }
}
