/*
Theme Name: Chomorrow v4.8 Preview
Description: ちょっと先のおもしろい未来 公式テーマ（v4.8 プレビュー）
Version: 4.8.0
*/

/* =========================================
   CSS Custom Properties
   ========================================= */
:root {
  --color-header: #29a1e9;
  --color-footer: rgb(50, 50, 50);
  --color-accent: #050f77;
  --color-text: rgb(50, 50, 50);
  --font-heading: Inter, sans-serif;
  --font-body: Inter, sans-serif;
  --font-en: Rubik, sans-serif;

  /* ---- 2026 LP RENEWAL v2 tokens (Agent A owns this block) ---- */
  --ink: #16161a;
  --ink-2: #26262c;
  --paper: #ffffff;
  --soft: #f6f7f9;
  --line: #e6e8ec;
  --line-ink: rgba(22, 22, 26, .14);
  --mag: #eb0087;
  --cyn: #019fe8;
  --blu: #00a0e9;
  --grn: #00b482;
  --yel: #fff001;
  --cor: #ff5a36;
  --muted: #5a6068;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --pill: 999px;
  --sh-s: 0 2px 8px rgba(22, 22, 26, .06);
  --sh-m: 0 10px 30px rgba(22, 22, 26, .12);
  --sh-l: 0 22px 54px rgba(22, 22, 26, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
  --en: "Unbounded", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --grad: linear-gradient(180deg, var(--mag), var(--cyn));
  --grad-h: linear-gradient(90deg, var(--mag), var(--cyn));
}

/* =========================================
   Reset / Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #fff; font-family: var(--font-body); transition: background 0.5s cubic-bezier(0.4, 0.4, 0, 1); }
a { text-decoration: none; }
img { display: block; }

.site-wrapper { position: relative; width: 100%; min-height: 100vh; display: flex; flex-direction: column; }

/* =========================================
   2026 LP RENEWAL v2 — shared primitives
   (tokens defined above; owned solely by Agent A)
   ========================================= */
.tk {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.tk b { color: var(--cyn); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--pill);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 11px 26px;
  line-height: 1.2;
  font-family: var(--jp);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--pop { background: var(--mag); color: #fff; box-shadow: var(--sh-m); }
.btn--pop:hover { box-shadow: var(--sh-l); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Section skeleton: vertical title + gradient rule ---- */
.sec { position: relative; padding-block: clamp(66px, 9vw, 116px); padding-inline: clamp(20px, 6vw, 80px); overflow: clip; }
.sec--soft { background: var(--soft); }
.wrap { max-width: 1100px; margin: 0 auto; }
.sec__grid { display: flex; gap: clamp(30px, 5vw, 70px); align-items: flex-start; }
.sec__head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 104px;
}
.sec__eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--mag);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.sec__title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2em;
  border-right: 2.5px solid;
  border-image: var(--grad) 1;
  padding-right: 13px;
}
.sec__body { flex: 1; min-width: 0; }
.sec__tk { position: absolute; top: 26px; right: clamp(20px, 4vw, 44px); }

@media (max-width: 768px) {
  .sec__grid { flex-direction: column; align-items: stretch; gap: 26px; }
  .sec__head { position: static; flex-direction: row; align-items: center; gap: 12px; }
  .sec__eyebrow { writing-mode: horizontal-tb; }
  .sec__title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-right: 0;
    border-left: 2.5px solid;
    border-image: var(--grad) 1;
    padding: 2px 0 2px 13px;
  }
}

/* ---- Reveal on scroll ---- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* =========================================
   HEADER (2026 LP RENEWAL v2 — white sticky)
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  align-items: center;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: auto;
  justify-content: flex-start;
  gap: 24px;
  overflow: visible;
  padding: 12px clamp(16px, 3vw, 32px);
  width: 100%;
}

.header-logo {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  width: 126px;
  max-width: 100%;
}

.logo-img {
  height: auto;
  width: 100%;
  max-width: 100%;
}

.header-nav {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex: 1;
  gap: 20px;
  height: auto;
  justify-content: flex-end;
  padding: 0;
  width: auto;
  max-width: 100%;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
  padding: 0;
  width: auto;
  max-width: 100%;
}

.nav-link {
  border-bottom: none;
  color: var(--ink);
  font-family: var(--jp);
  font-feature-settings: 'palt' 1;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--grad-h);
  transition: right .3s var(--ease);
}

.nav-link:hover {
  border-bottom: none;
  color: var(--ink);
}

.nav-link:hover::after { right: 0; }

.nav-link--highlight { font-weight: 600; }

.nav-link.nav-link--disabled { color: var(--muted); opacity: .5; }
.nav-link.nav-link--disabled::after { display: none; }

.nav-social {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  width: auto;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--ink);
  border-radius: 50%;
  position: relative;
}

.social-link::before {
  content: '';
  display: block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.social-link--twitter::before {
  background-image: url("../image/sns-icon/x.webp");
}

.social-link--instagram::before {
  background-image: url("../image/sns-icon/instagram.webp");
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* =========================================
   HAMBURGER (mobile only)
   ========================================= */
.hamburger-wrapper {
  display: none;
  position: fixed;
  right: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  z-index: 200;
}

.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  height: 32px;
  padding: 0;
  position: relative;
  width: 32px;
}

.hamburger-line {
  background: var(--ink);
  display: block;
  height: 2px;
  left: 0;
  position: absolute;
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  width: 100%;
}

.hamburger-line:nth-child(1) { top: 5px; }
.hamburger-line--mid          { top: 15px; width: 80%; }
.hamburger-line--short        { top: 25px; width: 60%; }

.hamburger-btn.is-open .hamburger-line:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
  width: 100%;
}
.hamburger-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.hamburger-btn.is-open .hamburger-line:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
  width: 100%;
}

/* =========================================
   FOOTER (2026 LP RENEWAL v2 — ink 3-tier + ghost wordmark)
   ========================================= */
.site-footer {
  position: relative;
  align-items: stretch;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  height: auto;
  justify-content: center;
  padding: 0;
  width: 100%;
  overflow: hidden;
  z-index: 4;
}

.footer-ghost {
  position: absolute;
  left: 50%;
  bottom: -.14em;
  transform: translateX(-50%);
  font-family: var(--en);
  font-weight: 900;
  font-size: clamp(70px, 13vw, 170px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
}

.footer-top {
  position: relative;
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
  padding: clamp(44px, 6vw, 70px) clamp(20px, 4vw, 44px) 40px;
  display: flex;
  gap: clamp(30px, 6vw, 90px);
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand { flex: none; }

.footer-tag {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
  margin-top: 12px;
  letter-spacing: .08em;
  font-family: var(--jp);
}

.footer-tk {
  margin-top: 18px;
  color: rgba(255, 255, 255, .35);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-cols {
  display: flex;
  gap: clamp(30px, 5vw, 76px);
  margin-left: auto;
  flex-wrap: wrap;
}

.footer-col__head {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-nav {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  width: auto;
  max-width: 100%;
}

.footer-nav__link {
  color: rgba(255, 255, 255, .85);
  font-family: var(--jp);
  font-feature-settings: 'palt' 1;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin: 0;
  padding: 5px 0;
  max-width: 100%;
  transition: color .2s;
}

.footer-nav__link:hover { opacity: 1; color: var(--cyn); }
.footer-nav__link:last-child { margin-right: 0; }

.footer-nav__link.footer-nav__link--disabled { color: rgba(255, 255, 255, .35); }

.footer-logo {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: auto;
  justify-content: center;
  margin: 0;
  width: auto;
  max-width: 100%;
}

.footer-logo:hover { opacity: 0.8; }

.footer-logo__img {
  height: auto;
  width: 148px;
  max-width: 100%;
}

.footer-bar {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, var(--mag), var(--cor), var(--yel), var(--grn), var(--cyn));
}

.footer-meta {
  position: relative;
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 16px clamp(20px, 4vw, 44px);
}

.footer-privacy-link {
  color: rgba(255, 255, 255, .5);
  font-family: var(--font-heading);
  font-feature-settings: 'palt' 1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.footer-privacy-link:hover { color: #fff; opacity: 1; }

.footer-copyright {
  color: rgba(255, 255, 255, .5);
  font-family: var(--font-en);
  font-feature-settings: 'palt' 1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* =========================================
   RESPONSIVE - TABLET (max 980px)
   ========================================= */
@media screen and (min-width: 769px) and (max-width: 980px) {
  .site-header { height: auto; width: 100%; padding: 12px 20px; gap: 16px; }
  .header-logo { width: 110px; }
  .header-nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { flex-direction: row; gap: 12px; width: auto; }
  .nav-link { font-size: 11.5px; }
  .nav-social { align-items: center; gap: 8px; }
  .header-cta { padding: 9px 18px; font-size: 12px; }
}

/* =========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================= */
@media screen and (max-width: 768px) {
  .site-header { align-content: flex-start; align-items: center; height: auto; justify-content: space-between; padding: 10px 56px 10px 14px; }
  .header-logo { margin: 0; padding: 4px 0; width: 110px; }
  .logo-img { height: auto; width: 100%; }
  .header-nav {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.97);
    bottom: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex: none;
    gap: 0;
    height: auto;
    justify-content: center;
    left: 0;
    max-width: 100%;
    min-height: 100vh;
    opacity: 0;
    padding: 80px 40px 40px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    width: 100%;
    z-index: 100;
  }
  .header-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav-links { flex-direction: column; gap: 22px; width: 100%; align-items: flex-start; }
  .nav-link { color: var(--ink); font-size: 18px; font-weight: 700; }
  .nav-link::after { display: none; }
  .nav-social { flex-direction: row; gap: 20px; margin-top: 32px; width: 100%; justify-content: center; }
  .header-cta { display: none; }
  .hamburger-wrapper { display: flex; }

  .footer-top { flex-direction: column; gap: 40px; padding: 44px 20px 32px; }
  .footer-cols { gap: 32px; margin-left: 0; width: 100%; }
  .footer-logo__img { width: 130px; }
  .footer-meta { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}

