/* =========================================================

   Base CSS

   - After reset.css

   - Typography & basic layout foundation

   - Neutral but creative-friendly

========================================================= */
/* -------------------------------------------------

   Root / variables

------------------------------------------------- */ :root {
  --text-main: #111;
  --text-sub: rgba(17, 17, 17, 0.7);
  --text-muted: rgba(17, 17, 17, 0.5);
  --bg-main: #ffffff;
  --bg-sub: #f7f7f7;
  --line-light: rgba(17, 17, 17, 0.15);
  --font-base:
    "A1 Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-en:
    "A1 Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --line-height-base: 1.9;
  --line-height-tight: 1.4;
}
/* =========================================

   Font Family

   A1 Gothic (Adobe Fonts) → Han

========================================= */
/* -------------------------------------------------

   Body

------------------------------------------------- */
body {
  font-family: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--text-main);
  background-color: var(--bg-main);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
/* -------------------------------------------------

   Headings

------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: var(--line-height-tight);
  letter-spacing: 0.08em;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
}
h2 {
  font-size: clamp(20px, 2.5vw, 26px);
}
h3 {
  font-size: 18px;
}
h4 {
  font-size: 16px;
}
/* -------------------------------------------------

   Text

------------------------------------------------- */
p {
  color: var(--text-sub);
}
small {
  font-size: 12px;
  color: var(--text-muted);
}
strong {
  font-weight: 600;
}
em {
  font-style: normal;
}
/* -------------------------------------------------

   Links

------------------------------------------------- */
a {
  color: inherit;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.7;
}
/* -------------------------------------------------

   Lists

------------------------------------------------- */
ul, ol {
  margin: 0;
  padding: 0;
}
li {
  color: var(--text-sub);
}
/* -------------------------------------------------

   Images

------------------------------------------------- */
img {
  height: auto;
}
/* -------------------------------------------------

   Sections (generic spacing helpers)

------------------------------------------------- */
section {
  position: relative;
}
.section {
  padding: 80px 20px;
}
/* -------------------------------------------------

   Utility

------------------------------------------------- */
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-muted {
  color: var(--text-muted);
}
.mt-s {
  margin-top: 8px;
}
.mt-m {
  margin-top: 16px;
}
.mt-l {
  margin-top: 32px;
}
.mb-s {
  margin-bottom: 8px;
}
.mb-m {
  margin-bottom: 16px;
}
.mb-l {
  margin-bottom: 32px;
}
/* -------------------------------------------------

   Clouds (fixed layer)

   - Positions are editable via CSS variables (percent)

------------------------------------------------- */ :root {
  --cloud1-top: 51%;
  --cloud1-left: 18%;
  --cloud1-scale: 1;
  --cloud2-top: 30%;
  --cloud2-left: 72%;
  --cloud2-scale: 1;
  --cloud3-top: 67%;
  --cloud3-left: 55%;
  --cloud3-scale: 1;
  --cloud4-top: -22%;
  --cloud4-left: 49%;
  --cloud4-scale: 1;
}
.clouds {
  position: fixed;
  inset: 0;
  z-index: 1; /* behind main content (content z-index is set to 10 above) */
  pointer-events: none;
}
.cloud {
  position: absolute;
  width: 120%;
  max-width: inherit;
  height: auto;
  opacity: 1;
  transition: opacity 320ms ease;
  will-change: opacity, transform;
  transform-origin: center center;
}
/* Position mapping (percent based) */
.clouds .cloud:nth-child(1) {
  top: var(--cloud1-top);
  left: var(--cloud1-left);
  transform: translate(-50%, -50%) scale(var(--cloud1-scale));
  z-index: 5;
}
.clouds .cloud:nth-child(2) {
  top: var(--cloud2-top);
  left: var(--cloud2-left);
  transform: translate(-50%, -50%) scale(var(--cloud2-scale));
  z-index: 4;
}
.clouds .cloud:nth-child(3) {
  top: var(--cloud3-top);
  left: var(--cloud3-left);
  transform: translate(-50%, -50%) scale(var(--cloud3-scale));
  z-index: 3;
}
.clouds .cloud:nth-child(4) {
  top: var(--cloud4-top);
  left: var(--cloud4-left);
  transform: translate(-50%, -50%) scale(var(--cloud4-scale));
  z-index: 2;
}
.cloud.is-hidden {
  opacity: 0;
}
/* -------------------------------------------------

   Dev panel (only when enabled via ?dev=1)

------------------------------------------------- */
.cloud-dev {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  padding: 12px 12px 10px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}
.cloud-dev h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.cloud-dev .row {
  display: grid;
  grid-template-columns: 44px 1fr 46px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.cloud-dev label {
  opacity: .9;
}
.cloud-dev input[type="range"] {
  width: 100%;
}
.cloud-dev .btns {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.cloud-dev button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #000;
  font-weight: 700;
  cursor: pointer;
}
.cloud-dev button.secondary {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
}
.cloud-dev textarea {
  width: 100%;
  min-height: 84px;
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  padding: 8px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}
/* =========================================

   Down Arrow (Blink)

========================================= */
.down-arrow {
  position: absolute; /* fixed にしてもOK */
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 14px solid #FFF;
  cursor: pointer;
  animation: arrow-blink 1.6s ease-in-out infinite;
  will-change: opacity;
}
@keyframes arrow-blink {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}
html {
  background-color: #000;
  color: #FFF;
}
body {
  background-color: #000;
  color: #fff;
  position: relative; /* 必須 */
}
/* 背景レイヤー（黒の上に重ねる） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../images/bg.jpg") center / cover no-repeat;
  opacity: var(--bg-opacity, .5);
  pointer-events: none;
  z-index: 0; /* 背景レイヤー */
}
/* 本文を背景レイヤーより前に出す */
body > * {
  position: relative;
  z-index: 1;
}
h1 {
  width: 20%;
  margin: 20px auto !important;
}
img {
  width: 100%;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .25));
  will-change: transform; /* opacity/filter は指定しない */
}
/* Clouds (SVG backgrounds) */
.cloud {
  will-change: opacity, transform;
  transition: opacity 180ms linear; /* Ǐ]炩 */
}
/* Ensure content is above clouds */
.site-header, .snap {
  position: relative;
  z-index: 10;
}
section {
  width: 100%;
  height: 100vh;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2
}
p {
  color: #FFF;
  font-family: "source-han-sans-cjk-ja", sans-serif;
  font-size: 1vw;
  margin-bottom: 2%;
  font-weight: 600;
}
section h1 {
  position: absolute;
  top: 0;
}
section .innerWrap {
  display: block;
  width: 100%;
}
section h2 {
  font-family: "Inter", "gothic-a1", sans-serif;
  font-size: 2.0vw;
  font-kerning: normal;
  font-weight: 700;
  margin-bottom: 20px
}
.mainleed {
  text-align: left;
  margin-left: 50px;
}
.mainleed .maintext {
  font-size: 4vw;
  font-family: "Inter", "gothic-a1", sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 135%;
  letter-spacing: 5px;
  margin-bottom: 10px;
  font-kerning: normal;
}
.btn {
  text-align: center;
}
.btn a {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  border: 1px solid #fff;
  padding: .6em 2.5em;
  margin: 1%;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: background .2s ease, color .2s ease;
}
/* 矢印 */
.btn a::after {
  content: "→";
  display: inline-block;
  transform: translateX(0);
  transition: transform .2s ease;
}
/* ホバー */
.btn a:hover {
  background: #fff;
  color: #000;
}
.btn a:hover::after {
  transform: translateX(.4em);
}
/* ===== Cloud override (wins even if JS writes inline styles) ===== */
.clouds {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.clouds .cloud {
  position: absolute !important;
  transform:
    translate(var(--base-x), var(--base-y)) translate(var(--mx, 0%), var(--my, 0%)) translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0) !important;
  transition: opacity 200ms linear;
}
/* Anchors (responsive, % based)

   1: left-center / 2: right-upper-mid / 3: bottom-center / 4: top-center */
.clouds .cloud:nth-child(1) {
  left: -30% !important;
  top: 50% !important;
  --base-x: 0%;
  --base-y: -50%;
  min-width: 1500px
}
.clouds .cloud:nth-child(2) {
  left: 140% !important;
  top: 30% !important;
  --base-x: -100%;
  --base-y: -50%;
  min-width: 1500px
}
.clouds .cloud:nth-child(3) {
  left: 53% !important;
  top: 117% !important;
  --base-x: -50%;
  --base-y: -100%;
  min-width: 1500px
}
.clouds .cloud:nth-child(4) {
  left: 50% !important;
  top: -58% !important;
  --base-x: -50%;
  --base-y: 0%;
  min-width: 1500px
}
/* Micro-tuning (edit only these % values) */
.clouds .cloud:nth-child(1) {
  --mx: 0%;
  --my: 0%;
}
.clouds .cloud:nth-child(2) {
  --mx: 0%;
  --my: 0%;
}
.clouds .cloud:nth-child(3) {
  --mx: 0%;
  --my: 0%;
}
.clouds .cloud:nth-child(4) {
  --mx: 0%;
  --my: 0%;
}
.whitecloud {
  position: fixed;
  top: -2%;
  left: 50%;
  width: 90%;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0.7;
}
/* ===== Page Top Button ===== */
#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 32px;
  height: 32px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}
/* 矢印 */
#toTop::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(-50%, -30%) rotate(-45deg);
}
/* 表示状態 */
#toTop.is-show {
  opacity: 1;
  pointer-events: auto;
}
html {
  opacity: 0;
  transition: opacity 1s ease;
}
html.is-loaded {
  opacity: 1;
}
.sp {
  display: none;
}
.pc {
  display: block;
}
/* Tablet */
@media (max-width: 1024px) {
  /* Layout */
  section {
    height: auto;
    min-height: 100vh;
    padding: 3%;
  }
  /* Logo */
  h1 {
    width: 40%;
    margin: 18px auto !important;
  }
  /* Typography */
  p {
    font-size: 2vw;
    line-height: 1.9;
  }
  section h2 {
    font-size: 4vw;
  }
  .mainleed {
    margin-left: 2vw;
  }
  .mainleed .maintext {
    font-size: 5vw;
    letter-spacing: 0.12em;
  }
  /* Button */
  .btn a {
    padding: .6em 2.2em;
  }
  /* Arrow */
  .down-arrow {
    bottom: 18px;
    border-left-width: 10px;
    border-right-width: 10px;
    border-top-width: 12px;
  }
  /* Clouds */
  .cloud {
    width: 140vw;
  }
}
/* Smartphone */
@media (max-width: 768px) {
  /* Layout */
  section {
    padding: 5%;
  }
  /* Logo */
  h1 {
    width: 50%;
    margin: 14px auto !important;
  }
  /* Typography */
  p {
    font-size: 3.2vw;
    text-align: left;
  }
  section h2 {
    font-size: 6vw;
    letter-spacing: 0.06em;
  }
  .mainleed {
    text-align: center;
    margin-left: 0;
    padding: 0 8px;
  }
  .mainleed .maintext {
    font-size: 7.9vw;
    letter-spacing: 0.08em;
    line-height: 1.35;
  }
  .mainleed .subtext {
    font-size: 2.8vw;
  }
  /* Button */
  .btn a {
    padding: .7em 1.8em;
    margin: 10px 0;
  }
  /* Arrow */
  .down-arrow {
    bottom: 10%;
  }
  /* Clouds */
  .cloud {
    width: 170vw;
  }
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
  #footer p {
    text-align: center;
  }
  .whitecloud {
    position: fixed;
    top: 7%;
    left: 50%;
    width: 95%;
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.7;
  }
}