/* ============================================
   ABC - Akane Basketball Club
   Theme: 茜色（夕焼けの赤）
   ============================================ */

:root {
  /* Akane palette */
  --akane: #c8423b;          /* メインの茜色 */
  --akane-deep: #9e2a2b;     /* 濃い茜 */
  --akane-dark: #6e1f23;     /* 影 */
  --sunset: #f4845f;         /* 夕焼けオレンジ */
  --sunset-soft: #ffb86b;    /* やわらかい光 */
  --cream: #fff8f3;          /* 背景クリーム */
  --cream-2: #fef0e8;
  --ink: #2a2024;            /* 文字 */
  --ink-soft: #6b5d61;       /* 補助文字 */
  --line: #f0ddd4;           /* 罫線 */
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(158, 42, 43, 0.08);
  --shadow: 0 14px 40px rgba(158, 42, 43, 0.12);
  --shadow-lg: 0 24px 60px rgba(110, 31, 35, 0.18);
  --maxw: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Layout ===== */
.container { width: min(92%, var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(92%, 760px); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.pc-only { display: inline; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.82rem; }
.text-accent { color: var(--sunset-soft); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--akane), var(--akane-deep));
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(-1px); }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }
.btn--sm { padding: 9px 20px; font-size: 0.9rem; }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--light {
  background: var(--white); color: var(--akane-deep);
}
.btn--light:hover { background: #fff; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 248, 243, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.3rem;
  color: var(--white);
  background: linear-gradient(140deg, var(--akane), var(--akane-deep));
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.logo__ball {
  position: absolute; right: -4px; bottom: -4px;
  font-size: 0.6rem; color: var(--sunset-soft);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-family: "Poppins", sans-serif; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--akane-deep); }
.logo__text small { font-size: 0.62rem; color: var(--ink-soft); letter-spacing: 0.06em; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; gap: 22px; }
.nav__link { font-size: 0.92rem; font-weight: 500; position: relative; padding: 4px 0; transition: color 0.2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--akane); border-radius: 2px; transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--akane); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: var(--akane); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 68px;
  overflow: hidden;
  color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, #2a1419 0%, var(--akane-dark) 38%, var(--akane-deep) 70%, var(--akane) 100%); }
.hero__glow {
  position: absolute; top: -10%; right: -5%; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(255,184,107,0.55), rgba(244,132,95,0.18) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  animation: floatGlow 12s ease-in-out infinite;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 4%) scale(1.08); }
}
.hero__court {
  position: absolute; inset: 0; z-index: -1; opacity: 0.16;
  background-image:
    radial-gradient(circle at 50% 118%, transparent 38%, rgba(255,255,255,0.5) 38.4%, transparent 39.2%),
    radial-gradient(circle at 50% 118%, transparent 26%, rgba(255,255,255,0.4) 26.4%, transparent 27%);
  background-repeat: no-repeat;
}
.hero__inner { padding-block: 60px; max-width: 820px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 900; line-height: 1.18; letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.hero__lead { margin-top: 24px; font-size: clamp(0.98rem, 2.2vw, 1.16rem); color: rgba(255,255,255,0.92); font-weight: 400; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  margin-top: 52px;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.hero__stats li {
  flex: 1 1 150px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  backdrop-filter: blur(4px);
}
.hero__stats strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--sunset-soft); }
.hero__stats span { font-size: 0.82rem; color: rgba(255,255,255,0.85); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 50% { opacity: 1; } 100% { opacity: 0; top: 22px; } }

/* ===== Section head ===== */
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__tag {
  display: inline-block; font-family: "Poppins", sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--akane); margin-bottom: 12px;
}
.section__tag::before { content: "● "; font-size: 0.6em; vertical-align: middle; color: var(--sunset); }
.section__title { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 900; line-height: 1.3; }
.section__sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; }

/* ===== About ===== */
.about { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about__text p { margin-bottom: 18px; font-size: 1.04rem; }
.about__text strong { color: var(--akane-deep); }
.about__card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.about__card::before {
  content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(244,132,95,0.18), transparent 70%); border-radius: 50%;
}
.about__card h3 { font-size: 1.2rem; margin-bottom: 18px; color: var(--akane-deep); }
.about__creed li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.about__creed li:last-child { border-bottom: none; }
.about__creed span { font-size: 1.3rem; }

/* ===== Features ===== */
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.feature-card__icon {
  width: 60px; height: 60px; display: grid; place-items: center;
  font-size: 1.8rem; border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--cream-2), #ffe2d3);
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ===== Rules ===== */
.rules { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.rules__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rule-card {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 30px 30px 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease);
}
.rule-card:hover { transform: translateY(-5px); }
.rule-card__num {
  position: absolute; top: 14px; right: 22px;
  font-family: "Poppins", sans-serif; font-weight: 800; font-size: 3rem;
  color: var(--cream-2); line-height: 1; z-index: 0;
}
.rule-card h3 { position: relative; font-size: 1.16rem; margin-bottom: 10px; color: var(--akane-deep); padding-left: 16px; }
.rule-card h3::before { content: ""; position: absolute; left: 0; top: 4px; width: 5px; height: 1.1em; background: linear-gradient(var(--akane), var(--sunset)); border-radius: 3px; }
.rule-card p { position: relative; color: var(--ink-soft); font-size: 0.96rem; }
.rule-note {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--akane-deep), var(--akane));
  color: #fff; border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow);
}
.rule-note h3 { font-size: 1.2rem; margin-bottom: 12px; }
.rule-note p { color: rgba(255,255,255,0.92); font-size: 0.98rem; }

/* ===== Schedule ===== */
.schedule__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.info-card {
  text-align: center; background: var(--white); border-radius: var(--radius);
  padding: 30px 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card__icon {
  width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center;
  font-size: 1.6rem; border-radius: 50%; background: var(--cream-2);
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--akane-deep); }
.info-card p { font-size: 0.96rem; }
.info-card strong { color: var(--akane); }

.schedule__cal {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.schedule__cal-title { font-size: 1.2rem; margin-bottom: 18px; color: var(--akane-deep); }
.cal-list { display: flex; flex-direction: column; gap: 10px; }
.cal-item {
  display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; background: var(--cream); border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.cal-item__date { font-weight: 700; color: var(--ink); }
.cal-item__place { color: var(--ink-soft); font-size: 0.94rem; }
.cal-item__status { justify-self: end; font-size: 0.8rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.cal-item__status.is-open { background: #e6f6ec; color: #1f8a4c; }
.cal-item__status.is-soon { background: var(--cream-2); color: var(--akane); }
.cal-item__status.is-full { background: #f3f0f1; color: var(--ink-soft); }
.schedule__note { margin-top: 16px; font-size: 0.86rem; color: var(--ink-soft); }
.schedule__note a { color: var(--akane); text-decoration: underline; }

/* ===== Join ===== */
.join { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 38px 28px 30px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-align: center;
}
.step__num {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.4rem; color: #fff;
  background: linear-gradient(140deg, var(--akane), var(--akane-deep));
  border-radius: 50%; box-shadow: var(--shadow-sm); border: 4px solid var(--cream);
}
.step h3 { font-size: 1.15rem; margin: 12px 0 10px; color: var(--akane-deep); }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

.join__bring {
  margin-top: 44px; background: var(--white); border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  text-align: center;
}
.join__bring h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--akane-deep); }
.join__bring-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.join__bring-list li {
  padding: 9px 20px; background: var(--cream-2); border-radius: 999px; font-weight: 500; font-size: 0.94rem;
}
.join__bring-list li::before { content: "✓ "; color: var(--akane); font-weight: 800; }
.join__bring-list li.optional { background: #f3f0f1; color: var(--ink-soft); }
.join__bring-list li.optional::before { content: "＋ "; }

/* ===== FAQ ===== */
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 1.02rem; font-weight: 700; text-align: left; color: var(--ink);
}
.faq-item__q:hover { color: var(--akane); }
.faq-item__icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--akane);
  border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease);
}
.faq-item__icon::before { width: 14px; height: 2px; }
.faq-item__icon::after { width: 2px; height: 14px; }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item__a p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.96rem; }

/* ===== Contact ===== */
.contact { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.contact-form {
  background: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.req { font-size: 0.7rem; color: #fff; background: var(--akane); padding: 2px 8px; border-radius: 999px; margin-left: 6px; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--akane); box-shadow: 0 0 0 3px rgba(200,66,59,0.12); background: #fff;
}
.form-row input.is-error, .form-row textarea.is-error { border-color: #e0483f; box-shadow: 0 0 0 3px rgba(224,72,63,0.12); }
.form-submit { width: 100%; margin-top: 8px; }
.form-status { margin-top: 16px; text-align: center; font-weight: 700; font-size: 0.95rem; min-height: 1.4em; }
.form-status.is-ok { color: #1f8a4c; }
.form-status.is-ng { color: #e0483f; }

.contact__alt { text-align: center; margin-top: 36px; }
.contact__sns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 16px 0 10px; }
.sns-btn {
  padding: 11px 24px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  background: var(--white); border: 1.5px solid var(--line); color: var(--akane-deep);
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s;
}
.sns-btn:hover { transform: translateY(-3px); border-color: var(--akane); color: var(--akane); }

/* ===== CTA Banner ===== */
.cta-banner { background: linear-gradient(135deg, #2a1419, var(--akane-dark) 55%, var(--akane-deep)); color: #fff; text-align: center; padding: clamp(60px, 9vw, 100px) 0; position: relative; overflow: hidden; }
.cta-banner::before {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,184,107,0.3), transparent 65%);
  border-radius: 50%;
}
.cta-banner__inner { position: relative; }
.cta-banner h2 { font-size: clamp(1.6rem, 4.6vw, 2.6rem); font-weight: 900; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 30px; }

/* ===== Footer ===== */
.footer { background: #20151a; color: rgba(255,255,255,0.78); padding: 50px 0 26px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand strong { color: #fff; font-size: 1.02rem; }
.footer__brand p { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { font-size: 0.9rem; transition: color 0.2s; }
.footer__nav a:hover { color: var(--sunset-soft); }
.footer__copy { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); padding-top: 22px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .schedule__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .pc-only { display: none; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 6%; box-shadow: var(--shadow);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 4px; border-bottom: 1px dashed var(--line); }
  .nav__cta { margin: 14px 4px 6px; text-align: center; }
  .nav-toggle { display: flex; }

  .features__grid { grid-template-columns: 1fr; }
  .rules__grid { grid-template-columns: 1fr; }
  .schedule__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .cal-item { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .cal-item__status { justify-self: start; }
  .hero__stats li { flex-basis: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
