/* =========================================================
   すぎなみ・なかの ベース — トップページ スタイル
   スマホ最優先 / 縦長1カラム / 親しみ × 信頼感
   ========================================================= */

/* ---------- カラー・トークン ---------- */
:root {
  --navy:        #0E3A66;   /* フットワークス ネイビー */
  --blue:        #185FA5;   /* フットワークス ブルー */
  --blue-light:  #4f8fcf;
  --teal:        #2f9aa8;   /* 爽やかな青緑（地域の安心感） */
  --orange:      #F08A24;   /* 温かみの差し色 */
  --orange-soft: #ffb968;

  --ink:         #243240;   /* 本文の文字 */
  --ink-soft:    #5d6b78;
  --line:        #e3e9ef;
  --bg:          #f6f9fb;   /* やわらかい背景 */
  --bg-card:     #ffffff;
  --bg-soft:     #eef4f8;

  --line-green:  #06C755;   /* LINEブランドカラー */

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 6px 20px rgba(14, 58, 102, 0.08);
  --shadow-soft: 0 3px 12px rgba(14, 58, 102, 0.06);

  --maxw:        720px;     /* スマホ最優先の読み幅 */
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  /* 追従ボタン分の余白（スマホ） */
  padding-bottom: 76px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
figure { margin: 0; }
em { font-style: normal; }

/* ---------- プレースホルダー（写真指定） ---------- */
/* 仮置きフレーム共通：薄いブルーグレー背景＋うっすら斜線（背景は各要素側で指定） */
.placeholder-label {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5b6b7a;            /* 少し濃いめのグレーで読みやすく */
  text-align: center;
  padding: 0 16px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* ---------- 共通：セクション見出し ---------- */
.section-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 22px;
  line-height: 1.4;
}
.section-title-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 4px;
}

/* セクション共通余白 */
.category-nav,
.articles,
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 18px;
}

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
/* 案2：ブランド名「じもっと」を大きく、エディション名を小さく併記 */
.logo-brand {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.logo-edition {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.logo-edition b { color: var(--orange); }
/* 旧クラス（後方互換） */
.logo-name { font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.logo-name b { color: var(--orange); }
.logo-tagline { font-size: 0.66rem; color: var(--ink-soft); font-weight: 500; }

@media (min-width: 600px) {
  .logo-brand { font-size: 1.42rem; }
  .logo-edition { font-size: 0.7rem; }
}

.header-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--line-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.header-line-btn i { font-size: 1.05rem; }

/* =========================================================
   ファーストビュー
   ========================================================= */
.hero { position: relative; }
.hero-image {
  position: relative;
  height: 58vh;
  min-height: 360px;
  max-height: 560px;
  background:
    linear-gradient(180deg, rgba(14,58,102,0.05), rgba(14,58,102,0.35)),
    repeating-linear-gradient(135deg, #dce8f1 0 24px, #d3e1ec 24px 48px);
  display: grid;
  place-items: center;
}
.hero-copy {
  max-width: var(--maxw);
  margin: -54px auto 0;
  position: relative;
  background: var(--bg-card);
  border-radius: 22px 22px 0 0;
  padding: 30px 22px 36px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--bg-soft);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.hero-title em { color: var(--orange); }
.hero-lead {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero-note {
  margin-top: 12px;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* ---------- 主要CTA（共通） ---------- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--line-green);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 16px 26px;
  border-radius: 999px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 22px rgba(6, 199, 85, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-primary i { font-size: 1.3rem; }
.cta-primary:active { transform: scale(0.98); }
@media (hover:hover) {
  .cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(6,199,85,0.42); }
}

/* =========================================================
   カテゴリナビ
   ========================================================= */
.category-nav { background: var(--bg-card); }
.category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.category-item:active { transform: scale(0.98); }
@media (hover:hover) {
  .category-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.category-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 1.2rem;
}
.cat-a { background: linear-gradient(135deg, var(--teal), var(--blue-light)); }
.cat-b { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); }
.cat-c { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.cat-d { background: linear-gradient(135deg, #d96f9c, #f0a0bf); }
.cat-e { background: linear-gradient(135deg, #5aab7a, #8fce9f); }
.category-name { font-weight: 700; font-size: 0.92rem; color: var(--navy); }
.category-desc { font-size: 0.72rem; color: var(--ink-soft); }

/* 5項目目を中央寄せ（2カラム時） */
.category-list > li:nth-child(5) { grid-column: 1 / -1; }
.category-list > li:nth-child(5) .category-item {
  flex-direction: row;
  justify-content: center;
  gap: 14px;
}
.category-list > li:nth-child(5) .category-icon { flex: 0 0 50px; }

/* =========================================================
   新着記事
   ========================================================= */
.articles { background: var(--bg); }
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.article-card article { height: 100%; }
.card-link {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
}
.card-link:active { transform: scale(0.99); }
@media (hover:hover) {
  .card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(14,58,102,0.04), rgba(14,58,102,0.12)),
    repeating-linear-gradient(135deg, #e2ecf3 0 18px, #d8e5ee 18px 36px);
  display: grid;
  place-items: center;
}
.card-cat {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.card-body { padding: 14px 16px 18px; }
.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 10px;
}
.card-date {
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.card-date i { margin-right: 4px; color: var(--teal); }

.articles-more { text-align: center; margin-top: 28px; }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
@media (hover:hover) {
  .btn-outline:hover { background: var(--blue); color: #fff; }
}

/* =========================================================
   LINE登録セクション（独立帯）
   ========================================================= */
.line-section {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.12), transparent 50%),
    linear-gradient(135deg, var(--navy), var(--blue) 70%, var(--teal));
  color: #fff;
  padding: 52px 18px;
}
.line-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.line-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.15);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.line-eyebrow i { color: var(--line-green); font-size: 1.05rem; }
.line-title {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 22px;
}
.line-merits {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
}
.line-merits li {
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.line-merits i {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--line-green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
}
.line-count {
  font-size: 0.98rem;
  margin-bottom: 22px;
}
/* [C] 登録受付中バッジ（スタート前・人数表記なし） */
.line-count-badge {
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
}
.line-count-badge strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange-soft);
  margin: 0 6px;
  letter-spacing: 0.02em;
}
.line-count strong {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--orange-soft);
  margin: 0 4px;
}
.line-count-note, .about-note {
  font-size: 0.66rem;
  opacity: 0.7;
  margin-left: 2px;
}
.line-note { margin-top: 12px; font-size: 0.76rem; opacity: 0.85; }

/* =========================================================
   このメディアについて
   ========================================================= */
.about { background: var(--bg-card); }
.about-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(14,58,102,0.04), rgba(14,58,102,0.14)),
    repeating-linear-gradient(135deg, #e2ecf3 0 20px, #d8e5ee 20px 40px);
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}
.about-lead {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.65;
}
.about-lead em { color: var(--orange); }
.about-note { color: var(--ink-soft); opacity: 1; }
.about-body p { margin-bottom: 16px; font-size: 0.95rem; color: var(--ink); }
.about-body strong { color: var(--blue); font-weight: 700; }
.about-sign {
  text-align: right;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* =========================================================
   事業者向けの小さな入口（控えめ）
   ========================================================= */
.biz-entry {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px 44px;
}
.biz-inner {
  background: var(--bg-soft);
  border: 1px dashed var(--blue-light);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
}
.biz-text {
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 10px;
}
.biz-text i { color: var(--blue); margin-right: 6px; }
.biz-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}
.biz-link i { font-size: 0.8rem; transition: transform .15s ease; }
@media (hover:hover) {
  .biz-link:hover i { transform: translateX(3px); }
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 40px 18px 28px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { margin-bottom: 28px; }
.footer-logo { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.footer-logo-brand { font-size: 1.4rem; font-weight: 900; color: #fff; letter-spacing: 0.04em; }
.footer-logo-edition { font-size: 0.86rem; font-weight: 700; color: rgba(255,255,255,0.82); }
.footer-logo-edition b { color: var(--orange-soft); }
.footer-tagline { font-size: 0.8rem; opacity: 0.75; margin-top: 6px; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
  margin-bottom: 28px;
}
.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity .15s ease;
}
@media (hover:hover) { .footer-col a:hover { opacity: 1; } }
.footer-area { font-size: 0.85rem; opacity: 0.8; }
.footer-area span { font-size: 0.78rem; opacity: 0.85; }

.footer-company {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  font-size: 0.76rem;
  opacity: 0.7;
  line-height: 1.7;
}
.footer-copy { margin-top: 8px; }

/* =========================================================
   追従型 LINE登録ボタン
   ========================================================= */
.floating-line {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--line-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.45);
  transition: transform .25s ease, opacity .25s ease;
}
.floating-line i { font-size: 1.35rem; }
.floating-line:active { transform: scale(0.98); }

/* スクロールでLINEセクション内では非表示 */
.floating-line.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   レスポンシブ（タブレット〜PC）
   ========================================================= */
@media (min-width: 600px) {
  body { padding-bottom: 0; } /* 追従ボタンは下記で右下固定に */

  .hero-title { font-size: 2rem; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .category-list { grid-template-columns: repeat(3, 1fr); }
  .category-list > li:nth-child(5) { grid-column: auto; }
  .category-list > li:nth-child(5) .category-item { flex-direction: column; }

  /* PCでは追従ボタンを右下のコンパクト表示に */
  .floating-line {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: auto;
  }
}

@media (min-width: 900px) {
  :root { --maxw: 960px; }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-image { max-height: 620px; }
}

/* =========================================================
   仮置きフレーム（写真プレースホルダー）共通デザイン
   薄いブルーグレー背景＋うっすら斜線（ストライプ）パターン
   ※ .card-thumb / .about-image / .hero-image にも適用される
   ========================================================= */
.photo-frame,
.card-thumb,
.about-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #e7eef4;        /* 薄いブルーグレー */
  border: 1px solid var(--line);
}
/* うっすら斜線（ストライプ）パターン */
.photo-frame::before,
.card-thumb::before,
.about-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(14, 58, 102, 0.10) 0,
    rgba(14, 58, 102, 0.10) 1px,
    transparent 1px,
    transparent 10px
  );
  z-index: 0;
  pointer-events: none;
}
/* 既存カードサムネはアイコンタグを前面に保つ */
.card-thumb .card-cat { z-index: 2; }

/* =========================================================
   記事詳細ページ
   ========================================================= */
.article-page { background: var(--bg); }

.article-main {
  /* 本文は読みやすい狭めの幅に固定（広げすぎない） */
  max-width: 720px;
  margin: 0 auto;
  /* 左右に余白。スマホでも文字が画面端に張り付かないように */
  padding: 0 20px;
}
@media (min-width: 480px) {
  .article-main { padding: 0 24px; }
  /* 帯のはみ出し量も余白に合わせる */
  .article-line { margin-left: -24px; margin-right: -24px; }
}

/* パンくず */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--ink-soft);
  padding: 16px 2px 8px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb i { font-size: 0.62rem; opacity: 0.6; }
.breadcrumb span { color: var(--ink-soft); }
@media (hover:hover) { .breadcrumb a:hover { text-decoration: underline; } }

/* 記事ヘッダー（カテゴリ・タイトル・日付） */
.article-detail { padding: 8px 0 8px; }
.article-loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }

.article-head { margin-bottom: 20px; }
.article-cat {
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}
.article-title {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 12px;
}
.article-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.article-date i { margin-right: 5px; color: var(--teal); }

/* アイキャッチ（16:9） */
.photo-eyecatch {
  aspect-ratio: 16 / 9;
  min-height: 180px;          /* aspect-ratio が効かない環境のフォールバック */
  border-radius: var(--radius);
  margin: 0 0 24px;
}

/* リード文（少し大きめ） */
.article-lead {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin-bottom: 30px;
}

/* 本文 */
.article-body { margin-bottom: 10px; }
.article-p {
  font-size: 1rem;
  line-height: 2.0;
  color: var(--ink);
  margin-bottom: 26px;
}

/* 本文中の写真フレーム（4:3） */
.photo-inline {
  aspect-ratio: 4 / 3;
  min-height: 160px;          /* aspect-ratio が効かない環境のフォールバック */
  border-radius: var(--radius-sm);
  margin: 30px 0;
}

/* 注釈 */
.article-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 28px 0 10px;
  line-height: 1.8;
}

/* 記事末尾 LINE誘導（左右の余白いっぱいまで帯を広げる） */
.article-line {
  margin: 40px -20px 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.12), transparent 50%),
    linear-gradient(135deg, var(--navy), var(--blue) 70%, var(--teal));
  color: #fff;
  padding: 44px 22px;
  border-radius: 0;
  text-align: center;
}
.article-line-inner { max-width: 520px; margin: 0 auto; }
.article-line-title {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.55;
  margin: 16px 0 14px;
}
.article-line-lead {
  font-size: 0.92rem;
  opacity: 0.92;
  margin-bottom: 22px;
}

/* 他の記事も読む */
.related { padding: 44px 0 8px; }
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.related .articles-more { margin-top: 26px; }
.related .btn-outline i { font-size: 0.85rem; margin-right: 4px; }

/* 関連記事カードのサムネ（仮置きフレーム）を横長に収める
   トップの記事カードと同じサイズ感に統一。
   aspect-ratio はフル幅だと高さが大きくなりすぎるため、高さを明示的に固定する。
   ※ 共通 .card-thumb の aspect-ratio に確実に勝つよう !important で固定。 */
.related-grid .card-thumb,
.related-grid .card-thumb.photo-frame {
  aspect-ratio: auto !important;   /* aspect-ratio を無効化して height を優先 */
  height: 180px !important;
  min-height: 0 !important;
  max-height: 200px !important;
}
@media (min-width: 600px) {
  /* 3カラム時はカード幅が狭くなるので、やや低めに */
  .related-grid .card-thumb,
  .related-grid .card-thumb.photo-frame {
    height: 150px !important;
  }
}

@media (min-width: 600px) {
  .article-line { border-radius: var(--radius); margin: 44px 0 0; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .article-title { font-size: 1.75rem; }
}

@media (min-width: 900px) {
  /* PCでも記事の読み幅は固定（広げすぎない） */
  .article-main { max-width: 700px; }
}

/* =========================================================
   [D] 読者コーナー（トップページのナビ導線）
   ========================================================= */
.reader-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 18px;
  background: var(--bg);
}
.reader-nav-lead {
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.reader-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.reader-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.reader-item:active { transform: scale(0.99); }
@media (hover:hover) {
  .reader-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.reader-icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 1.3rem;
}
.reader-a { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.reader-b { background: linear-gradient(135deg, var(--teal), var(--blue-light)); }
.reader-c { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); }
.reader-text { display: flex; flex-direction: column; flex: 1 1 auto; }
.reader-name { font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.reader-desc { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }
.reader-arrow { color: var(--blue); font-size: 0.95rem; flex: 0 0 auto; }

@media (min-width: 600px) {
  .reader-list { grid-template-columns: repeat(3, 1fr); }
  .reader-item { flex-direction: column; text-align: center; gap: 12px; }
  .reader-arrow { display: none; }
}

/* =========================================================
   [D] 読者コーナー 共通（各ページ）
   ========================================================= */
.corner-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* コーナー・ヒーロー（ページ上部の説明） */
.corner-hero {
  text-align: center;
  padding: 36px 4px 8px;
}
.corner-hero-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.corner-hero-icon.reader-a { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.corner-hero-icon.reader-b { background: linear-gradient(135deg, var(--teal), var(--blue-light)); }
.corner-hero-icon.reader-c { background: linear-gradient(135deg, var(--orange), var(--orange-soft)); }
.corner-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 12px;
}
.corner-title-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 6px;
}
.corner-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto;
}

/* テーマ・募集期間の情報ボックス */
.corner-info {
  max-width: 560px;
  margin: 22px auto 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.corner-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.corner-info-label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.corner-info-value { color: var(--ink); font-weight: 500; }
.corner-info-value strong { color: var(--orange); font-weight: 700; }

/* =========================================================
   [D-①] バックナンバー：アコーディオン + PDF埋め込み
   ========================================================= */
.backnumber { padding: 32px 0 20px; }
.accordion { display: grid; gap: 16px; }
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: inherit;
  text-align: left;
}
.accordion-head:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.accordion-year {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.accordion-year .fa-calendar-days { color: var(--teal); font-size: 1rem; }
.accordion-count {
  font-size: 0.76rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 4px;
}
.accordion-toggle {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--blue);
  transition: transform .25s ease, background .15s ease;
}
.accordion-head[aria-expanded="true"] .accordion-toggle { transform: rotate(180deg); background: var(--blue); color: #fff; }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.accordion-panel.is-open { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }
.accordion-body { padding: 4px 16px 20px; }

/* 号別カードリスト */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.issue-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.issue-cover {
  aspect-ratio: 3 / 4;
  min-height: 140px;
  border-radius: 0;
}
.issue-cover .placeholder-label { font-size: 0.72rem; }
.issue-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.issue-no {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.issue-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  flex: 1 1 auto;
}
.issue-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background .15s ease;
}
.issue-pdf-btn i { font-size: 0.9rem; }
@media (hover:hover) { .issue-pdf-btn:hover { background: var(--navy); } }

/* PDF埋め込みプレビュー（仮） */
.pdf-embed {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.pdf-embed-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}
.pdf-embed-head i { color: #d13b3b; }
.pdf-embed-frame {
  aspect-ratio: 3 / 4;
  min-height: 260px;
  border-radius: 0;
  border: none;
}
.pdf-embed-note {
  font-size: 0.76rem;
  color: var(--ink-soft);
  padding: 12px 16px;
  line-height: 1.7;
  background: var(--bg-card);
}
.pdf-embed-note i { color: var(--teal); margin-right: 4px; }

@media (min-width: 600px) {
  .issue-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   [D-②] 読者投稿写真：プロギャラリー風 3列グリッド
   ========================================================= */
.photos-section { padding: 32px 0 20px; }
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.photo-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (hover:hover) {
  .photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.photo-card-frame {
  aspect-ratio: 1 / 1;
  min-height: 120px;
  border-radius: 0;
}
.photo-card-frame .placeholder-label { font-size: 0.72rem; }
.photo-caption {
  padding: 10px 12px 12px;
}
.photo-caption-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.photo-caption-by {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.photo-caption-by i { color: var(--orange); margin-right: 4px; }

@media (min-width: 600px) {
  .photo-gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* =========================================================
   [D-③] 読者投稿川柳：リピーター風カードリスト
   ========================================================= */
.senryu-section { padding: 32px 0 20px; }
.senryu-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.senryu-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 24px 22px;
  position: relative;
  overflow: hidden;
}
.senryu-card::before {
  content: "\201D";
  position: absolute;
  top: 2px; left: 14px;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--bg-soft);
  font-weight: 900;
  z-index: 0;
}
.senryu-body {
  position: relative;
  z-index: 1;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 2.0;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 18px;
}
.senryu-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.senryu-pen {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
}
.senryu-pen i { margin-right: 5px; }
.senryu-area {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.senryu-comment {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
  line-height: 1.7;
}
.senryu-comment i { color: var(--teal); margin-right: 4px; }

@media (min-width: 600px) {
  .senryu-list { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .senryu-body { font-size: 1.4rem; }
}
@media (min-width: 900px) {
  .senryu-body { font-size: 1.5rem; }
}

/* =========================================================
   [D] 応募方法セクション（写真・川柳 共通）
   ========================================================= */
.apply-section {
  margin: 40px -18px 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,0.10), transparent 50%),
    linear-gradient(135deg, var(--navy), var(--blue) 75%, var(--teal));
  color: #fff;
  padding: 40px 22px;
}
.apply-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.apply-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: rgba(255,255,255,0.15);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.apply-title { font-size: 1.35rem; font-weight: 900; line-height: 1.5; margin-bottom: 20px; }
.apply-steps {
  display: grid;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
}
.apply-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.apply-step-no {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
}
.apply-step-text { font-size: 0.9rem; line-height: 1.7; }
.apply-step-text strong { color: var(--orange-soft); }
.apply-note { font-size: 0.78rem; opacity: 0.85; margin-top: 6px; }

@media (min-width: 600px) {
  .apply-section { border-radius: var(--radius); margin: 44px 0 0; }
}

/* コーナー下部：トップへ戻る */
.corner-back { text-align: center; padding: 36px 0 8px; }
