@charset "utf-8";
/*
Theme Name: 近森会テーマ
Author: BASARA
Version: 1.0
*/

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    backface-visibility: hidden;
}
*:before,
*:after {
    pointer-events: none;
}
:root {
    --color-base-font: #525252;
    --color-main: #548791;
    --color-light-green: #edf3f4;
    --color-deep-green: #014867;
    --color-base-recruit-font: #3b2f28;
    --recruit: #0097d9;
    --resident: #004b69;
    --nurse: #fe6377;
    --pharmacist: #92b405;
    --color-attention: crimson;
    --color-gray: #cdd6dd;
    --contents-width-small: 865px;
    --contents-width-main: 1500px;
    --contents-width-large: 1680px;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
}
html {
    margin: 0;
    padding: 0;
    scroll-padding-top: 170px;
}
body {
    font-family: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    color: var(--color-base-font);
    font-size: clamp(0.875rem, calc(0.664rem + 0.899vw), 1.125rem); /* min: 14px, max: 18px */
    font-weight: var(--weight-regular);
    line-height: 1.8;
    background: #fff;
    overflow-wrap: anywhere; /* 収まらない場合に折り返す */
    word-break: normal; /* 単語の分割はデフォルトに依存 */
    line-break: strict; /* 禁則処理を厳格に適用 */
    text-align: justify;
    text-justify: inter-ideograph;
    min-width: 375px;
    margin: 0;
    padding: 0;
}
div,
p,
ul,
ul li,
dl,
dt,
dd,
address {
    font-size: 1em;
    font-style: normal;
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img,
video,
object {
    max-width: 100%;
    height: auto;
    border: none;
}
img {
    display: inline-block;
    vertical-align: bottom; /* 隙間を解消 */
    image-rendering: -webkit-optimize-contrast !important;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: left;
    line-height: 1.5;
    letter-spacing: 0;
    padding: 0;
    margin: 0;
}
a {
    color: var(--color-main);
    text-decoration: none;
    transition: all ease 0.3s;
}
a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
a[href^="tel:"] {
    color: var(--color-base-font) !important;
    text-decoration: none !important;
    pointer-events: none;
    text-emphasis: none !important;
}
a[href^="fax:"] {
    color: var(--color-base-font) !important;
    text-decoration: none !important;
    pointer-events: none;
}
@media only screen and (max-width: 820px) {
}
@media only screen and (max-width: 468px) {
    html {
        scroll-padding-top: 120px;
    }
    a[href^="tel:"] {
        pointer-events: all;
    }
}
@media print {
    .masked-element {
        /* 必須：印刷時にCSSの画像や背景を強制的に表示させる */
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* カスタム改行 */
.all,
.pc {
    display: inline;
}
.mb {
    display: none;
}
/* 820px以下のとき（タブレット以下） */
@media screen and (max-width: 820px) {
    .pc {
        display: none;
    }
    .mb {
        display: inline;
    }
}

/* =========================================================================================
Header
=========================================================================================*/
#header {
    width: 100%;
    height: 130px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    z-index: 100;
    transition: 0.5s 0.25s;
}
#header::before {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    opacity: 0;
    transition: opacity 0.5s;
    /* 背景用なので文字より後ろへ */
    z-index: -1;
}
#header .inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0 10px 30px;
    position: relative;
    z-index: 1;
}
#header h1 {
    font-size: 1em;
    line-height: 1;
}
#header .logo {
    width: 40%;
    max-width: 370px;
    transition: 0.5s 0.25s;
}
#header .logo svg {
    width: 100%;
    display: block;
}
#header .logo svg .cls-1 {
    fill: #5f5f5f;
}
#header .logo svg .cls-2 {
    fill: #0093d0;
}
#header .logo a {
    display: block;
}
#header .logo a:hover {
    opacity: 1;
}
/*search-area ---------------------------------------------------------*/
#header .search-open {
    color: var(--color-base-font);
    font-size: 18px;
    font-weight: var(--weight-medium);
    line-height: 1;
    width: 50px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 12px;
    background: transparent;
    cursor: pointer;
    margin-right: 120px;
    transition: 0.5s;
}
#header .search-open span.icon {
    display: inline-block;
    width: 36px;
    aspect-ratio: 1 / 1;
    background: var(--color-base-font);
    -webkit-mask-image: url(assets/images/common/icon_search.svg);
    mask-image: url(assets/images/common/icon_search.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: 0.5s;
}
/*クリック後、JSでボタンに btnactive クラスが付与された後の見た目*/
#header .search-open.btnactive span.icon {
    -webkit-mask-image: url(assets/images/common/icon_close.svg);
    mask-image: url(assets/images/common/icon_close.svg);
    -webkit-mask-size: 80%;
    mask-size: 80%;
}
#header #search-wrap {
    width: 35%;
    height: 100%;
    max-width: 600px;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 10px;
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    translate: -170px 0;
    opacity: 0;
    z-index: -1;
    transition: 0.5s;
}
/*ボタンクリック後、JSで#search-wrapに panelactive クラスが付与された後の見た目*/
#header #search-wrap.panelactive {
    pointer-events: inherit; /*クリック可能*/
    opacity: 1; /*不透明に変更*/
    z-index: 5; /*全面に出現*/
}
#header .search-area form {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}
#header .search-area .search-input {
    font-size: clamp(0.75rem, calc(0.645rem + 0.449vw), 0.875rem); /* min: 12px, max: 14px */
    width: 100%;
    max-width: 600px;
    background: #fff url(assets/images/common/icon_search_color.svg) no-repeat center left 0.75em / 1.375em !important;
    border: 1px solid rgb(84, 135, 145, 0.5);
    padding: 0.5em 0.75em 0.5em 2.5em;
    transition: 0.5s;
}
#header .search-area .search-input::placeholder {
    color: #525252;
    font-weight: var(--weight-medium);
}
#header .search-area .btn-submit {
    color: #fff;
    font-size: clamp(0.875rem, calc(0.77rem + 0.449vw), 1rem); /* min: 14px, max: 16px */
    font-weight: var(--weight-medium);
    line-height: 1;
    white-space: nowrap;
    background: var(--color-main);
    padding: 0.1em 0.6em 0 0.5em;
    margin: 0;
}
#header .search-area .btn-submit:hover {
    opacity: 0.8;
    transition: 0.3s;
}

/* HAMBURGER MENU -------------------------------------------------*/
#header .openbtn {
    color: var(--color-base-font);
    font-size: 18px;
    font-weight: var(--weight-medium);
    line-height: 1;
    width: 60px;
    height: 70px;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 15px;
    position: absolute;
    top: 50%;
    right: 30px;
    translate: 0 -50%;
    z-index: 9999;
    transition: 0.5s;
}
#header .openbtn span {
    width: 100%;
    height: 5px;
    background: var(--color-base-font);
    transform-origin: 50% 40%;
    transition: 0.5s;
}
#header .openbtn span:nth-of-type(2) {
    margin-bottom: 4px;
}
#header .openbtn.active {
    color: var(--color-main) !important;
    background: #fff;
    gap: 0;
    padding-top: 12px;
    transition: background 0s 0.5s;
}
#header .openbtn.active span {
    height: 3px;
    background: var(--color-main) !important;
}
#header .openbtn.active span:nth-of-type(1) {
    width: 90%;
    transform: rotate(40deg);
}
#header .openbtn.active span:nth-of-type(2) {
    width: 90%;
    transform: rotate(-40deg) translateX(1px) translateY(-2px);
    margin-bottom: 24px;
}

/* スクロールの処理 ---------------------------------------*/
/* --- スクロール時に適用されるクラス --- */
/* #header.is-scrolled {
    height: 90px;
} */
#header.is-scrolled::before {
    opacity: 1;
}
/* #header.is-scrolled .logo {
    max-width: 300px;
} */

/*globalnavi ----------------------------------------------------------*/
#header #g-navi-area {
    width: 400px !important;
    height: 100vh;
    background: #fff;
    border-radius: 0;
    display: initial;
    padding: 0;
    position: fixed;
    z-index: 99;
    top: 0;
    right: -120%;
    transition: all 0.5s;
}
#header #g-navi-area.panelactive {
    /*アクティブクラスがついたら位置を0に*/
    right: 0;
}
#header #g-navi-area #g-navi-list {
    /*ナビの数が増えた場合縦スクロール*/
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 2.5vh;
    padding: 100px 25px 75px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 999;
}
/* .g-navi-logo */
#header #g-navi-area #g-navi-list .g-navi-logo {
    display: inline-block;
    width: 200px;
    position: absolute;
    top: 40px;
    left: 25px;
}
/* #g-navi */
#header #g-navi ul {
    width: 100%;
    flex-direction: column;
    align-items: start;
    justify-content: left;
    padding: 0;
    margin: auto;
    position: relative;
    z-index: 999;
}
#header #g-navi ul li {
    font-size: clamp(0.938rem, calc(0.779rem + 0.674vw), 1.125rem); /* min: 15px, max: 18px */
    line-height: 1.4;
    text-align: left;
    border-bottom: 1px solid var(--color-gray);
    position: relative;
    z-index: 1;
}
#header #g-navi ul li:last-child {
    border-bottom: none;
}
#header #g-navi ul li a {
    color: var(--color-base-font);
    display: block;
    padding-block: 1.25em;
}
#header #g-navi ul li a:hover {
    text-decoration: none;
}
/*アコーディオンなし*/
#header #g-navi ul li:not(.has-child) ::before,
#header #g-navi ul li:not(.has-child) ::after {
    content: "";
    width: 1.5em;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 1;
    transition: 0.3s;
}
#header #g-navi ul li:not(.has-child) ::before,
#header #g-navi ul li:not(.has-child) ::after {
    background: var(--color-main);
    translate: 0 -50%;
}
#header #g-navi ul li:not(.has-child) ::after {
    content: "";
    background: #fff;
    -webkit-mask-image: url(assets/images/common/arrow_mask.svg);
    mask-image: url(assets/images/common/arrow_mask.svg);
    -webkit-mask-size: 0.375em;
    mask-size: 0.375em;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    translate: 3.5% -50%;
}
/*アコーディオンあり*/
/* --- ベースの調整 --- */
#header #g-navi ul li {
    position: relative;
}
#header #g-navi ul li.has-child {
    z-index: 1;
}
/* リンク文字がボタンに被らないように右に余白を作る */
#header #g-navi ul li.has-child > a {
    display: block;
    padding-right: 50px; /* ボタンのスペースを確保 */
    position: relative;
    z-index: 2; /* 文字をボタンより上に */
}
/* --- 【重要】JSで追加される開閉ボタンのスタイル --- */
span.accordion-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 50px; /* クリックしやすい広めの幅 */
    aspect-ratio: 1 / 1;
    cursor: pointer;
    z-index: 3; /* 一番手前に配置 */
}
/* プラス・マイナスの線を描画 */
span.accordion-toggle::before,
span.accordion-toggle::after {
    content: "";
    width: 16px;
    height: 2px;
    background: #000;
    position: absolute;
    top: 50%;
    left: 50%; /* 枠の中央に配置 */
    transform: translate(-50%, -50%); /* 完全に中央寄せ */
}
/* 縦棒（::after）のみ回転させる */
span.accordion-toggle::after {
    transform: translate(-50%, -50%) rotate(-90deg);
    transition: transform 0.3s;
}
/* 開いたとき（active時）：縦棒を横にしてマイナスにする */
span.accordion-toggle.active::after {
    transform: translate(-50%, -50%) rotate(0deg);
}
/* サブメニュー初期非表示 */
#header #g-navi ul li.has-child ul.sub-menu {
    display: none;
}

@media only screen and (max-width: 820px) {
    #header,
    #header.is-scrolled {
        height: 70px;
    }
    #header .inner {
        padding: 0 0 0 20px;
    }
    #header .logo {
        width: 250px;
    }

    /*search-area ---------------------------------------------------------*/
    #header .search-open {
        font-size: 14px;
        width: 45px;
        height: 60px;
        background-size: 2em;
        margin-right: 80px;
    }
    /*クリック後、JSでボタンに btnactive クラスが付与された後の見た目*/
    #header .search-open span.icon {
        width: 1.75em;
    }
    #header #search-wrap {
        width: calc(100% - 20px - 20px);
        max-width: none;
        height: auto;
        padding: 10px;
        top: 100%;
        left: 50%;
        translate: -50% 0;
    }
    #header .search-area .search-input {
        max-width: none;
    }
    /* HAMBURGER MENU -------------------------------------------------*/
    #header .openbtn {
        font-size: 14px;
        width: 50px;
        height: 60px;
        gap: 11px;
        right: 20px;
    }
    #header .openbtn span {
        height: 2px;
    }
    #header .openbtn.active {
        background: transparent;
    }
    #header .openbtn.active span {
        width: 80%;
        height: 2px;
    }
    /* スクロールの処理 ---------------------------------------*/
    /* --- スクロール時に適用されるクラス --- */
    #header.is-scrolled {
        background: #fff;
    }
    #header.is-scrolled::before {
        opacity: 0;
    }
    #header.is-scrolled .logo svg .cls-1 {
        fill: #5f5f5f;
    }
    #header.is-scrolled .logo svg .cls-2 {
        fill: #0093d0;
    }
    #header.is-scrolled .search-open {
        color: var(--color-base-font);
    }
    #header.is-scrolled .search-open span.icon {
        background: var(--color-base-font);
    }
    #header.is-scrolled .openbtn {
        color: var(--color-base-font);
    }
    #header.is-scrolled .openbtn span {
        background: var(--color-base-font);
    }
    #header.is-scrolled .openbtn.active {
        color: var(--color-main);
    }
    #header.is-scrolled .openbtn.active span {
        background: var(--color-main);
    }
    /*globalnavi ----------------------------------------------------------*/
    #header #g-navi-area #g-navi-list {
        min-width: 375px;
        padding: 70px 25px 50px;
        overscroll-behavior: contain;
    }
    #header #g-navi-area #g-navi-list .g-navi-logo {
        top: 20px;
    }
}
@media only screen and (max-width: 468px) {
    #header::before {
        opacity: 0;
    }
    #header .logo {
        width: 225px;
    }
    /*search-area ---------------------------------------------------------*/
    #header .search-open {
        color: var(--color-base-font);
    }
    #header .search-open span.icon {
        background: var(--color-base-font);
    }
    /* HAMBURGER MENU -------------------------------------------------*/
    #header .openbtn {
        color: var(--color-base-font);
    }
    #header .openbtn span {
        background: var(--color-base-font);
    }
    /*globalnavi ----------------------------------------------------------*/
    #header #g-navi-area {
        width: 100% !important;
        right: -150%;
    }
    #header #g-navi ul li a {
        padding-block: 1em 0.9em;
    }
}
/* 印刷用に調整 */
@media print {
    #header {
        position: absolute;
    }
}

/* =========================================================================================
Header透過（mobileのみ） (カテゴリーTOP専用 / 子ページ専用テンプレート) ※変更差分のみ
=========================================================================================*/
body.page-template-page-category-top #header,
body.page-template-page-category-child #header {
    background: #fff;
}
@media only screen and (max-width: 820px) {
    body.page-template-page-category-top #header,
    body.page-template-page-category-child #header {
        background: transparent;
    }
    body.page-template-page-category-top #header::before,
    body.page-template-page-category-child #header::before {
        background: linear-gradient(to top, rgba(82, 82, 82, 0) 0%, rgba(82, 82, 82, 0.53) 74.88%, #525252 100%);
        opacity: 0.6;
    }
    body.page-template-page-category-top #header .logo svg .cls-1,
    body.page-template-page-category-top #header .logo svg .cls-2,
    body.page-template-page-category-child #header .logo svg .cls-1,
    body.page-template-page-category-child #header .logo svg .cls-2 {
        fill: #fff;
    }
    /*search-area ---------------------------------------------------------*/
    body.page-template-page-category-top #header .search-open,
    body.page-template-page-category-child #header .search-open {
        color: #fff;
    }
    body.page-template-page-category-top #header .search-open span.icon,
    body.page-template-page-category-child #header .search-open span.icon {
        background: #fff;
    }

    /* HAMBURGER MENU -------------------------------------------------*/
    body.page-template-page-category-top #header .openbtn,
    body.page-template-page-category-child #header .openbtn {
        color: #fff;
    }
    body.page-template-page-category-top #header .openbtn span,
    body.page-template-page-category-child #header .openbtn span {
        background: #fff;
    }
    body.page-template-page-category-top #header .openbtn.active,
    body.page-template-page-category-child #header .openbtn.active {
        color: var(--color-main);
    }
    body.page-template-page-category-top #header .openbtn.active span,
    body.page-template-page-category-child #header .openbtn.active span {
        background: var(--color-main);
    }

    /* スクロールの処理 ---------------------------------------*/
    /* --- スクロール時に適用されるクラス --- */
    body.page-template-page-category-top #header.is-scrolled,
    body.page-template-page-category-child #header.is-scrolled {
        background: #fff;
    }
    body.page-template-page-category-top #header.is-scrolled::before,
    body.page-template-page-category-child #header.is-scrolled::before {
        opacity: 0;
    }
    body.page-template-page-category-top #header.is-scrolled .logo svg .cls-1,
    body.page-template-page-category-child #header.is-scrolled .logo svg .cls-1 {
        fill: #5f5f5f;
    }
    body.page-template-page-category-top #header.is-scrolled .logo svg .cls-2,
    body.page-template-page-category-child #header.is-scrolled .logo svg .cls-2 {
        fill: #0093d0;
    }
    body.page-template-page-category-top #header.is-scrolled .search-open,
    body.page-template-page-category-child #header.is-scrolled .search-open {
        color: var(--color-base-font);
    }
    body.page-template-page-category-top #header.is-scrolled .search-open span.icon,
    body.page-template-page-category-child #header.is-scrolled .search-open span.icon {
        background: var(--color-base-font);
    }
    body.page-template-page-category-top #header.is-scrolled .openbtn,
    body.page-template-page-category-child #header.is-scrolled .openbtn {
        color: var(--color-base-font);
    }
    body.page-template-page-category-top #header.is-scrolled .openbtn span,
    body.page-template-page-category-child #header.is-scrolled .openbtn span {
        background: var(--color-base-font);
    }
    body.page-template-page-category-top #header.is-scrolled .openbtn.active,
    body.page-template-page-category-child #header.is-scrolled .openbtn.active {
        color: var(--color-main);
    }
    body.page-template-page-category-top #header.is-scrolled .openbtn.active span,
    body.page-template-page-category-child #header.is-scrolled .openbtn.active span {
        background: var(--color-main);
    }
}

/* =========================================================================================
Header透過バージョン（HOME/理事） ※差分のみ
=========================================================================================*/
body.home #header,
body.page-template-page-category-child.page-id-61 #header {
    background: transparent;
}
body.home #header::before,
body.page-template-page-category-child.page-id-61 #header::before {
    background: linear-gradient(to top, rgba(82, 82, 82, 0) 0%, rgba(82, 82, 82, 0.53) 74.88%, #525252 100%);
    opacity: 0.6;
    transition: opacity 0.5s;
}
body.home #header .logo svg .cls-1,
body.home #header .logo svg .cls-2,
body.page-template-page-category-child.page-id-61 #header .logo svg .cls-1,
body.page-template-page-category-child.page-id-61 #header .logo svg .cls-2 {
    fill: #fff;
}

/*search-area ---------------------------------------------------------*/
body.home #header .search-open,
body.page-template-page-category-child.page-id-61 #header .search-open {
    color: #fff;
}
body.home #header .search-open span.icon,
body.page-template-page-category-child.page-id-61 #header .search-open span.icon {
    background: #fff;
}

/* HAMBURGER MENU -------------------------------------------------*/
body.home #header .openbtn,
body.page-template-page-category-child.page-id-61 #header .openbtn {
    color: #fff;
}
body.home #header .openbtn span,
body.page-template-page-category-child.page-id-61 #header .openbtn span {
    background: #fff;
}
body.home #header .openbtn.active,
body.page-template-page-category-child.page-id-61 #header .openbtn.active {
    color: var(--color-main);
}
body.home #header .openbtn.active span,
body.page-template-page-category-child.page-id-61 #header .openbtn.active span {
    background: var(--color-main);
}

/* スクロールの処理 ---------------------------------------*/
/* --- スクロール時に適用されるクラス --- */
body.home #header.is-scrolled,
body.page-template-page-category-child.page-id-61 #header.is-scrolled {
    background: #fff;
}
body.home #header.is-scrolled::before,
body.page-template-page-category-child.page-id-61 #header.is-scrolled::before {
    opacity: 0;
}
body.home #header.is-scrolled .logo svg .cls-1,
body.page-template-page-category-child.page-id-61 #header.is-scrolled .logo svg .cls-1 {
    fill: #5f5f5f;
}
body.home #header.is-scrolled .logo svg .cls-2,
body.page-template-page-category-child.page-id-61 #header.is-scrolled .logo svg .cls-2 {
    fill: #0093d0;
}
body.home #header.is-scrolled .search-open,
body.page-template-page-category-child.page-id-61 #header.is-scrolled .search-open {
    color: var(--color-base-font);
}
body.home #header.is-scrolled .search-open span.icon,
body.page-template-page-category-child.page-id-61 #header.is-scrolled .search-open span.icon {
    background: var(--color-base-font);
}
body.home #header.is-scrolled .openbtn,
body.page-template-page-category-child.page-id-61 #header.is-scrolled .openbtn {
    color: var(--color-base-font);
}
body.home #header.is-scrolled .openbtn span,
body.page-template-page-category-child.page-id-61 #header.is-scrolled .openbtn span {
    background: var(--color-base-font);
}
body.home #header.is-scrolled .openbtn.active,
body.page-template-page-category-child.page-id-61 #header.is-scrolled .openbtn.active {
    color: var(--color-main);
}
body.home #header.is-scrolled .openbtn.active span,
body.page-template-page-category-child.page-id-61 #header.is-scrolled .openbtn.active span {
    background: var(--color-main);
}

@media only screen and (max-width: 820px) {
}

/* =========================================================================================
Footer
=========================================================================================*/
#footer {
    font-size: clamp(0.75rem, calc(0.381rem + 1.573vw), 1.188rem); /* min: 12px, max: 19px */
    padding-block: 60px 50px;
    position: relative;
}
#footer .inner {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 20px;
    position: relative;
    z-index: 1;
}
/* btn */
#footer .btn {
    width: 50%;
    max-width: 335px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}
#footer .btn a {
    width: 100%;
}
/* info */
#footer .info {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 30px;
}
#footer .info .logo {
    width: 100%;
    max-width: 300px;
}
#footer .info .address p {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: start;
    gap: 0 1em;
}
/* footer-navi */
#footer .f-navi {
    border-top: 2px solid var(--color-gray);
    padding-top: 20px;
}
#footer .f-navi #f-navi-1 {
    width: 100%;
}
#footer .f-navi #f-navi-1 ul.menu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 1em 2em;
}
#footer .f-navi #f-navi-1 ul.menu li {
    display: inline-table;
    list-style-type: none;
}
#footer .f-navi #f-navi-1 ul.menu > li > a,
#footer .f-navi #f-navi-1 ul.menu > li > span {
    color: var(--color-base-font);
    font-weight: var(--weight-regular);
    display: block;
}
#footer .f-navi #f-navi-1 ul.menu > li > a {
    text-decoration: underline;
}
#footer .f-navi #f-navi-1 ul.sub-menu {
    width: 100%;
    display: inline-block;
    margin-top: 0.75em;
    margin-left: 2em;
}
#footer .f-navi #f-navi-1 ul.sub-menu > li {
    display: list-item;
    list-style-type: disc;
}
/* sns */
#footer .sns {
    position: absolute;
    right: 0;
    bottom: 1em;
    z-index: 1;
}
#footer .sns a {
    color: var(--color-base-font);
    text-decoration: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}
#footer .sns a b {
    margin-top: 0.1em;
    margin-right: 0.5em;
}
#footer .sns a img {
    width: auto;
    height: 43px;
}
/*copyright*/
#footer .copyright {
    font-size: clamp(0.625rem, calc(0.52rem + 0.449vw), 0.75rem); /* min: 10px, max: 12px */
    margin-top: 30px;
}
@media only screen and (max-width: 820px) {
    #footer {
        padding-block: 60px 30px;
    }
    #footer .inner {
        padding-right: 0;
    }
    /* info */
    #footer .info .logo {
        width: 60%;
    }
    /* footer-navi */
    #footer .f-navi {
        max-width: none;
    }
    #footer .f-navi #f-navi-1 ul.menu {
        justify-content: left;
        gap: 0.75em 2em;
    }
    /* sns */
    #footer .sns {
        max-width: 230px;
        margin-top: 10px;
        margin-bottom: 10px;
        position: static;
    }
    #footer .sns a b {
        font-size: 12px;
        margin-right: 0;
    }
    #footer .sns a img {
        height: 20px;
    }
}
@media only screen and (max-width: 468px) {
    #footer {
        padding-block: 40px 20px;
    }
    #footer .info {
        gap: 10px;
        margin-bottom: 15px;
    }
    #footer .f-navi {
        border-width: 1px;
    }
    #footer .btn {
        width: calc(100% - 20px - 20px);
        justify-content: center;
        position: static;
        translate: 0;
        margin: auto;
    }
    #footer .btn a {
        min-width: 335px !important;
        padding: 1.5em;
    }
}

/* =========================================================================================
Page Top
=========================================================================================*/
#page-top {
    display: none; /*最初は非表示*/
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 99;
}
#page-top a {
    color: rgba(0, 0, 0, 0);
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
    font-weight: var(--weight-bold);
    text-indent: -9999px;
    width: 50px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-main);
    position: relative;
}
#page-top a:before,
#page-top a::after {
    content: "";
    width: 3px;
    height: 15px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: calc(50% - 2.5px);
    transform-origin: 50% 1.5px;
    translate: 0 -40%;
    transition: 0.3s;
}
#page-top a::before {
    transform: rotate(45deg);
}
#page-top a::after {
    transform: rotate(-45deg);
}
#page-top a:hover {
    background-color: var(--color-gray);
    opacity: 1;
}
@media only screen and (max-width: 820px) {
    #page-top a {
        width: 40px;
    }
}
@media only screen and (max-width: 468px) {
    #page-top {
        bottom: 5px;
        right: 5px;
    }
    #page-top a {
        width: 30px;
    }
    #page-top a:before,
    #page-top a::after {
        height: 13px;
    }
}
@media print {
    #page-top {
        display: none !important;
    }
}

/* =========================================================================================
Layout
=========================================================================================*/
#wrapper {
    padding: 0;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
#contents {
    padding-block: 130px 0;
    margin: 0 auto;
    position: relative;
}
body.page-template-page-free-edit #contents {
    padding-block: 0;
}
#main {
    margin: 0;
    padding: 0;
}
section {
    position: relative;
    padding-block: 100px;
    margin: 0;
}
.inner {
    max-width: var(--contents-width-main);
    width: calc(100% - 40px - 40px); /*左右の余白40pxずつ*/
    margin: 0 auto;
    position: relative;
}
@media only screen and (max-width: 980px) {
    #contents {
        padding-block: 100px 0;
    }
}
@media only screen and (max-width: 820px) {
    #contents {
        padding-block: 0;
    }
    section {
        padding-block: 75px;
    }
    .inner {
        width: calc(100% - 20px - 20px);
    }
}
@media only screen and (max-width: 468px) {
    section {
        padding-block: 40px;
    }
}

/* iframe ----------------------------------------------------------------------*/
#contents iframe {
    pointer-events: all !important;
}

/* google map -------------------------------------------------------------*/
#contents .map {
    position: relative;
    min-height: 320px;
}
#contents .map iframe {
    width: 100%;
    aspect-ratio: 400 / 260;
    height: auto;
    pointer-events: all;
}
/* 印刷用に調整 */
@media print {
    #contents .map iframe {
        width: auto !important;
        height: auto !important;
    }
}

/*sidebar ----------------------------------------------------------------------*/
#contents .post-content:has(#sidebar) /*#sidebarがあるとき*/ {
    width: calc(100% - 40px - 40px);
    max-width: var(--contents-width-main);
    display: grid;
    grid-template-columns: 3fr minmax(250px, 1fr);
    align-items: start;
    gap: 6.5%;
    margin-inline: auto;
}
#contents .post-content:has(#sidebar) .post-content-main {
    width: 100%;
}
#contents .post-content:has(#sidebar) .post-content-main section {
    padding-block: 0;
}
#contents .post-content:has(#sidebar) .post-content-main .inner {
    width: 100%;
}
/* aside ------------------------------------- */
#sidebar {
    padding: 0;
    margin: 0;
}
#sidebar .box + .box {
    margin-top: 50px;
}
#sidebar .side-title {
    color: var(--color-main);
    font-family: "Shippori Mincho", serif;
    font-size: clamp(1.125rem, calc(0.704rem + 1.798vw), 1.625rem); /* min: 18px, max: 26px */
    font-weight: var(--weight-semibold);
    line-height: 1.4;
    width: 100%;
    margin-bottom: 1em;
}
#sidebar .side-nav ul {
    line-height: 1.4;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}
#sidebar .side-nav ul li a {
    color: var(--color-base-font);
    display: block;
    width: fit-content;
    padding-block: 0.2em 0.3em;
}
#sidebar .side-nav ul li a::before {
    content: "";
    width: 0.6em;
    aspect-ratio: 1 / 1;
    background-color: var(--color-main);
    position: absolute;
    top: 0;
    left: 0.2em;
    z-index: 1;
    -webkit-mask-image: url(assets/images/common/arrow_mask.svg);
    mask-image: url(assets/images/common/arrow_mask.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    translate: 0 0.6em;
    transition: 0.3s;
}
/*1階層*/
#sidebar .side-nav > ul > li {
    padding-block: 0.1em 0.2em;
    padding-left: 1.2em;
    position: relative;
    z-index: 1;
}
#sidebar .side-nav > ul > li > a::before {
    translate: 0 100%;
}
@media only screen and (max-width: 980px) {
    #contents .post-content:has(#sidebar) /*#sidebarがあるとき*/ {
        display: block;
        width: calc(100% - 20px - 20px);
    }
    #contents .post-content:has(#sidebar) .post-content-main {
        width: 100%;
    }
    #sidebar {
        margin-top: 75px;
        margin-inline: auto;
    }
}
@media only screen and (max-width: 468px) {
    #sidebar {
        margin-top: 50px;
        margin-inline: auto;
    }
}

/* =========================================================================================
Layout (採用関係テンプレート) ※変更差分のみ
=========================================================================================*/
body.recruit-style #contents {
    padding-block: 120px 0;
}
body.page-template-page-recruit-top #contents {
    padding-block: 100px 0;
}
@media only screen and (max-width: 820px) {
    body.recruit-style #contents {
        padding-block: 70px 0;
    }
    body.page-template-page-recruit-top #contents {
        padding-block: 50px 0;
    }
}
@media only screen and (max-width: 468px) {
}

/* =========================================================================================
Post list
=========================================================================================*/
/*common*/
.post-list {
    width: 100%;
    margin: 0;
    padding: 0;
}
.post-list ul {
    width: 100%;
    margin: 0;
    padding: 0;
}
.post-list ul a {
    color: var(--color-base-font);
    text-decoration: none !important;
    display: inline-block;
}
.post-list ul a:hover {
    text-decoration: none;
}
.post-list ul li {
    width: 100%;
}
.post-list .no-post {
    text-align: center;
    display: block;
    padding: 10vh 1em;
}
.post-list .cat {
    font-size: clamp(0.563rem, calc(0.246rem + 1.348vw), 0.938rem); /* min: 9px, max: 15px */
    line-height: 1.2;
    height: auto;
    translate: 0 -10%;
}
.post-list .cat a {
    text-align: center;
    display: block;
    min-width: 130px;
    background: #fff;
    border: 2px solid var(--color-gray);
    border-radius: 50px;
    padding: 0.5em 0.5em 0.25em;
}
.post-list .cat a.cat-obituary {
    background-color: var(--color-gray);
}

/*column ------------------------------------------------------------*/
.post-list.column ul {
    margin-bottom: 50px;
}
.post-list.column ul li {
    background-image: repeating-linear-gradient(90deg, var(--color-gray), var(--color-gray) 2px, transparent 2px, transparent 5px);
    background-position: left bottom;
    background-repeat: repeat-x;
    background-size: 100% 1px;
    padding: 1.5em 0 1.2em;
}
.post-list.column ul li article {
    display: grid;
    grid-template-columns: auto 130px 1fr;
    align-items: start;
    justify-content: left;
    gap: 0 1em;
}
.post-list.column .date {
    color: var(--color-main);
    /*font-size: clamp(0.625rem, calc(0.204rem + 1.798vw), 1.125rem); /* min: 10px, max: 18px */
    font-size: clamp(0.75rem, calc(0.434rem + 1.348vw), 1.125rem); /* min: 12px, max: 18px */
    font-weight: var(--weight-medium);
}
.post-list.column .title {
    font-size: clamp(0.75rem, calc(0.381rem + 1.573vw), 1.188rem); /* min: 12px, max: 19px */
    font-weight: var(--weight-medium);
    line-height: 1.5;
    padding-left: 1em;
}
.post-list.column .title a {
    display: inline-block;
    position: relative;
    z-index: 1;
}
.post-list.column .title a[href$=".pdf"] {
    padding-left: 1.5em;
}
.post-list.column .title a[href$=".pdf"]::before {
    content: "";
    background: var(--color-base-font);
    width: 1.25em;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    position: absolute;
    right: suto;
    left: 0;
    top: 0;
    translate: 0 0.15em;
    z-index: 1;
    -webkit-mask-image: url(assets/images/common/icon_pdf.svg);
    mask-image: url(assets/images/common/icon_pdf.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: 0.3s;
}
.post-list.column .title a:hover {
    color: var(--color-main);
    opacity: 1;
}
.post-list.column .title a[href$=".pdf"]:hover::before {
    background: var(--color-main);
}
@media only screen and (max-width: 820px) {
    .post-list.column ul li article {
        display: grid;
        grid-template-columns: 6em 1fr;
        grid-template-rows: auto 1fr;
        align-items: start;
        gap: 0.25em 5%;
    }
    .post-list.column .date {
        grid-area: 1 / 1 / 2 / 2;
        text-align: center;
        width: auto !important;
    }
    .post-list.column .cat {
        grid-area: 2 / 1 / 3 / 2;
    }
    .post-list .cat a {
        text-align: center;
        min-width: 57px;
        border-width: 1px;
    }
    .post-list.column .title {
        grid-area: 1 / 2 / 3 / 3;
        width: 100% !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 0;
    }
}
@media only screen and (max-width: 468px) {
    .post-list.column ul li article {
        grid-template-columns: 5em 1fr;
    }
    .post-list.column ul {
        margin-bottom: 30px;
    }
    .post-list.column ul li {
        padding: 1.2em 0 1em;
    }
}

/* row ------------------------------------------------------------------------*/
.post-list.row ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
    margin-bottom: 50px;
}
.post-list.row li {
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.1));
}
.post-list.row li:only-child {
    max-width: 380px;
}
.post-list.row li article {
    background: #fff;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(200px, 40%) 1fr;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
}
.post-list.row li article a {
    height: 100%;
    display: block;
}
.post-list.row .thumbnail {
    position: relative;
}
.post-list.row .thumbnail img {
    width: 100%;
    height: 100%;
    min-height: 215px;
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
.post-list.row .post-content {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em 1.5em;
    padding: 10%;
    margin: auto;
}
.post-list.row .date {
    color: var(--color-main);
    font-weight: var(--weight-medium);
}
.post-list.row .title {
    font-size: clamp(0.75rem, calc(0.381rem + 1.573vw), 1.188rem); /* min: 12px, max: 19px */
    font-weight: var(--weight-bold);
    line-height: 1.5;
    width: 100%;
}
@media only screen and (max-width: 820px) {
    .post-list.row li {
        filter: none;
    }
    .post-list.row li article {
        background: transparent;
        border-radius: 0;
        grid-template-columns: minmax(125px, 30%) 1fr;
        gap: 20px;
        overflow: visible;
    }
    .post-list.row li article a {
        height: auto;
    }
    .post-list.row .thumbnail img {
        min-height: auto;
        aspect-ratio: 124 / 82;
    }
    .post-list.row .post-content {
        padding: 0;
    }
    .post-list.row .date {
        color: var(--color-base-font);
    }
}
@media only screen and (max-width: 468px) {
}

/* =========================================================================================
Parts (chikamori group link)
=========================================================================================*/
/*home*/
.parts-group-link ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.parts-group-link ul li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 3px rgb(64, 64, 64, 0.7));
    transform: translateZ(0); /*シャドウのカクつき防止*/
}
.parts-group-link ul li > a,
.parts-group-link ul li.accordion {
    color: var(--color-base-font);
    font-size: clamp(0.875rem, calc(0.625rem + 1.067vw), 1.625rem); /* min: 14px, max: 26px */
    text-align: center;
    line-height: 1.4;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-block: 0.7em 0.5em;
    padding-inline: 0.5em;
    position: relative;
    z-index: 1;
    overflow: hidden;
    opacity: 1 !important;
}
.parts-group-link ul li > a::before,
.parts-group-link ul li > a::after,
.parts-group-link ul li.accordion::before,
.parts-group-link ul li.accordion::after {
    content: "";
    width: 80%;
    max-height: 92px;
    aspect-ratio: 332 / 92;
    background: url(assets/images/btn_shadow.svg) no-repeat left top / contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
    z-index: 5;
}
.parts-group-link ul li > a::after,
.parts-group-link ul li.accordion::after {
    transform: scale(-1, -1);
    top: auto;
    left: auto;
    right: 0;
    bottom: 0;
}
.parts-group-link ul li > a:hover,
.parts-group-link ul li.accordion:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(84, 135, 144, 0.7);
}
.parts-group-link ul li > a:hover::before,
.parts-group-link ul li > a:hover::after,
.parts-group-link ul li.accordion:hover::before,
.parts-group-link ul li.accordion:hover::after {
    opacity: 0.5;
}
.parts-group-link ul li > a div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.parts-group-link ul li > a small {
    width: 100%;
    margin-bottom: 0.25em;
}
.parts-group-link ul li > a.medium {
    font-size: clamp(0.813rem, calc(0.583rem + 0.978vw), 1.5rem); /* min: 13px, max: 24px */
}

/*accordion*/
.parts-group-link ul li.accordion {
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 15px 5% 10px;
    transition: all ease 0.3s;
}
.parts-group-link ul li.accordion .box {
    display: none; /* アコーディオンの中身は最初は非表示 */
    padding-block: 8px 0.25em;
}
.parts-group-link ul li.accordion .btn {
    gap: 10px;
}
.parts-group-link ul li.accordion .btn a {
    color: var(--color-base-font);
    font-size: clamp(0.688rem, calc(0.432rem + 1.091vw), 1.25rem); /* min: 11px, max: 20px */
    white-space: nowrap;
    width: 100%;
    min-width: auto;
    height: auto;
    border-radius: 5px;
    padding: 0.35em 2em 0.25em 0.2em;
    box-shadow: none;
    filter: none;
}
.parts-group-link ul li.accordion .btn a:hover {
    color: #fff;
    background-color: rgb(143, 172, 185, 0.75);
}
.parts-group-link ul li.accordion .accordion-trigger {
    font-size: clamp(0.813rem, calc(0.583rem + 0.978vw), 1.5rem); /* min: 13px, max: 24px */
    color: inherit;
    line-height: 1.5;
    cursor: pointer;
    display: block;
    position: relative;
    z-index: 1;
}

/* お問い合わせボタン（PCでは非表示） */
.parts-group-link ul.inquiry-btn {
    display: none;
}
/* お問い合わせボタン */
.parts-group-link ul.inquiry-btn {
    grid-template-columns: 1fr;
    margin-top: 15px;
    position: static;
}
.parts-group-link ul.inquiry-btn li > a {
    color: #fff;
    font-size: clamp(0.875rem, calc(0.625rem + 1.067vw), 1.625rem); /* min: 14px, max: 26px */
    writing-mode: unset;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(84, 135, 144, 0.7);
    border-radius: 15px;
    gap: 0.25em;
    padding: 1em 1em 0.8em;
}
.parts-group-link ul.inquiry-btn li > a span.icon {
    background: #fff;
    width: 1.7em;
    aspect-ratio: 1 / 1;
    -webkit-mask-image: url(assets/images/common/icon_contact.svg);
    mask-image: url(assets/images/common/icon_contact.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    translate: -20% -10%;
    transition: 0.3s;
}
.parts-group-link ul.inquiry-btn li > a:hover {
    color: var(--color-base-font);
    background: rgba(255, 255, 255, 0.7);
}
.parts-group-link ul.inquiry-btn li > a:hover span.icon {
    background-color: var(--color-main);
}
.parts-group-link ul.inquiry-btn li > a::before,
.parts-group-link ul.inquiry-btn li > a::after {
    width: 40%;
}
@media only screen and (max-width: 1200px) {
    .parts-group-link ul {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media only screen and (max-width: 820px) {
    .parts-group-link ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    /*accordion*/
    .parts-group-link ul li.accordion .box {
        padding-block: 0.25em 0;
    }
    .parts-group-link ul li.accordion .btn {
        gap: 6px;
    }
    /* お問い合わせボタン（820px以下で表示） */
    .parts-group-link ul.inquiry-btn {
        display: block !important;
    }
}
/*g-navi*/
#header #g-navi-area .parts-group-link ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
#header #g-navi-area .parts-group-link li {
    filter: drop-shadow(0 0 3px rgb(64, 64, 64, 0.7));
}
#header #g-navi-area .parts-group-link ul li > a::before,
#header #g-navi-area .parts-group-link ul li > a::after,
#header #g-navi-area .parts-group-link ul li.accordion::before,
#header #g-navi-area .parts-group-link ul li.accordion::after {
    content: "";
    width: 50%;
    max-height: 30px;
}
#header #g-navi-area .parts-group-link ul li a {
    color: var(--color-base-font);
    font-size: clamp(0.875rem, calc(0.822rem + 0.225vw), 0.938rem); /* min: 14px, max: 15px */
    padding-block: 0.8em 0.65em;
    padding-inline: 0.75em;
}
#header #g-navi-area .parts-group-link ul li a.medium {
    font-size: clamp(0.75rem, calc(0.697rem + 0.225vw), 0.813rem); /* min: 12px, max: 13px */
}
#header #g-navi-area .parts-group-link ul li a:hover {
    color: #fff;
}
/*accordion*/
#header #g-navi-area .parts-group-link ul li.accordion .accordion-trigger {
    font-size: clamp(0.75rem, calc(0.697rem + 0.225vw), 0.813rem); /* min: 12px, max: 13px */
}
#header #g-navi-area .parts-group-link ul li.accordion .box {
    padding-bottom: 0;
}
#header #g-navi-area .parts-group-link ul li.accordion .btn {
    gap: 5px;
}
#header #g-navi-area .parts-group-link ul li.accordion .btn a {
    font-size: clamp(0.625rem, calc(0.52rem + 0.449vw), 0.75rem); /* min: 10px, max: 12px */
    border-radius: 3px;
    padding: 0.35em 1.5em 0.25em 0.5em;
}
/* お問い合わせボタン */
#header #g-navi-area .parts-group-link ul.inquiry-btn {
    display: block !important; /* g-navi内では常に表示 */
    margin-top: 9px;
}
#header #g-navi-area .parts-group-link ul.inquiry-btn li a {
    color: #fff;
    writing-mode: unset;
    border-radius: 15px;
}
#header #g-navi-area .parts-group-link ul.inquiry-btn li a:hover {
    color: var(--color-base-font);
}
#header #g-navi-area .parts-group-link ul.inquiry-btn li > a span.icon {
    translate: -20% 5%;
}
@media only screen and (max-width: 468px) {
    #header #g-navi-area .parts-group-link ul li a {
        padding-block: 0.6em 0.5em;
        padding-inline: 0.75em;
    }
}

/* =========================================================================================
フローティングバナー
=========================================================================================*/
.floating-banner {
    width: 35% !important;
    max-width: 180px;
    position: fixed; /* 画面に固定 */
    top: 180px; /* ヘッダーとかぶらない位置に調整 */
    right: 0;
    filter: drop-shadow(1px 1px 3px #bfbfbf);
    transform: translateZ(0);
    transition: 0.5s;
    z-index: 99;
}
.floating-banner .banner-close {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}
.floating-banner .banner-close:hover {
    background: #000;
}
/* 非表示用のクラス */
.is-deleted {
    display: none !important;
}
@media only screen and (max-width: 820px) {
    .floating-banner {
        top: 100px;
    }
}
@media only screen and (max-width: 468px) {
    .floating-banner {
        top: 100px;
    }
}

/* =========================================================================================
モーダル画面
=========================================================================================*/
/* モーダル背景（オーバーレイ） */
#custom-modal {
    display: none; /* 最初は絶対に表示させない */
}
/* JavaScriptで移動が完了し、かつ非表示クラスがついていない時だけ表示 */
body > #custom-modal:not(.is-hidden) {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 背景を暗く */
    display: flex; /* 初期状態から表示 */
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999; /* WordPressのツールバーより手前に表示 */
    left: 0;
    top: 0;
    backdrop-filter: blur(4px); /* 背景をぼかす（モダンブラウザ用） */
}
/* 非表示にするためのクラス */
#custom-modal .modal-overlay.is-hidden {
    display: none;
}
/* モーダルコンテンツ */
#custom-modal .modal-content {
    padding: 30px;
    width: fit-content;
    max-width: 1000px;
    max-height: 80vh;
    margin: auto;
    position: relative;
    animation: modal-fadein 0.4s ease-out; /* ふわっと表示 */
}
#custom-modal .modal-content img {
    width: auto;
    max-height: 80vh;
}
/* 閉じるボタン（×） */
#custom-modal .modal-close-btn {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
}
#custom-modal .modal-close-btn:hover {
    opacity: 0.7;
}
/* モーダルコンテンツ（テキスト掲載用） */
#custom-modal .modal-content.text {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
/* 閉じるボタン（テキスト掲載用）（×） */
#custom-modal .modal-content.text .modal-close-btn {
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #aaa;
    display: inline-block;
}
#custom-modal .modal-content.text .modal-close-btn:hover {
    color: #333;
}
/* 表示用クラス */
#custom-modal .modal-overlay.is-visible {
    display: block;
}
/* モーダル表示中のbody制御 */
body.is-modal-open {
    overflow: hidden; /* スクロールを禁止 */
}
/* モーダル表示中のヘッダー制御 */
body.is-modal-open #header {
    pointer-events: none;
}
/* アニメーション定義 */
@keyframes modal-fadein {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media only screen and (max-width: 468px) {
    #custom-modal .modal-content {
        padding: 15px;
    }
    #custom-modal .modal-close-btn {
        position: absolute;
        top: -30px;
        right: 5px;
        font-size: 30px;
        transition: 0.3s;
    }
}

/* =========================================================================================
シェアボタン プラグイン
=========================================================================================*/
.addtoany_content a::before {
    display: none !important;
}
