/* Last updated: 2025-07-09 10:55 JST - Updated modal text size and button color, added underlined SVGs */
@import url('https://fonts.googleapis.com/css2?family=Yuji+Syuku&display=swap');

body {
    font-family: 'YuGothic', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
    margin: 0;
    background-color: #FAFBF1;
    color: #183380;
    font-size: 14px;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    background-color: #FAFBF1;
    overflow-x: hidden;
}


.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 375 / 624;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* SVG を含むオブジェクトをフル幅に */
.hero object.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 20px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 100px;
    box-sizing: border-box;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 16px;
}

.section-title-image {
    display: block;
    margin: 0 auto 1rem;
    height: 50px;
}


.section-title-wrapper p {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.6;
    word-break: keep-all;
}

.presents .period {
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}



.hero-footer {
    background-color: #fff;
    border-radius: 1000px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    margin: 0 auto 32px;
    width: max-content;
}
.hero-footer img,
.hero-footer object {
    height: 24px;
}
.hero-footer p {
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}


h1, h2, h3, h4 {
    font-family: 'A P-OTF Puhu Sour Min2', 'Yuji Syuku', serif;
    font-weight: bold;
    color: #183380;
    margin: 0;
}

h1 {
    font-size: 32px;
    border-bottom: 4px solid #FAFBF1;
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 1rem;
}

.hero-title-content p {
    /* font-size: 14px; */
    font-weight: bold;
    line-height: 1.6;
}

.spots, .locations, .presents, .how-to-play, .faq {
    padding: 48px 0;
    position: relative;
}

/* Maintain padding for sections that need it */
.locations > ul,
.presents > img,
.presents > h3,
.presents > p,
.faq .qa {
    margin-left: 16px;
    margin-right: 16px;
}

.spots {
    background-color: #D2F25A;
    border-radius: 80px 0 0 80px;
    margin-left: 0;
    padding-top: 48px;
}

.spots h2 {
    text-align: center;
    font-size: 12px;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: sans-serif;
    font-weight: normal;
}

.spots h2 span {
    font-size: 24px;
    display: block;
    font-family: 'A P-OTF Puhu Sour Min2', 'Yuji Syuku', serif;
    font-weight: bold;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header.kansen {
    margin-top: 20px;
}

.section-title-svg {
    height: 43px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.card .card-main-image {
    position: relative;
    z-index: 5;
}

.card .character {
    position: absolute;
    width: 120px;
    right: -25px;
    top: -65px;
    z-index: 1;
}

.card .card-tape {
    position: absolute;
    width: 45%;
    top: -15px;
    left: 28%;
    transform: translateX(-50%) rotate(-25deg);
    z-index: 10;
}

/* 観戦（4,5番目）のマスキングテープは右寄せ */
.kansen + .spot-cards .card .card-tape {
    left: -7px;
    transform: rotate(-25deg);
}

.spot-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: calc(50% - 12px);
    max-width: 167px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

.card img,
.card object {
    width: 100%;
    border-radius: 16px;
}

.card p {
    display: none;
}

.card .icon-movie {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    opacity: 0.9;
}

.locations {
    background-color: #FAFBF1;
    border-radius: 0;
}

.locations h2 {
    text-align: center;
    margin-bottom: 1rem;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 4px solid #D2F25A;
    padding-bottom: 4px;
}

.locations h2 img,
.locations h2 object {
    display: block;
}

.period-section {
    background-color: #FAFBF1;
    text-align: center;
    padding: 48px 16px;
}

.period-section h2 {
    font-size: 32px;
    border-bottom: 4px solid #D2F25A;
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 1rem;
}

.period-section p {
    font-size: 1.1em;
    font-weight: bold;
}

.locations > img,
.locations > object {
    width: calc(100% - 32px);
    margin: 0 16px 1rem 16px;
    display: block;
}

.locations ul {
    list-style: none;
    padding: 0;
    text-align: left;
    /* font-size: 14px; */
    line-height: 1.6;
}

.locations ul li {
    margin-bottom: 8px;
}

.locations ul li strong {
    font-size: 1.1em;
}

.locations .address {
    font-size: 12px;
}

.locations .soccer-item {
    border-bottom: 2px dotted #183380;
    padding-bottom: 8px;
}

.stadium-locations {
    display: flex;
}

.stadium-locations .stadium-item {
    width: 50%;
}

/* Location links styling */
.location-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 4px 0;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.location-link:hover,
.location-link:active {
    background-color: rgba(24, 51, 128, 0.1);
}

.location-link:visited {
    color: inherit;
}

.presents {
    background-color: #D2F25A;
    border-radius: 0 80px 0 0;
}

.presents h2, .how-to-play h2, .faq h2 {
    text-align: center;
    font-size: 32px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}
.presents h2 {
    border-bottom-color: #FAFBF1;
}

/* Section title images - 70% size */
.locations h2 img,
.locations h2 object,
.period-section h2 img,
.period-section h2 object,
.presents h2 img,
.presents h2 object,
.presents h3 img,
.presents h3 object,
.how-to-play h2 img,
.how-to-play h2 object,
.exchange-locations h3 img,
.exchange-locations h3 object {
    height: 32px;
}

/* Underlined section titles - increased height for underline */
.section-title-svg.with-underline {
    height: 50px !important;
}

.faq h2 img,
.faq h2 object {
    height: 48px;
}

/* Step title images - 50% size */
.step h3 img,
.step h3 object {
    height: 22px;
}


.presents p {
    text-align: center;
    font-weight: bold;
}

.presents > img,
.presents > object {
    width: calc(100% - 32px);
    border-radius: 40px;
    margin: 1rem 16px;
    display: block;
}

.presents h3 {
    font-size: 24px;
    text-align: center;
}

.present-name {
    text-align: center;
}

.clear-file-text {
    height: 48px;
    width: auto;
    display: inline-block;
}

.present-description {
    /* font-size: 14px; */
    font-weight: normal;
}

.how-to-play h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.how-to-play {
    background-color: #D2F25A;
    padding: 48px 0; /* Remove horizontal padding */
    border-radius: 0 0 80px 0;
}

.how-to-play h2 {
     border-bottom-color: #183380;
}

.step {
    background-color: #FAFBF1;
    border-radius: 80px 0 0 80px;
    padding: 24px 16px;
    margin: 24px 0;
}

.step.right {
    border-radius: 0 80px 80px 0;
}


.step h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.step-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.step.right .step-inner {
    flex-direction: row-reverse;
}

.step-image {
    flex-shrink: 0;
}

.step-image img,
.step-image object {
    width: 128px;
    height: 128px;
    border-radius: 0;
    overflow: visible;
}

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

.step-text p {
    /* font-size: 14px; */
    line-height: 1.6;
}

.note {
    font-size: 11px;
    color: #CC0000; /* Red */
    margin-top: 8px;
}

.exchange-locations {
    margin-top: 48px;
    padding: 0 16px;
}

.exchange-locations h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.location-item {
    padding: 16px 0;
}

.location-item h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 2px dotted #183380;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.location-item p {
    font-size: 12px;
}

.location-item p strong {
    font-size: 14px;
}


.faq {
     background-color: transparent;
}

.qa {
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.qa .q, .qa .a {
    display: flex;
    align-items: flex-start;
    /* font-size: 14px; */
    line-height: 1.6;
    font-weight: bold;
}

.qa .q::before, .qa .a::before {
    font-family: 'A P-OTF Puhu Sour Min2', 'Yuji Syuku', serif;
    font-size: 24px;
    font-weight: bold;
    margin-right: 16px;
    flex-shrink: 0;
}

.qa .q::before {
    content: '';
    width: 32px;
    height: 32px;
    background-image: url('../images/mark-q.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.qa .a::before {
    content: '';
    width: 32px;
    height: 32px;
    background-image: url('../images/mark-a.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}


.deco-tape {
    position: absolute;
    width: 80px;
    z-index: 6;
}
.tape-1 {
    top: 100px;
    left: 10px;
    transform: rotate(-15deg);
}
.tape-2 {
    top: 160px;
    right: -5px;
    transform: rotate(10deg);
}
.tape-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
}


/* FAQ Section */
.faq {
    background-color: transparent;
    padding: 60px 20px;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.qa {
    background-color: transparent;
    padding: 0;
    margin-bottom: 32px;
}

.qa .q {
    position: relative;
    padding-left: 45px;
    margin-bottom: 16px;
    font-weight: bold;
    color: #183380;
    font-size: 14px;
    line-height: 1.6;
}

.qa .q::before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 32px;
    height: 32px;
    background-image: url('../images/faq-q-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.qa .a {
    position: relative;
    padding-left: 45px;
    color: #183380;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.8;
}

.qa .a::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0.2em;
    width: 16px;
    height: 17px;
    background-image: url('../images/faq-a-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Footer */
footer {
    background-color: #FFFFFF;
    padding: 56px 20px 20px;
    text-align: center;
}

.footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.logo-top {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

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

.logo-bottom,
.logo-bottom2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.logo-bottom img,
.logo-bottom2 img {
    height: auto;
    width: calc(50% - 10px);
    object-fit: contain;
}

/* Footer logo links */
.footer-logos a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logos a:hover {
    opacity: 0.8;
}

.logo-top a {
    width: 100%;
}

.logo-bottom a,
.logo-bottom2 a {
    width: calc(50% - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-bottom a img,
.logo-bottom2 a img {
    width: 100%;
    height: auto;
}

footer p {
    font-size: 12px;
    color: #666666;
    margin: 0;
}

/* General object tag styles to match img behavior */
object {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
}

/* Center object tags like images when they're block elements */
object[style*="display: block"],
object.section-title-image,
object.section-title-svg {
    margin-left: auto;
    margin-right: auto;
}

/* SVG 専用リセット（画質劣化防止） */
img[src$=".svg"],
object[type="image/svg+xml"] {
    image-rendering: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
    will-change: auto !important;
}

/* PNG specific optimizations for retina displays */
img[src$=".png"],
object[data$=".png"] {
    image-rendering: auto;
}

/* Force high quality rendering on mobile devices */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    /* PNG images on retina displays */
    img[src$=".png"],
    object[data$=".png"] {
        image-rendering: auto;
    }
    
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #FAFBF1;
    border-radius: 40px;
    width: 90%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: visible;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 300px;
    right: 0;
    width: 160px;
    height: 200px;
    background-image: url('../images/modal-leaf-decoration.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.7;
    z-index: 0;
}


.modal-overlay.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.modal-close svg {
    width: 48px;
    height: 48px;
}

.modal-item {
    width: 100%;
}

.modal-image {
    width: calc(100% - 32px);
    height: calc(100vw * 0.9 - 32px);
    max-height: 368px;
    margin: 16px;
    border-radius: 16px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.modal-body {
    padding: 0 24px 24px;
    position: relative;
    z-index: 1;
}

.modal-title {
    height: 28px;
    margin: 0 auto 8px auto;
    display: block;
    text-align: center;
}

.modal-subtitle {
    font-size: 14px;
    color: #888888;
    margin: 0 0 16px 0;
    text-align: center;
}

.stadium-subtitle {
    height: 17px;
    display: block;
    margin: 0 auto;
}

.modal-description {
    font-size: 12px;
    line-height: 1.6;
    color: #183380;
    margin-bottom: 24px;
}

.modal-button {
    background-color: #183380;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #0e1f4d;
}

.modal-button svg {
    width: 24px;
    height: 24px;
    margin-left: -1em;
}

/* Card clickable state */
.card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

/* Make object elements inside cards non-interactive */
.card object {
    pointer-events: none;
}

/* Modal decoration styles */
.modal-rings {
    position: absolute;
    left: -16px;
    top: 60px;
    bottom: 60px;
    width: 30px;
    z-index: 1;
}

.ring-decoration {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.masking-tape {
    position: absolute;
    top: -33px;
    left: -18px;
    width: 90px;
    height: 90px;
    z-index: 2;
    transform: rotate(-15deg);
}

/* Responsive adjustments */
@media (max-width: 375px) {
    h1 {
        font-size: 28px;
    }
    .spots h2, .locations h2, .presents h2, .how-to-play h2, .faq h2 {
        font-size: 28px;
    }
    .step-inner {
        flex-direction: column;
    }
    .step.right .step-inner {
        flex-direction: column;
    }
}

/* Disabled modal button styles */
.modal-button.disabled,
.modal-button:disabled {
    background-color: #888888;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.6;
}

.modal-button.disabled:hover,
.modal-button:disabled:hover {
    background-color: #888888;
}
