@charset "UTF-8";

/* Subpage Common Styles */

.page-header {
    background-color: var(--c-bg-top);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid white;
}

@media (max-width: 1023px) {
    .page-header {
        padding-top: 100px;
        /* 60px header + 40px padding */
    }
}

.page-title {
    font-size: 2rem;
    color: var(--c-accent-dark);
    font-weight: medium;
    margin-bottom: 0;
    text-shadow: 2px 2px 0px white;
}

.page-content {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--c-accent-blue);
    border-left: 6px solid var(--c-accent-orange);
    padding-left: 15px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* About Page Specific */
.about-text {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    line-height: 2;
}

.note-text {
    text-align: right;
    color: var(--c-accent-orange);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Character Scroll overlapping layout */
.about-character-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    /* Center the group */
    align-items: flex-end;
    gap: 0;
    padding: 40px 0 20px 0;
    /* Extra top padding for heads */
    margin: 0 auto;
    /* Centered in parent */
    width: 90%;
    overflow: visible;
    /* Show sticking out bits */
}

.about-character-scroll img {
    width: auto;
    height: 33vw;
    /* Reduced from 35vw to allow more horizontal space */
    max-height: 380px;
    min-height: 120px;
    object-fit: contain;
    flex: 0 0 auto;
    margin-left: -2vw;
    /* Reduced from -5vw (default) or -6vw (user edit) to increase spacing */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s, z-index 0s;
    position: relative;
    pointer-events: auto;
}

/* Reset margin for first item */
.about-character-scroll img:first-child {
    margin-left: 0;
}

/* Hover effect: Pop out */
.about-character-scroll img:hover {
    transform: scale(1.05) translateY(-10px);
    /* z-index not changed to keep stacking order */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

/* Individual Z-Indices for Layering */
/* Individual Z-Indices & Spacing */
/* Default (Mobile) - using vw for responsive fit */
.about-character-scroll .char-img-1 {
    z-index: 5;
    margin-left: 0;
}

.about-character-scroll .char-img-2 {
    z-index: 6;
    margin-left: -6vw;
}

.about-character-scroll .char-img-3 {
    z-index: 4;
    margin-left: -1vw;
}

.about-character-scroll .char-img-4 {
    z-index: 5;
    margin-left: -8vw;
}

/* Tighter overlap between 3 and 4 */
.about-character-scroll .char-img-5 {
    z-index: 2;
    margin-left: 2vw;
}

.about-character-scroll .char-img-6 {
    z-index: 1;
    margin-left: -2vw;
}


.about-map-wrapper {
    text-align: center;
    margin-top: 30px;
}

.about-map-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.cf-thanks-text {
    margin-bottom: 20px;
}

.cf-banner-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* PC Adjustment */
@media screen and (min-width: 769px) {
    .about-character-scroll img {
        height: 280px;
        /* Fixed nice height on PC */
        margin-left: -20px;
        /* Default overlap on PC */
    }

    /* Override individual margins for PC using px to avoid huge gaps/overlaps */
    .about-character-scroll .char-img-1 {
        margin-left: 0 !important;
    }

    .about-character-scroll .char-img-2 {
        margin-left: -40px !important;
    }

    .about-character-scroll .char-img-3 {
        margin-left: -10px !important;
    }

    .about-character-scroll .char-img-4 {
        margin-left: -60px !important;
    }

    /* Tighter overlap on PC */
    .about-character-scroll .char-img-5 {
        margin-left: 0px !important;
    }

    .about-character-scroll .char-img-6 {
        margin-left: -10px !important;
    }
}

.shop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 60px;
    background: white;
    border: 2px solid var(--c-accent-blue);
    border-radius: 30px;
    color: var(--c-accent-blue);
    font-weight: medium;
    transition: all 0.3s;
}

.shop-btn:hover {
    background: var(--c-accent-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(11, 99, 182, 0.3);
}

/* Movie Page Specific */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.video-item {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    margin-top: 10px;
    font-weight: bold;
    color: var(--c-accent-dark);
    font-size: 1.1rem;
}

/* Support Page Specific */
.dl-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    /* default fallback */
}

.dl-thumb.sheet {
    background: #ddd;
}

.dl-thumb.map {
    background: #aee1ff;
}

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

.contact-btn {
    margin: 0 auto;
    width: 250px;
}

.faq-list {
    font-family: "Noto Sans JP", sans-serif;
}

.faq-list dl {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.faq-list dt {
    background: var(--c-accent-blue);
    color: white;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
}

.faq-label {
    font-weight: bold;
}

.faq-list dd {
    padding: 20px;
    border: 1px solid #eee;
    border-top: none;
}

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

.dl-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dl-item p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.dl-item:hover {
    border-color: var(--c-accent-orange);
}

.dl-thumb {
    width: 100%;
    /* 白銀比 1:1.414 -> aspect-ratio: 1.414 / 1 */
    aspect-ratio: 1.414 / 1;
    height: auto;
    /* Remove fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.dl-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dl-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--c-accent-orange);
    color: white;
    border-radius: 20px;
    font-weight: bold;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Supporters List */
.supporters-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.supporters-title {
    text-align: center;
    font-size: 1.2rem;
    color: var(--c-accent-dark);
    margin-bottom: 20px;
    font-weight: bold;
}

.supporters-list {
    column-count: 3;
    column-gap: 20px;
    list-style: none;
    padding: 0;
    text-align: left;
}

.supporters-list li {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--c-text-main);
    margin-bottom: 5px;
    /* Add spacing since grid gap is gone */
    break-inside: avoid;
    /* Prevent splitting across columns */
}

@media (max-width: 768px) {
    .supporters-list {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .supporters-list {
        column-count: 1;
    }
}

/* Character Info Modal */
.char-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.char-modal.show {
    opacity: 1;
}

.char-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border: 4px solid var(--c-accent-blue);
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Speech bubble tail */
}

.char-modal.show .char-modal-content {
    transform: scale(1);
}

.char-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 5px;
    cursor: pointer;
}

.char-modal-close:hover,
.char-modal-close:focus {
    color: var(--c-accent-orange);
    text-decoration: none;
    cursor: pointer;
}

.char-modal-inner {
    text-align: left;
    font-family: "Noto Sans JP", sans-serif;
}

.char-role {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
}

.char-nickname {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--c-accent-dark);
    margin-bottom: 5px;
}

.char-nickname .highlight {
    color: var(--c-accent-blue);
    font-size: 1.5rem;
}

.char-name {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.char-meta {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
    background: #f0f8ff;
    padding: 10px;
    border-radius: 5px;
}

.char-quote {
    font-family: "Kiwi Maru", serif;
    font-size: 1.1rem;
    color: var(--c-accent-dark);
    font-weight: bold;
    /* Removed frame decoration */
    padding: 0 0 15px 0;
    position: relative;
    margin-bottom: 20px;
}


/* Character Image in Modal */
@media screen and (min-width: 769px) {
    .char-modal-content {
        max-width: 600px;
        /* Reverted to original width */
        display: block;
        /* Reverted to block */
    }

    .char-modal-inner {
        width: 100%;
    }
}

/* Character Face Icon Header */
.char-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.char-info-text {
    flex: 1;
    padding-right: 15px;
}

.char-face-icon {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--c-accent-blue);
    background-color: #f9f9f9;
    margin-right: 20px;
}

.char-face-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Focus on face */
}

/* Character Hover Tooltip */
#char-tooltip {
    position: fixed;
    /* Using fixed to easily follow mouse clientX/Y */
    background: rgba(255, 255, 255, 0.95);
    color: var(--c-accent-dark);
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    pointer-events: none;
    display: none;
    z-index: 9999;
    white-space: nowrap;
    font-family: "Kiwi Maru", serif;
    border: 2px solid var(--c-accent-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -150%);
    /* Center above cursor */
}

/* Guidelines Page */
.guideline-section {
    font-family: "Noto Sans JP", sans-serif;
}

.guideline-section h3 {
    font-size: 1.2rem;
    color: var(--c-accent-dark);
    border-bottom: 2px solid var(--c-accent-blue);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.guideline-section p {
    line-height: 1.5;
    margin-bottom: 1.5em;
    color: var(--c-text-main);
}

.guideline-section ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.guideline-section li {
    margin-bottom: 0.5em;
    line-height: 1.0;
}

.guideline-credit {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: 500;
}

/* Support Page - Contact Form */
.contact-form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.contact-form-wrapper iframe {
    width: 100%;
    max-width: 640px;
    border: none;
}

/* Scenario Page Specific */
.scenario-link {
    display: inline-block;
    padding: 10px 30px;
    background: var(--c-accent-blue);
    color: white;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: 2px solid var(--c-accent-blue);
}

.scenario-link:hover {
    background: white;
    color: var(--c-accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.scenario-link.disabled {
    background: #ccc;
    border-color: #ccc;
    color: #fff;
    pointer-events: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.scenario-note-text {
    text-align: left;
    color: #d9534f;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 30px;
    margin-top: -20px;
}