﻿@charset "UTF-8";

/* ==========================================================================
   Yuhigaoka Common Design System (Core)
   ========================================================================== */

:root {
    /* Base Color Tokens (Overridable in LP style.css) */
    --main-blue: #003366;
    --main-blue-dark: #002244;
    --main-blue-light: #e6f0fa;
    --accent-orange: #f39c12;
    --resolve-green: #2ecc71;
    --resolve-green-dark: #27ae60;
    --alert-red: #e74c3c;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dfe6e9;

    /* Common Shadow & Transitions */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --transition-base: all 0.3s ease;

    /* Typography */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   Common Components
   ========================================================================== */

/* Shimmer Effect */
.shimmer-btn {
    position: relative;
    overflow: hidden !important;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: none;
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }

    30% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Mouse Glow */
.mouse-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
    /* transform: translate(-50%, -50%); Removed to avoid conflict with JS */
    margin-left: -300px;
    margin-top: -300px;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title Decoration */
.section-title {
    text-align: center;
    font-family: var(--font-serif);
    position: relative;
    padding-bottom: 24px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* Floating CTA Base */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Dynamic Elements Styles (Merged)
   ========================================================================== */

/* Scroll Progress Bar */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

#scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--main-blue), var(--accent-orange));
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Count Up Animation */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* Interactive Hover Effects */
.interactive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Simulators & Tools Common Layout */
.dynamic-tool-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--main-blue);
}

.tool-ui-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .tool-ui-wrap {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ==========================================================================
   Universal Glossary & FAQ Styles (Core)
   ========================================================================== */
.glossary-wrapper {
    padding: 60px 0;
    background: #fdfbf9;
}

.glossary-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.glossary-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.glossary-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar TOC */
.glossary-toc {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.toc-list li {
    margin-bottom: 15px;
}

.toc-list a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-gray);
    transition: all 0.3s;
}

.toc-list a:hover,
.toc-list a.active {
    background: var(--main-blue-light);
    color: var(--main-blue);
    font-weight: bold;
}

/* Description List Cards (Term Card) */
.term-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.term-header {
    padding: 20px 25px;
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.term-header:hover {
    background: #fcfcfc;
}

/* Arrow Icon for Term Header */
.term-header::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--main-blue);
    border-bottom: 2px solid var(--main-blue);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.term-header.is-open::after {
    transform: rotate(-135deg);
}

.term-dt {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.term-dd {
    padding: 0 25px 25px;
    color: var(--text-gray);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.term-dd.is-open {
    /* height handled by JS via max-height styling */
}

/* Responsive */
@media (max-width: 768px) {
    .glossary-layout {
        flex-direction: column;
    }

    .glossary-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 40px;
    }
}

/* FAQ Accordion Styles (Generic for .faq-item) */
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-question:hover {
    background: #fcfcfc;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    margin-left: 15px;
    transition: transform 0.3s;
    color: var(--main-blue);
}

.faq-question.is-open::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    color: var(--text-gray);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    opacity: 0;
}

.faq-answer.is-open {
    padding: 25px;
    border-top: 1px solid #f9f9f9;
    opacity: 1;
}

/* ドットインジケーターのフッター重なり防止 (共通CSS) */
@media (max-width: 768px) {

    .slider-dots,
    .hero-dots {
        bottom: 80px !important;
    }
}

/* スライダードットの基本形状 (プログレスリング対応・全LP共通) */
.slider-dots .dot,
.hero-dots .dot {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ドットの内側の丸（ポイント） */
.slider-dots .dot .dot-inner,
.hero-dots .dot .dot-inner {
    display: block;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 50%;
    transition: background-color 0.3s ease, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.slider-dots .dot:hover .dot-inner,
.hero-dots .dot:hover .dot-inner {
    background-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* アクティブ時の内側の丸 */
.slider-dots .dot.is-active .dot-inner,
.hero-dots .dot.is-active .dot-inner {
    background-color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* プログレスリング SVG (全LP共通) */
.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.progress-ring__circle {
    stroke-dasharray: 63;
    stroke-dashoffset: 63;
}

/* アクティブ時のプログレスリング表示 */
.slider-dots .dot.is-active .progress-ring,
.hero-dots .dot.is-active .progress-ring {
    opacity: 1;
}

/* プログレスリングアニメーション (8秒間) */
.slider-dots .dot.is-active .progress-ring__circle,
.hero-dots .dot.is-active .progress-ring__circle {
    animation: progressRing 8s linear forwards;
}

@keyframes progressRing {
    0% {
        stroke-dashoffset: 63;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* アクティブ時のドット背景（全LP共通のテーマカラーを適用） */
.slider-dots .dot.is-active,
.hero-dots .dot.is-active {
    background-color: var(--color-cta, var(--accent-orange, #FF9F00)) !important;
    border-color: var(--color-cta, var(--accent-orange, #FF9F00)) !important;
    transform: scale(1.2) !important;
}