/* ===============================================
   AI飲食店研究所 - グランメゾンスタイル
   黒×金×ワインレッド / 明朝×余白 / 高級感重視
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600&family=Shippori+Mincho:wght@400;500;600;700;800&display=swap');

/* ===== カラーパレット（グランメゾン） ===== */
:root {
    /* メインカラー */
    --noir: #0f0f0f;           /* 黒（ベース） */
    --gold: #d4af37;           /* 金（アクセント） */
    --burgundy: #6d1f1f;       /* ワインレッド（CTA） */
    --burgundy-dark: #4a1515;
    
    /* サブカラー */
    --charcoal: #1a1a1a;
    --warm-gray: #2a2724;
    --light-gold: #f4e9cd;
    --cream: #faf8f3;
    
    /* テキストカラー */
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-light: #8a8a8a;
    
    /* タイポグラフィ */
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    
    /* スペーシング */
    --section-padding: 8rem 0;
    --container-max: 1200px;
    
    /* シャドウ（控えめ） */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    
    /* トランジション */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 横スクロール防止 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

/* ===== タイポグラフィ（明朝×余白） ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.1em;
    color: var(--noir);
    margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    line-height: 2.2;
    letter-spacing: 0.06em;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--burgundy);
}

/* ===== レイアウト ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.section-dark {
    background-color: var(--noir);
    color: var(--cream);
}

.section-warm {
    background-color: var(--warm-gray);
    color: var(--cream);
}

/* ===== ヘッダー（ミニマル・エレガント） ===== */
.header {
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 400;
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    color: var(--cream);
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--cream) !important;
    padding: 0.75rem 1.75rem;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: 1px solid var(--gold);
}

.nav-cta::after { display: none; }

.nav-cta:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 31, 31, 0.4);
    color: var(--cream) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--noir);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--gold);
        z-index: 1000;
    }
    
    .nav-list.active { display: flex; }
    
    .nav-link {
        width: 100%;
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        font-size: 0.9rem;
    }
    
    .mobile-menu-toggle { display: block; }
    
    /* ヘッダーのパディング調整 */
    .header { padding: 1rem 1.5rem; }
    .logo { font-size: 1.125rem; }
}

/* ===== ヒーローセクション（映画的グレイン） ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--noir);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://www.genspark.ai/api/files/s/6ip5nu5D?token=Z0FBQUFBQnBnak9xUm94SUpLaUR2SHZ0NWNjdms0QWQ4Sk9nQlNJOEFTaVdmWldMbXNueklzbEhvSmQ1TjhXQnQtaVdoVDBoUXpDUDNFd0s4LTU3NUhUMUdXV1RwSDVVOVpfVGw3U1A1ZGhPbFhhWUFQeS1TUUY2dkd0QmZIaHAxU1RxTkgxVG9mWkJqR3k2di12Q3I5Z0F0RjR4ODlSaWZ4VXlDQ1ZfaTE4andoNVE3cmRsbGlReER2RUhrdEZFS2VWU0FpMzNaSzFzSmxhVWpjblBPUHlHTi1QZmZuclVmamZ1Mkp4M0JYQ0FkQzhmeExsanQ0LTktT3l2UjFMVW8zUmhfaVFwaFU1TVdQOUtad2pkTHV3Q1B0MUg0aG0tc3c9PQ');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

/* 映画的グレインエフェクト */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--cream);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--cream);
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 2rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(244, 233, 205, 0.9);
    margin-bottom: 3rem;
    line-height: 2.2;
    letter-spacing: 0.08em;
    font-weight: 300;
}

.hero-badge {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 2rem;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    font-weight: 400;
    font-family: var(--font-serif);
}

/* ===== ボタン（グランメゾンスタイル） ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font-serif);
}

.btn-primary {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--cream);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(109, 31, 31, 0.4);
    color: var(--cream);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--noir);
}

.btn-large {
    padding: 1.5rem 3.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ===== セクション見出し（COURSEスタイル） ===== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
}

.section-label {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--noir);
}

.section-dark .section-title {
    color: var(--cream);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gold);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 2.2;
    letter-spacing: 0.06em;
}

.section-dark .section-subtitle {
    color: rgba(244, 233, 205, 0.8);
}

/* ===== カード（ミニマル・エレガント） ===== */
.card {
    background: white;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.card-number {
    width: 80px;
    height: 80px;
    background: var(--noir);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-weight: 600;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--noir);
    font-family: var(--font-serif);
    letter-spacing: 0.08em;
}

.card-text {
    color: var(--text-secondary);
    line-height: 2.2;
    letter-spacing: 0.06em;
}

/* ===== グリッド ===== */
.grid {
    display: grid;
    gap: 3rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ===== 価値教育セクション（品格重視） ===== */
.value-education {
    background: linear-gradient(135deg, var(--warm-gray), var(--noir));
    border: 1px solid var(--gold);
    padding: 4rem;
    margin: 4rem 0;
    color: var(--cream);
}

.value-education h3 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    font-family: var(--font-serif);
}

.value-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .value-comparison { grid-template-columns: 1fr; }
}

.value-box {
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.value-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--cream);
    font-family: var(--font-serif);
}

.value-box ul {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.value-box li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: rgba(244, 233, 205, 0.9);
}

.value-box li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ===== 成果物リスト（品格） ===== */
.deliverables {
    background: white;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    margin: 3rem 0;
    border: 1px solid var(--gold);
}

.deliverables h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--noir);
    text-align: center;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2rem;
    font-family: var(--font-serif);
}

.deliverables-list {
    display: grid;
    gap: 2rem;
}

.deliverable-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--cream);
    border-left: 2px solid var(--gold);
    transition: var(--transition);
}

.deliverable-item:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateX(8px);
}

.deliverable-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--noir);
    color: var(--gold);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--font-serif);
}

.deliverable-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--noir);
    font-family: var(--font-serif);
}

.deliverable-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== CTAセクション（ワインレッド） ===== */
.cta-section {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--cream);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.cta-section h2 {
    color: var(--cream);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 2.2;
}

.cta-section .btn {
    background: var(--cream);
    color: var(--burgundy);
    font-size: 1.25rem;
    padding: 1.5rem 3.5rem;
    border: 1px solid var(--gold);
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    background: var(--gold);
    color: var(--noir);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ===== フッター（エレガント） ===== */
.footer {
    background: var(--noir);
    color: rgba(244, 233, 205, 0.8);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    font-family: var(--font-serif);
    letter-spacing: 0.1em;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(244, 233, 205, 0.7);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(244, 233, 205, 0.5);
}

/* ===== トップへ戻る ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--burgundy);
    color: var(--gold);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--burgundy-dark);
    transform: translateY(-5px);
}

/* ===== アニメーション ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* ===== レスポンシブ調整 ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        letter-spacing: 0.1em;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        line-height: 2;
    }
    
    .value-education {
        padding: 2rem 1.25rem;
        margin: 2rem 0;
    }
    
    .value-education h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .value-box {
        padding: 2rem 1.5rem;
    }
    
    .value-box h4 {
        font-size: 1.25rem;
    }
    
    .deliverables {
        padding: 2rem 1.25rem;
        margin: 2rem 0;
    }
    
    .deliverables h3 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .deliverable-item {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .deliverable-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .card {
        padding: 2rem 1.5rem;
    }
    
    .card-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
        line-height: 2;
    }
    
    /* ヒーローセクション調整 */
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 1.5rem;
        letter-spacing: 0.08em;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 2;
    }
    
    .hero-badge {
        padding: 0.4rem 1.5rem;
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* ボタン調整 */
    .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .btn i {
        margin-left: 0.5rem;
    }
    
    /* フッター調整 */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.75rem;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

/* ===== 極小画面対応（375px以下） ===== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1.5rem 1rem;
    }
    
    .value-education,
    .deliverables {
        padding: 1.5rem 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
    }
}

/* ===== アクセシビリティ ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}