/* =========================================================
   地方競馬指数WEB common style
   ========================================================= */

:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #182033;
    --muted: #687086;
    --line: #e5e9f2;
    --main: #1646a0;
    --main-dark: #102f68;
    --sub: #eef4ff;
    --ok: #0f8a5f;
    --warn: #b35b00;
    --bad: #b42318;
    --shadow: 0 8px 22px rgba(20, 36, 70, .06);
    --shadow-hover: 0 12px 28px rgba(20, 36, 70, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
}

a {
    transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}

a:hover {
    opacity: .88;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--main-dark), #1a63c7);
}

.site-title,
.title {
    letter-spacing: .02em;
}

/* Common cards */
.meta-card,
.card,
.pick-card,
.pick-grid,
.table-card,
.race-list-card,
.empty {
    box-shadow: var(--shadow);
}

/* Buttons / links */
.btn,
.tab,
.footer-menu a,
.footer-links a {
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover,
.tab:hover,
.footer-menu a:hover,
.footer-links a:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    opacity: 1;
}

.btn.disabled,
.tab.disabled {
    pointer-events: none;
    opacity: .45;
}

/* Footer menu */
.footer-menu {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-menu a {
    color: var(--main);
    text-decoration: none;
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
}

/* Badges */
.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 800;
}

.badge-ok {
    background: #eaf8f2;
    color: var(--ok);
}

.badge-wait {
    background: #fff5e8;
    color: var(--warn);
}

.badge-error {
    background: #fff4f4;
    color: var(--bad);
}

/* Table */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Mobile tuning */
@media (max-width: 620px) {
    .header {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .site-title,
    .title {
        font-size: 23px;
    }

    .meta-row {
        gap: 6px 12px;
    }

    .footer-menu {
        gap: 8px;
    }

    .footer-menu a {
        font-size: 12px;
        padding: 6px 10px;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 9px 10px;
    }
}

/* Common header parts */
.back-link {
    color: rgba(255,255,255,.86);
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #fff;
    opacity: 1;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 15px 16px 20px 45px;
}

/* =========================================================
   Static pages: about / updates / disclaimer
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    line-height: 1.8;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 16px 50px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}

h1 {
    margin: 10px 0 0;
}

h2 {
    margin: 28px 0 10px;
    font-size: 20px;
}

p,
li {
    color: var(--text);
}

.note {
    color: var(--muted);
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
}

.box h3 {
    margin: 0 0 6px;
    color: var(--main);
}

.timeline {
    margin-top: 18px;
    border-left: 4px solid #d9e5ff;
    padding-left: 18px;
}

.item {
    margin-bottom: 20px;
    position: relative;
}

.item:before {
    content: "";
    position: absolute;
    left: -28px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--main);
    border-radius: 50%;
}

.item h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Top page: index.php
   ========================================================= */

.site-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: .02em;
}

.site-subtitle {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
}

.meta-card {
    padding: 16px;
    margin-bottom: 18px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 14px;
}

.meta-row strong {
    color: var(--text);
}

.alert {
    background: #fff4f4;
    border: 1px solid #ffd4d4;
    color: #9b1c1c;
    border-radius: 14px;
    padding: 16px;
}

.section-title {
    margin: 26px 0 12px;
    font-size: 21px;
}

.race-list-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
}

td {
    font-size: 14px;
}

.btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    background: var(--sub);
    color: var(--main);
}

.btn.disabled {
    pointer-events: none;
    opacity: .45;
}

.race-section {
    margin-top: 18px;
}

.race-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin: 24px 0 12px;
}

.race-title span {
    display: inline-block;
    background: var(--main);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover .card {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.horse-no {
    background: var(--sub);
    color: var(--main);
    border-radius: 12px;
    padding: 4px 9px;
    font-weight: 700;
    white-space: nowrap;
}

.trigger {
    font-size: 12px;
    color: var(--ok);
    background: #eaf8f2;
    border-radius: 999px;
    padding: 3px 8px;
    white-space: nowrap;
}

.horse-name {
    font-size: 19px;
    font-weight: 800;
    margin: 4px 0 2px;
}

.jockey {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.metric {
    background: #f8fafc;
    border-radius: 12px;
    padding: 9px;
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
}

.metric-value {
    font-size: 17px;
    font-weight: 800;
}

.reason {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.empty {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    color: var(--muted);
}

.footer-note {
    margin-top: 28px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 920px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-title {
        font-size: 24px;
    }

    .container {
        padding: 16px 12px 40px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        border-radius: 16px;
    }
}

/* =========================================================
   Race detail / Compare pages
   ========================================================= */

.title {
    font-size: 28px;
    margin: 8px 0 4px;
    font-weight: 800;
}

.subtitle {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tab {
    display: inline-block;
    text-decoration: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 14px;
}

.tab.active {
    background: var(--main);
    color: #fff;
    border-color: var(--main);
}

.pick-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    border-left: 6px solid var(--ok);
    box-shadow: var(--shadow);
}

.pick-name {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px;
}

.pick-meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.table-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.rank {
    font-weight: 800;
    color: var(--main);
}

.good {
    color: var(--ok);
    font-weight: 800;
}

.bad {
    color: var(--bad);
    font-weight: 800;
}

/* Compare */
.pick-grid {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pick-box {
    padding: 16px;
}

.pick-box + .pick-box {
    border-left: 1px solid var(--line);
}

.pick-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.pick-score {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

.pick-score strong {
    color: var(--main);
}

.up {
    color: var(--ok);
    font-weight: 800;
}

.down {
    color: var(--bad);
    font-weight: 800;
}

.neutral {
    color: var(--muted);
}

.rank-change {
    font-weight: 800;
}

@media (max-width: 900px) {
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .title {
        font-size: 24px;
    }
}

@media (max-width: 760px) {
    .pick-grid {
        grid-template-columns: 1fr;
    }

    .pick-box + .pick-box {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* =========================================================
   UI fixes: header / top table / hit image / date form
   ========================================================= */

.header .site-title,
.header .title,
.header .site-subtitle,
.header .subtitle {
    color: #fff;
}

.header-title-link {
    color: #fff;
    text-decoration: none;
}

.header-title-link:visited,
.header-title-link:hover,
.header-title-link:active {
    color: #fff;
    opacity: 1;
}

.date-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.date-form label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.date-form input[type="date"] {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
}

.date-form button,
.date-form a {
    border: 0;
    border-radius: 999px;
    background: var(--main);
    color: #fff;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.date-form a {
    background: var(--sub);
    color: var(--main);
}

.card {
    position: relative;
}

.hit-image {
    position: absolute;
    top: -10px;
    right: -8px;
    width: 82px;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
    transform: rotate(8deg);
}

.no-pick-card {
    border-left-color: var(--warn);
}

.no-pick-text {
    color: var(--muted);
    font-weight: 800;
}

/* Archive / date navigation */
.archive-notice {
    background: #fff8e8;
    border: 1px solid #ffe0a8;
    color: #8a5200;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
}

.date-nav-link {
    display: inline-block;
}

@media (max-width: 620px) {
    .date-form {
        align-items: stretch;
    }

    .date-form input[type="date"],
    .date-form button,
    .date-form a {
        width: 100%;
        text-align: center;
    }
}

/* Race status on top page */
.badge-skip {
    background: #f1f5f9;
    color: #475569;
}

.status-reason {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    max-width: 240px;
}

/* =========================================================
   History page: history.php only
   ========================================================= */

.history-page .page-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 16px 50px;
}

.history-page .section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.history-page .page-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.history-page .lead {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.history-page .history-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-top: 16px;
}

.history-page .history-filter label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.history-page .history-filter input,
.history-page .history-filter select {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

.history-page .btn-primary {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--main);
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.history-page .history-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.history-page .history-nav a:last-child {
    text-align: right;
}

.history-page .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.history-page .data-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.history-page .data-table th,
.history-page .data-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}

.history-page .data-table th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
}

.history-page .history-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-page .history-link-actions a {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    background: var(--sub);
    color: var(--main);
}

.history-page .history-muted {
    color: var(--muted);
    font-weight: 700;
}

@media (max-width: 640px) {
    .history-page .page-main {
        padding: 16px 12px 40px;
    }

    .history-page .history-filter {
        display: grid;
        align-items: stretch;
    }

    .history-page .history-filter input,
    .history-page .history-filter select,
    .history-page .btn-primary {
        width: 100%;
    }

    .history-page .history-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .history-page .history-nav a:last-child {
        text-align: center;
    }
}

/* Header history link */
.header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.header-nav-link:visited,
.header-nav-link:hover,
.header-nav-link:active {
    color: #fff;
    opacity: 1;
}

@media (max-width: 620px) {
    .header nav {
        gap: 8px;
        margin-top: 10px;
    }

    .header-nav-link {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* SITE_MAIN_MENU_START */
/* PC: horizontal menu / SP: hamburger menu */

.header .site-main-menu-pc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.header .site-main-menu-pc .site-main-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    box-sizing: border-box;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.header .site-main-menu-pc .site-main-menu-link:visited {
    color: #ffffff;
}

.header .site-main-menu-pc .site-main-menu-link:hover,
.header .site-main-menu-pc .site-main-menu-link:focus {
    color: #ffffff;
    background: #2563eb;
    border-color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.header .site-main-menu-sp {
    display: none;
    margin-top: 16px;
}

.header .site-main-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--main);
    background: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}

.header .site-main-menu-button::-webkit-details-marker {
    display: none;
}

.header .site-main-menu-icon {
    font-size: 18px;
    line-height: 1;
}

.header .site-main-menu-panel {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    background: #0f172a;
}

.header .site-main-menu-panel .site-main-menu-link {
    display: block;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-weight: 700;
}

.header .site-main-menu-panel .site-main-menu-link:visited {
    color: #ffffff;
}

.header .site-main-menu-panel .site-main-menu-link:hover,
.header .site-main-menu-panel .site-main-menu-link:focus {
    color: #ffffff;
    background: #2563eb;
    text-decoration: none;
}

@media (max-width: 760px) {
    .header .site-main-menu-pc {
        display: none;
    }

    .header .site-main-menu-sp {
        display: block;
    }
}
/* SITE_MAIN_MENU_END */

/* SP_TABLE_TABS_UX_START */
/* Mobile affordance for wide tables and long tab navigation */

.table-scroll-hint {
    display: none;
    margin: 0;
    padding: 10px 12px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .table-scroll-hint {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .table-scroll-hint::before {
        content: "↔";
        font-size: 15px;
        line-height: 1;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 7px;
    }

    .tabs .tab {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        white-space: nowrap;
    }

    .table-wrap,
    .history-page .table-scroll {
        border-radius: 12px;
        scrollbar-width: thin;
    }

    .table-wrap th,
    .table-wrap td,
    .history-page .data-table th,
    .history-page .data-table td {
        padding: 9px 10px;
        font-size: 13px;
    }
}
/* SP_TABLE_TABS_UX_END */


/* SP_FINAL_UX_START */
/* Final mobile adjustments: spacing, wrapping, ads and tap targets */

.ad-slot,
.ad-slot-inner,
.ad-slot-real {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.ad-slot {
    overflow: hidden;
    margin: 18px 0;
}

.ad-slot .adsbygoogle {
    display: block;
    width: 100%;
    max-width: 100%;
}

.horse-name,
.pick-name,
.reason,
.status-reason,
.metric-label {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.metric {
    min-width: 0;
}

@media (max-width: 620px) {
    .header-inner {
        padding: 14px 12px 18px;
    }

    .meta-card,
    .card,
    .pick-card,
    .pick-grid,
    .table-card,
    .race-list-card,
    .empty {
        max-width: 100%;
    }

    .table-wrap .horse-name,
    .history-page .data-table .horse-name {
        min-width: 8em;
        white-space: normal;
    }

    .footer-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
        width: 100%;
        padding: 10px 12px;
        font-size: 13px;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .metrics {
        grid-template-columns: 1fr;
    }
}
/* SP_FINAL_UX_END */

/* SITE_MAIN_MENU_BUTTON_STYLE_START */
/* Remove the menu container panel and use footer-style link buttons */

.site-main-menu {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.site-main-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: var(--main);
    text-decoration: none;
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
}
/* SITE_MAIN_MENU_BUTTON_STYLE_END */

/* SITE_MAIN_MENU_SELECTOR_FIX_START */

/* PC・SPメニュー本体の背景と外枠を消す */
.site-main-menu.site-main-menu-pc,
.site-main-menu.site-main-menu-sp {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* PCメニューの各リンク */
.site-main-menu.site-main-menu-pc a,
/* SPメニューの開閉ボタン */
.site-main-menu.site-main-menu-sp summary,
/* SPメニュー内の各リンク */
.site-main-menu.site-main-menu-sp a {
    box-sizing: border-box;
    color: var(--main);
    text-decoration: none;
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
}

/* SITE_MAIN_MENU_SELECTOR_FIX_END */

/* SP_MENU_BUTTON_PANEL_FIX_START */

/* SPメニュー全体の外枠を消す */
.site-main-menu.site-main-menu-sp {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* メニューを開くボタン */
.site-main-menu.site-main-menu-sp .site-main-menu-button {
    box-sizing: border-box;
    color: var(--main);
    text-decoration: none;
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
}

/* 開いた後のメニューパネル外枠を消す */
.site-main-menu.site-main-menu-sp .site-main-menu-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0 0;
}

/* パネル内リンクを丸型ボタンにする */
.site-main-menu.site-main-menu-sp .site-main-menu-panel a {
    box-sizing: border-box;
    color: var(--main);
    text-decoration: none;
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
}

/* SP_MENU_BUTTON_PANEL_FIX_END */

/* EXACT_SP_MENU_PANEL_FIX_START */

.header .site-main-menu-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 8px 0 0;
}

.header .site-main-menu-panel a {
    box-sizing: border-box;
    color: var(--main);
    text-decoration: none;
    font-weight: 800;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
}

/* EXACT_SP_MENU_PANEL_FIX_END */
