:root {
    --ss-navy: #153957;
    --ss-navy-2: #102c43;
    --ss-blue: #3f78c5;
    --ss-teal: #2f9f95;
    --ss-teal-soft: #eaf7f4;
    --ss-sky: #eef6fb;
    --ss-yellow: #f4ca65;
    --ss-cream: #fffaf0;
    --ss-ink: #243443;
    --ss-muted: #687887;
    --ss-line: #dce6ed;
    --ss-bg: #f7fafb;
    --ss-white: #ffffff;
    --ss-radius: 26px;
    --ss-shadow: 0 18px 50px rgba(21, 57, 87, .10);
    --ss-shell: min(1180px, calc(100% - 48px));
}

.senscope-theme {
    background: var(--ss-white);
    color: var(--ss-ink);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        "Meiryo",
        sans-serif;
}

.senscope-theme .site-content {
    padding: 0;
}

.senscope-theme .ast-container,
.senscope-theme .site-content > .ast-container {
    max-width: none;
    padding: 0;
}

.senscope-theme #primary {
    margin: 0;
    width: 100%;
}

.senscope-theme .entry-content > * {
    max-width: none;
}

.ss-shell {
    width: var(--ss-shell);
    margin-inline: auto;
}
	
	.senscope-theme input,
.senscope-theme textarea,
.senscope-theme select,
.senscope-theme button {
    font-family: inherit;
}

.ss-section { padding: 104px 0; }

.ss-kicker {
    margin: 0 0 14px;
    color: var(--ss-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.ss-kicker--light { color: #a8ece2; }

.ss-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 46px;
}

.ss-section-head h2 {
    margin: 0;
    color: var(--ss-navy);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.16;
    letter-spacing: -.045em;
}

.ss-section-head > p {
    margin: 0;
    color: var(--ss-muted);
    font-size: 15px;
    line-height: 1.95;
}

.ss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 25px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.ss-btn:hover { transform: translateY(-2px); }
.ss-btn--primary { background: var(--ss-navy); color: #fff; box-shadow: 0 12px 28px rgba(21,57,87,.18); }
.ss-btn--primary:hover { background: #0f2f49; color: #fff; }
.ss-btn--secondary { color: var(--ss-navy); background: #fff; border: 1px solid var(--ss-line); }
.ss-btn--secondary:hover { color: var(--ss-navy); box-shadow: var(--ss-shadow); }
.ss-btn--light { background: #fff; color: var(--ss-navy); }
.ss-btn--light:hover { color: var(--ss-navy); box-shadow: 0 12px 30px rgba(0,0,0,.12); }

.ss-text-link {
    color: var(--ss-navy);
    text-decoration: none;
    font-weight: 800;
}

.ss-text-link span,
.ss-topic-card__link span,
.ss-article-card__more span {
    display: inline-block;
    transition: transform .2s ease;
}

.ss-text-link:hover span,
.ss-topic-card__link:hover span,
.ss-article-card__more:hover span { transform: translateX(4px); }

@media (max-width: 900px) {
    :root { --ss-shell: min(100% - 36px, 1180px); }
    .ss-section { padding: 80px 0; }
    .ss-section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

@media (max-width: 560px) {
    :root { --ss-shell: min(100% - 28px, 1180px); }
    .ss-section { padding: 64px 0; }
}


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

.senscope-theme .site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(21, 57, 87, .10);
    background: #ffffff;
}

.senscope-theme .ast-primary-header-bar {
    background: #ffffff;
}

.senscope-theme .ast-site-identity {
    padding-top: 13px;
    padding-bottom: 13px;
}

.senscope-theme .site-branding {
    position: relative;
}

/* =========================================================
   HEADER TAGLINE
   ロゴの真下中央にサイトのキャッチフレーズを表示
========================================================= */

.senscope-theme .ast-site-identity {
    display: block;
}

.senscope-theme .site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

.senscope-theme .site-branding::after {
    content: var(--ss-site-tagline, "");
    display: block;
    width: 100%;
    margin-top: 1px;
    color: #668093;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .06em;
    text-align: center;
    white-space: nowrap;
}

.senscope-theme .custom-logo-link {
    display: block;
    margin: 0 auto;
}

.senscope-theme .custom-logo-link {
    display: block;
    margin: 0 auto;
    line-height: 0;
}

.senscope-theme .custom-logo-link img {
    display: block;
    margin: 0 auto;
}

.senscope-theme .site-branding::after {
    content: var(--ss-site-tagline, "");
    display: block;
    width: 100%;
    margin-top: 0;
    color: #668093;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .06em;
    text-align: center;
    white-space: nowrap;
}


/* =========================================================
   PRIMARY MENU — editorial / game UI
========================================================= */

@media (min-width: 922px) {
    .senscope-theme .main-header-menu {
        align-items: stretch;
        gap: 3px;
    }

    .senscope-theme .main-header-menu > .menu-item {
        position: relative;
        display: flex;
        align-items: stretch;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link {
        position: relative;
        display: grid;
        align-content: center;
        min-height: 72px;
        padding: 11px 14px 9px;
        color: var(--ss-navy);
        background: transparent;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
        text-decoration: none;
        transition:
            color .18s ease,
            background .18s ease,
            transform .18s ease;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link::before {
        content: attr(data-ss-label);
        display: block;
        min-height: 10px;
        margin-bottom: 5px;
        color: var(--ss-teal);
        font-size: 8px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .12em;
        white-space: nowrap;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link::after {
        content: "";
        position: absolute;
        left: 14px;
        bottom: 7px;
        width: 18px;
        height: 3px;
        background: var(--ss-yellow);
        box-shadow: 4px 0 0 var(--ss-teal);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform .18s ease;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link:hover,
    .senscope-theme .main-header-menu > .current-menu-item > .menu-link,
    .senscope-theme .main-header-menu > .current-menu-ancestor > .menu-link {
        color: var(--ss-blue);
        background: #f7fafb;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link:hover::after,
    .senscope-theme .main-header-menu > .current-menu-item > .menu-link::after,
    .senscope-theme .main-header-menu > .current-menu-ancestor > .menu-link::after {
        transform: scaleX(1);
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link[data-ss-label="CONTACT"] {
        min-height: 52px;
        margin: 10px 0 10px 8px;
        padding: 9px 16px 8px;
        border: 2px solid var(--ss-navy);
        border-radius: 4px;
        box-shadow: 4px 4px 0 #cbd9e1;
        background: #ffffff;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link[data-ss-label="CONTACT"]::after {
        display: none;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link[data-ss-label="CONTACT"]:hover {
        color: #ffffff;
        background: var(--ss-navy);
        transform: translate(2px, 2px);
        box-shadow: 2px 2px 0 #cbd9e1;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link[data-ss-label="CONTACT"]:hover::before {
        color: #a8ece2;
    }
}

@media (max-width: 921px) {
    .senscope-theme .site-branding::after {
        font-size: 8px;
    }

    .senscope-theme .main-header-menu > .menu-item > .menu-link {
        color: var(--ss-navy);
        font-weight: 800;
    }
}


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

/* Astra標準フッターは非表示。SenScope footerをfunctions.phpから出力 */
.senscope-theme .site-footer {
    display: none !important;
}

.ss-site-footer {
    position: relative;
    overflow: hidden;
    padding: 72px 0 0;
    background: var(--ss-navy-2);
    color: #ffffff;
}

.ss-site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 7%;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,.08);
}

.ss-site-footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 10%;
    width: 74px;
    height: 6px;
    background: var(--ss-yellow);
    box-shadow: 28px 0 0 var(--ss-teal);
}

.ss-site-footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr) minmax(180px, .75fr);
    gap: 70px;
    width: var(--ss-shell);
    margin: 0 auto;
    padding-bottom: 62px;
}

.ss-site-footer__brand {
    max-width: 430px;
}

.ss-site-footer__logo .custom-logo-link {
    display: inline-block;
    padding: 9px 12px;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 4px;
}

.ss-site-footer__logo .custom-logo-link img {
    width: auto;
    max-height: 43px;
}

.ss-site-footer__logo > a:not(.custom-logo-link) {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    text-decoration: none;
}

.ss-site-footer__brand > p {
    margin: 24px 0 7px;
    color: #ffffff;
    font-size: clamp(22px, 2.3vw, 30px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.025em;
}

.ss-site-footer__brand > span {
    color: #83d8d0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
}

.ss-site-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ss-site-footer__label {
    margin: 0 0 20px;
    color: #83d8d0;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.ss-site-footer__nav a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, padding-left .18s ease;
}

.ss-site-footer__nav a:hover {
    padding-left: 5px;
    color: #a8ece2;
}

.ss-site-footer__nav a span {
    color: var(--ss-yellow);
}

.ss-site-footer__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: var(--ss-shell);
    margin: 0 auto;
    padding: 19px 0 23px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.65);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
}

@media (max-width: 820px) {
    .ss-site-footer {
        padding-top: 56px;
    }

    .ss-site-footer__inner {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-bottom: 42px;
    }

    .ss-site-footer__brand {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .ss-site-footer__brand > p {
        font-size: 22px;
    }

    .ss-site-footer__bottom {
        flex-direction: column;
        gap: 6px;
    }
}

/* =========================================================
   SENSCOPE TYPOGRAPHY
   少し丸みのある見出しフォント
========================================================= */

:root {
    --ss-font-display: "M PLUS Rounded 1c",
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        "Meiryo",
        sans-serif;
}

/* 大見出し */
.senscope-theme h1,
.senscope-theme h2,
.senscope-theme h3,

/* ヘッダーメニュー */
.senscope-theme .main-header-menu > .menu-item > .menu-link,

/* ボタン */
.senscope-theme .ss-btn,

/* トップページ4ルート */
.senscope-theme .ss4-route__copy strong,

/* 今のあなたから探す */
.senscope-theme .ss4-topic__copy h3,
.senscope-theme .ss4-topic__cta,

/* 記事タイトル・関連記事 */
.senscope-theme .ss4-article__body h3,

/* ポリシー */
.senscope-theme .ss4-policy-card__copy h3,

/* フッター */
.senscope-theme .ss-site-footer__brand > p,
.senscope-theme .ss-site-footer__nav a {
    font-family: var(--ss-font-display);
}