/*
Theme Name: Idol System
Description: Idol System Custom Theme
Version: 1.0.0
*/

/* ============================================================
   Fade-in Animation
============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.25s; }
.fade-in.delay-3 { transition-delay: 0.4s; }
.fade-in.delay-4 { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   CSS Variables
============================================================ */
:root {
    --cyan:    #00d4ff;
    --pink:    #e91e63;
    --dark:    #06060f;
    --dark2:   #0d0d20;
    --dark3:   #141428;
    --text:    #ffffff;
    --text-sub:#9aaabf;
    --border:  rgba(0, 212, 255, 0.25);
    --font-jp: 'M PLUS 1', sans-serif;
    --font-en: 'Rajdhani', sans-serif;
    --header-h: 72px;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    background: var(--dark);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* ============================================================
   Header
============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 6, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: var(--header-h);
    gap: 24px;
}

/* ロゴ */
.site-logo {
    flex-shrink: 0;
    display: block;
    width: 180px;
}

.site-logo img {
    width: 100%;
    height: auto;
    transition: filter 0.3s;
}

.site-logo:hover img {
    filter: drop-shadow(0 0 8px var(--cyan));
}

/* グローバルナビ */
.global-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list li a {
    display: block;
    padding: 8px 20px;
    font-family: var(--font-jp);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-sub);
    border: 1px solid transparent;
    border-radius: 2px;
    position: relative;
    transition: color 0.25s, border-color 0.25s;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list li a:hover {
    color: var(--cyan);
}

.nav-list li a:hover::after {
    transform: scaleX(1);
}

/* お問い合わせ — CTAボタン */
.nav-list li.nav-cta a,
.nav-list li:last-child a {
    color: var(--dark);
    background: linear-gradient(90deg, var(--cyan), #00a8cc);
    border-color: var(--cyan);
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 8px 24px;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.35);
    transition: box-shadow 0.3s, transform 0.2s;
}

.nav-list li.nav-cta a::after,
.nav-list li:last-child a::after {
    display: none;
}

.nav-list li.nav-cta a:hover,
.nav-list li:last-child a:hover {
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.7);
    transform: translateY(-1px);
}

/* ヘッダー下ライン */
.header-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent);
    opacity: 0.6;
}

/* ハンバーガー（SP） */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

/* ============================================================
   Main content offset
============================================================ */
body > main,
.site-main,
.hero,
.front-page-wrap > :first-child {
    padding-top: var(--header-h);
}

/* ============================================================
   Hero / Sections
============================================================ */
.hero {
    width: 100%;
    line-height: 0;
}

.hero img {
    width: 100%;
    height: auto;
}

.section {
    width: 100%;
    line-height: 0;
}

.section img {
    width: 100%;
    height: auto;
}

.section-link-img {
    display: block;
    line-height: 0;
}

.section-link-img img {
    transition: filter 0.3s ease;
}

@media (hover: hover) {
    .section-link-img:hover img {
        filter: brightness(1.15);
    }
}

/* ============================================================
   Note Slider Section
============================================================ */
.note-section {
    background: var(--dark2);
}

.note-section--bg {
    position: relative;
    background: var(--dark2);
}

.note-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.note-section--bg .note-section-inner {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 1400px;
    max-width: 65%;
    padding: 0;
    overflow: hidden;
}


.note-section-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 40px;
}

.note-swiper {
    overflow: visible !important;
    padding-bottom: 80px !important;
}

.note-card {
    display: block;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid #e8c04a;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(232, 192, 74, 0.2);
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(232, 192, 74, 0.45);
}

.note-card-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.note-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.note-card:hover .note-card-thumb img {
    transform: scale(1.04);
}

.note-card-body {
    padding: 16px 18px 20px;
}

@media (min-width: 769px) {
    .note-card-body {
        display: none;
    }
}

.note-card-title {
    font-family: var(--font-jp);
    font-size: 13px;
    font-weight: 500;
    color: #3a2d5c;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.note-card-date {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--text-sub);
    letter-spacing: 0.1em;
}

/* Swiper overrides */
.note-swiper .swiper-button-prev,
.note-swiper .swiper-button-next {
    color: #7b5ea7;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #e8c04a;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(232, 192, 74, 0.3);
    top: 36%;
}

.note-swiper .swiper-button-prev::after,
.note-swiper .swiper-button-next::after {
    font-size: 12px;
    font-weight: 700;
}

.note-swiper .swiper-pagination {
    display: none;
}

.note-swiper .swiper-pagination-bullet {
    background: var(--text-sub);
    opacity: 1;
}

.note-swiper .swiper-pagination-bullet-active {
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}

.note-more-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.note-more-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-jp);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #7b5ea7;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid #e8c04a;
    border-radius: 999px;
    padding: 10px 40px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(232, 192, 74, 0.3);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.note-more-btn:hover {
    background: #e8c04a;
    color: #fff;
    box-shadow: 0 4px 16px rgba(232, 192, 74, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .note-section {
        padding: 0;
    }
    .note-section-inner {
        padding: 0 20px;
    }
    .note-section-title {
        font-size: 22px;
        margin-bottom: 36px;
    }
    .note-swiper .swiper-button-prev,
    .note-swiper .swiper-button-next {
        display: none;
    }
    .note-section--bg .note-section-inner {
        top: 68%;
        width: 100%;
        max-width: 72%;
        overflow: hidden;
        padding: 0;
    }
}

/* ============================================================
   Fixed Banner
============================================================ */
.fixed-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    width: 240px;
    filter: drop-shadow(0 0 12px rgba(233, 30, 99, 0.6));
    transition: transform 0.25s, filter 0.25s, opacity 0.3s, visibility 0.3s;
    opacity: 1;
    visibility: visible;
}

.fixed-banner.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.fixed-banner:hover {
    transform: scale(1.06) translateY(-2px);
    filter: drop-shadow(0 0 20px rgba(233, 30, 99, 0.9));
}

.fixed-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   Footer
============================================================ */
.site-footer {
    position: relative;
    background: var(--dark2);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

/* グリッドオーバーレイ */
.footer-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 32px 40px;
}

/* ロゴラップ */
.footer-logo-wrap {
    text-align: center;
    padding-bottom: 32px;
}

/* フッターロゴ */
.footer-logo {
    display: inline-block;
    width: 200px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.footer-logo:hover img {
    opacity: 1;
}

/* ロゴ下区切り線 */
.footer-logo-divider {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
}

/* フッターメインコンテンツ */
.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 40px;
}

/* 左：会社情報 */
.footer-info {
    flex-shrink: 0;
    min-width: 240px;
}

.footer-company-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.footer-address {
    font-size: 0.78rem;
    color: var(--text-sub);
    line-height: 1.9;
    letter-spacing: 0.04em;
    font-style: normal;
    margin-bottom: 24px;
}

/* SNSリスト */
.footer-sns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-sns-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-sub);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    transition: color 0.25s;
}

.footer-sns-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-sns-link:hover {
    color: var(--cyan);
}

/* 右：ナビグリッド */
.footer-nav-grid {
    display: flex;
    gap: 48px;
}

.footer-nav-col {
    min-width: 120px;
}

.footer-nav-category {
    font-family: var(--font-jp);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.15em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.25);
}

.footer-nav-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-nav-items li a {
    font-size: 0.875rem;
    color: var(--text-sub);
    letter-spacing: 0.06em;
    transition: color 0.25s, padding-left 0.2s;
    display: block;
    padding: 3px 0 3px 0;
    position: relative;
}

.footer-nav-items li a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.25s;
}

.footer-nav-items li a:hover {
    color: var(--cyan);
    padding-left: 6px;
}

.footer-nav-items li a:hover::before {
    opacity: 1;
}

/* ディバイダー */
.footer-divider {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 0 28px;
}

.footer-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* フッターボトム */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    font-family: var(--font-en);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--text-sub);
    opacity: 0.7;
}

.footer-policy {
    display: flex;
    gap: 24px;
}

.footer-policy li a {
    font-size: 0.78rem;
    color: var(--text-sub);
    letter-spacing: 0.06em;
    opacity: 0.7;
    transition: color 0.25s, opacity 0.25s;
}

.footer-policy li a:hover {
    color: var(--cyan);
    opacity: 1;
}

/* ============================================================
   Keyframes
============================================================ */
@keyframes nav-scanline {
    0%   { transform: translateY(0);    opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes nav-item-in {
    0%   {
        opacity: 0;
        transform: translateX(-20px);
        filter: blur(10px);
        letter-spacing: 0.35em;
        color: var(--cyan);
    }
    40%  {
        opacity: 1;
        filter: blur(1px);
        color: var(--cyan);
        text-shadow: 0 0 12px var(--cyan);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        letter-spacing: 0.12em;
        filter: blur(0);
        color: var(--text);
        text-shadow: none;
    }
}

@keyframes hamburger-spark {
    0%   { box-shadow: none; }
    40%  { box-shadow: 0 0 8px var(--cyan), 0 0 20px var(--cyan); }
    100% { box-shadow: none; }
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .header-inner { padding: 0 20px; }
    .site-logo { width: 140px; }

    .hamburger { display: flex; }

    /* スパーク演出: is-active 切り替え時に一瞬グロー */
    .hamburger.is-active span {
        animation: hamburger-spark 0.35s ease-out forwards;
        background: var(--cyan);
    }

    /* ── SP メニューオーバーレイ ──────────────────────── */
    .global-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: rgba(6, 6, 15, 0.97);
        flex-direction: column;
        justify-content: center;
        border-top: 1px solid var(--border);
        /* グリッド背景 */
        background-image:
            linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
        background-size: 32px 32px;
        /* 中央からフワッと出現 */
        opacity: 0;
        transform: scale(0.96) translateY(-12px);
        pointer-events: none;
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        overflow: hidden;
    }

    .global-nav.is-open {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }

    /* ── ナビ項目 stagger ─────────────────────────────── */
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-list li {
        opacity: 0;
    }

    .global-nav.is-open .nav-list li {
        animation: nav-item-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .global-nav.is-open .nav-list li:nth-child(1) { animation-delay: 0.18s; }
    .global-nav.is-open .nav-list li:nth-child(2) { animation-delay: 0.30s; }
    .global-nav.is-open .nav-list li:nth-child(3) { animation-delay: 0.42s; }
    .global-nav.is-open .nav-list li:nth-child(4) { animation-delay: 0.54s; }

    /* 閉じる時はすぐ消す */
    .global-nav:not(.is-open) .nav-list li {
        transition: opacity 0.15s ease;
        opacity: 0;
    }

    .nav-list li a {
        font-size: 1.15rem;
        padding: 12px 32px;
        letter-spacing: 0.12em;
    }

    .nav-list li a::after { display: none; }

    .nav-list li.nav-cta a,
    .nav-list li:last-child a {
        padding: 12px 40px;
    }

    /* フッター */
    .footer-logo-wrap { padding-bottom: 24px; }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-info { min-width: unset; width: 100%; }

    .footer-nav-grid {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .fixed-banner { width: 180px; right: 16px; bottom: 16px; }
}

/* ============================================================
   Intro Curtain
============================================================ */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.intro-curtain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--dark);
    background-image:
        linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transition: transform 0.85s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

.intro-curtain--top {
    top: 0;
    transform: translateY(0); /* 最初から閉じた状態 */
    box-shadow: 0 4px 0 0 var(--cyan), 0 8px 24px 0 rgba(0, 212, 255, 0.5);
}

.intro-curtain--bottom {
    bottom: 0;
    transform: translateY(0); /* 最初から閉じた状態 */
    box-shadow: 0 -4px 0 0 var(--cyan), 0 -8px 24px 0 rgba(0, 212, 255, 0.5);
}

/* ロゴ — アウター（opacity/transform管理 + drop-shadow） */
.intro-logo-outer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    filter:
        drop-shadow(0 0 18px rgba(0, 212, 255, 0.7))
        drop-shadow(0 0 40px rgba(233, 30, 99, 0.4));
}

/* グラデーション枠ダイヤ（正方形） */
.intro-diamond-border {
    position: absolute;
    width: 520px;
    height: 520px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--pink) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* 白ダイヤ（ロゴ本体） */
.intro-logo-wrap {
    position: relative;
    width: 500px;
    height: 500px;
    background: #fff;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo-wrap img {
    width: 45%;
    height: auto;
    display: block;
}

/* グリッチ退場 */
@keyframes intro-logo-glitch {
    0%   { opacity: 1; transform: scale(1)          translateX(0);   filter: drop-shadow(0 0 18px rgba(0,212,255,0.7)) drop-shadow(0 0 40px rgba(233,30,99,0.4)); }
    8%   {             transform: translateX(-10px)  scaleX(1.03);   filter: drop-shadow( 7px 0 0 #00d4ff) drop-shadow(-7px 0 0 #e91e63); }
    18%  { opacity: 1; transform: translateX( 13px)  scaleX(0.96);   filter: drop-shadow(-7px 0 0 #00d4ff) drop-shadow( 7px 0 0 #e91e63); }
    28%  {             transform: translateX( -7px);                  filter: drop-shadow( 4px 0 0 #00d4ff); }
    38%  { opacity: 1; transform: translateX(  9px)  scaleX(1.04);   filter: drop-shadow(-4px 0 0 #e91e63); }
    50%  { opacity: 0.7; transform: translateX(-5px);                 filter: drop-shadow(12px 0 0 #00d4ff) drop-shadow(-12px 0 0 #e91e63); }
    65%  { opacity: 0.3; transform: translateX( 3px) scaleX(1.06);   filter: drop-shadow( 8px 0 0 #e91e63); }
    80%  { opacity: 0.1; transform: translateX(-2px);                 filter: none; }
    100% { opacity: 0;   transform: translateX(0)    scale(1.04);    filter: none; }
}

.intro-logo-outer.is-glitching {
    animation: intro-logo-glitch 0.55s linear forwards;
    transition: none !important;
}

/* 画面フラッシュ */
@keyframes intro-flash {
    0%   { opacity: 0; }
    20%  { opacity: 0.18; }
    45%  { opacity: 0.06; }
    70%  { opacity: 0.22; }
    100% { opacity: 0; }
}

.intro-glitch-flash {
    position: absolute;
    inset: 0;
    background: var(--cyan);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.intro-glitch-flash.is-flashing {
    animation: intro-flash 0.22s steps(3, end) forwards;
}

/* スキャンライン */
@keyframes intro-scan {
    0%   { top: -20%; opacity: 0.7; }
    100% { top: 120%; opacity: 0; }
}

.intro-logo-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    top: -20%;
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, transparent, rgba(0,212,255,0.15), transparent);
    animation: intro-scan 2.2s linear 0.9s infinite;
    pointer-events: none;
}

@media (max-width: 768px) {
    .intro-diamond-border {
        width: 38vw;
        height: 38vw;
    }

    .intro-logo-wrap {
        width: 36vw;
        height: 36vw;
    }
}

/* ============================================================
   Mission Section
============================================================ */
#mission.recruit-copy-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.07) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 50% 100%, rgba(233,30,99,0.06) 0%, transparent 70%),
                var(--dark);
}

#mission.recruit-copy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(0,212,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(233,30,99,0.07) 0%, transparent 40%);
    pointer-events: none;
}

#mission .recruit-copy-inner {
    position: relative;
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 4px;
    padding: 52px 56px;
    background: rgba(255,255,255,0.02);
    box-shadow: 0 0 40px rgba(0,212,255,0.05), inset 0 0 40px rgba(0,212,255,0.02);
}

#mission .recruit-copy-inner::before,
#mission .recruit-copy-inner::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--pink);
    border-style: solid;
}
#mission .recruit-copy-inner::before {
    top: -1px; left: -1px;
    border-width: 2px 0 0 2px;
}
#mission .recruit-copy-inner::after {
    bottom: -1px; right: -1px;
    border-width: 0 2px 2px 0;
}

.mission-label {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--cyan);
    margin-bottom: 24px;
    text-shadow: 0 0 12px var(--cyan), 0 0 24px rgba(0,212,255,0.4);
}

#mission .recruit-copy-heading {
    background: linear-gradient(135deg, #fff 0%, var(--pink) 60%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#mission .recruit-copy-heading::after {
    background: linear-gradient(90deg, var(--pink), var(--cyan));
    box-shadow: 0 0 8px var(--pink), 0 0 16px var(--cyan);
    width: 64px;
}

/* ============================================================
   Recruit Copy Section
============================================================ */
.recruit-copy-section {
    background: var(--dark);
    padding: 100px 24px;
}

.recruit-copy-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.recruit-copy-heading {
    font-family: var(--font-jp);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.6;
    letter-spacing: 0.08em;
    margin-bottom: 48px;
    position: relative;
    padding-bottom: 28px;
}

.recruit-copy-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.recruit-copy-text {
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 2.0;
    letter-spacing: 0.06em;
}

/* ============================================================
   Recruit Media Banners
============================================================ */
.recruit-media-section {
    background: var(--dark);
    padding: 60px 24px 80px;
}

.recruit-media-inner {
    max-width: 860px;
    margin: 0 auto;
}

.recruit-media-list {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.recruit-media-item {
    flex: 1;
    max-width: 480px;
}

.recruit-media-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

.recruit-media-item img:hover {
    opacity: 0.85;
}

.recruit-entry-section {
    background: var(--dark);
    padding: 0 24px 100px;
    display: flex;
    justify-content: center;
}

.recruit-entry-link {
    display: block;
    width: 100%;
    max-width: 380px;
    transition: opacity 0.2s;
}

.recruit-entry-link:hover {
    opacity: 0.85;
}

.recruit-entry-link img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .recruit-entry-section {
        padding: 20px 24px 80px;
    }
    .recruit-entry-link {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .recruit-copy-section {
        padding: 72px 24px;
    }
    .recruit-copy-heading {
        font-size: 22px;
        margin-bottom: 36px;
    }
    .recruit-copy-text {
        font-size: 14px;
        text-align: left;
    }
    .recruit-media-section {
        padding: 48px 24px 80px;
    }
    .recruit-media-list {
        flex-direction: column;
        gap: 20px;
    }
    .recruit-media-item {
        max-width: 100%;
        width: 100%;
    }
    .pc-only {
        display: none;
    }
}

/* ============================================================
   Company Table
============================================================ */
.company-section {
    background: var(--dark);
    padding: 80px 24px 100px;
}

.company-section-inner {
    max-width: 860px;
    margin: 0 auto;
}

.company-section-title {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.company-section-title-jp {
    font-family: var(--font-jp);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    margin-bottom: 48px;
    position: relative;
    padding-bottom: 20px;
}

.company-section-title-jp::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 8px var(--cyan);
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: background 0.2s;
}

.company-table tr:first-child {
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.company-table tr:hover {
    background: rgba(0, 212, 255, 0.04);
}

.company-table th {
    font-family: var(--font-jp);
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 0.1em;
    padding: 22px 0 22px 20px;
    width: 200px;
    text-align: left;
    vertical-align: top;
    position: relative;
}

.company-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
    border-radius: 2px;
}

.company-table td {
    font-family: var(--font-jp);
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    padding: 22px 20px 22px 32px;
    letter-spacing: 0.05em;
    vertical-align: top;
}

.company-table td a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: color 0.2s, border-color 0.2s;
}

.company-table td a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

@media (max-width: 768px) {
    .company-section {
        padding: 60px 20px 80px;
    }

    .company-section-title-jp {
        font-size: 22px;
        margin-bottom: 32px;
    }

    .company-table th {
        width: 120px;
        font-size: 12px;
        padding: 18px 0 18px 16px;
    }

    .company-table td {
        font-size: 14px;
        padding: 18px 12px 18px 20px;
    }
}

/* ============================================================
   Company Map
============================================================ */
.company-map-section {
    background: var(--dark);
    padding: 0 0 100px;
}

.company-map {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
    filter: grayscale(20%) brightness(0.9);
}

.company-map-btn-wrap {
    display: flex;
    justify-content: center;
    padding: 28px 0 100px;
}

.company-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 12px 28px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.company-map-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.company-map-btn:hover {
    background: var(--cyan);
    color: var(--dark);
}

@media (max-width: 768px) {
    .company-map-section {
        padding: 0 0 80px;
    }
    .company-map {
        height: 320px;
    }
    .company-map-btn-wrap {
        padding: 24px 0 80px;
    }
}

/* ============================================================
   SNS Section (sec001)
============================================================ */
.sns-section {
    position: relative;
    line-height: 0;
}

.sns-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.sns-links {
    position: absolute;
    top: 50%;
    left: 9%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.sns-link img {
    width: 38vw;
    height: auto;
    display: block;
    transition: opacity 0.2s, transform 0.25s;
}

.sns-link:hover img {
    opacity: 0.85;
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .sns-links {
        left: 50%;
        top: 26%;
        transform: translate(-50%, -50%);
        gap: 14px;
    }

    .sns-link img {
        width: 76vw;
    }
}

.sns-chara {
    position: absolute;
    right: 14%;
    top: 50%;
    transform: translateY(-50%);
    width: 23%;
    cursor: pointer;
    perspective: 800px;
}

.sns-chara-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sns-chara-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    box-shadow: 0 0 16px var(--cyan), inset 0 0 12px rgba(0, 212, 255, 0.1);
    pointer-events: none;
    z-index: 2;
}

.sns-chara-img {
    width: 100%;
    height: auto;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.sns-chara-img--active {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
}

.sns-chara-name {
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin-top: 10px;
    white-space: nowrap;
    text-shadow: 0 0 8px var(--cyan);
}

@media (min-width: 769px) {
    .sns-chara-name {
        margin-top: 28px;
        font-size: 26px;
    }
}

.sns-chara-tap-label {
    display: none;
}

/* PC: マウスホバーでフリップ */
@media (hover: hover) {
    .sns-chara:hover .sns-chara-inner { transform: rotateY(180deg); }
}

/* SP: タップで is-active トグル */
.sns-chara.is-active .sns-chara-inner { transform: rotateY(180deg); }

@media (max-width: 768px) {
    .sns-chara {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 10%;
        transform: translateX(-50%);
        width: 58%;
    }

    .sns-chara-tap-label {
        display: block;
        position: absolute;
        bottom: -2rem;
        left: 52%;
        transform: translateX(-46%);
        z-index: 500;
        font-size: 2rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: 0.1em;
        white-space: nowrap;
        -webkit-text-stroke: 2px var(--pink);
        paint-order: stroke fill;
        animation: tap-pulse 1.5s ease-in-out infinite;
    }

    @keyframes tap-pulse {
        0%, 100% { opacity: 1; transform: translateX(-46%) scale(1); }
        50%       { opacity: 0.6; transform: translateX(-46%) scale(0.93); }
    }
}

/* ============================================================
   Contact Section
============================================================ */
.contact-section {
    background: var(--dark);
    padding: 80px 24px 120px;
}

.contact-section-inner {
    max-width: 720px;
    margin: 0 auto;
}

.contact-section-label {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.contact-section-title {
    font-family: var(--font-jp);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 20px;
}

.contact-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 8px var(--cyan);
}

.contact-section-desc {
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1.8;
    margin-bottom: 52px;
}

/* --- CF7 ラベル --- */
.contact-section .wpcf7 .wpcf7-form p {
    margin-bottom: 28px;
}

.contact-section .wpcf7 .wpcf7-form label {
    display: block;
    font-family: var(--font-jp);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* --- CF7 セレクト option --- */
.contact-section .wpcf7 select option {
    background: #111118;
    color: #fff;
}

/* --- CF7 テキスト入力・セレクト --- */
.contact-section .wpcf7 input[type="text"],
.contact-section .wpcf7 input[type="email"],
.contact-section .wpcf7 input[type="tel"],
.contact-section .wpcf7 input[type="url"],
.contact-section .wpcf7 select,
.contact-section .wpcf7 textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 2px;
    color: #fff;
    font-family: var(--font-jp);
    font-size: 15px;
    font-weight: 300;
    padding: 14px 18px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.contact-section .wpcf7 input[type="text"]::placeholder,
.contact-section .wpcf7 input[type="email"]::placeholder,
.contact-section .wpcf7 input[type="tel"]::placeholder,
.contact-section .wpcf7 textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.contact-section .wpcf7 input[type="text"]:focus,
.contact-section .wpcf7 input[type="email"]:focus,
.contact-section .wpcf7 input[type="tel"]:focus,
.contact-section .wpcf7 select:focus,
.contact-section .wpcf7 textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px rgba(0,212,255,0.4), inset 0 0 20px rgba(0,212,255,0.04);
    background: rgba(0,212,255,0.04);
}

.contact-section .wpcf7 textarea {
    min-height: 160px;
    resize: vertical;
}

/* --- バリデーションエラー --- */
.contact-section .wpcf7 .wpcf7-not-valid {
    border-color: var(--pink) !important;
    box-shadow: 0 0 0 1px rgba(233,30,99,0.4) !important;
}

.contact-section .wpcf7 .wpcf7-not-valid-tip {
    font-family: var(--font-jp);
    font-size: 11px;
    color: var(--pink);
    letter-spacing: 0.05em;
    margin-top: 6px;
    display: block;
}

/* --- 送信ボタン --- */
.contact-section .wpcf7 input[type="submit"],
.contact-section .wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 16px 56px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.3s, background 0.3s, box-shadow 0.3s;
}

.contact-section .wpcf7 input[type="submit"]::before,
.contact-section .wpcf7 .wpcf7-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.contact-section .wpcf7 input[type="submit"]:hover::before,
.contact-section .wpcf7 .wpcf7-submit:hover::before {
    transform: scaleX(1);
}

.contact-section .wpcf7 input[type="submit"]:hover,
.contact-section .wpcf7 .wpcf7-submit:hover {
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0,212,255,0.4);
}

.contact-section .wpcf7 input[type="submit"]:disabled,
.contact-section .wpcf7 .wpcf7-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- レスポンス出力 --- */
.contact-section .wpcf7 .wpcf7-response-output {
    font-family: var(--font-jp);
    font-size: 13px;
    letter-spacing: 0.08em;
    border: 1px solid rgba(0,212,255,0.3);
    background: rgba(0,212,255,0.06);
    color: var(--cyan);
    padding: 14px 20px;
    margin-top: 24px;
    border-radius: 2px;
}

.contact-section .wpcf7 .wpcf7-response-output.wpcf7-mail-sent-ng,
.contact-section .wpcf7 .wpcf7-response-output.wpcf7-validation-errors {
    border-color: rgba(233,30,99,0.4);
    background: rgba(233,30,99,0.06);
    color: var(--pink);
}

/* --- SP --- */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 20px 80px;
    }

    .contact-section-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .contact-section .wpcf7 input[type="submit"],
    .contact-section .wpcf7 .wpcf7-submit {
        width: 100%;
        padding: 16px 24px;
    }
}

/* ============================================================
   Privacy Policy Section
============================================================ */
.policy-section {
    background: var(--dark);
    padding: 80px 24px 120px;
}

.front-page-wrap > .policy-section {
    padding-top: calc(var(--header-h) + 60px);
}

.policy-inner {
    max-width: 800px;
    margin: 0 auto;
}

.policy-label {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.policy-title {
    font-family: var(--font-jp);
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.policy-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    box-shadow: 0 0 8px var(--cyan);
}

.policy-intro {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
    letter-spacing: 0.04em;
    margin-bottom: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.policy-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.policy-article {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}

.policy-article-title {
    font-family: var(--font-jp);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.policy-article-num {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--cyan);
    white-space: nowrap;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 2px;
    flex-shrink: 0;
}

.policy-article-body {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.policy-article-body:last-child {
    margin-bottom: 0;
}

.policy-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-list li {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    letter-spacing: 0.04em;
    padding-left: 20px;
    position: relative;
}

.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 4px var(--cyan);
}

.policy-company-info {
    margin-top: 20px;
    padding: 24px;
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.policy-company-dl {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.policy-company-row {
    display: flex;
    align-items: baseline;
    gap: 24px;
}

.policy-company-row dt {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--cyan);
    white-space: nowrap;
    min-width: 60px;
}

.policy-company-row dd {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.06em;
}

.policy-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--cyan);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 2px;
    transition: background 0.2s, border-color 0.2s;
}

.policy-contact-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.policy-contact-btn:hover {
    background: rgba(0,212,255,0.08);
    border-color: var(--cyan);
}

.policy-contact-btn:hover svg {
    transform: translateX(4px);
}

/* --- SP --- */
@media (max-width: 768px) {
    .policy-section {
        padding: 60px 20px 100px;
    }

    .front-page-wrap > .policy-section {
        padding-top: calc(var(--header-h) + 40px);
    }

    .policy-title {
        font-size: 24px;
    }

    .policy-article-title {
        font-size: 15px;
        flex-wrap: wrap;
    }

    .policy-company-row {
        gap: 16px;
    }
}
