@charset "UTF-8";

/* =========================
    VARIABLES
========================= */
:root {
  --bg: #eee;
  --card-bg: #ffffff;
  --text-main: #222222;
  --text-st: #334155;
  --text-light: #cbd5e1;

  --accent: #1dcc51;
  --cta-color:#8ff182;
  --game-bg:#b9f7c9;
}

/* =========================
    RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   BASE
========================= */
body {
  font-family: "DotGothic16", sans-serif;
  overflow: hidden;
}
.site-shell {
  display: flex;
  height: 100vh;
}

/* =========================
  game area
========================= */
/* ===== 左：ゲーム ===== */
.game-area {
  width: 30%;
  flex: 0 0 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color:var(--game-bg) ;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.game-stage {
  width: 360px;
  height: 620px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.game-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-size: 13px;
}

.reset-btn {
  border: none;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.limit-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.637);
}

/* ゲーム本体 */
.game-world {
  position: relative;
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f9fbff;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.game-world::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 60%;
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
/* 円 */
.veggie {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}
/* ===== SCORE PANEL ===== */
.score-panel {
  margin-top: 8px;
  padding: 10px 12px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #0b1020;
  border: 2px solid #fff;
  border-radius: 10px;

  color: #fff;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
}

.score-label {
  opacity: 0.8;
}

.score-value {
  font-size: 16px;
  color: var(--accent);
}

/* =========================
    HEADER / HUD
========================= */
.lp-area {
  position: relative;
  flex: 1;
  width: 70%;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  overflow-y: auto;
  padding: 0 5%;
}

.site-header {
  position: sticky;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.hud {
  position: relative;
  height: 56px;
  padding: 0 1em;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  background-color: var(--bg);
  backdrop-filter: blur(10px);
}

/* =========================
    MENU TOGGLE
========================= */
.menu-toggle {
  width: 2em;
  height: 1.4em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-main);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
.menu-toggle.open span {
  background: var(--accent);
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(0.67em) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-0.67em) rotate(-45deg);
}

/* =========================
    FULL SCREEN NAV
========================= */
.nav-menu {
  position: absolute;
  top: 56px; 
  right: 0;
  width: 100%;
  height: calc(100vh - 56px);
  background-color: var(--card-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: circle(0% at 95% -28px);
  transition:
    clip-path 0.6s ease,
    opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}

.nav-menu.show {
  opacity: 1;
  pointer-events: auto;
}

.nav-menu.open {
  clip-path: circle(150% at 95% -28px);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  margin-right: 2em;
}

.nav-list a {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
}
.nav-list a span {
  display: inline-block;
  margin-right: 0.4em;
  opacity: 0;
  visibility: hidden;
}
.nav-list a.is-active span {
  opacity: 1;
  visibility: visible;
  animation: start-blink 0.9s steps(1) infinite;
}
@keyframes start-blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* =========================
    START (FV)
========================= */
main section {
  margin-bottom: 300px;
}
.start {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.start__frame {
  padding: 2em 1em;
}
.start__logo {
  margin: 0 auto;
  width: 50%;
}
.start__logo img {
  width: clamp(14em, 60vw, 22em);
  margin: 0 auto;
}

.start__catch {
  margin-top: 1em;
  color: var(--accent);
}
.start__links {
  margin-top: 5em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  font-weight: 600;
}
.start__sub {
  margin-top: 0.3em;
  color: var(--text-st);
  font-size: 1.1em;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.start__sub span {
  display: inline-block;
  margin-right: 0.3em;
  opacity: 0;
  visibility: hidden;
}

.start__sub.is-active {
  transform: scale(1.08);
}

.start__sub.is-active span {
  opacity: 1;
  visibility: visible;
  animation: start-blink 0.9s steps(1) infinite;
}

/* =========================
        ABOUT
========================= */
.section.about-crawl {
  background-color: var(--bg);
  padding: 8em 0;
  text-align: center;
}

.crawl-text {
  width: min(90%, 680px);
  margin: 0 auto;
  color: var(--text-main);
  font-family: "DotGothic16", sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 2.6;
  text-align: center;
  letter-spacing: 0.08em;
}

.fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade.is-visible {
  opacity: 1;
}
/* =========================
        SECTION
========================= */
.section {
  padding: 4em 1em;
}

.section-title,
.section-text {
  text-align: center;
  margin-bottom: 2em;
}

/* =========================
        CARD BASE
========================= */
.card-base {
  background: var(--card-bg);
  color: var(--text-main);

  padding: 2em;
  border-radius: 1.5em;

  max-width: 60rem;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* =========================
      MEMBER CARD
========================= */

.member-card {
  position: relative;
  display: flex;
  gap: 2.4em;
  background: #ffffff;
  color: var(--text-main);
  padding: 2.4em;
  border-radius: 2em;
  max-width: 64rem;
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.member-card::before,
.member-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 1.6em;
}

.member-card::before {
  inset: 18px;
  border: 3px solid rgba(143, 181, 138, 0.45);
}

.member-card::after {
  inset: 13px;
  border: 1px solid rgba(143, 181, 138, 0.25);
}

/* =========================
          IMAGE
========================= */

.member-card__media {
  flex: 0 0 36%;
  aspect-ratio: 3 / 4;

  border-radius: 1.3em;
  overflow: hidden;

  background: #e5e7eb;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.member-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
        MEMBER CARD
========================= */

.member-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  padding-top: 0.4em;
  z-index: 1;
}


.member-card__name {
  font-size: 1.8em;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.member-card__name ruby {
  ruby-position: over;
  ruby-align: center;
}

.member-card__name rt {
  font-size: 0.45em;
  color: #6b7c6b;
  letter-spacing: 0.1em;
  transform: translateY(-0.2em);
}

/* =========================
        LOCATION
========================= */

.member-card__location {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1em;
}

.member-card__location .pin {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(143, 181, 138, 0.25);
  display: grid;
  place-items: center;
  color: rgba(143, 181, 138, 0.9);
  font-weight: bold;
}

/* =========================
          TAGS
========================= */

.member-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.member-card__tags .tag {
  padding: 0.6em 1.2em;
  border-radius: 999px;
  background: rgba(143, 181, 138, 0.22);
  border: 1px solid rgba(143, 181, 138, 0.3);
  font-size: 0.9em;
  color: var(--text-main);
}

/* =========================
          TEXT
========================= */

.member-card__text {
  color: var(--text-main);
  font-size: 0.95em;
  line-height: 1.8;
}

/* =========================
        INSTAGRAM
========================= */

.member-card__sns {
  margin-top: 0.5em;
  align-self: flex-start;

  display: inline-flex;
  align-items: center;
  gap: 0.8em;

  padding: 0.8em 1.4em;
  border-radius: 999px;

  background: rgba(143, 181, 138, 0.18);
  border: 1px solid rgba(143, 181, 138, 0.25);

  color: var(--text-main);
  font-size: 0.95em;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.member-card__sns-icon {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.member-card__sns:hover {
  background: rgba(143, 181, 138, 0.28);
}

/* =========================
      MEMBER SLIDER
========================= */

.member-slider {
  position: relative;
  max-width: 70rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1em;
}

.member-slider__viewport {
  overflow: hidden;
  flex: 1;
}

.member-slider__track {
  display: flex;
  transition: transform 0.5s ease;
}


.member-slider__track > .member-card {
  min-width: 100%;
}

/* 矢印 */
.member-slider__arrow {
  background-color:var(--text-main);
  border: 1px solid var(--text-main);
  color: #fff;
  font-size: 1.2em;
  padding: 0.6em 0.8em;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.member-slider__arrow:hover {
  background-color:var(--text-main);
}

.member-slider__arrow.is-hidden {
  display: none;
}

/* =========================
        ACTIVITIES
========================= */

.activities-box {
  max-width: 64rem;
  margin: 0 auto 4em;
}


.activities-box .card-base {
  flex: 1 1 40%;
  margin: 0;
  padding: 2.4em;
  background: #ffffff;
  border-radius: 2em;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: var(--text-main);
}

.activities-img {
  position: relative;
  max-width: 520px;
  margin: 2em auto;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 28% 72% 60% 40% / 44% 53% 47% 56%;
}

.activities-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.activities-img.is-flash::after {
  opacity: 1;
}
/* =========================
        JOIN SECTION
========================= */

.join {
  padding-top: 4em;
}

.join-card {
  text-align: center;
}

/* 説明文 */
.join-text {
  max-width: 42rem;
  margin: 0 auto 2.4em;
  color: var(--text-main);
  line-height: 1.9;
}

/* =========================
        Q&A
========================= */

.qa {
  max-width: 42rem;
  margin: 0 auto 3em;
}

.qa-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.8em 0;
}

.qa-item summary {
  list-style: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 0.6em;

  font-weight: 600;
  color: var(--text-main);
}

.qa-item summary span {
  color: var(--accent);
  animation: start-blink 0.9s steps(1) infinite;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item p {
  margin-top: 0.6em;
  padding-left: 1.4em;
  color: var(--text-main);
  line-height: 1.8;
}

/* =========================
        CTA
========================= */

.join-cta {
  display: flex;
  justify-content: center;
  margin-top: 2em;
}

.join-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;

  max-width: 100%;
  padding: 0.9em 1.6em;

  border-radius: 999px;
  background: var(--cta-color);
  color: #000;

  font-weight: 600;
  letter-spacing: 0.05em;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.join-button__text-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 16em;
}

.join-button__text {
  grid-area: 1 / 1;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.join-button__text.is-hover {
  opacity: 0;
}

.join-button.is-hover .is-default {
  opacity: 0;
}

.join-button.is-hover .is-hover {
  opacity: 1;
  transform: scale(1.05);
}

.join-button:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* =========================
        FOOTER
========================= */
.footer {
  padding: 3em 1em 3.5em;
  color: #94a3b8;
  text-align: center;
}

.footer__frame {
  width: min(92%, 760px);
  margin: 0 auto;
  padding: 1.4em 1.2em;
  background-color: var(--bg);
  border-radius: 0;
}

.footer__message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: "Press Start 2P", monospace;
  letter-spacing: 0.06em;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  color: var(--text-main);
}

.footer__cursor {
  display: inline-block;
  animation: start-blink 0.9s steps(1) infinite;
  color: var(--accent);
}

.footer__copy {
  margin-top: 1em;
  font-size: 0.85em;
  opacity: 0.85;
}

.footer__frame {
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.03) 70%,
    rgba(255, 255, 255, 0)
  );
}
/* ===== game.html へ飛ぶ固定ボタン ===== */
.to-game {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;

  padding: 10px 14px;
  border-radius: 999px;

  background: #0b1020;
  color: #fff;

  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  text-decoration: none;

  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

.to-game:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}
/* =========================
        Responsive 
========================= */
@media (max-width: 1024px) {
  .game-area {
    display: none;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .lp-area {
    width: 100%;
  }
  .activities-box {
    flex-direction: column-reverse;
    gap: 2.5em;
  }

  .activities-box .card-base {
    width: 100%;
  }

  .activities-img {
    width: 100%;
    max-width: 480px;
  }
}

/* =========================
    MOBILE
========================= */
@media (max-width: 500px) {
  .lp-area {
    padding: 0 3%;
  }
  .nav-list a {
    font-size: 1.8rem;
    letter-spacing: 0.05em;
  }
  .member-card {
    flex-direction: column;
    padding: 1.6em;
  }

  .member-card__media {
    aspect-ratio: 4 / 3;
  }

  .member-card__name {
    font-size: 1.5em;
  }
  .member-slider {
    gap: 0.4em;
  }

  .member-slider__arrow {
    display: none;
  }

  .member-slider__viewport {
    overflow: visible;
  }

  .member-slider__track {
    flex-direction: column;
    transform: none !important;
    gap: 1.6em;
  }

  .member-slider__track > .member-card {
    min-width: auto;
  }
  .join-text {
    margin-bottom: 2em;
  }

  .qa {
    margin-bottom: 2.5em;
  }

  .join-button {
    width: 100%;
    justify-content: center;
    padding: 0.9em 1em;
  }

  .join-button__text-wrap {
    min-width: 100%;
  }
}
