@charset "UTF-8";

html {
    height: 100%;
    font-size: 100%;
    color: var(--color-gray-03);
}

/** /////////////////////////////////////////////////// **/
/***** basic tag *****/
/** /////////////////////////////////////////////////// **/
body {
    font-family: YakuHanJP_Narrow, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "游ゴシック体", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    word-break: break-word;
    font-feature-settings: "palt";
    letter-spacing: .2px;
    font-size: clamp(var(--rem14), var(--vw16), var(--rem16));
}

.mincho {}

.gothic {}

/* fade-in */
body {
    animation: loading .9s;
}

@keyframes loading {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#main {}


@media (min-width: 768px) {}

@media (min-width: 1280px) {}

/* 汎用的なテキスト要素にのみ「読みやすい行間」を適用 */
p,
li,
dt,
dd,
th,
td,
blockquote {
    line-height: 1.6;
}

/* 見出しは少し詰め気味（1.2〜1.4）が美しい */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.4;
}

/* これを指定しないと flex 時に，なぜか figure の横幅が画像の半分になってしまう */
figure {
    flex-shrink: 0;
}

/****************************************************/
/* sp - tb - pc 表示切替 */
/****************************************************/
/*
  基本的な考え方：
  モバイルファーストのため、デフォルトで.spが適用されます。
  ブレークポイントを超えるごとに、より広い画面向けのクラスが追加で表示されるようにします。
*/

/* スマートフォン (sp): 0px から適用 */
/* スマートフォンでは、.sp と .sp-tb が表示され、.tb-pc と .pc は非表示 */
.sp {
    display: block !important;
    /* スマートフォンで表示 */
}

.sp-tb {
    display: block !important;
    /* スマートフォンで表示 */
}

.tb-pc,
.pc {
    display: none !important;
    /* スマートフォンで非表示 */
}

/* タブレット縦方向 (sp-tb): 768px 以上で適用 */
@media (min-width: 768px) {
    .sp {
        display: none !important;
        /* タブレット以上で非表示 */
    }

    .sp-tb {
        display: block !important;
        /* タブレットで表示 */
    }

    .tb-pc {
        display: block !important;
        /* タブレットで表示 */
    }

    .pc {
        display: none !important;
        /* タブレットで非表示 */
    }
}

/* PC (pc): 1024px 以上で適用 */
@media (min-width: 1024px) {

    /* ここでタブレット横方向〜PCを一本化し、1024px以上をPCとして扱います */
    .sp,
    .sp-tb {
        display: none !important;
        /* PCで非表示 */
    }

    .tb-pc {
        display: block !important;
        /* PCで表示 */
    }

    .pc {
        display: block !important;
        /* PCで表示 */
    }
}

/****************************************************/
/* Flex and Grid */
/****************************************************/
.dp-flex {
    display: flex;
}

.dp-grid {
    display: grid;
}

.dp-block {
    display: block;
}

.dp-inline-block {
    display: inline-block;
}

.dp-flex-sp-tb-col-pc-row,
.dp-flex-sp-tb-col-pc-row-l,
.dp-flex-sp-col-tb-pc-row {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1280px) {
    .dp-flex-sp-tb-col-pc-row-l {
        flex-direction: row;
    }
}

@media (min-width: 960px) {
    .dp-flex-sp-tb-col-pc-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .dp-flex-sp-col-tb-pc-row {
        flex-direction: row;
    }
}

.dp-flex-dir-col,
.dp-flex-dir-col-sp-only {
    flex-direction: column;
}

@media (min-width: 768px) {
    .dp-flex-dir-col-sp-only {
        flex-direction: inherit;
    }
}

.dp-flex-sp-only {
    display: flex;
}

@media (min-width: 768px) {
    .dp-flex-sp-only {
        display: block;
    }
}

.dp-flex-pc-tb-only {
    display: block;
}

@media (min-width: 768px) {
    .dp-flex-pc-tb-only {
        display: flex;
    }
}

.dp-flex-pc-tb-only-l {
    display: block;
}

@media (min-width: 1080px) {
    .dp-flex-pc-tb-only-l {
        display: flex;
    }
}

/* grid patterns */
[class*="dp-grid-"] {
    display: grid;
}

[class*="dp-grid-sp-2-"],
[class*="dp-grid-sp-tb-2-"] {
    grid-template-columns: repeat(2, 1fr);
}

[class*="dp-grid-sp-1-"],
[class*="dp-grid-sp-tb-1-"] {
    grid-template-columns: repeat(1, 1fr);
}

.dp-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (min-width: 480px) {

    /* sp */
    .dp-grid-sp-1-tb-2-pc-4,
    .dp-grid-sp-1-tb-2-pc-3,
    .dp-grid-sp-1-tb-pc-2 {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (min-width: 600px) {

    /* sp - tablet */
    .dp-grid-sp-1-tb-pc-3,
    .dp-grid-sp-1-tb-3-pc-4 {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (min-width: 768px) {

    /* tablet */
    .dp-grid-sp-2-tb-3-pc-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .dp-grid-sp-2-tb-pc-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {

    /* PC */
    .dp-grid-sp-2-tb-pc-4,
    .dp-grid-sp-tb-2-pc-4,
    .dp-grid-sp-1-tb-3-pc-4,
    .dp-grid-sp-1-tb-2-pc-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .dp-grid-sp-tb-1-pc-3,
    .dp-grid-sp-tb-2-pc-3,
    .dp-grid-sp-1-tb-pc-3,
    .dp-grid-sp-1-tb-2-pc-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .dp-grid-sp-tb-1-pc-2,
    .dp-grid-sp-1-tb-pc-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MIX : Grid and Flex patterns */
.dp-sp-flex-tb-pc-grid,
.dp-sp-tb-flex-pc-grid {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {

    /* PC */
    .dp-grid-sp-2-tb-3-pc-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 600px) {

    /* sp - tablet */
    .dp-sp-flex-tb-pc-grid {
        display: grid;
    }
}

@media (min-width: 1024px) {

    /* PC */
    .dp-sp-flex-tb-pc-grid {
        display: grid;
    }
}

/* flex grid option */
.flex-wrap {
    flex-wrap: wrap;
}

.justify-content-sa {
    justify-content: space-around;
}

.justify-content-sb {
    justify-content: space-between;
}

.justify-content-c {
    justify-content: center;
}

.align-items-c {
    align-items: center;
}

.align-items-base {
    align-items: baseline;
}

.align-items-end {
    align-items: end;
}

.align-items-st {
    align-items: stretch;
}

.flex-dir-c {
    flex-direction: column;
}

.place-items-c {
    place-items: center;
}

.dp-flex-sp-1-col-tb-pc-2-col>* {
    width: 100%;
}

@media (min-width: 1200px) {
    .dp-flex-sp-1-col-tb-pc-2-col>* {
        width: 49.5%;
    }
}

/****************************************************/
/* width */
/****************************************************/
.common-main-w-s {
    width: var(--common-main-w-s);
}

.common-main-w-m {
    width: var(--common-main-w-m);
}

.common-main-w-l {
    width: min(var(--common-main-w-l), 1366px);
}

.fit-content {
    width: fit-content;
}

/* @media (min-width: 600px) {
    .common-main-w-m {
        min-width: 90vw;
    }
}

@media (min-width: 1200px) {
    .common-main-w-m {
        min-width: 1080px;
    }
} */

/****************************************************/
/* scroll-margin-top */
/****************************************************/
h1,
h2,
h3,
h4,
h5,
h6,
section,
div,
[id] {
    scroll-margin-top: 200px !important;
}

/****************************************************/
/* margin */
/****************************************************/
.common-padding-vertical {
    padding: min(var(--vw50), 70px) 0 min(var(--vw80), 100px);
}

.m-top-m-0-0 {
    margin: min(var(--vw50), 80px) 0 0;
}

.m-top-m-a-0 {
    margin: min(var(--vw50), 80px) auto 0;
}

.m-top-s-a-0 {
    margin: min(var(--vw40), 60px) auto 0;
}

.m-a {
    margin: auto;
}

.m-0-a {
    margin: 0 auto;
}

.m-1-a-0 {
    margin: 10px auto 0;
}

.m-2-a-0 {
    margin: 20px auto 0;
}

.m-3-a-0 {
    margin: 30px auto 0;
}

.m-4-a-0 {
    margin: 40px auto 0;
}

.m-5-a-0 {
    margin: 50px auto 0;
}

.m-1-0-0 {
    margin: 10px 0 0;
}

.m-2-0-0 {
    margin: 20px 0 0;
}

.m-3-0-0 {
    margin: 30px 0 0;
}

.m-4-0-0 {
    margin: 40px 0 0;
}

.m-5-0-0 {
    margin: 50px 0 0;
}

/* ******************************************************** */
/* background */
/****************************************************/

.bg-navy {
    background: var(--navy);
}

.bg-gradation-navy {
    background: var(--gradation-navy);
}

.bg-sky-blue {
    background: var(--sky-blue);
}

.bg-emerald {
    background: var(--emerald);
}

.bg-gray {
    background: var(--gray);
}

/****************************************************/
/* img */
/****************************************************/
.img-fit img {
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/****************************************************/
/* text-align */
/****************************************************/
.align-j {
    text-align: justify;
}

.align-r {
    text-align: right;
}

.align-c {
    text-align: center;
}

.align-l {
    text-align: left;
}

.align-sp-c-pc-r {
    text-align: center;
}

.align-sp-l-pc-c {
    text-align: left;
}

.align-sp-c-pc-l {
    text-align: center;
}

@media (min-width: 768px) {
    .align-sp-c-pc-r {
        text-align: right;
    }

    .align-sp-l-pc-c {
        text-align: center;
    }

    .align-sp-c-pc-l {
        text-align: left;
    }
}

/****************************************************/
/* text font */
/****************************************************/
.letter-spacing-0 {
    letter-spacing: 0;
}

.tx-deco-underline {
    text-decoration: underline;
}

.bold {
    font-weight: bold;
}

.semi-bold {
    font-weight: 600;
}

.medium {
    font-weight: 500;
}

.regular {
    font-weight: 400;
}

.light {
    font-weight: 300;
}

.extra-light {
    font-weight: 200;
}

.navy {
    color: var(--navy);
}

.emerald {
    color: var(--emerald);
}

.sky-blue {
    color: var(--sky-blue);
}

.red {
    color: var(--red);
}

.fff {
    color: #fff;
}

/****************************************************/
/* others */
/****************************************************/
.pointer-events-none {
    pointer-events: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/****************************************************/
/* common-lower-page-header */
/****************************************************/
.common-lower-page-header {
    background: url(../img/slide-01.jpg) no-repeat center center / cover;
}

.common-lower-page-header-inner {
    background: url(../img/main-slide-fixed-bg.svg) no-repeat 100% center;
}

.lower-page-heading {
    padding: min(var(--vw30), 70px) 0;
}

@media (min-width: 768px) {
    .common-lower-page-header-inner {
        background: url(../img/main-slide-fixed-bg.svg) no-repeat left center;
    }
}

/****************************************************/
/* common-breadcrumbs */
/****************************************************/
#breadcrumbs {
    font-size: clamp(var(--rem12), var(--vw14), var(--rem14));
}

.common-breadcrumbs {
    padding: min(var(--vw10), 20px) 0 min(var(--vw20), 30px);
}

.common-breadcrumbs a {
    text-decoration: underline;
    color: var(--navy);
}

.common-breadcrumbs :is(a:first-child, span:first-child) {
    padding: 0 5px 0 0;
}

.common-breadcrumbs :is(a:not(:first-child), span:not(:first-child)) {
    padding: 0 5px 0;
}

.common-breadcrumbs .breadcrumb_last {
    padding: 0 0 0 5px;
}

/****************************************************/
/* common-heading */
/****************************************************/
[class*="common-heading-"],
.lower-page-heading,
.common-editor-content :is(h1, h2, h3, h4, h5, h6) {
    font-weight: bold;
}

[class*="common-heading-"],
.common-editor-content :is(h1, h2, h3, h4, h5, h6) {}

.common-heading-h1,
.lower-page-heading {
    font-size: clamp(var(--rem22), var(--vw26), var(--rem40));
}

/* common-editor-content */
.common-editor-content h2,
.common-heading-h2 {
    background: linear-gradient(90deg, var(--emerald) 50px, #E0E0E0 0) bottom / 100% 3px no-repeat;
    padding: 0 0 20px;
    font-size: clamp(var(--rem20), var(--vw24), var(--rem28));
}

.eng-site .common-editor-content h2,
.eng-site .common-heading-h2 {
    font-size: clamp(var(--rem16), var(--vw20), var(--rem24));
}

.common-heading-h2.h2-centered {
    /* 背景の一括指定：カラー（グラデーション） / サイズ 位置 リピート */
    background: linear-gradient(var(--emerald), var(--emerald)) bottom center / 68px 3px no-repeat;
    text-align: center;
}

.common-editor-content h3,
.common-heading-h3,
.form-notice-sentence label,
.form-confirm label {
    border-bottom: 2px solid #E0E0E0;
    border-left: 6px solid var(--emerald);
    padding: 10px;
    font-size: var(--st24);
}

.common-editor-content h4,
.common-heading-h4 {
    background: linear-gradient(180deg, var(--emerald) 50%, #E0E0E0 0) left center / 3px 100% no-repeat;
    padding: 8px 0 8px 15px;
    font-size: var(--st20);
}

.common-editor-content h5,
.common-heading-h5 {
    padding-left: 16px;
    text-indent: 2px;
    position: relative;
}

.common-editor-content h5::before,
.common-heading-h5::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--emerald);
}

.common-editor-content h6,
.common-heading-h6 {
    background: linear-gradient(90deg, #E0E0E0 50px, transparent 0) bottom / 100% 1px no-repeat;
    padding: 10px 0;

}

/* common single */
.common-heading-single {}

/* common-editor-content */
.common-editor-content :is(h2, h3, h4, h5, h6) {
    margin: min(var(--vw40), 50px) 0 0;
}

.common-editor-content> :first-child {
    margin: 0;
}

.wp-block-group {
    margin: min(var(--vw40), 50px) 0 0;
}

.wp-block-group> :first-child {
    margin: 0;
}

/* .common-editor-content p {
    margin: min(var(--vw20), 30px) 0 0;
} */
/* 2番目以降の要素にだけ上マージンを付与する（＝1番目には付かない） */
.common-editor-content>*+*,
.wp-block-group__inner-container>*+* {
    margin-top: min(var(--vw20), 30px);
}

/* 横並びになる要素の中では、このルールを打ち消す */
.wp-block-column>*,
.wp-block-column>*+*,
/* カラムの中身 */
.is-layout-flex>*+*,
.is-layout-flow>*+* {
    /* Flexレイアウトのグループ */
    margin-top: 0;
}

/* .wp-block-file {
    width: fit-content;
} */

.wp-block-buttons .wp-block-button__link {
    background: #fff;
    border: 1px solid var(--navy);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    color: var(--navy);
}

/* ul ol */
.common-editor-content ul.wp-block-list {
    padding: 0 0 0 1em;
    text-indent: -1em;
}

.common-editor-content :is(ol, ul) li>ul {
    margin: 5px 0 0;
}

.common-editor-content ol,
.common-editor-content ul li>ul {
    padding: 0 0 0 15px;
}

.common-editor-content ul li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 100px;
    margin: 0 8px 0 0;
    background: var(--emerald);
}

.common-editor-content :is(ul, ol) li:not(:first-of-type) {
    margin: 5px 0 0;
}

/* a (link) */
.common-editor-content a {
    text-decoration: underline;
    color: var(--navy);
}

/* common-editor-content list-RESET */
.common-editor-content .list-reset li:not(:first-of-type) {
    margin: 0;
}

.common-editor-content .list-reset li::before {
    content: none;
}

.common-editor-content .list-reset a {
    text-decoration: none;
}

/****************************************************/
/* common-table, flexible-table */
/****************************************************/
.common-table-01 th,
.wp-block-flexible-table-block-table th {
    background: var(--sky-blue) !important;
    color: var(--navy);
}

.common-table-01 :is(th, td),
.wp-block-flexible-table-block-table :is(th, td) {
    border-color: #bbbbbb !important;
    padding: 20px !important;
}

.wp-block-flexible-table-block-table.wp-block-flexible-table-block-table.is-scroll-on-mobile table {
    width: 150%;
}

@media (min-width: 768px) {

    .wp-block-flexible-table-block-table.wp-block-flexible-table-block-table.is-scroll-on-mobile table,
    .common-editor-content table {
        width: 100%;
    }
}


/****************************************************/
/* common-btn */
/****************************************************/
/* ---  --- */
[class*="common-btn-"] {
    max-width: 90vw;
}

[class*="common-btn-"] a {
    display: block;
    min-width: 280px;
    width: max-content;
    margin: auto;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    line-height: 1.3;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
}

[class*="common-btn-white"] a {
    border: 1px solid var(--navy);
    background: #fff;
    color: var(--navy);
}

[class*="common-btn-colored"] a {
    background: var(--gradation-navy);
    color: #fff;
}

.wp-block-file.common-btn-white a {
    display: flex;
    gap: 10px;
    margin: auto 0;
    padding: 15px;
    font-size: clamp(var(--rem15), var(--vw15), var(--rem16));
}

.wp-block-file.common-btn-white a::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../img/icon-file.svg) no-repeat center center / contain;
}

.wp-block-column [class*="common-btn-"] a {
    min-width: unset;
    width: 100%;
    max-width: unset;
}

/*  */
#wpadminbar {
    top: unset !important;
    bottom: 0 !important;
}


/****************************************************/
/* btn arrow */
/****************************************************/
.front-service-list .item p::after,
.global-footer-nav-01-list .label-text::after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 25px;
    background: url(../img/icon-arrow-white-right.svg) no-repeat center center / contain;
}

/****************************************************/
/* splide */
/****************************************************/
/* splide */
.button {
    background-color: transparent;
    height: min(var(--vw30), 40px);
    transition: .2s;
    width: min(var(--vw30), 40px);
}

.button::before {
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    height: min(var(--vw30), 40px);
    margin: auto;
    position: absolute;
    width: min(var(--vw30), 40px);
}

.prev::before {
    background-image: url("../img/icon-arrow-right-circle-white.svg");
    /* transform: rotate(180deg); */
}

.next::before {
    background-image: url("../img/icon-arrow-right-circle-white.svg");
}

.button:disabled::before {
    opacity: .5;
}

.splide__slide img {
    height: auto;
    width: 100%;
}

/* 表示速度改善用 */
.splide__track {
    will-change: transform;
    transform: translateZ(0);
}

.splide__slide {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ==========================================
   Splide 初期化前のレイアウト崩れ・縦伸び対策（汎用）
   ========================================== */

/* 1. トラックとリストの基本挙動を固定 */
.splide__track {
    overflow: hidden;
}

.splide__list {
    display: flex;
}

/* 2. スライドが親要素を突き破ったり縦に伸びるのを防ぐ */
.splide__slide {
    flex-shrink: 0;
    width: 100%;
}

/* 3. Safari・Flexbox環境での横幅計算崩れ対策（overflowは指定しない） */
.splide,
.splide__track,
.splide__list,
.splide__slide {
    min-width: 0;
}

/****************************************************/
/* pagination */
/****************************************************/
.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: min(var(--vw10), 20px);
}

.page-numbers :is(a, .current, .dots, .prev, .next) {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* 100pxより50%が直感的 */
    border: 1px solid #BBBBBB;
}

.page-numbers .current {
    font-weight: bold;
}

.page-numbers :is(.prev, .next) {
    background: url(../img/icon-arrow-navy-right.svg) no-repeat 52% center / 25%;
}

.page-numbers .prev {
    transform: rotate(180deg);
}

/****************************************************/
/* google map & iframe */
/****************************************************/
.iframe-wrapper-solo-movie {
    width: min(96%, 720px);
}

.google-map,
.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9のアスペクト比 */
    height: 0;
}

.google-map iframe,
.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/****************************************************/
/* page-top-btn */
/****************************************************/
.page-top-btn {
    width: min(var(--vw40), 80px);
    height: min(var(--vw40), 80px);
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9999;
}

.page-top-btn.is-show {
    opacity: 1;
    visibility: visible;
}

/****************************************************/
/* table */
/****************************************************/
table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table th,
table td {
    vertical-align: middle;
    text-align: left;
    font-weight: normal;
}

table th p,
table td p {
    line-height: 1.6;
}

/*** table-sp-block ***/
.table-sp-block th,
.table-sp-block td {
    display: block;
    width: 100%;
}

.is-stacked-on-mobile th,
.table-sp-block th,
.is-stacked-on-mobile tr:not(:last-of-type) td,
.table-sp-block tr:not(:last-of-type) td {
    border-bottom: none !important;
}

.is-stacked-on-mobile tr:last-of-type th,
.table-sp-block tr:last-of-type th {
    border-bottom: none;
}

/*** common-table ***/
.common-table th {
    font-weight: bold;
}

.common-table th,
.common-table td {
    padding: min(var(--vw10), 15px) 16px;
}

/****************************************************/
@media (min-width: 768px) {

    .table-sp-block th,
    .table-sp-block td {
        display: table-cell;
        width: auto;
    }

    .is-stacked-on-mobile th,
    .table-sp-block th,
    .is-stacked-on-mobile tr:not(:last-of-type) td,
    .table-sp-block tr:not(:last-of-type) td {
        border: inherit;
    }

    .is-stacked-on-mobile tr:last-of-type th,
    .table-sp-block tr:last-of-type th {
        border-bottom: 1px solid #bbb !important;
    }

    /* .table-sp-block th {
        width: 30%;
    }

    .table-sp-block td {
        width: 70%;
    } */
}

/****************************************************/
/* custom radio & checkbox */
/****************************************************/
/* 共通設定：ラベルのコンテナ */
.custom-radio label,
.custom-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

/* 1. 標準の挙動をリセットし、外枠（白背景・丸）を作る */
.custom-radio input[type="radio"],
.custom-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    margin: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: grid;
    place-content: center;
    position: relative;
    transition: border-color 0.2s ease;
}

/* 2. 選択時の中の丸（赤）を作る（擬似要素） */
.custom-radio input[type="radio"]::before,
.custom-checkbox input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff0000;
    /* 選択時の赤丸 */
    transform: scale(0);
    transition: transform 0.15s cubic-bezier(0.12, 0, 0, 1);
}

.custom-checkbox input[type="checkbox"] {
    border-radius: 4px;
}

.custom-checkbox input[type="checkbox"]::before {
    border-radius: 4px;
}

/* 3. 選択（checked）時の挙動 */
.custom-radio input[type="radio"]:checked,
.custom-checkbox input[type="checkbox"]:checked {
    border-color: #ff0000;
    /* 選択時は外枠も赤にする場合。グレーのままなら削除してください */
}

.custom-radio input[type="radio"]:checked::before,
.custom-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* 4. テキストの位置調整 */
.label-text {
    margin-left: 8px;
    font-size: 14px;
    line-height: 1;
}

/* 5. フォーカス時のアクセシビリティ対応（キーボード操作用） */
.custom-radio input[type="radio"]:focus-visible,
.custom-checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}