@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

/* =========================================================
   CONTACT フォーム（2026 刷新版）
   黒 × ネオンイエロー ／ トップページと同じ演出言語
   ========================================================= */

/* ===== ベース ===== */
body {
    font-family: 'Space Grotesk', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    background-color: #000;
    color: #F7FF00;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
html, body, a, button { cursor: none; }
input, textarea { cursor: text; }

/* 背景パーティクル */
#bgCanvas {
    position: fixed;
    inset: 0;
    display: block;
    z-index: -1;
    pointer-events: none;
}

/* ===== カスタムカーソル ===== */
#js-mouse {
    pointer-events: none;
    position: fixed;
    top: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.678);
    border: 1px solid rgba(247, 255, 0, 0.5);
    border-radius: 50%;
    transform: translate(0, 0);
    transition: all 0.3s ease-out;
    z-index: 9999;
    opacity: 0;
}
#js-cursor {
    pointer-events: none;
    position: fixed;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-color: rgba(238, 255, 0, 0.829);
    border-radius: 50%;
    transform: translate(0, 0);
    transition: width 0.3s ease-out, height 0.3s ease-out;
    z-index: 10000;
    opacity: 0;
}
#js-mouse.js-hover { width: 80px; height: 80px; }
#js-cursor.js-hover { width: 50px; height: 50px; }

/* ===== 出現アニメ（CSSのみ・CDN不要） ===== */
.rise {
    opacity: 0;
    transform: translateY(26px);
    animation: riseUp 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes riseUp {
    to { opacity: 1; transform: none; }
}

/* ===== ヘッダー ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 42px;
}
.header-logo {
    color: #F7FF00;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.04em;
    text-decoration: none;
}
.header-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-nav ul li { list-style: none; }
.header-nav ul li a {
    color: #F7FF00;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}
.header-nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #F7FF00;
    transition: width 0.3s ease;
}
.header-nav ul li a:hover::after { width: 100%; }

/* ===== フォームエリア ===== */
.main { width: 100%; }
.forms {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 30px 24px 90px;
}

.form-eyebrow {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.42em;
    color: rgba(247, 255, 0, 0.65);
    margin-bottom: 14px;
}

/* タイトル：1文字ずつマスクから出現（JSでspan化） */
.contact-h1 {
    font-size: clamp(56px, 12vw, 96px);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #F7FF00;
    text-align: center;
    line-height: 1.1;
    overflow: hidden;
    margin-bottom: 26px;
}
.contact-h1 .ch {
    display: inline-block;
    transform: translateY(115%);
    opacity: 0;
    animation: chUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform;
}
@keyframes chUp {
    to { transform: none; opacity: 1; }
}

.form-note {
    text-align: center;
    color: rgba(247, 255, 0, 0.8);
    font-size: 14px;
    line-height: 2;
    margin-bottom: 64px;
}

/* ===== フィールド（アンダーライン型） ===== */
.field {
    position: relative;
    margin-bottom: 44px;
}
.field label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(247, 255, 0, 0.85);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}
.field:focus-within label { color: #F7FF00; }
.f-no {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(247, 255, 0, 0.55);
    margin-right: 12px;
}
.hissu {
    color: #ff675c;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    margin-left: 12px;
    border: 1px solid #ff675c;
    border-radius: 6px;
}

.field input,
.field textarea {
    width: 100%;
    background: transparent;
    color: #F7FF00;
    border: none;
    border-bottom: 1px solid rgba(247, 255, 0, 0.3);
    border-radius: 0;
    padding: 12px 2px 14px;
    font-size: 17px;
    font-family: inherit;
    box-sizing: border-box;
}
.field textarea {
    height: 170px;
    resize: vertical;
    line-height: 1.8;
}
.field input:focus,
.field textarea:focus { outline: none; }
::placeholder { color: rgba(247, 255, 0, 0.32); }

/* フォーカス時：イエローのラインが左から伸びる */
.field::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #F7FF00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.field:focus-within::after { transform: scaleX(1); }

/* オートフィルで白くならないように */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #000 inset;
    -webkit-text-fill-color: #F7FF00;
    transition: background-color 9999s ease-out;
}

/* ===== 送信ボタン（ピル型・スイープ塗り＋マグネット） ===== */
.submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}
.submit-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 58px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #F7FF00;
    background: transparent;
    border: 1px solid rgba(247, 255, 0, 0.7);
    border-radius: 999px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s ease;
    will-change: transform;
}
.submit-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #F7FF00;
    transform: translateY(101%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.submit-button:hover::before { transform: translateY(0); }
.submit-button .st,
.submit-button .arrow {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}
.submit-button:hover .st,
.submit-button:hover .arrow { color: #000; }
.submit-button:hover .arrow { transform: translateX(6px); }

/* ===== マーキー帯 ===== */
.marquee {
    overflow: hidden;
    background: #050505;
    border-top: 1px solid rgba(247, 255, 0, 0.25);
    border-bottom: 1px solid rgba(247, 255, 0, 0.25);
    padding: 13px 0;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeMove 20s linear infinite;
}
.marquee-track span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.18em;
    color: #F7FF00;
    white-space: nowrap;
}
@keyframes marqueeMove { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ===== フッター ===== */
.contact-footer {
    padding: 30px 24px 34px;
    text-align: center;
}
.contact-footer .footer-pagetop {
    display: inline-block;
    color: rgba(247, 255, 0, 0.7);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.25s ease;
}
.contact-footer .footer-pagetop:hover { color: #F7FF00; }
.copyright {
    color: rgba(247, 255, 0, 0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 767px) {
    .header { padding: 18px 20px; }
    .header-nav ul { gap: 18px; }
    .header-nav ul li a { font-size: 13px; }
    .header-logo { font-size: 16px; }
    .forms { padding: 22px 20px 70px; }
    .form-note { font-size: 13px; margin-bottom: 46px; }
    .field { margin-bottom: 36px; }
    .field input, .field textarea { font-size: 16px; }
    .submit-button { padding: 17px 46px; font-size: 15px; }
    .marquee-track span { font-size: 13px; }
}

/* ===== 動きを抑えたい人向け ===== */
@media (prefers-reduced-motion: reduce) {
    .rise { animation: none; opacity: 1; transform: none; }
    .contact-h1 .ch { animation: none; opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}


/* タイポ仕上げ */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.form-note, .field label { font-feature-settings: "palt"; letter-spacing: 0.04em; }
::selection { background: #F7FF00; color: #000; }

