/* =========================================================
   Global Font Size Adjustment
   ページ全体の文字サイズを底上げ設定
   ========================================================= */

html {
    font-size: 22px; 
}

/* スマホ対応 */
@media (max-width: 768px) {
    html {
        /* スマホは画面が狭いため、標準の16px（または15px）に戻すのが安全です */
        font-size: 16px;
    }
}

/* Base Variables */
:root {
    --ks-primary: #ff003c; /* Racing Red */
    --ks-dark: #111111;
    --ks-gray: #f4f4f4;
    --ks-text: #333333;
}

/* Wrapper */
.ks-lp-wrapper {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    color: var(--ks-text);
    overflow-x: hidden;
}

/* Sections */
.ks-section {
    padding: 80px 0;
}
.ks-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.ks-narrow {
    max-width: 800px;
}

/* Typography */
.ks-section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: var(--ks-dark);
}
.ks-section-title .ks-jp {
    display: block;
    font-size: 1.2rem; 
    font-weight: bold;
    color: var(--ks-primary);
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Hero Section (Image Only) */
.ks-hero-area {
    width: 100%;
    background-color: #000;
    line-height: 0;
}

.ks-hero-figure {
    margin: 0;
    padding: 0;
    width: 100%;
    margin-top: 80px;
}

.ks-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* CTA Bar */
.ks-cta-bar {
    background: var(--ks-dark);
    padding: 30px 0;
    margin-top: -5px; 
}
.ks-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.ks-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 20px;
    border-radius: 5px;
    transition: transform 0.2s, opacity 0.2s;
}
.ks-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}
.ks-btn-primary {
    background: var(--ks-primary);
    color: #fff;
}
.ks-btn-secondary {
    background: #fff;
    color: var(--ks-dark);
    border: 2px solid #fff;
}
.ks-btn .ks-icon {
    font-size: 2rem;
    margin-right: 15px;
}
.ks-btn .ks-text strong {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
}
.ks-btn .ks-text small {
    font-size: 1.2rem;
    font-weight: normal;
    opacity: 1;
    display: block;
    margin-top: 4px;
}

/* Gallery (Album Style) */
.ks-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.ks-album-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.ks-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.ks-album-card a {
    text-decoration: none;
    color: inherit;
}
.ks-album-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.ks-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.ks-album-card:hover img {
    transform: scale(1.1);
}
.ks-album-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    padding: 30px 15px 15px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}
.ks-album-title {
    padding: 15px;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

/* Timetable */
.ks-timetable {
    background: var(--ks-gray);
}
.ks-sched-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.ks-sched-table th, .ks-sched-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}
.ks-sched-table th {
    background: var(--ks-dark);
    color: #fff;
    width: 30%;
}
.ks-center-btn {
    text-align: center;
    margin-top: 20px;
}

/* Entry / Price */
.ks-price-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}
.ks-price-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}
.ks-price-card.main-entry {
    border-top: 5px solid var(--ks-primary);
}
.ks-price-header {
    background: var(--ks-gray);
    padding: 20px;
    text-align: center;
}
.ks-price-header h3 {
    margin: 0;
    font-size: 1.5rem;
}
.ks-price-body {
    padding: 30px;
    text-align: center;
}
.ks-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 1.4rem;
    font-weight: bold;
}
.ks-price-row.muted {
    color: #666;
    font-weight: normal;
    font-size: 1.4rem;
}
.ks-btn-buy {
    width: 100%;
    background: var(--ks-primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    padding: 15px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 5px;
}
.ks-btn-buy.secondary {
    background: #333;
}
.ks-features {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}
.ks-note,
.ks-alert-text {
    font-size: 1.2rem;
    color: var(--ks-primary);
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}
/* ------------------------------------------------
   Filter Buttons (Categories)
------------------------------------------------ */
.ks-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.ks-filter-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: #fff;
}

.ks-filter-btn:hover {
    background: #f4f4f4;
    transform: translateY(-2px);
}

.ks-filter-btn.active {
    background: var(--ks-primary);
    color: #fff;
    border-color: var(--ks-primary);
    box-shadow: 0 4px 10px rgba(255, 0, 60, 0.3);
}

@media (max-width: 768px) {
    .ks-filter-buttons {
        gap: 8px;
    }
    .ks-filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}
/* ------------------------------------------------
   Pagination Styles
------------------------------------------------ */
.ks-pagination-area {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.ks-pagination-area ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.ks-pagination-area .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 10px;
    background: #fff;
    border: 2px solid #ddd;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.ks-pagination-area .page-numbers:hover,
.ks-pagination-area .page-numbers.current {
    background: var(--ks-primary);
    color: #fff;
    border-color: var(--ks-primary);
    transform: translateY(-2px);
}

.ks-pagination-area .next,
.ks-pagination-area .prev {
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: 1px;
    font-size: 0.9rem;
    width: auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .ks-pagination-area .page-numbers {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
/* Responsive */
@media (max-width: 768px) {
    .ks-hero-content h1 { font-size: 2.5rem; }
    .ks-cta-grid { grid-template-columns: 1fr; }
    .ks-price-grid { grid-template-columns: 1fr; }
}
/* ------------------------------------------------
   Movie Section
------------------------------------------------ */
.ks-movie {
    background-color: #111;
    color: #fff;
}
.ks-movie .ks-section-title {
    color: #fff;
}
.ks-movie .ks-section-title .ks-jp {
    color: var(--ks-primary);
}

.ks-movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.ks-movie-item {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 8px;
    overflow: hidden;
}

.ks-movie-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* ------------------------------------------------
   Price Info Bar
------------------------------------------------ */
.ks-price-bar {
    background: #111;
    color: #fff;
    padding: 30px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 10;
    text-align: center;
}

.ks-price-title {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0 0 25px 0;
    color: #fff;
    font-style: italic;
    line-height: 1;
}

.ks-price-title .ks-jp {
    font-size: 1.5rem;
    font-weight: bold;
    font-style: normal;
    color: var(--ks-primary);
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 0;
}

.ks-price-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.ks-price-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ks-role {
    background: #333;
    color: #fff;
    font-size: 1.4rem; 
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 4px;
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: 1px;
}

.ks-price-box.driver .ks-role {
    background: var(--ks-primary);
}

.ks-price-content {
    font-family: 'Helvetica Neue', sans-serif;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.ks-label {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #bbb;
    font-weight: bold;
}

.ks-yen {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 4px;
}

.ks-num {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-right: 15px;
    color: #fff;
    line-height: 0.9;
}

.ks-sub {
    font-size: 1.2rem;
    color: #888;
}

.ks-divider {
    width: 1px;
    height: 50px;
    background: #444;
}

@media (max-width: 768px) {
    .ks-price-flex {
        flex-direction: column;
        gap: 20px;
    }
    .ks-divider { display: none; }
    .ks-price-box {
        width: 100%;
        justify-content: center;
        border-top: 2px solid #333;
        border-bottom: 2px dashed #333;
        padding-bottom: 20px;
        flex-wrap: wrap;
    }
    .ks-price-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .ks-role {
        font-size: 1.4rem;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    .ks-num {
        font-size: 2.4rem;
    }
}
/* ------------------------------------------------
   Scroll Position Adjustment
------------------------------------------------ */
#gallery-area {
    scroll-margin-top: 100px;
}
/* ------------------------------------------------
   Timetable Section
------------------------------------------------ */
.ks-timetable {
    background-color: #f9f9f9;
}

.ks-note-center {
    text-align: center;
    color: var(--ks-primary);
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.ks-timetable-box {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 30px;
}

.ks-sched-table {
    width: 100%;
    border-collapse: collapse;
}

.ks-sched-table th {
    background: #111;
    color: #fff;
    padding: 15px;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: left;
    border-bottom: 4px solid var(--ks-primary);
}

.ks-sched-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 1.2rem;
}

.ks-sched-table .ks-time {
    width: 20%;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #111;
    white-space: nowrap;
}

.ks-sched-table .ks-content {
    font-weight: bold;
}

.ks-sched-table .ks-content small {
    font-weight: normal;
    color: #666;
    margin-left: 5px;
    display: inline-block;
}

.ks-sched-table td.highlight {
    background-color: #fff5f7;
    color: var(--ks-primary);
}

.ks-btn-area {
    text-align: center;
    margin-top: 20px;
}

.ks-text-link {
    color: #333;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s;
}

.ks-text-link:hover {
    color: var(--ks-primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .ks-sched-table th {
        font-size: 0.9rem;
        padding: 10px;
    }
    .ks-sched-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    .ks-sched-table .ks-time {
        font-size: 1rem;
        width: auto;
        padding-right: 10px;
    }
    .ks-sched-table .ks-content small {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        font-size: 0.8rem;
    }
}
/* ------------------------------------------------
   Contact Form Additional Styles
------------------------------------------------ */
.ks-zip-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.zip-mark {
    font-weight: bold;
}

.ks-terms-box {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 15px;
    height: 200px;
    overflow-y: scroll;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    border-radius: 4px;
}
.ks-terms-box p {
    margin-bottom: 10px;
}

.ks-accept-wrap {
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px;
    background: #fff5f5;
    border: 1px solid var(--ks-primary);
    border-radius: 4px;
}
.ks-accept-wrap input[type="checkbox"] {
    transform: scale(1.5);
    margin-right: 10px;
}

.wpcf7-list-item {
    display: inline-block;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .ks-terms-box {
        height: 150px;
        font-size: 0.8rem;
    }
    .wpcf7-list-item {
        display: block;
        margin-bottom: 5px;
    }
}
/* =========================================================
   Entry Form Styling (Original Table Design)
   ========================================================= */
.form-table {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    border-top: 1px solid #dbdbdb;
}

.form-table .row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: solid 1px #dbdbdb;
    align-items: center;
    flex-wrap: wrap;
}

.form-table .row .th {
    width: 260px;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.form-table .row .th .ks-req::after {
    content: "*";
    color: #ca1a1a;
    display: inline;
    margin-left: 5px;
}

.form-table .row .td {
    width: calc(100% - 260px);
}

.form-table .row .td input[type="text"],
.form-table .row .td input[type="email"],
.form-table .row .td input[type="tel"],
.form-table .row .td input[type="date"],
.form-table .row .td textarea {
    width: 100%;
    padding: 20px;
    background-color: #f6f6f6;
    border: none;
    font-size: 1.6rem;
    box-sizing: border-box;
}

.form-table .row .td input[type="text"].p-postal-code {
    width: 200px;
    display: inline-block;
}

.zip-mark {
    font-size: 1.6rem;
    margin-right: 10px;
}

.form-table .row .td textarea {
    height: 14em;
    font-family: inherit;
}

.wpcf7-list-item {
    display: inline-block;
    margin-right: 20px;
    font-size: 1.6rem;
}
.wpcf7-list-item input {
    transform: scale(1.2);
    margin-right: 5px;
}

.ks-terms-box {
    background-color: #f6f6f6;
    padding: 20px;
    height: 200px;
    overflow-y: scroll;
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.ks-terms-box p {
    margin-bottom: 10px;
}

.ks-accept-wrap {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
}
.ks-accept-wrap input {
    transform: scale(1.5);
    margin-right: 10px;
}

.form-table .submit-wrapper {
    margin: 60px auto 0;
    text-align: center;
}

.form-table .submit-wrapper input[type="submit"] {
    width: 340px;
    border-radius: 60px;
    background-color: #e00b15;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 20px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: opacity 0.3s;
}
.form-table .submit-wrapper input[type="submit"]:hover {
    opacity: 0.8;
}

.ks-consent-text {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 840px) {
    .form-table .row {
        padding: 20px 0;
    }
    .form-table .row .th {
        width: 100%;
        margin-bottom: 10px;
        font-size: 1.5rem;
    }
    .form-table .row .td {
        width: 100%;
    }
    .form-table .row .td input[type="text"],
    .form-table .row .td input[type="email"],
    .form-table .row .td input[type="tel"] {
        padding: 15px;
        font-size: 1.4rem;
    }
    .form-table .submit-wrapper input[type="submit"] {
        width: 100%;
    }
}
/* =========================================================
   Sponsorship Section
   ========================================================= */
.ks-sponsor {
    background-color: #f8f8f8;
    padding-bottom: 100px;
}

.ks-sponsor-lead {
    text-align: center;
    font-size: 1.4rem;
    line-height: 2;
    margin-bottom: 60px;
    font-weight: bold;
    color: #333;
}

.ks-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.ks-benefit-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.ks-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ks-benefit-icon {
    font-size: 4rem;
    color: var(--ks-primary);
    margin-bottom: 20px;
    line-height: 1;
}

.ks-benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
    position: relative;
    padding-bottom: 15px;
}

.ks-benefit-card h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--ks-primary);
    margin: 15px auto 0;
}

.ks-benefit-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

.ks-sponsor-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ks-sponsor-cta p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.ks-btn-wide {
    width: 100%;
    max-width: 100%;
    border-radius: 50px;
    justify-content: center;
}

@media (max-width: 768px) {
    .ks-benefit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ks-sponsor-lead {
        font-size: 1.4rem;
        text-align: left;
    }
    .ks-benefit-card { padding: 25px; }
    .pc-only { display: none; }
    .sp-only { display: block; }
}

@media (min-width: 769px) {
    .sp-only { display: none; }
}
/* =========================================================
   News Bar
   ========================================================= */
.ks-news-bar {
    background: #fff;
    padding: 25px 0;
    border-bottom: 5px solid var(--ks-primary);
    position: relative;
    z-index: 20;
}

.ks-news-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ks-news-badge {
    background: var(--ks-primary);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(226, 12, 22, 0.4);
    animation: ks-flash 2s infinite ease-in-out;
}

.ks-news-text {
    margin: 0;
    font-weight: 900;
    color: #111;
    display: flex;
    gap: 20px;
    align-items: center;
    line-height: 1;
}

.ks-news-text .date {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: -1px;
}

.ks-news-text .date .day {
    font-size: 1.2rem;
    margin-left: 5px;
    text-transform: uppercase;
    color: #555;
}

.ks-news-text .place {
    font-size: 1.8rem;
    border-left: 2px solid #ddd;
    padding-left: 20px;
}

@keyframes ks-flash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

@media (max-width: 768px) {
    .ks-news-bar { padding: 20px 0; }
    .ks-news-inner {
        flex-direction: column;
        gap: 10px;
    }
    .ks-news-text {
        flex-direction: column;
        gap: 5px;
    }
    .ks-news-text .place {
        border-left: none;
        padding-left: 0;
        font-size: 1.6rem;
    }
}
/* =========================================================
   Stock Car Slider Section
   ========================================================= */
.ks-stock {
    background-color: #111;
    color: #fff;
    padding-bottom: 100px;
}

.ks-stock .ks-section-title { color: #fff; }

.ks-stock-slider {
    display: block;
    margin: 0 -15px;
    padding: 0 60px 50px 60px !important;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.ks-stock-card {
    background: #fff;
    margin: 0 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: #333;
}

.ks-stock-card:hover { transform: translateY(-5px); }

.ks-stock-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ks-stock-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #000;
}

.ks-stock-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ks-stock-card:hover .ks-stock-img img { transform: scale(1.1); }

.sold-badge {
    position: absolute;
    top: 10px;
    right: 0;
    background: #e20c16;
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9rem;
    transform: skewX(-15deg);
}

.ks-stock-body {
    padding: 20px;
    text-align: left;
}

.ks-stock-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.4;
    height: 3.4rem;
    overflow: hidden;
}

.ks-stock-name .brand {
    display: block;
    font-size: 0.9rem;
    color: #e20c16;
    font-weight: bold;
}

.ks-stock-grade {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ks-stock-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.ks-stock-price .label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
}

.ks-stock-price .price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #e20c16;
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: -1px;
}

.ks-stock-price .unit {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-left: 2px;
}

/* =========================================================
   Slick Slider Custom
   ========================================================= */
.ks-stock-slider .slick-arrow {
    z-index: 20 !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(226, 12, 22, 0.9) !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    border: none !important;
    outline: none !important;
    position: absolute !important;
    top: 45% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

.ks-stock-slider .slick-arrow:hover {
    background: #e20c16 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(226, 12, 22, 0.4) !important;
    opacity: 1 !important;
}

.ks-stock-slider .slick-arrow::before {
    content: '' !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    border-top: 3px solid #fff !important;
    border-right: 3px solid #fff !important;
    opacity: 1 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 0 !important; 
    line-height: 0 !important;
}

.ks-stock-slider .slick-prev { left: 0 !important; }
.ks-stock-slider .slick-prev::before { transform: translate(-30%, -50%) rotate(-135deg) !important; }

.ks-stock-slider .slick-next { right: 0 !important; }
.ks-stock-slider .slick-next::before { transform: translate(-70%, -50%) rotate(45deg) !important; }

.ks-stock-slider .slick-dots {
    bottom: -10px !important;
    display: flex !important;
    justify-content: center;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    position: absolute;
}

.ks-stock-slider .slick-dots li {
    margin: 0 8px !important;
    width: 12px !important;
    height: 12px !important;
    padding: 0 !important;
    display: inline-block;
}

.ks-stock-slider .slick-dots li button {
    width: 12px !important;
    height: 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    font-size: 0 !important;
    cursor: pointer;
    position: relative;
}

.ks-stock-slider .slick-dots li button::before {
    font-size: 0 !important;
    content: '' !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    background: #555 !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.ks-stock-slider .slick-dots li.slick-active button::before {
    background: #e20c16 !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 0 2px rgba(226, 12, 22, 0.2) !important;
}

@media (max-width: 768px) {
    .ks-stock-slider {
        padding: 0 0 40px 0 !important; 
        margin: 0 -10px;
    }
    .ks-stock-slider .slick-arrow { display: none !important; }
    .ks-stock-card { margin: 0 10px; }
}

.ks-stock .ks-btn-area {
    margin-top: 80px !important;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .ks-stock .ks-btn-area { margin-top: 60px !important; }
}

.ks-stock-slider {
    display: block;
    width: 100%;
}
.ks-stock-slider .slick-track { display: flex !important; }
.ks-stock-slider .slick-slide {
    height: auto;
    float: none !important;
}

/* =========================================================
   Mobile Hero Image Adjustment
   ========================================================= */
@media (max-width: 768px) {
    .ks-hero-figure {
        margin-top: 60px !important; /* Header height adjustment */
    }
    .ks-hero-img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        object-position: center;
        filter: brightness(1.05);
    }
}

/* =========================================================
   Sticky Footer (PC & Mobile)
   ========================================================= */
body {
    padding-bottom: 85px; 
}

.ks-sticky-footer {
    display: block;
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    
    transform: translateY(120%); 
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
}

.ks-sticky-footer.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* PC Style */
@media (min-width: 769px) {
    .ks-sticky-footer {
        bottom: 30px; /* 画面下から少し浮かせる */
        left: 50%;
        width: auto; /* 中身に合わせて幅を自動調整 */
        
        /* ★ここがポイント：半透明の黒背景を追加 */
        background: rgba(0, 0, 0, 0.6); /* 60%の黒で透けさせる */
        padding: 15px 25px; /* コンテンツ周りに余白を作る */
        border-radius: 10px; /* 全体をカプセル型に */
        backdrop-filter: blur(5px); /* 背景をすりガラスのようにぼかす */
        box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* 浮遊感のある影 */
        
        /* エリアとして認識させるためクリック有効化 */
        pointer-events: auto; 
        
        /* 配置設定 */
        display: flex;
        flex-direction: column;
        align-items: center;
        
        /* アニメーション初期位置 */
        transform: translate(-50%, 150%);
    }
    
    .ks-sticky-footer.is-visible {
        transform: translate(-50%, 0); /* 定位置に戻す */
    }
    
    /* 誘導バッジの調整 */
    .ks-sticky-label {
        /* 背景が黒くなるので、影などは消してシンプルに */
        box-shadow: none; 
        margin-bottom: 12px;
        background: #fff; /* 背景が黒なので、ラベルを白反転して目立たせる */
        color: #111;
        border: none;
    }
    /* 三角形の色も白に変更 */
    .ks-sticky-label::after {
        border-top-color: #fff;
    }
    /* 白枠用擬似要素は不要になるので非表示 */
    .ks-sticky-label::before {
        display: none;
    }
    
    /* ボタンエリアの枠組み */
    .ks-sticky-grid {
        width: 600px; /* ボタンエリアの幅 */
        border-radius: 50px; 
        overflow: hidden; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
        border: 2px solid rgba(255,255,255,0.2); /* うっすら白い枠線で囲む */
    }
    
    /* ボタン自体の文字サイズ調整 */
    .ks-sticky-item {
        font-size: 13px;
        padding: 5px 0;
    }
    .ks-sticky-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile Style */
@media (max-width: 768px) {
    .ks-sticky-footer {
        bottom: 0;
        left: 0;
        width: 100%;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Label (Badge) */
.ks-sticky-label {
    pointer-events: auto;
    background: #111;
    color: #fff;
    font-size: 10px;
    text-align: center;
    padding: 4px 15px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 20px;
    border: 2px solid #fff;
    width: fit-content;
    margin: 0 auto 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
}

.ks-sticky-label::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 6px solid #111;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.ks-sticky-label::before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    z-index: -1;
}

/* Button Grid */
.ks-sticky-grid {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 46px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.ks-sticky-item {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    gap: 5px;
    
    text-decoration: none;
    color: #333;
    font-size: 11px;
    font-weight: bold;
    border-right: 1px solid #eee;
    transition: all 0.2s;
    line-height: 1;
}

.ks-sticky-item:last-child {
    border-right: none;
}

.ks-sticky-item:hover {
    opacity: 0.8;
    background-color: #f9f9f9;
}

.ks-sticky-icon {
    display: flex;
    align-items: center;
}

.ks-sticky-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ks-sticky-text {
    padding-top: 1px;
    letter-spacing: 0.05em;
}

/* Colors */
.ks-sticky-item:first-child {
    background: var(--ks-primary);
    color: #fff;
}
.ks-sticky-item:first-child .ks-sticky-icon {
    color: #fff;
}
.ks-sticky-item:first-child:hover {
    background: #d00030; 
}

.ks-sticky-item:nth-child(2) {
    background: #fff;
    color: #333;
}
.ks-sticky-item:nth-child(2) .ks-sticky-icon {
    color: var(--ks-primary);
}

.ks-sticky-item.sponsor {
    background: #222;
    color: #fff;
}
.ks-sticky-item.sponsor .ks-sticky-icon {
    color: #d4af37;
}
.ks-sticky-item.sponsor:hover {
    background: #444; 
}
/* =========================================================
   Sponsor Section Custom Width
   5枚のカードを1行に収めるための調整
   ========================================================= */

/* スポンサーセクションだけ、コンテナの最大幅を広げる */
.ks-sponsor .ks-container {
    max-width: 1400px; /* 通常の1100pxから拡大 */
}

/* グリッドの最小幅設定を少し緩める */
.ks-benefit-grid {
    /* カードの最小幅を240px→200pxに変更して、詰め込みやすくする */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
/* =========================================================
   Sponsor Logo Grid
   ========================================================= */
.ks-sponsor-list-area {
    margin: 60px 0;
    text-align: center;
}

.ks-sponsor-list-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}
/* タイトルの装飾（左右に線） */
.ks-sponsor-list-title::before,
.ks-sponsor-list-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #ccc;
}
.ks-sponsor-list-title::before { right: 100%; margin-right: 15px; }
.ks-sponsor-list-title::after { left: 100%; margin-left: 15px; }

/* ロゴグリッド */
.ks-sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* ロゴの枠 */
.ks-sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 200px; /* PCでの幅 */
    height: 120px; /* 高さを固定して不揃いを防ぐ */
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
    box-sizing: border-box;
}

/* リンクがある場合のみホバーで動かす */
.ks-sponsor-item.linked:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--ks-primary);
    cursor: pointer;
}

/* ロゴ画像 */
.ks-sponsor-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 縦横比を維持して枠に収める */
}

/* スマホ対応 */
@media (max-width: 768px) {
    .ks-sponsor-grid {
        gap: 10px;
    }
    
    .ks-sponsor-item {
        /* スマホでは2列表示（隙間を考慮して計算） */
        width: calc(50% - 5px); 
        height: 100px;
        padding: 10px;
    }
}
/* =========================================================
   Yokoi Masashi Special Partner Section
   ========================================================= */
.ks-yokoi {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
    padding-bottom: 80px;
    overflow: hidden; /* はみ出し防止 */
}

/* Flex Layout */
.ks-yokoi-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}

/* --- Left: Person Image --- */
.ks-yokoi-visual {
    position: relative;
    width: 45%;
    text-align: center;
}

/* 背景のエフェクト（赤い斜めライン） */
.ks-yokoi-bg-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewX(-20deg);
    width: 80%;
    height: 80%;
    background: linear-gradient(to bottom, var(--ks-primary), transparent);
    opacity: 0.3;
    z-index: 0;
}

.ks-yokoi-person {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
    /* 少し下からフェードインするような演出を入れるとかっこいいです */
}

/* --- Right: Info --- */
.ks-yokoi-info {
    width: 55%;
}

.ks-yokoi-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.ks-yokoi-team {
    font-size: 1.1rem;
    color: var(--ks-primary);
    font-weight: bold;
    margin: 0 0 5px;
    letter-spacing: 1px;
}

.ks-yokoi-name {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    font-style: italic;
}

.ks-yokoi-name .en {
    display: block;
    font-size: 1.4rem;
    color: #888;
    font-family: 'Helvetica Neue', sans-serif;
    margin-top: 5px;
}

.ks-yokoi-badge {
    display: inline-block;
    background: #d4af37; /* Gold */
    color: #000;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 1rem;
    transform: skewX(-15deg);
}

.ks-yokoi-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

/* History Table */
.ks-yokoi-history {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ks-yokoi-history h4 {
    font-size: 1.2rem;
    border-left: 4px solid var(--ks-primary);
    padding-left: 10px;
    margin: 0 0 15px;
    color: #fff;
}

.ks-yokoi-history dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin: 0;
}

.ks-yokoi-history dt {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: bold;
    color: var(--ks-primary);
}

.ks-yokoi-history dd {
    margin: 0;
    font-size: 1rem;
}

.ks-yokoi-more {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    margin-top: 10px;
    font-style: italic;
}

/* SNS Buttons */
.ks-yokoi-sns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ks-btn-sns {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    border: 1px solid #555;
    border-radius: 50px;
    transition: all 0.3s;
    background: #000;
}

.ks-btn-sns:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* 各SNSカラー（ホバー前あるいはボーダー色に使用） */
.ks-btn-sns.web:hover { border-color: var(--ks-primary); color: var(--ks-primary); }
.ks-btn-sns.insta:hover { border-color: #E1306C; color: #E1306C; }
.ks-btn-sns.fb:hover { border-color: #1877F2; color: #1877F2; }
.ks-btn-sns.x:hover { border-color: #fff; color: #000; background: #fff; }


/* --- Sub Section (Partnership Photo) --- */
.ks-yokoi-sub {
    background: #fff;
    color: #333;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ks-yokoi-sub-img {
    width: 50%;
    margin: 0;
}
.ks-yokoi-sub-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ks-yokoi-message {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ks-yokoi-message h4 {
    font-size: 1.5rem;
    color: var(--ks-primary);
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.ks-yokoi-message p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .ks-yokoi-hero {
        flex-direction: column;
        gap: 0;
    }

    .ks-yokoi-visual {
        width: 100%;
        margin-bottom: 30px;
    }
    .ks-yokoi-person {
        max-width: 280px; /* スマホでは少し小さめに */
    }

    .ks-yokoi-info {
        width: 100%;
    }

    .ks-yokoi-name {
        font-size: 2.2rem;
    }

    .ks-yokoi-sub {
        flex-direction: column;
    }
    .ks-yokoi-sub-img,
    .ks-yokoi-message {
        width: 100%;
    }
    .ks-yokoi-sub-img {
        height: 200px;
    }
    .ks-yokoi-message {
        padding: 30px 20px;
    }
}
/* =========================================================
   Top Sponsor Section (Special Thanks)
   ========================================================= */

/* セクション自体の設定 */
.ks-top-sponsor {
    padding: 40px 0; /* 上下の余白を少し詰め気味に */
    background-color: #fff; /* 背景色 */
    border-bottom: 1px solid #eee; /* 下に区切り線 */
}

/* もともとのマージンをリセット（セクションのpaddingで管理するため） */
.ks-top-sponsor .ks-sponsor-list-area {
    margin: 0;
}

/* タイトルのサイズ調整（上部に置くので少し控えめに） */
.ks-top-sponsor .ks-sponsor-list-title {
    font-size: 1.5rem; /* 1.8remから少し小さく */
    margin-bottom: 20px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .ks-top-sponsor {
        padding: 30px 0;
    }
    
    .ks-top-sponsor .ks-sponsor-list-title {
        font-size: 1.3rem;
    }
}
/* 注意事項未読時のチェックボックススタイル */
.ks-accept-wrap input[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.ks-accept-wrap input[disabled] + span {
    opacity: 0.5;
    color: #999;
}