/* Shared styles for public pages (header, footer, base layout) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-red: #DC0001;
    --color-black: #000000;
    --bg-mobile-center: #F8F9FB;
    --bg-pc-sides: #E0E4ED;
}

html,
body {
    height: 100%;
}

ul,li{
    list-style: none;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    overflow-x: hidden;
    position: relative;
    width: 100vw;
    min-height: 100vh;
    z-index: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

body::before {
    background-image: url('/assets/images/BG.jpg');
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: 50% 100%;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
    background-attachment: initial;
    z-index: -1;
}

@media (max-width: 480px) {
    body::before {
        background-image: url('/assets/images/BG_SP.png');
    }
}

.page-rail {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100dvh;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow-x: visible;
}

/* Header */
.site-header {
    background: linear-gradient(90deg, #d90110 0%, #540000 100%);
    color: #fff;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.site-header .site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 8px;
    max-width: 680px;
    margin: 0 auto;
}

.site-header .site-brand img {
    height: 28px;
}

/* Ensure header brand link doesn't overflow */
.site-header .site-brand a {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-header .site-title {
    font-weight: 800;
    letter-spacing: .02em;
}

.site-header .site-subbar {
    background: #1a1716;
    height: 6px;
}

/* Common container */
.container {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
    background: var(--bg-mobile-center);
}

/* Prevent media overflow */
.page-rail img,
.container img,
.card img {
    max-width: 100%;
    height: auto;
}

/* Footer (shared: matches index.php) */
.site-footer {
    background: #151312;
    color: #fff;
    text-align: center;
    padding: 28px 20px;
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.site-footer .footer-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}

.site-footer .footer-logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media screen and (max-width: 480px) {
    .site-footer .footer-logo img {
        max-width: 240px;
    }
}

.site-footer .footer-note {
    max-width: 720px;
    margin: 22px auto 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #eeeeee;
    font-size: 12px;
    line-height: 1.9;
}

.site-footer .footer-links {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: center;
    color: #cccccc;
    font-size: 14px;
}

.site-footer .footer-links .row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer .footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer .footer-copy {
    margin-top: 18px;
    color: #bdbdbd;
    font-size: 12px;
}

/* サンプル画像用スタイル（拡大モーダル無効） */
.thumb-sample {
    cursor: default !important;
    opacity: 0.7;
    pointer-events: none;
}

.thumb-sample img {
    filter: grayscale(20%);
}



/* Match index.php footer spacing at breakpoints */
@media (min-width: 481px) {
    .site-footer .footer-inner {
        padding: 2rem 1.5rem 0;
    }
}

@media (min-width: 640px) {
    .site-footer .footer-inner {
        padding: 2.5rem 2rem 0;
    }
}



/* display: pc or sp */
.d-pc {
    display: none;
}

.d-sp {
    display: block;
}

@media (min-width: 481px) {
    .d-pc {
        display: block;
    }

    .d-sp {
        display: none;
    }
}

.header {
    color: #fff;
    padding: 0 0 24px 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media screen and (max-width: 480px) {
    .header {
        min-height: auto;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}

.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: linear-gradient(90deg, #d90110 0%, #540000 100%);
}

.topbar {
    position: relative;
    z-index: 20;
    background: #222222;
    color: #fff;
}

.topbar .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    height: 44px;
    max-width: 680px;
    margin: 0 auto;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.topbar a+a {
    position: relative;
}

.topbar a+a::before {
    content: '\FF5C';
    /* full-width vertical bar ｜ */
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.topbar a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.logo-top {
    display: flex;
    justify-content: center;
    padding: 10px 0 8px;
}

.logo-top img {
    width: 220px;
    height: auto;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Audiowide', "Noto Sans JP", system-ui, sans-serif;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.topnav {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 12px;
}

.topnav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.topnav a.active,
.topnav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

/* hero center area */
.hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.about-hero {
    background: url(/assets/images/bg_content.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    width: 650px;
}

@media (min-width: 481px) {
    .about-hero {
        background: url(/assets/images/bg_content_pc.png);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.about-hero h2 {
    font-size: 20px;
    margin: 0 0 10px;
}

@media (max-width: 650px) {
    .about-hero {
        width: 94%;
    }
}

.about-heading {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 500px);
    height: auto;
}

.about p {
    font-size: 14px;
    font-weight: 500;
}

.logo-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 0;
}

.logo-hero img {
    width: 100%;
    max-width: 650px;
    height: auto;
}

/* Digit font for dates (calendar, tabs) */
.date-font {
    font-family: 'Oswald', 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    background: #f8f9fb;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-red);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature h3 {
    color: #764ba2;
    margin-bottom: 1rem;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-red);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 0, 1, 0.35);
}

.btn-secondary {
    background: #222;
}

/* More button (pill) */
.btn-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: none;
    background: var(--color-red);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 16px;
    padding: 14px 36px;
    border-radius: 9999px;
    cursor: pointer;
    margin: 16px auto 0;
    box-shadow: 0 6px 14px rgba(220, 0, 1, 0.25);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn-show-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(220, 0, 1, 0.32);
}

.btn-show-more:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(220, 0, 1, 0.28);
    opacity: .95;
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.plan {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.plan.featured {
    border-color: var(--color-red);
    box-shadow: 0 0 0 1px var(--color-red);
}

.plan h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    color: var(--color-red);
    margin: 1rem 0;
}

.price small {
    font-size: 1rem;
    color: #666;
}

.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer a {
    color: var(--color-red);
    text-decoration: none;
}

.status {
    background: #4caf50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-align: center;
    margin: 2rem 0;
}

.about {
    font-family: 'Meiryo', 'メイリオ', 'Noto Sans JP', sans-serif;
    border-radius: 8px;
    font-weight: bold;
}

/* Toggle tabs */
.view-toggle {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    margin: 8px 0 12px;
    background: #fff;
    border: 2px solid var(--color-red);
    padding: 4px;
}

.view-toggle button {
    appearance: none;
    flex: 1 1 0;
    border: none;
    padding: 16px 14px;
    background: transparent;
    color: var(--color-red);
    cursor: pointer;
    font-weight: 800;
    transition: background .2s ease, color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1;
    font-size: 16px;
}

.view-toggle button .icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.view-toggle button svg {
    display: block;
    width: 100%;
    height: 100%;
}

.view-toggle button .icon i {
    font-size: 22px;
}

.view-toggle button.active {
    background: linear-gradient(90deg, #780000 0%, #b40400 50%, #780000 100%);
    color: #fff;
}

/* Placeholder sections for list and calendar */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* Filters */
.schedule-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 50px 0 10px;
    flex-direction: column;
}

.schedule-head img {
    width: 80%;
    margin: auto;
}

.schedule-subtitle {
    font-family: 'Audiowide', 'Noto Sans JP', sans-serif;
    text-align: center;
    font-size: 14px;
    color: #f2a1a1;
    margin-bottom: 10px;
}

.filters {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
}

.field {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
}

.field label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background-image: linear-gradient(180deg, rgba(106, 105, 105, 1), rgba(61, 60, 60, 1) 39%, rgba(56, 56, 56, 1) 66%, #222222 100%);
    color: #fff;
    font-size: 20px;
    letter-spacing: 3.5px;
}

.field select,
.field input {
    width: 100%;
    height: 60px;
    padding: 0 16px;
    border: 2px solid #222222;
    border-left: none;
    background: #fff;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 20px;
    font-weight: 600;
    color: #222222;
    padding-right: 44px;
}

.select-field {
    position: relative;
}

.select-field::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 3px solid #111;
    border-bottom: 3px solid #111;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
    opacity: 0.85;
}

.segment-2 {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 16px;
}

.segment-2 button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.segment-2 button.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

/* Date tabs */
.date-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 10px 0 14px;
}

.date-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 92px;
    background: var(--color-red);
    color: #fff;
    box-shadow: inset 0 -3px rgba(0, 0, 0, 0.15);
}

.date-tab .big {
    font-family: 'Oswald', 'Noto Sans JP', sans-serif;
    font-size: 42px;
    line-height: 1;
    font-weight: bold;
}

.date-tab .big .fa-calendar {
    margin-right: 6px;
}

.date-tab .sub {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
}

.date-tab.outline {
    background: #fff;
    color: var(--color-red);
    border: 2px solid var(--color-red);
    box-shadow: none;
}

/* 日付タブのアクティブ状態 */
.date-tab.active {
    background: linear-gradient(90deg, #780000 0%, #b40400 50%, #780000 100%) !important;
    color: white !important;
    border-color: var(--color-red) !important;
}

.date-tab.active .big,
.date-tab.active .sub,
.date-tab.active .calendar-btn {
    color: white !important;
}

/* 隠し日付入力 */
#date-picker-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.date-tab .calendar-btn {
    font-size: 16px;
    font-weight: 700;
}

.date-tab .calendar-btn .fa-calendar {
    margin-right: 6px;
}

/* Main category tabs (Slot/Pachinko) */
.mode-tabs {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    border-bottom: 1px solid #222222;
}

.mode-tab {
    flex: 1;
    padding: 18px 14px;
    border: none;
    background: #fff;
    color: #333;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: none;
    box-shadow: inset 0px 0px 1px 0px #222222;
}

.mode-tab.active {
    background: linear-gradient(90deg, #780000 0%, #b40400 50%, #780000 100%);
    color: #fff;
    box-shadow: inset 0 -3px rgba(0, 0, 0, 0.15);
}

.mode-tab:last-child {
    border-bottom: none;
}

.color-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: stretch;
    margin: 10px 0 12px;
    border-bottom: 2px solid #9aa0a6;
}

.color-tab {
    font-family: 'Audiowide', 'Noto Sans JP', sans-serif;
    letter-spacing: 1px;
    width: 100%;
    height: 40px;
    border: none;
    background: #f1f3f4 center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.color-tab:not(.all) {
    -webkit-text-stroke: 0.1px rgba(0, 0, 0, 0.85);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.35);
}

.color-tab.all {
    width: 100%;
    background-image: linear-gradient(180deg, rgba(106, 105, 105, 1), rgba(61, 60, 60, 1) 39%, rgba(56, 56, 56, 1) 66%, #222222 100%);
    color: #fff;
}

.color-tab.red {
    background-image: url('/assets/images/tab_img/tab_red.png');
}

.color-tab.gold {
    background-image: url('/assets/images/tab_img/tab_gold.png');
}

.color-tab.silver {
    background-image: url('/assets/images/tab_img/tab_silver.png');
}

.color-tab.marble {
    background-image: url('/assets/images/tab_img/tab_marble.png');
}

.color-tab.active {
    outline: 1px solid var(--color-red);
}





.frame-card .card-title a {
    color: inherit;
    text-decoration: none;
    display: contents;
}

.frame-card .card-title a:hover {
    opacity: 0.8;
}

/* .machines-head は cards-components.css に定義 */

/* .machines-text は cards-components.css に定義 */

.frame-card[data-frame="marble"] .machines-text {
    min-height: 60px;
}

/* Card body, info, and actions styles are defined in cards-components.css */

/* シルバーとブルーのフレームカードのリンク下線調整 */
.frame-card.is-silver .more-link {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

/* ゴールドのフレームカードのリンク下線調整 */
.frame-card.is-gold .more-link {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

/* オレンジのフレームカードのリンク下線調整 */
.frame-card.is-red .more-link {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    font-size: 11px;
}

/* Responsive styles for cards are defined in cards-components.css */

/* marble overlays moved to cards-components.css */

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transform: skewX(25deg) translateX(150%);
    animation: flowing-sheen 3s ease-in-out infinite;
}

/* イエロー枠: 16:9比率、中サイズ */
/* gold variant moved to cards-components.css */

/* オレンジ枠: 2カラム、A4比率 */
/* red variant moved to cards-components.css */

/* オレンジ枠が2カラム表示時は高さを調整 */
/* orange grid red sizing moved */

/* オレンジ1件時の広告プレースホルダー */
/* orange placeholder moved */

/* オレンジ（赤の枠）の時もヘッダー行を統一（左:日付 / 右:CTA） */
/* red head layout moved */

/* オレンジの細かな文字サイズ指定は上部の視認性調整ブロックに集約 */

/* red font sizes moved */

/* gold font sizes & toggle moved */

/* オレンジの+ボタンを右に配置（PC版） */
/* red toggle moved */

/* silver title sizes moved */

/* スマホサイズ対応 */
/* responsive adjustments moved */

/* silver variant moved */

/* Calendar skeleton */
.calendar {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cal-head .nav {
    border: none;
    background: #fff;
    border: 1px solid #ddd;
    width: 36px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}

.cal-head .month {
    font-size: 18px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e5e7eb;
}

.cal-grid .dow {
    font-size: 12px;
    text-align: center;
    color: #666;
    padding: 6px 0;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fb;
}

.cal-grid .dow:last-child {
    border-right: none;
}

.cal-grid .cell {
    background: #fff;
    min-height: 110px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px;
    text-align: right;
    overflow: hidden;
    min-width: 0;
    position: relative;
}

/* カレンダー日付選択機能 */
.cal-grid .cell[data-day] {
    cursor: pointer;
    transition: background 0.2s;
}

.cal-grid .cell[data-day]:hover {
    background: #ffeeee;
}

.cal-grid .cell[data-day].selected {
    background: var(--color-red);
}

.cal-grid .cell[data-day].selected .date-font {
    color: white;
}

.cal-grid .cell[data-day].selected .today-bubble {
    background: white;
    color: var(--color-red);
}

/* Calendar badges (案件イメージ) */
.cal-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
}

.cal-badge {
    position: relative;
    width: 100%;
    min-width: 40px;
    /* バッジ幅を統一 */
    height: 18px;
    /* 高さ統一 */
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.cal-badge .num {
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    -webkit-text-stroke: 0.1px #000;
    /* 黒フチ */
    text-shadow: 0 0 1px #000, 0 0 2px rgba(0, 0, 0, .65);
    line-height: 18px;
    /* 高さに合わせる */
}

.cal-badge.marble {
    background-image: url('/assets/images/tab_img/calender_marble.png');
}

.cal-badge.gold {
    background-image: url('/assets/images/tab_img/calender_gold.png');
}

.cal-badge.red {
    background-image: url('/assets/images/tab_img/calender_red.png');
}

.cal-badge.silver {
    background-image: url('/assets/images/tab_img/calender_silver.png');
}

.cell .today-bubble {
    position: absolute;
    left: 6px;
    top: 6px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--color-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.cta-section {
    background: linear-gradient(90deg, #780000 0%, #b40400 50%, #780000 100%);
    padding: 24px 16px;
    margin-top: 2.5rem;
    /* full-bleed band */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}


.cta-row--vertical {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 94%;
    margin: 0 auto;
}


.cta--region {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta--region img {
    max-width: 500px;
    width: 80%;
    height: auto;
    margin-bottom: 0;
}


.schedule-container {
    margin: 0 20px;
}


@media (max-width: 560px) {

    .hero-center {
        padding-top: 75px;
        gap: 15px;
    }

    .cal-grid .cell {
        min-height: 96px;
    }

    .frame-card .card-title {
        font-size: 24px;
    }

    .frame-card .period {
        font-size: 12px;
    }

    .frame-card .location {
        font-size: 14px;
    }

    .frame-card .machines-head {
        font-size: 14px;
    }

    .frame-card .machines-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .frame-card .thumbs-wrap {
        margin-top: 10px;
    }

    .frame-card .thumbs {
        gap: 6px;
    }

    .frame-card .thumb {
        font-size: 24px;
    }

    .frame-card .more-link {
        font-size: 12px;
    }

    .frame-card .thumbs-btn {
        width: 24px;
        height: 24px;
    }

    .frame-card .thumbs-prev {
        left: 0;
    }

    .frame-card .thumbs-next {
        right: 0;
    }
}

/* Responsive paddings and sizes */
@media (max-width: 480px) {
    .cta-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        box-sizing: border-box;
    }

    /* Improve about paragraph line breaks on small screens */
    .about p {
        text-align: center;
    }

    .color-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .color-tab {
        height: 34px;
        font-size: 14px;
    }

    .mode-tab {
        padding: 14px 10px;
        font-size: 18px;
        letter-spacing: 1.5px;
    }

    .date-tab {
        height: 86px;
    }

    .date-tab .big {
        font-size: 36px;
    }

    .date-tab .sub {
        font-size: 14px;
    }

    /* View toggle: prevent awkward wraps on small screens */
    .view-toggle {
        padding: 2px;
    }

    .view-toggle button {
        white-space: nowrap;
        gap: 8px;
        padding: 12px 10px;
        font-size: 14px;
    }

    .view-toggle button .icon {
        width: 22px;
        height: 22px;
    }

    .view-toggle button .icon i {
        font-size: 20px;
    }


    /* Card responsive styles are defined in cards-components.css */


    .cta-row--vertical {
        max-width: 94%;
        gap: 20px;
    }

    .cta--region {
        padding: 0;
    }

    .cta--region img {
        max-width: 450px;
        width: 85%;
    }

    .field {
        grid-template-columns: 75px 1fr;
    }

    .field select {
        font-size: 16px;
    }

    .field label {
        font-size: 16px;
    }
}

@media (min-width: 481px) {
    .header {
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .cta-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        box-sizing: border-box;
    }

    .container {
        padding: 2rem 1.5rem 0
    }

    .site-footer .footer-inner {
        padding: 2rem 1.5rem 0;
    }

    .color-tabs {
        grid-template-columns: repeat(5, 1fr);
    }

    .color-tab {
        height: 40px;
        font-size: 18px;
    }

    /* Card responsive styles are defined in cards-components.css */
}

@media (min-width: 640px) {
    .container {
        padding: 2.5rem 2rem 0;
    }

    .site-footer .footer-inner {
        padding: 2.5rem 2rem 0;
    }

    .date-tab {
        height: 96px;
    }

    .date-tab .big {
        font-size: 40px;
    }

    .date-tab .sub {
        font-size: 16px;
    }

    .field {
        grid-template-columns: 100px 1fr;
    }

}

@media (min-width: 768px) {
    .topbar a {
        padding: 12px 36px;
    }

    .hero-center {
        gap: 24px;
    }

    /* Keep spacing under fixed masthead on larger screens */
    .hero-center {
        padding-top: 84px;
    }

    .cal-grid .cell {
        min-height: 80px;
    }


    .cta-row--vertical {
        max-width: 94%;
        gap: 20px;
    }

    .cta--region {
        padding: 0;
    }

    .cta--region img {
        max-width: 400px;
        width: 80%;
    }

    .logo-top img {
        width: 260px;
    }

    .logo-hero img {
        width: 580px;
    }

    .about p {
        font-size: 18px;
    }

    .about-hero h2 {
        font-size: 22px;
        padding: 5px 0;
    }

    .schedule-subtitle {
        font-size: 35px;
    }

    .mode-tab {
        padding: 20px 18px;
        font-size: 22px;
        letter-spacing: 2px;
    }

    .color-tabs {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .color-tab {
        height: 44px;
        font-size: 20px;
    }

    .field {
        grid-template-columns: 120px 1fr;
    }

    /* Card responsive styles are defined in cards-components.css */
}

/* Image modal gallery */
body.modal-open {
    overflow: hidden;
    height: 100dvh;
}

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.image-modal.is-open {
    display: flex;
}

.image-modal .image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .9);
}

.image-modal .image-modal__inner {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.image-modal .image-modal__stage {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.image-modal .image-modal__stage img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.image-modal .image-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #c9cdd1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.image-modal .image-modal__nav.prev {
    left: 10px;
}

.image-modal .image-modal__nav.next {
    right: 10px;
}

.image-modal .image-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #c9cdd1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.image-modal .image-modal__counter {
    position: absolute;
    bottom: 10px;
    right: 16px;
    color: #fff;
    font-size: 13px;
    background: rgba(0, 0, 0, .55);
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 2;
}

/* 汎用: 強制的に非表示 */
.is-hidden {
    display: none !important;
}

@media (max-width: 400px) {

    .color-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .color-tab {
        height: 36px;
        font-size: 16px;
    }

    .mode-tab {
        padding: 14px 10px;
        font-size: 18px;
        letter-spacing: 1.5px;
    }

    .date-tab {
        height: 80px;
    }

    .date-tab .calendar-btn {
        font-size: 14px;
    }


}