/* =============================================
   index.css — Clé de Sol トップページ専用
   象牙 #faf8f2 / 黒檀 #1a1510 / ゴールド #b8965a
   フォント: Cormorant Garamond + Noto Serif JP
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif+JP:wght@400;600&display=swap');

/* =============================================
   ヘッダーオーバーライド（トップページのみ）
   ============================================= */
body.page-index .main-header {
    background: #1a1510;
    box-shadow: 0 1px 0 rgba(184,150,90,0.3), 0 4px 24px rgba(0,0,0,0.5);
}

body.page-index .logo-text {
    color: #b8965a;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    letter-spacing: 0.06em;
}

body.page-index .piano-logo {
    font-size: 1.1rem;
}

body.page-index .nav-link,
body.page-index .nav-dropdown-toggle {
    color: #c8b890;
}

body.page-index .nav-link:hover,
body.page-index .nav-dropdown-toggle:hover {
    color: #b8965a;
}

body.page-index .hamburger span {
    background: #c8b890;
}

body.page-index .back-button {
    color: #c8b890;
}

body.page-index .mobile-username {
    color: #c8b890;
}

/* =============================================
   フラッシュメッセージ
   ============================================= */
.message-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cds-flash {
    padding: 14px 20px;
    border-radius: 6px;
    margin: 16px auto;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.03em;
}

.cds-flash--success {
    background: #f5f0e8;
    color: #6b4c1e;
    border: 1px solid #b8965a;
}

.cds-flash--info {
    background: #f5f0e8;
    color: #4a3820;
    border: 1px solid #c8b08a;
}

/* =============================================
   ヒーローセクション
   ============================================= */
.cds-hero {
    background: linear-gradient(175deg, #1a1510 0%, #241e14 55%, #1a1510 100%);
    padding: 0 0 64px;
    text-align: center;
    overflow: hidden;
}

.cds-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ピアノ鍵盤 */
.cds-piano-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

.cds-piano-wrap::before,
.cds-piano-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 1;
    pointer-events: none;
}

.cds-piano-wrap::before {
    left: 0;
    background: linear-gradient(to right, #1a1510, transparent);
}

.cds-piano-wrap::after {
    right: 0;
    background: linear-gradient(to left, #1a1510, transparent);
}

.cds-piano-svg {
    width: 100%;
    max-width: 616px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 24px rgba(184,150,90,0.25));
}

/* キャッチコピー */
.cds-hero-eyebrow {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: #b8965a;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cds-hero-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
    font-size: clamp(1.7rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: #faf8f2;
    letter-spacing: 0.04em;
    line-height: 1.45;
    margin-bottom: 14px;
}

.cds-hero-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.88rem;
    color: #a09070;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

/* =============================================
   検索バー
   ============================================= */
.cds-search {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cds-search-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cds-select {
    width: 100%;
    padding: 13px 36px 13px 14px;
    background: rgba(250,248,242,0.06);
    border: 1px solid rgba(184,150,90,0.5);
    border-radius: 5px;
    color: #e0d4bc;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.83rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpolyline points='1,1 5.5,6 10,1' fill='none' stroke='%23b8965a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.cds-select option {
    background: #1a1510;
    color: #e0d4bc;
}

.cds-select:focus {
    outline: none;
    border-color: #b8965a;
    background-color: rgba(250,248,242,0.1);
}

.cds-search-btn {
    padding: 15px;
    background: linear-gradient(135deg, #c8a060 0%, #8a6530 100%);
    color: #faf8f2;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.cds-search-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

.cds-search-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* =============================================
   先生一覧セクション
   ============================================= */
.cds-teachers {
    background: #faf8f2;
    padding: 64px 0 80px;
}

.cds-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.cds-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d8cdb8;
}

.cds-section-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1510;
    letter-spacing: 0.06em;
}

.cds-section-more {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.8rem;
    color: #b8965a;
    text-decoration: none;
    letter-spacing: 0.05em;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.cds-section-more:hover {
    border-bottom-color: #b8965a;
}

/* 先生グリッド */
.cds-teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* 先生カード */
.cds-teacher-card {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 2px 14px rgba(26,21,16,0.05);
}

.cds-teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(184,150,90,0.18), 0 4px 12px rgba(26,21,16,0.08);
    border-color: #b8965a;
}

/* 写真エリア */
.cds-teacher-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #2a2018 0%, #1a1510 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cds-teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cds-teacher-card:hover .cds-teacher-photo img {
    transform: scale(1.04);
}

.cds-teacher-placeholder {
    font-size: 3.5rem;
    color: #b8965a;
    opacity: 0.45;
    font-family: Georgia, serif;
}

/* 情報エリア */
.cds-teacher-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cds-teacher-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1510;
    letter-spacing: 0.03em;
}

.cds-teacher-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cds-stars {
    color: #b8965a;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
}

.cds-rating-val {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b4c1e;
}

.cds-review-cnt {
    font-size: 0.72rem;
    color: #aaa;
}

.cds-teacher-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cds-tag {
    display: inline-block;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.cds-tag--area {
    background: #f5f0e8;
    color: #6b4c1e;
    border: 1px solid #d8c8a8;
}

.cds-tag--style {
    background: #1a1510;
    color: #c8b890;
}

/* 月謝・プロフィール */
.cds-teacher-price {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.82rem;
    color: #7a6b56;
}

.cds-teacher-price strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: #1a1510;
    font-weight: 600;
}

.cds-teacher-pr {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.75;
    flex: 1;
}

.cds-teacher-cta {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.78rem;
    color: #b8965a;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #ede8dc;
    text-align: right;
    letter-spacing: 0.05em;
    transition: letter-spacing 0.2s;
}

.cds-teacher-card:hover .cds-teacher-cta {
    letter-spacing: 0.1em;
}

/* 先生なし状態 */
.cds-teacher-empty {
    text-align: center;
    padding: 72px 20px;
    color: #bbb;
}

.cds-teacher-empty-icon {
    font-size: 3rem;
    margin-bottom: 14px;
    opacity: 0.4;
}

.cds-teacher-empty p {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
}

.cds-empty-register-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #b8965a, #8a6530);
    color: #faf8f2;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    transition: opacity 0.2s;
}

.cds-empty-register-btn:hover {
    opacity: 0.85;
}

/* =============================================
   特徴セクション
   ============================================= */
.cds-features {
    background: #1a1510;
    padding: 72px 0 80px;
}

.cds-features-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #faf8f2;
    text-align: center;
    letter-spacing: 0.08em;
    margin-bottom: 52px;
    position: relative;
}

.cds-features-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #b8965a;
    margin: 14px auto 0;
}

.cds-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cds-feature {
    text-align: center;
    padding: 0 8px;
}

.cds-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    display: block;
}

.cds-feature h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #b8965a;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.cds-feature p {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.8rem;
    color: #8a7a62;
    line-height: 1.9;
}

/* =============================================
   CTAセクション
   ============================================= */
.cds-cta {
    background: #faf8f2;
    padding: 72px 0 80px;
    text-align: center;
    border-top: 1px solid #d8cdb8;
}

.cds-cta-title {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: #1a1510;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.cds-cta-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    color: #7a6b56;
    line-height: 1.9;
    max-width: 500px;
    margin: 0 auto 36px;
}

.cds-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cds-btn {
    display: inline-block;
    padding: 14px 38px;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.18s, opacity 0.18s;
}

.cds-btn:hover {
    transform: translateY(-2px);
    opacity: 0.88;
}

.cds-btn--gold {
    background: linear-gradient(135deg, #c8a060 0%, #8a6530 100%);
    color: #faf8f2;
    box-shadow: 0 4px 16px rgba(184,150,90,0.3);
}

.cds-btn--outline {
    background: transparent;
    color: #1a1510;
    border: 1.5px solid #1a1510;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 960px) {
    .cds-teacher-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    /* ヒーロー */
    .cds-hero {
        padding-bottom: 48px;
    }

    .cds-piano-wrap::before,
    .cds-piano-wrap::after {
        width: 40px;
    }

    .cds-hero-title {
        font-size: 1.5rem;
    }

    .cds-hero-sub {
        font-size: 0.82rem;
    }

    /* 検索バー */
    .cds-search-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* 先生グリッド */
    .cds-teacher-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cds-teacher-photo {
        aspect-ratio: 16 / 9;
    }

    .cds-section-head {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .cds-section-title {
        font-size: 1.35rem;
    }

    /* 特徴セクション */
    .cds-features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cds-features-title {
        font-size: 1.35rem;
    }

    .cds-feature {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }

    .cds-feature-icon {
        font-size: 1.8rem;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    /* CTA */
    .cds-cta-title {
        font-size: 1.4rem;
    }

    .cds-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .cds-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}
