/* =========================================================
   はぐきんぐ＆みがきんぐ 公式プラットフォーム
   共通スタイル / デザインシステム
   ========================================================= */

:root {
  /* Brand */
  --hagu: #FF6F91;        /* はぐきんぐ ピンク */
  --hagu-deep: #D81B60;
  --miga: #35C4D7;        /* みがきんぐ ミント */
  --miga-deep: #0E8AA3;
  --gold: #FFB300;        /* 王冠 */
  --gold-soft: #FFF3C4;

  --ink: #1F3A5F;         /* 本文 */
  --ink-soft: #5A6E88;
  --line: #E6EDF5;
  --cream: #FFF9F0;
  --paper: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(31, 58, 95, .07);
  --shadow: 0 10px 30px rgba(31, 58, 95, .10);
  --shadow-lg: 0 24px 60px rgba(31, 58, 95, .16);

  --radius: 20px;
  --radius-lg: 32px;
  --maxw: 1120px;

  --font: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", "BIZ UDPGothic",
          "Zen Maru Gothic", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand-mark { display: flex; }
.brand-mark img { width: 30px; height: 30px; }
.brand-mark img + img { margin-left: -8px; }
.brand-text { font-size: 15px; line-height: 1.3; }
.brand-text small { display: block; font-size: 10px; color: var(--ink-soft); font-weight: 700; letter-spacing: .12em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--line); }
.nav a.is-active { background: var(--ink); color: #fff; }
.nav .btn { margin-left: 8px; }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 800; font-size: 15px; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--hagu), #FF9AB5); color: #fff; }
.btn-mint { background: linear-gradient(135deg, var(--miga), #6FE0EC); color: #08404E; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #FFD666); color: #5A3D00; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 17px 38px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Section basics ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .22em;
  color: var(--hagu-deep); background: #FFEDF2; padding: 6px 16px; border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow.mint { color: var(--miga-deep); background: #E2F8FC; }
.eyebrow.gold { color: #8A6100; background: var(--gold-soft); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; letter-spacing: .01em; }
h2.section-title { font-size: clamp(26px, 4vw, 38px); }
.section-lead { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 15px; }

.card {
  background: var(--paper); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 11px; border-radius: 999px; background: var(--line); color: var(--ink-soft);
}
.tag-hagu { background: #FFEDF2; color: var(--hagu-deep); }
.tag-miga { background: #E2F8FC; color: var(--miga-deep); }
.tag-gold { background: var(--gold-soft); color: #8A6100; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #D7E2F0; padding: 56px 0 32px; font-size: 14px;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; opacity: .85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-note { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; font-size: 12px; opacity: .7; line-height: 1.9; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--ink-soft); font-size: 14px; }
.tiny { font-size: 12px; color: var(--ink-soft); line-height: 1.8; }
.bg-white { background: var(--paper); }
.bg-mint { background: linear-gradient(180deg, #EFFBFD, #FFF9F0); }
.bg-pink { background: linear-gradient(180deg, #FFF1F5, #FFF9F0); }

/* ---------- Notice bar ---------- */
.notice {
  background: repeating-linear-gradient(45deg, #FFF3C4, #FFF3C4 12px, #FFEAA8 12px, #FFEAA8 24px);
  color: #6B4A00; text-align: center; font-size: 12px; font-weight: 700; padding: 8px 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .nav-toggle {
    display: inline-flex; margin-left: auto; background: var(--ink); color: #fff;
    border: none; border-radius: 12px; width: 42px; height: 38px; align-items: center;
    justify-content: center; font-size: 18px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav .btn { margin: 6px 0 0; }
}
