/* =====================================================
   国分アンビシャス広場 共通スタイル v3
   コンセプト：オフホワイト × 温かいオレンジ × アースグリーン
   親しみやすいカード型デザイン（丸ゴシック）
===================================================== */
:root {
  --base: #fdfbf7;          /* 優しいオフホワイト */
  --white: #ffffff;
  --ink: #3d3833;           /* 柔らかい墨色 */
  --orange: #e67e22;        /* メインアクセント */
  --orange-deep: #c9660f;
  --green: #7a9e5f;         /* アースグリーン */
  --green-deep: #5d7f45;
  --earth: #c99a3f;         /* 実りの黄土色 */
  --earth-deep: #a87e2a;
  --gray: #8a837a;
  --line: rgba(61,56,51,0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  background: var(--base);
  /* 左右余白の優しいドット模様 */
  background-image:
    radial-gradient(rgba(230,126,34,0.07) 2px, transparent 2px),
    radial-gradient(rgba(122,158,95,0.06) 2px, transparent 2px);
  background-size: 34px 34px, 34px 34px;
  background-position: 0 0, 17px 17px;
}
h1, h2, h3, h4 { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; margin: 0; }
img { max-width: 100%; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ===== ヘッダー（中央寄せロゴ） ===== */
.site-header {
  background: var(--white);
  text-align: center;
  padding: 34px 20px 24px;
  border-bottom: 1px solid var(--line);
}
.site-header .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(230,126,34,0.35);
}
.site-header h1 {
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.08em;
}
.site-header h1 a { color: inherit; text-decoration: none; }
.site-header .sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gray);
}
.site-header .slogan {
  margin-top: 8px;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-deep);
  letter-spacing: 0.18em;
}

/* ===== ナビ（カレント＝オレンジ角丸ボタン） ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,251,247,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
}
.navbar a {
  display: block;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.navbar a:hover { background: rgba(230,126,34,0.12); color: var(--orange-deep); }
.navbar a.current {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 3px 8px rgba(230,126,34,0.35);
}
.navbar a.yt { color: #c0392b; }
@media (max-width: 720px) {
  .navbar a { padding: 8px 13px; font-size: 13px; }
}

/* ===== ヒーロー画像 ===== */
.hero-image {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    linear-gradient(rgba(61,56,51,0.42), rgba(61,56,51,0.42)),
    url('hero.jpg'),
    linear-gradient(135deg, #f0a04b 0%, #e67e22 45%, #7a9e5f 100%);
  background-size: cover, cover, cover;
  background-position: center;
  color: #fff;
  padding: 70px 24px;
}
.hero-image .eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.9;
}
.hero-image h2 {
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-image .hero-sub {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-image.tall { min-height: 400px; }

/* ヒーロー：写真スライドショー（ホーム） */
.hero-image.has-slides {
  overflow: hidden;
  background-image: linear-gradient(135deg, #f0a04b 0%, #e67e22 45%, #7a9e5f 100%);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slides img.is-prev { opacity: 1; z-index: 1; transition: none; }
.hero-slides img.is-active { opacity: 1; z-index: 2; }
/* 文字を読みやすくするための薄いオーバーレイ */
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse at center, rgba(40,36,32,0.28) 0%, rgba(40,36,32,0) 70%),
    linear-gradient(rgba(61,56,51,0.40), rgba(61,56,51,0.40));
}
.hero-image .hero-content { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: none; }
}

/* ページタイトル帯（写真なしページ用） */
.page-title-band {
  background: linear-gradient(135deg, rgba(230,126,34,0.14), rgba(122,158,95,0.14));
  text-align: center;
  padding: 44px 24px;
  border-bottom: 1px solid var(--line);
}
.page-title-band .eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 8px;
}
.page-title-band h2 {
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.1em;
}

/* ===== セクション共通 ===== */
.section { padding: 56px 0 64px; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--orange-deep);
  background: rgba(230,126,34,0.12);
  border-radius: 999px;
  padding: 4px 18px;
  margin-bottom: 12px;
}
.sec-head h3, .sec-head h2 {
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.08em;
}
.sec-head .meta { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); }
.article p { margin: 0 0 18px; }
.article h3.sub-head {
  font-size: 20px;
  font-weight: 900;
  margin: 46px 0 16px;
  padding-left: 14px;
  border-left: 6px solid var(--orange);
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.note { font-size: 13.5px; color: var(--gray); }
.quote-src { font-size: 13px; color: var(--gray); text-align: right; margin-top: -8px; }
.textlink { color: var(--orange-deep); font-weight: 700; }

/* リード文（ホーム用） */
.lead {
  text-align: center;
  padding: 56px 24px 48px;
}
.lead .catch {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(21px, 3.8vw, 32px);
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.lead .catch .accent { color: var(--orange); }
.lead p { max-width: 600px; margin: 0 auto; font-size: 15.5px; }

/* 対象者のご案内バッジ */
.target-banner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 16px;
  padding: 18px 26px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(61,56,51,0.06);
}
.target-banner .t-main {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 16.5px;
  color: var(--green-deep);
}
.target-banner .t-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-deep);
  background: rgba(230,126,34,0.1);
  border-radius: 999px;
  padding: 4px 16px;
}

/* ===== 三つの柱（カード型 3カラム） ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 6px 18px rgba(61,56,51,0.08);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(61,56,51,0.12); }
.pillar-card.heart  { border-color: rgba(230,126,34,0.45); }
.pillar-card.view   { border-color: rgba(122,158,95,0.5); }
.pillar-card.will   { border-color: rgba(201,154,63,0.5); }
.pillar-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}
/* アイコンは画像に差し替え可：<img src="images/icon-xxx.png" alt=""> を中に置くだけでOK */
.heart .pillar-icon { background: rgba(230,126,34,0.14); }
.view  .pillar-icon { background: rgba(122,158,95,0.16); }
.will  .pillar-icon { background: rgba(201,154,63,0.16); }
.pillar-card h4 {
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 14px;
  letter-spacing: 0.05em;
}
.heart h4 { color: var(--orange-deep); }
.view  h4 { color: var(--green-deep); }
.will  h4 { color: var(--earth-deep); }
.pillar-card p { margin: 0; font-size: 15px; }

/* ===== 番号付きリスト（三原則・目的など） ===== */
.principles { list-style: none; margin: 0; padding: 0; counter-reset: pr; }
.principles li {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px 20px 74px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 4px 12px rgba(61,56,51,0.06);
}
.principles li::before {
  content: counter(pr);
  counter-increment: pr;
  position: absolute;
  left: 20px; top: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.principles .p-title {
  display: block;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--orange-deep);
}
.principles.green li::before { background: var(--green); }

/* ===== 12の提案・コンパクト番号リスト ===== */
.proposals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  counter-reset: pp;
}
@media (max-width: 680px) { .proposals { grid-template-columns: 1fr; } }
.proposals li {
  background: var(--white);
  border-radius: 12px;
  padding: 13px 18px 13px 58px;
  position: relative;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(61,56,51,0.05);
}
.proposals li::before {
  content: counter(pp);
  counter-increment: pp;
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(122,158,95,0.18);
  color: var(--green-deep);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 囲みボックス ===== */
.box {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px 32px;
  margin: 0 0 22px;
  box-shadow: 0 4px 14px rgba(61,56,51,0.06);
}
.box .box-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  color: var(--orange-deep);
  font-size: 17px;
  margin-bottom: 10px;
}

/* ===== 開催情報テーブル ===== */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  font-size: 15px;
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(61,56,51,0.06);
  border: 1px solid var(--line);
}
.info-table th {
  font-family: 'Zen Maru Gothic', sans-serif;
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  width: 28%;
  vertical-align: top;
  background: rgba(230,126,34,0.08);
  color: var(--orange-deep);
  font-weight: 900;
}
.info-table td { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* ===== 最新号 ===== */
.issue-frame {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(61,56,51,0.1);
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
}
.issue-frame:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(61,56,51,0.14); }
.issue-frame img { width: 100%; display: block; border-radius: 10px; }

/* ===== YouTubeバナー ===== */
.yt-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.yt-banner h2 { font-size: 24px; margin-bottom: 10px; letter-spacing: 0.08em; font-weight: 900; }
.yt-banner p { font-size: 14.5px; color: rgba(255,255,255,0.85); margin: 0 0 24px; }
.yt-btn {
  display: inline-block;
  background: #fff;
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 900;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 14px 42px;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.yt-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.22); }

/* ===== バックナンバー（サムネイルグリッド） ===== */
.bn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px;
}
.bn-item { text-decoration: none; color: var(--ink); display: block; }
.bn-item .thumb {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 8px;
  aspect-ratio: 210/297;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(61,56,51,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.bn-item:hover .thumb {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(230,126,34,0.22);
  border-color: rgba(230,126,34,0.5);
}
.bn-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 10px;
}
.bn-item .cap {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: center;
}
.bn-item .no {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--orange-deep);
}
.bn-item .date { font-size: 13px; color: var(--gray); }
.bn-note { margin-top: 26px; font-size: 13.5px; color: var(--gray); text-align: center; }

/* ===== 場所カード ===== */
.place-card {
  background: var(--white);
  border-radius: 20px;
  border: 2px solid rgba(122,158,95,0.4);
  padding: 30px 34px;
  box-shadow: 0 6px 18px rgba(61,56,51,0.08);
  font-size: 15.5px;
  text-align: center;
}
.place-card .label {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--green-deep);
  font-weight: 700;
  margin-bottom: 8px;
}
.place-card .name {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 4px;
}

/* ===== 戻るボタン・フッター ===== */
.backlink {
  display: inline-block;
  margin-top: 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--orange);
  text-decoration: none;
  padding: 14px 42px;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(230,126,34,0.35);
  transition: background 0.2s, transform 0.2s;
}
.backlink:hover { background: var(--orange-deep); transform: translateY(-2px); }
.center { text-align: center; }

footer {
  background: var(--ink);
  color: rgba(253,251,247,0.75);
  text-align: center;
  font-size: 13px;
  padding: 32px 24px 44px;
  letter-spacing: 0.04em;
  margin-top: 60px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ===== 過去の号（PDF）・ビューア ===== */
.pdf-archive { margin-top: 64px; padding-top: 48px; border-top: 1px dashed rgba(61,56,51,0.2); }
.bn-lead { font-size: 15px; text-align: center; margin: -12px auto 20px; max-width: 700px; }
.bn-years { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 8px; }
.bn-years a {
  font-family: 'Zen Maru Gothic', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--orange-deep); text-decoration: none;
  border: 1.5px solid rgba(230,126,34,0.45); border-radius: 999px; padding: 3px 14px;
  background: var(--white);
}
.bn-years a:hover { background: rgba(230,126,34,0.1); }
.bn-year {
  font-size: 20px; font-weight: 900; letter-spacing: 0.06em;
  margin: 40px 0 18px; padding-left: 14px;
  border-left: 6px solid var(--orange); border-radius: 3px;
  scroll-margin-top: 16px;
}
.bn-item .var {
  font-size: 11.5px; font-weight: 700; color: var(--green-deep);
  background: rgba(122,158,95,0.15); border-radius: 999px; padding: 1px 9px; white-space: nowrap;
}
.bn-item .cap { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 520px) {
  .bn-grid-pdf { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .bn-grid-pdf .bn-item .thumb { padding: 5px; border-radius: 12px; }
  .bn-grid-pdf .bn-item .cap { gap: 6px; }
  .bn-grid-pdf .bn-item .no { font-size: 15px; }
  .bn-grid-pdf .bn-item .date { font-size: 12px; }
}

html.pv-lock, html.pv-lock body { overflow: hidden; }
.pv {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(40,36,32,0.78);
  display: flex; flex-direction: column;
}
.pv[hidden] { display: none; }
.pv-bar {
  background: var(--white); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-bottom: 3px solid var(--orange);
}
.pv-title { font-family: 'Zen Maru Gothic', sans-serif; font-weight: 900; font-size: 15px; line-height: 1.4; }
.pv-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pv-btn {
  min-width: 38px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 15px/1 'Noto Sans JP', sans-serif; color: var(--ink); text-decoration: none;
  background: var(--base); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.pv-btn:hover { border-color: rgba(230,126,34,0.6); color: var(--orange-deep); }
.pv-btn:disabled { opacity: 0.35; cursor: default; }
.pv-wide { font-size: 13.5px; }
.pv-close { background: var(--orange); color: #fff; border-color: var(--orange); font-size: 20px; }
.pv-close:hover { background: var(--orange-deep); color: #fff; }
.pv-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
.pv-pages { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: max-content; min-width: 100%; }
.pv-pages canvas { display: block; margin: 0 auto; max-width: none; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.35); }
.pv-msg { color: #fff; text-align: center; padding: 40px 12px; font-size: 15px; }
.pv-msg[hidden] { display: none; }
@media (max-width: 520px) {
  .pv-bar { padding: 6px 8px; }
  .pv-title { font-size: 14px; width: 100%; }
  .pv-tools { width: 100%; justify-content: space-between; gap: 4px; }
  .pv-btn { min-width: 34px; height: 34px; padding: 0 8px; }
  .pv-wide { font-size: 12.5px; }
  .pv-body { padding: 8px; }
}

/* ===== スマホ表示の調整（390px 前後） =====
   - 日本語の見出しや短い文が「す。」「う」だけで次の行に落ちないよう、
     対応ブラウザでは文節で改行します（word-break: auto-phrase）。 */
h1, h2, h3, h4,
.hero-sub, .target-banner .t-main, .target-banner .t-note,
.place-card .name, .proposals li, .principles .p-title,
.yt-banner p, .lead p, footer, .bn-lead, .bn-note {
  word-break: auto-phrase;
}
@media (max-width: 520px) {
  .site-header .sub { font-size: 10.5px; letter-spacing: 0.14em; }
  .hero-image { padding: 56px 16px; }
  .hero-image .eyebrow { font-size: 11.5px; letter-spacing: 0.24em; }
  .hero-image h2 { font-size: 24px; letter-spacing: 0.05em; line-height: 1.6; }
  .hero-image .hero-sub { font-size: 14.5px; }
  .target-banner { padding: 16px 16px; }
  .target-banner .t-note { font-size: 13px; padding: 4px 12px; }
  .info-table th { width: auto; padding: 14px 12px; white-space: nowrap; }
  .info-table td { padding: 14px 14px; }
  .proposals li { padding: 13px 14px 13px 54px; }
  .box { padding: 22px 20px; }
  .place-card { padding: 26px 18px; }
  .place-card .name { font-size: 18px; }
  .article h3.sub-head { font-size: 19px; }
  .bn-years a { padding: 6px 14px; }
}
