/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* カスタムプロパティ（CSS変数） */
:root {
    --navy-blue: #1a365d;
    --gold: #d4af37;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-text: #2d3748;
    --shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
    --shadow-heavy: 0 20px 60px rgba(26, 54, 93, 0.25);
}

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'MS Gothic', sans-serif;
    line-height: 1.8;
    color: var(--dark-text);
    background: url('w_background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    font-weight: 400;
    min-height: 100vh;
}

/* ヘッダー */
header {
    background: var(--white);
    color: var(--dark-text);
    padding: 1rem 0;
    box-shadow: var(--shadow-heavy);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--dark-text);
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('top_img.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: local;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.hero-content {
    max-width: 100%;
    width: 100%;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS Mincho', serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 4px 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'MS Mincho', serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 4px 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-content .highlight {
    color: var(--gold);
    font-weight: 900;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    word-break: normal;
    overflow-wrap: break-word;
    padding: 0 2rem;
}

/* PC用改行をモバイルで非表示 */
.br-desktop {
    display: inline;
}

@media (max-width: 768px) {
    .br-desktop {
        display: none;
    }
}

/* 大きなボタンスタイル */
.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-large {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn-large.btn-primary {
    background: rgba(212, 175, 55, 0.9);
    border-color: var(--gold);
    color: var(--navy-blue);
}

.btn-large.btn-primary:hover {
    background: var(--gold);
    color: var(--navy-blue);
}

.btn-large.btn-secondary {
    background: rgba(26, 54, 93, 0.9);
    border-color: var(--navy-blue);
    color: var(--white);
}

.btn-large.btn-secondary:hover {
    background: var(--navy-blue);
    color: var(--white);
}

.btn-icon {
    font-size: 3rem;
    line-height: 1;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.btn-text strong {
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-text small {
    font-size: 1rem;
    opacity: 0.8;
}

/* ヒーロー特徴 */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-size: 1rem;
    font-weight: 600;
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* セクション共通スタイル */
section {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, var(--navy-blue) 0%, #2c5282 100%);
    color: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(26, 54, 93, 0.4), 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, #f7d794 100%);
}

section h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, #f7d794 100%);
    border-radius: 2px;
}

/* 協議会についてセクション */
.about-content {
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.mission-item {
    background: rgba(212, 175, 55, 0.1);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--gold);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.mission-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.mission-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.mission-item p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* ２つの入口セクション */
.entrances-content {
    text-align: center;
}

.entrance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.entrance-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.entrance-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--gold);
}

.entrance-item h3 {
    color: var(--navy-blue);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.entrance-item p {
    color: var(--dark-text);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.entrance-btn {
    background: var(--gold);
    color: var(--navy-blue);
    padding: 0.8rem 2rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.entrance-btn:hover {
    background: #e6c347;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    color: var(--navy-blue);
}

/* お問い合わせセクション */
.contact-content {
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* フッター */
footer {
    background: var(--white);
    color: var(--dark-text);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-section h4 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

.footer-section ul li a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
    color: var(--dark-text);
    opacity: 0.7;
}

/* レスポンシブデザイン */
/* タブレット対応 */
@media (max-width: 1024px) {
    .entrance-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 600px;
    }
    
    .entrance-image {
        width: 250px;
        height: 250px;
    }
    
    .entrance-item h3 {
        font-size: 2.2rem;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .header-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
    
    .hero {
        height: 70vh;
        padding: 2rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
        padding: 0 1.5rem;
        line-height: 1.5;
        word-break: normal;
        overflow-wrap: break-word;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn-large {
        min-width: auto;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .btn-text {
        align-items: center;
        text-align: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-item {
        justify-content: center;
    }
    
    main {
        padding: 0 1rem;
    }
    
    section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .entrance-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* ２つの入口セクションのモバイル最適化 */
    .entrance-image {
        width: 200px;
        height: 200px;
    }
    
    .entrance-item h3 {
        font-size: 1.8rem;
    }
    
    .entrance-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        max-width: 100%;
        padding: 0 0.5rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .btn-large {
        padding: 1rem;
    }
    
    .btn-icon {
        font-size: 2rem;
    }
    
    .btn-text strong {
        font-size: 1.1rem;
    }
    
    .btn-text small {
        font-size: 0.9rem;
    }
    
    section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    /* ２つの入口セクション - 極小スマホ対応 */
    .entrance-image {
        width: 150px;
        height: 150px;
    }
    
    .entrance-item h3 {
        font-size: 1.4rem;
    }
    
    .entrance-item {
        padding: 1rem;
    }
    
    .entrance-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}