/* どのページにも共通の見た目：色・文字・ボタン・上の帯・下の帯 */

:root {
  --ink: #1d1a3a;          /* 文字とふちどり */
  --ink-soft: #4a4668;
  --sky: #5ec4ff;
  --sky-light: #d8f1ff;
  --red: #e8343a;
  --red-dark: #b81f2a;
  --yellow: #ffd23f;
  --yellow-light: #fff6cf;
  --green: #36c35a;
  --blue: #2f6bff;
  --purple: #7b4bff;
  --orange: #ff8a1f;
  --teal: #12b5a6;
  --pink: #ff6fae;
  --gold: #f2b100;
  --aqua: #1fa8e0;
  --brown: #a06a3a;
  --paper: #ffffff;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-small: 3px 3px 0 var(--ink);
  --radius: 18px;
  --font-title: "Dela Gothic One", "M PLUS Rounded 1c", sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--sky-light);
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 { line-height: 1.35; margin: 0; }

code {
  background: var(--yellow-light);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0 6px;
  font-size: .92em;
}

:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-small);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-big { min-height: 60px; padding: 12px 30px; font-size: 1.15rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-yellow { background: var(--yellow); }
.btn-white { background: var(--paper); }
.btn[aria-disabled="true"] { background: #e6e4ef; color: var(--ink-soft); cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: var(--shadow-small); }

/* ---------- 上の帯 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .94);
  border-bottom: var(--line);
  backdrop-filter: blur(6px);
}
.brand img { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease;
}
.site-nav a:hover { background: var(--yellow-light); }
.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--red);
  color: #fff;
  border: var(--line);
  box-shadow: var(--shadow-small);
}
.site-nav .nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 6px 16px;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- 見出し ---------- */
.sec-title {
  text-align: center;
  margin-bottom: 18px;
}
.sec-title span {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  padding: 6px 28px 10px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.sec-title-light span { background: #fff; }

/* ---------- 下の帯 ---------- */
.site-footer {
  text-align: center;
  padding: 40px 20px 50px;
  background: var(--ink);
  color: #fff;
}
.site-footer p { margin: 4px 0; }
.site-footer .small { font-size: .85rem; opacity: .75; }
.footer-logo { width: 180px; margin: 0 auto 12px; }

/* ---------- スクロールで出てくる ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
