/* common.css */
:root {
    --primary: #060056;
    --accent: #E8D667;
    --bg-light: #fafafa;
    --bg-gray: #f4f4f7;
    --text-main: #1B1B1B;
    --text-light: #4f4f58;
    --white: #ffffff;
    --border: #e7e7ed;
    --font-sans: 'Noto Sans JP', sans-serif;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --shadow-soft: 0 14px 36px rgba(6, 0, 86, 0.08);

    /* Spacing Tokens */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 2rem;
    /* 32px */
    --space-lg: 4rem;
    /* 64px */
    --space-xl: 8rem;
    /* 128px */

    /* Typography Tokens (Fluid) */
    --fs-xs: clamp(0.75rem, 1.5vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 2vw, 1rem);
    --fs-md: clamp(1rem, 2.5vw, 1.25rem);
    --fs-lg: clamp(1.5rem, 4vw, 2.25rem);
    --fs-xl: clamp(2rem, 6vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #04003d;
        --bg-light: #0d0d0d;
        --bg-gray: #1a1a1a;
        --text-main: #f8f8f8;
        --text-light: #cccccc;
        --white: #1a1a1a;
        --border: #333333;
        --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.5);
        --accent: #d4c35e;
    }
}

/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 共通レイアウト */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 84px 0;
}

.section-light {
    background: var(--white);
}

.section-gray {
    background: var(--bg-gray);
}

/* 共通見出し */
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.3;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--accent);
}

.section-subtitle {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text-light);
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #E1C831, #E8D667);
    color: var(--primary);
    box-shadow: 0 12px 24px rgba(232, 214, 103, 0.26);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid var(--accent);
    color: var(--primary);
}

/* ヘッダー・固定パーツ */
.top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 42px;
    background: var(--primary);
    color: #fff;
    z-index: 1100;
    overflow: hidden;
}

header {
    position: fixed;
    top: 42px;
    width: 100%;
    padding: 16px 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

/* 共通ヘッダーCTA（ボタン化） */
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.cta-consult {
    background: #000000;
    color: #ffffff;
}

.cta-consult:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.cta-apply {
    background: linear-gradient(135deg, #FFD700, #f2d012);
    color: #060056;
}

.cta-apply:hover {
    background: linear-gradient(135deg, #FFE44D, #f2d012);
    transform: translateY(-1px);
    color: #060056 !important;
}

.fixed-cta-side {
    position: fixed;
    right: 0;
    top: 30vh;
    z-index: 1000;
}

.fixed-social-links {
    position: fixed;
    left: 16px;
    top: 42%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 48px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(6, 0, 86, 0.14);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}


/* =========================
   Footer
========================= */
footer {
    background: #000000;
    color: #ffffff;
    padding: 56px 0 28px;
    width: 100%;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 2.05fr);
    gap: 48px;
    margin-bottom: 36px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-links {
    display: flex;
    gap: 10px;
}

/* リンク */
.footer-contact-link {
    position: relative;
    display: block;
    transition: transform 0.3s ease;
}

.footer-contact-link img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-contact-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-contact-link:hover::before {
    opacity: 1;
}

.footer-contact-link:hover {
    transform: translateX(2px);
}

/* テキスト */
.footer-contact-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    line-height: 1.85;
    margin-top: 10px;
    font-weight: 400;
}

/* SNS */
.footer-social-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-social-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

/* メイン */
.footer-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-intro-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-intro-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    line-height: 1.85;
    max-width: 860px;
}

.footer-intro-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 18px;
    font-weight: 700;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 36px;
}

.footer-column-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column a::before {
    content: "›";
    color: #E8D667;
    margin-right: 12px;
}

.footer-column a:hover {
    color: #ffffff;
}

/* コピー */
.copy {
    text-align: center;
    font-size: 0.82rem;
    padding-top: 24px;
    border-top: 1px solid rgba(252, 252, 252, 0.14);
}

/* =========================
   Card Components（共通化）
========================= */

/* 角丸 */
.reality-card,
.urgent-box,
.feature-card,
.program-item-full,
.changes-item,
.voice-card,
.instructor-card,
.faq-item,
.blog-card,
.seminar-card,
.voice-ticker-card,
.tab-btn {
    border-radius: var(--radius-md);
}

/* シャドウ */
.feature-card,
.voice-card,
.faq-item,
.blog-card,
.seminar-card,
.voice-ticker-card,
.instructor-card {
    box-shadow: var(--shadow-soft);
}

/* ボーダー */
.blog-card,
.faq-item,
.voice-card,
.feature-card,
.seminar-card,
.voice-ticker-card {
    border: 1px solid rgba(6, 0, 86, 0.06);
}

/* =========================

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.3s ease;
}

/* PC: Hover Dropdown */
@media (min-width: 769px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: var(--white);
        min-width: 220px;
        padding: 12px 0;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(6, 0, 86, 0.12);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        list-style: none;
        z-index: 1100;
        margin-top: 10px;
        border: 1px solid rgba(6, 0, 86, 0.05);
    }

    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }

    .nav-item.has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-item.has-dropdown:hover .dropdown-arrow {
        transform: rotate(-135deg);
        margin-top: 2px;
    }

    .dropdown-menu li a {
        display: block;
        padding: 10px 20px;
        color: var(--primary);
        font-size: 0.88rem;
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
        white-space: nowrap;
    }

    .dropdown-menu li a:hover {
        background: rgba(6, 0, 86, 0.04);
        color: var(--primary) !important;
    }
}

/* Mobile: Accordion */
@media (max-width: 768px) {
    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, margin 0.3s ease;
        list-style: none;
        padding-left: 15px;
        background: rgba(6, 0, 86, 0.02);
        border-radius: 12px;
    }

    .nav-item.has-dropdown.is-active .dropdown-menu {
        max-height: 500px;
        /* Sufficient height */
        margin-top: 8px;
        margin-bottom: 8px;
        padding: 8px 0;
    }

    .nav-item.has-dropdown.is-active .dropdown-arrow {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    .dropdown-menu li a {
        display: block;
        padding: 10px 15px;
        font-size: 0.9rem;
        color: var(--text-light);
        border-radius: 8px;
    }
}

/* =========================
   Dropdown Menu
========================= */
.nav-links .nav-item.has-dropdown {
    position: relative;
}

.nav-links .dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-links .dropdown-arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
}

.nav-links .dropdown-menu {
    display: block;
    list-style: none !important;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    z-index: -1;
}

.nav-links .dropdown-menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* PC: Hover Dropdown */
@media (min-width: 769px) {
    .nav-links .dropdown-menu {
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #ffffff;
        min-width: 220px;
        padding: 12px 0;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(6, 0, 86, 0.12);
        transition: all 0.3s ease;
        z-index: 1100;
        margin-top: 10px;
        border: 1px solid rgba(6, 0, 86, 0.05);
    }

    .nav-links .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }

    .nav-links .nav-item.has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        z-index: 1100;
    }

    .nav-links .nav-item.has-dropdown:hover .dropdown-arrow {
        transform: rotate(-135deg);
    }

    .nav-links .dropdown-menu li a {
        display: block;
        padding: 10px 20px;
        color: #060056 !important;
        font-size: 0.88rem;
        font-weight: 500;
        transition: background 0.2s;
        white-space: nowrap;
        text-align: left;
    }

    .nav-links .dropdown-menu li a:hover {
        background: rgba(6, 0, 86, 0.04);
    }
}

/* Mobile: Accordion */
@media (max-width: 768px) {
    .nav-links .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: rgba(6, 0, 86, 0.02);
        border-radius: 12px;
        transform: none;
        box-shadow: none;
        border: none;
    }

    .nav-links .nav-item.has-dropdown.is-active .dropdown-menu {
        max-height: 500px;
        margin-top: 8px;
        margin-bottom: 8px;
        padding: 8px 0;
    }

    .nav-links .nav-item.has-dropdown.is-active .dropdown-arrow {
        transform: rotate(-135deg);
    }

    .nav-links .dropdown-menu li a {
        display: block !important;
        padding: 12px 15px !important;
        font-size: 0.94rem !important;
        color: #4f4f58 !important;
        border-radius: 8px;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

/* =========================
   Privacy Policy / Terms
   ========================= */
.policy-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 60px 50px;
    box-shadow: var(--shadow-soft);
    margin-top: 80px;
    margin-bottom: 80px;
}

@media (max-width: 600px) {
    .policy-card {
        padding: 40px 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
}

.policy-page-title-block {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 30px;
}

.policy-page-title-block h1 {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 8px;
}

.policy-page-title-block p {
    text-align: center;
}

.policy-section {
    margin-bottom: 50px;
}

.policy-section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    margin-bottom: 25px;
    font-weight: 800;
}

.policy-section h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 25px 0 10px;
    font-weight: 700;
}

.policy-content {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 400;
}

.policy-content p {
    margin-bottom: 15px;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

.footer-actions {
    text-align: center;
    margin-top: 60px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .breadcrumb {
        justify-content: center;
    }
}

/* Footer */
footer {
    background: #000000;
    color: #ffffff;
    padding: 56px 0 28px;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 2.05fr);
    gap: 48px;
    margin-bottom: 36px;
}

.footer-contact-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* リンク要素：ホバーの基準点 */
.footer-contact-link {
    position: relative;
    display: block;
    transition: transform 0.3s ease;
}

.footer-contact-link img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ホバー時に重なる白い膜（初期状態は透明） */
.footer-contact-link::before {
    content: "";
    position: absolute;
    inset: 0;
    /* top, right, bottom, left をすべて0にする略記 */
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ホバーした時の変化 */
.footer-contact-link:hover::before {
    opacity: 1;
}

.footer-contact-link:hover {
    transform: translateX(2px);
}

.footer-contact-meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    line-height: 1.85;
    font-weight: 400;
    margin-top: 10px;
}

.footer-social-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.footer-social-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-social-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

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

.footer-intro-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-intro-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.85;
    max-width: 860px;
}

.footer-intro-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: opacity 0.3s ease;
}

.footer-intro-link:hover {
    opacity: 0.8;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 36px;
}

.footer-column-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-column a::before {
    content: "›";
    color: #E8D667;
    margin-right: 12px;
    font-weight: 700;
}

.footer-column a:hover {
    color: #ffffff;
}

.copy {
    text-align: center;
    color: #ffffff;
    font-size: 0.82rem;
    padding-top: 24px;
    border-top: 1px solid rgba(252, 252, 252, 0.14);
}

.reality-card,
.urgent-box,
.feature-card,
.program-item-full,
.changes-item,
.voice-card,
.instructor-card,
.faq-item,
.blog-card,
.seminar-card,
.voice-ticker-card,
.tab-btn {
    border-radius: var(--radius-md);
}

.feature-card,
.voice-card,
.faq-item,
.blog-card,
.seminar-card,
.voice-ticker-card,
.instructor-card {
    box-shadow: var(--shadow-soft);
}

.blog-card,
.faq-item,
.voice-card,
.feature-card,
.seminar-card,
.voice-ticker-card {
    border: 1px solid rgba(6, 0, 86, 0.06);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .reality-grid,
    .urgent-grid,
    .features-grid,
    .flow-grid,
    .voices-grid,
    .changes-grid,
    .blog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .instructor-card {
        flex-direction: column;
    }

    .instructor-img {
        min-height: 250px;
        width: 100%;
    }
}