/* ==========================================================================
   恋はじめ - 共通スタイルシート
   デザイン：暖色系（ピンク・コーラル・ホワイト基調）、スマホファースト
   ========================================================================== */

/* --------------------------------------------------------------------------
   カラーパレット（CSS変数）
   -------------------------------------------------------------------------- */
:root {
  --color-main: #F87171;       /* メインカラー：コーラルレッド */
  --color-sub: #FDE8E8;        /* サブカラー：薄ピンク */
  --color-accent: #F9A8D4;     /* アクセント：ピンク */
  --color-text: #333333;       /* テキスト：ダークグレー */
  --color-bg: #FFFAFA;         /* 背景：スノーホワイト */
  --color-white: #FFFFFF;
  --color-border: #f3d0d0;     /* ボーダー：薄いピンク */
  --color-text-light: #888888; /* 補助テキスト */

  /* フォント */
  --font-body: 'Noto Sans JP', sans-serif;
  --font-display: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;

  /* 角丸 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  /* シャドウ */
  --shadow-card: 0 2px 12px rgba(248, 113, 113, 0.12);
  --shadow-card-hover: 0 6px 24px rgba(248, 113, 113, 0.22);

  /* ヘッダー高さ */
  --header-height: 60px;
}


/* --------------------------------------------------------------------------
   リセット・ベーススタイル
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* スクロール位置をヘッダー分ずらす */
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-main);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

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

ul {
  list-style: none;
}


/* --------------------------------------------------------------------------
   ヘッダー（固定ヘッダー）
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  box-shadow: 0 1px 8px rgba(248, 113, 113, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  max-width: 960px;
  margin: 0 auto;
}

/* サイト名（左寄せ） */
.site-name a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.04em;
}

/* ナビゲーション（右寄せ） */
.main-nav ul {
  display: flex;
  gap: 20px;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background-color: var(--color-sub);
  color: var(--color-main);
  opacity: 1;
}


/* --------------------------------------------------------------------------
   メインコンテンツ（ヘッダー分の余白）
   -------------------------------------------------------------------------- */
main {
  padding-top: var(--header-height);
}


/* --------------------------------------------------------------------------
   ヒーローセクション
   -------------------------------------------------------------------------- */
.hero {
  /* グラデーション背景：メインカラー系 */
  background: linear-gradient(135deg, #ffeaea 0%, #ffd6e7 50%, #ffe0f0 100%);
  padding: 56px 16px 64px;
  text-align: center;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* メインキャッチコピー */
.hero-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-main);
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

/* サブコピー */
.hero-sub {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  margin-bottom: 32px;
}

/* CTAボタン */
.btn-cta {
  display: inline-block;
  background-color: var(--color-main);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(248, 113, 113, 0.45);
  opacity: 1;
  color: var(--color-white);
}


/* --------------------------------------------------------------------------
   共通セクションスタイル
   -------------------------------------------------------------------------- */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 14px;
}

/* セクションタイトル下線装飾 */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-main), var(--color-accent));
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-lead {
  text-align: center;
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  margin-bottom: 32px;
}


/* --------------------------------------------------------------------------
   記事一覧セクション
   -------------------------------------------------------------------------- */
.articles-section {
  padding: 56px 0 64px;
  background-color: var(--color-bg);
}

/* 記事カードグリッド（スマホ：1列） */
.article-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

/* 記事カード */
.article-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ホバーで少し浮く */
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-link {
  display: block;
  color: var(--color-text);
}

.card-link:hover {
  opacity: 1;
}

/* カードサムネイル */
.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* サムネイル画像未設定時のプレースホルダー（OGP風テキストサムネイル） */
.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-sub) 0%, #ffd6e7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

/* カテゴリ別グラデーション */
.card-thumb-placeholder--guide {
  background: linear-gradient(135deg, #fde8e8 0%, #ffc2d4 100%);
}
.card-thumb-placeholder--ranking {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
.card-thumb-placeholder--freeter {
  background: linear-gradient(135deg, #fde8f4 0%, #f9a8d4 100%);
}

/* サムネイル内カテゴリラベル */
.thumb-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-main);
  background-color: rgba(255,255,255,0.85);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* サムネイル内タイトルテキスト */
.thumb-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #5a2a2a;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* 右下の装飾絵文字 */
.thumb-icon {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 36px;
  opacity: 0.5;
}

/* カード本文エリア */
.card-body {
  padding: 16px 20px 20px;
}

/* カテゴリラベル */
.card-category {
  display: inline-block;
  background-color: var(--color-sub);
  color: var(--color-main);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* カード記事タイトル */
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
  color: var(--color-text);
}

/* カード概要文 */
.card-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 14px;
}

/* 続きを読む */
.card-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-main);
}


/* --------------------------------------------------------------------------
   おすすめアプリセクション
   -------------------------------------------------------------------------- */
.recommend-section {
  padding: 56px 0 64px;
  background-color: var(--color-sub);
}

/* アプリカードグリッド */
.app-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

/* 準備中プレースホルダーカード */
.app-card--coming-soon {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
  line-height: 2;
}

.coming-note {
  font-size: 12px;
  color: #bbb;
  margin-top: 8px;
}

/* アプリランキングカード */
.app-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.app-card-rank {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-main);
  min-width: 32px;
  text-align: center;
}

.app-card-rank.r1 { color: #c0a000; }
.app-card-rank.r2 { color: #9e9e9e; }
.app-card-rank.r3 { color: #b07040; }

.app-card-info {
  flex: 1;
}

.app-card-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-text);
}

.app-card-info p {
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.app-card-badge {
  display: inline-block;
  font-size: 10px;
  background: var(--color-sub);
  color: var(--color-main);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 4px;
  font-weight: 700;
}

.app-card-btn {
  display: inline-block;
  background: var(--color-main);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-card-btn:hover { opacity: 0.85; }


/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #3a1a1a; /* ダークブラウン：暖色系ダーク */
  color: #ccc;
  padding: 40px 16px 32px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

/* フッターサイト名 */
.footer-site-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

/* フッターナビ */
.footer-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: #bbb;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* コピーライト */
.copyright {
  font-size: 12px;
  color: #888;
}


/* --------------------------------------------------------------------------
   メディアクエリ（タブレット・PC：min-width 768px）
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {

  /* ヘッダー */
  .header-inner {
    padding: 0 32px;
  }

  .site-name a {
    font-size: 26px;
  }

  .main-nav ul {
    gap: 28px;
  }

  .main-nav a {
    font-size: 14px;
  }

  /* ヒーローセクション */
  .hero {
    padding: 80px 32px 96px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  /* セクション */
  .section-inner {
    padding: 0 32px;
  }

  .section-title {
    font-size: 28px;
  }

  /* 記事カードグリッド（PC：2列） */
  .article-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* アプリカード（PC：3列） */
  .app-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* フッター */
  .site-footer {
    padding: 56px 32px 40px;
  }
}

/* 関連記事セクション */
.related-articles {
  margin: 48px 0 32px;
  padding: 24px;
  background: #fff5f5;
  border-radius: 12px;
  border-left: 4px solid #F87171;
}

.related-articles h2 {
  font-size: 18px;
  color: #F87171;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #fecaca;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-articles ul li::before {
  content: "▶ ";
  color: #F87171;
  font-size: 12px;
}

.related-articles ul li a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
}

.related-articles ul li a:hover {
  color: #F87171;
  text-decoration: underline;
}
