@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Dela+Gothic+One&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
    --primary: #1e293b;        /* Dark Navy */
    --accent: #fbbf24;         /* Gold */
    --accent-yellow: #ffd700;  /* Premium Yellow */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
    --border: rgba(30, 41, 59, 0.08);
    --border-yellow: 1px solid var(--accent-yellow);
    --shadow-sm: 0 4px 12px rgba(30, 41, 59, 0.05);
    --shadow-lg: 0 20px 50px rgba(30, 41, 59, 0.12);
    --radius-lg: 20px;
}

html, body {
    overflow-x: hidden; /* 左右のぶれ（横スクロール）を根本から防止 */
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

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

/* --- Header --- */
header {
    background: var(--accent-yellow); 
    background-image: linear-gradient(135deg, var(--accent-yellow) 0%, #fcd34d 100%);
    border-bottom: 4px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-container, .top-bar {
    position: relative;
    z-index: 10001;
}

/* ヘッダー装飾：削除 */
.header-deco {
    display: none;
}

@media (max-width: 768px) {
    .deco-3 { display: none; }
    .deco-1 { left: 5%; width: 40px; height: 40px; }
}

.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: flex-end;
    font-size: 0.8rem;
    font-weight: 500;
}
.top-bar a { color: var(--accent); text-decoration: none; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 5% 40px; /* Increase top padding to prevent clipping from scaled logo */
    position: relative;
    z-index: 1000;
    transition: 0.3s ease;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary) !important;
    font-family: 'Dela Gothic One', cursive;
    font-size: 2.22rem; /* 短い名称に戻ったためサイズを復元 */
    line-height: 0.85;
    letter-spacing: -0.01em;
    position: relative;
    text-shadow: none;
    white-space: nowrap;
    /* 縦横両方向に拡張：存在感のある「看板」スタイル */
    transform: skewX(-15deg) scale(1.3, 1.5);
    transform-origin: left bottom;
    transition: 0.3s;
}
.logo span { 
    font-family: 'Noto Sans JP', sans-serif;
    font-style: normal;
    font-size: 0.75rem; /* さらに大きくして視認性を極限まで向上 */
    color: var(--primary); 
    font-weight: 900; 
    margin-top: 22px; /* サイズアップに合わせて間隔を最適化 */
    letter-spacing: 0.01em;
    text-transform: none; 
    text-shadow: none;
    white-space: nowrap;
    /* 親の拡大を打ち消しつつ、はっきりと読める比率に調整 */
    transform: skewX(15deg) scale(0.8, 0.7);
    opacity: 1; /* 100%表示 */
}

.nav-toggle { display: none; }

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--primary);
    height: 2px;
    width: 25px;
    position: relative;
    transition: 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
}

.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

/* Hamburger Animation */
.nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
.nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
.nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--primary); /* Gold bg context: Navy text */
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 0;
    position: relative;
    transition: 0.3s;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* --- Hero --- */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}
.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 30px;
}

/* --- Glass/White Cards --- */
.glass-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: 0.4s;
}
.glass-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

/* --- Buttons --- */
.btn-cta {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 18px 45px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 900;
    transition: 0.3s;
}
.btn-cta:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); }

/* --- Helper --- */
.section-label {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--accent);
    display: block;
    margin-bottom: 15px;
}

/* --- Premium Headings --- */
.premium-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 40px;
    display: inline-block;
}

.premium-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Extended to full width */
    height: 8px;
    background: var(--accent-yellow);
    z-index: -1;
    border-radius: 4px;
    opacity: 0.8;
}

.premium-title-center {
    text-align: center;
    width: 100%;
}

.premium-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn-line {
    display: inline-block;
    background: #06C755;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.2);
}
.btn-line:hover {
    background: #05a647;
    transform: translateY(-2px);
}

.premium-sub {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 6px solid var(--accent-yellow);
    line-height: 1.2;
}

.premium-sub-dark {
    color: var(--primary);
    border-color: var(--primary);
}

.highlight-box {
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: 950;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.flashy-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 950;
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
}
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* Responsive Helpers */
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: center;
}

.athlete-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
    .athlete-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px !important;
    }
    .athlete-card div {
        max-width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 1024px) {
    nav a { font-size: 0.75rem; gap: 8px; }
    .nav-container { padding: 15px 2%; }
}

@media (max-width: 950px) {
    .top-bar { display: none; }
    
    .nav-toggle-label { display: block; }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--accent-yellow); /* Yellow background for mobile menu */
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.4s ease;
        z-index: 10002;
    }
    
    nav ul {
        flex-direction: column;
        padding: 10px 5% 20px; /* Overall padding reduced */
        gap: 0;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 14px 0; /* 再調整：大きすぎず押しやすいサイズ */
        font-size: 1.0rem; /* バランスよく再調整 */
        border-bottom: 1px solid rgba(0,0,0,0.08);
        width: 100%;
        color: var(--primary);
    }
    
    nav li:last-child a { border-bottom: none; }
    
    .nav-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        z-index: 10003; /* Top of top */
    }

    .nav-toggle:checked ~ nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .hero { padding: 60px 0; }
    .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .hero p { font-size: 1.1rem !important; }
    
    .container { padding: 0 24px; }
    main.container { padding: 40px 24px !important; }
    
    /* ボックスが縦に美しく積まれるように強制 */
    .intro-grid, .card-grid, .equipment-grid, .footer-grid, .benefit-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important; /* 窮屈さを解消するために余白を広げる */
        align-items: start !important;
    }

    .glass-card {
        width: 100% !important;
        height: auto !important; /* 引き伸ばし防止 */
        margin-bottom: 0 !important;
    }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    
    .slot-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .logo { font-size: 1.2rem; }
    .logo span { font-size: 0.6rem; }
    
    .table-select {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .price-grid { grid-template-columns: 1fr !important; }
    
    footer p { font-size: 0.8rem; color: rgba(255,255,255,1) !important; }
}
/* --- Page Banner Strips --- */
.page-banner {
    width: 100%;
    min-height: 280px; /* Slightly Larger */
    background: var(--accent-yellow); 
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 50%),
        linear-gradient(135deg, var(--accent-yellow) 0%, #fcd34d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-align: center;
    overflow: hidden;
    padding: 80px 0;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.page-banner::before {
    display: none; /* No overlay */
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.banner-content .section-label { color: #ffffff !important; margin-bottom: 10px; opacity: 0.9; }

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0;
}

.banner-content p {
    font-size: 1.2rem;
    margin-top: 15px;
    opacity: 1;
    letter-spacing: 0.05em;
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-banner { height: 260px; }
    .banner-content h1 { font-size: 2.2rem; }
    .banner-content p { font-size: 1rem; }
}

/* --- Yellow Borders for Cards --- */
.yellow-bordered {
    border: 1px solid var(--accent-yellow) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1) !important;
}

.yellow-bordered:hover {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.2) !important;
    border-color: var(--accent) !important;
}
/* --- Global Mobile Stacking System --- */
.stack-on-mobile {
    display: grid;
}

@media (max-width: 950px) {
    .stack-on-mobile {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
        align-items: start !important;
    }
    .stack-on-mobile > div { width: 100% !important; }
    .glass-card, .yellow-bordered { align-self: start; }
}

/* --- Animation System --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}
.reveal.active {
    opacity: 1;
    transform: none;
}

.fade-in {
    opacity: 1;
    transform: none;
}

@keyframes fadeInDown {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
}

/* Staggered Reveal Delays */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Interactive Hover Effects */
.glass-card, .yellow-bordered, .price-card, .btn-cta, .btn-modern {
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1) !important;
}

.glass-card:hover, .yellow-bordered:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: var(--shadow-lg), 0 0 30px rgba(251, 191, 36, 0.1) !important;
}

@media (max-width: 950px) {
    .nav-container { padding: 50px 5% 30px; } /* めり込み防止 */
    .logo { 
        font-size: 1.5rem; 
        transform: skewX(-15deg) scale(1.1, 1.3);
    }
    .logo span { 
        font-size: 0.5rem; 
        margin-top: 14px; 
        transform: skewX(15deg) scale(0.9, 0.77); 
    }
    .page-banner { min-height: 220px; padding: 50px 0; }
    
    /* 常に画面右上に固定していつでもメニューを開けるようにする */
    .nav-toggle-label {
        display: flex;
        position: fixed !important;
        top: 20px;
        right: 20px;
        background: var(--primary);
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 20000; /* 最前面に固定 */
    }
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        background: var(--accent) !important; /* 視認性の高いゴールドに */
    }

    nav { 
        position: fixed; /* 固定ヘッダーに対応 */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 19999;
        overflow-y: auto;
        padding-bottom: 80px;
    } 
}

/* Global Responsive Safety */
img, iframe, video, canvas {
    max-width: 100%;
    height: auto;
}

/* Fixes for mobile width issues */
@media (max-width: 768px) {
    .equipment-card, .shop-stats, .cafe-menu-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Athlete Card Responsive Fixes */
    .athlete-card {
        padding: 40px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    .athlete-card > div {
        max-width: 100% !important;
        width: 100% !important;
    }
    .athlete-card h2 {
        font-size: 1.8rem !important; /* 読みやすさと迫力のバランス */
    }
    .athlete-card div:last-child {
        margin-top: 25px !important;
        text-align: center !important;
    }
    .athlete-card div:last-child div {
        font-size: 2.8rem !important; /* 画面に収まるサイズに調整 */
    }
    
    /* Hero Title Responsive Fix: 昨日の調整に基づき、clampで適切に縮小させる */
    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        line-height: 1.2;
        text-align: center;
    }
    .hero-title span {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        display: block;
        margin-top: 10px;
    }
    .hero-sub {
        font-size: 1.1rem;
        margin: 20px auto;
        max-width: 100%;
    }
    
    .section-label {
        letter-spacing: 2px;
        font-size: 0.75rem;
        padding: 5px 15px;
    }
}
