﻿/* ============================================================
   つなぐむ — おとなの大運動会  style.css  (green theme)
   ============================================================ */

/* ── CSS 変数 ── */
:root {
  --green:    #4ade80;
  --green-dk: #16a34a;
  --green-nv: #14532d;
  --green-lt: #dcfce7;
  --sky:      #f0fdf4;
  --text:     #14532d;
  --sub:      #15803d;
  --white:    #ffffff;
  --card-r:   20px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── リセット & ベース ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── スクロール進捗 ── */
#undoukai-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-dk));
  z-index: 9999;
  transition: width .05s linear;
}

/* ── カスタムカーソル ── */
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 32px;
  height: 32px;
  border: 2px solid var(--green-dk);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .22s var(--ease-out-expo),
              height .22s var(--ease-out-expo),
              border-color .22s ease,
              opacity .18s ease;
  opacity: 0;
}
.cursor-ring.moving { opacity: 1; }
.cursor-ring.hover  { width: 80px; height: 80px; border-color: var(--green); border-width: 1.5px; }

/* ── ローダー ── */
#loader-overlay {
  position: fixed;
  inset: 0;
  background: var(--green-nv);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.lo-main { position: relative; display: flex; align-items: center; justify-content: center; }
.lo-ring { position: absolute; inset: -60px; pointer-events: none; }
.lo-ring-svg { width: 100%; height: 100%; animation: loRingSpin 12s linear infinite; }
.lrc-outer { animation: loRingSpin 18s linear infinite reverse; }
@keyframes loRingSpin { to { transform: rotate(360deg); transform-origin: center; } }

.lo-tsunagu {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lo-char {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 900;
  color: var(--white);
  animation: loCharIn .6s var(--ease-out-expo) calc(var(--d)) backwards;
}
@keyframes loCharIn {
  from { opacity: 0; transform: translateY(20px) scale(.8); }
  to   { opacity: 1; transform: none; }
}
.lo-rope {
  display: flex;
  align-items: center;
  width: 50px;
  overflow: visible;
}
.lo-rope svg { width: 100%; height: 22px; }
.rop1, .rop2, .rop3 {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: ropeIn .7s var(--ease-out-expo) .5s forwards;
}
@keyframes ropeIn { to { stroke-dashoffset: 0; } }

.lo-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(260px, 70vw);
}
.lo-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  overflow: hidden;
}
#load-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), #86efac);
  transition: width .12s linear;
}
.lo-pct {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
}

/* ── サイトヘッダー ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  background: rgba(20,83,45,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,222,128,.12);
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out-expo),
              background .3s ease;
}
.site-header.visible { transform: translateY(0); }
.site-header.scrolled { background: rgba(15,61,32,.97); }

.sh-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.sh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  flex-shrink: 0;
}
.sh-logo-mark {
  width: 34px; height: 34px;
  background: var(--green-dk);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
}
.sh-logo-text {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.sh-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sh-nav a {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.sh-nav a:hover { color: #fff; background: rgba(74,222,128,.15); }

.sh-social {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  padding: 0;
  transition: color .25s ease, background .25s ease;
}
.sh-social:hover { color: var(--green) !important; background: rgba(74,222,128,.15) !important; }
.sh-cta {
  color: var(--green-nv) !important;
  background: var(--green) !important;
  font-weight: 900 !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  margin-left: 8px;
}
.sh-cta:hover { background: #86efac !important; }

.sh-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.sh-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  border-radius: 99px;
  transition: transform .3s, opacity .3s;
}
.sh-hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.sh-hamburger.active span:nth-child(2) { opacity: 0; }
.sh-hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── ヒーロー ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #052e16 0%, #0f3d20 45%, #14532d 100%);
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, rgba(5,46,22,.32) 0%, rgba(15,61,32,.22) 45%, rgba(20,83,45,.32) 100%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb-1 {
  width: 480px; height: 480px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(74,222,128,.18) 0%, transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-2 {
  width: 360px; height: 360px;
  bottom: -100px; right: 10%;
  background: radial-gradient(circle, rgba(22,163,74,.22) 0%, transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 240px; height: 240px;
  top: 40%; right: 20%;
  background: radial-gradient(circle, rgba(134,239,172,.12) 0%, transparent 70%);
  animation: orbFloat 7s ease-in-out 2s infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.06); }
}

.hero-char-wrap {
  position: absolute;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.hero-ready .hero-char-wrap {
  animation: fadeUp .9s var(--ease-out-expo) .5s forwards;
}
.hero-char-left {
  left: clamp(24px, 10vw, 180px);
  bottom: clamp(16px, 7vh, 100px);
}
.hero-char-right {
  right: clamp(24px, 10vw, 180px);
  bottom: clamp(16px, 5vh, 70px);
}
.hero-char {
  display: block;
  width: clamp(90px, 13vw, 220px);
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.35));
  animation: orbFloat 7s ease-in-out infinite;
}
.hero-char-right .hero-char {
  animation-delay: 1.2s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  will-change: transform;
}
.hero-label {
  font-size: clamp(.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--green);
  text-transform: uppercase;
  opacity: 0;
}
.hero-ready .hero-label {
  animation: fadeUp .7s var(--ease-out-expo) .05s forwards;
}

/* ── ヒーロー メインタイトル ── */
.hero-main-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .12em;
}
.hmt-tsunagu {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(3.2rem, 12vw, 9.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: .06em;
  text-shadow: 0 4px 24px rgba(74,222,128,.25), 0 0 50px rgba(74,222,128,.1);
  opacity: 0;
}
.hero-ready .hmt-tsunagu {
  animation: htCharIn 1s var(--ease-out-expo) calc(var(--d)) forwards;
}
.hmt-otona {
  color: #86efac;
  font-style: normal;
}
.hmt-daiun {
  white-space: nowrap;
}
.hmt-sub {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(1.8rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: rgba(255,255,255,.75);
  line-height: 1.1;
  letter-spacing: .18em;
  opacity: 0;
}
.hero-ready .hmt-sub {
  animation: fadeUp .9s var(--ease-out-expo) calc(var(--d)) forwards;
}

.hero-tsunagu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ht-char {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  opacity: 0;
}
.hero-ready .ht-char {
  animation: htCharIn .9s var(--ease-out-expo) calc(var(--d)) forwards;
}
@keyframes htCharIn {
  from { opacity: 0; transform: translateY(32px) scale(.85); }
  to   { opacity: 1; transform: none; }
}
.ht-rope {
  width: clamp(36px, 5vw, 72px);
  height: auto;
  flex-shrink: 0;
  opacity: 0;
}
.ht-rope path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}
.hero-ready .ht-rope {
  opacity: 1;
  transition: opacity 0s calc(var(--d));
}
.hero-ready .ht-rope path {
  animation: ropeDraw .8s var(--ease-out-expo) calc(var(--d)) forwards;
}
@keyframes ropeDraw {
  from { stroke-dashoffset: 120; }
  to   { stroke-dashoffset: 0; }
}

.hero-sub-jp {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 900;
  color: rgba(255,255,255,.75);
  letter-spacing: .15em;
  opacity: 0;
}
.hero-ready .hero-sub-jp {
  animation: fadeUp .7s var(--ease-out-expo) 1.1s forwards;
}

.hero-desc {
  font-size: clamp(.9rem, 2.2vw, 1.1rem);
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  opacity: 0;
}
.hero-ready .hero-desc {
  animation: fadeUp .7s var(--ease-out-expo) 1.3s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
  animation: scrollLineAnim 2s ease-in-out infinite;
}
@keyframes scrollLineAnim {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(.6); opacity: .4; }
}
.hero-scroll-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .7rem;
  letter-spacing: .18em;
}

/* ── ページコンテンツ ── */
.page-content { background: var(--sky); }

/* ── セクション共通 ── */
.sec { padding: 96px 0; }
.sec-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.sec-head {
  text-align: center;
  margin-bottom: 56px;
}
.sec-en {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: .9rem;
  letter-spacing: .28em;
  color: var(--green-dk);
  margin-bottom: 8px;
}
.sec-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--green-nv);
  margin-bottom: 16px;
}
.sec-desc {
  font-size: 1rem;
  color: var(--sub);
  line-height: 1.9;
}

/* ── スクロールアニメーション ── */
[data-animate] {
  opacity: 0;
  transition: opacity .7s var(--ease-out-expo) calc(var(--ad, 0s)),
              transform .7s var(--ease-out-expo) calc(var(--ad, 0s));
}
[data-animate="from-bottom"] { transform: translateY(40px); }
[data-animate="from-left"]   { transform: translateX(-40px); }
[data-animate="from-right"]  { transform: translateX(40px); }
[data-animate].is-visible    { opacity: 1; transform: none; }

/* ── About Nav Cards ── */
.sec-anc { background: var(--white); }
.anc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-nav-wrap {
  position: relative;
  border-radius: var(--card-r);
}
.anc-float-badge {
  position: absolute;
  top: -14px; right: -10px;
  width: 44px; height: 44px;
  background: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(74,222,128,.4);
}
.anc-fb-q {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green-nv);
  line-height: 1;
}

.about-nav-card {
  display: block;
  position: relative;
  height: 280px;
  border-radius: var(--card-r);
  overflow: hidden;
  background: var(--sky);
  border: 1.5px solid rgba(74,222,128,.2);
  transition: box-shadow .3s ease, transform .3s ease;
}
.about-nav-card:hover {
  box-shadow: 0 18px 40px rgba(22,163,74,.18);
  transform: translateY(-4px);
}

.anc-static {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 1;
  transition: opacity .3s ease;
}
.about-nav-wrap.is-hovered .anc-static { opacity: 0; }

.anc-icon {
  width: 64px; height: 64px;
  background: var(--green-lt);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-nv);
}
.anc-icon-q {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-dk);
  line-height: 1;
}
.anc-label {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--green-nv);
  text-align: center;
  line-height: 1.5;
}

.anc-cursor-photo {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  left: 50%; top: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.about-nav-wrap.is-hovered .anc-cursor-photo { opacity: 1; }

.anc-photo-scale {
  transform: scale(0.2);
  transition: transform .48s cubic-bezier(.34, 1.56, .64, 1);
}
.about-nav-wrap.is-hovered .anc-photo-scale { transform: scale(1); }

.anc-ring-outer {
  width: 240px; height: 240px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.anc-ring-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 4px solid var(--green);
  box-shadow: 0 0 0 6px rgba(74,222,128,.2);
}
.anc-ring-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.anc-ring-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(20,83,45,.7);
  color: var(--white);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: .7rem;
  font-weight: 900;
  text-align: center;
  padding: 6px 8px;
  line-height: 1.4;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

/* ── マーキー ── */
.marquee-section {
  background: var(--green-nv);
  padding: 20px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
}
.marquee-inner {
  display: flex;
  gap: 0;
  animation: marqueeLeft 22s linear infinite;
}
@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mq-word {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .1em;
  padding: 0 24px;
}
.mq-sep {
  color: var(--green);
  padding: 0 8px;
  font-size: 1.2rem;
}

/* ── About（テキスト表現）── */
.sec-about { background: #ffffff; }
.about-feat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #d1fae5;
  background: #fff;
  box-shadow: 0 4px 24px rgba(22,163,74,.07);
}
.about-feat {
  display: grid;
  grid-template-columns: 80px 1fr 120px 148px;
  align-items: start;
  gap: 24px;
  padding: 36px 36px;
  border-bottom: 1.5px solid #d1fae5;
  transition: background .25s ease;
}
.about-feat:last-child { border-bottom: none; }
.about-feat:hover { background: #f0fdf4; }
.about-feat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--green-dk);
  letter-spacing: .04em;
}
.about-feat-body h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #0f3d20;
  margin-bottom: 10px;
}
.about-feat-body p {
  font-size: .95rem;
  color: #166534;
  line-height: 1.85;
}
.about-feat-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: .75rem;
  letter-spacing: .18em;
  color: rgba(22,163,74,.5);
  align-self: center;
  text-align: right;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  line-height: 1;
}
.about-feat-img {
  align-self: center;
  justify-self: end;
  width: 148px;
  height: 148px;
}
.about-feat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Topics ── */
.sec-topics { background: var(--white); overflow: hidden; }
.topics-wrap {
  display: grid;
  grid-template-columns: 1fr 52%;
  min-height: 560px;
  align-items: start;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}
.topics-left { padding: 72px 40px 72px 28px; }

.topics-head-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}
.topics-title-group { flex: 1; }
.topics-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 10vw, 8rem);
  color: var(--green-dk);
  letter-spacing: .04em;
  line-height: 1;
}
.topics-title-sub { display: none; }

.topics-stamp-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}
.topics-stamp-ring1,
.topics-stamp-ring2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.topics-stamp-ring1 {
  border: 2.5px dashed var(--green-dk);
  animation: stampRing 10s linear infinite;
}
.topics-stamp-ring2 {
  inset: 8px;
  border: 1.5px dashed rgba(22,163,74,.4);
  animation: stampRing 14s linear infinite reverse;
}
@keyframes stampRing { to { transform: rotate(360deg); } }
.topics-stamp {
  position: absolute;
  inset: 0;
  background: var(--green-dk);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 14px;
  box-shadow: 0 6px 20px rgba(22,163,74,.3);
}
.topics-stamp-text1,
.topics-stamp-text2 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900;
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: .06em;
  line-height: 1.5;
}

.topics-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.topics-item {
  padding: 18px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease;
  border-bottom: 1px solid rgba(74,222,128,.15);
}
.topics-item:last-child { border-bottom: none; }
.topics-item:hover,
.topics-item.is-active { background: var(--sky); }
.topics-item-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.topics-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ic, var(--green-dk));
  flex-shrink: 0;
}
.topics-item-hd h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green-nv);
}
.topics-item-bd {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s ease, opacity .3s ease, padding-top .3s ease;
  padding-top: 0;
}
.topics-item:hover .topics-item-bd,
.topics-item.is-active .topics-item-bd {
  max-height: 200px;
  opacity: 1;
  padding-top: 10px;
}
.topics-item-bd p {
  font-size: .9rem;
  color: var(--sub);
  line-height: 1.75;
  margin-bottom: 8px;
}
.topics-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.topics-tags span {
  font-size: .78rem;
  color: #fff;
  background: var(--tc, var(--green-dk));
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: .04em;
}

.topics-photo-wrap {
  position: sticky;
  top: 88px;
  height: calc(100vh - 100px);
  overflow: hidden;
}
.topics-photo {
  width: 100%;
  height: 100%;
  clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
}
.topics-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease, transform .3s ease;
}

/* ── Gallery ── */
.sec-gallery { background: var(--sky); overflow: hidden; }
.gal-viewport {
  overflow: hidden;
  width: 100%;
}
.gal-belt { overflow: hidden; width: 100%; }
.gal-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.gal-left  { animation: galLeft  26s linear infinite; }
.gal-right { animation: galRight 30s linear infinite; }
@keyframes galLeft  { to { transform: translateX(-50%); } }
@keyframes galRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.gal-strip { display: flex; gap: 14px; }
.gal-strip img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  transition: transform .4s ease;
}
.gal-strip img:hover { transform: scale(1.04); z-index: 2; }

/* ── Contact ── */
.sec-contact {
  background: var(--white);
  overflow: hidden;
  padding: 40px 0 80px;
}

.apply-wrap {
  position: relative;
  padding: 130px 0;
}

/* Main card */
.apply-card {
  display: block;
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--green-nv);
  border-radius: 24px;
  cursor: pointer;
  outline: 3px solid transparent;
  outline-offset: 0px;
  transition: background .5s ease,
              outline-color .4s ease,
              outline-offset .4s ease;
}
.apply-wrap:hover .apply-card {
  background: var(--green-dk);
  outline-color: var(--green-dk);
  outline-offset: 14px;
}

/* Default state */
.ac-default {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  transition: opacity .25s ease;
}
.apply-wrap:hover .ac-default { opacity: 0; pointer-events: none; }


.ac-title {
  font-family: 'Dela Gothic One', 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .1em;
  line-height: 1;
}

/* つなぐむ: fly in, land at card top/bottom edges (slight overlap) */
.ats-char {
  position: absolute;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: transform .8s cubic-bezier(.34, 1.56, .64, 1),
              opacity .22s ease;
}
/* つなぐむ文字: シンプルな白 */
.ats-float {
  display: inline-block;
  color: rgba(255,255,255,0.9);
  transform: translateZ(0);
  will-change: transform;
  -webkit-font-smoothing: antialiased;
}
/* 4文字を横一列でカード中央に配置 (6.5rem max / 1.3em spacing) */
.ats-tl { top: 220px; left: calc(50% - 2.6em); transform: translate(-300px,-150px) scale(.2) rotate(-28deg); transition-delay: 0s; }
.ats-tr { top: 220px; left: calc(50% - 1.2em); transform: translate(300px,-150px)  scale(.2) rotate(22deg);  transition-delay: .07s; }
.ats-bl { top: 220px; left: calc(50% + 0.2em); transform: translate(-300px, 150px) scale(.2) rotate(22deg);  transition-delay: .05s; }
.ats-br { top: 220px; left: calc(50% + 1.6em);  transform: translate(300px, 150px)  scale(.2) rotate(-28deg); transition-delay: .1s; }

.apply-wrap:hover .ats-char {
  transform: translate(0,0) scale(1) rotate(0deg);
  opacity: 1;
}

/* ふわふわ浮遊アニメーション（飛来完了後に起動） */
.apply-wrap:hover .ats-float {
  animation: atsFloat 2.2s ease-in-out 0.9s infinite both;
}
@keyframes atsFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Photos: 5 photos with varied sizes and positions */
.ac-photo {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: transform .72s cubic-bezier(.34, 1.56, .64, 1),
              opacity .45s ease;
}
.ac-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── ピンク cluster (LEFT) ── */
.ac-photo-p1 { width:195px; height:195px; top:-15px;   left:8px;                transform:translate(-215px,-130px) scale(.3) rotate(-16deg); transition-delay:.05s; }
.ac-photo-p2 { width:168px; height:168px; top:162px;   left:-5px;               transform:translate(-190px,-12px)  scale(.3) rotate(11deg);  transition-delay:.10s; }
.ac-photo-p3 { width:148px; height:148px; bottom:10px; left:65px;               transform:translate(-155px,130px)  scale(.3) rotate(-18deg); transition-delay:.08s; }

/* ── グリーン cluster (RIGHT 変形) ── */
.ac-photo-g1 { width:195px; height:195px; top:-15px;   right:8px;               transform:translate(215px,-130px)  scale(.3) rotate(16deg);  transition-delay:.07s; border-radius:48% 52% 38% 62% / 44% 58% 42% 56%; }
.ac-photo-g2 { width:168px; height:168px; top:162px;   right:-5px;              transform:translate(190px,-12px)   scale(.3) rotate(-11deg); transition-delay:.12s; border-radius:62% 38% 56% 44% / 52% 44% 56% 48%; }
.ac-photo-g3 { width:148px; height:148px; bottom:10px; right:65px;              transform:translate(155px,130px)   scale(.3) rotate(18deg);  transition-delay:.09s; border-radius:38% 62% 44% 56% / 60% 40% 60% 40%; }

/* ── 黄色 cluster (BOTTOM center) ── */
.ac-photo-y1 { width:155px; height:155px; bottom:-6px; left:calc(50% - 212px);  transform:translate(-110px,145px)  scale(.3) rotate(-10deg); transition-delay:.04s; }
.ac-photo-y2 { width:145px; height:145px; bottom:-4px; left:calc(50% + 60px);   transform:translate(110px,145px)   scale(.3) rotate(10deg);  transition-delay:.11s; }
.ac-photo-y3 { width:122px; height:122px; top:-18px;   left:calc(50% - 172px);  transform:translate(-70px,-115px)  scale(.3) rotate(-8deg);  transition-delay:.06s; }

.apply-wrap:hover .ac-photo {
  transform: translate(0,0) scale(1) rotate(0deg);
  opacity: 1;
}

/* ふわふわ浮遊アニメーション */
.apply-wrap:hover .ac-photo-p1 { animation: acFloat1 2.4s ease-in-out .85s infinite; }
.apply-wrap:hover .ac-photo-p2 { animation: acFloat2 2.7s ease-in-out 1.05s infinite; }
.apply-wrap:hover .ac-photo-p3 { animation: acFloat3 2.2s ease-in-out .92s infinite; }
.apply-wrap:hover .ac-photo-g1 { animation: acFloat2 2.5s ease-in-out .80s infinite; }
.apply-wrap:hover .ac-photo-g2 { animation: acFloat1 2.8s ease-in-out 1.10s infinite; }
.apply-wrap:hover .ac-photo-g3 { animation: acFloat3 2.3s ease-in-out .95s infinite; }
.apply-wrap:hover .ac-photo-y1 { animation: acFloat1 2.6s ease-in-out .88s infinite; }
.apply-wrap:hover .ac-photo-y2 { animation: acFloat2 2.4s ease-in-out 1.02s infinite; }
.apply-wrap:hover .ac-photo-y3 { animation: acFloat3 2.2s ease-in-out .72s infinite; }

@keyframes acFloat1 {
  0%,100% { transform: translateY(0) scale(1) rotate(0deg); }
  40%     { transform: translateY(-14px) scale(1.04) rotate(1deg); }
  70%     { transform: translateY(-6px) scale(1.01) rotate(-0.5deg); }
}
@keyframes acFloat2 {
  0%,100% { transform: translateY(0) scale(1) rotate(0deg); }
  35%     { transform: translateY(-12px) scale(1.03) rotate(-1.5deg); }
  65%     { transform: translateY(-5px) scale(1.01) rotate(0.5deg); }
}
@keyframes acFloat3 {
  0%,100% { transform: translateY(0) scale(1) rotate(0deg); }
  45%     { transform: translateY(-16px) scale(1.05) rotate(2deg); }
  75%     { transform: translateY(-7px) scale(1.02) rotate(-1deg); }
}

/* ── フッター ── */
.page-footer {
  background: var(--green-nv);
  color: rgba(255,255,255,.75);
  padding: 40px 28px 32px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social-link {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  border: 1.5px solid rgba(255,255,255,.2);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.footer-social-link:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(74,222,128,.1);
}
.footer-social-link--line:hover {
  color: #06c755;
  border-color: #06c755;
  background: rgba(6,199,85,.1);
}
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
}

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .anc-grid { grid-template-columns: 1fr; }
  .topics-wrap { grid-template-columns: 1fr; }
  .topics-photo-wrap { position: static; height: 300px; clip-path: none; }
  .topics-left { padding: 48px 24px; }
  .topics-head-row { gap: 16px; }
  .topics-stamp-wrap { width: 110px; height: 110px; }
  .about-feat { grid-template-columns: 60px 1fr 80px; }
  .about-feat-en { display: none; }
  .about-feat-img { width: 80px; height: 80px; }
  .apply-card { height: 220px; }
  .apply-wrap { padding: 90px 0; }
  .ats-tl, .ats-tr, .ats-bl, .ats-br { top: 160px; }
  .ac-photo-p1 { width:148px; height:148px; top:-10px;  left:6px;                }
  .ac-photo-p2 { width:128px; height:128px; top:118px;  left:-4px;               }
  .ac-photo-p3 { width:112px; height:112px; bottom:6px; left:50px;               }
  .ac-photo-g1 { width:148px; height:148px; top:-10px;  right:6px;               }
  .ac-photo-g2 { width:128px; height:128px; top:118px;  right:-4px;              }
  .ac-photo-g3 { width:112px; height:112px; bottom:6px; right:50px;              }
  .ac-photo-y1 { width:118px; height:118px; bottom:-4px;left:calc(50% - 162px);  }
  .ac-photo-y2 { width:110px; height:110px; bottom:-4px;left:calc(50% + 44px);   }
  .ac-photo-y3 { width:95px;  height:95px;  top:-12px;  left:calc(50% - 130px);  }
}
@media (max-width: 640px) {
  .sh-nav:not(.open) { display: none; }
  .sh-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(20,83,45,.97);
    padding: 16px;
    gap: 4px;
  }
  .sh-hamburger { display: flex; }
  .topics-title { display: none; }
  .topics-title-sub { display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(5rem, 22vw, 9rem); color: var(--green-dk); line-height: 1; }
  .about-feat { grid-template-columns: 1fr; gap: 12px; padding: 28px 20px; }
  .about-feat-num { font-size: 2rem; }
  .about-feat-img { width: 64px; height: 64px; justify-self: end; }
  .ac-title { font-size: 2.4rem; }
  .apply-wrap { padding: 70px 0; }
  .apply-card { height: 200px; }
  .ats-char { font-size: 2.8rem; }
  .ats-tl, .ats-tr, .ats-bl, .ats-br { top: 147px; }
  .ac-photo-p1 { width:105px; height:105px; top:-8px;   left:4px;                }
  .ac-photo-p2 { width:90px;  height:90px;  top:100px;  left:-3px;               }
  .ac-photo-p3 { width:80px;  height:80px;  bottom:4px; left:36px;               }
  .ac-photo-g1 { width:105px; height:105px; top:-8px;   right:4px;               }
  .ac-photo-g2 { width:90px;  height:90px;  top:100px;  right:-3px;              }
  .ac-photo-g3 { width:80px;  height:80px;  bottom:4px; right:36px;              }
  .ac-photo-y1 { width:84px;  height:84px;  bottom:-4px;left:calc(50% - 115px);  }
  .ac-photo-y2 { width:78px;  height:78px;  bottom:-4px;left:calc(50% + 32px);   }
  .ac-photo-y3 { width:68px;  height:68px;  top:-10px;  left:calc(50% - 95px);   }
}

/* ============================================================
   開催概要セクション (sec-venue) — 左:3カード / 右:大見出し
   ============================================================ */
.sec-venue {
  background: var(--green-nv);
  padding: 96px 0;
}
.venue-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.venue-left { display: flex; flex-direction: column; }
.venue-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(74,222,128,.16);
}
.venue-item:first-child { border-top: 1px solid rgba(74,222,128,.16); }
.vi-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  color: rgba(74,222,128,.4);
  line-height: 1;
  flex-shrink: 0;
  width: 3.8rem;
  letter-spacing: .02em;
  opacity: 0;
  transform: scale(0.5) translateX(-10px);
  transition: opacity .5s ease .05s, transform .65s cubic-bezier(.34,1.56,.64,1) .05s;
}
.venue-item.is-visible .vi-num {
  opacity: 1;
  transform: scale(1) translateX(0);
}
.vi-body { flex: 1; }
.vi-label {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease .22s, transform .4s ease .22s;
}
.venue-item.is-visible .vi-label {
  opacity: 1;
  transform: none;
}
.vi-val {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  margin-bottom: 10px;
  line-height: 1.15;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .5s ease .35s, transform .55s var(--ease-out-expo) .35s;
}
.venue-item.is-visible .vi-val {
  opacity: 1;
  transform: none;
}
.vi-sub {
  font-size: .78rem;
  color: rgba(74,222,128,.5);
  line-height: 1.9;
  opacity: 0;
  transition: opacity .5s ease .55s;
}
.venue-item.is-visible .vi-sub {
  opacity: 1;
}

/* 日付の大きな表示 */
.vi-date-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.vi-date-m {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--green);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease .2s, transform .55s var(--ease-out-expo) .2s;
}
.vi-date-d {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease .38s, transform .55s var(--ease-out-expo) .38s;
}
.vi-date-w {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(74,222,128,.7);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease .55s, transform .55s var(--ease-out-expo) .55s;
}
/* data-animate から is-visible になったら日付を表示 */
.venue-item.is-visible .vi-date-m,
.venue-item.is-visible .vi-date-d,
.venue-item.is-visible .vi-date-w {
  opacity: 1;
  transform: none;
}

/* カウントアップ */
.vi-countup {
  color: rgba(255,255,255,.95);
  font-size: 3.2rem;
  display: inline-block;
  min-width: 3rem;
}
@keyframes countDone {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.2) translateY(-5px); text-shadow: 0 0 24px rgba(74,222,128,.7); }
  65%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}
.vi-countup.count-done {
  animation: countDone .7s cubic-bezier(.34,1.56,.64,1);
}

/* RIGHT: big title */
.venue-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  text-align: right;
}
.venue-big-en {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 1;
  color: var(--green);
  letter-spacing: .03em;
}
.venue-big-ja {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(255,255,255,.35);
  letter-spacing: .2em;
}
.venue-right-desc {
  font-size: .85rem;
  color: rgba(74,222,128,.45);
  line-height: 2.2;
  padding-top: 8px;
  border-top: 1px solid rgba(74,222,128,.12);
}

@media (max-width: 900px) {
  .venue-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 28px; }
  .venue-right { align-items: flex-start; text-align: left; order: 1; }
  .venue-left  { order: 2; }
  .venue-right-desc { text-align: left; }
}
@media (max-width: 480px) {
  .sec-venue { padding: 64px 0; }
  .venue-inner { padding: 0 20px; gap: 32px; }
  .vi-num { font-size: 2.8rem; }
  .vi-val { font-size: 1.5rem; }
  .vi-date-d { font-size: 2.4rem; }
  .vi-countup { font-size: 2rem; }
  .venue-big-en { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero-char { width: 66px; }
  .hero-char-left { left: 20px; bottom: 8px; }
  .hero-char-right { right: 20px; bottom: 8px; }
}

/* ============================================================
   ギャラリー下「これまでの運動会」ボタン
   ============================================================ */
.gal-past {
  max-width: 1160px;
  margin: 0 auto 0;
  text-align: center;
  padding: 0 28px 8px;
}
.gal-past-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(74,222,128,.45);
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}
.gal-past-btn svg { transition: transform .25s ease; }
.gal-past-btn:hover {
  background: rgba(74,222,128,.12);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
.gal-past-btn:hover svg { transform: translateX(4px); }
