/* =============================================
   style.css - ギガ使用ペースチェッカー 完全版
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== カラー ===== */
:root {
  --teal: #0f766e;
  --teal-light: #14b8a6;
  --amber: #d97706;
  --amber-light: #fbbf24;

  --text: #1e2937;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --paper: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;

  --gradient-primary: linear-gradient(to right, var(--teal-light), var(--amber));

  --shadow-sm: 0 10px 20px -5px rgba(15,118,110,0.12);
  --shadow-md: 0 20px 40px -15px rgba(15,118,110,0.12);
  --shadow-lg: 0 30px 60px -15px rgba(15,118,110,0.18);
}

/* ダーク */
[data-theme="dark"] {
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --bg-body: #0f172a;
  --paper: #1e293b;
  --card: #1e293b;
  --border: #334155;
}

/* ===== ベース ===== */
* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  font-family:'Inter','Noto Sans JP',sans-serif;
  background:var(--bg-body);
  color:var(--text);
  line-height:1.7;
  transition: background .3s, color .3s;
}

/* ===== レイアウト ===== */
.container {
  max-width:1000px;
  margin:0 auto;
  padding:0 1.5rem;
}

/* ===== ヘッダー ===== */
.site-header {
  background:var(--card);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:100;
}

.header-container {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.25rem 1rem;
}

/* ロゴ */
.logo {
  display:flex;
  align-items:center;
  gap:0.75rem;
  font-weight:700;
  font-size:1.1rem;
}

.logo-image {
  height:56px;
  width:auto;
  object-fit:contain;
}

/* ナビゲーション */
.main-nav ul {
  display:flex;
  gap:1rem;
  list-style:none;
}

.main-nav a {
  color:var(--text);
  font-weight:600;
}

/* テーマ切替ボタン */
.theme-toggle {
  background:none;
  border:none;
  font-size:1.5rem;
  cursor:pointer;
  padding:0.5rem;
  border-radius:0.5rem;
  transition:background 0.2s;
}

.theme-toggle:hover {
  background:var(--paper);
}

/* ===== ボタン ===== */
.btn-primary {
  display:inline-block;
  background:var(--gradient-primary);
  color:#fff;
  padding:0.9rem 1.6rem;
  border-radius:9999px;
  font-weight:600;
  transition:.25s;
}

.btn-primary:hover {
  transform:scale(1.05);
}

/* ===== カード ===== */
.card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:1.5rem;
  padding:1.5rem;
  box-shadow:var(--shadow-md);
}

/* ===== 記事 ===== */
.article-content {
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:2rem;
  padding:2.5rem 2rem;
  margin-top:2rem;
}

/* ===== 記事内の画像 ===== */
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

/* アイキャッチ画像（h1直後） */
.prose h1 + img {
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

/* ===== タイポグラフィ ===== */
h1 {
  font-size:2rem;
  margin-bottom:1.5rem;
}

h2 {
  font-size:1.6rem;
  margin-top:2.5rem;
  margin-bottom:1rem;
  position:relative;
}

h2::after {
  content:'';
  display:block;
  width:60px;
  height:4px;
  background:var(--gradient-primary);
  margin-top:0.5rem;
  border-radius:9999px;
}

h3 {
  font-size:1.2rem;
  margin-top:1.75rem;
  margin-bottom:0.5rem;
}

/* 最初のh2だけ詰める */
.article-content h2:first-of-type {
  margin-top:1rem;
}

/* 本文 */
.prose p {
  margin-bottom:1rem;
  color:var(--text-muted);
}

/* リスト */
.prose ul {
  margin:1rem 0;
  padding-left:1.2rem;
}

.prose li {
  margin-bottom:0.5rem;
}

/* ===== CTAカード調整 ===== */
.article-content .card {
  margin:2rem 0;
}
.cta-card {
  text-align:center;
}
/* ===== リンク ===== */
a {
  color:var(--teal-light);
  text-decoration:none;
}

a:hover {
  color:var(--amber);
}

/* ===== モバイル ===== */
@media (max-width:768px) {

  h1 {
    font-size:1.6rem;
  }

  h2 {
    font-size:1.3rem;
  }

  .article-content {
    padding:1.8rem 1.2rem;
  }

  .main-nav {
    display:none;
  }

  .logo {
    font-size:1rem;
  }

  .logo-image {
    height:48px;
  }
}
/* ===== 定義リスト（運営者情報など） ===== */
.info-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.75rem 1rem;
  margin: 1rem 0;
}

.info-list dt {
  font-weight: 700;
  color: var(--text-muted);
}

.info-list dd {
  color: var(--text);
}

@media (max-width: 768px) {
  .info-list {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .info-list dt {
    margin-top: 0.75rem;
  }
  
  .info-list dt:first-child {
    margin-top: 0;
  }
}
