/* テーマページ専用スタイル */
.theme-main-title {
    font-size: clamp(32px, 5vw, 48px);
    color: #FFD700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 30px 0;
    font-weight: bold;
}

.theme-description {
    font-size: clamp(18px, 3vw, 24px);
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
}

.theme-highlight {
    margin:30px 0;
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.theme-details {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto; /* auto で中央揃え */
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px; /* 最大幅を設定 */
    text-align: left; /* テキストを中央揃え */
}

.theme-details h3 {
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: center; 
}
h3
{
    text-align: center;
}

.theme-details ul {
    list-style: none;
    padding-left: 0;
}

.theme-details li {
    position: relative;
    padding-left: 25px;
    margin: 10px 0;
}

.theme-details li:before {
    content: "⭐";
    position: absolute;
    left: 0;
    color: #FFD700;
}

.theme-message {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto; /* auto で中央揃え */
    max-width: 800px; /* 最大幅を設定 */
    text-align: center; /* テキストを中央揃え */
}

.message-text {
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.8;
    text-align: center;
    margin: 20px 0;
}

/* ポン八ページ専用スタイル */
.intro-text {
    font-size: clamp(18px, 3vw, 22px);
    color: #FFD700;
    font-weight: bold;
    margin: 20px 0;
}

.ponhachi-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto; /* auto で中央揃え */
    max-width: 800px; /* 最大幅を設定 */
    text-align: center; /* テキストを中央揃え */
}

.ponhachi-thanks {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #FFD700;
}

/* 八王子祭についてページ */
.about-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto; /* auto で中央揃え */
    max-width: 800px; /* 最大幅を設定 */
    text-align: center; /* テキストを中央揃え */
}

.attraction-list h4 {
    color: #FFD700;
    margin: 20px 0 10px 0;
    font-size: 18px;
}

.venue-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    padding: 30px;
    margin: 30px auto; /* auto で中央揃え */
    max-width: 800px; /* 最大幅を設定 */
    text-align: center; /* テキストを中央揃え */
}

.event-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.event-date {
    font-size: clamp(20px, 3vw, 28px);
    color: #FFD700;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
}

.message-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto; /* auto で中央揃え */
    max-width: 800px
    px; /* 最大幅を設定 */
    text-align: center;
}

@media (max-width: 440px) {
.message-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto; /* auto で中央揃え */
    max-width: 354px; /* 最大幅を設定 */
    text-align: center;
}
}

@media (max-width: 420px) {
.message-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto; /* auto で中央揃え */
    max-width: 340px; /* 最大幅を設定 */
    text-align: center;
}
}

@media (max-width: 400px) {
.message-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto; /* auto で中央揃え */
    max-width: 320px; /* 最大幅を設定 */
    text-align: center;
}
}

@media (max-width: 370px) {
.message-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 255, 255, 0.08));
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto; /* auto で中央揃え */
    max-width: 293px; /* 最大幅を設定 */
    text-align: center;
}
}

/* 八王子祭についてセクション */
.about-section {
    margin: 40px auto; /* auto で中央揃え */
    text-align: center; /* セクション全体を中央揃え */
    width: 100%; /* 幅を100%に */
    max-width: 1000px; /* 最大幅を設定 */
    padding: 0 20px; /* 左右の余白 */
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    color: #FFD700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.about-item {
    margin: 30px auto; /* auto で中央揃え */
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px; /* 最大幅を設定 */
    text-align: center; /* アイテム内容を中央揃え */
}

.about-item h3 {
    color: #FFD700;
    font-size: clamp(20px, 3vw, 26px);
    margin-bottom: 15px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 8px;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

/* 共通の画像キャプション */
.image-caption {
    text-align: center;
    font-size: 14px;
    color: white;
    margin-top: 10px;
}

/* 委員長挨拶セクション */
.chairman-message {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto; /* auto で中央揃え */
    border: 2px solid rgba(255, 215, 0, 0.2);
    max-width: 800px; /* 最大幅を設定 */
    text-align: center; /* テキストを中央揃え */
}

.chairman-profile {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.chairman-info h3 {
    color: #FFD700;
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 10px;
    font-weight: bold;
}

.chairman-name {
    font-size: clamp(20px, 3.5vw, 28px);
    color: #ffffff;
    font-weight: bold;
    margin: 15px auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.chairman-department {
    color: #ccc;
    font-size: clamp(14px, 2.5vw, 18px);
    margin-top: 10px;
}

.chairman-greeting {
    line-height: 1.8;
}

.greeting-text {
    font-size: clamp(15px, 2.5vw, 18px);
    color: #ffffff;
    margin: 20px 0;
    text-align: justify;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    text-indent: 1em; /* 段落の最初を字下げ */
}

.signature {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.signature-text {
    font-size: clamp(14px, 2.5vw, 16px);
    color: #FFD700;
    font-weight: bold;
    line-height: 1.6;
}

/* プライバシーポリシーページ専用スタイル */
.privacy-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.privacy-section h2 {
    color: #1a2b5c;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #fbff00;
}

.privacy-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.privacy-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.privacy-list li {
    padding: 8px 0 8px 20px;
    position: relative;
    line-height: 1.6;
    color: #333;
}

.privacy-list li::before {
    content: "●";
    color: #fbff00;
    position: absolute;
    left: 0;
    top: 8px;
}

.contact-info {
    padding: 20px;
    margin: 15px 0;
}

.contact-info-privacy {
    padding: 20px;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info p {
    margin: 8px 0;
}

.policy-date {
    text-align: right;
    font-style: italic;
    color: #666;
    margin-top: 30px;
    font-size: 0.9rem;
}

.page-subtitle {
    font-size: clamp(24px, 3.5vw, 32px);
    color: #ffffff;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* 概要ページ専用スタイル */
.lead-text {
    font-size: 1.2em;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.event-info {
    display: grid;
    margin: 30px 0;
}

.info-item {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item h3 {
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 8px;
}

.event-date {
    font-size: 1.3em;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
    margin-bottom: 5px;
}

.event-time {
    text-align: center;
    margin-bottom: 10px;
    color: #ccc;
}

.theme-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.program-item {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.program-item h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* AboutOverview.html専用のaccess-infoスタイル */
.access-info-overview {
    background: rgba(255, 255, 255, 0);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.access-info h3,
.access-info-overview h3 {
    color: #FFD700;
    margin-bottom: 10px;
    margin-top: 20px;
}

.access-info h3:first-child,
.access-info-overview h3:first-child {
    margin-top: 0;
}

.contact-details {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border-left: 4px solid #FFD700;
}

.highlight-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 15px;
    padding: 40px 20px;
    margin: 40px 0;
    text-align: center;
}

.closing-message {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .theme-details,
    .ponhachi-details,
    .about-details,
    .venue-info,
    .theme-message {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .theme-main-title {
        margin: 20px 0;
    }
    
    .event-info {
        padding: 15px;
    }
      .about-item {
        margin: 20px auto; /* auto で中央揃えを維持 */
        padding: 15px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .chairman-message {
        margin: 20px auto; /* auto で中央揃えを維持 */
        padding: 25px 20px;
    }
    
    .chairman-profile {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .greeting-text {
        text-indent: 0.5em;
        margin: 15px 0;
    }
    
    .signature {
        margin-top: 30px;
        text-align: center;
    }
    
    .privacy-section {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .privacy-section h2 {
        font-size: 1.3rem;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .countdown-timer {
        flex-direction: column;
        gap: 5px;
    }
    
    .countdown-value {
        font-size: 1.2rem;
        padding: 8px 12px;
    }
    
    .release-countdown h3 {
        font-size: 1.3rem;
    }
}

/* 関連ページセクション用スタイル */
.related-pages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.related-page-item {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-page-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.related-page-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.related-page-item:hover::before {
    transform: scaleX(1);
}

.related-page-item h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: left;
    border: none;
    padding: 0;
}

.related-page-item p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.related-link {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.related-link:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .related-pages {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-page-item {
        padding: 20px;
    }
}

/* iPhone12 Pro（390px）などの小さい画面対応 */
@media (max-width: 430px) {
    .highlight-section {
        padding: 25px 10px;
        margin: 25px 5px;
    }
    
    .highlight-section h2 {
        font-size: 1.0rem !important;
        line-height: 1.2 !important;
        word-break: keep-all !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        margin-bottom: 15px;
        padding: 0 8px;
        letter-spacing: -0.02em;
    }
    
    .closing-message {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 8px;
        margin-bottom: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 8px;
    }
    
    .cta-button {
        width: 80%;
        text-align: center;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 5px;
    }
    
    .info-item {
        padding: 10px;
        margin: 8px 3px;
    }
    
    .related-page-item {
        padding: 12px;
        margin: 8px 3px;
    }
}

/* 390px幅専用（iPhone12 Pro） */
@media (max-width: 395px) {
    .highlight-section h2 {
        font-size: 0.95rem !important;
        letter-spacing: -0.03em;
        padding: 0 5px;
    }
}

/* より小さい画面（iPhone SE など）への対応 */
@media (max-width: 375px) {
    .highlight-section h2 {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
        letter-spacing: -0.04em;
    }
    
    .closing-message {
        font-size: 0.8rem;
    }
}
