:root {
    --color-main: #003366;
    --color-accent: #00a0e9;
    --color-dark: #1a1a1a;
    --color-gray: #f4f4f4;
    --color-metal: #a0a0a0;
}

/* 安定したスクロールと横揺れ防止 */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    background-color: #fcfcfc; 
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip; 
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

/* --- Global Parallax Glow Background --- */
.glow-bg-container {
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}
.glow-orb {
    position: absolute;
    filter: blur(100px);
    opacity: 0.2;
    transform: skewX(-15deg);
}

/* --- Parallelogram Styles --- */
.plg-wrap {
    overflow: hidden;
    transform: skewX(-15deg);
    backface-visibility: hidden;
    background-color: #000;
}
.plg-wrap > img, .plg-wrap > iframe {
    transform: skewX(15deg) scale(1.3);
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.plg-card {
    transform: skewX(-15deg);
}
.plg-card-inner {
    transform: skewX(15deg);
    display: block;
}

/* SP時に四角形に戻す（FV・カード・動画等用）※ボタンは平行四辺形を維持 */
@media (max-width: 767px) {
    .sp-rect {
        transform: none !important;
        border-radius: 8px !important;
    }
    .sp-rect .plg-card-inner {
        transform: none !important;
    }
    .plg-wrap {
        transform: none !important;
    }
    .plg-wrap > img, .plg-wrap > iframe {
        transform: none !important;
        scale: 1.05 !important;
    }
}

/* ボタンは常に平行四辺形（中身のテキストは直立） */
.btn-plg {
    transform: skewX(-15deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-plg-inner {
    transform: skewX(15deg);
    display: block;
}

/* --- Section Diagonal Cuts --- */
.sec-diag-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
    margin-bottom: -5vw;
}
.sec-diag-both {
    clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
    margin-top: -5vw;
    padding-top: calc(5vw + 4rem);
    padding-bottom: calc(5vw + 4rem);
}
.sec-diag-footer {
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(5vw + 4rem);
}

/* --- Reveal Animations --- */
.cta-reveal {
    clip-path: inset(50% 0 50% 0);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    opacity: 0;
}
.cta-reveal.is-open {
    opacity: 1;
    clip-path: inset(0 0 0 0) !important;
}
.sec-diag-both.cta-reveal.is-open {
    clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%) !important;
}

.img-reveal {
    clip-path: inset(50% 0 50% 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    opacity: 0;
}
.img-reveal.is-open {
    clip-path: inset(0 0 0 0) !important;
    opacity: 1;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title Style */
.section-header { margin: 0 auto 60px; text-align: center; }
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #cfd8dc 0%, #ffffff 40%, #90a4ae 50%, #37474f 51%, #78909c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.5));
    display: inline-block;
    transform: skewX(-10deg);
}
@media (max-width: 768px) { .section-title { font-size: 2.5rem; } }
.section-title.jp-title { font-family: 'Noto Sans JP', sans-serif; font-size: 2.2rem; font-weight: 900; }

/* Background Effects */
.dark-fx-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.honeycomb-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/37436.svg");
    background-attachment: fixed;
    background-repeat: repeat;
    background-size: 400px; 
    filter: invert(1) opacity(0.12); 
    z-index: 1;
}

.stream-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.stream-path { fill: none; stroke-linecap: round; stroke-width: 3; }
.stream-cyan { stroke: rgba(0, 160, 233, 0.9); animation: flow-stream 4s infinite linear; }
.stream-white { stroke: rgba(255, 255, 255, 0.6); animation: flow-stream 4s infinite linear 1.5s; }
@keyframes flow-stream {
    from { stroke-dashoffset: 3000; stroke-dasharray: 150 3000; }
    to { stroke-dashoffset: 0; stroke-dasharray: 150 3000; }
}

/* Metallic Backgrounds */
.bg-metallic {
    position: relative;
    background: linear-gradient(135deg, #111 0%, #222 50%, #111 100%);
    overflow: hidden;
    z-index: 1;
}
.bg-metallic::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
    z-index: -1;
    pointer-events: none;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-metallic {
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-accent) 50%, var(--color-main) 100%);
    background-size: 200% auto;
    box-shadow: 0 4px 15px rgba(0, 160, 233, 0.4);
    transition: all 0.4s ease;
}
.btn-metallic:hover {
    background-position: right center;
    box-shadow: 0 4px 20px rgba(0, 160, 233, 0.8);
    transform: translateY(-2px) skewX(-15deg);
}

/* Voice Text */
.voice-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.voice-text.expanded {
    display: block;
}

/* Modal */
#galleryModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
