/* ==========================================================
   宗像市 部活動の地域展開 LP
   ブレークポイント: 1024px(タブレット以下) / 600px(スマホ)
   ========================================================== */

/* ---------- 基本設定 ---------- */
:root {
  --blue: #0869b5;
  --deep: #075398;
  --green: #20a957;
  --orange: #f58228;
  --purple: #a847c3;
  --cream: #f7f1df;
  --ink: #17324a;
  --max: 1180px;
  --navband: #e1edf5;
  --navtext: #194593;
  --bar-h: 64px;
  --band-h: 48px;
  --header-h: 114px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

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

/* 固定ヘッダーに見出しが隠れないようにする */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.wrap {
  width: min(var(--max), calc(100% - 42px));
  margin: auto;
}

.panel { background: #fffdf8; }

.note {
  font-size: 12px;
  margin: 6px 0;
}

/* ---------- ヘッダー(宗像市公式サイトに合わせた構成) ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 8px #17324a14;
}

/* 上段: ロゴと公式サイトへのボタン */
.nav {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  flex: 0 1 auto;
  min-width: 0;
}

.logo img {
  width: 353px;
  display: block;
}

.official {
  padding: 10px 17px;
  background: var(--deep);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.headOfficial { margin-left: auto; }

/* 下段: 水色の帯メニュー */
.navlinks {
  background: var(--navband);
  border-top: 1px solid #cfdde8;
  border-bottom: 1px solid #cfdde8;
}

.navInner {
  display: flex;
  height: var(--band-h);
  align-items: center;
}

.navInner a {
  flex: 1 1 auto;
  padding: 4px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--navtext);
  font-size: 15px;
  font-weight: 700;
  border-left: 1px solid #9fb6c9;
}

.navInner a:nth-last-of-type(2) { border-right: 1px solid #9fb6c9; }

.navInner a:hover { text-decoration: underline; }

.navInner a.navOfficial { display: none; }

/* メニューボタン(タブレット以下で表示) */
.menuBtn {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--deep);
  cursor: pointer;
  position: relative;
}

.menuBtn span,
.menuBtn span::before,
.menuBtn span::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s, opacity .2s;
}

.menuBtn span { top: 23px; }
.menuBtn span::before { left: 0; top: -7px; }
.menuBtn span::after { left: 0; top: 7px; }

.menuBtn[aria-expanded="true"] span { background: transparent; }
.menuBtn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menuBtn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- メインビジュアル ---------- */
.hero {
  padding: 12px 0 18px;
  background: var(--cream);
}

.hero h1 { margin: 0; }

.hero img {
  width: 100%;
  display: block;
  border-radius: 28px;
  box-shadow: 0 10px 30px #735f3920;
}

/* ---------- 導入 ---------- */
.intro { padding: 16px 0 10px; }

.introBox {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  min-height: 180px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px #806f4b12;
}

.introText { padding: 22px 28px; }

.title {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 24px;
  line-height: 1.3;
}

.title .ico {
  color: #08a9bd;
  margin-right: 9px;
}

.introText p {
  font-size: 15px;
  margin: 8px 0;
}

.introText p.note { font-size: 12px; }

.introText strong { color: var(--blue); }

.introPhoto {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.introPhoto img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
}

/* ---------- スケジュール ---------- */
.schedule { padding: 8px 0 24px; }

.scheduleImage img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 知りたい情報から探す ---------- */
.info {
  padding: 14px 0 26px;
  background: #fbf8ef;
}

.schedule h2,
.info h2,
.media h2 {
  font-size: 23px;
  color: var(--deep);
  margin: 8px 0 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 5px 15px #5f4f3020;
  border: 1px solid #e7e2d5;
}

.cardHead {
  min-height: 72px;
  margin: 0;
  padding: 15px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}

.cardHead b { font-size: 27px; }

.blue .cardHead { background: var(--blue); }
.green .cardHead { background: var(--green); }
.orange .cardHead { background: var(--orange); }
.purple .cardHead { background: var(--purple); }

.cardBody { padding: 10px 15px 14px; }

.linkItem,
.plainItem {
  display: block;
  position: relative;
  padding: 12px 2px 12px 20px;
  font-size: 14px;
  line-height: 1.5;
}

.linkItem {
  text-decoration: none;
  border-bottom: 1px dashed #ddd;
}

.linkItem::before,
.plainItem::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 15px;
  color: #0b72bd;
  font-size: 10px;
}

.linkItem::after {
  content: "↗";
  color: #0b72bd;
  font-weight: 900;
  margin-left: 5px;
}

.linkItem.noLine { border-bottom: 0; }

/* 注記の下に、リンクと同じ点線を引く */
.note.noteLine {
  margin: -6px 0 0;
  padding: 0 2px 12px 20px; /* 一覧表リンクの文字位置にそろえる */
  border-bottom: 1px dashed #ddd;
}

.linkItem:hover {
  color: var(--blue);
  text-decoration: underline;
}

.soon {
  margin: 0 0 8px;
  background: #fff0c2;
  color: #80621c;
  border-radius: 7px;
  text-align: center;
  padding: 7px;
  font-size: 13px;
  font-weight: 800;
}

.activityThumb {
  height: 72px;
  margin: 4px 0 3px;
  border-radius: 5px;
  background: url("images/image_02.jpg") center / cover;
}

/* ---------- 動画・むなクル ---------- */
.media {
  padding: 12px 0 30px;
  background: #fffdf8;
}

.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.videoCard { text-decoration: none; }

.videoBox {
  aspect-ratio: 16 / 6;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #dfe7e9;
  color: #fff;
  font-weight: 900;
  position: relative;
}

.videoBox img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 再生ボタン(サムネイルの上に重ねる) */
.videoBox.live::after {
  content: "▶";
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #000a;
  color: #fff;
  font-size: 18px;
}

.videoBox.muted::after {
  content: "準備中";
  padding: 8px 12px;
  background: #7779;
  border-radius: 7px;
}

.videoLabel {
  font-size: 13px;
  margin-top: 5px;
}

.munakuruWrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 6px;
}

.munakuru {
  width: min(560px, 90%);
  min-height: 120px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  text-decoration: none;
  border: 2px solid #bde9fb;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(110deg, #fff 0 60%, #e8f8ff 100%);
  box-shadow: 0 5px 16px #1776a31a;
}

.munaText { padding: 15px 20px; }

.munaText small {
  font-size: 13px;
  font-weight: 900;
  color: var(--deep);
}

.munaText h3 {
  margin: 0;
  color: #0589bd;
  font-size: 36px;
  line-height: 1.1;
}

.munaText h3 span { color: #f0a719; }

.munaText p {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--deep);
}

.munaBtn {
  display: inline-block;
  background: var(--deep);
  color: #fff;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 900;
}

.munaPhoto { background: url("images/image_02.jpg") center / cover; }

/* 関連する主なサイト */
.related {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 18px 22px 12px;
  background: #fff;
  border: 1px solid #e7e2d5;
  border-radius: 13px;
}

.related h3 {
  margin: 0 0 4px;
  color: var(--deep);
  font-size: 18px;
}

.related h3 span { color: var(--blue); }

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}

/* ---------- しめくくり ---------- */
.closing {
  margin-top: 12px;
  background: linear-gradient(#ffffff44, #ffffff88), url("images/image_01.jpg") center 48% / cover;
  padding: 22px 0;
  text-align: center;
  border-top: 1px solid #d8edf5;
}

.closing p {
  margin: 0;
  color: var(--deep);
  font-weight: 900;
  font-size: 18px;
}

.closing a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  background: #fff;
  color: var(--deep);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 900;
}

/* 文の途中(「く。」だけ等)で折り返さないよう、言葉のまとまりごとに改行する */
.nobr { display: inline-block; }

/* ---------- フッター(宗像市公式サイトに合わせた構成) ---------- */
.footer { background: #fff; }

/* 上端の波形 */
.footerWave {
  height: 20px;
  background: radial-gradient(circle at 20px 26px, #046da1 22px, transparent 23px) repeat-x;
  background-size: 40px 20px;
}

.footerMain {
  padding: 34px 0 38px;
  color: #fff;
  background: linear-gradient(#046da1 0%, #0b6085 59%, #1ba2c5 100%);
}

.footerGrid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}

/* カラーのロゴを白抜きで表示 */
.footerLogo {
  display: block;
  width: 190px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer p {
  font-size: 14px;
  margin: 0;
}

.footer p b { font-size: 18px; }

.footerLinks {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.footerLinks a {
  display: block;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
}

.footerLinks a::before {
  content: "»";
  margin-right: 6px;
}

.footerLinks a:hover { text-decoration: underline; }

.copyright {
  padding: 5px 12px;
  background: #1ba1c4;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/* ==========================================================
   タブレット以下(1024px以下)
   ========================================================== */
@media (max-width: 1024px) {
  :root {
    --bar-h: 62px;
    --header-h: 62px;
  }

  .logo img { width: 300px; }

  .menuBtn { display: block; }

  .headOfficial { display: none; }

  /* 帯メニューは開閉式にする */
  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 0;
    box-shadow: 0 12px 20px #17324a1f;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .navlinks.open { display: block; }

  .navInner {
    display: block;
    height: auto;
    padding: 4px 0 18px;
  }

  .navInner a,
  .navInner a:nth-last-of-type(2) {
    display: block;
    padding: 14px 6px;
    text-align: left;
    font-size: 16px;
    border: 0;
    border-bottom: 1px solid #b9cbd9;
  }

  .navInner a.navOfficial {
    display: block;
    margin-top: 14px;
    padding: 14px 17px;
    border: 0;
    text-align: center;
    color: #fff;
  }

  .cards { grid-template-columns: 1fr 1fr; }

  .activityThumb { height: 110px; }
}

/* ==========================================================
   スマホ(600px以下)
   ========================================================== */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 24px); }

  /* スマホ用ロゴ(image_09_sp.png)に切り替わる */
  .logo img {
    width: auto;
    height: 54px;
  }

  .hero { padding: 8px 0 12px; }

  /* スマホでは正方形の専用画像(image_05_sp.jpg)に切り替わる */
  .hero img { border-radius: 18px; }

  .introBox { grid-template-columns: 1fr; }

  .introText { padding: 18px; }

  .title { font-size: 21px; }

  .introText p { font-size: 15px; }

  .introPhoto { padding: 10px; }

  .introPhoto img { max-height: none; }

  .schedule h2,
  .info h2,
  .media h2 { font-size: 20px; }

  .cards { grid-template-columns: 1fr; }

  .cardHead { min-height: auto; }

  .linkItem,
  .plainItem { font-size: 15px; }

  .videos { grid-template-columns: 1fr; }

  .related { padding: 16px 16px 8px; }

  .related ul { grid-template-columns: 1fr; }

  .videoBox { aspect-ratio: 16 / 7; }

  .munakuru {
    grid-template-columns: 1fr .45fr;
    width: 100%;
  }

  .munaText { padding: 13px; }

  .munaText h3 { font-size: 30px; }

  .closing p { font-size: 15px; }

  .footerMain { padding: 26px 0 28px; }

  .footerGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footerLogo { width: 160px; }
}
