@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Cormorant+Garamond:ital,wght@0,300;0,600;1,300&display=swap');

/* ===== CSS Variables ===== */
:root {
  --black: #111111;
  --white: #ffffff;
  --gray-100: #f8f8f8;
  --gray-200: #eeeeee;
  --gray-400: #aaaaaa;
  --gray-700: #555555;
  --accent: #06C755;
  --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--black);
  line-height: 1.8;
  background: var(--white);
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Custom Cursor ===== */
body { cursor: none; }
a, button, [role="button"] { cursor: none; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  background: var(--black);
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.35);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease;
}

.cursor-dot.is-hover {
  width: 28px;
  height: 28px;
  background: transparent;
  border-color: var(--black);
}

@media (max-width: 768px) {
  body { cursor: auto; }
  a, button, [role="button"] { cursor: auto; }
  .cursor-dot { display: none; }
}

/* ===== Page Transition ===== */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9000;
  transform: scaleY(1);
  transform-origin: top;
  /* delay削除: 即座にrevealアニメ開始 → 白フラッシュ防止 */
  animation: pageReveal 0.8s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  pointer-events: none;
}
@keyframes pageReveal {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
}

.site-header__logo {
  height: 40px;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.site-header__logo:hover {
  opacity: 0.7;
  transform: scale(0.97);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  position: relative;
  transition: opacity var(--transition-base);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width var(--transition-base);
}
.nav__link:hover::after { width: 100%; }
.nav__link:hover { opacity: 0.7; }

/* ===== Scroll Down ===== */
.scrolldown {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: arrowmove 1.8s ease-in-out infinite;
}

@keyframes arrowmove {
  0%   { transform: translate(-50%, 0); }
  50%  { transform: translate(-50%, -10px); }
  100% { transform: translate(-50%, 0); }
}

.scrolldown span {
  position: absolute;
  left: -20px;
  bottom: 10px;
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.scrolldown::before {
  content: "";
  position: absolute;
  bottom: 0; right: -6px;
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.8);
  transform: skewX(-31deg);
}
.scrolldown::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 1px; height: 50px;
  background: rgba(255,255,255,0.8);
}

/* ===== Section Title Shared ===== */
.section-eyebrow {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.25em;
  color: var(--gray-400);
  margin-bottom: 8px;
  text-align: center;
}

/* ===== About Section ===== */
.about-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: 'ABOUT';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 300;
  color: rgba(0,0,0,0.035);
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.about-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}

.about-title::after {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--black);
  margin: 14px auto 0;
  transition: width 0.6s ease;
}
.about-section:hover .about-title::after { width: 60px; }

.about-text {
  max-width: 640px;
  margin: 0 auto;
  line-height: 2.1;
  color: var(--gray-700);
  font-size: 15px;
}

/* ===== Activities Section ===== */
.activities-section {
  background: var(--gray-100);
  padding: 120px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.activities-section::before {
  content: 'ACTIVITY';
  position: absolute;
  top: 60px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(50px, 10vw, 140px);
  font-weight: 300;
  color: rgba(0,0,0,0.035);
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.activities-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.activities-title::after {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--black);
  margin: 14px auto 0;
  transition: width 0.6s ease;
}
.activities-section:hover .activities-title::after { width: 60px; }

.activities-text {
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 2.1;
  color: var(--gray-700);
  font-size: 15px;
}

/* Activity Cards */
.activities-box {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.activities-content {
  display: block;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  width: 300px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.activities-content::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.activities-content:hover::after { width: 100%; }

.activities-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.activities-content img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.activities-content:hover img {
  transform: scale(1.04);
}

.activities-caption {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 14px 16px;
}

/* Gallery Marquee (pure CSS infinite scroll) */
.gallery-marquee {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  /* contain compositing to this element — reduces GPU memory usage on mobile */
  contain: content;
}

/* Fade edges — PC only (mobile Safari can't handle mask + animation) */
@media (min-width: 769px) {
  .gallery-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  }
}

.gallery-track {
  display: flex;
  width: max-content;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gallery-marquee.is-dragging {
  cursor: grabbing;
}

.gallery-marquee.is-dragging .gallery-item img {
  pointer-events: none;
}

.gallery-item {
  flex-shrink: 0;
  width: 300px;
  margin: 0 10px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  cursor: zoom-in;
  filter: saturate(0.85);
  transition: filter 0.4s ease;
}

.gallery-item img:hover {
  filter: saturate(1.1);
}

@media (min-width: 1024px) {
  .gallery-item img { height: 230px; }
  .gallery-item { width: 340px; }
}

@media (max-width: 768px) {
  .gallery-item { width: 240px; margin: 0 6px; }
  .gallery-item img { height: 170px; }
}

/* ===== Join Section ===== */
.join-section {
  background: var(--white);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.join-section::before {
  content: 'JOIN';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(70px, 14vw, 200px);
  font-weight: 300;
  color: rgba(0,0,0,0.035);
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.join-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  display: inline-block;
  position: relative;
}

.join-title::after {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--black);
  margin: 14px auto 0;
  transition: width 0.6s ease;
}
.join-section:hover .join-title::after { width: 60px; }

.join-card {
  background: var(--gray-100);
  border-radius: 4px;
  padding: 52px 32px;
  max-width: 660px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  position: relative;
}

.join-text {
  color: var(--gray-700);
  line-height: 2.1;
  font-size: 15px;
  margin-bottom: 20px;
}

.join-term {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 44px;
  transition: background 0.3s ease, transform var(--transition-base), box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(6,199,85,0.25);
}
.btn-cta:hover {
  background: #05b84c;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(6,199,85,0.35);
}

/* ===== SNS ===== */
.sns-section {
  text-align: center;
  padding: 80px 0;
  background: var(--gray-100);
}

.sns__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.25em;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.sns__list {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
}

.sns__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
}

.sns__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sns__item a:hover .sns__icon {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.sns__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray-700);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  padding: 40px 0 28px;
  color: rgba(255,255,255,0.4);
}

.footer-credit,
.footer-copy {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 2;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  cursor: pointer;
  animation: modalFadeIn 0.35s ease forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-overlay.is-closing {
  animation: modalFadeOut 0.3s ease forwards;
}

@keyframes modalFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.close-button {
  position: fixed;
  top: 24px; right: 32px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.2s, transform 0.25s;
  pointer-events: none;
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
  pointer-events: none;
}

.modal-content img {
  max-width: 90%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: imgZoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes imgZoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-overlay.is-closing .modal-content img {
  animation: imgZoomOut 0.28s ease forwards;
}

@keyframes imgZoomOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.9); }
}

/* ===== Page Top ===== */
.pagetop {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
}

.pagetop::before {
  content: "";
  position: absolute;
  top: 55%; left: 50%;
  width: 11px; height: 11px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pagetop.is-show { opacity: 1; visibility: visible; }
.pagetop:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header__inner { padding: 12px 20px; }
  .nav__link { font-size: 11px; }

  .about-section,
  .activities-section,
  .join-section { padding: 80px 0; }

  .about-text,
  .activities-text,
  .join-text { font-size: 14px; padding: 0 16px; }

  .activities-box { flex-direction: column; align-items: center; }
  .activities-content { width: 90%; }

  .join-card { padding: 40px 20px; }

  .sns__list { gap: 24px; }
  .sns__icon { width: 44px; height: 44px; }

  .pagetop { right: 16px; bottom: 20px; width: 44px; height: 44px; }
}