/* ============================================================
       IPHOLIC — VISION / DESIGN  (full-screen panel scroll)
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --bg:#FFFFFF; --bg-soft:#F5F4F1; --text:#141414; --text-mid:#6E6E6E; --text-soft:#9B9B9B; --line:#E7E6E2;
      --ease: cubic-bezier(0.16, 1, 0.3, 1);
    }
    html, body { height: 100%; overflow: hidden; }
    body { font-family: "Noto Sans JP", sans-serif; color: var(--text); letter-spacing: 0.04em; line-height: 1.8; background: var(--text); }
    img { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    .en { font-family: "Noto Sans JP", sans-serif; font-weight: 300; letter-spacing: 0.32em; }

    /* ===== HEADER ===== */
    .header { position: fixed; top: 0; left: 0; width: 100%; height: 76px; padding: 0 clamp(20px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; z-index: 200; }
    .header__logo img { height: 54px; width: auto; }
    .header__logo .logo-light { display: none; }
    body.theme-dark .header__logo .logo-dark { display: none; }
    body.theme-dark .header__logo .logo-light { display: block; }
    .header__nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
    .header__nav a { position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; padding: 4px 0; color: var(--text); transition: color 0.5s var(--ease); }
    .header__nav a.is-current { color: var(--text-soft); }
    .header__nav a:not(.nav-contact):not(.is-current)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
    .header__nav a:not(.nav-contact):not(.is-current):hover::after { transform: scaleX(1); transform-origin: left; }
    .nav-contact { border: 1px solid currentColor; border-radius: 999px; padding: 9px 24px !important; font-size: 11.5px !important; letter-spacing: 0.16em !important; transition: background 0.45s var(--ease), color 0.45s var(--ease); }
    .nav-contact:hover { background: var(--text); color: #fff; }
    body.theme-dark .header__nav a { color: #fff; }
    body.theme-dark .header__nav a.is-current { color: rgba(255,255,255,0.45); }
    body.theme-dark .nav-contact:hover { background: #fff; color: var(--text); }
    .header__burger { display: none; width: 28px; height: 16px; position: relative; cursor: pointer; }
    .header__burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text); transition: transform 0.45s var(--ease), opacity 0.3s var(--ease), background 0.5s var(--ease); }
    body.theme-dark .header__burger span { background: #fff; }
    .header__burger span:nth-child(1) { top: 0; } .header__burger span:nth-child(2) { top: 7px; } .header__burger span:nth-child(3) { top: 14px; }
    .drawer { position: fixed; inset: 0; background: var(--bg); z-index: 190; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease); }
    .drawer.is-open { opacity: 1; visibility: visible; }
    .drawer a { color: var(--text); font-size: 16px; font-weight: 500; letter-spacing: 0.14em; padding: 16px 0; }
    .drawer a .sub { display: block; font-size: 10px; letter-spacing: 0.3em; color: var(--text-soft); margin-top: 4px; }
    body.menu-open .header__burger span { background: var(--text) !important; }
    body.menu-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.menu-open .header__burger span:nth-child(2) { opacity: 0; }
    body.menu-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ===== PANELS ===== */
    .panel {
      position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      text-align: center; padding: 110px 6vw 64px;
      opacity: 0; visibility: hidden; pointer-events: none;
      transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
      overflow-y: auto;
    }
    .panel.active { opacity: 1; visibility: visible; pointer-events: auto; }
    .panel__inner { position: relative; z-index: 2; width: 100%; max-width: 980px; }

    /* reveal-on-active utilities */
    .up { opacity: 0; transform: translateY(28px); transition: opacity 0.95s var(--ease), transform 0.95s var(--ease); }
    .panel.active .up { opacity: 1; transform: none; }
    .up.d1 { transition-delay: 0.18s; } .up.d2 { transition-delay: 0.32s; } .up.d3 { transition-delay: 0.46s; } .up.d4 { transition-delay: 0.60s; }
    .mask { display: block; overflow: hidden; padding: 0.04em 0; }
    .mask > span { display: inline-block; transform: translateY(112%); transition: transform 1.05s var(--ease); }
    .panel.active .mask > span { transform: none; }
    .mask.m1 > span { transition-delay: 0.22s; } .mask.m2 > span { transition-delay: 0.36s; }

    /* labels */
    .p-label { font-size: 11px; letter-spacing: 0.38em; margin-bottom: clamp(22px, 3.4vh, 36px); display: inline-flex; align-items: center; gap: 14px; }
    .p-label::before, .p-label::after { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.4; }

    /* PANEL 1 — MV (dark) */
    .panel--mv { background: var(--text); }
    .panel--mv::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 30% 45%, rgba(120,120,120,0.22) 0%, transparent 60%); z-index: 0; }
    .panel--mv .p-label { color: rgba(255,255,255,0.45); }
    .panel__catch { font-family: "Noto Serif JP", serif; font-weight: 400; color: #fff; font-size: clamp(3rem, 8vw, 7.5rem); line-height: 1.28; letter-spacing: 0.08em; }
    .panel__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
    .panel__scroll span { font-size: 9px; letter-spacing: 0.35em; color: rgba(255,255,255,0.4); }
    .panel__scroll-line { width: 1px; height: 50px; background: rgba(255,255,255,0.18); position: relative; overflow: hidden; }
    .panel__scroll-line::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.7); animation: scrollPulse 2.2s var(--ease) infinite; }
    @keyframes scrollPulse { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

    /* PANEL 2 — QUESTION (white) */
    .panel--question { background: var(--bg); }
    .panel--question .p-label { color: var(--text-soft); }
    .panel__question { font-family: "Noto Serif JP", serif; font-weight: 400; font-size: clamp(1.3rem, 3vw, 2.5rem); line-height: 1.95; letter-spacing: 0.08em; color: var(--text); }
    .panel__qmark { position: absolute; bottom: 4vh; right: 4vw; font-family: "Noto Serif JP", serif; font-size: clamp(7rem, 18vw, 18rem); font-weight: 300; color: #EEEDEA; line-height: 0.7; user-select: none; z-index: 0; }

    /* PANEL 3 — ANSWER (soft) */
    .panel--answer { background: var(--bg-soft); }
    .panel--answer .p-label { color: var(--text-soft); }
    .panel__answer { font-size: clamp(0.9rem, 1.35vw, 1.08rem); font-weight: 300; line-height: 2.45; color: #4a4a4a; max-width: 820px; margin: 0 auto clamp(36px, 5vh, 52px); text-wrap: balance; }
    .panel__statement { font-family: "Noto Serif JP", serif; font-weight: 400; font-size: clamp(1.1rem, 2.1vw, 1.7rem); line-height: 2; color: var(--text); max-width: 720px; margin: 0 auto; padding-top: clamp(32px, 4vh, 44px); border-top: 1px solid var(--line); }
    .panel__statement strong { font-weight: 600; }

    /* PANEL 4 — MISSION (dark) */
    .panel--mission { background: var(--text); }
    .panel--mission::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(120,120,120,0.18) 0%, transparent 60%); z-index: 0; }
    .panel--mission .p-label { color: rgba(255,255,255,0.45); }
    .panel__mission { font-family: "Noto Serif JP", serif; font-weight: 400; color: #fff; font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.5; letter-spacing: 0.08em; }
    .panel__mission-sub { font-size: clamp(0.8rem, 1.1vw, 0.95rem); font-weight: 300; line-height: 2.3; color: rgba(255,255,255,0.5); margin-top: clamp(24px, 3.4vh, 36px); max-width: 600px; margin-left: auto; margin-right: auto; }

    /* dark CTA pill (inverse) */
    .cta-pill { width: fit-content; max-width: 100%; margin: clamp(32px, 4.5vh, 52px) auto 0; background: #fff; color: var(--text); padding: 14px 14px 14px 36px; border-radius: 999px; display: inline-flex; align-items: center; gap: clamp(26px, 4vw, 48px); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
    .cta-pill:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,0,0,0.4); }
    .cta-pill__en { display: block; font-size: clamp(0.95rem, 1.2vw, 1.15rem); font-weight: 300; letter-spacing: 0.16em; }
    .cta-pill__ja { display: block; font-family: "Noto Serif JP", serif; font-size: 0.7rem; color: rgba(0,0,0,0.5); margin-top: 5px; }
    .cta-pill__circle { width: 44px; height: 44px; border-radius: 50%; background: var(--text); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.5s var(--ease); }
    .cta-pill__circle::before { content: ''; width: 8px; height: 8px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: rotate(45deg); }
    .cta-pill:hover .cta-pill__circle { transform: translateX(4px); }

    /* 2ボタンを縦積み・同じ幅に */
    .mission-actions { display: inline-flex; flex-direction: column; align-items: stretch; gap: clamp(18px, 2.8vh, 28px); margin-top: clamp(32px, 4.5vh, 52px); }
    .mission-actions .cta-pill { margin-top: 0; justify-content: space-between; width: auto; }

    /* secondary pill — RECRUIT（アウトライン / 色違い） */
    .cta-pill--recruit { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
    .cta-pill--recruit:hover { background: rgba(255,255,255,0.10); box-shadow: none; }
    .cta-pill--recruit .cta-pill__ja { color: rgba(255,255,255,0.55); }
    .cta-pill--recruit .cta-pill__circle { background: transparent; border: 1px solid rgba(255,255,255,0.6); }
    .cta-pill--recruit .cta-pill__circle::before { border-top-color: #fff; border-right-color: #fff; }

    /* mini footer in mission panel */
    .v-footer { margin-top: clamp(28px, 4vh, 48px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
    .v-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
    .v-footer__nav a { font-size: 12px; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); transition: color 0.4s var(--ease); }
    .v-footer__nav a:hover { color: #fff; }
    .v-footer__copy { font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.3); }

    /* ===== PAGE INDICATORS ===== */
    .indicators { position: fixed; right: clamp(16px, 2.6vw, 30px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 200; }
    .indicators button { width: 7px; height: 7px; border-radius: 50%; padding: 0; border: 1px solid rgba(0,0,0,0.3); background: rgba(0,0,0,0.15); cursor: pointer; transition: all 0.4s var(--ease); }
    .indicators button.active { background: var(--text); border-color: var(--text); transform: scale(1.5); }
    body.theme-dark .indicators button { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.5); }
    body.theme-dark .indicators button.active { background: #fff; border-color: #fff; }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .header__nav { display: none; }
      .header__burger { display: block; z-index: 210; }
      .panel { padding: 96px 7vw 72px; justify-content: center; }
      .panel__qmark { display: none; }
      .indicators { right: 12px; }
      .v-footer__nav { gap: 8px 18px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; }
      .up, .mask > span { opacity: 1 !important; transform: none !important; transition: none !important; }
    }