/* =====================================================
   Image Crop Studio — base.css
   デザイントークン / リセット / 共通レイアウト(ヘッダー・フッター)
   ===================================================== */

:root {
  /* カラー */
  --bg: #F5F3FF;
  --blob-a: #DDD3FB;
  --blob-b: #EFE3FA;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-solid: #FFFFFF;
  --border: #E4DDF6;
  --border-strong: #C4B5FD;
  --text: #3F3A56;
  --text-muted: #736C92;
  --text-faint: #A29BC0;
  --accent: #8B5CF6;
  --accent-soft: #A78BFA;
  --accent-bg: #EDE9FE;
  --accent-bg-hover: #F3F0FD;
  --danger: #D9647E;

  /* 形状・影 */
  --radius-card: 16px;
  --radius-ui: 9px;
  --shadow-card: 0 8px 24px rgba(139, 92, 246, 0.08);

  /* フォント */
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --font-latin: "Poppins", "Noto Sans JP", sans-serif;
  --font-script: "Sacramento", cursive;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; overflow-x: hidden; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

input, button, select, textarea { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }

a { color: var(--accent); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #D8CEF3; border-radius: 9px; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

/* ---- 背景の淡いブロブ(ガラスモーフィズムの下地) ---- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-decor::before,
.bg-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.bg-decor::before {
  width: 520px; height: 520px;
  top: -160px; right: -120px;
  background: var(--blob-a);
  opacity: 0.55;
}
.bg-decor::after {
  width: 460px; height: 460px;
  bottom: -180px; left: -140px;
  background: var(--blob-b);
  opacity: 0.7;
}

/* ---- ページ幅 ---- */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- ヘッダー ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-icon { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
}
.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.header-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: var(--radius-ui);
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}
.header-nav a:hover { background: var(--accent-bg-hover); color: var(--text); }
.header-nav a.is-current { color: var(--accent); font-weight: 500; }

/* ---- プライバシー注記 ---- */
.privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 11px;
  color: var(--text-faint);
  padding: 0 4px 12px;
  text-align: center;
}
.privacy-note svg { flex: none; }

/* ---- フッター ---- */
.site-footer {
  text-align: center;
  padding: 28px 16px 32px;
  font-size: 11px;
  color: var(--text-faint);
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
}
.site-footer .footer-links span { white-space: nowrap; }
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.site-footer a:hover { color: var(--accent); border-bottom-color: var(--accent-soft); }
.site-footer .copyright { margin-top: 8px; }

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; padding-bottom: 8px; }
  .header-nav { width: 100%; justify-content: center; }
  .brand-tagline { display: none; }
  .brand-name { font-size: 17px; }
  .header-nav a { padding: 7px 8px; }
}

/* ---- 広告枠（AdSense 手動配置）----
   操作ボタンとの間隔を空け、「広告」と表示する。配信が無いときは枠ごと隠す。 */
.ad-area { margin-top: 40px; }
.ad-area--in-article { margin: 32px 0; }
.ad-area__label { text-align: center; font-size: 11px; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 6px; }
.ad-area .adsbygoogle { min-height: 90px; }
.ad-area:has(.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
