@charset "UTF-8";
/*
Theme Name: bikeland_tsuchiura
Theme URI: https://bikeland.jp/tsuchiura
Description: BIKELAND土浦レイクサイド大会用テーマ（Bootstrap 5.3対応）
Author: Monjya
Author URI: https://bikeland.jp
Version: 2.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bikeland-tsuchiura
*/

/* ==========================================================================
   CSS カスタムプロパティ（カラー変数）
   - 土浦大会のカラースキーム（湖・青系）
   ========================================================================== */
:root {
    /* メインカラー（湖の青） */
    --tlb-primary: #00234d;
    --tlb-primary-light: #0862c3;
    --tlb-primary-dark: #001630;
    
    /* 背景色 */
    --tlb-bg-main: #f2f2f2;
    --tlb-bg-white: #ffffff;
    --tlb-bg-dark: #00234d;
    --tlb-bg-footer: #d0e0ea;
    
    /* テキスト */
    --tlb-text: #333333;
    --tlb-text-light: #555555;
    --tlb-text-muted: #999999;
    --tlb-text-white: #ffffff;
    
    /* アクセント */
    --tlb-accent-gray: #dedede;
    
    /* フォント */
    --tlb-font-heading: 'Contrail One', sans-serif;
    --tlb-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================================================
   ベーススタイル
   ========================================================================== */
body {
    background-color: var(--tlb-bg-main);
    font-family: var(--tlb-font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    color: var(--tlb-text);
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
    max-width: 100%;
    height: auto;
}

img.ajax-loader {
    width: 16px;
}

textarea {
    width: 100%;
    max-width: 100%;
}

form {
    overflow: hidden;
}

/* ==========================================================================
   リンク
   ========================================================================== */
a {
    color: var(--tlb-primary-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--tlb-primary);
    text-decoration: none;
}

a.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

a.bigger {
    transition: transform 0.2s ease;
}

a.bigger:hover {
    transform: scale(1.03);
}

a.disabled.bigger:hover {
    transform: none;
}

/* ==========================================================================
   タイポグラフィ
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tlb-font-heading);
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    margin-bottom: 0.5em;
    text-align: center;
}

h2 {
    margin-top: 2px;
    line-height: 1.2em;
}

/* ページ内の見出し */
.page h1 {
    font-size: clamp(3rem, 10vw, 7.5rem);
    line-height: 1em;
    color: var(--tlb-primary);
}

.page h1 .subtitle {
    font-size: 1.8rem;
    line-height: 1.5em;
    display: block;
}

.page h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.page h2 .subtitle {
    font-size: 1rem;
    line-height: 1em;
}

/* フォントサイズユーティリティ */
.font-70 { font-size: 70%; }
.font-80 { font-size: 80%; }
.font-150 { font-size: 150%; }
.font-200 { font-size: 200%; }
.font-300 { font-size: 300%; }
.font-330 { font-size: 330%; }

/* ==========================================================================
   区切り線
   ========================================================================== */
hr.short {
    margin: 1rem auto 3rem;
    border: 0;
    border-top: 6px solid rgba(88, 88, 88, 0.55);
    width: 20%;
    opacity: 1;
}

hr.short.white {
    border-top-color: #fff;
}

/* ==========================================================================
   背景・コンテナ
   ========================================================================== */
.main-bg {
    background-color: var(--tlb-bg-dark);
}

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

.content-box {
    padding: 0;
    background: var(--tlb-bg-white);
    overflow: hidden;
}

.main-text {
    background: var(--tlb-bg-white);
}

/* パディングユーティリティ */
.py-100 {
    padding-top: 5em;
    padding-bottom: 5em;
}

.pt-100 {
    padding-top: 5em;
}

.pb-100 {
    padding-bottom: 5em;
}

@media (max-width: 575.98px) {
    .py-100 {
        padding-top: 4em;
        padding-bottom: 4em;
    }
    .pt-100 {
        padding-top: 4em;
    }
    .pb-100 {
        padding-bottom: 4em;
    }
}

a.sbi_header_link {
    color: var(--tlb-text-white);
}

/* ==========================================================================
   ボタン
   ========================================================================== */
.btn-tlb {
    color: var(--tlb-text-white);
    background-color: var(--tlb-primary);
    border-color: var(--tlb-primary-dark);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-tlb:hover {
    color: var(--tlb-text-white);
    background-color: var(--tlb-primary-light);
    border-color: var(--tlb-primary);
    transform: translateY(-2px);
}

/* WordPress ブロックボタン */
.wp-block-button {
    margin: 1rem;
}

.wp-block-button__link {
    background-color: var(--tlb-primary);
    color: var(--tlb-text-white);
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
}

.wp-block-button__link:hover {
    background-color: var(--tlb-primary-light);
    color: var(--tlb-text-white);
}

/* ==========================================================================
   フクロウマスコット
   ========================================================================== */
.owl-box {
    position: fixed;
    z-index: 2000;
    width: 60px;
    top: 20px;
    left: 0;
}

.owl-box img {
    width: 60px;
}

.owl-owl,
.owl-eda {
    position: absolute;
}

.owl-eda {
    top: 61px;
}

.buruburu:hover {
    display: inline-block;
    animation: hurueru 0.1s infinite;
}

@keyframes hurueru {
    0%   { transform: translate(0px, 0px) rotateZ(0deg); }
    25%  { transform: translate(2px, 2px) rotateZ(1deg); }
    50%  { transform: translate(0px, 2px) rotateZ(0deg); }
    75%  { transform: translate(2px, 0px) rotateZ(-1deg); }
    100% { transform: translate(0px, 0px) rotateZ(0deg); }
}

@media (max-width: 767.98px) {
    .owl-box {
        width: 50px;
    }
    .owl-box img {
        width: 50px;
    }
    .owl-eda {
        top: 51px;
    }
}

/* ==========================================================================
   ナビゲーション
   ========================================================================== */
.navbar-tlb {
    position: fixed;
    top: 18px;
    right: 10px;
    z-index: 1050;
}

.navbar-tlb .navbar-toggler {
    border: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
}

.navbar-tlb .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-tlb .nav-link {
    color: var(--tlb-text-white) !important;
    font-family: var(--tlb-font-heading);
    font-size: 1.8rem;
    text-shadow: 2px 2px 0px #000;
    text-align: right;
    padding: 0.5rem 1rem;
}

.navbar-tlb .nav-link:hover,
.navbar-tlb .nav-link:focus {
    color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-tlb .nav-link.disabled {
    color: rgb(206, 206, 206) !important;
}

.navbar-tlb .navbar-collapse {
    background: rgba(0, 35, 77, 0.95);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

/* ==========================================================================
   トップページ - ヒーローセクション
   ========================================================================== */
.top-image-wrapper {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.top-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 1000px;
}

.top-logo-overlay .logo {
    width: 60vw;
    max-width: 1000px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.top-sns-box {
    color: var(--tlb-text-white);
    margin-top: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.top-sns {
    font-size: 2rem;
    margin: 0 0.25rem;
    transition: transform 0.2s ease;
}

.top-sns:hover {
    transform: scale(1.1);
}

@media (max-width: 767.98px) {
    .top-image-wrapper {
        height: 70vh;
        min-height: 400px;
    }
    
    .top-logo-overlay .logo {
        width: 85vw;
    }
    
    .top-sns {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   イベントスライダー
   ========================================================================== */
.slide-feat {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.slide-feat::-webkit-scrollbar {
    height: 8px;
}

.slide-feat::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.slide-feat::-webkit-scrollbar-thumb {
    background: var(--tlb-primary);
    border-radius: 4px;
}

.slide-feat a {
    flex: 0 0 auto;
    width: 350px;
    scroll-snap-align: start;
    color: var(--tlb-text-light);
}

.slide-feat a:hover {
    color: var(--tlb-primary);
}

.feat-title-box {
    background: var(--tlb-bg-white);
    border-left: 4px solid var(--tlb-primary);
    width: 90%;
    margin: -1.5rem auto 2rem;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 10;
    max-height: 9rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feat-title-box h2 {
    line-height: 1.2;
    font-size: 1.3rem;
    margin: 0;
}

.feat-title-box p {
    max-height: 3rem;
    overflow: hidden;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--tlb-text-muted);
}

.title-sub {
    font-size: 0.7em;
    opacity: 0.7;
    margin-bottom: 0;
    display: block;
}

@media (max-width: 767.98px) {
    .slide-feat a {
        width: 280px;
    }
}

/* ==========================================================================
   ニュース＆インデックス
   ========================================================================== */
.news-list a {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--tlb-bg-white);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.news-list a:hover {
    border-left-color: var(--tlb-primary);
    background: var(--tlb-accent-gray);
}

.news-title {
    font-weight: 600;
    font-size: 1.1em;
    line-height: 1.3;
    color: var(--tlb-text);
}

.news-date {
    font-size: 0.9rem;
    color: var(--tlb-text-muted);
    margin-left: 0.5rem;
}

/* インデックスグリッド */
.index-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.index-list a {
    background: var(--tlb-accent-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 5rem;
    color: var(--tlb-text-light);
    text-align: center;
    transition: all 0.2s ease;
}

.index-list a:hover {
    background: var(--tlb-primary);
    color: var(--tlb-text-white);
}

.index-title {
    font-family: var(--tlb-font-heading);
    font-size: 1.5rem;
    line-height: 1.2;
}

.index-title-sub {
    font-size: 0.6rem;
    display: block;
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .index-title {
        font-size: 1rem;
    }
}

/* ==========================================================================
   マーケットスライダー
   ========================================================================== */
.slide-market {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.slide-market a {
    flex: 0 0 auto;
    width: 250px;
    scroll-snap-align: start;
}

.boxmarket {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.boxmarket::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

h2.market-title {
    background: var(--tlb-bg-white);
    font-size: 1.2rem;
    color: var(--tlb-text-light);
    display: inline-block;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 767.98px) {
    .slide-market a {
        width: 200px;
    }
    .boxmarket {
        height: 280px;
    }
}

/* ==========================================================================
   レースページ
   ========================================================================== */
.raceday h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: var(--tlb-font-heading);
    font-weight: bold;
    line-height: 0.9em;
    margin: 0.1em auto 0.3em;
}

.raceday .title-sub {
    font-size: 40%;
}

.race-info-text-title {
    font-size: 0.75rem;
    background: var(--tlb-bg-white);
    font-weight: bold;
    width: 6em;
    padding: 3px 0;
    text-align: center;
    margin: 2em 0 0.5em;
    color: #000;
}

/* タイムライン */
.timeline dt {
    background-color: #e0e0e0;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #ccc;
    color: #222;
}

.timeline dd {
    background-color: var(--tlb-bg-white);
    border-bottom: 1px solid #eee;
    padding: 1rem;
    margin: 0;
    color: #222;
}

.day-title {
    padding: 1rem;
    font-weight: bold;
    font-size: 1.5rem;
    color: #222;
}

@media (max-width: 767.98px) {
    .timeline dt {
        padding: 0.75rem 0.5rem;
    }
}

/* ==========================================================================
   マーケットリスト
   ========================================================================== */
.market-list .card {
    border-radius: 0;
    border: none;
    margin-bottom: 1rem;
}

.market-list .card-body {
    border-left: 4px solid var(--tlb-primary);
}

.market-list h5.card-title {
    color: #111;
    margin: 0;
    font-family: var(--tlb-font-heading);
}

/* ==========================================================================
   ショップ・ブログ詳細
   ========================================================================== */
.blog-text h1 {
    margin-top: 1rem;
    font-size: clamp(2.5rem, 8vw, 7rem);
    width: 90%;
    font-family: inherit;
    text-align: left;
}

.blog-text h2 {
    font-size: 1rem;
    color: #097d67;
    margin-top: 3rem;
}

.blog-text h3 {
    margin-top: 0;
}

.shop-sub-title {
    font-weight: bold;
    color: #777;
}

.blog-text blockquote {
    padding: 2rem;
    background: #e8e8e8;
    border-left: 5px solid #ccc;
    font-size: 1em;
    margin: 1.5rem 0;
}

li.gallery-item {
    width: 33.333%;
    display: inline-block;
}

.market-footer {
    max-width: 800px;
    margin: 4em auto 0;
}

.wp-block-media-text.market-footer {
    grid-template-columns: 20% auto;
    align-items: start;
}

/* ==========================================================================
   ニュースボックス（single.php）
   ========================================================================== */
.news-box {
    background: #fdfdfd;
    padding: 2.5rem;
}

.news-box .news-date {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--tlb-text-muted);
}

.news-text {
    font-size: 1rem;
}

.news-text h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
}

@media (max-width: 767.98px) {
    .news-box {
        padding: 1rem;
    }
}

/* ==========================================================================
   インスタグラムセクション
   ========================================================================== */
.instagram-area {
    background-color: var(--tlb-bg-dark);
}

.insta-more {
    display: inline-block;
    background: var(--tlb-bg-white);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 2rem auto 0;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.insta-more:hover {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .insta-more {
        margin: 1.5rem 0.5rem 0;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   スポンサーセクション
   ========================================================================== */
.sponsor {
    text-align: center;
}

.sponsor a {
    display: inline-block;
    margin: 0.5%;
    transition: transform 0.2s ease;
}

.sponsor a:hover {
    transform: scale(1.05);
}

.sponsor img {
    max-width: 9%;
    height: auto;
}

.sponsor .top-sponsors img {
    max-width: 15%;
}

.sponsor .s-icons img {
    width: 5%;
    margin: 0.2%;
}

@media (max-width: 991.98px) {
    .sponsor .top-sponsors img {
        max-width: 14%;
    }
    .sponsor img {
        max-width: 10%;
    }
    .sponsor .s-icons img {
        width: 6%;
    }
}

@media (max-width: 767.98px) {
    .sponsor .top-sponsors img {
        max-width: 30%;
    }
    .sponsor img {
        max-width: 17%;
    }
    .sponsor .s-icons img {
        width: 10%;
    }
}

/* ==========================================================================
   ビデオコンテナ（レスポンシブ埋め込み）
   ========================================================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

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

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

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

/* ==========================================================================
   WordPress ブロックエディタ対応
   ========================================================================== */
.wp-block-embed__wrapper {
    position: static !important;
}

.wp-block-file a.wp-block-file__button {
    white-space: nowrap;
}

#gallery-1 img {
    border: 0 !important;
}

/* ==========================================================================
   Jetpack共有ボタン
   ========================================================================== */
.sharedaddy.sd-sharing-enabled {
    text-align: center;
    margin-top: 2rem;
}

div.sharedaddy h3.sd-title:before {
    border-top: 0px solid #ddd !important;
}

.sharedaddy.sd-sharing-enabled ul {
    text-align: center;
    margin: 0 auto !important;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
    background-color: var(--tlb-bg-footer);
    padding: 3rem 0 2rem;
}

.site-footer a {
    color: var(--tlb-text);
}

.site-footer a:hover {
    color: var(--tlb-primary);
}

/* ==========================================================================
   イベントメディアテキスト
   ========================================================================== */
.event-mediatext {
    max-width: 40rem;
    width: 100%;
    margin: 0 auto 1.5rem;
}

/* ==========================================================================
   印刷用スタイル
   ========================================================================== */
@media print {
    .owl-box,
    .navbar-tlb,
    .video-container,
    .instagram-area {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
