/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f4f2ee;
    color: #171717;
    font-family:
        "Noto Sans JP",
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        Arial,
        sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    padding: 0;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --bg: #f4f2ee;
    --bg-light: #f8f7f4;
    --bg-dark: #171717;

    --text: #171717;
    --text-light: #77736d;

    --line: #d9d6d0;

    --accent: #6d2929;

    --serif:
        "Playfair Display",
        Georgia,
        "Times New Roman",
        serif;

    --content-width: 1180px;

    --side-padding: 6vw;

}


/* =========================================================
   COMMON
========================================================= */

.section-inner {
    width: min(
        calc(100% - (var(--side-padding) * 2)),
        var(--content-width)
    );

    margin-inline: auto;
}

.section-heading {
    margin-bottom: 70px;
}

.section-label {
    margin: 0 0 14px;

    color: var(--text-light);

    font-family: var(--serif);

    font-size: 12px;
    line-height: 1;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;

    font-size: clamp(28px, 3vw, 44px);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.35;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed; /* relative から fixed に変更 */
    z-index: 1000;

    width: 100%;

    background: #fff;

    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}


.header-inner {
    width: min(
        calc(100% - (var(--side-padding) * 2)),
        1440px
    );

    min-height: 78px;

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
   LOGO
========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;
}

.site-logo img {
    display: block;
    width: 170px;
    height: auto;
}



/* =========================================================
   GLOBAL NAV
========================================================= */

.global-nav {
    display: flex;
    align-items: center;

    gap: 36px;

    margin-left: auto;
}

.global-nav a {
    position: relative;

    font-family: var(--serif);

    font-size: 12px;
    letter-spacing: 0.16em;

    transition: opacity 0.3s ease;
}

.global-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: currentColor;

    transition: width 0.3s ease;
}

.global-nav a:hover {
    opacity: 0.65;
}

.global-nav a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-button {
    display: none;

    width: 38px;
    height: 38px;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 20px;
    height: 1px;

    background: #171717;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100%;

    min-height: min(720px, 75vh);

    overflow: hidden;

    background: #202020;
}

.hero-image {
    position: absolute;

    inset: 0;

    display: block;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


/*
   画像上に薄いレイヤーを置いて
   コピーの視認性を確保
*/

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.18) 45%,
            rgba(0, 0, 0, 0.04) 100%
        );

    pointer-events: none;
}


/* =========================================================
   HERO COPY
========================================================= */

.hero-copy {
    position: absolute;

    z-index: 2;

    left: var(--side-padding);
    bottom: 11%;

    color: #ffffff;
}

.hero-kicker {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: 12px;
    line-height: 1;

    letter-spacing: 0.22em;
color: #b21f2d;
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(64px, 10vw, 120px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.015em;

    /* --- ゴールドグラデーションの設定 --- */
    background: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    margin: 28px 0 0;
    font-size: 20px;
    letter-spacing: 0.14em;

}


/* =========================================================
   RACE SECTION
========================================================= */

.race-section {
    padding: 150px 0 160px;
}

.race-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0 70px;

    border-top: 1px solid var(--line);
}


/* =========================================================
   RACE CARD
========================================================= */

.race-card {
    position: relative;

    display: grid;

    grid-template-columns: 50px minmax(0, 1fr);

    gap: 28px;

    padding: 48px 0 52px;

    border-bottom: 1px solid var(--line);
}

.race-card-number {
    color: var(--text-light);
    font-family: var(--serif);
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

.race-card-content {
    min-width: 0;
}

.race-card-meta {
    margin: 0 0 16px;

    color: var(--text-light);

    font-family: var(--serif);

    font-size: 11px;

    line-height: 1;

    letter-spacing: 0.16em;
}

.race-card h3 {
    margin: 0;

    font-size: 21px;

    font-weight: 500;

    line-height: 1.55;

    letter-spacing: 0.04em;
}

.race-card-excerpt {
    margin: 22px 0 28px;

    color: #66625d;

    font-size: 14px;

    line-height: 2;

    letter-spacing: 0.025em;
}


/* =========================================================
   READ MORE
========================================================= */

.read-more {
    display: flex;

    width: fit-content;

    margin-top: 28px;
    margin-left: auto;

    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 11px 18px;
    background: #b21f2d;
    border: none;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.read-more-arrow {
    font-family: Arial, sans-serif;

    font-size: 14px;

    line-height: 1;
}

.read-more:hover {
    background: #8f1824;

    opacity: 1;
}


/* =========================================================
   FAQ
========================================================= */

.faq-section {
    padding: 150px 0;
    background: #ebe8e2;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 20px;
    min-height: 92px;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-number {
    color: var(--text-light);
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.faq-question {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.035em;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding:
        0 55px 38px 75px;
}

.faq-answer p {
    max-width: 760px;
    margin: 0;
    color: #65615c;
    font-size: 14px;
    line-height: 2;
}


/* =========================================================
   NOTICE
========================================================= */

.notice-section {
    padding: 150px 0;

    background: var(--bg-dark);

    color: #ffffff;
}

.notice-inner {
    max-width: 100%;
}

.notice-section .section-label {
    color: #aaa6a0;
}

.notice-section h2 {
    margin: 0;

    font-size: clamp(32px, 4vw, 56px);

    font-weight: 400;

    line-height: 1.35;

    letter-spacing: 0.04em;
}

.notice-text {
    margin-top: 40px;
}

.notice-text p {
    margin: 0;

    color: #b5b1ab;

    font-size: 14px;

    line-height: 2;
}

.notice-list {
    margin: 55px 0 0;

    padding: 0;

    list-style: none;

    border-top: 1px solid rgba(255,255,255,0.18);
}

.notice-list li {
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.notice-list a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 70px;

    font-size: 13px;

    letter-spacing: 0.04em;

    transition:
        padding 0.3s ease,
        opacity 0.3s ease;
}

.notice-list a:hover {
    padding-inline: 8px;

    opacity: 0.65;
}


/*==============================
ABOUT IMAGE
==============================*/

.notice-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
}

.notice-content{
    flex:1;
}

.notice-image{
    flex:0 0 380px;
}

.notice-image img{
    display:block;
    width:100%;
    height:auto;
}


.notice-content{
    min-width: 0;
}

.notice-image{
    margin-left: auto;
    align-self: flex-end;
}




/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--line);

    color: #171717;
}

.footer-inner {
    width: min(
        calc(100% - (var(--side-padding) * 2)),
        var(--content-width)
    );

    margin-inline: auto;

    padding: 80px 0 30px;
}

.footer-brand {
    margin-bottom: 60px;
}

.footer-logo {
    color: #171717;
}

.footer-brand p {
    margin: 8px 0 0;

    color: #77736d;

    font-family: var(--serif);

    font-size: 11px;

    letter-spacing: 0.16em;
}

.footer-nav {
    display: flex;

    flex-wrap: wrap;

    gap: 28px;

    padding-bottom: 55px;

    border-bottom: 1px solid var(--line);
}

.footer-nav a {
    color: #171717;

    font-family: var(--serif);

    font-size: 11px;

    letter-spacing: 0.16em;

    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #b21f2d;
}

.footer-bottom {
    padding-top: 25px;
}

.copyright {
    margin: 0;

    color: #68645f;

    font-family: var(--serif);

    font-size: 10px;

    letter-spacing: 0.1em;
}





/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    :root {
        --side-padding: 5vw;
    }

    .race-grid {
        gap: 0 40px;
    }

    .race-card {
        grid-template-columns: 38px minmax(0, 1fr);

        gap: 8px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    :root {
        --side-padding: 22px;
    }


    /* -----------------------------------------
       HEADER
    ----------------------------------------- */

    .header-inner {
        min-height: 68px;

        gap: 20px;
    }

    .global-nav {
        display: none;
    }

    .menu-button {
        display: flex;
    }


    /* -----------------------------------------
       HERO
    ----------------------------------------- */

    .hero {
        min-height: 680px;
    }

    .hero-image img {
        object-position: center center;
    }

    .hero::after {
        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,0.08) 0%,
                rgba(0,0,0,0.12) 35%,
                rgba(0,0,0,0.62) 100%
            );
    }

    .hero-copy {
        left: var(--side-padding);
        right: var(--side-padding);
        bottom: 60px;
    }

    .hero-kicker {
        margin-bottom: 18px;

        font-size: 10px;

        letter-spacing: 0.18em;
    }

    .hero-copy h1 {
        font-size: clamp(48px, 15vw, 76px);

        line-height: 0.95;
    }

    .hero-description {
        margin-top: 22px;

        font-size: 12px;

        letter-spacing: 0.1em;
    }


    /* -----------------------------------------
       COMMON
    ----------------------------------------- */

    .section-heading {
        margin-bottom: 45px;
    }

    .section-label {
        margin-bottom: 12px;

        font-size: 10px;

        letter-spacing: 0.16em;
    }

    .section-heading h2 {
        font-size: 28px;

        letter-spacing: 0.03em;
    }


    /* -----------------------------------------
       RACE
    ----------------------------------------- */

    .race-section {
        padding: 90px 0 100px;
    }

    .race-grid {
        display: block;

        border-top: 1px solid var(--line);
    }

    .race-card {
        grid-template-columns: 35px minmax(0, 1fr);

        gap: 15px;

        padding: 38px 0 42px;
    }

    .race-card-number {
        font-size: 12px;
    }

    .race-card-meta {
        margin-bottom: 14px;

        font-size: 9px;
    }

    .race-card h3 {
        font-size: 18px;

        line-height: 1.55;
    }

    .race-card-excerpt {
        margin: 18px 0 25px;

        font-size: 13px;

        line-height: 1.95;
    }

    .read-more {
        font-size: 10px;

        gap: 13px;
    }


    /* -----------------------------------------
       FAQ
    ----------------------------------------- */

    .faq-section {
        padding: 90px 0;
    }

    .faq-item summary {
        grid-template-columns: 28px minmax(0, 1fr) 25px;

        gap: 12px;

        min-height: 76px;
    }

    .faq-number {
        font-size: 10px;
    }

    .faq-question {
        font-size: 13px;

        line-height: 1.7;
    }

    .faq-icon {
        width: 24px;
        height: 24px;

        font-size: 18px;
    }

    .faq-answer {
        padding:
            0 25px 28px 40px;
    }

    .faq-answer p {
        font-size: 13px;

        line-height: 1.95;
    }


    /* -----------------------------------------
       NOTICE
    ----------------------------------------- */

    .notice-section {
        padding: 90px 0;
    }

    .notice-section h2 {
        font-size: 32px;

        line-height: 1.4;
    }

    .notice-text {
        margin-top: 30px;
    }

    .notice-text p {
        font-size: 13px;
    }

    .notice-list {
        margin-top: 40px;
    }

    .notice-list a {
        min-height: 64px;

        font-size: 12px;
    }


.notice-inner{
    flex-direction: column;
    align-items: flex-start;
}

.notice-image{
    width:100%;
    max-width:360px;
    margin:30px auto 0;
}




    /* -----------------------------------------
       FOOTER
    ----------------------------------------- */

    .footer-inner {
        padding: 60px 0 25px;
    }

    .footer-brand {
        margin-bottom: 45px;
    }

    .footer-nav {
        gap: 20px 25px;

        padding-bottom: 40px;
    }

    .footer-nav a {
        font-size: 10px;
    }

    .copyright {
        font-size: 9px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    :root {
        --side-padding: 18px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-copy h1 {
        font-size: 60px;
    }

    .race-card {
        grid-template-columns: 8px minmax(0, 1fr);

        gap: 12px;
    }

    .race-card h3 {
        font-size: 17px;
    }

    .faq-item summary {
        grid-template-columns: 24px minmax(0, 1fr) 22px;

        gap: 9px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

}




/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 767px) {

    .global-nav.is-open {

        position: fixed;

        top: 68px;
        left: 0;
        right: 0;

        z-index: 99;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 20px 22px 28px;

        background: #fff;

        border-bottom: 1px solid rgba(23, 23, 23, 0.08);

    }


    .global-nav.is-open a {

        display: flex;

        align-items: center;

        min-height: 58px;

        border-bottom: 1px solid var(--line);

        font-size: 12px;

        letter-spacing: 0.16em;
    }


    .global-nav.is-open a:last-child {

        border-bottom: 0;

    }


    .global-nav.is-open a::after {

        display: none;

    }


    /*
     * メニュー表示中に
     * 背景ページをスクロールさせない
     */

    body.menu-open {

        overflow: hidden;

    }


    /*
     * ハンバーガー → ×
     */

    .menu-button[aria-expanded="true"] span:nth-child(1) {

        transform: translateY(6px) rotate(45deg);

    }


    .menu-button[aria-expanded="true"] span:nth-child(2) {

        opacity: 0;

    }


    .menu-button[aria-expanded="true"] span:nth-child(3) {

        transform: translateY(-6px) rotate(-45deg);

    }

}



.race-card-races {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.race-card-race {
    display: grid;
    grid-template-columns: 42px 42px 44px minmax(0, 1fr);
    align-items: center;
    min-height: 30px;
    padding-left: 10px;
    border-left: 3px solid #b21f2d;
    column-gap: 6px;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.race-card-race-place,
.race-card-race-number {
    white-space: nowrap;
}

.race-card-race-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* GⅠ：金 */
.race-card-race-grade.g1 {
    background: linear-gradient(
        135deg,
        #c9a227,
        #e0bd4f
    );
}

/* GⅡ：銀 */
.race-card-race-grade.g2 {
    background: linear-gradient(
        135deg,
        #8d9398,
        #c4c8cc
    );
}

/* GⅢ：銅 */
.race-card-race-grade.g3 {
    background: linear-gradient(
        135deg,
        #a7653d,
        #c58a62
    );
}


.race-card-race-grade.empty {
    visibility: hidden;
}


.race-card-race-name {
    font-weight: 700;
}

@media (max-width: 767px) {

    .race-card-races {
        margin-top: 15px;
        gap: 7px;
    }


.race-card {
        grid-template-columns: 1fr;
    }

    /* 番号自体を非表示にする */
    .race-card-number {
        display: none;
    }


.race-card-race {
    grid-template-columns: 40px 36px 38px minmax(0, 1fr);
    padding-left: 8px;
    column-gap: 5px;
    font-size: 12px;
}
    .race-card-race-grade {
        min-width: 38px;
        height: 23px;
        padding: 0 7px;
        font-size: 9px;
    }

}


/* =========================================================
   RACE CARD / レース名表示調整
========================================================= */

.race-card-race-place,
.race-card-race-number {
    flex-shrink: 0;
}

.race-card-race-grade {
    flex-shrink: 0;
}

.race-card-race-name {
    flex: 1;
    min-width: 0;
    overflow: visible;
}



/* =========================================================
   HEADER FIX & HERO ADJUSTMENT (修正用追加コード)
========================================================= */

/* 1. ヘッダーを上部に固定 */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

/* 2. HEROエリア全体をヘッダーの高さ分下げる */
.hero {
    margin-top: 78px !important;
}

/* 3. HERO画像（絶対配置）の開始位置をヘッダーの直下に合わせる */
.hero-image {
    top: 0 !important;
}

/* 4. スマホ表示時のヘッダー高さに合わせた余白調整 */
@media (max-width: 767px) {
    .hero {
        margin-top: 68px !important;
    }
}



/* =========================================================
   LEGAL / WARNING (注意書き)
========================================================= */

.disclaimer-section {
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

.disclaimer-title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: #171717;
}

.disclaimer-text p {
    margin: 0;
    font-size: 10px;
    line-height: 1.7;
    color: #65615c;
}