/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #4a3c2c;
    background-color: #f8f8f8;
}

.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
}

/* トップバー（ヘッダー） */
.top-bar {
    background-color: #6B4C3C;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 24px;
    width: auto;
    max-width: 200px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
}

/* オフキャンバスメニュー */
.offcanvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #E0E0EB;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offcanvas-menu.active {
    transform: translateX(0);
}

.offcanvas-header {
    background-color: #6B4C3C;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-logo-image {
    height: 24px;
    width: auto;
    max-width: 200px;
}

.menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-icon {
    font-size: 28px;
    font-weight: 300;
}

.offcanvas-nav {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #4a3c2c;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

.nav-link:hover {
    color: #6B4C3C;
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* メインビジュアルセクション */
.main-visual-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-visual-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* イベント概要セクション */
.event-overview-section {
    padding: 40px 20px;
    background-color: #FFFDEB;
}

.event-logo {
    background-color: #f8f8f8;
    border: 2px solid #4a3c2c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.event-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 700;
    color: #4a3c2c;
    line-height: 1.4;
}

.event-date {
    text-align: center;
    margin-bottom: 20px;
}

.event-date p {
    font-size: 18px;
    font-weight: 500;
    color: #4a3c2c;
}

.event-description {
    text-align: center;
    margin-bottom: 30px;
}

.event-description p {
    font-size: 16px;
    color: #4a3c2c;
    line-height: 1.8;
}

/* イベント詳細アイコン */
.event-details {
    margin-bottom: 30px;
    text-align: center;
}

.event-details-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ソーシャルメディアボタン */
.social-button {
    text-align: center;
    margin-bottom: 30px;
}

.x-button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

/* カウントダウンセクション */
.countdown-section {
    padding: 40px 20px;
    background-color: #F7FAFC;
    text-align: center;
}

.countdown-label {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.countdown-main-box {
    background-color: #FFFFFF;
    border: 1px solid #000000;
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="20" height="20" fill="%23000"/><rect width="20" height="20" filter="url(%23noise)" opacity="0.6"/></svg>') 1;
    box-shadow: 0 0 0 2px #F7FAFC, 0 0 0 5px #000000;
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* アンティークなカスレ処理 - 外側のボーダー */
.countdown-main-box::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid #000000;
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><filter id="noise2"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="20" height="20" fill="%23000"/><rect width="20" height="20" filter="url(%23noise2)" opacity="0.6"/></svg>') 3;
    pointer-events: none;
    z-index: -1;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.countdown-value {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.countdown-unit-label {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
}

/* セクション共通スタイル */
.section-header {
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.section-header.brown-bg {
    background-color: #8b5e3c;
    box-shadow: inset 0 0 0 8px #8b5e3c, inset 0 0 0 10px #ffffff;
}

.section-header.purple-bg {
    background-color: #9b7fb9;
    box-shadow: inset 0 0 0 8px #9b7fb9, inset 0 0 0 10px #ffffff;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* ストーリーセクション */
.story-section {
    padding: 40px 20px;
    background-color: #FFFDEB;
}

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

.story-content p {
    font-size: 16px;
    color: #4a3c2c;
    line-height: 1.8;
    margin-bottom: 30px;
}

.story-visual {
    margin-top: 20px;
    width: 100%;
}

.story-visual-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 遊び方セクション */
.how-to-play-section {
    padding: 40px 20px;
    background-color: #FFFDEB;
}

.how-to-play-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.step-visual {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
}

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

.step-text p {
    font-size: 16px;
    color: #4a3c2c;
    line-height: 1.8;
}

.step-arrow {
    margin: 8px 0;
    text-align: center;
}

.arrow-icon {
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 参加店舗セクション */
.stores-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.stores-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 最新情報セクション */
.news-section {
    padding: 40px 20px;
    background-color: #fff;
}

.section-header:not(.brown-bg):not(.purple-bg) h2 {
    color: #4a3c2c;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.news-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    color: #4a3c2c;
    transition: background-color 0.3s ease;
}

.news-question:hover {
    background-color: #f8f8f8;
}

.news-question.active {
    background-color: #f8f8f8;
}

.news-date {
    font-size: 14px;
    color: #6b5b73;
    margin-right: 12px;
}

.news-title {
    font-size: 16px;
    flex: 1;
}

.news-arrow {
    font-size: 18px;
    color: #6b5b73;
    margin-left: 12px;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.3s ease;
}

.news-question.active .news-arrow {
    transform: rotate(90deg);
}

.news-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.news-answer.active {
    max-height: 500px;
    padding: 16px;
}

.news-answer p {
    font-size: 16px;
    color: #6b5b73;
    line-height: 1.8;
}

/* よくある質問セクション */
.faq-section {
    padding: 40px 20px;
    background-color: #fff;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    color: #4a3c2c;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f8f8;
}

.faq-question.active {
    background-color: #f8f8f8;
}

.faq-question span:first-child {
    flex: 1;
}

.faq-arrow {
    font-size: 18px;
    color: #6b5b73;
    margin-left: 12px;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 16px;
}

.faq-answer p {
    font-size: 16px;
    color: #6b5b73;
    line-height: 1.8;
}

/* フッターセクション */
.footer-section {
    padding: 40px 20px;
    background-color: #D4D4EA;
    text-align: center;
}

.footer-top {
    margin-bottom: 30px;
    text-align: right;
}

.back-to-top {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #4a3c2c;
    padding: 8px;
}

.back-to-top-arrow {
    display: inline-block;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.footer-social {
    margin-bottom: 30px;
}

.footer-social p {
    font-size: 16px;
    color: #4a3c2c;
    margin-bottom: 16px;
}

.footer-x-logo {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-color: #000;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-x-logo:hover {
    transform: scale(1.1);
}

.footer-x-logo svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo-image {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 12px;
    color: #6b5b73;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .event-title {
        font-size: 18px;
    }
    
    .catchphrase {
        font-size: 18px;
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
    
    .countdown-boxes {
        gap: 12px;
    }
    
    .countdown-box {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .countdown-value {
        font-size: 28px;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
    }
}

/* アンカーリンクのスクロール調整 */
section[id] {
    scroll-margin-top: 60px;
}
