/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #20b2aa;
    --primary-teal-dark: #178b85;
    --primary-emerald: #50c878;
    --primary-emerald-dark: #3da85f;
    --secondary-mint: #98fb98;
    --secondary-cyan: #00ced1;
    --secondary-turquoise: #40e0d0;
    --secondary-aqua: #00ffff;
    --secondary-jade: #00a86b;
    --text-dark: #1a3a2e;
    --text-light: #4a6b5f;
    --bg-light: #f0fdfa;
    --bg-white: #ffffff;
    --border-color: #b8e6d9;
    --shadow: 0 3px 12px rgba(32, 178, 170, 0.18);
    --shadow-hover: 0 6px 24px rgba(32, 178, 170, 0.28);
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'MS PGothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.8;
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* Left Sidebar */
.sidebar-left {
    background-color: var(--bg-white);
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.logo {
    padding: 0 15px 20px;
    border-bottom: 2px solid var(--primary-teal);
    margin-bottom: 20px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.main-nav ul {
    list-style: none;
    padding: 0;
}

.main-nav li {
    margin-bottom: 5px;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.main-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-teal);
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--bg-light);
    border-left-color: var(--primary-teal);
    color: var(--primary-teal);
}

.search-box {
    display: flex;
    padding: 15px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 15px;
    background-color: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: var(--primary-teal-dark);
}

.sidebar-links {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.sidebar-links a {
    display: block;
    padding: 8px 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.sidebar-links a:hover {
    color: var(--primary-teal);
}

/* Main Content */
.main-content {
    background-color: var(--bg-white);
    padding: 20px;
}

.hero-banner {
    margin-bottom: 30px;
}

.hero-banner .banner-content {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

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

.hero-banner .banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 40px;
    color: white;
}

.hero-banner .banner-text h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.hero-banner .banner-text p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.jackpot-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.jackpot-card {
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.jackpot-card.carryover {
    background-color: var(--primary-emerald);
}

.jackpot-card.winner {
    background-color: var(--secondary-mint);
    color: var(--text-dark);
}

.jackpot-card img {
    max-width: 150px;
    height: auto;
}

.jackpot-text {
    flex: 1;
}

.jackpot-card h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.jackpot-card .amount,
.jackpot-card .count {
    font-size: 2em;
    font-weight: bold;
}

.campaigns-section,
.lotteries-section,
.number-lotteries-section {
    margin-bottom: 40px;
}

.campaigns-section h2,
.lotteries-section h2,
.number-lotteries-section h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--primary-teal);
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 10px;
}

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

.campaign-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.campaign-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.campaign-info {
    padding: 15px;
}

.campaign-info h3 {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.campaign-card .btn-primary {
    width: 100%;
}

.lotteries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.lottery-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lottery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.lottery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.lottery-info {
    padding: 20px;
}

.lottery-info h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.lottery-info .prize {
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.lottery-info .dates {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.lottery-buttons {
    display: flex;
    gap: 10px;
}

.quick-one-section {
    margin-bottom: 40px;
}

.quick-one-banner {
    background-color: var(--bg-light);
    border: 3px solid var(--primary-teal);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.quick-one-banner img {
    max-width: 200px;
    height: auto;
}

.quick-one-content h2 {
    color: var(--primary-teal);
    font-size: 2em;
    margin-bottom: 10px;
}

.quick-one-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1em;
}

.number-lotteries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.number-lottery-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.number-lottery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.number-lottery-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.number-lottery-info {
    text-align: center;
}

.number-lottery-info h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.number-lottery-info .prize {
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.special-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-content {
    padding: 30px;
    text-align: center;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-card.group {
    background-color: #e0f7f4;
}

.feature-card.gift {
    background-color: #d4f4e8;
}

.learn-more-section {
    margin-bottom: 40px;
}

.learn-more-section h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--primary-teal);
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 10px;
}

.learn-more-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-size: 1em;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: var(--bg-white);
}

.tab-btn.active {
    background-color: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

.tab-content {
    display: none;
    padding: 30px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 0 10px 10px 10px;
}

.tab-content.active {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tab-content img {
    max-width: 200px;
    height: auto;
}

.tab-content p {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-light);
}

.ambassador-section {
    text-align: center;
    margin-bottom: 40px;
}

.ambassador-section img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

.ambassador-section h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary-teal);
}

.ambassador-section p {
    font-size: 1.1em;
    color: var(--text-light);
}

/* Right Sidebar */
.sidebar-right {
    background-color: var(--bg-white);
    padding: 20px;
    border-left: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.welcome-box,
.new-user-box,
.schedule-box {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.welcome-box h3,
.schedule-box h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--primary-teal);
}

.welcome-box p,
.schedule-box p {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.welcome-box .btn-primary,
.new-user-box .btn-primary {
    width: 100%;
    margin-bottom: 15px;
}

.forgot-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.forgot-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85em;
}

.forgot-links a:hover {
    color: var(--primary-teal);
}

.new-user-box h4 {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.region-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-region {
    padding: 10px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-region.tokyo {
    background-color: var(--primary-teal);
}

.btn-region.tokyo:hover {
    background-color: var(--primary-teal-dark);
}

.btn-region.kanto {
    background-color: var(--primary-emerald);
}

.btn-region.kanto:hover {
    background-color: var(--primary-emerald-dark);
}

.btn-region.kinki {
    background-color: var(--secondary-cyan);
}

.btn-region.kinki:hover {
    background-color: #00a8a8;
}

.btn-region.west {
    background-color: var(--secondary-jade);
}

.btn-region.west:hover {
    background-color: #008855;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover {
    color: var(--primary-teal);
}

.social-links a i {
    font-size: 1.2em;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-teal);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 12px 25px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 50px;
    position: relative;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-mint);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-icons a {
    color: white;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-mint);
}

.footer-text {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.back-to-top {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-teal);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--primary-teal-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-teal);
}

.modal-content h2 {
    color: var(--primary-teal);
    margin-bottom: 25px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.95em;
}

.checkbox-group a {
    color: var(--primary-teal);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--primary-teal);
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-buttons .btn-primary,
.form-buttons .btn-secondary {
    flex: 1;
}

.continuous-purchase {
    background-color: var(--primary-emerald);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.continuous-purchase img {
    max-width: 150px;
    height: auto;
}

.continuous-text {
    flex: 1;
    color: white;
    font-size: 1.1em;
    line-height: 1.8;
}

.policy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.policy-page h1 {
    font-size: 2.5em;
    color: var(--primary-teal);
    margin-bottom: 10px;
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 15px;
}

.policy-page .last-updated {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 30px;
}

.policy-page section {
    margin-bottom: 40px;
}

.policy-page h2 {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-teal);
}

.policy-page p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.policy-page ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.policy-page li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-dark);
}

.policy-page strong {
    color: var(--primary-teal);
}

/* Page Title */
.page-title {
    font-size: 2.5em;
    color: var(--primary-teal);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 15px;
}

/* Beginner Banner */
.beginner-banner {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--primary-emerald);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.beginner-banner img {
    max-width: 200px;
    height: auto;
}

.beginner-content h2 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Topics Section */
.topics-section {
    margin-bottom: 40px;
}

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

.topic-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.topic-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.topic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-content {
    padding: 20px;
}

.topic-content h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.topic-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.topic-link {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.topic-link:hover {
    text-decoration: underline;
}

/* News Section */
.recommended-news {
    margin-bottom: 40px;
}

.recommended-news h2 {
    font-size: 1.8em;
    color: var(--primary-teal);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 10px;
}

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

.news-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-category {
    display: inline-block;
    background-color: var(--primary-teal);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1em;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.news-date {
    color: var(--text-light);
    font-size: 0.9em;
}

.more-news {
    text-align: center;
    margin-top: 20px;
}

.more-news a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
}

.more-news a:hover {
    text-decoration: underline;
}

/* Schedule Page */
.schedule-intro {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.region-selection {
    margin-bottom: 40px;
}

.region-selection h2 {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.region-buttons-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.btn-region-large {
    padding: 30px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-region-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.btn-region-large h3 {
    margin: 0;
    font-size: 1.2em;
}

.japan-map {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.map-region {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    border-radius: 6px;
}

.map-region.hokkaido {
    background-color: var(--primary-emerald);
    color: white;
}

.map-region.tohoku-kanto-chubu {
    background-color: var(--primary-emerald);
    color: white;
}

.map-region.kinki-region {
    background-color: var(--secondary-cyan);
    color: white;
}

.map-region.west-region {
    background-color: var(--secondary-jade);
    color: white;
}

.prefecture {
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.prefecture:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.prefecture.tokyo-special {
    background-color: var(--primary-teal);
    font-weight: bold;
}

.prefecture.okinawa {
    background-color: var(--secondary-jade);
}

.schedule-info {
    margin-bottom: 40px;
}

.schedule-info h2 {
    font-size: 1.8em;
    color: var(--primary-teal);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 10px;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.info-box {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-teal);
}

.info-box h3 {
    color: var(--primary-teal);
    margin-bottom: 10px;
}

.info-box p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Winning Numbers Page */
.info-list-section {
    margin-bottom: 30px;
}

.info-list {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.info-item {
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item summary {
    padding: 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.info-item summary:hover {
    background-color: var(--bg-white);
}

.info-item summary::-webkit-details-marker {
    display: none;
}

.info-item summary i {
    color: var(--primary-teal);
    transition: transform 0.3s ease;
}

.info-item[open] summary i {
    transform: rotate(180deg);
}

.info-item p {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

.promo-banner {
    background: linear-gradient(135deg, var(--secondary-mint), var(--primary-emerald));
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.promo-content h2 {
    color: var(--text-dark);
    font-size: 1.8em;
    margin-bottom: 20px;
}

.winning-results {
    margin-bottom: 40px;
}

.winning-results h2 {
    font-size: 1.8em;
    color: var(--primary-teal);
    margin-bottom: 15px;
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 10px;
}

.winning-results > p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.lottery-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.lottery-type-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lottery-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.lottery-type-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.lottery-type-card h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.result-link {
    display: block;
    color: var(--primary-teal);
    text-decoration: none;
    margin-bottom: 8px;
    font-weight: 600;
}

.result-link:hover {
    text-decoration: underline;
}

.live-broadcast {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.live-broadcast img {
    max-width: 300px;
    height: auto;
}

.broadcast-content h2 {
    font-size: 1.8em;
    color: var(--primary-teal);
    margin-bottom: 15px;
}

.broadcast-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Purchase Steps */
.purchase-steps {
    margin-bottom: 40px;
}

.purchase-steps h2 {
    font-size: 1.8em;
    color: var(--primary-teal);
    margin-bottom: 30px;
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.step-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.step-card h3 {
    font-size: 1.2em;
    color: var(--primary-teal);
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Guide Banner */
.guide-banner {
    background-color: var(--primary-emerald);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.guide-banner img {
    max-width: 200px;
    height: auto;
}

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

.guide-links a {
    background-color: white;
    color: var(--primary-teal);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.guide-links a:hover {
    background-color: var(--bg-light);
}

/* Continuous Details */
.continuous-details {
    margin-bottom: 40px;
}

.continuous-details h2 {
    font-size: 1.8em;
    color: var(--primary-teal);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-teal);
    padding-bottom: 10px;
}

.continuous-list {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
}

.continuous-list ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.continuous-list li a {
    color: var(--primary-teal);
    text-decoration: none;
    padding: 8px 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid var(--primary-teal);
    transition: all 0.3s ease;
}

.continuous-list li a:hover {
    background-color: var(--primary-teal);
    color: white;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Results Table Styles */
.results-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.results-table thead {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-emerald));
    color: white;
}

.results-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1em;
}

.results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.results-table tbody tr:hover {
    background-color: var(--bg-light);
}

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

.results-table a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.results-table a:hover {
    color: var(--primary-emerald);
    text-decoration: underline;
}

.lottery-results-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.lottery-results-links .result-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.lottery-results-links .result-link:hover {
    background-color: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
}

/* FAQ Styles */
.faq-section {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-teal);
}

.faq-item h2 {
    color: var(--primary-teal);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.faq-item ul {
    margin-top: 10px;
    padding-left: 20px;
}

.faq-item li {
    margin-bottom: 8px;
}

/* Footer Disclaimer */
.footer-disclaimer {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-disclaimer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 220px 1fr 280px;
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sidebar-left,
    .sidebar-right {
        position: static;
        max-height: none;
    }

    .sidebar-left {
        order: 1;
    }

    .main-content {
        order: 2;
    }

    .sidebar-right {
        order: 3;
    }

    .jackpot-info {
        grid-template-columns: 1fr;
    }

    .special-features {
        grid-template-columns: 1fr;
    }

    .tab-content.active {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .hero-banner {
        padding: 40px 20px;
    }

    .hero-banner h1 {
        font-size: 1.8em;
    }

    .hero-banner p {
        font-size: 1em;
    }

    .lotteries-grid,
    .number-lotteries-grid {
        grid-template-columns: 1fr;
    }

    .campaigns-grid {
        grid-template-columns: 1fr;
    }

    .lottery-buttons {
        flex-direction: column;
    }

    .quick-one-banner {
        flex-direction: column;
        text-align: center;
    }

    .learn-more-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-radius: 10px;
        border: 2px solid var(--border-color);
    }

    .tab-content {
        border-radius: 10px;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }

    .form-buttons {
        flex-direction: column;
    }

    .results-table {
        font-size: 0.9em;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 8px;
    }
    
    .results-table-container {
        margin: 20px -15px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main-nav a {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .hero-banner h1 {
        font-size: 1.5em;
    }

    .campaigns-section h2,
    .lotteries-section h2,
    .number-lotteries-section h2 {
        font-size: 1.4em;
    }

    .region-buttons {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.8em;
    }

    .beginner-banner {
        flex-direction: column;
        text-align: center;
    }

    .topics-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .region-buttons-large {
        grid-template-columns: 1fr;
    }

    .japan-map {
        padding: 15px;
    }

    .prefecture {
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }

    .lottery-types {
        grid-template-columns: 1fr;
    }

    .live-broadcast {
        flex-direction: column;
        text-align: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .guide-banner {
        flex-direction: column;
        text-align: center;
    }

    .guide-links {
        flex-direction: column;
        width: 100%;
    }

    .guide-links a {
        width: 100%;
        text-align: center;
    }

    .continuous-list ul {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
