@charset "utf-8";

/* =========================================================
   たまほく青空図書館 ─ スタイルシート
   1. 変数 / リセット
   2. 共通パーツ
   3. ヘッダー
   4. ヒーロー
   5. カードセクション（イベント内容／イベントについて）
   6. マルシェ
   7. 本のおすそわけ
   8. アクセス
   9. フッター
   10. レスポンシブ
   ========================================================= */

/* 1. 変数 / リセット
   ------------------------------------------------------- */
:root {
  --green: #3f5730;
  --green-dark: #334826;
  --sage: #7a8a5e;
  --terracotta: #c67139;
  --brown: #5a4a33;
  --brown-dark: #463929;
  --bg: #f6efdf;
  --bg-hero-top: #fbf5e6;
  --bg-hero-bottom: #f4ecd8;
  --surface: #fdf8ec;
  --sand: #f0e6cd;
  --img-bg: #FDFBF0;   /* 透過PNGの下に敷く色 */
  --ink: #2b2a26;
  --ink-soft: #5c5647;
  --ink-mid: #514b3d;
  --line: rgba(63, 87, 48, .12);

  --font-display: 'Zen Maru Gothic', sans-serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;

  --wrap: 1320px;
  --pad-x: clamp(16px, 3vw, 40px);
  --radius-card: 20px;
  --radius-block: 22px;
  --shadow-card: 0 6px 18px rgba(90, 74, 51, .07);
}

* { box-sizing: border-box; text-wrap: pretty; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; transition: color .15s ease, background-color .15s ease; }
a:hover { color: var(--terracotta); }
a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }

::selection { background: #e8d9bb; }

/* 2. 共通パーツ
   ------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 40px);
  color: var(--green);
}

.section-lead {
  margin: 10px 0 0;
  text-align: center;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.btn-green { background: var(--green); color: var(--surface); }
.btn-green:hover { background: var(--green-dark); color: var(--surface); }
.btn-brown { background: var(--brown); color: var(--surface); }
.btn-brown:hover { background: var(--brown-dark); color: var(--surface); }
.btn-outline {
  padding: 15px 26px;
  gap: 10px;
  font-size: 16px;
  border: 1.5px solid #8c8069;
  background: var(--surface);
  color: #3f3a30;
}
.btn-outline:hover { background: #f2e8d2; color: #3f3a30; }

/* 募集用の主役ボタン（テラコッタ） */
.btn-cta {
  align-self: flex-start;
  padding: 18px 34px;
  font-size: clamp(17px, 1.9vw, 20px);
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 8px 20px rgba(198, 113, 57, .3);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-cta:hover {
  background: #b3632f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(198, 113, 57, .36);
}
.btn-cta .btn-arrow { transition: transform .15s ease; }
.btn-cta:hover .btn-arrow { transform: translateX(4px); }

/* 画像プレースホルダー（実画像に差し替え可） */
.ph {
  display: grid;
  place-content: center;
  width: 100%;
  border-radius: 16px;
  background: #eee6d2;
  color: #9a8e75;
  font-size: 13px;
  text-align: center;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph span { padding: 8px 14px; line-height: 1.6; }
.ph-contain img { object-fit: contain; }

/* 透過PNGの背景色（--img-bg）
   - 画像が入っている .ph は枠ごとこの色に（object-fit: contain の余白も同色）
   - 画像自体にも背景色を指定（透過部分がこの色で埋まる）
   - :has() 非対応ブラウザ向けに .ph-white を手動指定しても同じ結果になる */
.ph:has(img),
.ph-white {
  background: var(--img-bg);
  color: var(--ink-soft);
}
.ph img,
.ph-white img {
  background: var(--img-bg);
}

/* 背景を敷かず、透過のままなじませる画像枠 */
.ph.ph-bare,
.ph.ph-bare img {
  background: transparent;
}
.ph.ph-bare { border-radius: 0; box-shadow: none; overflow: visible; }
.ph.ph-bare img { object-fit: contain; }

/* 埋め込み地図（iframe）は枠いっぱいに表示 */
.ph:has(iframe) { display: block; background: var(--img-bg); }
.ph iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

/* 3. ヘッダー
   ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 14px var(--pad-x);
  background: rgba(246, 239, 223, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--green);
  letter-spacing: .02em;
}

.global-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  font-weight: 500;
}
.global-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.global-nav .is-current { padding-bottom: 3px; border-bottom: 2px solid var(--sage); }

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--surface);
  font-weight: 700;
}
.nav-contact:hover { background: var(--green-dark); color: var(--surface); }

/* 4. ヒーロー
   ------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--bg-hero-top) 0%, var(--bg-hero-bottom) 100%);
  border-bottom: 1px solid rgba(63, 87, 48, .1);
}
.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(28px, 4vw, 56px);
}

.hero-tagline {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #8a7b5c;
  letter-spacing: .08em;
}
.hero-edition {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--terracotta);
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.14;
  letter-spacing: .02em;
  color: var(--green);
}
.hero-sub {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.9vw, 21px);
  color: #4d4638;
}
.hero-text {
  margin: 18px 0 0;
  font-size: clamp(14px, 1.5vw, 16px);
  color: #544e40;
}

.hero-date {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--green);
}
.hero-date .d { font-size: clamp(30px, 4.4vw, 46px); }
.hero-date .w { font-size: clamp(16px, 2vw, 22px); }
.hero-date .sep { font-size: clamp(24px, 3vw, 34px); color: var(--terracotta); }
.hero-date .time { font-size: clamp(16px, 2vw, 22px); margin-left: 6px; }

.hero-place {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500;
  color: #3f3a30;
}
.note-pill {
  padding: 5px 16px;
  border: 1.5px solid #b9a888;
  border-radius: 999px;
  font-size: 13px;
  color: #6c6252;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.badge-circle {
  display: grid;
  place-content: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: var(--green);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
}

.hero-visual { min-height: clamp(300px, 42vw, 520px); border-radius: 24px; box-shadow: 0 18px 40px rgba(90, 74, 51, .12); }

/* 5. カードセクション
   ------------------------------------------------------- */
.section { padding-top: clamp(40px, 5vw, 72px); }
.section-about { padding-top: clamp(36px, 4.5vw, 64px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(24px, 3vw, 36px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.card { border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(90, 74, 51, .12); }
.card .ph { height: 130px; border-radius: 14px; }
.card-about .ph { height: 120px; }
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--green);
}
.card-about h3 { font-size: clamp(17px, 1.9vw, 20px); }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* 6. マルシェ
   ------------------------------------------------------- */
.marche { margin-top: clamp(24px, 3vw, 36px); }
.marche-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius-block);
  background: var(--sand);
}
.marche-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.date-chip {
  display: grid;
  place-content: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--green);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}
.marche h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 38px);
  color: var(--green);
}
.marche p { margin: 16px 0 0; font-size: clamp(14px, 1.5vw, 16px); color: var(--ink-mid); }
.marche .ph { min-height: 200px; height: 100%; border-radius: 18px; }

/* 出展者募集ボックス */
.marche-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding: 22px 24px 20px;
  border: 2px solid var(--terracotta);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(198, 113, 57, .12);
}
.marche-cta-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.marche p.marche-cta-text {
  margin: 0;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.75;
  color: var(--ink-mid);
}
.marche p.marche-deadline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--terracotta);
}
.marche-deadline span {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(198, 113, 57, .12);
  font-size: 13px;
  font-weight: 700;
  color: var(--terracotta);
}

/* 募集バッジ（マルシェ・おすそわけ共通） */
.recruit-badge,
.share-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: .04em;
  white-space: nowrap;
}
.recruit-badge::before,
.share-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  .recruit-badge::before, .share-badge::before { animation: none; }
}

/* 7. 本のおすそわけ
   ------------------------------------------------------- */
.share { margin-top: clamp(20px, 2.5vw, 28px); }
.share-inner {
  padding: clamp(24px, 3.2vw, 40px);
  border: 2px solid var(--terracotta);
  border-radius: var(--radius-block);
  background: var(--bg-hero-top);
}

/* 見出しまわり */
.share-head { text-align: center; }
.share-head h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.6vw, 40px);
  color: var(--green);
}
.share-catch {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--brown);
}

.share-main {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1fr;
  align-items: start;
  gap: clamp(18px, 2.5vw, 34px);
  margin-top: clamp(20px, 2.6vw, 30px);
}
.share-aside { display: flex; flex-direction: column; gap: 14px; }
.share-visual { height: 180px; }
.share-body { min-width: 0; }
.share-body p { margin: 0; font-size: clamp(14px, 1.5vw, 16px); color: var(--ink-mid); }
.share-body strong { color: var(--terracotta); font-weight: 700; }

.share-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--green);
}
.share-sub::after { content: ""; flex: 1; height: 2px; background: var(--line); }

/* 持ち込みステップ */
.share-steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.share-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.step-num {
  flex: none;
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--green);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
}
.share-steps b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--brown);
  line-height: 1.6;
}
.share-steps p { margin: 2px 0 0; font-size: 14px; line-height: 1.8; }

.share-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.share-body p.share-ref { margin-top: 16px; }
.share-ref a { text-decoration: underline; text-underline-offset: 3px; }

.share-contact {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--sand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--brown);
  text-align: center;
}
.share-contact a { color: var(--green); }
.share-note {
  margin: 0;
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--sand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--brown);
  text-align: center;
  line-height: 1.7;
}

/* 8. アクセス
   ------------------------------------------------------- */
.access { padding-block: clamp(36px, 4.5vw, 64px) clamp(40px, 5vw, 72px); }
.access-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(18px, 2.5vw, 30px);
}
.access-body { flex: 2 1 300px; min-width: 0; }
.access-body h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.8vw, 32px);
  color: var(--green);
}
.access-office {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 21px);
  color: #3f3a30;
}
.access-tel {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--green);
}
.access-tel span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: #6c6252;
}
.access-body .btn { margin-top: 22px; gap: 14px; padding: 16px 32px; font-size: 16px; }
.access-map { flex: 2 1 280px; min-height: 230px; height: clamp(230px, 30vw, 380px); border-radius: 18px; }
.access-side { display: flex; flex: 1 1 200px; flex-direction: column; gap: 12px; }
.access-side p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--brown);
  line-height: 1.8;
}
.access-side .ph { flex: 1; min-height: 170px; border-radius: 18px; }

/* 9. フッター
   ------------------------------------------------------- */
.site-footer { background: var(--green); color: #f2ecdb; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
  padding-block: 26px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 2vw, 22px);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 22px); font-size: 13px; }
.footer-nav a { color: #e3dcc7; white-space: nowrap; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: #dcd4bd;
  line-height: 1.7;
}

/* 主催・協力 */
.footer-credit {
  padding-block: 18px 24px;
  border-top: 1px solid rgba(242, 236, 219, .25);
}
.footer-credit p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 15px);
  color: #f2ecdb;
  line-height: 1.9;
}
.credit-label {
  padding-right: 10px;
  border-right: 1.5px solid rgba(242, 236, 219, .5);
  color: #cdd8b6;
}

/* 10. レスポンシブ
   ------------------------------------------------------- */
@media (max-width: 720px) {
  .site-header { gap: 12px; }
  .share-main { grid-template-columns: 1fr; }
  .share-aside { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .share-aside .share-visual { flex: 1 1 150px; height: 150px; }
  .share-aside .share-note { flex: 1 1 100%; order: 1; }
  .btn-cta { align-self: stretch; justify-content: center; }
  .marche-cta-text br, .share-catch br { display: none; }
  .global-nav { gap: 12px; font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .footer-inner { justify-content: flex-start; }
}
