/* =========================================================
   Rin Blog Apps — common.css
   共通基盤:配色変数 / 明るい卓上の背景 / ヘッダー / セクションナビ
   (ページ1・ページ2 共用)
   ========================================================= */

:root {
  /* 卓上(アイボリー〜ベージュの明るいテーブル) */
  --desk:       #f1e8d6;
  --desk-light: #faf5ea;
  --desk-deep:  #e3d5bb;
  --desk-line:  rgba(124, 98, 60, .16);   /* ボーダー・区切り */
  --desk-tint:  rgba(124, 98, 60, .09);   /* 控えめな面の色 */

  /* テキスト(明るい背景用の濃色) */
  --ink:      #3b3326;
  --ink-soft: #71644d;

  /* カード・プレート */
  --card:        #ffffff;
  --card-edge:   #e9e0cc;
  --plate:       #24262c;
  --plate-text:  #ffffff;

  /* アクセント(赤リング・CTA) */
  --accent:      #e6362f;
  --accent-hi:   #f4544d;
  --accent-deep: #a81d18;

  /* カテゴリ色 */
  --cat-game: #2f7fd6;
  --cat-tool: #e08a1e;

  /* 明るい背景に自然なニュートラルな影 */
  --shadow-card: 0 3px 8px rgba(96, 74, 42, .14), 0 12px 26px rgba(96, 74, 42, .10);
  --radius-tile: 16px;

  --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
               "Noto Sans JP", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  /* 明るい卓上:CSSのみで質感を表現
     1) 上からのやわらかな光  2) 周縁のごく薄い焼け
     3) 紙のような極小ドット  4) 地色 */
  background:
    radial-gradient(110% 60% at 50% -8%, rgba(255, 255, 255, .65), transparent 60%),
    radial-gradient(140% 100% at 50% 120%, rgba(151, 117, 71, .14), transparent 58%),
    radial-gradient(circle, rgba(124, 98, 60, .07) 1px, transparent 1.4px),
    linear-gradient(168deg, var(--desk-light) 0%, var(--desk) 52%, var(--desk-deep) 100%);
  background-size: auto, auto, 19px 19px, auto;
  background-attachment: fixed;
}

a { color: inherit; }

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- ページ枠 ---------- */
.tabletop {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px clamp(14px, 4vw, 36px) 40px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 22px;
}

.brand { display: flex; flex-direction: column; gap: 2px; }

.brand-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.brand-tag {
  font-size: clamp(11px, 2.4vw, 13px);
  color: var(--ink-soft);
  letter-spacing: .04em;
}

/* ---------- セクションナビ(2タブ・両ページ共通) ---------- */
.section-nav {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--desk-tint);
  border: 1px solid var(--desk-line);
  border-radius: 999px;
  box-shadow: inset 0 2px 4px rgba(96, 74, 42, .10);
}

.section-tab {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: clamp(12px, 2.6vw, 14px);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.section-tab:hover { background: rgba(255, 255, 255, .75); color: var(--ink); }

/* 現在地は番号プレートと同じ黒タグで示す */
.section-tab.is-current {
  background: var(--plate);
  color: var(--plate-text);
  box-shadow: 0 2px 5px rgba(96, 74, 42, .28);
  pointer-events: none;
}

/* ---------- CTA:押し込みの立体感がある赤いピルボタン ---------- */
.cta-pill {
  display: inline-block;
  padding: 12px 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--accent-deep), 0 9px 16px rgba(96, 74, 42, .28);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}

.cta-pill:hover { filter: brightness(1.07); }

.cta-pill:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--accent-deep), 0 3px 7px rgba(96, 74, 42, .24);
}

/* ---------- 番号プレート(No.01 形式・黒) ---------- */
.num-plate {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--plate);
  color: var(--plate-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 2px 4px rgba(96, 74, 42, .30);
}

/* ---------- 広告スロット ---------- */
.ad-slot {
  margin: 34px auto 0;
  max-width: 1000px;
  min-height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--desk-tint);
  border: 1px solid var(--desk-line);
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-footer a { color: var(--ink); }

/* ---------- アクセシビリティ ---------- */
:focus-visible {
  outline: 3px solid var(--cat-game);
  outline-offset: 2px;
}

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