* {
    box-sizing: border-box;
}

/* ----------------------------------------------------------------
   ベーススタイル
---------------------------------------------------------------- */
html {
    min-width: 320px;
}

html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    display: initial;
}

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

button,
a,
a img,
a svg,
a svg path {
    transition: 0.3s;
}

a:hover {
    opacity: 0.7;
}

a:hover img {
    opacity: 0.7;
}

input,
textarea,
button,
input[type="submit"] {
    -webkit-appearance: none;
    border-radius: 0;
}

input[type="checkbox"] {
    -webkit-appearance: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

table {
    border-collapse: collapse;
}

body.cr-body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    color: #1f2937;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh; /* --vh 未対応ブラウザ用フォールバック */
    min-height: calc(var(--vh, 1vh) * 100);
}

/* コンテンツが短くてもフッターを画面下端に固定する */
body.cr-body .cr-footer {
    margin-top: auto;
}

.cr-container,
.inner {
    width: 1200px;
    max-width: 90%;
    margin: auto;
}

.inner.inner-wide {
    width: 1330px;
}

.cr-main {
    padding: 0;
}

.main-space {
    padding-top: 40px;
}

.cr-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
}

.cr-path {
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

.cr-eyebrow {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #64748b;
}

.cr-error {
    margin-top: 12px;
    color: #b91c1c;
}

.cr-empty {
    margin-top: 20px;
}

/* .inner は上部 .cr-container と共通定義済み */

/* ----------------------------------------------------------------
   フォントユーティリティ
   .barlow は部分的に使う箇所にクラスを付与して使う
---------------------------------------------------------------- */
.barlow {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* ----------------------------------------------------------------
   .id_link_contents  固定ヘッダーがあるページのアンカーオフセット
   height: 0 で見えないが、padding-top / margin-top で位置を補正する
---------------------------------------------------------------- */
.id_link_contents {
    height: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -999999;
    padding-top: 80px;
    margin-top: -80px;
}

/* ----------------------------------------------------------------
   表示切り替えユーティリティ
---------------------------------------------------------------- */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block !important;
    }
}

/* ----------------------------------------------------------------
   .w_max  .inner を突き抜けてフル幅にする（KV・帯背景など）
   .inner の内側でネストして使う
---------------------------------------------------------------- */
.w_max {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ----------------------------------------------------------------
   改行制御ユーティリティ
---------------------------------------------------------------- */
.br-pc {
    display: inline;
}

.br-sp {
    display: none;
}

@media screen and (max-width: 768px) {
    .br-pc {
        display: none;
    }

    .br-sp {
        display: block;
    }
}

/* ----------------------------------------------------------------
   スクロールアニメーション
   使い方: HTML要素に .is_fade_up / .is_fade_left / .is_fade_right /
           .is_fade_in / .is_fade_zoom / .is_boyon を付与する。
   JS (IntersectionObserver) が画面内に入ったタイミングで
   対応する *_start クラスを付与しアニメーションを発火させる。
---------------------------------------------------------------- */

/* --- fade up --- */
.is_fade_up,
.fade_up {
    opacity: 0;
}
.is_fade_up.is_fade_up_start,
.fade_up.fade_up_start,
.body_active .fade_up {
    animation: anim-fade-up 0.5s ease-out forwards;
    animation-delay: 0.1s;
}
@keyframes anim-fade-up {
    0%   { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- fade left --- */
.is_fade_left,
.fade_left {
    opacity: 0;
}
.is_fade_left.is_fade_left_start,
.fade_left.fade_left_start,
.body_active .fade_left {
    animation: anim-fade-left 0.5s ease-out forwards;
    animation-delay: 0.1s;
}
@keyframes anim-fade-left {
    0%   { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* --- fade right --- */
.is_fade_right,
.fade_right {
    opacity: 0;
}
.is_fade_right.is_fade_right_start,
.fade_right.fade_right_start,
.body_active .fade_right {
    animation: anim-fade-right 0.5s ease-out forwards;
    animation-delay: 0.1s;
}
@keyframes anim-fade-right {
    0%   { opacity: 0; transform: translateX(60px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* --- fade in --- */
.is_fade_in,
.fade_in {
    opacity: 0;
}
.is_fade_in.is_fade_in_start,
.fade_in.fade_in_start,
.body_active .fade_in {
    animation: anim-fade-in 0.5s ease-out forwards;
    animation-delay: 0.1s;
}
@keyframes anim-fade-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* --- fade zoom --- */
.is_fade_zoom,
.fade_zoom {
    opacity: 0;
}
.is_fade_zoom.is_fade_zoom_start,
.fade_zoom.fade_zoom_start,
.body_active .fade_zoom {
    animation: anim-fade-zoom 0.5s ease-out forwards;
    animation-delay: 0.1s;
}

.cr-float-entry-pc.fade_zoom.fade_zoom_start,
.body_active .cr-float-entry-pc.fade_zoom {
    animation: anim-fade-zoom 0.5s ease-out forwards;
    animation-delay: 3s;
}
@keyframes anim-fade-zoom {
    0%   { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- boyon (弾むズームイン) --- */
.is_boyon {
    opacity: 0;
    transform: scale(0.5);
}
.is_boyon.is_boyon_start {
    animation: anim-boyon 0.8s ease-out forwards;
    animation-delay: 0.1s;
}
@keyframes anim-boyon {
    0%  { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(0.9, 0.9, 0.9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(0.97, 0.97, 0.97); }
    100%{ opacity: 1; transform: scale3d(1, 1, 1); }
}

/* ----------------------------------------------------------------
   .page_base_contents  microCMS等のリッチテキスト整形
   使い方: <div class="page_base_contents">{リッチテキスト出力}</div>
---------------------------------------------------------------- */
.page_base_contents {
    font-size: 16px;
    line-height: 1.3;
}

.page_base_contents > :first-child {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

.page_base_contents > :last-child {
    margin-block-end: 0 !important;
    margin-bottom: 0 !important;
}

.page_base_contents p,
.page_base_contents li {
    font-size: 1em;
    line-height: 1.5;
}

.page_base_contents p {
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.page_base_contents li {
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
}

.page_base_contents h1,
.page_base_contents h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
}

.page_base_contents h3 {
    font-size: 1.17em;
    font-weight: bold;
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.page_base_contents h4,
.page_base_contents h5,
.page_base_contents h6 {
    font-weight: bold;
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
}

.page_base_contents ul {
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 1.5em;
}

.page_base_contents ol {
    list-style-type: decimal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 1.5em;
}

.page_base_contents table {
    border-collapse: collapse;
    box-sizing: border-box;
}

.page_base_contents thead {
    border-bottom: 3px solid;
}

.page_base_contents tfoot {
    border-top: 3px solid;
}

.page_base_contents td,
.page_base_contents th {
    border: 1px solid;
    padding: 0.5em;
    word-break: normal;
}

.page_base_contents th {
    font-weight: bold;
}

.page_base_contents img {
    height: auto;
}

.page_base_contents figure {
    margin-block-start: 2em;
    margin-block-end: 2em;
}

.page_base_contents figcaption {
    color: #555;
    font-size: 0.8em;
    text-align: center;
}

.page_base_contents a {
    color: #2271b1;
    text-decoration: underline;
}

.page_base_contents em {
    font-style: italic;
}

.page_base_contents strong {
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .page_base_contents {
        font-size: 14px;
    }
}
