@charset "UTF-8";

:root {
  --color-primary: #FFF8DC;
  --color-primary-light: #FFFBEA;
  --color-base: #FFFFFF;
  --color-accent: #F5E8B8;
  --color-text: #333333;
  --color-text-sub: #666666;
  --color-border: #E5E5E5;
  --color-button: #E8B84A;
  --color-button-hover: #D9A838;
  --color-error: #C94A4A;
  --color-error-bg: #FFF0F0;
  --color-error-border: #E8AAAA;

  --container-max: 1080px;
  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 50%;

  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-nav: -4px 0 16px rgba(0, 0, 0, 0.08);

  --color-focus-ring: rgba(232, 184, 74, 0.15);
  --color-white-glass: rgba(255, 255, 255, 0.5);

  --transition-base: 0.25s ease-in-out;

  --z-header:  100;
  --z-drawer:  110;
  --z-overlay: 200;
  --z-modal:   300;

  /* エディトリアル・デザイン言語（トップ＆ブログ共通｜大改装 2026-07-04） */
  --paper: #FBF7EF;
  --paper-2: #F3EBDD;
  --ink: #1A1714;
  --ink-soft: #6B5F54;
  --gold: #C8A24B;
  --gold-deep: #A9852F;
  --espresso: #2E241C;
  --hair: rgba(26, 23, 20, 0.16);
  --serif-jp: "Noto Serif JP", serif;
  --serif-en: "Fraunces", "Fraunces fallback", "Times New Roman", serif;
  --sans: "Noto Sans JP", sans-serif;

  /* モグブロ ポップ化 差し色（設計正本＝ポップ化世界観設計.md／2026-07-10 Fable 5）
     暖色ゴールド基調は維持し、差し色で「発見・成功／注意」を意味づけする。
     意味色ボックスは tint地＋濃いアクセントバーで表現（面はベタ塗りにしない＝軽薄化防止・AA確保）。
     coral（注意・撤退）は既存 --color-error / --color-error-bg を転用。 */
  --pop-teal: #157A6E;        /* 発見・成功・リンク強調（cream地でAA 5.6:1） */
  --pop-teal-bright: #1F9E8E; /* アクセントバー */
  --pop-teal-tint: #DCF1EC;   /* 成功ボックス地 */
  --pop-lamp: #FFD666;        /* ランプ由来のマーカー・栄冠（★文字色には使わない） */
  --pop-lamp-tint: #FFF3CF;   /* 注目地 */
  --mole-charcoal: #3E3A38;   /* マスコット本体色（図解の主線・ピクトに使用可） */
  --mole-cream: #EAD9B8;      /* マスコット腹/爪（淡い縁取りに使用可） */
  /* ダーク面はブログでは当面持たない（ダッシュボードのダークとは別系統）。
     将来の暗背景変種 --pop-*-on-dark はここに予約（実装は後段・スコープ外）。 */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  overflow-wrap: anywhere;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a:hover,
a:focus-visible {
  opacity: 0.7;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.4;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-fade--delay-1 {
  transition-delay: 0.1s;
}

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

  .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
