@charset "UTF-8";

/* ================================================
COMMON
  ◼︎ 共通パーツ
  ◼︎ 共通レイアウト設定
    - HEADER
    - FOOTER
================================================ */


/* ----------------------------------------
リセット・基本設定
---------------------------------------- */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: clip;
}

body {
    font-size: var(--font-size);
    overflow-x: hidden;
    font-family: var(--fontFamily-base);
    /* font-feature-settings: "palt"; */
    font-weight: var(--wght-medium);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--color-base);
    background-color: var(--color-bg);
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: unset;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-optical-sizing: auto;
    font-feature-settings: "palt";
}

/* home以外 */
body:not(.home) main {
    margin-top: calc(var(--height-header) + var(--space-2xl));
}

/* スクロールマージン */
*[id] {
    scroll-margin-top: var(--height-header);
}


/* ----------------------------------------
リンク・メディア
---------------------------------------- */
a {
    color: inherit;
    text-decoration: none;
    word-break: break-all;
}

a[target=_blank],
a[href^="tel:"] {
    text-decoration: none;
}

/* PCはtelリンク無効 */
@media (width >=768px) {
    a[href^="tel:"] {
        pointer-events: none;
        cursor: default;
    }
}

picture {
    display: block;
    height: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

iframe {
    vertical-align: baseline;
    width: 100%;
}

button {
    color: var(--font-color);
}

/* discリスト */
ul.disc {
    padding-left: 0.4em;

    li {
        padding-left: 0.2em;
        list-style-type: "\30FB";
    }
}


/* ----------------------------------------
表示切り替え
---------------------------------------- */
@media (width >=768px) {
    .pc {
        display: block;
    }

    .sp {
        display: none !important;
    }
}

@media (width < 768px) {
    .pc {
        display: none !important;
    }

    .sp {
        display: block !important;
    }
}

.nowrap {
    white-space: nowrap;
}


/* ----------------------------------------
コンテナ・インナー幅
---------------------------------------- */
.container {
    --space-min: 50;
    --space-max: 100;
    padding: var(--space) var(--padding-container);
    position: relative;
}

.inner-xl {
    width: var(--inner-xl);
    max-width: var(--container-max);
    margin-inline: auto;
}

.inner-l {
    width: min(var(--inner-l), 100%);
    margin-inline: auto;
}

.inner-md {
    width: min(var(--inner-md), 100%);
    margin-inline: auto;
}

.inner-sm {
    width: min(var(--inner-sm), 100%);
    margin-inline: auto;
}

.whiteBox {
    background-color: #fff;
    padding: 3em clamp(1em, 5.55vw, 80px);
}

.button-selected {
    background-color: var(--color-gray-dark) !important;
    color: #fff !important;
}


/* ----------------------------------------
見出し
---------------------------------------- */
.title2 {
    --font-min: 24;
    --font-max: 32;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    line-height: 1.5;
    color: var(--color-main);
    text-align: center;
    margin-bottom: 1em;
}

.page-title1 {
    --font-min: 24;
    --font-max: 32;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    line-height: 1.5;
    letter-spacing: 0.2em;
    color: var(--color-main);
    margin-bottom: 1em;
}


/* ----------------------------------------
ボタン
---------------------------------------- */
.btn-wrap {
    text-align: center;
}

.btn {
    width: min(373px, 100%);
    display: inline-block;
    --font-min: 14;
    --font-max: 24;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    line-height: 1;
    text-align: center;
    background: #fff;
    border: 2px solid currentColor;
    border-radius: 999px;
    padding: 1em 2em;
    position: relative;
}

.btn-main {
    background: var(--color-main);
    border: 2px solid var(--color-main);
    color: #fff;
}

.btn-main:focus {
    filter: brightness(1.3);
    transition: all 0.2s ease-in-out;
}

.btn-main:disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .btn-main:hover {
        filter: brightness(1.3);
        transition: all 0.2s ease-in-out;
    }

    .btn-arrow:hover {
        color: #909494;
        transition: all 0.3s ease-in-out;
    }

    .btn-arrow:hover .arrow::after {
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }
}

/* ----------------------------------------
ボタン方向バリエーション
  使い方:
    .btn-prev    → 矢印左向き（前の記事へ など）
    .btn-next    → 矢印右向き（次の記事へ など）※デフォルトと同じだが明示用
    .btn-archive → 矢印上向き（一覧へ戻る など）
    ※ デフォルト（.btn のみ）は矢印右向き
---------------------------------------- */

/* 共通：幅をコンテンツに合わせる */
.btn-prev,
.btn-next,
.btn-archive {
    width: fit-content;
    --font-min: 10;
    --font-max: 16;
    font-size: var(--font-size);
    font-weight: var(--wght-medium);
    letter-spacing: 0.21em;
}

/* 前へボタン（矢印左向き）：左側に矢印分の余白 */
.btn-prev {
    padding: 1.4em 1.4em 1.4em 2.5em;
}

/* 一覧へボタン（矢印上向き）：左側に矢印分の余白 */
.btn-archive {
    padding: 1.4em 1.4em 1.4em 3em;
}

.btn-prev .arrow-icon,
.btn-archive .arrow-icon {
    position: absolute;
    top: 50%;
    left: 1em;
    rotate: -180deg;
    translate: 50% -50%;
    transition: all 0.3s ease-in-out;
}

.btn-archive .arrow-icon {
    left: 1.4em;
}

/* @scopeでhover: hover and pointer: fine */
@media (hover: hover) and (pointer: fine) {
    .btn-prev:hover .arrow-icon {
        translate: -150% -50% !important;
        transition: all 0.3s ease-in-out;
    }
}

/* 次へボタン（矢印右向き）：右側に矢印分の余白 */
.btn-next {
    padding: 1.4em 2.5em 1.4em 1.4em;
}

/* .btn-next の arrow-icon はデフォルト（右向き）のまま */

.post-nav__item:has(.btn-next) {
    text-align: right;
}

.btn-archive .arrow-icon {
    rotate: -90deg;
    translate: -50% -50%;
    transition: all 0.3s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    .btn-archive:hover .arrow-icon {
        translate: -100% -70% !important;
        transition: all 0.3s ease-in-out;
    }
}


/* ----------------------------------------
投稿ナビゲーション（共通）
  使い方:
    .post-nav           → nav要素に付与
    .post-nav__list     → ul要素に付与
    .post-nav__item     → li要素に付与
    .post-nav__archive  → 一覧へ戻るのli要素に追加
    .post-nav__spacer   → 記事なし時のスペーサー（場所確保のみ）

  ボタンの組み合わせ:
    前の記事 → .btn .btn-main .btn-prev
    一覧へ   → .btn .btn-main .btn-archive
    次の記事 → .btn .btn-main .btn-next
---------------------------------------- */
.post-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2em 1em;
    margin-top: var(--space-5xl);
    list-style: none;
    padding: 0;
}

.post-nav__item {
    flex: 1;
}

.post-nav__archive {
    flex: 0 0 auto;
    text-align: center;
}

/* 記事なし時のスペーサー */
.post-nav__spacer {
    visibility: hidden;
    pointer-events: none;
}

@media (width < 768px) {
    .post-nav__spacer {
        display: none;
    }
}

@media (width < 480px) {
    .post-nav__item:has(.btn-prev) {
        order: 0;
    }

    .post-nav__item:has(.btn-archive) {
        order: 2;
        width: 100%;
    }

    .post-nav__item:has(.btn-next) {
        order: 1;
        text-align: right;
    }
}

/* ----------------------------------------
矢印アイコン（SVG）
---------------------------------------- */
.arrow-icon {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.btn .arrow-icon {
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    top: 50%;
    right: 5%;
    translate: -100% -50%;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover .arrow-icon {
        translate: -50% -50%;
        transition: all 0.3s ease-in-out;
    }
}


/* ----------------------------------------
ローディング
---------------------------------------- */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5F9FF;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

#page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}


/* ----------------------------------------
ページトップボタン
---------------------------------------- */
.pagetop {
    position: fixed;
    right: clamp(16px, 3vw, 40px);
    bottom: clamp(16px, 3vw, 40px);
    width: 55px;
    height: 55px;
    border-radius: 999px;
    background-color: var(--color-main);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.pagetop.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pagetop:hover {
    transform: translateY(-4px);
}

.pagetop__text {
    font-weight: var(--wght-bold);
    color: #fff;
    line-height: 1;
    letter-spacing: 0.05em;
}

.pagetop .arrow-icon {
    width: 1.2em;
    height: 1.2em;
    rotate: -90deg;
    margin-inline: auto;
}

@media (width < 768px) {
    .pagetop {
        width: 50px;
        height: 50px;
        bottom: calc(clamp(40px, 10vw, 60px) + clamp(8px, 1.5vw, 20px));
    }

    .pagetop__text {
        font-size: 10px;
    }

    .pagetop__arrow {
        width: 10px;
        height: 10px;
    }
}


/* ----------------------------------------
パンくずリスト
---------------------------------------- */
.breadcrumb {
    --font-min: 12;
    --font-max: 14;
    font-size: var(--font-size);
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
    max-width: clamp(1352px + var(--padding-container) * 2, 100%);
    margin-inline: auto;
    padding-inline: var(--padding-container);
}

/* ================================================
HEADER
================================================ */
.header {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--height-header);
    background: #fff;
}

.home .header {
    background: #A9D4FE;
}

/* ドロワーが開いたらヘッダー透明 */
body:has(.hamburger.-active) .header {
    background: transparent;
    box-shadow: none;
    transition: none;
}

.header-nav__pc,
.header-nav__links.pc {
    transition: none;

}

/* ドロワーが開いたらPCナビとお問い合わせ非表示 */
body:has(.hamburger.-active) .header-nav__pc,
body:has(.hamburger.-active) .header-nav__links.pc {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    /* フェードを無効化 */
}

.header.is-scrolled {
    background: #fff;
}

/* スクロール時もドロワーが開いてたら透明 */
body:has(.hamburger.-active) .header.is-scrolled {
    background: transparent;
    box-shadow: none;
}

/* ---- header内の配置 ---- */
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 16px;
    height: var(--height-header);
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.header__logo {
    box-sizing: border-box;
    width: clamp(150px, 20vw, 240px);
    mix-blend-mode: multiply;
}

.header__logo img {
    height: 100%;
    object-fit: contain;
}

/* ---- お問い合わせリンク ---- */
.header-nav__links {
    height: 100%;
}

.header-nav__lists {
    --font-min: 10;
    --font-max: 14;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: clamp(154px, 16vw, 170px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav__lists li {
    padding: 0 1em;
    background: #00419d;
    flex: 1;
    width: 100%;
    display: grid;
    place-items: center;
    border-radius: 0 0 6px 6px;
}

.header-nav__lists li:has(.header-nav__phone) {
    background: #258bcb;
    --font-min: 10;
    --font-max: 16;
    font-size: var(--font-size);
    border-radius: 0;
}

.header-nav__lists li a {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.header-nav__lists li a::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
}

.header-nav__phone::before {
    background: url(../img/common/icon_phone.svg) no-repeat center/contain;
}

.header-nav__contact::before {
    background: url(../img/common/icon_contact.svg) no-repeat center/contain;
}

.header-nav__contact .arrow-icon {
    margin-left: auto;
    width: 0.5em;
    translate: -50% 0;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .header-nav__lists li:hover {
        filter: brightness(1.3);
        transition: all 0.3s ease;
    }

    .header-nav__lists li:hover .arrow-icon {
        translate: 0 0;
        transition: all 0.3s ease;
    }
}

/* ---- ハンバーガーボタン ---- */
.hamburger {
    display: block;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    position: relative;
    z-index: 102;
    cursor: pointer;
    margin-left: auto;
}

.hamburger.-active .hamburger__line {
    background-color: transparent;
}

.hamburger.-active .hamburger__line::before {
    top: 0;
    transform: rotate(45deg);
}

.hamburger.-active .hamburger__line::after {
    top: 0;
    transform: rotate(-45deg);
}

.hamburger__line {
    display: block;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 26px;
    border-radius: 999px;
    background-color: var(--color-base);
    transition: 0.4s;
}

.hamburger__line::before,
.hamburger__line::after {
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    background-color: var(--color-base);
    border-radius: 999px;
    transition: inherit;
}

.hamburger__line::before {
    top: -10px;
}

.hamburger__line::after {
    top: 10px;
}

/* ---- PCグローバルナビ ---- */
@media (width >=1000px) {

    .header-nav__pc {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: 100%;
        flex: 1;
    }

    .header-nav__pc .header-nav__list {
        display: flex;
        align-items: center;
        justify-content: center;
        column-gap: clamp(8px, 2vw, 40px);
        list-style: none;
        margin: 0;
        padding: 0;
        height: 100%;
    }

    .header-nav__pc .menu-item {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .header-nav__pc .menu-item>a {
        --font-min: 8;
        --font-max: 16;
        font-size: var(--font-size);
        font-weight: var(--wght-bold);
        font-family: var(--fontFamily-base);
        text-decoration: none;
        color: var(--color-base);
        display: flex;
        align-items: center;
        gap: 0.3em;
        height: 100%;
        white-space: nowrap;
        transition: opacity 0.3s;
    }

    .header-nav__pc .menu-item>a:hover {
        opacity: 0.7;
    }

    /* サブメニューあり項目の▼ */
    .header-nav__pc .menu-item-has-children>a::after {
        content: "∨";
        font-size: 0.6em;
        margin-left: 0.3em;
        transition: transform 0.3s;
        display: inline-block;
    }

    .header-nav__pc .menu-item-has-children:hover>a::after {
        transform: rotate(180deg);
    }

    /* サブメニュー */
    .header-nav__pc .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 15em;
        padding: 0.5em 1em 1em;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
        list-style: none;
        margin: 0;
    }

    .header-nav__pc .menu-item-has-children:hover>.sub-menu {
        display: block;
    }

    .header-nav__pc .sub-menu li {
        padding: 0.2em 1em;
        white-space: nowrap;
        height: auto;
        display: block;
    }

    .header-nav__pc .sub-menu li a {
        display: block;
        font-size: 14px;
        font-weight: var(--wght-regular);
        text-decoration: none;
        color: var(--color-base);
        transition: color 0.3s;
        height: auto;
        padding: 0.3em 0;
    }

    .header-nav__pc .sub-menu li a:hover {
        color: var(--color-main);
    }
}

/* ===============================================
ドロワーメニュー
================================================= */
.header-drawer {
    position: fixed;
    top: 0;
    translate: 0 -100%;
    width: 100%;
    height: 100vh;
    background: #d8ebfff5;
    z-index: 99;
    display: grid;
    place-items: center;
    overflow-y: auto;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-drawer.-active {
    translate: 0 0;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-drawer__inner {
    padding: 3em 2em;
    max-width: 1200px;
    margin: 0 auto;
}

.header-drawer__columns {
    display: flex;
    gap: 4em;
    justify-content: space-between;
    width: min(800px, 100%);
    margin-inline: auto;
}

.header-drawer__column {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.header-drawer__item {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.header-drawer__link {
    font-size: var(--fontSize-xl);
    font-weight: var(--wght-bold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: opacity 0.3s;
}

.header-drawer__link:hover {
    opacity: 0.7;
}

.header-drawer__link::before {
    content: "—";
    font-size: 1em;
    font-weight: normal;
}

.header-drawer__sub {
    display: flex;
    flex-direction: column;
    gap: 1em;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1.5em;
}

.header-drawer__sub li a {
    font-weight: var(--wght-regular);
    text-decoration: none;
    display: block;
    transition: opacity 0.3s;
}

.header-drawer__sub li a:hover {
    opacity: 0.7;
}

/* ドロワー開いたらbody固定 */
body:has(.hamburger.-active) {
    overflow: hidden;
}

/* ===============================================
レスポンシブ
================================================= */
@media (width < 1000px) {

    .header__inner {
        gap: 10px;
        padding: 0 10px;
    }

    .header__logo {
        width: clamp(160px, 40vw, 200px);
    }

    .header-nav__pc {
        display: none;
    }

    .header-nav__lists {
        margin-left: auto;
    }

    .header-drawer {
        right: auto;
        padding-top: var(--height-header);
        display: block;
    }

    .header-drawer__inner {
        padding: 2em 1.5em;
        max-width: 700px;
        width: 100%;
    }

    .header-drawer__columns {
        flex-direction: column;
        gap: 2em;
    }

    .header-drawer__sub {
        display: flex;
        flex-direction: row;
        /* 横方向 */
        flex-wrap: wrap;
        /* 折り返し */
        gap: 1em;
        list-style: none;
        margin: 0;
        padding-left: 1.5em;
    }

    .header-drawer__link {
        font-size: clamp(16px, 4vw, 18px);
    }

    .header-nav__links {
        flex: 1;

    }
}

@media (width < 768px) {
    .header__logo {
        width: clamp(200px, 50vw, 240px);
    }

    .header-nav__links.sp {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 98;
        width: 100%;
        height: 64px;
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s ease-out, visibility 0.2s;
    }

    .header-nav__links.sp.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    

    .header-nav__links.sp .header-nav__lists {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding: 0 0 env(safe-area-inset-bottom, 0px) 0;
        margin: 0;
        box-sizing: border-box;
        transform: translateY(0);
        transition: transform .28s ease;
        will-change: transform;
        pointer-events: auto;
        /* ボタンは押せる */
        background: transparent;
    }

    .header-nav__links.sp.is-hidden .header-nav__lists {
        transform: translateY(100%);
    }

    .header-nav__lists li {
        flex: 1;
        height: 100%;
        border-radius: 0 2vw 0 0;
        font-size: clamp(12px, 4.5vw, 21px);
    }

    .header-nav__lists li:has(.header-nav__phone) {
        border-radius: 2vw 0 0 0;
        font-size: clamp(14px, 4.8vw, 24px);
    }

    .header-nav__lists li a {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
    }

    .header-nav__contact .arrow-icon {
        display: none;
    }
}

/* ================================================
FOOTER
================================================ */
.footer {
    background: #fff;
    padding-block: var(--space-6xl) 0;
}

.footer__columns {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: var(--space-7xl);
}

/* 左側の会社情報 */
.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: var(--wght-regular);
    flex-shrink: 0;
    --font-min: 13;
    --font-max: 14;
    font-size: var(--font-size);
    line-height: 1.7;
}

.footer__name {
    --font-min: 20;
    --font-max: 24;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    margin-bottom: 1em;
}

.footer__address {
    display: block;
    margin-bottom: 1.5em;
}

/* 右側のナビゲーション */
.footer-nav {
    flex: 1;
    padding-top: 3em;
    max-width: 542px;
}

.footer-nav__columns {
    display: flex;
    gap: var(--space-4xl);
    justify-content: flex-start;
}

.footer-nav__column {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    flex: 1;
}

.footer-nav__column>li {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    --font-min: 13;
    --font-max: 14;
    font-size: var(--font-size);
}

.footer-nav__parent {
    font-weight: var(--wght-bold);
    display: flex;
    align-items: center;
}

/* 疑似要素で左に横棒を追加 */
.footer-nav__parent::before {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 2px;
    background-color: var(--color-base);
    margin-right: 0.5em;
}

.footer-nav__sub {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding-left: 1.5em;
    margin-top: 0.3em;
}

.footer-nav__sub li a {
    font-weight: var(--wght-regular);
    display: block;
}

@media (hover: hover) and (pointer: fine) {

    .footer-nav__parent:hover,
    .footer-nav__sub li a:hover {
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
}

.footer__bottom {
    background-color: var(--color-main);
    color: #fff;
    margin-inline: calc(50% - 50vw);
    padding: 1em var(--padding-container);
    position: relative;
}

.footer__bottom ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    position: absolute;
    right: 10vw;
    top: 1em;
}

.footer__bottom ul li a {
    display: flex;
    align-items: center;
    gap: 0.5em;
    --font-min: 12;
    --font-max: 14;
    font-size: var(--font-size);
}

.footer__bottom ul li a::after {
    content: "";
    display: inline-block;
    background: url(../img/common/icon_page.svg) no-repeat center/contain;
    width: 1em;
    height: 1em;
}

.footer__copyright {
    --font-min: 10;
    --font-max: 14;
    font-size: var(--font-size);
    text-align: left;
}

/* フッター スマホ対応 */
@media (width < 768px) {

    .footer__columns {
        flex-direction: column;
        gap: 2em;
    }

    .footer__name {
        align-self: center;
        margin-bottom: 2em;
    }

    .footer-nav {
        flex: 1;
        max-width: 100%;
        border-top: 1px solid var(--color-gray);
    }

    .footer-nav__columns {
        flex-direction: column;
        gap: 1.5em;
    }

    .footer-nav__sub {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5em 1.5em;
    }

    .footer::after {
        width: 150px;
        height: 150px;
    }

    .footer__bottom {
        padding: 1em var(--padding-container) calc(clamp(52px, 15vw, 64px) + 1em);
    }

    .footer__bottom .inner-md {
        padding: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column-reverse;
        gap: 1em;
    }

    .footer__bottom ul {
        position: static;
    }

    .footer__copyright {
        padding-top: 1em;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        width: 100%;
        text-align: center;
    }
}


/* ----------------------------------------
404 / プライバシーポリシー
---------------------------------------- */
.page404__text {
    font-size: var(--fontSize-md);
    font-weight: var(--wght-medium);
    line-height: var(--lineHeight-2);
}

.page404__link {
    text-decoration: underline;
    color: var(--color-sky);
}

.error404:not(.mailform, .page-recruit-thanks)::before,
.page-privacy::before {
    content: "";
    display: block;
    background: url(../img/common/bg_blur.png) no-repeat center/contain;
    position: absolute;
    top: 0;
    left: 0;
    translate: -23% -25%;
    --font-min: 300;
    --font-max: 600;
    width: var(--font-size);
    height: var(--font-size);
    z-index: -1;
}

/* ----------------------------------------
ページネーション (WP-PageNavi)
---------------------------------------- */
.wp-pagenavi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: var(--space-5xl);
}

.wp-pagenavi a,
.wp-pagenavi span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3em;
    height: 3em;
    background: var(--color-main);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: var(--fontSize-lg);
    font-weight: var(--wght-bold);
    transition: all 0.2s ease-in-out;
}

.wp-pagenavi .current {
    background: var(--color-main);
    opacity: 1;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink,
.pagination__prev--disabled,
.pagination__next--disabled {
    position: relative;
    color: transparent;
}

.wp-pagenavi .previouspostslink::before,
.wp-pagenavi .nextpostslink::before,
.pagination__prev--disabled::before,
.pagination__next--disabled::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.6em;
    height: 0.6em;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
}

.wp-pagenavi .previouspostslink::before,
.pagination__prev--disabled::before {
    transform: translate(-46%, -50%) rotate(-135deg);
}

.wp-pagenavi .nextpostslink::before,
.pagination__next--disabled::before {
    transform: translate(-54%, -50%) rotate(45deg);
}

.pagination__prev--disabled,
.pagination__next--disabled {
    opacity: 0.7;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .wp-pagenavi a:hover {
        filter: brightness(1.2);
    }
}

@media (width < 768px) {

    .wp-pagenavi a,
    .wp-pagenavi span {
        width: 2.5em;
        height: 2.5em;
        font-size: var(--fontSize-base);
    }
}

/* ----------------------------------------
投稿詳細（共通）
---------------------------------------- */
.post__meta {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.5em;
}

.post__label {
    color: #fff;
    border: 2px solid #258bcb;
    padding: 0.25em;
    background-color: #258bcb;
    text-box-edge: cap alphabetic;
    text-box-trim: trim-both;
    border-radius: 999px;
    text-align: center;
    display: inline-block;
    width: 3.5em;
}

.post__label:empty {
    border: none;
    background-color: unset !important;
}

.post__date {
    font-size: var(--fontSize-sm);
    display: block;
    color: #898989;
}

.post__thumb {
    margin-bottom: var(--space-2xl);
    width: 100%;
    background-color: var(--color-bg-sub);

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

.post__content {
    line-height: var(--lineHeight-150);
    margin-bottom: var(--space-3xl);
}

/* ================================================
WPコンテンツスタイル（.wp-content）
================================================ */

/* 見出し */
h1.wp-block-heading {
    --font-min: 21;
    --font-max: 25;
    font-size: var(--font-size);
    color: var(--color-main);
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 0.5em;
}

h2.wp-block-heading {
    --font-min: 20;
    --font-max: 24;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    color: var(--color-main);
    line-height: 1.5;
    margin: 2em 0 1em;
}

h3.wp-block-heading {
    --font-min: 18;
    --font-max: 20;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    color: var(--color-main);
    line-height: 1.5;
    margin: 1.5em 0 0.5em;
}

h4.wp-block-heading,
h5.wp-block-heading,
h6.wp-block-heading {
    --font-min: 16;
    --font-max: 18;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    color: var(--color-base);
    line-height: 1.5;
    margin: 1em 0 0.5em;
}

/* カラムレイアウト */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin-bottom: 1.75em;
}

/* カラムの基本設定 */
.wp-block-column {
    flex-basis: 0;
    flex-grow: 1;
    min-width: 0;
    /* padding は付けない */
}

/* ★ インラインスタイルで幅指定されてる場合 */
.wp-block-column[style*="flex-basis"] {
    flex-grow: 0;
    /* % + gap のはみ出し対策 */
    flex-shrink: 1;
    min-width: 0;
}

/* SP: 縦積み */
@media (max-width: 781px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        gap: 0;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 100% !important;
    }
}

/* リスト */
ol.wp-block-list,
ul.wp-block-list {
    padding-left: 2em;
    margin-bottom: 1.5em;
    line-height: 1.9;
}

ol.wp-block-list {
    list-style: none;
    counter-reset: list-counter;
}

ol.wp-block-list li {
    padding-left: 0.5em;
    counter-increment: list-counter;
    position: relative;
}

ol.wp-block-list li::before {
    content: "(" counter(list-counter) ") ";
    position: absolute;
    left: -1em;
}

ul.wp-block-list {
    list-style-type: none;
}

ul.wp-block-list li {
    padding-left: 0.5em;
    margin-bottom: 0.5em;
    position: relative;
}

ul.wp-block-list li::before {
    content: "・";
    position: absolute;
    left: -1em;
    color: var(--color-main);
}

/* 段落 */
.wp-content p {
    margin-bottom: 1.5em;
    line-height: 2;
}

.wp-content p>a {
    color: var(--color-main);
    transition: opacity 0.3s;
}

@media (hover: hover) and (pointer: fine) {
    .wp-content p>a:hover {
        opacity: 0.7;
        text-decoration: underline;
        transition: all 0.3s;
    }
}

/* 画像 */
.wp-block-image {
    margin-bottom: 2em;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* 引用 */
.wp-block-quote {
    background: var(--color-bg-sub);
    padding: 1.5em;
    margin: 2em 0;
}

.wp-block-quote p {
    --font-min: 13;
    --font-max: 14;
    font-size: var(--font-size);
    line-height: 1.8;
    margin-bottom: 0;
}

/* テーブル */
.wp-block-table {
    margin-bottom: 2em;
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.wp-block-table table {
    width: 100%;
}

.wp-block-table th,
.wp-block-table td {
    border: 1px solid #ddd;
    padding: 1em;
    --font-min: 14;
    --font-max: 16;
    font-size: var(--font-size);
    text-align: left;
}

.wp-block-table th {
    background-color: var(--color-main);
    color: #fff;
    font-weight: var(--wght-bold);
}

.wp-block-table tr:nth-child(even) {
    background-color: var(--color-bg-sub);
}

/* ボタン */
.wp-block-button__link {
    width: fit-content;
    display: inline-block;
    --font-min: 14;
    --font-max: 20;
    font-size: var(--font-size);
    font-weight: var(--wght-bold);
    line-height: 1;
    text-align: center;
    background: var(--color-main) !important;
    border: 2px solid var(--color-main) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 1em 2em;
    text-decoration: none;
    transition: filter 0.2s ease-in-out;
    margin-bottom: 1em;
}

.wp-block-button__link:focus {
    filter: brightness(1.3);
}

@media (hover: hover) and (pointer: fine) {
    .wp-block-button__link:hover {
        filter: brightness(1.3);
    }
}

@media (width < 768px) {

    ol.wp-block-list,
    ul.wp-block-list {
        padding-left: 1.5em;
    }
}


/* ================================================
アニメーション
================================================ */
.fadein {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fadein.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes BlurFadeIn {
    0% {
        opacity: 0;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}


/* ----------------------------------------
フィールド共通スタイル
---------------------------------------- */
input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    --font-min: 16;
    --font-max: 20;
    font-size: var(--font-size);
    background-color: #fff;
    border-radius: 5px;
    padding: 1em 1em;
    width: 100%;
}

/* ================================================
PDFアイコン20260904EIJISON
================================================ */

.gotointe {
    color: var(--color-main);
    background: url(../img/common/icon_pdf.png) left center no-repeat;
    background-size: 25px auto;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 30px;
}

.gotointe:hover {
    text-decoration: underline;
}

.envprize {
    width: 70%;
    margin-right: auto;
    margin-left: auto;
    margin-top: 5%;
}