@import url('https://fonts.googleapis.com/css2?family=Yomogi&display=swap');

/* 全体のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* iPhone・スマホ専用の余白削除 */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* 全ての要素のデフォルト余白を削除 */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* iPhone専用のメディアクエリ */
@media only screen and (max-width: 414px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    main {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    section {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    header {
        padding: 0.8rem 0.3rem !important;
        margin-bottom: 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    footer {
        padding: 0.8rem 0.3rem !important;
        margin-top: 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* iPhone専用のタイムスケジュール時間列幅調整 - 最高優先度 */
    table.schedule-table td.time-cell,
    .schedule-table .time-cell,
    td.time-cell,
    .time-cell {
        width: 50px !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.3rem !important;
        white-space: nowrap !important;
        min-width: 50px !important;
        max-width: 50px !important;
        -webkit-text-size-adjust: none !important;
        -moz-text-size-adjust: none !important;
        -ms-text-size-adjust: none !important;
        text-size-adjust: none !important;
        box-sizing: border-box !important;
    }
    
    /* iPhone専用のヘッダー調整 */
    header {
        padding: 2.2rem 0.3rem 1rem 0.3rem !important;
    }
    
    h1 {
        margin-top: 0.8rem !important;
        margin-bottom: 0.6rem !important;
    }
}

/* Android端末専用の設定 */
@media only screen and (max-width: 414px) and (min-device-width: 320px) {
    table.schedule-table td.time-cell,
    .schedule-table .time-cell,
    td.time-cell,
    .time-cell {
        width: 50px !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.3rem !important;
        white-space: nowrap !important;
        min-width: 50px !important;
        max-width: 50px !important;
        -webkit-text-size-adjust: none !important;
        -moz-text-size-adjust: none !important;
        -ms-text-size-adjust: none !important;
        text-size-adjust: none !important;
        box-sizing: border-box !important;
    }
    
    /* Android端末専用のヘッダー調整 */
    header {
        padding: 2.2rem 0.3rem 1rem 0.3rem !important;
    }
    
    h1 {
        margin-top: 0.8rem !important;
        margin-bottom: 0.6rem !important;
    }
}

/* iPhone SE専用の設定 */
@media only screen and (max-width: 375px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    main {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    section {
        padding: 0.3rem !important;
        margin-bottom: 0.3rem !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    header {
        padding: 0.6rem 0.2rem !important;
        margin-bottom: 0.2rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    footer {
        padding: 0.6rem 0.2rem !important;
        margin-top: 0.2rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #sponsors {
        padding: 0.5rem 0.2rem !important;
        margin: 0 auto 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #date {
        padding: 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #access {
        padding: 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #information {
        padding: 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #other-events {
        padding: 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* iPhone SE専用の駐車場案内文字サイズ */
    .parking-item h5 {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* iPhone SE専用のタイムスケジュール時間列幅調整 */
    table.schedule-table td.time-cell,
    .schedule-table .time-cell,
    td.time-cell,
    .time-cell {
        width: 45px !important;
        font-size: 0.7rem !important;
        padding: 0.4rem 0.2rem !important;
        white-space: nowrap !important;
        min-width: 45px !important;
        max-width: 45px !important;
        -webkit-text-size-adjust: none !important;
        -moz-text-size-adjust: none !important;
        -ms-text-size-adjust: none !important;
        text-size-adjust: none !important;
        box-sizing: border-box !important;
    }
    
    /* iPhone SE専用のヘッダー調整 */
    header {
        padding: 2rem 0.2rem 0.8rem 0.2rem !important;
    }
    
    h1 {
        margin-top: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
}

body {
    font-family: 'Arial', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    width: 100%;
}

body[data-schedule-day="25"] .schedule-box {
  background: #FFF9D0;
}
body[data-schedule-day="26"] .schedule-box {
  background: #FFE5C0;
}

/* ヘッダー */
header {
    background: linear-gradient(45deg, #FF9A9E, #FAD0C4);
    color: white;
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* スマホ表示時のヘッダー調整 */
@media (max-width: 768px) {
    header {
        padding: 1.6rem 0.5rem 1rem 0.5rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.2rem 0.3rem 0.8rem 0.3rem;
        margin-bottom: 0.3rem;
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.catch-copy {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.1em;
    line-height: 1.3;
}

.wobble-char {
    display: inline-block;
    font-size: 2.2rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    font-weight: 900;
    letter-spacing: 0.2em;
}

.wobble-char:nth-child(1) {
    color: #FF6B6B;
    animation: wobble1 2.5s ease-in-out infinite;
}

.wobble-char:nth-child(2) {
    color: #4ECDC4;
    animation: wobble2 2.8s ease-in-out infinite;
}

.wobble-char:nth-child(3) {
    color: #45B7D1;
    animation: wobble3 2.3s ease-in-out infinite;
}

@keyframes wobble1 {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-5deg) scale(1.1);
    }
    50% {
        transform: rotate(0deg) scale(1.15);
    }
    75% {
        transform: rotate(5deg) scale(1.1);
    }
}

@keyframes wobble2 {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    30% {
        transform: rotate(4deg) scale(1.08);
    }
    60% {
        transform: rotate(-2deg) scale(1.12);
    }
    80% {
        transform: rotate(3deg) scale(1.05);
    }
}

@keyframes wobble3 {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    20% {
        transform: rotate(-4deg) scale(1.06);
    }
    40% {
        transform: rotate(2deg) scale(1.1);
    }
    70% {
        transform: rotate(-3deg) scale(1.08);
    }
}

/* ヘッダーデコレーション */
.header-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
}
.moving-mascot {
    width: 40px;
    height: 40px;
}
@media (max-width: 768px) {
    .moving-mascot {
        width: 30px;
        height: 30px;
        bottom: 3px;
    }
    .header-decoration {
        height: 30px;
    }
}
@media (max-width: 480px) {
    .moving-mascot {
        width: 25px;
        height: 25px;
        bottom: 2px;
    }
    .header-decoration {
        height: 25px;
    }
}

/* レスポンシブ対応 - ヘッダーアニメーション */
@media (max-width: 768px) {
    .moving-mascot {
        width: 30px;
        height: 30px;
        bottom: 3px;
    }
    
    .header-decoration {
        height: 30px;
    }
    
    .catch-copy {
        font-size: 1.2rem;
    }
    
    .wobble-char {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .moving-mascot {
        width: 25px;
        height: 25px;
        bottom: 2px;
    }
    
    .header-decoration {
        height: 25px;
    }
    
    .catch-copy {
        font-size: 1.1rem;
    }
    
    .wobble-char {
        font-size: 1.6rem;
    }
}

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

/* スマホ表示時のメインコンテンツ調整 */
@media (max-width: 768px) {
    main {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* スマホ表示時のセクション調整 */
@media (max-width: 768px) {
    section {
        padding: 0.8rem;
        margin-bottom: 1rem;
        border-radius: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    section {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* 開催日時セクションの特別スタイル */
#date {
    background: linear-gradient(135deg, #FFF9D0 0%, #FFE5C0 100%);
    border: 3px solid #FFD93D;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
    position: relative;
}

#date h2 {
    color: #B85C00;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

#date p {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #FF6B6B;
    margin-bottom: 0.8rem;
}

#date p:last-child {
    font-size: 1.5rem;
    color: #FF9A3C;
    margin-bottom: 0;
}

/* カウントダウンカレンダーのスタイル */
.date-countdown-container {
    position: relative;
    margin-top: 1rem;
}

.date-info {
    width: 100%;
}

.countdown-calendar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: white;
    border: 3px solid #FFD93D;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    max-width: 140px;
    text-align: center;
    overflow: hidden;
    z-index: 10;
}

/* PC・中間表示時は#dateセクションの右上に配置 */
.date-countdown-container {
    position: relative;
}

.date-countdown-container .countdown-calendar {
    position: absolute;
    top: -15px;
    right: -20px;
}

/* スマホ表示時は通常のフローに従って表示 */
@media (max-width: 768px) {
    .date-countdown-container .countdown-calendar {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem auto 0.5rem;
    }
}

.calendar-header {
    background: linear-gradient(45deg, #FFD93D, #FFE5C0);
    padding: 0.4rem;
    border-bottom: 2px solid #FFD93D;
}

.calendar-title {
    color: #B85C00;
    font-size: 0.85rem;
    font-weight: bold;
}

.calendar-body {
    padding: 0.8rem 0.5rem;
    background: white;
}

.countdown-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.countdown-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: bold;
    margin-top: 0.15rem;
}

/* レスポンシブ対応 - 開催日時 */
@media (max-width: 1024px) {
    .countdown-calendar {
        top: 20px;
        right: 15px;
        max-width: 130px;
    }
}

@media (max-width: 768px) {
    #date h2 {
        font-size: 1.8rem;
    }
    
    #date p {
        font-size: 1.5rem;
    }
    
    #date p:last-child {
        font-size: 1.3rem;
    }
    
    .date-countdown-container {
        text-align: center;
    }
    
    .countdown-calendar {
        position: relative;
        top: 0;
        right: auto;
        margin: 0 auto 1rem;
        min-width: 100px;
        max-width: 120px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    #date {
        padding: 0.5rem;
        border-radius: 0;
    }
    
    #date h2 {
        font-size: 1.6rem;
    }
    
    #date p {
        font-size: 1.3rem;
    }
    
    #date p:last-child {
        font-size: 1.1rem;
    }
}

h2 {
    color: #FF6B6B;
    margin-bottom: 1rem;
    border-bottom: 3px dotted #FFD93D;
    padding-bottom: 0.5rem;
}

/* スケジュール */
#schedule ul {
    list-style: none;
}

#schedule li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ccc;
}

/* スケジュールテーブル */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.schedule-table thead {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
}

.schedule-table th {
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 1.1rem;
}

.schedule-table th:first-child {
    width: 120px;
    text-align: center;
}

.schedule-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.schedule-table tbody tr:hover {
    background-color: #f8f9ff;
}

.schedule-table tbody tr:last-child {
    border-bottom: none;
}

.time-cell {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    color: #FF6B6B;
    background-color: #f8f9ff;
    border-right: 1px solid #e0e0e0;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.content-cell {
    padding: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: normal;
}

/* 雨の注意文 */
.rain-notice {
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
    border: 2px solid #4682B4;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(70, 130, 180, 0.2);
}

.rain-notice p {
    color: #2F4F4F;
    font-weight: bold;
    font-size: 1rem;
    margin: 0;
}

.rain-notice::before {
    content: "☔";
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* インライン雨の注意文 */
.rain-notice-inline {
    color: #4682B4;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #E6F3FF, #F0F8FF);
    border-radius: 4px;
    border: 1px solid #87CEEB;
    display: inline-block;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* 中止表示 */
.cancelled-notice {
    color: #DC143C;
    font-weight: bold;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #FFE6E6, #FFF0F0);
    border-radius: 4px;
    border: 1px solid #DC143C;
    display: inline-block;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.rain-notice-inline::before {
    content: "☔ ";
    font-size: 0.8rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .schedule-table {
        font-size: 0.9rem;
        table-layout: fixed;
        width: 100%;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.8rem 0.5rem;
    }
    
    .schedule-table .time-cell {
        width: 60px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        min-width: 60px !important;
        max-width: 60px !important;
        padding: 0.6rem 0.4rem !important;
    }
    
    .schedule-table .content-cell {
        width: calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
    }
    
    .content-cell {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .rain-notice-inline {
        font-size: 0.8rem;
        margin-left: 0.3rem;
        padding: 0.1rem 0.3rem;
        display: block;
        margin-top: 0.3rem;
        margin-left: 0;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cancelled-notice {
        font-size: 0.8rem;
        margin-left: 0.3rem;
        padding: 0.1rem 0.3rem;
        display: block;
        margin-top: 0.3rem;
        margin-left: 0;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .schedule-table {
        font-size: 0.8rem;
        table-layout: fixed;
        width: 100%;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .schedule-table .time-cell {
        width: 50px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        min-width: 50px !important;
        max-width: 50px !important;
        padding: 0.5rem 0.3rem !important;
    }
    
    .schedule-table .content-cell {
        width: calc(100% - 50px) !important;
        max-width: calc(100% - 50px) !important;
    }
    
    .content-cell {
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .rain-notice {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .rain-notice p {
        font-size: 0.9rem;
    }
    
    .rain-notice-inline {
        font-size: 0.8rem;
        margin-left: 0.3rem;
        padding: 0.1rem 0.3rem;
        display: block;
        margin-top: 0.3rem;
        margin-left: 0;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .cancelled-notice {
        font-size: 0.8rem;
        margin-left: 0.3rem;
        padding: 0.1rem 0.3rem;
        display: block;
        margin-top: 0.3rem;
        margin-left: 0;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* 会場マップ */
.map-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* iPhone表示時のマップ調整 */
@media only screen and (max-width: 414px) {
    .map-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.map-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.location-pin {
    position: absolute;
    transform: translate(-50%, -120%);
    pointer-events: auto;
    cursor: pointer;
    animation: pinDrop 0.5s ease-out;
}

/* スマホでのピン位置調整 */
@media (max-width: 768px) {
    .location-pin {
        transform: translate(-50%, -120%);
    }
}

@media (max-width: 480px) {
    .location-pin {
        transform: translate(-50%, -120%);
    }
}

.location-pin::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #4CAF50;
}

.pin-content {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    position: relative;
}

.pin-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.pin-content p {
    font-size: 0.8rem;
    margin: 0;
}

@keyframes pinDrop {
    0% {
        transform: translate(-50%, -200%);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -110%);
    }
    100% {
        transform: translate(-50%, -120%);
        opacity: 1;
    }
}

/* スマホでのピンドロップアニメーション調整 */
@media (max-width: 768px) {
    @keyframes pinDrop {
        0% {
            transform: translate(-50%, -200%);
            opacity: 0;
        }
        60% {
            transform: translate(-50%, -115%);
        }
        100% {
            transform: translate(-50%, -120%);
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    @keyframes pinDrop {
        0% {
            transform: translate(-50%, -200%);
            opacity: 0;
        }
        60% {
            transform: translate(-50%, -115%);
        }
        100% {
            transform: translate(-50%, -120%);
            opacity: 1;
        }
    }
}

/* パレード中止のお知らせ（コメントアウト用） */
.cancellation-notice {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border: 3px solid #ff4757;
    border-radius: 15px;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    animation: pulse 2s infinite;
}

/* 雨天でも実施のお知らせ */
.rainy-day-notice {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border: 3px solid #26a69a;
    border-radius: 15px;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(38, 166, 154, 0.3);
    animation: gentle-pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 71, 87, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    }
}

@keyframes gentle-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(38, 166, 154, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(38, 166, 154, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(38, 166, 154, 0.3);
    }
}

.notice-container {
    padding: 1.5rem;
    text-align: center;
}

.notice-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.notice-content {
    color: white;
}

.notice-main-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cancelled-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.rainy-day-events {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cancelled-item, .alternative-events {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.indoor-events, .marche-events {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.cancelled-item h3, .alternative-events h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.indoor-events h3, .marche-events h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.cancelled-item ul, .alternative-events ul {
    list-style: none;
    padding: 0;
}

.cancelled-item li, .alternative-events li {
    padding: 0.3rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.indoor-events ul, .marche-events ul {
    list-style: none;
    padding: 0;
}

.indoor-events li, .marche-events li {
    padding: 0.3rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.notice-footer {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
    .cancellation-notice {
        margin: 0.5rem 0;
        border-radius: 10px;
    }
    
    .notice-container {
        padding: 1rem;
    }
    
    .notice-header h2 {
        font-size: 1.5rem;
    }
    
    .notice-main-text {
        font-size: 1.1rem;
    }
    
    .cancelled-events {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rainy-day-events {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cancelled-item, .alternative-events {
        padding: 0.8rem;
    }
    
    .indoor-events, .marche-events {
        padding: 0.8rem;
    }
    
    .cancelled-item h3, .alternative-events h3 {
        font-size: 1rem;
    }
    
    .cancelled-item li, .alternative-events li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .notice-container {
        padding: 0.8rem;
    }
    
    .notice-header h2 {
        font-size: 1.3rem;
    }
    
    .notice-main-text {
        font-size: 1rem;
    }
    
    .cancelled-item, .alternative-events {
        padding: 0.6rem;
    }
    
    .indoor-events, .marche-events {
        padding: 0.6rem;
    }
    
    .cancelled-item h3, .alternative-events h3 {
        font-size: 0.9rem;
    }
    
    .cancelled-item li, .alternative-events li {
        font-size: 0.8rem;
    }
    
    .indoor-events h3, .marche-events h3 {
        font-size: 0.9rem;
    }
    
    .indoor-events li, .marche-events li {
        font-size: 0.8rem;
    }
}

/* スライダー */
#hero-slider {
  background: none;
  box-shadow: none;
  padding: 0;
}

/* iPhone表示時のスライダー調整 */
@media only screen and (max-width: 414px) {
    #hero-slider {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .slider-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 500px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2.0px);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

/* スマホ表示時はブラー効果を軽くする */
@media (max-width: 768px) {
    .slide img {
        filter: blur(1.0px);
    }
}

@media (max-width: 480px) {
    .slide img {
        filter: blur(0.5px);
    }
}

.slide img.no-blur {
    filter: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.slider-nav {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.slider-button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-button:hover {
    background: #FF9A9E;
}

.slider-button.active {
    background: #FF6B6B;
    transform: scale(1.2);
}

/* 協賛企業 */
#sponsors {
    background: linear-gradient(45deg, #FFD93D, #FF9A9E);
    padding: 3rem 1rem;
    margin: 0 auto 3rem;
}

/* スマホ表示時の協賛企業セクション調整 */
@media (max-width: 768px) {
    #sponsors {
        padding: 1rem 0.5rem;
        margin: 0 auto 1rem;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    #sponsors {
        padding: 0.8rem 0.3rem;
        margin: 0 auto 0.5rem;
        border-radius: 0;
    }
}

#sponsors h2 {
    color: white;
    text-align: center;
    font-size: 2rem;
    border-bottom: none;
    margin-bottom: 2rem;
}

.sponsor-list {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

.sponsor {
    background: white;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

/* ゴールドスポンサー */
.sponsor.gold {
  grid-column: span 12 !important;
  padding: 1.8rem 1.5rem;
}
.sponsor.gold h3 {
  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.sponsor.silver {
  grid-column: span 12 !important;
  padding: 1.2rem 1.5rem;
}
.sponsor.silver h3 {
  font-size: 1rem;
}
.sponsor.bronze {
  grid-column: span 12 !important;
  padding: 1rem 1.5rem;
}
.sponsor.bronze h3 {
  font-size: 0.8rem;
}

/* スポンサーランクの表示 */
.sponsor-rank {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.gold .sponsor-rank {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
}

.silver .sponsor-rank {
    background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
    color: white;
}

.bronze .sponsor-rank {
    background: linear-gradient(45deg, #CD7F32, #B8860B);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
}

/* ホバーエフェクト */
.sponsor:hover {
    transform: translateY(-5px);
}

/* レスポンシブデザイン - スポンサー */
@media (max-width: 1024px) {
    .sponsor-list {
        gap: 1.2rem;
    }

    .sponsor.gold {
        grid-column: span 12;
        padding: 2rem;
    }

    .sponsor.silver {
        grid-column: span 6;
        padding: 1.5rem;
    }

    .sponsor.bronze {
        grid-column: span 4;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .sponsor-list {
        gap: 1rem;
    }

    .sponsor.gold {
        grid-column: span 12;
        padding: 1.5rem;
    }

    .sponsor.silver {
        grid-column: span 12;
        padding: 1.2rem;
    }

    .sponsor.bronze {
        grid-column: span 12 !important;
        padding: 0.8rem;
    }

    #sponsors .sponsor.gold h3 {
        font-size: 1.3rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        margin-bottom: 0.4rem;
    }

    #sponsors .sponsor.silver h3 {
        font-size: 0.8rem !important;
        line-height: 1.1;
        margin-bottom: 0.15rem;
    }

    #sponsors .sponsor.bronze h3 {
        font-size: 0.6rem !important;
        line-height: 1.0;
        margin-bottom: 0.1rem;
    }
}

@media (max-width: 480px) {
    .sponsor-list {
        gap: 0.8rem;
    }

    .sponsor.gold {
        grid-column: span 12;
        padding: 1rem;
    }

    .sponsor.silver {
        grid-column: span 12;
        padding: 1rem;
    }

    .sponsor.bronze {
        grid-column: span 12 !important;
        padding: 0.6rem;
    }

    #sponsors .sponsor.gold h3 {
        font-size: 1.1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        margin-bottom: 0.3rem;
    }

    #sponsors .sponsor.silver h3 {
        font-size: 0.7rem !important;
        line-height: 1.0;
        margin-bottom: 0.1rem;
    }

    #sponsors .sponsor.bronze h3 {
        font-size: 0.5rem !important;
        line-height: 0.9;
        margin-bottom: 0.08rem;
    }

    .sponsor-rank {
        font-size: 0.8rem;
        padding: 0.2rem 0.8rem;
    }

    .bronze .sponsor-rank {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 375px) {
    .sponsor.gold {
        padding: 1.2rem 0.8rem;
    }

    #sponsors .sponsor.gold h3 {
        font-size: 0.9rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.6;
        margin-bottom: 0.5rem;
    }

    #sponsors .sponsor.silver h3 {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.4rem !important;
    }

    #sponsors .sponsor.bronze h3 {
        font-size: 0.45rem !important;
        line-height: 0.8 !important;
        margin-bottom: 0.05rem !important;
    }
}

@media (max-width: 360px) {
    .sponsor.gold {
        padding: 1rem 0.6rem;
    }

    #sponsors .sponsor.gold h3 {
        font-size: 0.8rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        margin-bottom: 0.4rem;
    }

    #sponsors .sponsor.silver h3 {
        font-size: 0.55rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.3rem !important;
    }

    #sponsors .sponsor.bronze h3 {
        font-size: 0.4rem !important;
        line-height: 0.7 !important;
        margin-bottom: 0.03rem !important;
    }
}

@media (max-width: 320px) {
    .sponsor.gold {
        padding: 0.8rem 0.4rem;
    }

    #sponsors .sponsor.gold h3 {
        font-size: 0.75rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        margin-bottom: 0.35rem;
    }

    #sponsors .sponsor.silver h3 {
        font-size: 0.55rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.25rem !important;
    }

    #sponsors .sponsor.bronze h3 {
        font-size: 0.4rem !important;
        line-height: 0.7 !important;
        margin-bottom: 0.03rem !important;
    }
}

/* 極小画面対応 */
@media (max-width: 280px) {
    .sponsor.gold {
        padding: 0.6rem 0.3rem;
    }

    #sponsors .sponsor.gold h3 {
        font-size: 0.65rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        margin-bottom: 0.3rem;
    }

    #sponsors .sponsor.silver h3 {
        font-size: 0.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.2rem !important;
    }

    #sponsors .sponsor.bronze h3 {
        font-size: 0.35rem !important;
        line-height: 0.6 !important;
        margin-bottom: 0.02rem !important;
    }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .sponsor.gold {
        grid-column: span 12;
    }
    .sponsor.silver {
        grid-column: span 6;
    }
    .sponsor.bronze {
        grid-column: span 6;
    }

    #sponsors .sponsor.silver h3 {
        font-size: 0.9rem !important;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }

    #sponsors .sponsor.bronze h3 {
        font-size: 0.7rem !important;
        line-height: 1.1;
        margin-bottom: 0.15rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .catch-copy {
        font-size: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .slide {
        height: 300px;
    }
    
    .sponsor-list {
        gap: 1.5rem;
    }
    
    .sponsor.gold,
    .sponsor.silver,
    .sponsor.bronze {
        grid-column: span 12;
        padding: 1.5rem;
    }
    
    .sponsor.gold img {
        width: 200px;
        height: 200px;
    }
    
    .sponsor.silver img {
        width: 150px;
        height: 150px;
    }
    
    .sponsor.bronze img {
        width: 120px;
        height: 120px;
    }
    
    .sponsor.gold h3 {
        font-size: 1.7rem;
    }
    
    .sponsor.silver h3 {
        font-size: 1.3rem;
    }
    
    .sponsor.bronze h3 {
        font-size: 1.0rem;
    }

    .slider-button {
        width: 12px;
        height: 12px;
    }
    
    .slider-nav {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 1rem;
    }
}

/* アクセスセクション */
#access {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* スマホ表示時のアクセスセクション調整 */
@media (max-width: 768px) {
    #access {
        padding: 0.8rem;
        margin-bottom: 1rem;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    #access {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 0;
    }
}

#access h2 {
    color: #FF6B6B;
    margin-bottom: 2rem;
    border-bottom: 3px dotted #FFD93D;
    padding-bottom: 0.5rem;
}

.access-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* iPhone表示時のアクセスコンテナ調整 */
@media only screen and (max-width: 414px) {
    .access-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* タブのスタイル */
.access-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    flex: 1;
    min-width: 200px;
    white-space: nowrap;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-button:hover {
    background: #FFD93D;
    color: #333;
}

.tab-button.active {
    background: #FF6B6B;
    color: white;
}

/* タブコンテンツ */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 交通情報 */
.transport-info {
    display: grid;
    gap: 2rem;
}

.transport-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.transport-item h4 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px dotted #FFD93D;
    padding-bottom: 0.5rem;
}

.transport-item ul {
    list-style: none;
    padding-left: 1.5rem;
}

.transport-item li {
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.transport-item li::before {
    content: "•";
    color: #FF6B6B;
    position: absolute;
    left: -1rem;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .tab-button {
        font-size: 0.9rem;
        padding: 0.9rem 1.8rem;
    }
}

@media (max-width: 768px) {
    #access {
        padding: 1.5rem;
    }
    
    .access-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-button {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.85rem;
    }
    
    .transport-item {
        padding: 1.5rem;
    }
}

/* フッター */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 3rem;
}

/* スマホ表示時のフッター調整 */
@media (max-width: 768px) {
    footer {
        padding: 1rem 0.5rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 0.8rem 0.3rem;
        margin-top: 0.3rem;
    }
}

footer p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

footer p:last-child {
    margin-bottom: 0;
}

/* 問い合わせ先の装飾 */
footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #FFD93D;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem;
    }

    footer p {
        font-size: 1rem;
    }
}

/* Google Maps コンテナ */
.google-map {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.google-map iframe {
    display: block;
    width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .google-map {
        margin-bottom: 1.5rem;
    }
    
    .google-map iframe {
        height: 300px;  /* モバイル表示時は高さを調整 */
    }
}

/* シャトルバス情報用の追加スタイル */
.shuttle-notice {
    background: #fff3e0;  /* 注意事項は背景色を変えて目立たせる */
    border-left: 4px solid #FFD93D;
}

/* シャトルアイコン */
.shuttle-icon {
    background: #2196F3;
    color: white;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    vertical-align: middle;
    font-weight: bold;
}

.shuttle-icon:hover {
    background: #1976D2;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

/* バス乗り場情報 */
.bus-stop-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.bus-stop-details {
    flex: 1;
}

.bus-stop-map {
    flex: 1;
    min-width: 300px;
}

.bus-stop-map h5 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.bus-stop-map iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .bus-stop-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bus-stop-map {
        min-width: auto;
        width: 100%;
    }
    
    .bus-stop-map iframe {
        height: 250px;
    }
}

/* レスポンシブ対応の調整 */
@media (max-width: 768px) {
    .tab-button {
        min-width: 100%; /* モバイル表示では幅いっぱいに */
    }
    
    .shuttle-notice {
        margin-top: 1.5rem;
    }
}

/* 出店者情報 */
#vendors {
    padding: 2rem 1rem;
}

.vendor-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vendor-search input,
.vendor-search select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.vendor-search input {
    flex: 1;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vendor-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s;
    cursor: pointer;
}

.vendor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vendor-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.vendor-card p {
    color: #666;
    font-size: 0.9rem;
}

.vendor-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.vendor-pagination button {
    padding: 0.5rem 1rem;
    border: none;
    background: #FF6B6B;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.vendor-pagination button:hover {
    background: #FF9A9E;
}

.vendor-pagination span {
    color: #666;
}

@media (max-width: 768px) {
    .vendor-search {
        flex-direction: column;
    }
    
    .vendor-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
} 

/* --- スケジュール インデックスタブ＆内容装飾 --- */
.schedule-box {
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  padding: 0 0 1.5rem 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: visible;
}
.schedule-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  background: none;
  padding: 0 1.5rem 0 1.5rem;
}
.schedule-tab {
  margin-bottom: 0;
  border-radius: 10px 10px 0 0;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.5rem 2.2rem;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
  position: relative;
  letter-spacing: 0.05em;
  color: #fff;
  background: #FFD93D;
  z-index: 3;
  opacity: 0.6;
  transform: scale(0.92);
}
.schedule-tab[data-day="25"] {
  background: #FFD93D;
  color: #B85C00;
}
.schedule-tab[data-day="26"] {
  background: #FF9A3C;
  color: #fff;
}
.schedule-tab.active {
  opacity: 1;
  transform: scale(1);
  z-index: 4;
}
.schedule-tab.active[data-day="25"] {
  background: #FFF9D0;
  color: #B85C00;
}
.schedule-tab.active[data-day="26"] {
  background: #FFE5C0;
  color: #FF9A3C;
}
.schedule-tab.active::after {
  display: none;
}
.schedule-content {
  border-radius: 0 0 10px 10px;
  box-shadow: none;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  margin-top: 0;
  border-top: none;
  position: relative;
  z-index: 1;
  background: transparent;
  color: #333;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
.schedule-content h3 {
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  font-size: 1.18rem;
  font-weight: bold;
  background: #fffbe7;
  color: #FF9A3C;
  border-left: 6px solid #FFD93D;
  border-radius: 8px 0 0 8px;
  padding: 0.5rem 1rem 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
  box-shadow: 0 2px 8px rgba(255,217,61,0.07);
}
.schedule-content h3:first-child {
  margin-top: 0.5rem;
}
.schedule-content h3::before {
  content: '🎤';
  font-size: 1.2em;
  display: inline-block;
}
.schedule-content h3:nth-of-type(2)::before {
  content: '🏛️';
}
.schedule-content h3:nth-of-type(3)::before {
  content: '🎉';
}

/* 26日のスケジュール用の特別なアイコン設定 */
body[data-schedule-day="26"] .schedule-content h3:nth-of-type(2)::before {
  content: '🎉';
}
@media (max-width: 600px) {
  .schedule-tabs {
    gap: 0.5rem;
    padding: 0 0.5rem 0 0.5rem;
  }
  .schedule-tab {
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
  }
  .schedule-content {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
  .schedule-box {
    padding: 0 0 1rem 0;
  }
} 

#other-events {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* スマホ表示時のその他の催しセクション調整 */
@media (max-width: 768px) {
    #other-events {
        padding: 0.8rem;
        margin-bottom: 1rem;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    #other-events {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 0;
    }
}
#other-events h2 {
  color: #FF6B6B;
  margin-bottom: 2rem;
  border-bottom: 3px dotted #FFD93D;
  padding-bottom: 0.5rem;
}
.other-event-block {
  margin-bottom: 2.2rem;
}
.other-event-block h3 {
  font-size: 1.1rem;
  color: #FF9A3C;
  margin-bottom: 0.7rem;
  margin-top: 0;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.other-event-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.other-event-image {
  min-width: 120px;
  min-height: 90px;
  width: 180px;
  height: 120px;
  background: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.other-event-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.other-event-description {
  flex: 1;
  min-width: 180px;
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .other-event-content {
    flex-direction: column;
    gap: 0.7rem;
  }
  .other-event-image {
    width: 100%;
    min-width: 100px;
    height: 120px;
  }
} 

.subevent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.7rem;
  margin-bottom: 1.2rem;
  max-width: 100%;
}

/* サブイベントグリッドの最適化 */
@media (min-width: 768px) and (max-width: 1023px) {
  .subevent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .subevent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 100%;
  }
}

@media (min-width: 1400px) {
  .subevent-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%;
  }
}
.subevent-card {
  background: #fffdfa;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(255, 217, 61, 0.13), 0 1.5px 8px rgba(0,0,0,0.06);
  border: 1.5px solid #ffe6a0;
  padding: 1.2rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 220px;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  margin: 0.2rem 0.1rem;
}
.subevent-card:hover {
  box-shadow: 0 8px 28px rgba(255, 217, 61, 0.22), 0 2px 12px rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.04);
  border-color: #FFD93D;
  background: #fffbe7;
}
.subevent-image {
  width: 100%;
  max-width: 160px;
  height: 100px;
  background: #f7f7f7;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.subevent-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.subevent-title {
  font-size: 1.08rem;
  font-weight: bold;
  color: #FF9A3C;
  margin-bottom: 0.4rem;
  text-align: center;
}
.subevent-desc {
  font-size: 0.98rem;
  color: #333;
  text-align: center;
}

/* 実施者名 */
.subevent-organizer {
  font-size: 0.75rem;
  color: #888;
  text-align: right;
  margin-top: auto;
  padding-top: 0.5rem;
  font-style: italic;
  opacity: 0.8;
}

/* 詳細リンク */
.detail-link {
  display: inline-block;
  background: #2196F3;
  color: white;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.detail-link:hover {
  background: #1976D2;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* イベントリンクボタン */
.subevent-link {
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.event-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.event-link-btn:hover {
  background: linear-gradient(135deg, #E55A2B 0%, #D14A1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  color: white;
  text-decoration: none;
}

.event-link-btn i {
  font-size: 0.8rem;
}
@media (max-width: 700px) {
  .subevent-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .subevent-card {
    min-height: 160px;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
  }
  .subevent-image {
    max-width: 100px;
    height: 70px;
  }
  .subevent-organizer {
    font-size: 0.7rem;
    padding-top: 0.3rem;
  }
  
  .event-link-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
} 

#marche-stamp-campaign {
  margin: 2.5rem 0 1.5rem 0;
  display: flex;
  justify-content: center;
}
.marche-campaign-title {
  font-family: 'Arial Black', 'BIZ UDPGothic', 'Meiryo', 'Arial', sans-serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: #222;
  background: none;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.1;
  max-width: 100%;
  margin: 0 auto 0.7em auto;
  padding: 0.2em 0.1em 0.2em 0.1em;
  border-radius: 10px;
  border: none;
  position: relative;
  z-index: 2;
  text-shadow:
    2px 2px 0 #fff,
    -2px 2px 0 #fff,
    2px -2px 0 #fff,
    -2px -2px 0 #fff,
    0 2px 8px #FFD93D44;
  word-break: keep-all;
  white-space: pre-line;
  overflow-wrap: break-word;
  hyphens: none;
}

/* タブレット表示時の調整 */
@media (max-width: 768px) {
  .marche-campaign-title {
    font-size: 2.4rem;
    letter-spacing: 0.06em;
    padding: 0.15em 0.1em;
  }
}

/* スマホ表示時の調整 */
@media (max-width: 600px) {
  .marche-campaign-title {
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    padding: 0.1em 0.05em;
    line-height: 1.2;
  }
}

/* 小さいスマホ表示時の調整 */
@media (max-width: 480px) {
  .marche-campaign-title {
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    padding: 0.08em 0.03em;
    line-height: 1.3;
  }
}

/* 極小画面対応 */
@media (max-width: 360px) {
  .marche-campaign-title {
    font-size: 1.3rem;
    letter-spacing: 0.01em;
    padding: 0.05em 0.02em;
    line-height: 1.4;
  }
}
.marche-campaign-banner {
  background: linear-gradient(120deg, #FFF0F6 60%, #FFE5EC 100%);
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2rem 2rem 2rem;
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(255, 217, 61, 0.18);
}
.marche-campaign-banner h2 {
  color: #FF6B6B;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.marche-campaign-desc {
  color: #B85C00;
  font-size: 1.08rem;
  margin-bottom: 1.7rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.6;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding: 0 1rem;
}

/* デスクトップでは元のサイズを維持 */
#marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
  text-align: center;
  display: block;
  width: auto;
  font-size: 1.08rem;
  line-height: 1.6;
}

#marche-stamp-campaign .marche-campaign-banner {
  text-align: center;
}

#marche-stamp-campaign .marche-campaign-banner h2 {
  text-align: center;
}

/* タブレットでは少し小さく */
@media (max-width: 1024px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
  }
}

/* スマホでは文字サイズを小さく */
@media (max-width: 768px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.8rem !important;
    line-height: 1.8 !important;
  }
}

@media (max-width: 600px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.75rem !important;
    line-height: 1.9 !important;
  }
}

@media (max-width: 480px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.7rem !important;
    line-height: 2.0 !important;
  }
}

@media (max-width: 400px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.65rem !important;
    line-height: 2.1 !important;
  }
}

/* iPhone SEでは小さな文字サイズを維持 */
@media (max-width: 375px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.6rem !important;
    line-height: 2.3 !important;
  }
}

@media (max-width: 320px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.6rem !important;
    line-height: 2.3 !important;
  }
}

/* iPhone SE専用のメディアクエリ（より確実に適用） */
@media only screen and (max-width: 375px) and (max-height: 667px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.6rem !important;
    line-height: 2.3 !important;
  }
}

/* iPhone SE (第2世代) 専用 */
@media only screen and (max-width: 375px) and (max-height: 812px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.6rem !important;
    line-height: 2.3 !important;
  }
}

/* より小さな画面サイズでの確実な適用 */
@media only screen and (max-width: 360px) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.6rem !important;
    line-height: 2.3 !important;
  }
}

/* デバイスピクセル比を考慮したiPhone SE対応 */
@media only screen and (max-width: 375px) and (-webkit-min-device-pixel-ratio: 2) {
  #marche-stamp-campaign .marche-campaign-banner .marche-campaign-desc.left-align-mobile {
    font-size: 0.6rem !important;
    line-height: 2.3 !important;
  }
}




.marche-prizes {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
}
.marche-prize {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 217, 61, 0.13);
  border: 1.5px solid #FFD93D;
  padding: 1.1rem 1.2rem 1rem 1.2rem;
  min-width: 140px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.marche-prize:hover {
  box-shadow: 0 6px 18px rgba(255, 217, 61, 0.22);
  transform: translateY(-3px) scale(1.04);
}
.marche-prize-rank {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: #FFD93D;
  border-radius: 999px;
  padding: 0.3em 1.2em;
  margin-bottom: 0.7em;
  box-shadow: 0 1px 4px rgba(255, 217, 61, 0.13);
}
.marche-prize:nth-child(2) .marche-prize-rank {
  background: #FF9A3C;
}
.marche-prize:nth-child(3) .marche-prize-rank {
  background: #FF6B6B;
}
.marche-prize-img {
  width: 80px;
  height: 80px;
  background: #f7f7f7;
  border-radius: 8px;
  margin-bottom: 0.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.marche-prize-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.marche-prize-name {
  font-size: 1rem;
  color: #B85C00;
  font-weight: bold;
  margin-top: 0.2em;
  text-align: center;
}

.catalog-button {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
    width: 100%;
    text-align: center;
}

.catalog-button:hover {
    background: #FF9A9E;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.catalog-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.marche-prize-winners {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-top: 0.3rem;
  font-weight: normal;
}

/* 特別なスケジュール装飾 */
.special-schedule {
    background: transparent;
    color: #8B4513;
    padding: 0.3rem 0.6rem;
    border: 2px solid #FFD93D;
    border-radius: 8px;
    font-weight: normal;
    font-size: 0.75rem;
    display: inline-block;
    margin: 0.2rem 0;
    text-shadow: none;
    box-shadow: none;
    position: relative;
    background: linear-gradient(45deg, rgba(255, 217, 61, 0.15), rgba(255, 230, 192, 0.15));
    line-height: 1.4;
}

.special-schedule::before {
    content: "";
    margin-right: 0;
    font-size: 0.8rem;
}

.special-schedule::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD93D, #FFE5C0, #FFD93D);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
    animation: border-glow-yellow 3s ease-in-out infinite alternate;
}

@keyframes border-glow {
    0% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.4;
    }
}

@keyframes border-glow-yellow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.5;
    }
}

/* 催しの詳細説明 */
.subevent-detail {
    font-size: 0.75rem;
    color: #8B4513;
    line-height: 1.4;
    margin: 0.5rem 0;
    padding: 0.3rem 0.6rem;
    background: transparent;
    border: 2px solid #FFD93D;
    border-radius: 8px;
    position: relative;
    background: linear-gradient(45deg, rgba(255, 217, 61, 0.15), rgba(255, 230, 192, 0.15));
}

.subevent-detail::before {
    content: "";
    margin-right: 0;
    font-size: 0.8rem;
}

.subevent-detail::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD93D, #FFE5C0, #FFD93D);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
    animation: border-glow-yellow 3s ease-in-out infinite alternate;
}
@media (max-width: 600px) {
  .marche-campaign-banner {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .marche-prizes {
    gap: 1rem;
  }
  .marche-prize {
    min-width: 110px;
    max-width: 100%;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
  }
  .marche-prize-img {
    width: 60px;
    height: 60px;
  }
} 

/* 紙吹雪アニメーション */
.confetti {
  pointer-events: none;
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  z-index: 1;
}
.confetti-piece {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  opacity: 0.85;
  animation: confetti-fall 2.8s linear infinite;
}
@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg) scale(1); opacity: 0.9; }
  80% { opacity: 1; }
  100% { transform: translateY(80px) rotate(360deg) scale(0.8); opacity: 0.2; }
} 

#information {
  background: #fff;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* スマホ表示時の情報セクション調整 */
@media (max-width: 768px) {
    #information {
        padding: 0.8rem;
        margin-bottom: 1rem;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    #information {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 0;
    }
}
#information h2 {
  color: #FF6B6B;
  margin-bottom: 1.2rem;
  border-bottom: 3px dotted #FFD93D;
  padding-bottom: 0.5rem;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 0.7em 0;
  border-bottom: 1px dashed #FFD93D;
  font-size: 1.05rem;
}
.info-list li:last-child {
  border-bottom: none;
}
.info-date {
  color: #888;
  font-size: 0.98em;
  min-width: 6.2em;
  letter-spacing: 0.04em;
}
.info-title {
  color: #FF9A3C;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.2s;
  cursor: pointer;
}
.info-title:hover {
  color: #FF6B6B;
  text-decoration: underline wavy;
} 

#floating-menu-btn {
  position: fixed;
  top: 2.2rem;
  right: 2.2rem;
  z-index: 1001;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B 60%, #FF4757 100%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
#floating-menu-btn:hover {
  background: linear-gradient(135deg, #FF4757 60%, #FF3742 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.08);
}

#back-to-top-btn {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 1001;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B6B 60%, #FF4757 100%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

#back-to-top-btn:hover {
  background: linear-gradient(135deg, #FF4757 60%, #FF3742 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.08);
}
#floating-menu {
  position: fixed;
  top: 4.5rem;
  right: 2.2rem;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(255, 217, 61, 0.18);
  padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  min-width: 210px;
  display: none;
  animation: fadeInMenu 0.25s;
}
#floating-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#floating-menu li {
  margin-bottom: 1.1em;
}
#floating-menu li:last-child {
  margin-bottom: 0;
}
#floating-menu a {
  color: #FF9A3C;
  font-weight: bold;
  font-size: 1.08rem;
  text-decoration: none;
  transition: color 0.18s;
  display: block;
  padding: 0.2em 0.1em;
  border-radius: 6px;
}
#floating-menu a:hover {
  color: #fff;
  background: #FF9A3C;
}
@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  #floating-menu-btn {
    top: 1.1rem;
    right: 1.1rem;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  #back-to-top-btn {
    bottom: 1.1rem;
    right: 1.1rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  #floating-menu {
    top: 3.2rem;
    right: 1.1rem;
    min-width: 140px;
    padding: 0.7rem 0.7rem 0.7rem 0.7rem;
  }
} 

.bronze-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  justify-content: center;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.bronze-list h3 {
  margin: 0.3em 0.8em;
  min-width: 7em;
  flex: 0 1 auto;
} 

.silver-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  justify-content: center;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.silver-list h3 {
  margin: 0.3em 0.8em;
  min-width: 7em;
  flex: 0 1 auto;
  font-size: 1.2rem;
} 

/* 駐車場情報 */
.parking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.parking-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 249, 249, 0.95) 100%);
    padding: 1.8rem;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.08),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.parking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.parking-item:hover::before {
    left: 100%;
}

.parking-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.12),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.parking-item h5 {
    color: #FF8C00;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.parking-item p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.map-link-btn {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    border: none;
    padding: 1rem 1.8rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(255, 165, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.map-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.map-link-btn:hover::before {
    left: 100%;
}

.map-link-btn:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 25px rgba(255, 140, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.map-link-btn:active {
    transform: translateY(-1px);
}

/* レスポンシブ対応 - 駐車場 */
@media (max-width: 768px) {
    .parking-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .parking-item {
        padding: 1.5rem;
    }
    
    .parking-item h5 {
        font-size: 1.1rem;
    }
    
    .map-link-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .parking-item {
        padding: 1.2rem;
    }
    
    .parking-item h5 {
        font-size: 1.0rem;
    }
    
    .map-link-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

/* iPhone SE専用の駐車場案内文字サイズ調整 */
@media only screen and (max-width: 375px) {
    .parking-item h5 {
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* iPhone専用の駐車場案内文字サイズ調整（414px以下） */
@media only screen and (max-width: 414px) {
    .parking-item h5 {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* 極小画面での駐車場案内文字サイズ調整 */
@media only screen and (max-width: 320px) {
    .parking-item h5 {
        font-size: 0.75rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* iPhone専用の強力な文字サイズ設定 */
@media only screen and (max-device-width: 414px) {
    .parking-item h5 {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* iPhone SE専用の強力な文字サイズ設定 */
@media only screen and (max-device-width: 375px) {
    .parking-item h5 {
        font-size: 0.75rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* iPhone専用の超強力な文字サイズ設定 */
@media only screen and (max-width: 414px) and (-webkit-min-device-pixel-ratio: 2) {
    .parking-item h5 {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* iPhone SE専用の超強力な文字サイズ設定 */
@media only screen and (max-width: 375px) and (-webkit-min-device-pixel-ratio: 2) {
    .parking-item h5 {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* iPhone専用の最終的な文字サイズ設定 */
@media screen and (max-width: 414px) {
    .parking-item h5 {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* iPhone SE専用の最終的な文字サイズ設定 */
@media screen and (max-width: 375px) {
    .parking-item h5 {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* iPhone SE専用のスポンサー設定 - 最高優先度 */
    #sponsors .sponsor.silver h3 {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.4rem !important;
    }
    
    #sponsors .sponsor.bronze h3 {
        font-size: 0.45rem !important;
        line-height: 0.8 !important;
        margin-bottom: 0.05rem !important;
    }
}

/* キャッシュクリア用の最終設定 - iPhone専用 */
@media only screen and (max-width: 414px) {
    .parking-item h5 {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-text-size-adjust: none !important;
        -moz-text-size-adjust: none !important;
        -ms-text-size-adjust: none !important;
        text-size-adjust: none !important;
    }
}

/* キャッシュクリア用の最終設定 - iPhone SE専用 */
@media only screen and (max-width: 375px) {
    .parking-item h5 {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-text-size-adjust: none !important;
        -moz-text-size-adjust: none !important;
        -ms-text-size-adjust: none !important;
        text-size-adjust: none !important;
    }
}

/* 最高優先度のiPhone専用設定 */
@media only screen and (max-width: 414px) {
    .parking-item h5 {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-text-size-adjust: none !important;
        -moz-text-size-adjust: none !important;
        -ms-text-size-adjust: none !important;
        text-size-adjust: none !important;
        max-width: 100% !important;
        word-break: keep-all !important;
    }
}

/* 最高優先度のiPhone SE専用設定 */
@media only screen and (max-width: 375px) {
    .parking-item h5 {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-text-size-adjust: none !important;
        -moz-text-size-adjust: none !important;
        -ms-text-size-adjust: none !important;
        text-size-adjust: none !important;
        max-width: 100% !important;
        word-break: keep-all !important;
    }
}

/* 市民のパフォーマンスバッジ */
.performance-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E8E8E8 0%, #F5F5F5 100%);
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.4rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #D0D0D0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.performance-badge:hover {
    background: linear-gradient(135deg, #F0F0F0 0%, #E0E0E0 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* チケット不要通知 */
.ticket-free-notice {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.3rem;
    box-shadow: 0 1px 3px rgba(255, 107, 107, 0.3);
    border: 1px solid #FF5252;
    transition: all 0.2s ease;
    white-space: nowrap;
    animation: pulse-glow 2s ease-in-out infinite;
}

.ticket-free-notice:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FF7979 100%);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
    transform: scale(1.05);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 1px 3px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.5);
    }
}

/* レスポンシブ対応 - パフォーマンスバッジ */
@media (max-width: 768px) {
    .performance-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.4rem;
        margin-right: 0.3rem;
        border-radius: 10px;
    }
    
    .ticket-free-notice {
        font-size: 0.65rem;
        padding: 0.12rem 0.35rem;
        margin-left: 0.25rem;
        border-radius: 6px;
    }
    
    /* 小タブレット表示時も最初から改行した状態にする */
    .schedule-table .content-cell {
        display: block;
    }
    
    .performance-badge {
        display: block;
        margin-bottom: 0.25rem;
        width: fit-content;
    }
    
    .ticket-free-notice {
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
        width: fit-content;
    }
}

@media (max-width: 1024px) {
    /* 中サイズ端末でも改行が入る可能性がある場合の制御 */
    .schedule-table .content-cell {
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .performance-badge {
        font-size: 0.65rem;
        padding: 0.12rem 0.35rem;
        margin-right: 0.25rem;
        border-radius: 8px;
    }
    
    .ticket-free-notice {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
        margin-left: 0.2rem;
        border-radius: 5px;
    }
    
    /* スマホ表示時は最初から改行した状態にする */
    .schedule-table .content-cell {
        display: block;
    }
    
    .performance-badge {
        display: block;
        margin-bottom: 0.3rem;
        width: fit-content;
    }
    
    .ticket-free-notice {
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
        width: fit-content;
    }
} 

/* BISHU画像の表示スタイル */
.bishu-images {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.bishu-img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.bishu-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bishu-copyright {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: left;
    font-style: italic;
}

.bishu-link {
    margin-top: 0.8rem;
    text-align: left;
}

.bishu-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.bishu-link-btn:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #D14A1A 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.bishu-link-btn i {
    font-size: 0.8rem;
}

/* レスポンシブ対応 - BISHU画像 */
@media (max-width: 768px) {
    .bishu-images {
        gap: 0.6rem;
        margin-top: 0.6rem;
    }
    
    .bishu-img {
        width: 70px;
        height: 105px;
        border-radius: 6px;
    }
    
    .bishu-link-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .bishu-images {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .bishu-img {
        width: 60px;
        height: 90px;
        border-radius: 5px;
    }
    
    .bishu-link-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }
}

/* 画像拡大表示用モーダル */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

#modalImage {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-copyright {
    margin-top: 15px;
    color: #f1f1f1;
    font-size: 0.9rem;
    font-style: italic;
}

/* レスポンシブ対応 - モーダル */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .close-modal {
        top: 5px;
        right: 20px;
        font-size: 30px;
    }
    
    #modalImage {
        max-height: 75vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 10px;
    }
    
    .close-modal {
        top: 5px;
        right: 15px;
        font-size: 25px;
    }
    
    #modalImage {
        max-height: 65vh;
    }
} 

/* 同日開催イベント用スタイル */
.same-day-events-section {
    margin: 4rem 0 2rem 0;
    text-align: center;
    padding: 4.5rem 2rem 1.5rem 2rem;
    background: linear-gradient(135deg, #F8F9FA, #E9ECEF);
    border-radius: 15px;
    border: 2px solid #6C757D;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    position: relative;
}

.same-day-events-title {
    font-size: 2rem;
    color: #333 !important;
    margin: 0;
    padding: 0;
    font-weight: bold;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    line-height: 1;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.same-day-event {
    background: transparent;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: none;
}

.same-day-event h3 {
    color: #495057;
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.same-day-event .subevent-card {
    background: #FFFFFF;
    border: 1px solid #DEE2E6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.same-day-event .subevent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ対応 - 同日開催イベント */
@media (max-width: 768px) {
    .same-day-events-section {
        margin: 2rem 0 1.5rem 0;
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }
    
    .same-day-events-title {
        font-size: 1.5rem;
    }
    
    .same-day-events-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .same-day-events-section {
        margin: 1.5rem 0 1rem 0;
        padding: 2rem 1rem 1.5rem 1rem;
    }
    
    .same-day-events-title {
        font-size: 1.3rem;
    }
    
    .same-day-events-subtitle {
        font-size: 0.8rem;
    }
} 