/* ============================================================
   toolbox.css — DeepMint Toolbox
   Shared styles for all toolbox.deepmint.site pages
   ============================================================ */


/* ── VARIABLES & RESET ───────────────────────────────────── */

:root {
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
             "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  --mint:         #3ECFAC;
  --mint-light:   #AAF0D1;
  --mint-bg:      #F0FBF8;
  --mint-border:  rgba(62,207,172,0.25);
  --dark:         #1A1A2E;
  --text:         #2D2D2D;
  --text-muted:   #6B7280;
  --bg:           #FFFFFF;
  --bg-alt:       #F8FAFB;
  --border:       #E5E9EC;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(0,0,0,0.07);
  --rakuten:      #BF0000;
  --amazon:       #FF9900;
  --line-color:   #06C755;
  --twitter:      #000000;
  --facebook:     #1877F2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0F1117;
    --bg-alt:      #1A1D27;
    --text:        #E8ECF0;
    --text-muted:  #9AA3AF;
    --border:      #2A2F3D;
    --mint-bg:     #0A1F1D;
    --mint-border: rgba(62,207,172,0.2);
    --shadow:      0 2px 12px rgba(0,0,0,0.3);
    --dark:        #E8ECF0;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ja);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ── HEADER ──────────────────────────────────────────────── */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  overflow: hidden;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #3ECFAC;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-family: "SF Pro Display", "Futura", "Century Gothic",
               "Trebuchet MS", "Hiragino Kaku Gothic ProN", sans-serif;
}
.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* ── NAV DESKTOP ──────────────────────────────────────────── */
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--mint);
  border-color: var(--mint);
  background: var(--mint-bg);
  text-decoration: none;
}

/* ── HAMBURGER MOBILE ─────────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-panel {
  background: var(--bg);
  border-bottom: 2px solid var(--mint);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.nav-panel.open { max-height: 260px; }
.nav-panel a {
  display: block;
  padding: 13px 20px;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.nav-panel a:last-child { border-bottom: none; }
.nav-panel a.active { color: var(--mint); }
.nav-panel a:hover { color: var(--mint); text-decoration: none; }
@media (max-width: 767px) {
  .site-nav { display: none; }
  .hamburger-btn { display: flex; }
}


/* ── FOOTER ──────────────────────────────────────────────── */

.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 28px 0 20px;
  font-size: 0.82rem;
  margin-top: 32px;
}
@media (prefers-color-scheme: dark) {
  .site-footer { background: #080B14; }
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--mint-light); text-decoration: none; }
.footer-copy { color: rgba(255,255,255,0.38); font-size: 0.72rem; }


/* ── BREADCRUMB ──────────────────────────────────────────── */

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb-sep { opacity: 0.4; }


/* ── HERO ────────────────────────────────────────────────── */

.hero {
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero-intro {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ── CALCULATOR ──────────────────────────────────────────── */

.tool-box {
  background: var(--mint-bg);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  margin: 20px 0 0;
}
.input-group {
  margin-bottom: 18px;
}
.input-group:last-of-type {
  margin-bottom: 20px;
}
.field-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.4;
}
.field-hint {
  font-size: 0.76rem;
  color: #B0B8C1;
  margin-top: 5px;
  line-height: 1.5;
}
.field-number,
.field-text {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-ja);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field-number:focus,
.field-text:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(62,207,172,0.1);
}
.field-with-unit {
  display: flex;
  align-items: center;
  gap: 0;
}
.field-with-unit .field-number {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  flex: 1;
}
.field-unit {
  padding: 0 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.field-select-wrap {
  position: relative;
}
.field-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  font-size: 1rem;
  font-family: var(--font-ja);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-select:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(62,207,172,0.1);
}
.field-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}
.manual-input-wrap {
  display: none;
  margin-top: 8px;
}
.manual-input-wrap.visible {
  display: block;
}
.field-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field-slider-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mint);
}
.field-slider-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 2px;
}
.field-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--mint) 0%, var(--mint) var(--pct, 50%), var(--border) var(--pct, 50%));
  border-radius: 3px;
  cursor: pointer;
  outline: none;
}
.field-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  border: 3px solid var(--bg);
  box-shadow: 0 1px 6px rgba(62,207,172,0.35);
  cursor: pointer;
}
.field-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  border: 3px solid var(--bg);
  box-shadow: 0 1px 6px rgba(62,207,172,0.35);
  cursor: pointer;
}
.field-slider-ticks {
  position: relative;
  height: 16px;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.field-slider-ticks span {
  position: absolute;
  transform: translateX(-50%);
}
.input-divider { height: 1px; background: var(--border); margin: 16px 0; opacity: 0.6; }
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.btn-calc {
  flex: 1;
  background: var(--mint);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-calc:hover { background: #2BB595; }
.btn-calc:active { transform: scale(0.98); }
.btn-reset {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-reset:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.btn-reset:active { transform: scale(0.98); }
.spinner {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.spinner.visible { display: flex; }
.spinner-dots {
  display: flex;
  gap: 6px;
}
.spinner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: bounce 1.2s infinite ease-in-out;
}
.spinner-dot:nth-child(1) { animation-delay: 0s; }
.spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; }

@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}


/* ── RESULT CARDS ────────────────────────────────────────── */

.result-box {
  display: none;
  margin-top: 20px;
  padding: 20px 18px 16px;
  background: var(--bg);
  border: 2px solid var(--mint);
  border-radius: var(--radius);
}
.result-box.visible { display: block; }
.result-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: none;
}
#result-value { display: none; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.result-card {
  background: var(--mint-bg);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}
.result-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.result-card-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}
.result-card-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--mint);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.result-card-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 340px) {
  .result-grid { grid-template-columns: 1fr; }
  .result-card-value { font-size: 1.6rem; }
}
.result-micro {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.tip-box {
  background: var(--mint-bg);
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 0.87rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}
.tip-box::before { content: "💡 "; }
.result-affiliates-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.2rem 0 0.6rem;
}
.section {
  margin: 34px 0;
}
.section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding: 3px 0 3px 13px;
  border-left: 5px solid var(--mint);
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.examples-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.examples-table th {
  background: var(--mint);
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
}
.examples-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.examples-table tr:last-child td { border-bottom: none; }
.examples-table tr:nth-child(even) td { background: var(--bg-alt); }
.explanation-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 18px 18px;
  font-size: 0.9rem;
  line-height: 1.85;
}
.formula-box {
  background: var(--mint-bg);
  color: var(--dark);
  border: 1px solid var(--mint-border);
  border-left: 4px solid var(--mint);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: monospace;
  font-size: 0.93rem;
  margin: 14px 0;
  line-height: 1.6;
  word-break: break-all;
  overflow-x: auto;
  white-space: pre-line;
}
@media (prefers-color-scheme: dark) {
  .formula-box {
    color: var(--mint-light);
    border-color: var(--mint-border);
  }
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.related-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  border-color: var(--mint);
  box-shadow: 0 2px 10px rgba(62,207,172,0.1);
  text-decoration: none;
}
.related-card-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.related-card-title {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.81rem;
  line-height: 1.4;
}
.sources-box {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.85rem;
}
.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.sources-list li { display: flex; gap: 8px; align-items: flex-start; }
.sources-list li > span { color: var(--mint); font-weight: 700; font-size: 1rem; line-height: 1; margin-top: 3px; flex-shrink: 0; }
.sources-list a { color: var(--mint); word-break: break-all; }
.source-org {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}
.disclaimer {
  font-size: 0.79rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.65;
}


/* ── AFFILIATE — AMAZON ──────────────────────────────────── */

.affiliate-section-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
/* affiliate list (new compact format) */
.aff-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4px;
}
.aff-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.aff-list-item:last-child { border-bottom: none; }
.aff-list-item:hover { background: var(--mint-bg); text-decoration: none; }
.aff-list-text { flex: 1; min-width: 0; }
.aff-list-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aff-list-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.btn-aff-amazon {
  flex-shrink: 0;
  padding: 6px 10px;
  background: var(--amazon);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.affiliate-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
}
.affiliate-img {
  width: 100%; height: 110px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.img-error {
  background: var(--bg-alt);
  opacity: 0.4;
}
.affiliate-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  flex: 1;
}
.affiliate-note {
  font-size: 0.73rem;
  color: var(--text-muted);
}
.affiliate-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.btn-affiliate {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}
.btn-affiliate:hover { opacity: 0.87; text-decoration: none; }
.btn-affiliate.amazon { background: var(--amazon); color: #111; }


/* ── AFFILIATE — RAKUTEN ─────────────────────────────────── */

.btn-affiliate.rakuten { background: var(--rakuten); }


/* ── FAQ ACCORDION ───────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: var(--dark);
  padding: 14px 0;
  line-height: 1.5;
  user-select: none;
}
.faq-icon {
  flex-shrink: 0;
  margin-top: 1px;
  width: 22px; height: 22px;
  background: var(--mint-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--mint);
  font-weight: 700;
  transition: transform 0.22s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  font-size: 0.87rem;
  color: var(--text-muted);
  padding-bottom: 14px;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }


/* ── SHARE BLOCK ─────────────────────────────────────────── */

.share-block {
  padding: 16px 0 4px;
  margin-top: 4px;
}
.share-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  font-family: var(--font-ja);
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
  flex: 1;
  justify-content: center;
  min-width: 100px;
}
.btn-share:hover { opacity: 0.85; text-decoration: none; }
.btn-share.line    { background: var(--line-color); }
.btn-share.twitter { background: var(--twitter); }


.admax-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-top: 32px;
}



/* ── ANIMATIONS ──────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40%           { transform: scale(1); opacity: 1; }
}
.result-box { animation: fadeUp 0.3s ease; }


/* ── TYPOGRAPHY ──────────────────────────────────────────── */

h1, h2, h3 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ── INDEX CATEGORY PAGE ────────────────────────────────── */
.index-hero { padding: 28px 0 20px; border-bottom: 1px solid var(--border); }
.index-hero h1 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.index-hero p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.cluster-section { padding: 28px 0 0; }
.cluster-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cluster-emoji { font-size: 1.3rem; line-height: 1; }
.cluster-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 360px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.tool-card:hover { border-color: var(--mint); box-shadow: 0 4px 16px rgba(62,207,172,0.12); transform: translateY(-1px); text-decoration: none; }
.tool-card-header { display: flex; align-items: center; gap: 8px; background: var(--mint-bg); padding: 10px 12px; }
.tool-card-emoji { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.tool-card-title { font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.tool-card-body { padding: 8px 12px 10px; background: var(--bg); }
.tool-card-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.55; }
.tool-card-action { display: flex; justify-content: flex-end; margin-top: 6px; }
.tool-card-btn { background: #F0FBF8; color: #3ECFAC; border: 0.5px solid #3ECFAC; font-size: 0.7rem; font-weight: 500; padding: 3px 10px; border-radius: 20px; }


/* ── INDEX ROOT PAGE ─────────────────────────────────────── */

.cluster-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 9px;
  background: var(--mint); color: #fff;
  font-size: 0.62rem; font-weight: 900;
  border-radius: 6px; letter-spacing: 0.06em;
  font-family: "SF Pro Display","Futura","Century Gothic","Trebuchet MS",sans-serif;
  flex-shrink: 0;
}
.cluster-badge.soon { background: var(--border); color: var(--text-muted); }
.cluster-block { padding: 24px 0; border-bottom: 1px solid var(--border); }
.cluster-block:last-of-type { border-bottom: none; }
.cluster-block-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cluster-block-left { display: flex; align-items: center; gap: 8px; }
.cluster-block-title { font-size: 1.05rem; font-weight: 800; color: var(--text); }

/* ASP CTA block */
.asp-cta-block {
  margin: 16px 0;
  border: 2px solid var(--mint);
  border-radius: var(--radius);
  overflow: hidden;
}
.asp-cta-inner {
  padding: 16px;
  background: var(--mint-bg);
  text-align: left;
}
.asp-cta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.asp-cta-text {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.asp-cta-btn {
  display: block;
  text-align: center;
  background: var(--mint);
  color: white;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.asp-cta-btn:hover { opacity: 0.85; color: white; }
.cluster-all-link {
  font-size: 0.75rem; font-weight: 700; color: var(--mint);
  border: 1px solid var(--mint-border); border-radius: 20px;
  padding: 4px 13px; white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s;
}
.cluster-all-link:hover { background: var(--mint-bg); text-decoration: none; }
.cluster-all-link.soon { color: var(--text-muted); border-color: var(--border); pointer-events: none; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 340px) { .mini-grid { grid-template-columns: 1fr; } }
.mini-card {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 0.85rem; color: var(--text); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mini-card:hover { border-color: var(--mint); box-shadow: 0 2px 10px rgba(62,207,172,0.1); text-decoration: none; }
.mini-card.placeholder { opacity: 0.38; pointer-events: none; border-style: dashed; }
.mini-card-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1; }
.mini-card-title { font-weight: 700; color: var(--dark); font-size: 0.81rem; line-height: 1.4; }
.mini-card.placeholder .mini-card-title { color: var(--text-muted); }
.howto-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 520px) { .howto-grid { grid-template-columns: 1fr; } }
.howto-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px; }
.howto-card-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.howto-num { font-size: 1.6rem; font-weight: 900; color: var(--mint); line-height: 1; flex-shrink: 0; }
.howto-title { font-size: 0.82rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.howto-text { font-size: 0.76rem; color: var(--text-muted); line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 520px) { .about-grid { grid-template-columns: 1fr; } }
.about-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px; }
.about-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.about-card-icon { font-size: 1.1rem; }
.about-card-title { font-size: 0.82rem; font-weight: 800; color: var(--dark); }
.about-card-text { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; }
.badge-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.badge-title-row h1 { margin: 0; line-height: 1.2; font-size: 1.05rem; font-weight: 800; color: var(--text); }

/* ── MICROWAVE SCENARIOS TABLE ───────────────────────────── */
.scenario-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.scenario-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.scenario-subtitle { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.scenario-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.scenario-table th { background: var(--mint-bg); color: var(--text); font-weight: 700; padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--border); }
.scenario-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.scenario-table tr:last-child td { border-bottom: none; }
.scenario-cost { font-weight: 700; color: var(--dark); text-align: right; }
.scenario-ref { font-size: 0.78rem; color: var(--text-muted); }
.yaku { font-size: 0.65em; font-weight: 500; color: var(--text-muted); vertical-align: middle; }

/* ── AFFILIATE INLINE GRID ───────────────────────────────── */
.affiliate-inline-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}