/* ============================================================
   base.css — CSS variables, reset, base typography, layout
   ============================================================ */

/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  /* Brand colors */
  --c-primary:       #8541dc;
  --c-primary-hover: #7230cc;
  --c-primary-light: #f3ebff;
  --c-primary-mid:   #c49ef0;
  --c-dark:          #222222;

  /* Neutral */
  --c-white:       #ffffff;
  --c-gray-100:    #f7f7f7;
  --c-gray-200:    #eeeeee;
  --c-gray-300:    #dddddd;
  --c-gray-500:    #888888;
  --c-gray-700:    #555555;
  --c-border:      #e6e6e6;

  /* Status */
  --c-danger-bg:   #fff0f0;
  --c-danger:      #d94444;

  /* Typography */
  --font-main: 'Noto Sans JP', sans-serif;

  /* Spacing */
  --section-py:    96px;
  --container-max: 1160px;
  --container-px:  24px;

  /* Border radius */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:      0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg:      0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-primary: 0 8px 24px rgba(133, 65, 220, 0.28);

  /* Transitions */
  --t: 0.2s ease;
}

/* ===========================
   Reset
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--c-dark);
  background: var(--c-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font-main); }

.material-icons-round { letter-spacing: 0; }

/* ===========================
   Layout
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

section {
  padding: var(--section-py) 0;
}

/* ===========================
   BG Utility Classes
   =========================== */
.bg-gray        { background: var(--c-gray-100); }
.bg-primary-soft { background: #f5eeff; }

/* ===========================
   Responsive — base breakpoints
   =========================== */
@media (max-width: 1024px) {
  :root { --section-py: 72px; }
}

@media (max-width: 768px) {
  :root {
    --section-py:   56px;
    --container-px: 20px;
  }
}

.sp-only { display: none; }
@media (max-width: 768px) {
  .sp-only { display: inline; }
}
