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

:root {
    --primary-color: #4169e1;
    --primary-dark: #2a44b5;
    --accent-color: #ff7a90;
    --background-color: #f3f6fb;
    --surface-color: #ffffff;
    --text-color: #1f2333;
    --muted-text-color: #5a6072;
    --border-color: rgba(49, 73, 120, 0.14);
    --shadow-soft: 0 20px 45px rgba(38, 74, 146, 0.12);
    --shadow-hover: 0 26px 60px rgba(38, 74, 146, 0.18);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    background: radial-gradient(140% 140% at 0% 0%, rgba(65, 105, 225, 0.12) 0%, rgba(65, 105, 225, 0) 45%),
                linear-gradient(180deg, #f9fbff 0%, var(--background-color) 100%);
    color: var(--text-color);
    line-height: 1.7;
}

header {
    background-color: var(--surface-color);
    padding: 8px 18px;
    box-shadow: 0 8px 24px rgba(30, 45, 70, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

main {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 8vw, 88px);
    padding-bottom: clamp(48px, 8vw, 88px);
}

.hero,
.course-hero {
    position: relative;
    margin: clamp(32px, 6vw, 72px) auto 0;
    padding: clamp(32px, 6vw, 72px);
    border-radius: 32px;
    overflow: hidden;
    width: min(1100px, 100%);
    max-width: 1100px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: clamp(32px, 6vw, 60px);
    align-items: center;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.12) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(65, 105, 225, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(46, 76, 133, 0.14);
}

.hero::after,
.course-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(65, 105, 225, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.hero-content,
.course-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(65, 105, 225, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero-title,
.course-hero-title {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
}

.hero-description,
.course-hero-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--muted-text-color);
    margin: 0;
    max-width: 48ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-width: 220px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    border: 1px solid transparent;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 18px 32px rgba(65, 105, 225, 0.28);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(65, 105, 225, 0.32);
}

.cta-button.ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    border-color: rgba(65, 105, 225, 0.35);
    box-shadow: inset 0 0 0 1px rgba(65, 105, 225, 0.1);
}

.cta-button.ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(65, 105, 225, 0.35), 0 14px 28px rgba(65, 105, 225, 0.18);
}

.hero-visual,
.course-hero-visual {
    position: relative;
    z-index: 1;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: flex-end;
}

.hero-badge {
    width: clamp(320px, 34vw, 420px);
    height: clamp(320px, 34vw, 420px);
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: 0 18px 38px rgba(49, 73, 120, 0.18);
}

.course-hero-image {
    width: clamp(320px, 34vw, 420px);
    aspect-ratio: 4 / 3;
    border-radius: 28px;
    box-shadow: 0 26px 48px rgba(38, 74, 146, 0.18);
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 10% 5% auto;
    height: clamp(160px, 30vw, 240px);
    border-radius: 32px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.28) 0%, rgba(65, 105, 225, 0) 70%);
    z-index: -1;
    filter: blur(6px);
}

.course-gallery,
.course-list {
    margin: 0 auto;
    width: min(1100px, 92%);
    padding: 0 clamp(16px, 4vw, 24px);
}

.section-heading {
    text-align: center;
    margin: 0 auto clamp(32px, 5vw, 48px);
    max-width: 60ch;
    color: var(--muted-text-color);
}

.section-title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--text-color);
    font-weight: 700;
}

.section-description {
    margin: 0;
    font-size: 1rem;
    color: var(--muted-text-color);
}

.course-gallery-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 4vw, 32px);
}

.course-card {
    position: relative;
    background: var(--surface-color);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}

.course-card::before {
    content: '';
    position: absolute;
    inset: -20% -20% auto;
    height: 55%;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.18) 0%, rgba(255, 255, 255, 0) 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.course-card a:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.course-card-media {
    position: relative;
    overflow: hidden;
}

.course-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.course-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(20px, 4vw, 28px);
}

.course-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(65, 105, 225, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
}

.badge.subtle {
    background: rgba(49, 73, 120, 0.08);
    color: var(--muted-text-color);
    font-weight: 500;
}

.badge.accent {
    background: rgba(255, 122, 144, 0.16);
    color: #d94c6d;
}

.course-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.course-card-text {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 0.95rem;
}

.search-container {
    max-width: 620px;
    margin: clamp(24px, 6vw, 40px) auto;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 14px 48px 14px 20px;
    border: 1px solid rgba(49, 73, 120, 0.16);
    border-radius: 999px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(38, 74, 146, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#searchInput:focus {
    outline: none;
    border-color: rgba(65, 105, 225, 0.55);
    box-shadow: 0 16px 28px rgba(65, 105, 225, 0.16);
}

.filter-buttons {
    text-align: center;
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 999px;
    background-color: rgba(65, 105, 225, 0.14);
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(65, 105, 225, 0.22);
}

.thumbnail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-grid .thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-info {
    padding: 16px;
}

.course-index-info {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tags {
    margin-top: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 8px;
    background-color: rgba(65, 105, 225, 0.12);
    color: var(--primary-dark);
    border-radius: 12px;
    font-size: 12px;
}

@media (max-width: 900px) {
    header {
        position: static;
        box-shadow: 0 6px 18px rgba(30, 45, 70, 0.08);
    }

    .hero,
    .course-hero {
        border-radius: 24px;
        padding: clamp(24px, 8vw, 48px);
        width: min(100%, 720px);
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-visual,
    .course-hero-visual {
        justify-self: center;
    }
}

@media (max-width: 640px) {
    main {
        gap: 48px;
    }

    .course-card-body {
        padding: 20px;
    }

    .hero-badge {
        width: 220px;
        height: 220px;
    }

    .course-hero-image {
        width: 100%;
        aspect-ratio: auto;
    }
}

/* 講座ページのスタイル */
.course-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.course-header {
    text-align: center;
    margin-bottom: 40px;
}

.course-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.course-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 18px 32px rgba(65, 105, 225, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(65, 105, 225, 0.32);
    filter: brightness(1.03);
}

.content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.thumbnail {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* カスタムダウンロードボタン */
.custom-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
    transition: all 0.3s ease;
    margin: 5px 0;
    font-size: 16px;
    text-align: center;
}

.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
    background: linear-gradient(135deg, #4a6cf7, #6e8efb);
}

.custom-button i {
    margin-right: 8px;
}

.header-content {
    display: flex;
    align-items: flex-start;
    padding: 14px;
}

.header-icon {
    width: 100%;
    height: 45px;
    object-fit: contain;
    margin-left: 10px;
}

.google-form h2 {
    text-align: center;
    margin: 20px 0;
}

.google-form p {
    text-align: center;
    margin: 15px 0;
}

.google-form iframe {
    margin: 0 auto;
    width: 100%;
    height: 1620px;
}

.wrapper{
    min-height: 100vh;
    position: relative;/*←相対位置*/
}

.footer-content {
    width: 100%;
    background-color: #111111;
    color: #fff;
    text-align: center;
    padding: 10px 0;

    position: absolute;/*←絶対位置*/
    bottom: 0; /*下に固定*/
}


.help-link {
    margin: 10px 0;
    text-align: center;
}

.help-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.help-link a:hover {
    color: #007bff;
}

.help-link i {
    font-size: 1.1em;
}
