@charset "UTF-8";
/* ==========================================================================
   base.css — おつきあいマナー辞典 / PHASE 1 共通基盤
   リセット・デザイントークン・タイポグラフィ・レイアウト土台
   ※このファイルはサイト全ページで最初に読み込む
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザイントークン
   お祝いと弔事を同一サイトで扱うため、特定行事を強く連想する色を
   サイトのメインカラーにしない。ベースは白／オフホワイト＋墨色。
   -------------------------------------------------------------------------- */
:root {
  /* 背景 */
  --c-bg:            #fcfbf9; /* オフホワイト */
  --c-bg-surface:    #ffffff; /* カード面 */
  --c-bg-subtle:     #f5f2ec; /* 薄いベージュの帯 */
  --c-bg-warm:       #f8f4ed; /* さらに淡いベージュ */
  --c-bg-quiet:      #f3f4f4; /* 弔事系セクション用のごく淡いグレー */

  /* 文字 */
  --c-text:          #2b2a28; /* 墨色 */
  --c-text-sub:      #5f5c56; /* 補足 */
  --c-text-muted:    #837f77; /* 日付・キャプション */
  --c-text-invert:   #ffffff;

  /* 罫線 */
  --c-border:        #e4dfd6;
  --c-border-strong: #d3ccc0;

  /* アクセント */
  --c-primary:       #4a6b5d; /* 落ち着いた緑：CTA・リンク */
  --c-primary-dark:  #3b564a;
  --c-primary-light: #eaf0ed;
  --c-accent:        #b4685f; /* くすんだ赤：慶事のアクセント（面積は小さく） */
  --c-accent-light:  #f7edeb;
  --c-beige:         #c2ab8c; /* ベージュ：贈答系 */
  --c-beige-light:   #f4ede2;
  --c-quiet:         #6e7b86; /* 青みグレー：弔事系（暗くしすぎない） */
  --c-quiet-light:   #eef1f3;

  /* 角丸 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* 影（極力弱く。情報サイトとして清潔に） */
  --sh-1: 0 1px 2px rgba(43, 42, 40, .05);
  --sh-2: 0 2px 10px rgba(43, 42, 40, .07);

  /* レイアウト */
  --w-max: 1120px;
  --pad-x: 20px;
  --header-h: 60px;

  /* 余白スケール */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;

  /* フォント */
  --ff-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
             "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --ff-head: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP",
             serif;
}

@media (min-width: 768px) {
  :root {
    --pad-x: 32px;
    --header-h: 72px;
  }
}

/* --------------------------------------------------------------------------
   2. リセット
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* 横スクロールの発生源を根本で塞ぐ */
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

a {
  color: var(--c-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea { font: inherit; }

/* キーボード操作時のみフォーカスリングを出す */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* アニメーションを減らす設定を尊重する */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. 見出しタイポグラフィ
   -------------------------------------------------------------------------- */
.h1 {
  font-family: var(--ff-head);
  font-size: 27px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .01em;
}

.h2 {
  font-family: var(--ff-head);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 600;
}

@media (min-width: 768px) {
  .h1 { font-size: 38px; }
  .h2 { font-size: 27px; }
}

@media (min-width: 1024px) {
  .h1 { font-size: 44px; }
  .h2 { font-size: 29px; }
}

/* --------------------------------------------------------------------------
   4. レイアウト土台
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--s-7);
}

.section--tight { padding-block: var(--s-6); }

@media (min-width: 768px) {
  .section { padding-block: var(--s-9); }
  .section--tight { padding-block: var(--s-7); }
}

/* 背景違いのセクション */
.section--subtle { background: var(--c-bg-subtle); }
.section--warm   { background: var(--c-bg-warm); }
.section--quiet  { background: var(--c-bg-quiet); }

/* --------------------------------------------------------------------------
   5. ユーティリティ
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  z-index: 200;
  padding: var(--s-3) var(--s-4);
  background: var(--c-primary);
  color: var(--c-text-invert);
  border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-3); }

.no-scroll { overflow: hidden; }
