/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
/* ============================================================
   Phase2B: RescueWP LP デザインシステム移植（トークン源: index.html）
   旧トークン名は互換のためLP値へ再マップ。新規トークンも併記。
============================================================ */
:root {
    /* 互換トークン（旧クラス名を使うルール向け・LP色に再マップ） */
    --primary-color: #10B981;
    --secondary-color: #059669;
    --accent-color: #F59E0B;
    --text-color: #101828;
    --text-light: #74839c;
    --background-color: #FFFFFF;
    --background-light: #F6F8FB;
    --border-color: #E4E9F0;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -8px rgba(16,24,40,.10);
    --shadow-hover: 0 2px 4px rgba(16,24,40,.06), 0 20px 40px -16px rgba(16,24,40,.18);
    --border-radius: 14px;
    --transition: all 0.3s ease;

    /* RescueWP LP トークン */
    --ink-950:#080D18;
    --ink-900:#0B1220;
    --ink-850:#0F1830;
    --ink-800:#141F3B;
    --ink-700:#1D2A4D;
    --ink-line:#26355c;

    --emerald-300:#6EE7C0;
    --emerald-400:#34D399;
    --emerald-500:#10B981;
    --emerald-600:#059669;
    --emerald-700:#047857;

    --amber-300:#FCD34D;
    --amber-400:#FBBF24;
    --amber-500:#F59E0B;
    --amber-600:#D97706;

    --red-500:#EF5A5A;

    --paper-0:#FFFFFF;
    --paper-50:#F6F8FB;
    --paper-100:#EEF2F7;
    --paper-200:#E4E9F0;

    --slate-900:#101828;
    --slate-700:#3D4A61;
    --slate-600:#526079;
    --slate-500:#74839c;
    --slate-400:#9AA7BD;

    --font-jp:'Noto Sans JP', 'Hiragino Sans', sans-serif;
    --font-disp:'Sora', 'Noto Sans JP', sans-serif;

    --container:1100px;
    --radius-sm:10px;
    --radius-md:14px;
    --radius-lg:20px;
    --shadow-soft:0 1px 2px rgba(16,24,40,.04), 0 8px 24px -8px rgba(16,24,40,.10);
    --shadow-lift:0 2px 4px rgba(16,24,40,.06), 0 20px 40px -16px rgba(16,24,40,.18);
    --shadow-navy:0 20px 60px -20px rgba(3,7,18,.6);
}

body {
    font-family: var(--font-jp);
    line-height: 1.7;
    color: var(--slate-700);
    background-color: var(--paper-0);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt" 1;
}

/* 注意: h1-h4への一括 font-family 指定はしない。
   home.css は /login /signup /forgot /reset (Tabler画面) にも読み込まれる
   共通レイアウトのため、要素セレクタでの一括指定はTabler側の見出しに
   意図せず漏れてしまう。見出しごとに .page-title 等のクラス側で
   font-family: var(--font-disp) を個別指定すること。 */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px) {
    .container { padding: 0 40px; }
}

/* ============================================================
   ヘッダー（LPの .site-header 構造に統一 / header.php Phase2B刷新）
============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8,13,24,.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(234,240,250,.08);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
    font-family: var(--font-disp);
    font-weight: 700;
    font-size: 19px;
    color: #F5F8FC;
    letter-spacing: -.01em;
}
.brand-word b { color: var(--emerald-400); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
    font-size: 14.5px; font-weight: 500; color: rgba(234,240,250,.72);
    position: relative; padding: 4px 0;
    transition: color .15s ease;
}
.main-nav a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
    background: var(--emerald-400); border-radius: 2px;
    transition: right .22s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.login-link { font-size: 14.5px; font-weight: 600; color: rgba(234,240,250,.85); }
.login-link:hover { color: #fff; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 10px; border: 1px solid rgba(234,240,250,.2);
    background: transparent; color: #EAF0FA;
    align-items: center; justify-content: center;
    cursor: pointer;
}

@media (max-width: 900px) {
    .main-nav {
        position: fixed; top: 72px; left: 0; right: 0;
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        background: var(--ink-950);
        flex-direction: column; align-items: flex-start;
        gap: 2px; padding: 18px 24px 26px;
        overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: transform .2s ease, opacity .2s ease, visibility .2s;
    }
    .main-nav a { width: 100%; padding: 16px 4px; font-size: 16.5px; border-bottom: 1px solid rgba(234,240,250,.08); }
    .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-toggle { display: flex; }
    .header-actions .login-link { display: none; }
}

/* ---------- Buttons（LP: .btn 相当）----------
   注意: home.css は /login /signup /forgot /reset (Tabler画面) にも読み込まれ、
   Tabler自身も .btn/.btn-primary を使う（例: ログインの<button class="btn btn-primary">）。
   衝突防止のため a要素限定（a.btn）でスコープする。公開ページ側のCTAは全てa要素。 */
a.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 700; font-size: 15px;
    border: 1.5px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
a.btn-primary {
    background: linear-gradient(180deg, var(--emerald-400), var(--emerald-500) 60%);
    color: var(--ink-950);
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -8px rgba(16,185,129,.55);
}
a.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 30px -8px rgba(16,185,129,.7); color: var(--ink-950); }
a.btn-ghost-dark {
    background: transparent; color: #EAF0FA; border-color: rgba(234,240,250,.28);
}
a.btn-ghost-dark:hover { border-color: rgba(110,231,192,.6); background: rgba(255,255,255,.04); }
a.btn-ghost-light {
    background: var(--paper-0); color: var(--ink-900); border-color: var(--paper-200);
}
a.btn-ghost-light:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
a.btn-block { width: 100%; }
a.btn-sm { padding: 10px 18px; font-size: 13.5px; }

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cta-button:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ヒーローセクション */
.hero {
    padding: 120px 0 80px;
    background-image: url('../../img/common/hero-background.webp');
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../img/common/hero-background.webp');
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    transform: scaleX(-1);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(248, 249, 250, 0.8) 50%, rgba(248, 249, 250, 0.3) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 1200px;
    margin-bottom: 2rem;
    white-space: nowrap;
    width: 100%;
}

.hero-left {
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 診断フォーム */
.diagnosis-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.rows {
    display: grid;
    grid-template-columns: 90% 10%;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input:invalid {
    border-color: #dc3545;
}

.form-terms {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.diagnosis-button {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.diagnosis-button:hover:not(:disabled) {
    background: #6bb91a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.diagnosis-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ヒーロー統計 */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.stat {
    text-align: center;
}

.stat-circle {
    position: relative;
    width: 100%;
    height: 15vh;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, var(--primary-color) 0deg, rgba(255, 255, 255, 0.3) 0deg, rgba(255, 255, 255, 0.3) 360deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.2;
    text-align: center;
}

/* セクション共通（LP: .sec-head 相当のトーン） */
.section-title {
    font-family: var(--font-disp);
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--ink-900);
    letter-spacing: -.01em;
    line-height: 1.42;
}

.section-subtitle,
.section-description {
    font-size: 15.5px;
    text-align: center;
    color: var(--slate-500);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.85;
}

/* サービスセクション（LP: カードトーン） */
.services {
    padding: 80px 0;
    background: var(--paper-0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--paper-0);
    border: 1px solid var(--paper-200);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: #D6EEE2;
}

.service-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-disp);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--ink-900);
}

.service-card p {
    color: var(--slate-500);
    line-height: 1.8;
    font-size: 14px;
}

.learn-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--emerald-600);
}
.learn-more:hover { color: var(--emerald-700); }

/* プロセスセクション（LP: flow-num トーン） */
.process {
    padding: 80px 0;
    background: var(--paper-50);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--paper-0);
    border: 1px solid var(--paper-200);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    background: var(--paper-0);
    border: 2px solid var(--emerald-500);
    color: var(--emerald-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-disp);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-family: var(--font-disp);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    color: var(--ink-900);
}

.step p {
    color: var(--slate-500);
    line-height: 1.8;
    font-size: 14px;
}

/* お客様の声セクション */
.testimonials {
    padding: 80px 0;
    background: var(--background-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-rating {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================================
   フッター（LPの footer 構造に統一 / footer.php Phase2B刷新）
============================================================ */
footer {
    background: var(--ink-950);
    color: rgba(226,233,246,.6);
    padding-top: 72px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
    padding-bottom: 48px; border-bottom: 1px solid rgba(234,240,250,.08);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-word { color: #F5F8FC; }
.footer-brand p { margin-top: 14px; font-size: 13.2px; line-height: 1.9; color: rgba(226,233,246,.48); max-width: 34ch; }
.footer-col h4 { font-size: 12.5px; font-weight: 700; color: rgba(226,233,246,.85); letter-spacing: .05em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; list-style: none; }
.footer-col a { font-size: 13.3px; color: rgba(226,233,246,.55); }
.footer-col a:hover { color: var(--emerald-300); }

.footer-legal {
    padding-bottom: 28px;
    font-size: 11.5px; line-height: 1.9; color: rgba(226,233,246,.34);
    max-width: 900px;
}

.footer-bottom {
    padding-block: 26px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    font-size: 12.5px; color: rgba(226,233,246,.4);
    border-top: 0;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--text-color);
}

.terms-content h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--text-color);
}

.terms-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background-color: #f8f9fa;
        color: var(--primary-color);
    }

    .nav-toggle {
        display: flex;
    }

    .cta-button {
        display: none;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 .5rem;
    }

    .hero-content {
        max-width: 100%;
        white-space: normal;
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .diagnosis-form {
        padding: .5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .process-steps,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    /* ドロップダウンメニューのモバイル対応 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        display: none;
        margin-top: 0;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.75rem 3rem;
        font-size: 1rem;
        border-bottom: 1px solid #e9ecef;
    }

    .dropdown-arrow {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .step,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.service-card,
.step,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
    margin: 0 !important;
}

/* フォーカス状態の改善 */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ローディング状態 */
.button-loader {
    display: inline-block;
}

.diagnosis-button.loading .button-text {
    display: none;
}

.diagnosis-button.loading .button-loader {
    display: inline-block;
}


/* セキュリティ診断結果のスタイル */
.result-status.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.security-score {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.security-score .score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.security-score .score {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.security-score .score-label {
    font-size: 0.7rem;
    margin-top: 2px;
}

.issue.high {
    color: #e74c3c;
    font-weight: 600;
}

.issue.medium {
    color: #f39c12;
    font-weight: 500;
}

.issue.low {
    color: #3498db;
    font-weight: 400;
}

.result-details h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.result-details ul {
    margin-bottom: 1rem;
}

.result-details li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}


/* ドロップダウンメニューのスタイル */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 150px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* ナビゲーションアクションのスタイル */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.auth-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 60px;
}

.auth-icon {
    font-size: 24px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.auth-text {
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.signup-btn {
    color: white;
}

.signup-btn .auth-icon {
    background: var(--primary-color);
    border-radius: 50%;
}

.signup-btn .auth-text {
    color: var(--primary-color);
}

.signup-btn:hover .auth-icon {
    background: #2980b9;
    transform: scale(1.1);
}

.signup-btn:hover .auth-text {
    color: #2980b9;
}

.login-btn {
    color: var(--text-color);
}

.login-btn .auth-icon {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50%;
}

.login-btn .auth-text {
    color: var(--text-color);
}

.login-btn:hover .auth-icon {
    background: #e9ecef;
    transform: scale(1.1);
}

.login-btn:hover .auth-text {
    color: var(--primary-color);
}

/* ローディング画面のスタイル */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.loading-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.loading-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 診断結果の改善されたスタイル */
.diagnosis-result {
    width: 100%;
    max-width: none;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.diagnosis-result h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.result-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.score {
    font-size: 2.5rem;
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.result-details {
    font-size: 1rem;
}

.result-details p {
    margin-bottom: 0.5rem;
}

.security-issues {
    margin: 2rem 0;
}

.security-issues h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.issue-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.severity {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.issue-item.high .severity {
    background: #e74c3c;
    color: white;
}

.issue-item.medium .severity {
    background: #f39c12;
    color: white;
}

.issue-item.low .severity {
    background: #3498db;
    color: white;
}

.issue-title {
    font-weight: 600;
    flex: 1;
}

.issue-desc {
    color: #666;
    font-size: 0.9rem;
}

.detailed-diagnosis-btn {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.detailed-diagnosis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav-actions {
        display: none;
    }

    .nav-logo h1 {
        font-size: 1.2rem;
    }

    .loading-progress {
        width: 250px;
    }

    .result-summary {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .detailed-diagnosis-btn,
    .reset-button {
        width: 100%;
    }
}


/* 推奨対策のスタイル */
.recommendations {
    margin: 2rem 0;
}

.recommendations h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
    border-radius: 4px;
}

/* 結果アクションのスタイル */
.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.reset-button {
    background: #95a5a6;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* ヘッダーのレスポンシブ改善 */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo h1 {
        font-size: 1.4rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-logo h1 {
        font-size: 1.2rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .detailed-diagnosis-btn,
    .reset-button {
        width: 100%;
    }
}


/* ============================================================
   料金プランセクション（LP: .price-card 相当のトーン / pricing.php）
============================================================ */
.pricing {
    padding: 80px 0;
    background: var(--paper-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 3rem;
    align-items: stretch;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
    background: var(--paper-0);
    border: 1px solid var(--paper-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.pricing-card-popular {
    background: linear-gradient(175deg, #0F1B33, #0B1428);
    border: 1px solid rgba(52,211,153,.4);
    box-shadow: 0 24px 50px -20px rgba(16,185,129,.35);
    transform: translateY(-10px);
    color: #fff;
}
@media (max-width: 960px) { .pricing-card-popular { transform: none; } }

.pricing-card-popular:hover {
    transform: translateY(-16px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    transform: none;
    font-family: var(--font-disp);
    background: var(--emerald-500);
    color: var(--ink-950);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
}

.plan-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-family: var(--font-disp);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: .6rem;
}
.pricing-card-popular .plan-name { color: #fff; }

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    margin-bottom: .4rem;
}

.price-currency {
    font-family: var(--font-disp);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-900);
}
.pricing-card-popular .price-currency { color: #fff; }

.price-amount {
    font-family: var(--font-disp);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0;
    letter-spacing: -.02em;
}
.pricing-card-popular .price-amount { color: #fff; }

.price-period {
    font-size: .85rem;
    color: var(--slate-500);
}
.pricing-card-popular .price-period { color: rgba(226,233,246,.55); }

.plan-description {
    color: var(--slate-500);
    font-size: .92rem;
    margin-top: 6px;
}
.pricing-card-popular .plan-description { color: rgba(226,233,246,.7); }

.plan-features {
    margin-bottom: 1.75rem;
    flex: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid var(--paper-100);
    font-size: 13.6px;
    color: var(--slate-600);
}
.pricing-card-popular .plan-features li {
    border-bottom-color: rgba(234,240,250,.12);
    color: rgba(226,233,246,.85);
}

.plan-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .85rem;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
    background: #E7FBF3;
    color: var(--emerald-600);
}
.pricing-card-popular .feature-icon {
    background: rgba(16,185,129,.16);
    color: var(--emerald-400);
}
.feature-icon.feature-icon-off {
    background: var(--paper-100);
    color: var(--slate-400);
}

.plan-cta {
    text-align: center;
    margin-top: auto;
}

.btn-plan {
    width: 100%;
    padding: 14px 22px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    text-transform: none;
}

.btn-plan-free {
    background: var(--paper-50);
    color: var(--ink-900);
    border: 1.5px solid var(--paper-200);
}

.btn-plan-free:hover {
    background: var(--paper-100);
    border-color: var(--slate-400);
}

.btn-plan-basic {
    background: linear-gradient(180deg, var(--emerald-400), var(--emerald-500) 60%);
    color: var(--ink-950);
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -8px rgba(16,185,129,.55);
}

.btn-plan-basic:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 30px -8px rgba(16,185,129,.7);
}

.btn-plan-pro {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1.5px solid rgba(234,240,250,.32);
}

.btn-plan-pro:hover {
    border-color: var(--emerald-400);
    background: rgba(255,255,255,.12);
    transform: translateY(-2px);
}

/* 比較表（LP: table.compare 相当のトーン） */
.comparison-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--paper-200);
}

.comparison-title {
    text-align: center;
    font-family: var(--font-disp);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink-900);
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--paper-200);
    box-shadow: var(--shadow-soft);
}

.comparison-table {
    width: 100%;
    background: var(--paper-0);
    border-collapse: collapse;
    min-width: 680px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px 18px;
    text-align: center;
    font-size: 13.6px;
    border-bottom: 1px solid var(--paper-100);
}

.comparison-table th {
    background: var(--ink-950);
    color: #fff;
    font-family: var(--font-disp);
    font-weight: 600;
    font-size: 13.5px;
}

.comparison-table th:first-child {
    text-align: left;
    background: var(--ink-950);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--ink-900);
    background: var(--paper-50);
    white-space: nowrap;
}

.comparison-table tr:hover {
    background: var(--paper-50);
}

/* 返金保証 */
.guarantee-section {
    margin-top: 3rem;
    text-align: center;
}

.guarantee-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid #4caf50;
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guarantee-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.guarantee-card p {
    color: #388e3c;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 料金プランのレスポンシブ対応 */
@media (max-width: 768px) {
    .pricing {
        padding: 60px 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .pricing-card-popular {
        transform: none;
    }

    .pricing-card-popular:hover {
        transform: translateY(-8px);
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .guarantee-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .btn-plan {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
}


/* 信頼性証明セクション（LP: カードトーン） */
.trust-section {
    padding: 80px 0;
    background: var(--paper-50);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.trust-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--paper-0);
    border: 1px solid var(--paper-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

.trust-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.trust-number {
    font-family: var(--font-disp);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--emerald-600);
    margin-bottom: 0.5rem;
    display: block;
}

.trust-label {
    font-size: .95rem;
    color: var(--ink-900);
    font-weight: 500;
}

.certifications {
    text-align: center;
    margin-top: 3rem;
}

.certifications h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.cert-logo {
    font-size: 2rem;
}

.cert-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

/* 信頼性証明セクションのレスポンシブ対応 */
@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .trust-item {
        padding: 1.5rem 1rem;
    }

    .trust-number {
        font-size: 2rem;
    }

    .trust-icon {
        font-size: 2.5rem;
    }

    .cert-logos {
        gap: 1rem;
    }

    .cert-item {
        min-width: 100px;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .cert-logos {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}


/* お客様の声セクションの改良 */
.testimonial-results {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.result-tag {
    background: linear-gradient(135deg, var(--primary-color), #3a7bc8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 導入企業ロゴセクション */
.client-logos {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.client-logos h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-3px);
}

.company-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.logo-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

/* 導入企業ロゴのレスポンシブ対応 */
@media (max-width: 768px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .logo-item {
        padding: 0.8rem;
    }

    .company-logo {
        font-size: 1.5rem;
    }

    .logo-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logos-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-results {
        justify-content: center;
    }
}


/* 比較表の改良スタイル（LP: table.compare .hl 相当） */
.popular-column {
    background: var(--ink-900);
    color: #fff;
    position: relative;
}

.popular-column::after {
    content: '人気';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber-500);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.feature-yes {
    color: var(--emerald-600);
    font-weight: 600;
}

.feature-no {
    color: var(--slate-400);
    font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--paper-50);
}

.comparison-table tbody tr:hover {
    background: #F1FBF6;
    transition: background .2s ease;
}

/* 比較表のレスポンシブ対応 */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 600px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}


/* 認証モーダル（サインアップ・ログイン） */
.auth-modal {
    max-width: 450px;
    padding: 2.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background: #dc3545;
    width: 33%;
}

.password-strength.medium {
    background: #ffc107;
    width: 66%;
}

.password-strength.strong {
    background: var(--secondary-color);
    width: 100%;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.terms-link:hover {
    color: var(--accent-color);
}

.btn-auth {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-signup {
    background: linear-gradient(135deg, var(--primary-color), #3a7bc8);
    color: white;
}

.btn-signup:hover {
    background: linear-gradient(135deg, #3a7bc8, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-login {
    background: linear-gradient(135deg, var(--secondary-color), #27ae60);
    color: white;
}

.btn-login:hover {
    background: linear-gradient(135deg, #27ae60, var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
    transform: translateY(-1px);
}

.social-icon {
    font-size: 1.2rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
}

.switch-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.switch-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 認証モーダルのレスポンシブ対応 */
@media (max-width: 768px) {
    .auth-modal {
        max-width: 90vw;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .form-input {
        padding: 0.7rem 0.8rem;
    }

    .social-auth {
        gap: 0.6rem;
    }

    .btn-social {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
}


/* CTA Benefits */
.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.benefit-icon {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .cta-benefits {
        gap: 1rem;
        margin-top: 0.8rem;
    }

    .benefit-item {
        font-size: 0.8rem;
    }
}

/* Hero Description Enhancement */
.hero-description strong {
    color: #e74c3c;
    font-weight: 700;
}

/* Diagnosis Button Enhancement */
.diagnosis-button-inline .btn-text {
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .diagnosis-button-inline .btn-text {
        font-size: 0.9rem;
    }
}


/* Plan Notes */
.plan-note {
    font-size: 0.78rem;
    color: var(--slate-400);
    margin-top: 0.6rem;
    text-align: center;
}

.pricing-card-popular .plan-note {
    color: rgba(226,233,246,.5);
}

/* Enhanced CTA Buttons */
.btn-plan {
    position: relative;
    overflow: hidden;
}

.btn-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-plan:hover::before {
    left: 100%;
}

/* Urgency Enhancement */
.hero-description {
    line-height: 1.6;
}

.hero-description strong {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}


/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-description strong {
    color: #ffeb3b;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    min-width: 200px;
}

.btn-cta-primary {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-cta-primary:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-guarantee {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.guarantee-icon {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
    }

    .cta-guarantee {
        gap: 1rem;
    }

    .guarantee-item {
        font-size: 0.8rem;
    }
}

/* 旧「料金プランセクション - 新デザイン」ブロックは削除（Phase2B）:
   .pricing-section/.pricing-container/.price-box/.features-list等は
   現行 pricing.php で未使用の死んだラッパーだった一方、.pricing-card/
   .popular-badge/.plan-name/.plan-description/.feature-icon は本セクション
   上部で定義したLPトーン定義より後方に位置し、カスケードで上書きしてしまう
   ため削除。実使用スタイルは上の「料金プランセクション」ブロックに統一。 */