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

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.header {
    background: linear-gradient(135deg, #4A90E2 0%, #E91E63 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
}

.nav {
    position: relative;
}

.menu-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1001;
    position: relative;
    display: block;
}

.menu-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px 0;
    margin-top: 10px;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #e85298;
    color: #d63384;
}

.nav-menu li:last-child a {
    border-bottom: none;
}

/* PC用の横並びメニュー表示 */
@media (min-width: 1024px) {
    .menu-btn {
        display: none;
    }
    
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        min-width: auto;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    
    .nav-menu li {
        margin: 0 5px;
    }
    
    .nav-menu a {
        padding: 8px 12px;
        font-size: 1rem;
        border-left: none;
        border-radius: 15px;
        white-space: nowrap;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.2);
        border-left-color: transparent;
        color: #ffffff;
    }
    
    /* PC表示時のみプライバシーポリシーとサイトポリシーを非表示 */
    .nav-menu a[href="privacy.html"],
    .nav-menu a[href="sitepolicy.html"] {
        display: none;
    }
}

/* Hero Section */
.hero {
    background-image: url('../images/bg.jpg?v=20250807');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.illustration-placeholder {
    width: 1100px;
    height: 850px;
    max-width: 95vw;
    max-height: 80vh;
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.family-icon {
    font-size: 7.5rem;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.family-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
}

.manzoku-badge {
    position: absolute;
    bottom: -50px;
    right: -60px;
    width: 180px;
    height: 230px;
    z-index: 10;
}

.manzoku-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero Text */
.hero-text {
    text-align: center;
    margin-top: 40px;
}

.application-status {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    display: inline-block;
}



/* Introduction Section */
.intro {
    background: #4d4398;
    padding: 5rem 1rem;
    text-align: center;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    line-height: 1.3;
}

.intro-card {
    background: #fcee21;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.intro-header {
    text-align: center;
}

.intro-title-image img {
    max-width: 100%;
    height: auto;
}

.intro-bottom {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.intro-icon {
    font-size: 5rem;
    flex-shrink: 0;
}

.intro-icon img {
    width: 430px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

/* Programs Section */
.programs {
    background: #e85298;
    padding: 80px 20px;
}

.programs-header {
    text-align: center;
    margin-bottom: 60px;
}

.programs-title {
    font-size: 2.625rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
}

.programs-header p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto;
    color: white;
    opacity: 0.9;
    font-weight: 300;
}

.programs-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Cultural Activities Grid */

.cultural-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.cultural-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cultural-icon {
    width: 140px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    gap: 10px;
}

.cultural-icon img {
    width: 130px;
    height: 114px;
    object-fit: contain;
    flex-shrink: 0;
}

.cultural-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e85298;
    margin: 0;
    text-align: center;
}

.programs-button-container {
    text-align: center;
    margin-top: 40px;
}

.programs-button {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 300px;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: normal;
    cursor: pointer;
    transition: background 0.3s ease;
}

.programs-button:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    transform: none;
    box-shadow: none;
}

.program-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    height: 100%;
}

.program-image {
    width: 380px;
    height: 380px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    flex-shrink: 0;
    margin: 60px 30px 30px 30px;
}

.program-placeholder {
    font-size: 3.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.program-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.program-content {
    padding: 30px;
    color: #333;
    flex: 1;
    order: 1;
}

.program-title {
    font-size: 2.2rem;
    color: #e85298;
    font-weight: bold;
    margin-bottom: 16px;
}

.program-catchphrase {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 24px;
    font-weight: bold;
}

.program-description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.5;
}

/* Curriculum Single Card */
.curriculum-single-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.curriculum-content {
    padding: 40px;
}

.curriculum-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.curriculum-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.curriculum-image {
    width: 300px;
    height: 300px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    order: 2;
}

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

.curriculum-text {
    flex: 1;
    order: 1;
}

.curriculum-title {
    font-size: 1.8rem;
    color: #e85298;
    font-weight: bold;
    margin-bottom: 12px;
}

.curriculum-catchphrase {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.4;
}

.curriculum-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    background: #2c88c1;
    padding: 80px 20px;
}

.testimonials-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.testimonials .programs-title {
    color: #ffffff;
}

.testimonials-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 50px;
    color: #333;
}

.testimonial-cards {
    display: flex;
    justify-content: center;
}

.testimonial-card {
    background: #fcee21;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 1000px;
    width: 100%;
}

.testimonial-item {
    padding: 20px 0;
    border-bottom: 1px dashed #333;
}

.testimonial-item:last-child {
    border-bottom: none;
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.testimonial-icon {
    flex-shrink: 0;
}

.testimonial-icon img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 50%;
}

.testimonial-info {
    flex: 1;
}

.testimonial-author {
    font-weight: bold;
    color: #333;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    color: #333;
}

/* Media Section */
.media {
    background: #6B46C1;
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.media-content {
    max-width: 1000px;
    margin: 0 auto;
}

.media-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 50px;
    color: white;
}

.media-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.media-text-content {
    flex: 1;
    text-align: left;
}

.media-topic-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.media-text {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.media-image {
    flex-shrink: 0;
    width: 300px;
}

.media-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Footer */
/* Footer */
.footer {
    background: #2D2D2D;
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-links {
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #ffffff;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #e85298;
    text-decoration: underline;
}

.footer-logo {
    margin-bottom: 10px;
    color: white;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-style: italic;
}

.footer-info {
    font-size: 0.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.bunkacho-logo {
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 5px;
    display: inline-block;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

/* General Link Styles */
a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #d63384;
    text-decoration: underline;
}

/* Exclude buttons and specific elements from general link styles */
a.contact-btn,
.footer-links a {
    /* These will use their specific styles */
    color: inherit;
}

.copyright {
    font-size: 0.625rem;
    color: #ffffff;
    margin-top: 20px;
}

/* Contact Button */
.contact-btn {
    background: #FFD700;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .illustration-placeholder {
        width: 450px;
        height: 380px;
        max-width: 95vw;
        max-height: 60vh;
        border-radius: 25px;
    }
    
    .family-icon {
        font-size: 5rem;
    }
    
    .manzoku-badge {
        bottom: -60px;
        right: 10px;
        width: 120px;
        height: 150px;
    }
    
    .application-status {
        font-size: 1.8rem;
    }
    
    .intro-title {
        font-size: 1.75rem;
    }
    
    .intro-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .intro-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .intro-icon img {
        width: 280px;
        max-width: 90%;
    }
    
    .programs-title {
        font-size: 2rem;
    }
    
    .programs-header p {
        text-align: left;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Cultural Activities Mobile */
    .cultural-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .cultural-icon {
        width: 108px;
        height: 120px;
        padding: 10px;
        gap: 8px;
    }
    
    .cultural-icon img {
        width: 94px;
        height: 90px;
    }
    
    .cultural-title {
        font-size: 1rem;
    }
    
    /* カリキュラムカードのスマホ対応 */
    .program-card {
        flex-direction: column;
        height: auto;
        max-width: 100%;
    }
    
    .program-image {
        width: 90%;
        height: auto;
        aspect-ratio: 1 / 1;
        order: 1;
        margin: 0px auto;
        border-radius: 15px 15px 0 0;
        overflow: hidden;
    }
    
    .program-content {
        order: 2;
        padding: 25px;
        flex: 1;
    }
    
    .program-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .program-catchphrase {
        font-size: 1.3rem;
        margin-bottom: 18px;
        line-height: 1.4;
    }
    
    .program-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    
    /* 参加者の声のスマホ対応 */
    .testimonial-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-header {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }
    
    .testimonial-icon {
        flex-shrink: 0;
    }
    
    .testimonial-icon img {
        width: 100px;
        height: 100px;
    }
    
    .testimonial-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .testimonial-author {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .testimonial-text {
        font-size: 1rem;
        margin: 0;
    }
    
    .voice-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .voice-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .voice-name {
        font-size: 1.2rem;
    }
    
    .voice-text {
        font-size: 1rem;
        text-align: left;
    }
    
    /* メディア掲載セクションのスマホ対応 */
    .media-item {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .media-topic-title {
        font-size: 1.2rem;
    }
    
    .media-text {
        font-size: 1rem;
    }
    
    .media-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .contact-btn {
        bottom: 10px;
        right: 10px;
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .intro {
        padding: 40px 15px;
    }
    
    .programs {
        padding: 40px 15px;
    }
    
    /* 480px以下でのカリキュラムカード調整 */
    .program-image {
        height: 420px;
    }
    
    .program-content {
        padding: 20px;
    }
    
    .program-title {
        font-size: 1.3rem;
    }
    
    .program-catchphrase {
        font-size: 1.1rem;
    }
    
    .program-description {
        font-size: 0.9rem;
    }
    
    .testimonials {
        padding: 40px 15px;
    }
    
    /* 480px以下での参加者の声調整 */
    .voice-image {
        width: 70px;
        height: 70px;
    }
    
    .voice-name {
        font-size: 1.1rem;
    }
    
    .voice-text {
        font-size: 0.9rem;
    }
    
    .media {
        padding: 40px 15px;
    }
}
