/* loading_progressBar アニメーション */
#loadingBar-container {
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: #000000;
    color: #fff;
    text-align: center;
}

#loadingBar {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: #fff;
}

/* loading spinner アニメーション */
#loading-spinner-container {
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px #fff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

* {
    font-family: "Pixelify Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light;
}

body {
    color: #333333;
    background-color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.fadein {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.5s;
    display: flex;
}

@media (max-width: 786px) {
    .fadein {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

header {
    position: fixed;
    z-index: 998;
    height: 80px;
    width: 100%;
    background-color: #f2f2f261;
    backdrop-filter: blur(8px);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 24px;
    letter-spacing: 0.1em;
    margin-left: 20px;
}

header ul {
    display: flex;
    column-gap: 40px;
    justify-content: space-between;
    list-style: none;
}

header ul a {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

header .container ul li:nth-child(1) a:hover {
    color: #119100;
}

header .container ul li:nth-child(2) a:hover {
    color: #ff0000;
}

header .container ul li:nth-child(3) a:hover {
    color: #0066ff;
}

header .container ul li:nth-child(4) a:hover {
    color: #9b2eff;
}

header .container ul li:nth-child(5) a:hover {
    color: #c06c00;
}

@media(max-width:786px) {
    header .container {
        justify-content: center;
    }

    header h1 {
        margin: 0 0;
    }

    header ul {
        display: none;
    }
}

.firstview {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.firstview-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.firstview h1 {
    font-size: 100px;
    margin: 0;
    letter-spacing: 0.05em;
}

.rotating-text {
    font-size: 36px;
    margin-top: 20px;
    height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-item {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.firstview video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 786px) {
    .firstview h1 {
        font-size: 80px;
    }
}

.gradation {
    position: relative;
}

.gradation::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, transparent, transparent, transparent, transparent, transparent, #ffffff);
}

.survival {
    margin-top: 50px;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    overflow: hidden;
}

.survival img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
}

.section1-container {
    position: absolute;
    top: 45%;
    left: 4%;
    width: 100%;
    height: 0%;
    display: flex;
    flex-direction: column;
    row-gap: 7px;
}

.survival h1 {
    font-size: 120px;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000;
    transition: all 0.3s ease;
}


.survival h1 span {
    /* display: inline-block; */
    transition: all 0.3s ease;
}

.survival h1 span:hover {
    color: #ffffff;
    text-shadow: 2px 2px 8px #1eff00;
}

.survival-p1 {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 1px 1px 3px #000000;
}

.survival-p2 {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 1px 1px 3px #000000;
}

@media (max-width: 786px) {
    .section1-container {
        position: static;
    }

    .survival h1 {
        font-size: 85px;
    }

    .survival-p1,
    .survival-p2 {
        font-size: 15px;
    }
}

.gradation2 {
    position: relative;
}

.gradation2::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #ffffff, transparent, transparent, transparent, #000000);
}

.pvp {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #1a1a1a;
    overflow: hidden;
}

.pvp img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
}

.section2-container {
    position: absolute;
    top: 45%;
    left: 4%;
    width: 100%;
    height: 0%;
    display: flex;
    flex-direction: column;
    row-gap: 7px;
}

.pvp h1 {
    font-size: 160px;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000;
}

.pvp h1 span {
    transition: all 0.3s ease;
}

.pvp h1 span:hover {
    /* color: #ffffff; */
    text-shadow: 2px 2px 4px #ff0000;
    animation: pvpGlow 3s ease-in-out infinite;
    animation-delay: 0.31s;
}

@keyframes pvpGlow {
    0% {
        text-shadow: 2px 2px 8px #ff0000;
    }

    50% {
        text-shadow: 2px 2px 8px #ffe748;
    }

    100% {
        text-shadow: 2px 2px 8px #ff0000;
    }
}

.pvp-p1 {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 1px 1px 3px #000000;
}

.pvp-p2 {
    font-size: 18px;
    color: #ffffff;
    text-shadow: 1px 1px 3px #000000;
}

@media (max-width: 786px) {
    .pvp img {
        object-position: -500px;
    }

    .section2-container {
        position: static;
    }

    .pvp h1 {
        font-size: 120px;
    }

    .pvp-p1,
    .pvp-p2 {
        font-size: 15px;
    }
}

.gradation3 {
    position: relative;
}

.gradation3::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #000000, transparent, transparent, transparent, transparent, transparent, #ffffff);
}

.build {
    margin-top: 50px;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.build img {
    width: 50%;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
}

.section3-container {
    position: absolute;
    top: 30%;
    left: 55%;
    width: 100%;
    height: 0%;
    display: flex;
    flex-direction: column;
    row-gap: 7px;
}

.build h1 {
    font-size: 160px;
    color: #000000;
}

.build h1 span {
    transition: all 0.3s ease;
}

.build h1 span:hover {
    text-shadow: 2px 2px 8px #119100;
}

.build-p1 {
    font-size: 16px;
    color: #000000;
    text-shadow: 1px 1px 3px #ffffff;
}

.build-p2 {
    font-size: 18px;
    color: #000000;
    text-shadow: 1px 1px 3px #ffffff;
}

@media (max-width: 786px) {
    .build img {
        width: 100%;
    }

    .section3-container {
        position: static;
    }

    .build h1 {
        color: #ffffff;
        font-size: 100px;
        text-shadow: 1px 1px 3px #000000;
    }

    .build-p1,
    .build-p2 {
        color: #ffffff;
        font-size: 14px;
        text-shadow: 1px 1px 3px #000000;
    }
}

.gradation4 {
    position: relative;
}

.gradation4::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #ffffff, transparent, transparent, transparent, transparent);
}

footer {
    width: 100%;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer p {
    color: #666666;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin: 0;
}

footer a {
    text-decoration: underline;
}

/* licenses.html styles */
body.licenses-page {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

body.licenses-page .container {
    max-width: 100vw;
    background-color: white;
}

body.licenses-page h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

body.licenses-page h2 {
    color: #555;
    margin-top: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.license-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #8B4513;
}

.license-item h3 {
    margin-top: 0;
    color: #333;
}

.license-item p {
    margin: 10px 0;
    line-height: 1.6;
    color: #666;
}

body.licenses-page a {
    color: #0066cc;
    text-decoration: underline;
    overflow-wrap: break-word;
    word-break: break-word;
}

.license-original-code-title {
    overflow-wrap: break-word;
    word-break: break-word;
}

body.licenses-page footer a {
    color: #666;
}

/* survival.html styles */
body.survival-detail-page {
    background-color: #f4f8f2;
}

body.survival-detail-page header .container ul.survival-nav {
    column-gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.survival-detail-page header .container ul.survival-nav li a {
    text-transform: none;
    font-size: 15px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

body.survival-detail-page main {
    padding-top: 80px;
}

.survival-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-bottom: 1px solid #dbe6d6;
}

.survival-hero-image-wrap {
    position: absolute;
    inset: 0;
}

.survival-hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
}

.survival-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(7, 17, 5, 0.82), rgba(17, 49, 14, 0.58));
}

.survival-hero-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.survival-kicker {
    font-size: 14px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.beta-badge {
    display: inline-block;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.survival-hero-text h1 {
    font-size: clamp(38px, 7vw, 88px);
    line-height: 1;
    margin-bottom: 22px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
}

.survival-hero-text p {
    max-width: 1100px;
    font-size: 20px;
    line-height: 1.65;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
}

.survival-content {
    padding-top: 56px;
    padding-bottom: 56px;
    display: grid;
    gap: 30px;
}

.survival-block {
    background-color: #ffffff;
    border: 1px solid #dde6da;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(18, 40, 16, 0.08);
}

.survival-block h2 {
    font-size: clamp(28px, 4.5vw, 44px);
    color: #184313;
    margin-bottom: 16px;
    line-height: 1.2;
}

.survival-block p {
    color: #2f372d;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.survival-block p:last-child {
    margin-bottom: 0;
}

.guide-steps {
    padding-left: 1.4em;
    margin: 18px 0 16px;
}

.guide-steps li {
    color: #2f372d;
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 11px;
}

.guide-steps li:last-child {
    margin-bottom: 0;
}

.support-link-text {
    margin-top: 8px;
}

.survival-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #d4dfcf;
    margin-bottom: 16px;
}

.align-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.justify-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.survival-cta {
    position: relative;
    background: linear-gradient(135deg, #142716, #1e4c1e, #317941, #309345);
    padding: 64px 0;
    overflow: hidden;
}

.survival-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
}

.survival-cta p.survival-cta-kicker {
    max-width: none;
    font-size: 14px;
    letter-spacing: 0.2em;
    opacity: 0.9;
    margin-bottom: 12px;
}

.survival-cta h2 {
    font-size: clamp(34px, 6vw, 62px);
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.survival-cta p {
    max-width: 860px;
    margin: 0 auto 24px;
    font-size: 18px;
    line-height: 1.8;
}

.survival-cta p.survival-cta-sub {
    max-width: 920px;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.survival-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.survival-cta-primary,
.survival-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.survival-cta-primary {
    color: #1f441a;
    background: linear-gradient(140deg, #ffffff, #d9ffb9);
    box-shadow: 0 10px 26px rgba(11, 24, 8, 0.35);
}

.survival-cta-secondary {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
}

.survival-cta-primary:hover,
.survival-cta-secondary:hover {
    transform: translateY(-2px);
}

.survival-cta-primary:hover {
    box-shadow: 0 14px 30px rgba(6, 16, 5, 0.4);
}

.survival-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.recipe-catalog-block>p {
    margin-bottom: 20px;
}

.recipe-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.recipe-card {
    background-color: #f8fbf6;
    border: 1px solid #d9e4d2;
    border-radius: 12px;
    padding: 14px;
}

.recipe-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 12px;
}

.recipe-card h3 {
    color: #184313;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.25;
}

.recipe-card p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.recipe-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 786px) {
    body.survival-detail-page header {
        height: auto;
    }

    body.survival-detail-page header .container {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 4px 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.survival-detail-page header .container ul.survival-nav {
        display: flex;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        column-gap: 14px;
        padding-bottom: 4px;
    }

    body.survival-detail-page main {
        padding-top: 118px;
    }

    .survival-hero {
        min-height: 64vh;
    }

    .survival-hero-text {
        padding-top: 70px;
        padding-bottom: 48px;
    }

    .survival-hero-text p {
        font-size: 17px;
    }

    .survival-content {
        padding-top: 38px;
        padding-bottom: 42px;
        gap: 22px;
    }

    .survival-block {
        padding: 20px;
        border-radius: 12px;
    }

    .survival-block p {
        font-size: 16px;
    }

    .guide-steps li {
        font-size: 16px;
    }

    .recipe-catalog-grid {
        grid-template-columns: 1fr;
    }

    .recipe-card h3 {
        font-size: 22px;
    }

    .survival-cta {
        padding: 48px 0;
    }

    .survival-cta p {
        font-size: 16px;
    }

    .survival-cta p.survival-cta-sub {
        margin-bottom: 22px;
    }

    .survival-cta-actions {
        flex-direction: column;
    }

    .survival-cta-primary,
    .survival-cta-secondary {
        width: 100%;
        max-width: 360px;
        font-size: 18px;
        min-height: 54px;
        padding: 12px 20px;
    }
}

.linkintext {
    color: #288323;
    text-decoration: underline;
}

/* Tooltip Styles */
.tooltip-trigger {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #333333;
    transition: color 0.2s ease;
}

.tooltip-trigger:hover {
    color: #119100;
}

.tooltip-box {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333333;
}

.tooltip-trigger:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
}

.tooltip-trigger .tooltip-image {
    /* min-width: 250px;
    max-width: 300px; */
    width: 250px;
    height: auto;
    margin-bottom: 8px;
    display: block;
}

.tooltip-trigger .tooltip-video {
    width: 250px;
    height: auto;
    margin-bottom: 8px;
    display: block;
}

/* Image only tooltip */
.tooltip-box.image-only {
    padding: 8px;
    white-space: normal;
    background-color: transparent;
    box-shadow: none;
}

.tooltip-box.image-only::after {
    display: none;
}

.tooltip-box.image-only img {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Text in tooltip */
.tooltip-text {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
}