@charset "UTF-8";
/* =========================================================
   CHEST 2026 common.css
   全ページ共通：変数 / リセット / ベース /
   共通コンポーネント（ヒーロー・見出し・ボタン・カード）/ ローディング
   ※ ページ固有スタイルは css/<page>.css に分割（該当ページのみ読込）
   ※ 記法はネスト（ho-getsu参考）。メディアクエリは各ブロック内にネスト
   ========================================================= */

/* ---------- 変数 ---------- */
:root {
    --c-white: #fff;
    --c-text: #333;
    --c-navy: #3f8ebb;
    --c-navy-d: #16205c;
    --c-blue: #3ba0d6;
    --c-cyan: #33b9c6;
    --c-lblue: #9aceea;
    --c-lavender: #dcf8ff;
    --c-lavender2: #dcf8ff;
    --c-purple: #b8b8ff;
    --c-grey: #e2e2e2;
    --c-lightgrey: #f4f4f6;
    --c-red: #ff0000;

    --bw: 960px;
    --header-h: 72px;

    --ff-base: "Noto Sans JP", sans-serif, "游ゴシック体", YuGothic, "Yu Gothic Medium", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo;
    --ff-en: "Rajdhani", sans-serif;

    --radius: 16px;
    --shadow: 0 4px 20px rgba(29, 43, 125, 0.08);
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

button {
    font: inherit;
    cursor: pointer;
}

table {
    border-collapse: collapse;
}

/* ---------- ベース ---------- */
body {
    font-family: var(--ff-base);
    color: var(--c-text);
    font-weight: 500;
    line-height: 1.5;
    background: var(--c-white);
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
}

main {
    display: block;
    overflow-x: clip;

    hgroup.sidebar {
        position: relative;
        display: flex;
        flex-direction: column-reverse;  /* p(COMMENT)を上、h2を下に */
        gap: 4px;
        padding-left: 24px;              /* バーぶんの余白 */
    
        /* 左の縦バー */
        &::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 8px;
            background: var(--c-navy);
        }

        h2 {
            color: #1a1a1a;
            font-weight: 700;
            font-size: 1.75rem;
            line-height: 1.2;
            @media (max-width: 768px) { font-size: 1.5rem; }
            @media (max-width: 480px) { font-size: 1.375rem; }
            
        }
    
        p {
            color: var(--c-navy);
            font-size: 1rem;
            font-weight: 600;
            line-height: 1;
        }
    }

    hgroup.upside {
        position: relative;
        display: flex;
        flex-direction: column-reverse;  /* p(COMMENT)を上、h2を下に */
        gap: 4px;
        text-align: center;
        width: fit-content;
        margin: 0 auto;

        h2 {
            color: #1a1a1a;
            font-weight: 700;
            font-size: 1.75rem;
            line-height: 1.2;
            @media (max-width: 768px) { font-size: 1.5rem; }
            @media (max-width: 480px) { font-size: 1.375rem; }
            padding-top: 8px;
        }
    
        p {
            color: var(--c-navy);
            font-size: 1rem;
            font-weight: 600;
            line-height: 1;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--c-navy);
        }
    }
}

/* =========================================================
   共通コンポーネント
   ========================================================= */

/* プライマリボタン */
a.button-square {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--c-navy);
    color: var(--c-white);
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 8px;
    border: 2px solid var(--c-navy);
    transition: .2s;

    &::after {
        content: "";
        width: 24px;
        height: 24px;
        background: url(../img/button_arrow-white.svg) center / contain no-repeat;
        transition: .2s;
    }

    &:hover {
        color: var(--c-navy);
        background: var(--c-white);

        &::after{
            background: url(../img/button_arrow-blue.svg) center / contain no-repeat;
            transform: translateX(4px);
        }
    }
}

.button-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 24px;
    font-weight: 500;
    text-decoration: underline;
    transition: .2s;

    &::after {
        content: "";
        display: block;
        background: url(../img/button_arrow-blue.svg) center / contain no-repeat ;
        width: 24px;
        height: 24px;
        margin-left: 8px;
        transition: .2s;
    }
}

a.button-arrow{
    &:hover{
        text-decoration: none;

        &::after {
            transform: translateX(2px);
        }
    }
}

/* 記事なし */
.no-article {
    text-align: center;
    color: #777;
    padding: 40px 0;
}

/* =========================================================
   ローディング（ho-getsu参考：固定オーバーレイ＋.none フェードアウト）
   ========================================================= */
.load {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7fc4ef url(../img/loading_bg_sakurajima.jpg) center / cover no-repeat;
    /* background: linear-gradient(160deg, #4aa3e6 0%, #8fd0f2 55%, #cfeafc 100%); */
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;

    &.none {
        opacity: 0;
        pointer-events: none;
    }

    .load-text {
        display: flex;
        flex-direction: column;
        gap: 14px;
        text-align: center;
        color: var(--c-white);
        font-weight: 700;
        font-size: clamp(1rem, 3.5vw, 2.2rem);
        letter-spacing: .25em;
        text-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    }
}

/* ---------- SP共通 ---------- */
@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }
}

/* =========================================================
   共有：ページヒーロー帯／セクション見出し（section#page-xxx 配下で使用）
   ========================================================= */

hgroup.common-cover {
    max-width: var(--bw);
    margin: 0 auto ;
    min-height: 264px;

    position: relative;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--c-white);
    text-align: center;
    padding: 40px 24px;
    border-radius: 0 0 40px 40px;
    overflow: hidden;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(20, 30, 80, .25);
        z-index: 0;
    }
    
    h2 {
        position: relative;
        z-index: 1;
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: .06em;
    }

    p {
        position: relative;
        z-index: 1;
        letter-spacing: .12em;
        font-size: 1rem;
        font-weight: 600;
        opacity: .95;
    }

    @media (max-width: 768px) {
        min-height: 200px;
        border-radius: 0 0 24px 24px;

        h2 {
            font-size: 1.5rem;
        }
    }

    @media (max-width: 480px) {
        min-height: 160px;
        padding: 32px 20px;

        h2 {
            font-size: 1.25rem;
        }
    }
}

/* =========================================================
   ページ遷移ローディング（全ページ・遷移ごと）
   ※ 初回限定の .load（parts-loading.php）とは別物
   ========================================================= */
.page-load {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #e7f3fb;   /* 薄い水色（色は調整可） */
    z-index: 9990;
    opacity: 1;
    transition: opacity .6s ease;

    &.none {
        opacity: 0;
        pointer-events: none;
    }

    img {
        width: 200px;
        height: auto;
    }

    p {
        font-weight: 700;
        letter-spacing: .15em;
        color: var(--c-navy);
    }
}

/* =========================================================
   スクロール連動フェードイン
   ========================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade-in.is-in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* モーダル表示中は背景スクロールを止める */
body.is-modal-open {
    overflow: hidden;
}
