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

html {
    scroll-behavior: smooth;
    background-color: #F5F5F5; /* バウンススクロール時の背景色を設定 */
    -webkit-overflow-scrolling: touch; /* iOS用スムーススクロール */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #36454F;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #F5F5F5; /* メインの背景色 */
    overscroll-behavior: none; /* バウンススクロールを無効化（モダンブラウザ用） */
    -webkit-overflow-scrolling: touch; /* iOS用スムーススクロール */
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #001C6B;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #001C6B;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: #36454F;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #A08F74;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 28, 107, 0.6), rgba(0, 28, 107, 0.4));
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #87CEEB;
    box-shadow: 0 10px 20px rgba(135, 206, 235, 0.3);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #40E0D0;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(135, 206, 235, 0.4);
}


@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: #F5F5F5;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.news-date {
    color: #36454F;
    font-size: 0.9rem;
}

.news-tag {
    background-color: #A08F74;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #001C6B;
}

.news-description {
    color: #36454F;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #F5F5F5;
}

.mission-statement {
    text-align: center;
    margin-bottom: 60px;
}

.mission-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #36454F;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #A08F74;
}

.about-card p {
    color: #36454F;
    line-height: 1.7;
}

/* Activities Section */
.activities-section {
    padding: 80px 0;
    background-color: #fff;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.activity-card {
    background: #F5F5F5;
    padding: 40px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    width: 80px;
    height: 80px;
    background-color: #A08F74;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 30px;
}

.activity-card h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #001C6B;
}

.activity-card p {
    text-align: center;
    color: #36454F;
    margin-bottom: 25px;
    line-height: 1.6;
}

.activity-card ul {
    list-style: none;
    padding: 0;
}

.activity-card li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
}

.activity-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #A08F74;
    font-weight: bold;
}

/* Leadership Section */
.leadership-section {
    padding: 80px 0;
    background-color: #F5F5F5;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .leader-photo {
        width: 100px;
        height: 100px;
    }
    
    .leader-affiliation {
        max-height: none;
        overflow-y: visible;
    }
}

.leader-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.leader-avatar {
    width: 160px;
    height: 160px;
    background-color: #e0e0e0;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.leader-photo {
    width: 160px;
    height: 160px;
    border-radius: 20%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.leader-card:hover .leader-photo {
    transform: scale(1.05);
}

.leader-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #001C6B;
}

.leader-role {
    color: #A08F74;
    font-weight: 600;
    margin-bottom: 5px;
}

.leader-affiliation {
    color: #36454F;
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    padding: 10px 0;
    flex-grow: 1;
}

.auditor-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #001C6B;
}

.auditor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.auditor-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 300px;
}

.auditor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.auditor-avatar {
    width: 80px;
    height: 80px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.auditor-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #001C6B;
}

.auditor-role {
    color: #A08F74;
    font-weight: 600;
    margin-bottom: 5px;
}

.auditor-affiliation {
    color: #36454F;
    font-size: 0.9rem;
}

/* Compact Leadership Grid for Index Page */
.leadership-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
}

.leader-compact-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    padding: 15px;
}

.leader-compact-card:hover {
    transform: translateY(-5px);
}

.leader-compact-photo {
    width: 160px;
    height: 160px;
    border-radius: 10%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 15px;
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-compact-card:hover .leader-compact-photo {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leader-compact-avatar {
    width: 160px;
    height: 160px;
    background-color: #E2E5EA;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-compact-card:hover .leader-compact-avatar {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leader-compact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #001C6B;
}

.leader-compact-role {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .leadership-compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .leader-compact-photo,
    .leader-compact-avatar {
        width: 100px;
        height: 100px;
    }
}

/* Membership Section */
.membership-section {
    padding: 80px 0;
    background-color: #fff;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.membership-card {
    background: #F5F5F5;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.membership-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #001C6B;
}

.membership-price {
    margin-bottom: 30px;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #A08F74;
}

.period {
    font-size: 1rem;
    color: #36454F;
}

.membership-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.membership-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
}

.membership-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #A08F74;
    font-weight: bold;
}

.membership-button {
    background-color: #A08F74;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.membership-button:hover {
    background-color: #8BA59B;
    transform: translateY(-2px);
}

.contact-info {
    text-align: center;
    background-color: #F5F5F5;
    padding: 40px;
    border-radius: 15px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #001C6B;
}

.contact-info p {
    color: #36454F;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: #001C6B;
    color: white;
    padding: 60px 20px 30px;
}

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

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

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #A08F74;
}

.contact-info {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #ccc;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #A08F74;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #A08F74;
}

.footer-bottom {
    border-top: 1px solid #36454F;
    padding-top: 30px;
    text-align: center;
}

.copyright {
    color: #E2E5EA;
    font-size: 14px;
}

/* 404 Error Page */
.error-section {
    padding: 120px 0;
    background-color: #F5F5F5;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

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

.error-title {
    font-size: 8rem;
    font-weight: bold;
    color: #A08F74;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-subtitle {
    font-size: 2.5rem;
    color: #001C6B;
    margin-bottom: 2rem;
}

.error-description {
    font-size: 1.2rem;
    color: #36454F;
    margin-bottom: 3rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .error-title {
        font-size: 6rem;
    }
    
    .error-subtitle {
        font-size: 2rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .news-grid,
    .about-grid,
    .activities-grid,
    .leadership-grid,
    .membership-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav {
        height: 60px;
    }
    
    .nav-links {
        top: 60px;
    }
}

/* iOS Safari向けバウンススクロール対策 */
@supports (-webkit-touch-callout: none) {
    html, body {
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    /* iOS向け背景固定 */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #F5F5F5;
        z-index: -1;
    }
    
    /* ビューポート高さの調整（iOS Safari対応） */
    body {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* スクロール範囲の制限 */
    main {
        position: relative;
        z-index: 1;
    }
}