/* ============================================
   全体カラーとフォント
   色や書体を変える場合はここを編集
============================================ */
:root {
  --c-yellow: #ffe500;
  --c-pink: #ff2d78;
  --c-lavender: #9d95ff;
  --c-orange: #ff8709;
  --c-lime: #abff84;
  --c-cyan: #00bae2;
  --c-ink: #0a0a0a;
  --header-height: 64px;
  
  --border: 4px solid var(--c-ink);
  --border-thick: 6px solid var(--c-ink);
  
  --font-display: "Unbounded", "Noto Sans JP", sans-serif;
  --font-stamp: "Bebas Neue", sans-serif;
  --font-mono: "Space Mono", "Noto Sans JP", monospace;

  --loading-progress-scale: 0;
  --scroll-progress-scale: 0;
  --cursor-x: -999px;
  --cursor-y: -999px;
}

/* ============================================
   ローディング画面
   色やサイズを変える場合はここを編集
============================================ */
#loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: all;
}

#loading[hidden] {
  display: none;
}

.loading__panels {
  position: absolute;
  inset: 0;
  display: flex;
}

.loading__panel {
  flex: 1;
  height: 100%;
  border-right: var(--border-thick);
}
.loading__panel:last-child { border-right: none; }
.loading__panel[data-color="yellow"]   { background: var(--c-yellow); }
.loading__panel[data-color="cyan"]     { background: var(--c-cyan); }
.loading__panel[data-color="pink"]     { background: var(--c-pink); }
.loading__panel[data-color="lime"]     { background: var(--c-lime); }
.loading__panel[data-color="lavender"] { background: var(--c-lavender); }

.loading__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
  z-index: 1;
}

.loading__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-yellow);
  border: var(--border-thick);
  padding: 12px 32px;
  box-shadow: 8px 8px 0 var(--c-ink);
  letter-spacing: -0.02em;
}
.loading__logo span {
  -webkit-text-stroke: 2px var(--c-ink);
  color: transparent;
  display: block;
}

.loading__counter {
  font-family: var(--font-stamp);
  font-size: clamp(80px, 18vw, 200px);
  line-height: 1;
  color: var(--c-ink);
  letter-spacing: -0.04em;
  text-shadow:
    4px 4px 0 rgba(255,255,255,0.4),
    -2px -2px 0 rgba(0,0,0,0.15);
}
.loading__counter em {
  font-style: normal;
  font-size: 0.45em;
  vertical-align: super;
  -webkit-text-stroke: 2px var(--c-ink);
  color: transparent;
}

.loading__bar {
  width: clamp(200px, 40vw, 400px);
  height: 10px;
  border: var(--border);
  background: rgba(10,10,10,0.15);
  overflow: hidden;
}
.loading__bar-fill {
  height: 100%;
  width: 100%;
  background: var(--c-ink);
  transform: scaleX(var(--loading-progress-scale));
  transform-origin: left center;
  transition: transform 0.05s linear;
}

.loading__label {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-ink);
  opacity: 0.7;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.2; }
}

/* ローディング表示中だけスクロールを止める */
body.is-loading {
  overflow: hidden;
}

/* ============================================
   全体の基本設定
   背景色、文字色、ヘッダー分の余白を調整
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-mono);
  background: var(--c-yellow);
  color: var(--c-ink);
  overflow-x: hidden;
  cursor: crosshair;
  padding-top: var(--header-height); /* 固定ヘッダーぶんの余白 */
}
body.menu-open {
  overflow: hidden;
}

/* ============================================
   ヘッダーとスマホメニュー
   色、サイズ、余白を調整
============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--c-yellow);
  border-bottom: var(--border-thick);
  z-index: 100;
}
.header__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16px, 2vw, 24px);
  text-transform: uppercase;
}
.header__nav {
  display: flex;
  gap: 24px;
}
.header__nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.header__nav a:hover {
  border-color: var(--c-ink);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--c-ink);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--c-lime);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  border-bottom: var(--border-thick);
}
.mobile-menu.is-open {
  transform: translateY(0);
}
.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 24px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  background: var(--c-yellow);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
  appearance: none;
}
.mobile-menu__close span {
  position: absolute;
  width: 24px;
  height: 3px;
  background: var(--c-ink);
}
.mobile-menu__close span:first-child {
  transform: rotate(45deg);
}
.mobile-menu__close span:last-child {
  transform: rotate(-45deg);
}
.mobile-menu__close:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 4px;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--c-ink);
  text-decoration: none;
}

/* ============================================
   背景の装飾模様
   不要な場合はこのブロックを削除
============================================ */
.lead-section::after,
.message-section::after,
.action-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.26;
  mix-blend-mode: color-dodge;
  z-index: 2;
}

/* ============================================
   セクション1
   背景色、上下余白、画像サイズを調整
============================================ */
.lead-section {
  position: relative;
  overflow: hidden;
  background: var(--c-cyan);
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
}
.lead-section__intro {
  background: var(--c-pink);
  border-bottom: var(--border-thick);
  padding: clamp(60px, 10vw, 120px) clamp(24px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.lead-section__intro-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 3;
}
.lead-section__content {
  flex: 1;
}

/* 右側画像の表示幅 */
.lead-section__slider {
  flex: 0 0 45%;
  max-width: 420px;
}
.lead-section__slider-frame {
  background: #fff;
  border: var(--border-thick);
  padding: 16px;
  box-shadow: 12px 12px 0 var(--c-ink);
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}
.lead-section__slide {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
}
.lead-section__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: var(--border);
}

.lead-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 7vw, 100px);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 3;
}
.lead-section__title span:nth-child(2) {
  -webkit-text-stroke: 3px var(--c-ink);
  color: transparent;
  display: inline-block;
}
.lead-section__description {
  margin-top: 24px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  max-width: 600px;
  position: relative;
  z-index: 3;
  font-weight: 700;
}
.lead-section__bg-label {
  position: absolute;
  font-family: var(--font-stamp);
  font-size: clamp(100px, 20vw, 240px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(10, 10, 10, 0.1);
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  z-index: 1;
}

/* カードの列数と余白 */
.lead-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.card {
  position: relative;
  overflow: hidden;
  border-right: var(--border-thick);
  border-bottom: var(--border-thick);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3.5vw, 48px);
  min-height: clamp(340px, 40vh, 500px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: crosshair;
}
.card:nth-child(3n) { border-right: none; }
.card--yellow { background: var(--c-yellow); }
.card--pink { background: var(--c-pink); }
.card--lime { background: var(--c-lime); }
.card--cyan { background: var(--c-cyan); }

/* 画像だけを見せるカード */
.card--img {
  padding: 0;
  background: var(--c-ink);
  display: flex;
  justify-content: center;
  align-items: center;
}
.card--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}
.card__number {
  font-family: var(--font-stamp);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.15em;
  border: var(--border);
  padding: 4px 10px;
  background: var(--c-ink);
  color: var(--c-yellow);
}
.card__icon {
  font-size: clamp(20px, 2.5vw, 30px);
  opacity: 0.5;
}
.card__body { position: relative; z-index: 3; }
.card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(12px, 2vw, 22px);
}
.card__title--stroke {
  -webkit-text-stroke: 2px var(--c-ink);
  color: transparent;
}
.card__desc {
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.75;
  border-top: var(--border);
  padding-top: 16px;
  font-weight: 700;
}
.card__ghost {
  position: absolute;
  font-family: var(--font-stamp);
  font-size: clamp(100px, 14vw, 180px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(10, 10, 10, 0.07);
  bottom: -10px;
  right: -4px;
  line-height: 1;
  z-index: 1;
}

/* ============================================
   セクション2
   背景色、文字サイズ、余白を調整
============================================ */
.message-section {
  position: relative;
  overflow: hidden;
  background: var(--c-lavender);
  border-bottom: var(--border-thick);
  padding: clamp(60px, 10vw, 140px) clamp(24px, 6vw, 80px);
}
.message-section__label {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 3;
}
.message-section__quote {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 84px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 3;
  max-width: 960px;
}
.message-section__quote em {
  font-style: normal;
  -webkit-text-stroke: 2px var(--c-ink);
  color: transparent;
}
.message-section__bg-label {
  position: absolute;
  font-family: var(--font-stamp);
  font-size: clamp(140px, 26vw, 360px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(10, 10, 10, 0.08);
  bottom: -8%;
  right: -2%;
  white-space: nowrap;
  z-index: 1;
}

/* ============================================
   セクション3
   左右の余白、画像サイズ、説明ボックスを調整
============================================ */
.split-section {
  position: relative;
  overflow: hidden;
  background: var(--c-lime);
  border-bottom: var(--border-thick);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-section__primary {
  border-right: var(--border-thick);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  position: relative;
  z-index: 3;
}
.split-section__secondary {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 28px);
}
.split-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.split-section__visual img {
  width: 100%;
  border: var(--border-thick);
  display: block;
}
.split-section__visual--offset { margin-top: 24px; }
.split-section__panel {
  border: var(--border-thick);
  padding: clamp(20px, 3vw, 40px);
  background: var(--c-yellow);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.8;
  font-weight: 700;
}
.split-section__panel--accent { background: var(--c-pink); }
.split-section__panel strong {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  display: block;
  margin-bottom: 12px;
}

/* ============================================
   セクション4
   背景色、ボタン色、余白を調整
============================================ */
.action-section {
  position: relative;
  overflow: hidden;
  background: var(--c-orange);
  border-bottom: var(--border-thick);
  padding: clamp(60px, 12vw, 160px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.action-section__label {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 700;
  margin-bottom: clamp(16px, 3vw, 32px);
  position: relative;
  z-index: 3;
}
.action-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 8vw, 100px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 3;
  margin-bottom: clamp(16px, 3vw, 32px);
}
.action-section__title span {
  display: inline-block;
  -webkit-text-stroke: 3px var(--c-ink);
  color: transparent;
}
.action-section__description {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 700;
  margin-bottom: 48px;
  position: relative;
  z-index: 3;
}
.action-section__button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(16px, 2vw, 24px);
  border: var(--border-thick);
  padding: clamp(14px, 2vw, 22px) clamp(32px, 5vw, 72px);
  background: var(--c-ink);
  color: var(--c-yellow);
  text-decoration: none;
  cursor: crosshair;
  position: relative;
  z-index: 3;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
}
.action-section__button:hover {
  background: #fff;
  color: var(--c-ink);
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 rgba(0,0,0,0.3);
}
.action-section__bg-label {
  position: absolute;
  font-family: var(--font-stamp);
  font-size: clamp(120px, 22vw, 320px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(10, 10, 10, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
}

/* ============================================
   フッター
   背景色、余白、文字サイズを調整
============================================ */
.footer {
  background: var(--c-pink);
  color: var(--c-ink);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.2;
}
.footer__logo span {
  -webkit-text-stroke: 2px var(--c-ink);
  color: transparent;
}
.footer__meta {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 14px);
  text-align: right;
  line-height: 1.8;
  font-weight: 700;
}

.footer__copyright {
  margin-top: 8px;
}

/* ============================================
   マウス装飾と進み線
   不要な場合は HTML / JS もあわせて調整
============================================ */
.cursor-dot {
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  width: 20px;
  height: 20px;
  border: 3px solid var(--c-ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: multiply;
}
.cursor-dot--large {
  width: 56px;
  height: 56px;
  background: rgba(255, 229, 0, 0.7);
}
.scroll-progress {
  position: fixed;
  top: var(--header-height); /* ヘッダーのすぐ下に表示 */
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--c-ink);
  z-index: 9998;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress-scale));
}

/* ============================================
   画面幅ごとの調整
   スマホ表示の列数や余白を変える場合はここを編集
============================================ */
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .split-section__primary {
    border-right: none;
    border-bottom: var(--border-thick);
  }
}

@media (max-width: 768px) {
  /* スマホでもヘッダーの高さをそろえる */
  .header {
    height: 64px;
  }

  .header__nav { display: none; }
  .hamburger { display: flex; }
  
  .hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .lead-section__intro-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .lead-section__slider {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .lead-section__grid { grid-template-columns: 1fr 1fr; }
  .card:nth-child(3n) { border-right: var(--border-thick); }
  .card:nth-child(2n) { border-right: none; }
  
  .footer { flex-direction: column; text-align: center; }
  .footer__meta { text-align: center; }
}

@media (max-width: 580px) {
  .lead-section__grid { grid-template-columns: 1fr; }
  .card:nth-child(n) { border-right: none; }
  
  .message-section__quote { font-size: clamp(28px, 8vw, 40px); }
  .lead-section__title { font-size: clamp(32px, 9vw, 48px); }

  /* スマホではカードを縦に詰めて見やすくする */
  .card:not(.card--img) {
    min-height: auto; /* 縦に間のびしないようにする */
    justify-content: flex-start; /* 中身を上から並べる */
    padding-bottom: 40px;
  }
  .card__body {
    margin-top: 48px; /* 番号と見出しの間をそろえる */
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .hamburger span { transition: none; }
  .cursor-dot { display: none; }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor-dot {
    display: none;
  }
}
