@charset "utf-8";

:root {
    --bg-dark: #2b2b2b;
    --bg-panel: #1a1a1a;
    --gold-dim: #b89b5e;
    --gold-bright: #d4af37;
    --text-main: #f1f1f1;

    --color-yellow: #c4a13b;
    --color-orange: #B8592E;
    --color-green: #337533;
    --color-blue: #193c7b;
    --color-red: #a54040;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: "Noto Serif JP", sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
}

a {
    color: #d4af37;
}

@media (hover: hover) {
    a:hover {
        opacity: 0.5;
        transition: all 0.2s;
    }
}

.text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #f5f5f5;
    margin-bottom: 2rem;
}

span {
    display: inline-block;
}

.back {
    padding-top: 100px;
    text-align: left;
    background: #2b2b2b;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .back {
        padding-top: 80px;
    }
}

#bread-area {
    padding: 20px 5%;
    background: transparent;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.breadcrumb li {
    color: #888;
}

.breadcrumb li a {
    color: #d4af37;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb li a:hover {
    opacity: 0.7;
}

.breadcrumb li+li::before {
    content: "/";
    padding: 0 15px;
    color: #9a9a9a;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #d4af37;
}

.section-title .jp-sub {
    display: block;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.3em;
    margin-top: 5px;
    font-weight: normal;
}

.section {
    padding: 4rem 1rem;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.section::before,
#bread-area + .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(212, 175, 55, 0.6) 0%,
            transparent 30%,
            transparent 70%,
            rgba(212, 175, 55, 0.6) 100%);
    z-index: 2;
}

#bread-area + .section-title {
    position: relative;
    padding-top: 1.5rem;
}

.section-title + .section::before {
    content: none;
}

.eos-area {
    padding: 80px 0;
    background: #1f1f1f;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
}

.eos-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.eos-title {
    color: #d4af37;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eos-subtitle {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.eos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.eos-link {
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
}

.eos-link .en {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.eos-link .jp {
    color: #999;
    font-size: 0.85rem;
}

.eos-link:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .eos-area {
        padding: 50px 0;
    }

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

.pti-container {
    max-width: 1000px;
    margin: 0 auto;
    color: #eee;
    line-height: 1.8;
}

.pti-text-block {
    flex: 1.2;
}

.pti-link {
    color: #d4af37;
    text-decoration: none;
    transition: 0.3s;
}

.pti-link:hover {
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.pti-sub-title {
    color: #d4af37;
    border-left: 3px solid #d4af37;
    padding-left: 15px;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-family: "Noto Serif JP", serif;
}

.pti-system-chart-wrapper {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 2rem;
    border-radius: 4px;
}

.pti-system-img {
    max-width: 100%;
    height: auto;
    filter: brightness(0.9);
    transition: transform 0.3s ease;
}

.lineage-tree {
    display: block;
    width: 100%;
    max-width: 840px;
    height: auto;
    margin: 0 auto;
    font-family: "Noto Serif JP", serif;
}

.lineage-tree text {
    text-anchor: middle;
    dominant-baseline: central;
}

.lineage-lines path {
    fill: none;
    stroke: var(--gold-dim);
    stroke-width: 1.5;
    opacity: 0.7;
}

.lineage-node rect {
    fill: var(--bg-panel);
    stroke: var(--gold-dim);
    stroke-width: 1;
}

.lineage-node text {
    fill: var(--text-main);
    font-size: 17px;
    letter-spacing: 0.15em;
}

.lineage-node.is-root rect {
    stroke: var(--gold-bright);
    stroke-width: 1.5;
}

.lineage-node.is-goal rect {
    fill: var(--gold-bright);
    stroke: var(--gold-bright);
}

.lineage-node.is-goal text {
    fill: var(--bg-dark);
    font-size: 20px;
    font-weight: 700;
}

.lineage-branch rect {
    fill: rgba(184, 155, 94, 0.12);
    stroke: rgba(184, 155, 94, 0.4);
    stroke-dasharray: 3 3;
}

.lineage-branch text {
    fill: var(--gold-dim);
    font-size: 14px;
    letter-spacing: 0.1em;
}

.lineage-style text {
    text-anchor: start;
    fill: var(--gold-bright);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.lineage-scroll,
.lineage-scroll-hint {
    display: none;
}

@media (max-width: 768px) {
    .lineage-tree.is-pc {
        display: none;
    }

    .lineage-scroll {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--gold-dim) transparent;
    }

    .lineage-tree.is-sp {
        width: 880px;
        max-width: none;
    }

    .lineage-tree.is-sp .lineage-node text {
        font-size: 15px;
        letter-spacing: 0.1em;
    }

    .lineage-tree.is-sp .lineage-node.is-goal text {
        font-size: 18px;
    }

    .lineage-tree.is-sp .lineage-branch text {
        font-size: 13px;
    }

    .lineage-tree.is-sp .lineage-style text {
        font-size: 12px;
    }

    .lineage-scroll-hint {
        display: block;
        margin: 8px 0 0;
        color: var(--gold-dim);
        font-size: 0.75rem;
        text-align: center;
    }

    .lineage-scroll-hint::before {
        content: "\2194";
        margin-right: 0.4em;
    }
}

.pti-detail-toggle {
    display: block;
    margin: 2rem auto 0;
    background: #e6c65c;
    border: none;
    border-radius: 999px;
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.9rem 2rem;
    cursor: pointer;
    transition: 0.3s;
}

@media (hover: hover) {
    .pti-detail-toggle:hover {
        background: #f3d97f;
        transform: translateY(-2px);
    }
}

.pti-detail-content {
    display: none;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px inset rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    animation: fadeIn 0.5s ease;
}

.pti-detail-inner h4 {
    color: #d4af37;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.pti-detail-close {
    display: block;
    margin: 2rem auto 0;
    background: #e6c65c;
    border: none;
    border-radius: 999px;
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.9rem 2rem;
    cursor: pointer;
    transition: 0.3s;
}

@media (hover: hover) {
    .pti-detail-close:hover {
        background: #f3d97f;
        transform: translateY(-2px);
    }
}

.pti-link-arrow {
    display: inline-block;
    margin-top: 20px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

@media (hover: hover) {
    .pti-link-arrow:hover {
        color: #fff;
        transform: translateX(5px);
    }
}

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

@media screen and (max-width: 768px) {
    .pti-system-chart-wrapper {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .pti-text-block {
        margin-top: 1.5rem;
        text-align: left;
    }
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.video-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

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

.arts-index-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.arts-index-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.25);
    text-decoration: none;
    transition: border-color 0.3s, transform 0.3s;
}

.arts-index-card:hover {
    opacity: 1;
    border-color: var(--gold-bright);
    transform: translateY(-4px);
}

.arts-index-logo {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    margin-bottom: 1rem;
}

.arts-index-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.arts-index-logo::after {
    content: '';
    position: absolute;
    inset: calc(4.17% - 2px);
    border: 3px solid var(--gold-bright);
    border-radius: 50%;
    pointer-events: none;
}

.arts-index-name {
    color: var(--gold-bright);
    font-size: 1.3rem;
    letter-spacing: 0.15em;
}

.arts-index-en {
    color: #888;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .section-title + .section {
        padding-top: 1rem;
    }

    .arts-index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .arts-index-name {
        font-size: 1.1rem;
    }
}

.arts-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 180;
    background: rgba(18, 18, 18, 0.92);
    border-top: 1px solid var(--gold-dim);
    backdrop-filter: blur(6px);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.4s ease, visibility 0.4s ease;
}

.arts-nav.is-show {
    transform: translateY(0);
    visibility: visible;
}

.arts-nav_list {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 8px 16px;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.arts-nav_list::-webkit-scrollbar {
    display: none;
}

.arts-nav_link {
    display: block;
    padding: 8px 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.arts-nav_link:hover {
    opacity: 1;
    color: var(--gold-bright);
}

.arts-nav_link.is-current {
    color: var(--gold-bright);
    border-bottom-color: var(--gold-bright);
    pointer-events: none;
}

body.is-arts-nav-show .pagetop {
    bottom: 90px;
}

.arts-nav_back {
    display: none;
}

@media (max-width: 768px) {
    .arts-nav {
        left: 50%;
        right: auto;
        bottom: 20px;
        background: none;
        border-top: none;
        backdrop-filter: none;
        transform: translate(-50%, calc(100% + 20px));
    }

    .arts-nav.is-show {
        transform: translate(-50%, 0);
    }

    .arts-nav_list {
        display: none;
    }

    .arts-nav_back {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        height: 45px;
        padding: 0 1.4rem;
        border-radius: 999px;
        background: #e6c65c;
        color: #1a1a1a;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    .arts-nav_back:hover {
        opacity: 1;
        background: #f3d97f;
    }

    .arts-nav_back i {
        font-size: 0.75rem;
    }

    body.is-arts-nav-show .pagetop {
        bottom: 20px;
    }
}

.arts-detail-page .cnt-article {
    padding: 0 2rem 5rem;
}

.arts-detail-page .cnt-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.arts-detail-page .cnt-section > :last-child {
    margin-bottom: 0;
}

.arts-detail-page .cnt-section--bg {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.arts-detail-page .cnt-overview--bg {
    display: flex;
    align-items: center;
    min-height: 150px;
    margin-bottom: 2rem;
}

.arts-detail-page .cnt-overview--bg .cnt-overview-text {
    max-width: 60%;
}

.arts-detail-page .cnt-overview--bg .cnt-overview-text .pti-description {
    margin: 0;
}

.arts-detail-page .cnt-overview--bg .cnt-overview-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 62%;
    height: 100%;
    max-height: 460px;
    z-index: -1;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 75%), linear-gradient(to bottom, #000 70%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 75%), linear-gradient(to bottom, #000 70%, transparent);
    mask-composite: intersect;
    pointer-events: none;
}

.arts-detail-page .cnt-overview--bg .cnt-overview-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.arts-detail-page .pti-video-link {
    padding: 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.arts-detail-page .cnt-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 280px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    background: #e6c65c;
    border: none;
    border-radius: 999px;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

@media (hover: hover) {
    .arts-detail-page .cnt-accordion-trigger:hover {
        background: #f3d97f;
        transform: translateY(-2px);
    }
}

.arts-detail-page .cnt-accordion-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.arts-detail-page .cnt-accordion-trigger.is-open .cnt-accordion-icon {
    transform: rotate(180deg);
}

.arts-detail-page .cnt-accordion-body {
    display: none;
}

.arts-detail-page .cnt-accordion-body.is-open {
    display: block;
}

.arts-detail-page .cnt-accordion-inner {
    padding: 2rem 0 0.5rem;
}

.arts-detail-page .cnt-accordion-inner .pti-description + .pti-description {
    margin-top: 1.5rem;
}

.arts-detail-page .cnt-overview-text h4,
.arts-detail-page .cnt-accordion-inner h4 {
    margin: 1.5rem 0 0.5rem;
    color: #e6c65c;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.arts-detail-page .cnt-overview-text h4:first-child,
.arts-detail-page .cnt-accordion-inner h4:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .arts-detail-page .cnt-article {
        padding: 0 1rem 3rem;
    }

    .arts-detail-page .cnt-section {
        padding: 1.5rem 1.2rem;
        border-radius: 18px;
    }

    .arts-detail-page .cnt-overview--bg {
        min-height: 0;
    }

    .arts-detail-page .cnt-overview--bg .cnt-overview-text {
        max-width: none;
    }

    .arts-detail-page .cnt-overview--bg .cnt-overview-img {
        width: 100%;
        max-height: 320px;
        opacity: 0.35;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 60%), linear-gradient(to bottom, #000 60%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 60%), linear-gradient(to bottom, #000 60%, transparent);
    }

    .arts-detail-page .cnt-overview--bg .cnt-overview-img--zoom-sp {
        max-height: 416px;
    }
}
