/* ===================================
   base.css — リセット・トークン・タイポグラフィ
   =================================== */

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-link);
  text-decoration: underline;
}
a:hover {
  color: var(--c-link-hover);
}

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4 {
  line-height: 1.4;
  color: var(--c-heading);
}

/* --- Design Tokens --- */
:root {
  /* Colors */
  --c-primary: #D2691E;
  --c-primary-light: #E8933A;
  --c-primary-dark: #8B5E3C;
  --c-accent: #E07020;
  --c-bg: #FFFAF5;
  --c-bg-warm: #FFF3E8;
  --c-bg-white: #FFFFFF;
  --c-text: #3C3028;
  --c-text-light: #6B5D52;
  --c-heading: #4A3728;
  --c-link: #B8621B;
  --c-link-hover: #D2691E;
  --c-border: #E8D8C8;
  --c-border-light: #F0E6DA;
  --c-placeholder: #C05020;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Max widths */
  --max-content: 720px;
  --max-wide: 960px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(60,48,40,0.08);
  --shadow-md: 0 4px 12px rgba(60,48,40,0.10);
}

/* --- Typography --- */
h1 { font-size: 1.75rem; margin-bottom: var(--sp-sm); }
h2 { font-size: 1.4rem; margin-bottom: var(--sp-sm); }
h3 { font-size: 1.15rem; margin-bottom: var(--sp-xs); }

p {
  margin-bottom: var(--sp-sm);
}

/* --- Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--sp-sm);
}

.container--narrow {
  max-width: var(--max-content);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- Placeholder styling --- */
.placeholder {
  color: var(--c-placeholder);
  font-weight: bold;
  background-color: #FFF0E0;
  padding: 0 0.25em;
  border-radius: 3px;
}

/* --- Responsive base --- */
@media (min-width: 768px) {
  body { font-size: 17px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
}
