/*
Theme Name: Geek Diagnosis Theme
Theme URI: https://example.com/geek-diagnosis-theme
Description: 28歳エンジニア向け診断LP専用テーマ。フロントページの表示のみを担い、診断コンテンツ・設問・タイプはプラグイン（AI Career Diagnosis）が管理します。
Author: Hiro
Version: 3.2.1
Requires at least: 5.6
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: geek-diagnosis-theme
*/

/* ── Global Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background-color: #0d1117;
    color: #cdd9e5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── WPブロックエディタ干渉リセット ── */
.wp-site-blocks,
.wp-block-group,
.wp-block-template-part { all: unset; display: block; }

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

a { color: #39d0f0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ────────────────────────────────────────
   PC専用背景（1024px 以上のみ）
   モバイルでは非表示（#0d1117 ソリッドで表示）
──────────────────────────────────────── */
/* ════════════════════════════════════════
   PC背景（1024px以上）
   背景画像はbodyに固定表示。
   コンテンツブロックはソリッドなダークモード背景で視認性を確保。
   背景画像は左右のサイド余白からのぞく演出。
════════════════════════════════════════ */
@media (min-width: 1024px) {

    /* 背景画像はbodyに固定 */
    body {
        background-image: url('assets/images/pxfuel.jpg');
        background-size: cover;
        background-position: center top;
        background-attachment: fixed;
    }

    /* #acd-appは不透明ソリッド黒（背景が透けないように） */

    /* ── クイズ・結果カード列（中央680px）はソリッド背景 ── */
    .acd-container {
        background: #0d1117;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    }

    /* ── LPコンテンツブロックはソリッド背景 ── */
    /* CTAブロック */
    .lp-cta-block {
        background: #0a1628 !important;
    }

    /* 通常セクション（白背景相当をダーク化） */
    .lp-section {
        background: #0d1117;
    }

    /* ダークセクション */
    .lp-section-dark {
        background: #161b22 !important;
    }

    /* 吹き出しセクション */
    .lp-bubbles-section {
        background: #0d1117;
    }

    /* FQAセクション内のdark */
    .lp-faq-item {
        background: #1c2230 !important;
    }

    /* アコーディオン */
    .lp-accordion-toggle {
        background: #161b22 !important;
    }
    .lp-accordion-body {
        background: #0d1117 !important;
    }

    /* lp-wrapもacd-containerと背景を揃えて途切れなくする */
    .lp-wrap {
        background: #0d1117;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
    }

    /* フッターはさらに暗く */
    .lp-footer {
        background: #060a0e !important;
    }

    /* グリッドテクスチャ・グロー：コンテンツ外にのみ効かせる（透過済みなので自然に作用） */
    #acd-app::before {
        background-image:
            linear-gradient(rgba(57,208,240,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(57,208,240,0.04) 1px, transparent 1px) !important;
    }
    #acd-app::after {
        background: radial-gradient(circle, rgba(57,208,240,0.08) 0%, transparent 65%) !important;
    }
}

/* ═══════════════════════════════════════════════
   HEADER & NAV
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Noto+Sans+JP:wght@400;600;700&display=swap');

.gdt-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    /* SP: 常にソリッド背景 */
    background: #0d1117;
    border-bottom: 1px solid rgba(57, 208, 240, 0.15);
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
/* SP scrolled状態は変化なし（ソリッドのまま） */
.gdt-header.scrolled {
    background: rgba(13, 17, 23, 0.88);
    border-bottom-color: rgba(57, 208, 240, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.gdt-header-inner {
    max-width: 680px;          /* コンテンツ幅と完全一致 */
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
}

/* ロゴ */
.gdt-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.gdt-logo-icon {
    color: #39d0f0;
    font-size: 0.8rem;
    line-height: 1;
}
.gdt-logo-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}
.gdt-logo:hover .gdt-logo-text { color: #39d0f0; }

/* PCナビ */
.gdt-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: flex-end;
}
.gdt-nav-link {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.82rem;
    color: rgba(205, 217, 229, 0.8);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.gdt-nav-link:hover {
    color: #fff;
    background: rgba(57, 208, 240, 0.08);
    text-decoration: none;
}
.gdt-nav-cta {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0d1117;
    background: #39d0f0;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    margin-left: 0.5rem;
}
.gdt-nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
    color: #0d1117;
}

/* ハンバーガー */
.gdt-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.gdt-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #cdd9e5;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.gdt-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gdt-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.gdt-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ドロワー */
.gdt-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: #0d1117;
    border-left: 1px solid rgba(57, 208, 240, 0.15);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 80px 1.5rem 2rem;
    box-sizing: border-box;
}
.gdt-drawer.open { transform: translateX(0); }

.gdt-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.gdt-drawer-link {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    color: rgba(205, 217, 229, 0.85);
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border-bottom: 1px solid rgba(57, 208, 240, 0.07);
    transition: background 0.2s, color 0.2s;
}
.gdt-drawer-link:hover {
    background: rgba(57, 208, 240, 0.08);
    color: #fff;
    text-decoration: none;
}
.gdt-drawer-cta {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d1117;
    background: #39d0f0;
    text-decoration: none;
    padding: 0.9rem 1.25rem;
    border-radius: 100px;
    text-align: center;
    margin-top: 1.5rem;
    transition: opacity 0.2s;
}
.gdt-drawer-cta:hover { opacity: 0.85; text-decoration: none; color: #0d1117; }

/* オーバーレイ */
.gdt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.gdt-overlay.open { opacity: 1; pointer-events: auto; }

/* ═══ SITE FOOTER（テーマ側） ═══ */
.gdt-site-footer {
    background: #080c11;
    border-top: none;
    padding: 2.5rem 1.25rem;
    text-align: center;
}
.gdt-footer-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 1.5rem;
    box-sizing: border-box;
    width: 100%;
}
.gdt-footer-top {
    margin-bottom: 1.5rem;
}
.gdt-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.gdt-footer-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}
.gdt-footer-tagline {
    font-size: 0.78rem;
    color: #6e8098;
    line-height: 1.7;
    margin: 0;
}
.gdt-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-bottom: 1.5rem;
}
.gdt-footer-nav a {
    font-size: 0.78rem;
    color: #6e8098;
    text-decoration: none;
    transition: color 0.2s;
}
.gdt-footer-nav a:hover { color: #39d0f0; }
.gdt-footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #2a3447;
    margin: 0;
    letter-spacing: 0.06em;
}

/* ═══ PC: ナビ表示切り替え ═══ */
@media (min-width: 768px) {
    .gdt-nav { display: flex; }
    .gdt-hamburger { display: none; }
    .gdt-drawer { display: none !important; }
    .gdt-overlay { display: none !important; }
}

/* ═══ コンテンツ上部をヘッダー分だけ確保 ═══ */
#acd-app {
    padding-top: 60px;
}

/* ═══ PC専用：ヘッダー透明演出（背景画像と合わせる） ═══ */
@media (min-width: 1024px) {
    .gdt-header {
        background: rgba(13, 17, 23, 0.0);
        border-bottom-color: transparent;
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
    .gdt-header.scrolled {
        background: rgba(13, 17, 23, 0.88);
        border-bottom-color: rgba(57, 208, 240, 0.15);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    /* ヘッダーinnerはPC/SP共通で680px（コンテンツ列と揃える） */
}

/* ── PC: フッターも680px列に揃える ── */
@media (min-width: 1024px) {
    .gdt-site-footer {
        background: #080c11;
    }
}

/* ═══════════════════════════════════════════════
   FIRST VIEW
═══════════════════════════════════════════════ */

/* FV外枠: 横幅100%、両サイドはbody背景色(#0d1117)が見える */
.gdt-fv {
    width: 100%;
    background: transparent;  /* 外側は透明 */
    display: flex;
    justify-content: center;
}

/* ── 680px列：fvbg.jpgはここの背景 ── */
.gdt-fv-column {
    position: relative;
    width: 100%;
    max-width: 680px;          /* 常に680px */
    min-height: 100svh;
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* グラデーションオーバーレイ（列内） */
.gdt-fv-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0)  0%,
        rgba(0,0,0,0.05) 45%,
        rgba(0,0,0,0.25) 75%,
        rgba(0,0,0,0.50) 100%
    );
    z-index: 0;
}

/* コンテンツ */
.gdt-fv-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 68px 1.25rem 0;       /* テキスト画像を上部に配置 */
    box-sizing: border-box;
}

/* fv_text.png: 列幅いっぱい・縦横比を保つ */
.gdt-fv-text-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
}

/* .gdt-fv-cta: FVボタン削除済み */

/* スクロールインジケーター */
.gdt-fv-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.gdt-fv-scroll-line {
    display: block;
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: gdt-scroll-line 2s ease-in-out infinite;
}
@keyframes gdt-scroll-line {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    80%  { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
    100% { opacity: 0; }
}

/* ロゴ画像 */
.gdt-logo-img {
    height: 16px;
    width: auto;
    display: block;
}

/* ── FVボタンラッパー（FV内 absolute 固定） ── */
.gdt-fv-btn-wrap {
    position: absolute;
    bottom: 8%;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 1.25rem;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    box-sizing: border-box;
}
.gdt-fv-btn-label {
    position: relative;
    display: inline-block;
    margin: 0 0 1.2rem;
    padding: 0 0.26em;
    color: #fff;
    font-family: var(--acd-font-base, 'Noto Sans JP', sans-serif);
    font-size: clamp(24px, 4.9vw, 33px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    white-space: nowrap;
}

.gdt-fv-btn-label::before {
    content: '';
    position: absolute;
    left: -0.08em;
    right: -0.08em;
    top: 58%;
    height: 0.52em;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.74);
    z-index: -1;
}

#gdt-fv-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74%;
    max-width: 503px;
    min-height: 114px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: #06C755;
    color: #fff;
    font-family: var(--acd-font-base, 'Noto Sans JP', sans-serif);
    font-size: clamp(27px, 5.45vw, 42px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(6, 199, 85, 0.26);
    animation: none;
}

#gdt-fv-cta-btn::before,
#gdt-fv-cta-btn::after {
    display: none;
}

#gdt-fv-cta-btn:hover {
    background: #05b04c;
    color: #fff;
    box-shadow: 0 10px 26px rgba(6, 199, 85, 0.3);
    transform: none;
    opacity: 1;
}

@media (max-width: 767px) {
    .gdt-fv-btn-wrap {
        bottom: 8.5%;
    }

    .gdt-fv-btn-label {
        margin-bottom: 0.95rem;
        font-size: clamp(18px, 5.2vw, 26px);
    }

    #gdt-fv-cta-btn {
        width: 82%;
        min-height: 84px;
        font-size: clamp(18px, 7vw, 31px);
    }
}

/* ═══ モーダル ═══ */
.acd-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #0d1117;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.acd-modal[hidden] { display: none; }

.acd-modal-close {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem 0;
    box-sizing: border-box;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9001;
    font-size: 1.2rem;
    color: rgba(205,217,229,0.6);
    transition: color 0.2s;
    font-family: sans-serif;
    justify-content: flex-end;
}
.acd-modal-close:hover { color: #fff; }

/* モーダル内の#acd-appはpaddingなし（modal-closeが担う） */
.acd-modal #acd-app {
    padding-top: 0 !important;
    min-height: auto !important;
}
