/* ================================================
   BIKE ENDURO RACE - Refactored Stylesheet
   ================================================ */

/* ================================================
   1. CSS変数定義
   ================================================ */
:root {
    /* カラーパレット */
    --color-key: rgb(172, 249, 255);
    --color-key2: rgb(77, 142, 107);
    --color-text: #302c2c;
    --color-text-light: #555;
    --color-text-white: #fff;
    --color-text-dark: #1f1f1f;
    --color-text-gray: #4c4a4a;
    --color-text-light-gray: #a5a5a5;
    --color-link: #2632d9;
    --primary-color: rgb(51, 145, 152);
    --secondary-color: rgb(158, 134, 129);
    --accent-color: rgb(164, 223, 228);
    --success-color: #21b903;
    --danger-color: #d81a14;
    --warning-color: #eda229;
    --info-color: #2699dc;
    --alert-color: #FF6347;
    --rank-bg: #222;
    --rank-points: #9c782e;
    --footer-bg: #333;
    --footer-hover: #555;
    
    /* 背景色 */
    --bg-white: #fff;
    --bg-light: #f5f5f5;
    --bg-dark: #1f1f1f;
    
    /* ボーダー・シャドウ */
    --border-color: #ccc;
    --border-color-light: #a5a5a5;
    --shadow-light: 0 0 15px -3px rgba(165, 165, 165, 1);
    --shadow-hover: 0 0 15px -1px rgba(76, 74, 74, 1);
    --shadow-card: 0 0 15px 1px rgba(202, 202, 202, 1);
    --shadow-card-hover: 0 0 15px 4px rgba(202, 202, 202, 1);
    --shadow-header: 0 1px 3px 0 rgba(165, 165, 165, 1);
    --shadow-logo: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-text: 1px 1px 0 var(--color-text), -1px -1px 0 var(--color-text), 
                   -1px 1px 0 var(--color-text), 1px -1px 0 var(--color-text), 
                   0px 1px 0 var(--color-text), -1px 0 var(--color-text), 
                   -1px 0 0 var(--color-text), 1px 0 0 var(--color-text);
    --shadow-text-dark: #000 1px 0 10px;

    /* https://grabient.com/HQVgzAHANKDsCcMQAYCMUC0rhldHs6GywATMvqvLDKajTgGxhSnCMQvKvDLwAsMXCCFoo2fqRFZQ8CEA?style=linearGradient&steps=7&angle=225 */
    
    /* レイアウト */
    --header-height: 73px;
    --header-height-mobile: 80px;
    --nav-height: 60px;
    --container-padding: .4rem;
    --section-padding-x: 32px;
    --section-padding-x-mobile: 2%;
    
    /* スペーシング */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* ボーダーラジウス */
    --radius-sm: 3px;
    --radius-md: 10px;
    --radius-lg: 30px;
    --radius-xl: 1.5rem;
    
    /* トランジション */
    --transition-default: all 0.3s;
    --transition-hover: all 0.4s;
    --transition-slow: all 0.5s;
    --transition-menu: all 0.6s;
    
    /* フォントサイズ */
    --font-xs: 1.2rem;
    --font-sm: 1.3rem;
    --font-md: 1.6rem;
    --font-lg: 1.8rem;
    --font-xl: 2.0rem;
    --font-2xl: 2.2rem;
    --font-3xl: 2.6rem;
    --font-4xl: 4.2rem;
    
    /* フォントウェイト */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-black: 900;
    
    /* Z-index */
    --z-header: 998;
    --z-nav: 998;
    --z-modal: 999;
    --z-burger: 9999;
    --z-logo-fixed: 999;
    --z-logo-sp: 1000;
    --z-hero-title: 99;
    --z-slide-logo: 10;
    --z-ribbon: 100;
    
    /* Breakpoints (for reference) */
    --breakpoint-sm: 480px;
    --breakpoint-md: 600px;
    --breakpoint-lg: 768px;
    --breakpoint-xl: 840px;
}

/* ================================================
   2. リセット・ベーススタイル
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base */
    font-family: YakuHanJP, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
    background: var(--bg-white);
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    font-size: var(--font-md);
    color: var(--color-text);
}

/* ================================================
   3. タイポグラフィ
   ================================================ */
h1, .h1 { font-size: clamp(2.4rem, 1.9rem + 2vw, 3.4rem); }
h2, .h2 { font-size: clamp(2.2rem, 1.989rem + 0.84vw, 3rem); }
h3, .h3 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); }
h4, .h4 { font-size: clamp(1.9rem, 1.55rem + 1.4vw, 2.6rem); }
h5, .h5 { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem); }
h6, .h6 { font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-weight: var(--font-bold);
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
}

h5, h6, .h5, .h6 {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    font-weight: var(--font-medium);
    line-height: 1.4;
}

/* タイトル装飾 */
.title-underline {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.title-underline::before {
    content: "";
    width: 60px;
    height: 4px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-color);
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    margin: auto;
}

/* 基本テキスト要素 */
p {
    margin-bottom: var(--spacing-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: var(--transition-default);
}

hr {
    margin-bottom: 15px;
}

/* リスト */
ul, ol {
    margin-bottom: var(--spacing-md);
    margin-left: 18px;
}

ul li, ol li {
    margin-bottom: var(--spacing-sm);
}

ul:last-child, ol:last-child {
    margin-bottom: 0;
}

ul.list-date {
    list-style-type: none;
    margin-left: 0;
}

ol.index {
    display: flex;
    flex-wrap: wrap;
    column-gap: 50px;
    justify-content: center;
}

blockquote {
    margin-bottom: var(--spacing-md);
}

/* ================================================
   4. ユーティリティクラス
   ================================================ */
.color-key { color: var(--color-key); }
.color-key2 { color: var(--color-key2); }

.scroll-stop {
    scroll-margin-top: 100px;
}

.banner {
    width: 100%;
    transition: var(--transition-default);
    box-shadow: var(--shadow-light);
    border-radius: var(--radius-md);
}

.banner:hover {
    box-shadow: var(--shadow-hover);
}

/* ================================================
   5. レイアウト・コンテナ
   ================================================ */
.wrapper {
    padding-top: 0;
}

.wrapper.padding {
    padding-top: var(--nav-height);
}

.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

.container.width-xxl { max-width: 1296px; }
.container.width-xl { max-width: 1136px; }
.container.width-lg { max-width: 976px; }
.container.width-md { max-width: 856px; }
.container.width-sm { max-width: 616px; }
.container.width-xs { max-width: 496px; }

.section {
    padding-top: clamp(var(--spacing-md), 14px + 1.5vw, 32px);
    padding-bottom: clamp(var(--spacing-md), 10px + 2.5vw, var(--spacing-lg));
    padding-left: var(--section-padding-x);
    padding-right: var(--section-padding-x);
    margin-bottom: var(--spacing-md);
}

.section.sec-color {
    background: var(--bg-white);
}

/* ================================================
   6. ヘッダー
   ================================================ */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--bg-white);
    transition: var(--transition-slow);
}

.header a {
    text-decoration: none;
}

/* ロゴ */
.cl-logo {
    padding: 5px 0;
    width: calc(100% / 3);
}

.cl-logo img {
    width: 150px;
    margin: 12px 0;
}

.cl-logo-fixed {
    width: 80px;
    position: fixed;
    left: 15px;
    top: 5px;
    z-index: var(--z-logo-fixed);
    display: none;
}

.cl-logo-sp {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    z-index: var(--z-logo-sp);
}

.event-logo {
    text-align: center;
    width: calc(100% / 3);
}

.event-logo img {
    width: 140px;
}

/* ヘッダーSNS */
ul.header-sns {
    display: flex;
    gap: var(--spacing-sm);
    list-style-type: none;
    justify-content: flex-end;
    width: calc(100% / 3);
    margin: 0;
}

ul.header-sns li {
    width: 40px;
}

ul.header-sns a {
    text-decoration: none;
    font-size: var(--font-xl);
}

/* ================================================
   7. ナビゲーション
   ================================================ */
.nav-container {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
}

.nav-container.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-nav);
    box-shadow: var(--shadow-header);
}

ul.global-nav {
    height: var(--nav-height);
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

ul.global-nav li {
    width: calc(100% / 6);
    margin: 0;
}

ul.global-nav li a {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    height: 100%;
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: var(--font-bold);
    color: var(--bg-white);
    line-height: 1.2;
}

ul.global-nav li a:hover,
ul.global-nav li.active a {
    color: var(--color-key);
}

/* ================================================
   8. ヒーローセクション
   ================================================ */
.hero {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-md);
    position: relative;
    height: auto;
    min-height: 25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .decoration {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 97;
    opacity: .9;
    max-width: 600px;
}

.hero .decoration2 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 97;
    opacity: .9;
    max-width: 600px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 400% 400%; */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
}

/* 1. 現在の左右移動 */
/* @keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
} */

/* 2. 対角線移動 */
/* @keyframes gradientShift {
    0%, 100% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
} */

/* 3. 回転効果 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

/* 4. 上下移動 */
/* @keyframes gradientShift {
    0%, 100% { background-position: 50% 0%; }
    50% { background-position: 50% 100%; }
} */

/* 5. ズームイン・アウト効果（background-sizeも変更必要） */
/* @keyframes gradientShift {
    0%, 100% {
        background-position: 50% 50%;
        background-size: 200% 200%;
    }
    50% {
        background-position: 50% 50%;
        background-size: 300% 300%;
    }
} */

/* Splideスライダー */
.hero .splide {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 152.5rem;
    margin: calc(5vh) calc(5vw);
}

.hero .splide__slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.hero .splide__progress {
    margin-top: var(--radius-xl);
}

/* .hero .splide__progress__bar {
    background: white;
} */

.hero .splide__pagination {
    position: relative;
    top: 1rem;
}

/* スライド内のロゴ */
.splide__slide {
    position: relative;
}

.splide__slide.with-logo .slide-logo {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: var(--z-slide-logo);
    width: 180px;
    height: auto;
}

.splide__slide:not(.with-logo) .slide-logo {
    display: none;
}

.hero .splide__slide .slide-logo img {
    border-radius: 0;
}

.slide-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(var(--shadow-logo));
}

/* ヒーロータイトル */
.hero-title {
    position: absolute;
    z-index: var(--z-hero-title);
    /* top: 18%;
    left: 10%; */
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    color: var(--bg-white);
    font-weight: var(--font-black);
    /* font-size: clamp(28px, 16px + 3.64vw, 60px); */
    font-size: clamp(28px, 16px + 2.5vw, 45px);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title-large,
.hero-title-small,
.hero-copy,
.hero-place,
.hero-date,
.hero-entry {
    color: var(--bg-white);
    text-shadow: var(--shadow-text);
    margin-bottom: var(--spacing-sm);
}

.hero-title-large {
    display: inline-block;
}

.hero-title-large::before,
.hero-title-small::before,
.hero-copy::before,
.hero-place::before,
.hero-date::before,
.hero-entry::before {
    content: attr(data-text);
    position: absolute;
    z-index: -1;
}

.hero-title-large::before {
    text-shadow: 4px 4px var(--color-key2);
    -webkit-text-stroke: 4px var(--color-key2);
}

.hero-title-small {
    font-size: var(--font-4xl);
    font-weight: var(--font-black);
}

.hero-title-small::before {
    text-shadow: 3px 3px var(--color-key2);
    -webkit-text-stroke: 3px var(--color-key2);
}

.hero-copy {
    font-size: var(--font-2xl);
    margin-bottom: 12px;
}

.hero-copy::before {
    text-shadow: 2px 2px var(--color-key2);
    -webkit-text-stroke: 2px var(--color-key2);
}

.hero-place {
    font-size: var(--font-md);
}

.hero-place::before {
    text-shadow: 2px 2px var(--color-key2);
    -webkit-text-stroke: 2px var(--color-key2);
}

.hero-date {
    margin-bottom: 12px;
}

.hero-date::before {
    text-shadow: 4px 4px var(--color-key2);
    -webkit-text-stroke: 4px var(--color-key2);
}

.hero-entry {
    font-size: var(--font-md);
    margin-bottom: 12px;
}

.hero-entry::before {
    text-shadow: 2px 2px var(--color-key2);
    -webkit-text-stroke: 2px var(--color-key2);
}

/* ================================================
   9. ページヘッダー
   ================================================ */
.page-header {
    height: 220px;
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* オーバーレイ用の疑似要素 */
.page-header.with-image::before,
.page-header.outline::before,
.page-header.entry::before,
.page-header.category::before,
.page-header.course::before,
.page-header.sp::before,
.page-header.rule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 210, 246, 0.2);
}

/* 背景画像の指定 */
.page-header.with-image {
    background-image: url('../../images/hero-default.webp');
}

.page-header.entry {
    background-image: url('../../images/hero-entry4.webp');
}

.page-header.category {
    background-image: url('../../images/hero-category.webp');
}

.page-header.course {
    background-image: url('../../images/hero-course.webp');
}

.page-header.rule {
    background-image: url('../../images/hero-rules.webp');
}

.page-header.sp {
    background-image: url('../../images/hero-sp2.webp');
}

.page-header.outline {
    background-image: url('../../images/hero-outline.webp');
}

h1.page-header-title {
    color: var(--bg-white);
    margin: 0;
    padding: 0;
    text-shadow: var(--shadow-text-dark);
    z-index: 1;
}

/* ================================================
   10. カード・コンテンツ
   ================================================ */
.card-container {
    margin-bottom: clamp(var(--spacing-md), 10px + 2.5vw, var(--spacing-lg));
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.card {
    display: flex;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    color: var(--color-text-dark);
    transition: var(--transition-default);
    text-decoration: none;
    position: relative;
}

.card.shadow {
    box-shadow: var(--shadow-card);
}

.card-1 {
    flex-direction: column;
    width: calc((100% - var(--spacing-md) * 2) / 3);
}

.card-1 img {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-2 {
    flex-direction: column;
    width: 100%;
}

.card-2 img {
    border-radius: var(--radius-md);
}

.card-2 .info {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.card-2 .info div {
    width: calc((100% - var(--spacing-md)) / 2);
}

.card-2 .info img {
    margin-bottom: var(--spacing-sm);
}

.card-image {
    height: 100px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    object-position: 50% 50%;
}

.card-title {
    padding: 10px 15px 8px;
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
}

.card-body {
    padding: 0 15px 10px;
}

.card-body dl {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card-body dl dt {
    width: 70px;
    font-weight: var(--font-semibold);
}

.card-body dl dd {
    width: calc(100% - 75px);
}

@media (hover: hover) {
    .card-1:hover {
        box-shadow: var(--shadow-card-hover);
        transform: scale(1.01, 1.01);
    }
}

/* リボン装飾 */
.ribbon {
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
    color: var(--bg-white);
}

.ribbon1 {
    --f: .5em;
    --r: .8em;
    position: absolute;
    top: 20px;
    z-index: var(--z-ribbon);
    right: calc(-1*var(--f));
    padding-inline: .25em;
    line-height: 1.8;
    border-bottom: var(--f) solid #0005;
    border-left: var(--r) solid #0000;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--f)), 
                       calc(100% - var(--f)) 100%, calc(100% - var(--f)) calc(100% - var(--f)), 
                       0 calc(100% - var(--f)), var(--r) calc(50% - var(--f)/2));
}

.point-none { display: none; }
.point-o { background: var(--info-color); }
.point-k { background: var(--danger-color); }
.point-sp { background: var(--success-color); }

/* ================================================
   11. ニュース・お知らせ
   ================================================ */
.news-container p {
    margin-bottom: 15px;
}

.sec-news {
    height: 400px;
    overflow-y: scroll;
    border-radius: 0;
}

.sec-reception {
    height: 400px;
    border-radius: 0;
    overflow-y: scroll;
}

/* エントリー数表示 */
.entry-count {
    padding: 0 20px 20px;
    font-size: var(--font-lg);
    font-weight: var(--font-bold);
    color: var(--alert-color);
    text-align: center;
}

.entry-count a {
    color: var(--alert-color);
}

/* ランキング表示 */
.ranking-container {
    max-width: 600px;
    margin: 0 auto;
    margin-top: var(--spacing-md);
    padding: 1rem;
    background: var(--bg-white);
}

.ranking-item {
    display: flex;
    align-items: stretch;
    background: var(--bg-white);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
    outline: 1px solid var(--rank-bg);
    outline-offset: -1px;
}

/* 左側（RANK表示部分） */
.ranking-item .rank-block {
    background: var(--rank-bg);
    color: var(--color-text-white);
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: row;
    gap: 6px;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 70px;
}

.rank-block span {
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
}

.rank-block .rank-text {
    font-size: var(--font-3xl);
}

/* 中央（名前・チーム） */
.ranking-item .info-block {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem;
}

.info-block .name {
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
    margin-bottom: 0.3rem;
}

.info-block .team {
    font-size: var(--font-md);
    color: var(--color-text-light);
}

/* 右側（獲得ポイント） */
.ranking-item .points-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    background: var(--rank-points);
    color: var(--color-text-white);
    font-size: var(--font-xs);
    padding: 0.5rem;
    text-align: center;
    font-weight: var(--font-bold);
}

.points-block .point {
    font-size: var(--font-xl);
    padding-right: 2px;
}

.more-button {
    display: block;
    text-align: center;
    background: var(--footer-bg);
    color: var(--color-text-white);
    text-decoration: none;
    padding: 1.2rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: var(--font-md);
}

@media (hover: hover) {
    .more-button:hover {
        background: var(--footer-hover);
    }
}

dl.news-list {
    display: flex;
    flex-direction: column;
}

dl.news-list:last-child {
    margin-bottom: 0;
}

.news-date { width: 100%; }
.news-title { width: 100%; }
.news-content { width: 100%; }

/* ================================================
   12. テーブル
   ================================================ */
.table-sched {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.table-sched th,
.table-sched td {
    padding: calc(var(--spacing-md) / 2) calc(var(--spacing-md) / 2);
}

.table-sched .time {
    width: 160px;
}

.table-sched .info {
    margin-top: 4px;
}

.table-sched .name {
    font-weight: var(--font-semibold);
}

.table-sched tr {
    border-bottom: solid 1px var(--border-color);
}

/* ================================================
   13. フォーム
   ================================================ */
.form01 {
    margin: 0 auto;
}

.form-inner {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color-light);
    padding: calc(var(--radius-xl)) calc(var(--spacing-sm) / 1.6);
}

.form-label {
    font-weight: var(--font-semibold);
    width: 30%;
}

.form-label label {
    vertical-align: middle;
}

.form-input {
    width: 70%;
}

.required {
    display: inline-block;
    background: var(--color-key);
    color: var(--color-text);
    padding: 0.2rem 0.5rem;
    margin-left: 0.3rem;
    vertical-align: middle;
}

.radio-inner {
    display: inline-block;
    margin-right: 0.5rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    height: 40px;
    background: var(--bg-light);
    padding: 1rem;
}

textarea {
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    padding: 1rem;
}

.form-btn {
    display: block;
    width: 180px;
    background: var(--warning-color);
    color: var(--bg-white);
    font-weight: var(--font-bold);
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 0.9rem 0;
    margin: 1.5rem auto 0;
}

/* ================================================
   14. その他のコンポーネント
   ================================================ */
/* 空のボード */
.empty-board {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--color-text-gray);
    padding: var(--spacing-md) 10px;
}

.empty-board .board-icon {
    margin-bottom: 5px;
}

.empty-board .board-subtitle,
.empty-board .board-title {
    margin: 5px auto;
}

.empty-board .board-action {
    margin-top: 5px;
}

.empty-board .board-list {
    margin-bottom: 10px;
}

.empty-board .board-list dd {
    font-size: var(--font-xl);
}

/* スケジュール情報 */
.sched-info {
    display: flex;
    flex: 1;
    gap: 10px;
    align-items: center;
}

.sched-info div {
    width: 50%;
}

.goal-time::after { content: "時間"; }
.goal-dist::after { content: "距離"; }

/* リスト */
.splist3 {
    margin-top: var(--spacing-xl);
}

.splist3:first-child {
    margin-top: calc(var(--spacing-xl) / 2);
}

/* ================================================
   15. サイドバー・スポンサー
   ================================================ */
.aside {
    background: var(--bg-white);
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.sponsor {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--spacing-lg);
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 0;
}

.sponsor.g1 li { width: calc(100% / 5); }
.sponsor.g2 li { width: calc(100% / 7); }
.sponsor li img { max-width: 100%; }

/* ================================================
   16. フッター
   ================================================ */
.footer {
    text-align: center;
    font-size: var(--font-xs);
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    background: var(--bg-white);
}

ul.footer-sns {
    display: flex;
    gap: var(--spacing-sm);
    list-style-type: none;
    justify-content: center;
    margin: 0;
}

ul.footer-sns li {
    width: 40px;
}

ul.footer-sns a {
    text-decoration: none;
}

ul.footer-menu {
    list-style-type: none;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    margin: 0;
}

ul.footer-menu a {
    color: var(--color-text-light-gray);
    text-decoration: none;
}

ul.footer-menu li.logo {
    width: 260px;
    margin: 12px 0;
}

/* ================================================
   17. グリッドシステム
   ================================================ */
.columns {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--spacing-md);
}

.column {
    flex: 1;
    max-width: 100%;
}

.column.col-12,
.column.col-4,
.column.col-5,
.column.col-6,
.column.col-auto,
[class~=col-].col-12,
[class~=col-].col-4,
[class~=col-].col-5,
[class~=col-].col-6,
[class~=col-].col-auto {
    flex: none;
}

.col-12 { width: 100%; }
.col-6 { width: calc((100% - var(--spacing-md)) / 2); }
.col-5 { width: 41.66666667%; }
.col-4 { width: calc((100% - var(--spacing-md) * 2) / 3); }

.col-ml-auto { margin-left: auto; }
.col-mr-auto { margin-right: auto; }
.col-mx-auto { 
    margin-left: auto; 
    margin-right: auto; 
}

/* ================================================
   18. モバイルメニュー
   ================================================ */
#mobile-nav {
    position: fixed;
    z-index: var(--z-modal);
    top: -120%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    opacity: .9;
    transition: var(--transition-menu);
}

#mobile-nav.panelactive {
    top: 0;
}

#mobile-nav.panelactive #mobile-nav-list {
    position: fixed;
    z-index: var(--z-modal);
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#mobile-nav ul {
    position: absolute;
    z-index: var(--z-modal);
    width: 60%;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#mobile-nav li {
    list-style: none;
    text-align: center;
}

#mobile-nav li a {
    color: var(--bg-white);
    text-decoration: none;
    padding: 10px;
    display: block;
    letter-spacing: 0.1em;
    font-size: var(--font-md);
    font-weight: var(--font-semibold);
}

/* ハンバーガーボタン */
.button-burger {
    position: fixed;
    z-index: var(--z-burger);
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 55px;
    display: none;
    text-align: center;
}

.button-burger .text {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: var(--font-sm);
}

.button-burger span {
    display: inline-block;
    transition: var(--transition-hover);
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--color-text-dark);
    width: 45%;
}

.button-burger span:nth-of-type(1) { top: 15px; }
.button-burger span:nth-of-type(2) { top: 23px; }
.button-burger span:nth-of-type(3) { top: 31px; }

.button-burger.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
    background-color: var(--bg-white);
}

.button-burger.active span:nth-of-type(2) {
    opacity: 0;
}

.button-burger.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
    background-color: var(--bg-white);
}

/* ================================================
   19. スライダー
   ================================================ */
.your-class-page {
    height: 16px;
    width: 16px;
}

.your-class-page.is-active {
    background-color: var(--color-key2);
    opacity: .7;
}

.your-class-page {
    background-color: var(--bg-white);
    opacity: .7;
}

.your-class-pagination li {
    margin-left: 3px;
    margin-right: 3px;
}

/* ================================================
   20. モーダル
   ================================================ */
.hide-area {
    display: none;
}

.modaal-content-container {
    padding: 20px 2%;
}

.modaal-container {
    border-radius: var(--radius-md);
}

.modaal-close:after,
.modaal-close:before {
    background: var(--color-text-light-gray);
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before {
    background: var(--color-text-gray);
}

.no-link {
    box-shadow: none !important;
}

.no-link:hover {
    box-shadow: none !important;
    transform: none !important;
}

.image-container {
    position: relative;
}

/* 画像の上にロゴを重ねて表示 */
.image-container .overlay-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 80%;
    max-height: 80%;
    opacity: 1;
}

/* 右上配置 */
.image-container .overlay-logo.top-right {
    top: 20px;
    left: auto;
    right: 20px;
    transform: none;
}

/* 左上配置 */
.image-container .overlay-logo.top-left {
    top: 20px;
    left: 20px;
    transform: none;
}

/* 右下配置 */
.image-container .overlay-logo.bottom-right {
    top: auto;
    bottom: 20px;
    left: auto;
    right: 20px;
    transform: none;
}

/* 左下配置 */
.image-container .overlay-logo.bottom-left {
    top: auto;
    bottom: 20px;
    left: 20px;
    transform: none;
}

/* スマホ表示時の余白調整 */
@media (max-width: 768px) {
    .image-container .overlay-logo.top-right {
        top: 10px;
        right: 10px;
    }

    .image-container .overlay-logo.top-left {
        top: 10px;
        left: 10px;
    }

    .image-container .overlay-logo.bottom-right {
        bottom: 6px;
        right: 6px;
    }

    .image-container .overlay-logo.bottom-left {
        bottom: 6px;
        left: 6px;
    }
}

/* サイズ調整用クラス */
.image-container .overlay-logo.small {
    max-width: 30%;
    max-height: 30%;
}

.image-container .overlay-logo.medium {
    max-width: 50%;
    max-height: 50%;
}

.image-container .overlay-logo.large {
    max-width: 70%;
    max-height: 70%;
}

/* ================================================
   21. レスポンシブデザイン
   ================================================ */
/* Tablet - 840px */
@media screen and (max-width: 840px) {
    html {
        background-color: var(--bg-white);
    }
    
    .wrapper {
        padding-top: var(--header-height-mobile);
    }
    
    /* ヘッダー */
    .header {
        height: var(--header-height-mobile);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: var(--z-header);
        border-bottom: none;
        box-shadow: var(--shadow-header);
    }
    
    .cl-logo {
        display: none;
    }
    
    .cl-logo-fixed {
        display: block;
    }
    
    .event-logo {
        text-align: left;
        margin-top: 10px;
    }

    .hero .decoration2 {
        display: none;
    }

    .hero .decoration {
        max-width: 360px;
    }
    
    .event-logo img {
        width: 140px;
    }
    
    ul.header-sns {
        display: none;
    }
    
    /* ナビゲーション */
    #nav-dt {
        display: none;
    }
    
    /* ヒーロー */
    .hero {
        padding: 0;
    }
    
    .hero-front {
        width: 100%;
    }
    
    .splide__slide.with-logo .slide-logo {
        width: 120px;
        top: 1rem;
        left: 1rem;
    }
    
    /* ニュース */
    .sec-reception {
        height: auto;
    }
    
    .sec-news {
        height: auto;
    }
    
    /* エントリー数・ランキング */
    .entry-count {
        padding-bottom: 10px;
    }
    
    .ranking-item .rank-block {
        flex-direction: column;
        min-width: 50px;
    }
    
    .rank-block span {
        font-size: 1rem;
    }
    
    .rank-block .rank-text {
        font-size: var(--font-xl);
    }
    
    .ranking-item .points-block {
        min-width: 70px;
    }
    
    /* カード */
    .card-container {
        padding-left: 4%;
        padding-right: 4%;
    }
    
    .card-1 {
        width: calc((100% - var(--spacing-md)) / 2);
    }
    
    .splist3 {
        margin-top: var(--spacing-lg);
    }
    
    .card-2 .info div {
        width: 100%;
    }
    
    /* スケジュール */
    .sched-info {
        flex-direction: column;
    }
    
    .sched-info div {
        width: 100%;
    }
    
    /* スポンサー */
    .sponsor.g1 li {
        width: calc((100% - var(--spacing-lg)) / 2);
    }
    
    .sponsor.g2 li {
        width: calc((100% - var(--spacing-lg)) / 2);
    }
    
    .sponsor.g2 li img {
        max-width: 140px;
    }
    
    /* グリッド */
    .col-md-12,
    .col-md-6,
    .col-md-auto {
        flex: none;
    }
    
    .col-md-12 {
        width: 100%;
    }
    
    .col-md-6 {
        width: 50%;
    }
    
    /* モバイルメニュー */
    .button-burger {
        display: block;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    .hero .splide {
        margin: 2rem 1.4rem 2.3rem;
    }

    .mobile-no {
        display: none;
    }
}

/* フォーム */
@media (max-width: 768px) {
    .form-inner {
        display: block;
    }
    
    .form-label {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .form-input {
        width: 100%;
    }
}

/* Mobile - 600px */
@media screen and (max-width: 600px) {
    .section {
        padding-left: var(--section-padding-x-mobile);
        padding-right: var(--section-padding-x-mobile);
        margin-bottom: calc(var(--spacing-md) / 2);
    }
    
    .hero {
        margin-bottom: calc(var(--spacing-md) / 2);
    }
    
    .hero-title {
        width: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateY(-50%) translateX(-50%);
    }
    
    .hero-title-small {
        font-size: var(--font-3xl);
    }
    
    .hero-title-small::before {
        text-shadow: 2px 2px var(--color-key2);
        -webkit-text-stroke: 2px var(--color-key2);
    }
    
    .hero-title-large::before {
        text-shadow: 4px 4px var(--color-key2);
        -webkit-text-stroke: 4px var(--color-key2);
    }
    
    .hero-copy {
        font-size: var(--font-sm);
    }
    
    .hero-place {
        font-size: var(--font-sm);
    }
    
    .page-header {
        height: 120px;
        margin-bottom: calc(var(--spacing-md) / 2);
    }
    
    .card {
        width: 100%;
    }
    
    /* グリッド */
    .col-sm-12,
    .col-sm-auto {
        flex: none;
    }
    
    .col-sm-12 {
        width: 100%;
    }
}

/* Small Mobile - 400px */
@media screen and (max-width: 400px) {
    .hero .decoration {
        max-width: 200px;
    }
}

/* Small Mobile - 480px */
@media screen and (max-width: 480px) {
    .title-underline {
        margin-bottom: calc(var(--spacing-md) + var(--spacing-xs));
    }
    
    .page-header {
        height: 80px;
    }
    
    .table-sched th {
        font-size: calc(var(--font-sm));
        padding: calc(var(--spacing-sm) / 1.6) calc(var(--spacing-sm) / 1.6);
        line-height: 1.2;
    }
    
    .table-sched td {
        font-size: calc(var(--font-sm));
        padding: calc(var(--spacing-sm) / 1.6) calc(var(--spacing-xs) / 2);
        line-height: 1.3;
    }
    
    .table-sched .time {
        width: 50px;
    }
    
    ul.footer-menu {
        flex-direction: column;
        gap: calc(var(--spacing-xs) / 2);
    }
}