/* =========================================================
   鷺沼モルッククラブ  style.css
   色やフォントを変えたいときは、下の :root の値だけ変更すればOK
   ========================================================= */

:root {
  --green: #219552;         /* ロゴのグリーン */
  --green-300: #7cc79c;     /* 明るめ（装飾・イラスト用） */
  --green-strong: #1b7f45;  /* ボタン用（白文字が読みやすい濃さ） */
  --green-deep: #146337;
  --green-900: #123a25;     /* 一番濃い層（フッター用） */
  --green-soft: #e9f5ee;
  --green-line: #cfe8d9;
  --tint-1: #eef8f1;        /* 薄緑レイヤー1 */
  --tint-2: #dcefe3;        /* 薄緑レイヤー2（1より一段濃い） */
  --ink: #26262a;           /* ロゴの文字色 */
  --ink-soft: #5b5f66;
  --line: #e4e7e5;
  --bg: #ffffff;
  --bg-tint: var(--tint-1);

  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--font-body);

  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(38, 38, 42, 0.04), 0 4px 16px rgba(38, 38, 42, 0.05);
  --header-h: 64px;
  --container: 1040px;
}

/* ---------- ベース ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--green-strong); }

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 720px; }

/* スマホ/PCだけで改行 */
.br-pc { display: none; }
@media (min-width: 768px) {
  .br-pc { display: inline; }
  .br-sp { display: none; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand { display: block; flex-shrink: 1; min-width: 0; }
.brand-logo { height: 22px; width: auto; }

.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s, color 0.2s;
}
.nav-list a:hover { background: var(--green-soft); color: var(--green-deep); }
.nav-list a.nav-cta {
  background: var(--green-strong);
  color: #fff;
  padding: 8px 18px;
  margin-left: 6px;
}
.nav-list a.nav-cta:hover { background: var(--green-deep); color: #fff; }

/* ハンバーガーボタン（スマホのみ表示） */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle:hover { background: var(--green-soft); }
.nav-toggle-bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 859px) {
  .js .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(38, 38, 42, 0.08);
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
  }
  .nav-list a { padding: 12px 16px; font-size: 16px; border-radius: 12px; }
  .nav-list a.nav-cta { margin: 8px 0 0; text-align: center; padding: 12px 16px; }

  /* JSが動かない環境ではメニューを常に表示 */
  .no-js .site-header { position: static; }
  .no-js .site-nav { position: static; box-shadow: none; border: 0; }
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 16px; }
}

/* ---------- セクション共通 ---------- */
section[id] { scroll-margin-top: var(--header-h); }

.section { position: relative; padding: 72px 0 168px; }
.section-tint { background: var(--tint-1); }
.section-tint-deep { background: var(--tint-2); }

/* セクション境目の波（次のセクションの色を波型でかぶせる） */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32px;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.wave svg {
  display: block;
  width: 200%;
  height: 100%;
  animation: wave-scroll 26s linear infinite;
}
.wave path { fill: var(--wave-fill, #fff); }
@media (min-width: 768px) {
  .wave { height: 52px; }
}
@keyframes wave-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wave svg { animation: none; }
}

.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: 14px auto 0;
  background: var(--green);
  border-radius: 4px;
}
.section-lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .section { padding: 104px 0 224px; }
  .section-title { font-size: 34px; }
  .section-head { margin-bottom: 56px; }
}

/* ---------- ボタン ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.btn-row .btn { min-width: 200px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-strong); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-secondary { background: #fff; color: var(--green-deep); border-color: var(--green-line); }
.btn-secondary:hover { border-color: var(--green); }
.btn-wide { width: 100%; max-width: 420px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 112px;
  text-align: center;
  background: linear-gradient(180deg, var(--green-soft) 0%, #fff 100%);
}
.hero-inner { position: relative; z-index: 1; }

#about-club > .container { position: relative; z-index: 1; }
.section-mascot {
  position: absolute;
  bottom: 6px;
  left: 12px;
  width: 340px;
  max-width: 90%;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 768px) {
  .section-mascot { width: 520px; bottom: 10px; left: 24px; }
}

.mascot-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-blink 6s ease-in-out infinite;
}
.mascot-pupil {
  transform-box: fill-box;
  transform-origin: center;
  animation: mascot-look 7s ease-in-out infinite;
}
@keyframes mascot-look {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(14px, -6px); }
  40% { transform: translate(-12px, 6px); }
  65% { transform: translate(0, 10px); }
  85% { transform: translate(10px, -4px); }
}
@keyframes mascot-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-eye, .mascot-pupil { animation: none; }
}

.hero-logo {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 60px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.hero-sub {
  margin: 16px 0 36px;
  font-size: clamp(16px, 4.2vw, 19px);
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .hero { padding: 152px 0 168px; }
}

/* ---------- モルックとは（カード） ---------- */
.card-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.card {
  position: relative;
  background: #fff;
  border: 5px solid var(--green);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 0 0 7px #fff, 9px 9px 0 var(--green-soft);
}

/* ---------- モルックとは：紹介文＋イラスト ---------- */
/* このセクションだけタイトル下の余白が広く見えたので縮める */
#about-molkky .section-head { margin-bottom: 24px; }
@media (min-width: 768px) {
  #about-molkky .section-head { margin-bottom: -8px; }
}

.molkky-intro {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 8px 0 12px;
}
@media (min-width: 768px) {
  .molkky-intro { grid-template-columns: 1.1fr 1fr; gap: 40px; margin: 16px 0 16px; }
}
.molkky-intro-text .section-lead {
  margin: 0 0 14px;
  max-width: none;
  text-align: left;
}
.rule-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-deep);
  text-decoration: none;
}
.rule-link:hover { text-decoration: underline; }
.molkky-intro-figure { display: flex; justify-content: center; }
.molkky-illustration {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}
.card-num {
  display: block;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--tint-2);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-round);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- 団体紹介 ---------- */
.pillar-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
  margin-bottom: 10px;
}
.pillar-list {
  list-style: none;
  padding: 0;
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.pillar-list li {
  position: relative;
  padding-left: 22px;
}
.pillar-list li + li { margin-top: 8px; }
.pillar-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.vision {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 16px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}
.vision-headline {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  margin-bottom: 20px;
}
.vision .pillar-list {
  display: inline-block;
  text-align: left;
}

.pillar-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .vision { padding: 56px 40px; margin-bottom: 24px; }
  .pillar-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.pillar {
  position: relative;
  background: #fff;
  border: 5px solid var(--green);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 0 0 7px #fff, 9px 9px 0 var(--green-soft);
}
.pillar-text {
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- 団体紹介：チーム写真マーキー ---------- */
.team-marquee {
  position: relative;
  width: 100%;
  margin: 40px 0 0;
  overflow: hidden;
}
.team-marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 0 12px;
  animation: team-marquee-scroll 55s linear infinite;
}
.team-marquee img {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}
@keyframes team-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .team-marquee-track { animation: none; }
}
@media (min-width: 768px) {
  .team-marquee { margin-top: 56px; }
  .team-marquee img { width: 160px; height: 160px; border-radius: 18px; }
}

/* ---------- 表（大会実績・活動報告） ---------- */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td:first-child { white-space: nowrap; }
.data-table tbody tr + tr td { border-top: 1px solid var(--line); }
.data-table td a { font-weight: 700; }
.empty-row {
  text-align: center !important;
  color: var(--ink-soft);
  padding: 32px 20px !important;
}
@media (max-width: 480px) {
  .data-table { font-size: 14px; }
  .data-table th,
  .data-table td { padding: 12px 14px; }
}

/* 準備中のお知らせ */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}
.badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--green-strong);
  border-radius: var(--radius-pill);
}
.notice-text { flex: 1 1 260px; font-size: 15px; }
.notice-text strong { color: var(--green-deep); }

/* ---------- お問い合わせ ---------- */
.contact-block { text-align: center; }
.contact-block + .contact-block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.contact-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* お問い合わせセクションだけ左右の余白を狭める */
#contact .container { padding-left: 12px; padding-right: 12px; }

/* Googleフォーム：横幅は画面に合わせて縮み、最大640px */
.form-embed {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.form-embed iframe {
  display: block;
  width: 100%;
  height: 1400px; /* フォーム内にスクロールバーが出ないよう、Google指定値より高めに設定 */
  border: 0;
}

/* ---------- フッター ---------- */
.site-footer {
  position: relative;
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-name {
  font-family: var(--font-round);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.footer-en {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .brand-logo { height: 26px; }
}
