/* =============================================================
   KITAKYUSHU MIRAI LIONS CLUB — official site
   concept: 「文化祭ポスターの熱量 × 写真ドキュメンタリー」
   yellow base / multicolor accents / bold ink lines / pop shadows
   ============================================================= */

/* ---------- tokens ---------- */
:root {
  --yellow: #ffd500;
  --yellow-soft: #ffe763;
  --cream: #fff6d6;
  --paper: #fffdf4;
  --ink: #1b1611;

  --pink: #ef3f8f;
  --orange: #f57a00;
  --green: #00a05a;
  --blue: #0d7fd6;
  --sky: #46bce8;
  --red: #e03c2d;
  --purple: #7a4bd6;

  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 16px;

  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "YuGothic", "BIZ UDGothic", Meiryo, system-ui, -apple-system,
    "Segoe UI", sans-serif;

  --header-h: 64px;
}
@media (min-width: 760px) {
  :root { --header-h: 76px; --shadow: 8px 8px 0 var(--ink); }
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0.02em;
  /* 日本語の改行を文節境界で行い、単語・氏名の途中で折れないようにする。
     auto-phrase 非対応ブラウザ（Firefox 等）は従来どおり文字単位に自動フォールバック。 */
  word-break: auto-phrase;
  line-break: strict;             /* 禁則処理（小さい「っ」等を行頭に置かない） */
  overflow-wrap: break-word;      /* 長い英単語やURLのみ、必要なときだけ折る */
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding: 0; }
li { list-style: none; }
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.4;
  font-feature-settings: "palt";
  letter-spacing: 0.03em;
}
table { border-collapse: collapse; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* skip link */
.skip-link {
  position: absolute;
  left: 8px; top: 8px;
  z-index: 200;
  padding: 0.6em 1.2em;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

/* ---------- icons ---------- */
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- layout helpers ---------- */
.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}
.container--narrow { width: min(100% - 40px, 860px); }
.container--wide { width: min(100% - 40px, 1200px); }

.section { padding-block: clamp(60px, 9vw, 104px); }
.section--slim { padding-block: clamp(36px, 5.5vw, 60px); }
.section--cream { background: var(--cream); }
.section--yellow {
  background: var(--yellow);
  background-image: radial-gradient(rgba(27, 22, 17, 0.08) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
}
.section--ink { background: var(--ink); color: var(--paper); }

/* stripe divider（工事テープ風） */
.stripes {
  height: 14px;
  border-top: var(--line);
  border-bottom: var(--line);
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 12px,
    var(--yellow) 12px 26px
  );
}

/* ---------- section heading ---------- */
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head--center { text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.25em 1em;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--acc, var(--pink));
  margin-bottom: 1.1em;
}
.sec-title {
  font-size: clamp(1.65rem, 4.6vw, 2.6rem);
}
.sec-lead { margin-top: 1em; max-width: 42em; }
.sec-head--center .sec-lead { margin-inline: auto; }

/* marker highlight */
.hl {
  background-image: linear-gradient(
    transparent 60%,
    var(--yellow) 60%,
    var(--yellow) 94%,
    transparent 94%
  );
}
.section--yellow .hl,
.hl--white {
  background-image: linear-gradient(
    transparent 60%,
    #fff 60%,
    #fff 94%,
    transparent 94%
  );
}

/* accent color modifiers（--acc を各所で参照） */
.is-pink { --acc: var(--pink); }
.is-orange { --acc: var(--orange); }
.is-green { --acc: var(--green); }
.is-blue { --acc: var(--blue); }
.is-sky { --acc: var(--sky); }
.is-red { --acc: var(--red); }
.is-purple { --acc: var(--purple); }
.is-yellow { --acc: var(--yellow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.7em;
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn--pink { background: var(--pink); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--lg { padding: 1.05em 2.2em; font-size: 1.06rem; }
.btn .icon { width: 1.05em; height: 1.05em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: center;
}

/* ---------- tags / badges ---------- */
.tag {
  display: inline-block;
  padding: 0.18em 0.95em;
  background: var(--acc, var(--ink));
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.tag--outline { background: #fff; color: var(--ink); }

.tbc {
  display: inline-block;
  padding: 0.1em 0.8em;
  border: 2px dashed #9a938a;
  border-radius: 999px;
  color: #6d675f;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, 1220px);
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 26px; height: auto; flex: none; }
.brand__name {
  display: block;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand__en {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #8a8378;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 10px 6px;
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 22px;
  height: 12px;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 4.75px; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle__label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
html.nav-open .nav-toggle__bars::before { transform: translateY(4.75px) rotate(45deg); }
html.nav-open .nav-toggle__bars::after { transform: translateY(-4.75px) rotate(-45deg); }
html.nav-open .nav-toggle__bars span { opacity: 0; }

/* mobile nav panel */
.global-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--yellow);
  background-image: radial-gradient(rgba(27, 22, 17, 0.08) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  padding: 32px 24px 48px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
html.nav-open .global-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
}
html.nav-open body { overflow: hidden; }
.global-nav__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
  margin-inline: auto;
}
.global-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 0.9em 1.3em;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}
.global-nav__list a::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  transform: rotate(45deg);
}
.global-nav__list a[aria-current="page"] { background: var(--ink); color: #fff; }
.global-nav__list a[aria-current="page"]::after { border-color: var(--yellow); }
.global-nav__cta { background: var(--pink) !important; color: #fff !important; }
.global-nav__cta::after { border-color: #fff !important; }

@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .brand img { width: 30px; }
  .brand__name { font-size: 1.02rem; }
  .global-nav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: none;
    padding: 0;
    overflow: visible;
  }
  .global-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
    max-width: none;
    margin: 0;
  }
  .global-nav__list a {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 8px;
    padding: 0.5em 0.62em;
    font-size: 0.92rem;
    white-space: nowrap;
    position: relative;
  }
  .global-nav__list a::after {
    content: "";
    position: absolute;
    left: 0.7em;
    right: 0.7em;
    bottom: 0.25em;
    width: auto;
    height: 5px;
    border: none;
    border-radius: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .global-nav__list a:hover::after,
  .global-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
  .global-nav__list a[aria-current="page"] { background: none; color: var(--ink); }
  .global-nav__cta {
    background: var(--pink) !important;
    color: #fff !important;
    border: 2px solid var(--ink) !important;
    border-radius: 999px !important;
    box-shadow: 3px 3px 0 var(--ink) !important;
    padding: 0.5em 1.15em !important;
    margin-left: 8px;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .global-nav__cta::after { display: none; }
  .global-nav__cta:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink) !important;
  }
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  background: var(--ink);
  border-bottom: var(--line);
  padding-block: 12px;
}
.ticker__track {
  display: flex;
  gap: 2.6em;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 2.6em;
  color: var(--yellow);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.ticker__track span::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}
.ticker__track span:nth-child(even) { color: #fff; }
.ticker__track span:nth-child(even)::after { background: var(--sky); }
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  background: var(--yellow);
  background-image: radial-gradient(rgba(27, 22, 17, 0.08) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  overflow: clip;
  padding-block: clamp(56px, 8vw, 110px);
}
.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero__catch {
  font-size: clamp(2.5rem, 9.5vw, 4.6rem);
  line-height: 1.28;
  letter-spacing: 0.04em;
}
.hero__catch span { display: block; }
.hero__q { position: relative; display: inline-block; }
.hero__q .swash {
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.22em;
  color: var(--pink);
}
.hero__lead {
  margin-top: 1.6em;
  max-width: 33em;
  font-weight: 600;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.4em;
}
.hero__badges .tag { box-shadow: 2px 2px 0 var(--ink); }
.hero__actions { margin-top: 2em; }

/* hero eyebrow (dark identity pill) */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(27, 22, 17, 0.2);
  padding: 0.45em 1.15em;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 1.3em;
}
.hero__eyebrow .icon { width: 1.05em; height: 1.05em; color: var(--yellow); }

/* hero activity hashtags (links to activity sections) */
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 1.8em;
}
.hero__pills a {
  display: inline-block;
  color: var(--acc, var(--pink));
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hero__pills a::before {
  content: "#";
  margin-right: 0.08em;
  opacity: 0.85;
}
.hero__pills a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
/* darker accents so hashtags stay legible on the yellow hero */
.hero__pills .is-green { --acc: #0a7c46; }
.hero__pills .is-orange { --acc: #cf5f00; }
.hero__pills .is-yellow { --acc: var(--ink); }

.hero__photo { position: relative; width: 100%; max-width: 560px; }
.hero__sticker {
  position: absolute;
  top: -26px;
  right: -10px;
  z-index: 2;
  width: 96px;
  height: 96px;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--pink);
  color: #fff;
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  font-weight: 900;
  font-size: 0.82rem;
  line-height: 1.5;
  transform: rotate(8deg);
}
@media (min-width: 1080px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero__photo { justify-self: end; }
  .hero__sticker { width: 110px; height: 110px; font-size: 0.9rem; top: -30px; right: -18px; }
}

/* ---------- polaroid photo ---------- */
.polaroid {
  position: relative;
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow);
  padding: 10px 10px 12px;
  transform: rotate(var(--tilt, -2deg));
}
.polaroid img { border: 2px solid var(--ink); width: 100%; }
.polaroid figcaption {
  padding-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6d675f;
  text-align: center;
  letter-spacing: 0.06em;
}
.polaroid .tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 104px;
  height: 28px;
  background: rgba(70, 188, 232, 0.75);
  transform: translateX(-50%) rotate(-3deg);
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
}
.polaroid .tape--pink { background: rgba(239, 63, 143, 0.7); }
.polaroid .tape--yellow { background: rgba(255, 213, 0, 0.85); }
.tilt-r { --tilt: 2deg; }
.tilt-0 { --tilt: 0deg; }

/* ---------- card grids ---------- */
.card-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 640px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* value card */
.value-card {
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  position: relative;
}
.value-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  background: var(--acc, var(--pink));
  color: #fff;
  border: var(--line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 20px;
}
.value-card__icon .icon { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.6em; }
.value-card p { font-size: 0.95rem; }
.value-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--acc, var(--pink));
}

/* category card (home) */
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.cat-card__photo {
  aspect-ratio: 16 / 10;
  border-bottom: var(--line);
  overflow: hidden;
}
.cat-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.cat-card:hover .cat-card__photo img { transform: scale(1.04); }
.cat-card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cat-card__body .tag { align-self: flex-start; }
.cat-card h3 { font-size: 1.14rem; display: flex; align-items: center; gap: 0.5em; }
.cat-card h3 .icon { color: var(--acc, var(--ink)); }
.cat-card p { font-size: 0.9rem; }
.cat-card__more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--acc, var(--pink));
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* ---------- story split ---------- */
.split {
  display: grid;
  gap: 44px;
  align-items: center;
}
.split__photo { max-width: 520px; margin-inline: auto; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 60px; }
  .split--flip .split__photo { order: -1; }
}
/* 会長写真: モバイルでは見出し直下・デスクトップでは右カラムに出し分け */
.president-photo--sp { display: none; }
@media (max-width: 899.98px) {
  .president-photo--sp { display: block; margin: 26px auto; }
  .president-photo--pc { display: none; }
}
/* PC版も polaroid 本来の傾き(-2deg)に統一（reveal の transform:none より高い特異性で上書き） */
html.js figure.president-photo--pc { transform: translateY(18px) rotate(-2deg); }
html.js figure.president-photo--pc.is-in { transform: rotate(-2deg); }
.split__body .btn-row { margin-top: 2em; }
.split__body p + p { margin-top: 1em; }

/* ---------- blog cards ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-card__thumb {
  aspect-ratio: 16 / 10;
  border-bottom: var(--line);
  overflow: hidden;
  background: #eee;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb--logo {
  background: #dff2fb;
  display: grid;
  place-content: center;
}
.post-card__thumb--logo img {
  width: auto;
  height: 76%;
  object-fit: contain;
  margin: auto;
}
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 12px; }
.post-card__date { font-size: 0.8rem; font-weight: 700; color: #8a8378; letter-spacing: 0.06em; }
.post-card h3 { font-size: 1.04rem; line-height: 1.55; }
.post-card p { font-size: 0.88rem; color: #4c463e; }

/* ---------- gallery / members ---------- */
.snap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 18px;
}
@media (min-width: 760px) { .snap-grid { grid-template-columns: repeat(3, 1fr); gap: 34px 26px; } }
@media (min-width: 1080px) { .snap-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.snap {
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  padding: 8px 8px 10px;
  transform: rotate(var(--r, 0deg));
}
.snap-grid > .snap:nth-child(4n + 1) { --r: -1.4deg; }
.snap-grid > .snap:nth-child(4n + 2) { --r: 1.1deg; }
.snap-grid > .snap:nth-child(4n + 3) { --r: 1.6deg; }
.snap-grid > .snap:nth-child(4n + 4) { --r: -1deg; }
.snap img {
  width: 100%;
  aspect-ratio: var(--ar, 3 / 4);
  object-fit: cover;
  border: 2px solid var(--ink);
}
.snap--sq img { --ar: 1 / 1; }
.snap--l img { --ar: 4 / 3; }
.snap figcaption {
  padding-top: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #6d675f;
  text-align: center;
  line-height: 1.5;
}

/* ---------- lists with date chips ---------- */
.act-list { display: flex; flex-direction: column; gap: 12px; margin-top: 1.4em; }
.act-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 600;
}
.act-list .date {
  flex: none;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--acc, var(--pink));
  letter-spacing: 0.04em;
  min-width: 5.4em;
}

/* ---------- activity category block ---------- */
.cat-block { padding-block: clamp(48px, 7vw, 80px); }
.cat-block + .cat-block { border-top: 3px dashed rgba(27, 22, 17, 0.25); }
.cat-block__head { display: flex; align-items: center; gap: 14px; margin-bottom: 0.8em; }
.cat-block__head .icon { width: 34px; height: 34px; color: var(--acc, var(--ink)); flex: none; }
.cat-block__head h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }

/* ---------- stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 26px; } }
.stat {
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 14px 22px;
  text-align: center;
}
.stat__num {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--acc, var(--pink));
  line-height: 1.2;
  white-space: nowrap;
}
.stat__num small { font-size: 0.55em; font-weight: 900; }
.stat__label { margin-top: 6px; font-size: 0.85rem; font-weight: 700; }

/* ---------- LIONS acronym ---------- */
.acronym {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.acronym li {
  background: #fff;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 16px 14px;
  text-align: center;
  flex: 1 1 140px;
  max-width: 200px;
}
.acronym .ltr {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--acc, var(--pink));
  line-height: 1.2;
}
.acronym .word {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.acronym .ja {
  display: block;
  font-size: 0.78rem;
  color: #6d675f;
  font-weight: 600;
}

/* ---------- service fields ---------- */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 760px) { .field-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .field-grid { grid-template-columns: repeat(4, 1fr); } }
.field {
  background: #fff;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 20px 16px;
  text-align: center;
}
.field .icon { width: 30px; height: 30px; margin-inline: auto; color: var(--acc, var(--pink)); }
.field h3 { font-size: 0.98rem; margin-top: 10px; }
.field p { font-size: 0.8rem; color: #4c463e; margin-top: 4px; line-height: 1.7; }

/* ---------- service cards (what we actually do) ---------- */
.service-grid { display: grid; gap: 26px; }
@media (min-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .service-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
}
/* 丸ゴシック（吹き出しタイトル用・使用グリフのみのサブセット） */
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/mplus-rounded-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
.service-card__title {
  position: relative;
  width: 80%;              /* カード内側幅の80%で全カード統一 */
  margin: 0 auto;
  padding: 0.45em 0.5em 0.5em;
  background: #fbd503;
  color: #222222;
  border-radius: 999px;
  font-family: "M PLUS Rounded 1c", var(--font-sans);
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.4;
  letter-spacing: 0.14em;  /* 字間をゆったりと */
  text-indent: 0.14em;     /* 末尾に付く字間ぶんのセンターずれを補正 */
}
.service-card__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top: 10px solid #fbd503;
  border-bottom: 0;
}
/* 4列時はカードが狭くなるため、タイトルを1行に収まるサイズへ */
@media (min-width: 1080px) {
  .service-card__title {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }
}
.service-card__media {
  width: min(84%, 280px);
  margin: 18px auto 16px;
}
.service-card__media img { width: 100%; height: auto; }
.service-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.service-card__body > p { font-size: 0.92rem; }
.service-card__body > p:first-of-type { margin-bottom: 14px; }
.service-card__mirai {
  margin-top: auto;
  text-align: left;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.6;
}
.service-card__mirai .icon { width: 18px; height: 18px; color: var(--acc, var(--pink)); flex: none; margin-top: 0.15em; }
.service-card__mirai b { color: var(--acc, var(--pink)); }

/* 横並び時に「みらいの活動」の上端を行内で揃える（subgrid対応ブラウザ） */
@supports (grid-template-rows: subgrid) {
  .service-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;   /* タイトル / 画像 / 説明 / みらいの活動 */
    row-gap: 0;
  }
  .service-card__mirai { margin-top: 14px; }
}

/* ---------- org chart ---------- */
.org { max-width: 560px; margin-inline: auto; }
.org li { position: relative; padding-bottom: 34px; }
.org li:last-child { padding-bottom: 0; }
.org li::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 3px;
  height: 24px;
  background: var(--ink);
  transform: translateX(-50%);
}
.org li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.org li:last-child::before, .org li:last-child::after { display: none; }
.org__node {
  background: #fff;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 16px 20px;
  text-align: center;
}
.org__node strong { display: block; font-size: 1.05rem; font-weight: 900; }
.org__node span { display: block; font-size: 0.8rem; color: #6d675f; font-weight: 600; }
.org__node--me {
  background: var(--yellow);
  position: relative;
}
.org__node--me .org-badge {
  position: absolute;
  top: -14px;
  right: 12px;
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.1em 0.9em;
  font-size: 0.72rem;
  font-weight: 800;
  transform: rotate(3deg);
}

/* ---------- spec table ---------- */
.spec-table {
  width: 100%;
  background: #fff;
  border: var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.spec-table th, .spec-table td {
  padding: 15px 18px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 2px solid rgba(27, 22, 17, 0.12);
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th {
  width: 9em;
  background: var(--cream);
  border-right: 2px solid rgba(27, 22, 17, 0.12);
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { border-right: none; border-bottom: none; padding-bottom: 4px; }
  .spec-table td { padding-top: 4px; }
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 34px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 26px; } }
.steps li { position: relative; }
.step-card {
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 22px 26px;
  height: 100%;
  text-align: center;
}
.step-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  margin: -56px auto 14px;
  background: var(--acc, var(--pink));
  color: #fff;
  border: var(--line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900;
  font-size: 1.3rem;
}
.steps li { padding-top: 26px; }
.step-card h3 { font-size: 1.08rem; margin-bottom: 0.5em; }
.step-card p { font-size: 0.88rem; text-align: left; }

/* ---------- notice ---------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 3px dashed var(--ink);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 0.88rem;
  font-weight: 600;
}
.notice .icon { color: var(--orange); margin-top: 0.3em; }

/* ---------- form ---------- */
.form-grid { display: grid; gap: 26px; }
/* hidden属性を確実に効かせる（display:grid/flex がUA既定の display:none を上書きするため）。
   送信完了後にフォームが消えず二重送信できてしまう不具合の対策 */
.form-grid[hidden], .form-result[hidden] { display: none; }
.form-field label { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 10px; }
.req {
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.05em 0.6em;
}
.req--optional { background: #b7b1a7; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: #fff;
  border: var(--line);
  border-radius: 12px;
  padding: 0.85em 1em;
  box-shadow: 3px 3px 0 rgba(27, 22, 17, 0.15);
}
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field .hint { font-size: 0.8rem; color: #6d675f; margin-top: 8px; }
.form-actions { text-align: center; margin-top: 10px; }
.form-result {
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 28px;
  text-align: center;
}
.form-result .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: #fff;
  background: var(--green);
  border: var(--line);
  border-radius: 50%;
  padding: 12px;
  box-sizing: content-box;
  width: 32px;
  height: 32px;
}
.form-result h2 { font-size: 1.3rem; margin-bottom: 0.6em; }
.form-result p { font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .sec-title { font-size: clamp(1.9rem, 5.5vw, 3rem); }
.cta-band .sec-lead { margin-inline: auto; font-weight: 600; }
.cta-band .btn-row { justify-content: center; margin-top: 2.4em; }

/* Instagram strip */
.ig-strip {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  justify-content: center;
}
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 3px solid var(--pink);
  padding-bottom: 2px;
}
.ig-link:hover { color: var(--pink); }
.ig-link .icon { width: 1.3em; height: 1.3em; }

/* ---------- video embed (click-to-play, no external lib) ---------- */
.video-embed {
  position: relative;
  width: min(100%, 920px);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #000;
}
.video-embed__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  position: relative;
}
.video-embed__btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-embed__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 22, 17, 0.32);
  transition: background 0.2s ease;
}
.video-embed__btn:hover::after,
.video-embed__btn:focus-visible::after { background: rgba(27, 22, 17, 0.14); }
.video-embed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 84px;
  height: 84px;
  display: grid;
  place-content: center;
  background: var(--pink);
  color: #fff;
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.video-embed__btn:hover .video-embed__play { transform: translate(-50%, -50%) scale(1.08); }
.video-embed__play svg { width: 34px; height: 34px; margin-left: 5px; }
.video-embed__label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 9px 16px;
  background: var(--yellow);
  border-bottom: var(--line);
  border-right: var(--line);
  border-bottom-right-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  pointer-events: none;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-grid { display: grid; gap: 26px; }
@media (min-width: 800px) { .video-grid { grid-template-columns: 1fr 1fr; } }
.video-grid .video-embed { width: 100%; }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  background: var(--yellow);
  background-image: radial-gradient(rgba(27, 22, 17, 0.08) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  padding-block: clamp(52px, 7vw, 88px);
  overflow: clip;
}
.page-hero h1 {
  font-size: clamp(2rem, 6.4vw, 3.3rem);
  line-height: 1.35;
}
.page-hero .lead { margin-top: 1.2em; max-width: 38em; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 88px) 0 32px;
}
.site-footer a { text-decoration: none; }
.site-footer__grid {
  display: grid;
  gap: 44px;
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr; gap: 60px; }
}
.site-footer__brand { display: flex; gap: 24px; align-items: flex-start; }
.site-footer__brand img {
  width: 92px;
  flex: none;
  /* 枠は付けず、ペナントの形に沿ったドロップシャドウで浮かせる */
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
}
.site-footer__name { font-size: 1.05rem; font-weight: 900; }
.site-footer__en {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #9a938a;
  margin-bottom: 12px;
}
.site-footer__motto { font-size: 0.86rem; color: #d8d2c8; max-width: 26em; }
.site-footer .ig-link { color: var(--yellow); border-bottom-color: var(--yellow); margin-top: 16px; }
.site-footer .ig-link:hover { color: var(--yellow-soft); }
.site-footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  font-weight: 700;
  color: #d8d2c8;
  padding-block: 4px;
}
.site-footer__nav a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}
.site-footer__nav a:hover { color: #fff; }
.site-footer__nav li:nth-child(2) a::before { background: var(--pink); }
.site-footer__nav li:nth-child(3) a::before { background: var(--sky); }
.site-footer__nav li:nth-child(4) a::before { background: var(--green); }
.site-footer__nav li:nth-child(5) a::before { background: var(--orange); }
.site-footer__nav li:nth-child(6) a::before { background: var(--purple); }
.site-footer__nav li:nth-child(7) a::before { background: var(--red); }
.site-footer__bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__serve {
  font-weight: 900;
  letter-spacing: 0.24em;
  font-size: 0.85rem;
  color: var(--yellow);
}
.site-footer__copy { font-size: 0.74rem; color: #9a938a; }

/* ---------- reveal animation ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero slideshow ---------- */
.hero-slides {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid var(--ink);
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slides img.is-active { opacity: 1; }
/* floating caption card, synced to the slideshow */
.hero-slides__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 46px);
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 14px 8px 11px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}
.hero-slides__cap .icon { width: 20px; height: 20px; color: var(--pink); flex: none; }
/* スライダーの手動送り矢印（白・半透明でデザインになじませる） */
.hero-slides__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  padding: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.45));
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.hero-slides__arrow svg { width: 30px; height: 30px; }
.hero-slides__arrow--prev { left: 6px; }
.hero-slides__arrow--next { right: 6px; }
.hero-slides__arrow:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.12);
}

.hero-slides__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 9px;
}
.hero-slides__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(27, 22, 17, 0.18);
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-slides__dots span.is-active {
  background: var(--pink);
  transform: scale(1.25);
}

/* ---------- photo film strip ---------- */
.photo-strip {
  overflow: hidden;
  padding: 34px 0 38px;
  background: var(--paper);
}
.photo-strip__track {
  display: flex;
  width: max-content;
  animation: photo-strip 42s linear infinite;
}
/* 1セット=写真9枚。padding-right でセット間の継ぎ目も gap と同幅にし、
   -25%（=1セット幅ちょうど）でズレなくループさせる */
.photo-strip__set {
  flex: none;
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
}
@keyframes photo-strip {
  to { transform: translateX(-25%); }
}
.photo-strip figure {
  flex: none;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 6px 6px 9px;
  transform: rotate(var(--r, 0deg));
}
.photo-strip figure:nth-child(odd) { --r: -1.6deg; }
.photo-strip figure:nth-child(even) { --r: 1.3deg; }
.photo-strip img {
  height: 150px;
  width: auto;
  border: 2px solid var(--ink);
}

/* ---------- micro effects ---------- */
@keyframes bob {
  from { transform: rotate(8deg) translateY(0); }
  to { transform: rotate(8deg) translateY(-7px); }
}
.hero__sticker { animation: bob 2.8s ease-in-out infinite alternate; }

/* marker highlight draws in on reveal */
.hl { background-repeat: no-repeat; background-size: 100% 100%; }
html.js .reveal .hl {
  background-size: 0% 100%;
  transition: background-size 0.7s ease 0.4s;
}
html.js .reveal.is-in .hl { background-size: 100% 100%; }

/* crop helper for portrait photos in landscape frames */
.crop-top { object-position: center 20%; }

/* polaroids straighten on hover */
.snap { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.snap:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 6px 9px 0 var(--ink);
}

/* staggered reveal inside grids */
html.js .card-grid > .reveal:nth-child(3n + 2) { transition-delay: 0.1s; }
html.js .card-grid > .reveal:nth-child(3n) { transition-delay: 0.2s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .photo-strip__track { animation: none; }
  .hero__sticker { animation: none; }
  .hero-slides img { transition: none; }
  html.js .reveal .hl { background-size: 100% 100%; transition: none; }
}

/* ---------- お問い合わせフォーム送信まわり ---------- */
/* ハニーポット欄（視覚・支援技術の両方から隠す） */
.lchp-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-error {
  margin-top: 18px;
  padding: 12px 16px;
  background: #fdecea;
  border: 2px solid var(--red);
  border-radius: 12px;
  color: #8c2318;
  font-weight: 700;
  font-size: 0.9rem;
}
.cf-turnstile { min-height: 65px; }
