/*
Theme Name: leonis theme 2025
Description: Leonis
Version: 1.0
Author: maeda
*/

/* -------------------
    基本スタイル改変
*/

a {
    color: black;
}
hr {
    background: black;
}
main {
    margin-bottom: 4em;
    padding-top: 6em;
}
form {
    display: grid!important;
    width: 100%;
    font-size: 14px!important;
}
/* Cloudflare Turnstile バッジ調整 */
.cf-turnstile,
iframe[src*="challenges.cloudflare.com"] {
    margin-top: 1em;
    text-align: center;
    order: 2;
}
.wpcf7-spinner {
    display: none !important;
}

/* セクション間隔 */
@media screen and (min-width: 768px) {
    .l-wrap {
        padding: 4em 2em;
    }
}

/* contentsタイトル */
.l-head > p {
    line-height: 2;
}
.l-head h2 {
    letter-spacing: .05em;
}

/* table */
.l-table {
    margin: 0 auto;
    /* max-width: 400px; */
}
.l-table :is(tr, th) {
    border: none;
}

/* ボタン */
.o-btn {
    min-width: 240px;
    background: white;
    border: solid 2px black;
    border-radius: 2px;
    color: black;
    letter-spacing: .05em;
}
.o-btn:hover {
    background: black;
    color: white;
    transition: all .5s;
}
.l-rows:has(.o-btn) {
    justify-content: center;
}
/* 矢印 */
.o-btn.c-arrow_linetri:after,
.o-btn.c-arrow_linetri:before {
    right: 1em;
}
/* ブックマークアイコンの上書き */
button.simplefavorite-button {
    display: inline-block;
    width: fit-content;
    background: transparent;
    font-size: 1.5em;
    cursor: pointer;
}
.simplefavorite-button .sf-icon-bookmark:before {
    color: white; /* アイコン自体を白に */
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px  1px 0 black,
         1px  1px 0 black; /* 黒い縁取りを作る */
}
.simplefavorite-button.active .sf-icon-bookmark:before {
    color: inherit; /* または元の色 */
    text-shadow: none;
}


/* -------------------
    ヘッダー
*/

.p-head_wrap {
    position: absolute;
    left: 0;
    right: 0;
    transition: all .5s ease;
    z-index: 999;
    overflow: auto;
}
.p-head_wrap {
    background: white;
}
.home .p-head_wrap {
    background: transparent;
}
@media screen and (min-width: 768px) {

}
.p-head_inner {
    display: none;
    gap: 2em;
    min-height: 100vh;
    height: 100%;
    width: 100%;
    padding: 4em 0;
    background: black;
}
.p-head_contents {
    display: grid;
    align-content: space-between;
    padding: 2em;
    background: white;
}
.p-head_menu,
.p-head_list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.p-head_menu {
    gap: 1em;
}
.p-head_list {
    gap: .5em;
}
.p-head_item {
    font-size: 14px;
}
@media screen and (min-width: 768px) {
    .p-head_inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 100%;
        max-width: 1020px;
        margin: 0 auto;
        padding: 1em 0;
    }
    .p-head_inner,
    .p-head_contents {
        background: transparent;
    }
    .p-head_contents {
        padding: 0;
    }
    .p-head_menu,
    .p-head_list {
        flex-direction: row;
        gap: .5em;
    }
    .p-head_item {
        padding: .5em 1em;
        background: white;
        border-radius: 24px;
        font-size: 14px;
    }
}
.p-head_snsList {
    display: flex;
    gap: 1em;
}
.p-head_foot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
}
.p-head_favorite {
    text-decoration: none;
}
.p-head_favorite i:before {
    font-size: 1.5em;
    color: white; /* アイコン自体を白に */
    text-shadow:
        -1px -1px 0 black,
        1px -1px 0 black,
        -1px  1px 0 black,
         1px  1px 0 black; /* 黒い縁取りを作る */
}

/* レスポンシブ限定 */
.p-head_resMenu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}
.p-head_resMenuBtn {
    position: relative;
    display: block;
    width: 2em;
    height: 1px;
    margin: 0 1em;
    background: black;
    cursor: pointer;
}
.p-head_resMenuBtn:after,
.p-head_resMenuBtn:before {
    content: '';
    position: absolute;
    left: 0;
    margin: auto;
    display: block;
    width: 100%;
    height: 1px;
    background: inherit;
}
.p-head_resMenuBtn:after {
    top: .5em;
}
.p-head_resMenuBtn:before {
    bottom: .5em;
}
.p-head_resMenu .p-logo {
    margin: 0 auto;
}
@media screen and (min-width: 768px) {
    .p-head_resMenu,
    .p-head_snsList,
    .p-head_foot {
        display: none;
    }
}

/* イベント */
.p-head_wrap.is-scroll {
    position: fixed;
    background: white;
}
body:has(header.is-active) {
    overflow: hidden;
}
.is-active .p-head_inner {
    display: grid;
    position: fixed;
    top: 0;
}
.is-active .p-head_resMenu {
    align-items: flex-start;
    justify-content: flex-end;
}
.is-active .p-head_resMenuBtn {
    background: transparent;
}
.is-active .p-head_resMenuBtn:after,
.is-active .p-head_resMenuBtn:before {
    top: 2em;
    bottom: auto;
    right: 1em;
    left: auto;
    background: white;
    z-index: 9999;
}
.is-active .p-head_resMenuBtn:after {
    transform: rotate(-45deg);
}
.is-active .p-head_resMenuBtn:before {
    transform: rotate(45deg);
}

/* -------------------
    フッター
*/

footer .l-inner.l-rows {
    justify-content: center;
    align-items: flex-start;
}
footer nav.l-rows {
    justify-content: space-between;
}
@media screen and (min-width: 768px) {
    footer .l-inner.l-rows {
        justify-content: space-between;
        gap: 2em;
    }
    footer nav.l-rows {
        justify-content: flex-start;
        gap: 4em;
    }
}
footer ul.l-grid {
    grid-template-rows: 0fr;
    gap: .5em;
}
footer ul.l-grid li:first-of-type {
    font-weight: bold;
}
footer a {
    font-size: 80%;
}


/* -------------------
    パーツ
*/

/* logo */
.p-logo {
    height: 56px;
    width: auto;
}
.p-logo a {
    display: inline-block;
    height: 100%;
}
.p-logo img {
    height: 100%;
    width: fit-content;
}

/* アイコン */
.p-btn_icon {
    display: inline-block;
    padding: 8px;
    height: auto !important;
    aspect-ratio: 1;
    border-radius: 100%;
    background: black;
    color: white;
    text-align: center;
}
.p-btn_icon img {
    max-width: 100%;
    height: auto;
}

/* snsアイコン */
.p-b_i_sns {
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 40px; */
}
.p-b_i_sns img {
    width: 24px;
}

/* TOPに戻るアイコン */
.p-btn_top {
    position: relative;
    width: 4em;
    height: auto;
    aspect-ratio: 1;
    border-radius: 100%;
    background: white;
    border: solid 2px currentColor;
    color: black;
}
.p-btn_top:after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: auto;
    right: 0;
    left: 0;
    display: inline-block;
    margin: auto;
    width: 2px;
    height: 2em;
    background: currentColor;
}
.p-btn_top:before {
    content: '';
    position: absolute;
    top: 25%;
    bottom: auto;
    right: 0;
    left: 0;
    display: block;
    margin: auto;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(-45deg);
}

/* -------------------
    MVスライダー
*/

.p-mv {
    width: 100vw;
    height: 100vh;
    margin-bottom: 4em;
}
.p-mv .swiper {
    width: 100%;
    height: 100%;
}
.p-mv .swiper-slide {
    width: auto;
    height: 100%;
}
.p-mv .swiper-slide > dl {
    position: absolute;
    display: inline-block;
    top: auto;
    bottom: 15%;
    left: 0;
    right: 0;
    margin: auto;
    color: white;
    z-index: 1;
    width: fit-content;
    height: fit-content;
}
@media screen and (min-width: 1020px) {
    .p-mv .swiper-slide > dl {
        left: 5%;
        right: auto;
    }
}
.p-mv .swiper-slide > dl a {
    display: block;
    color: white;
}
.p-mv .swiper-slide > a,
.p-mv .swiper-slide > a img {
    display: block;
    width: auto;
    height: 100%;
}

/* 前後ボタン */
.p-mv .p-btn_icon {
    width: 4em!important;
}
.swiper-button-next {
    right: 5%!important;
    left: auto;
}
.swiper-button-prev {
    left: 5%!important;
    right: auto;
}
.swiper-button-next::after,
.swiper-button-prev::after{
    color: white!important;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    position: absolute;
    top: 0;
    bottom: 0;
    display: block;
    margin: auto;
    height: 1em;
    font-size: 100% !important;
    font-weight: bold;
}
.swiper-button-next::before,
.swiper-button-prev::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    display: block;
    margin: auto;
    height: 2px;
    width: 50%;
    background: white !important;
}
.swiper-button-next::after {
    left: auto;
    right: 1em;
}
.swiper-button-next:before {
    right: auto;
    left: 1em;
}
.swiper-button-prev::after {
    left: 1em;
    right: auto;
}
.swiper-button-prev::before {
    right: 1em;
    left: auto;
}
/* ページネーション現在地の色 */
.swiper-pagination {
    bottom: 5%!important;
}
.swiper-pagination-bullet,
.swiper-pagination-bullet-active {
    background: white!important;
}

/* -------------------
    ブログ非表示用
*/
.p-mv {
    overflow: hidden;
}
.p-mv figure {
    position: relative;
    width: 100%;
    height: 100%;
}
.p-mv figure figcaption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    color: white;
    text-align: center;
} 
.p-mv figure figcaption dt {
    font-size: 2em;
    font-weight: bold;
}
.p-mv figure figcaption dd {
    letter-spacing: .05em;
}


/* -------------------
    ブログ
*/

.p-blog_item {
    position: relative;
    max-height: 320px;
    color: white;
    overflow: hidden;
}
.p-blog_item img {
    width: 100%;
}
.p-blog_item a {
    color: white;
}
.p-blog_text {
    position: absolute;
    bottom: 1em;
    left: 1em;
    z-index: 1;
}
.p-blog_pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
}
.page-numbers.next,
.page-numbers.prev {
    position: relative;
    font-size: .75em;
}
.page-numbers.next:before,
.page-numbers.prev:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-block;
    margin: auto;
    width: 7px;
    height: 7px;
    border: 1px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    transform-origin: top right;
}
.page-numbers.next:before {
    transform: rotate(45deg);
}
.page-numbers.prev:before {
    transform: rotate(-135deg);
}
.page-numbers.next:after,
.page-numbers.prev:after {
    content: '';
    position: absolute;
    top: 49.74%;
    right: 0;
    display: inline-block;
    margin: auto;
    width: 1.5em;
    height: 1px;
    background: currentColor;
}
.page-numbers.next:before,
.page-numbers.next:after {
    right: -2em;
}
.page-numbers.prev:before {
    left: -2.6em;
    right: auto;
}
.page-numbers.prev:after {
    left: -2em;
    right: auto;
}


/* -------------------
    投稿ページ
*/

.p-mv_single h2 {
    font-weight: bold;
    font-size: 2em;
    text-align: center;
}
@media screen and (min-width: 768px) {
    .p-mv_single {
        padding: 5em 1em;
    }
    .p-mv_single h2 {
        font-weight: bold;
        font-size: 4em;
        text-align: left;
    }
}
.p-single_ttl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}
.p-single_hdcont {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
}
.p-single_author {
    font-size: 1.2em;
    font-weight: bold;
}
.p-single_mainIMG img {
    width: 100%;
    margin: 0 auto;
}
.p-single_prfIMG img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
}

.p-single_info {
    background: whitesmoke;
}
.p-single_info img {
    margin: 0 auto;
}
.p-single_info .l-table {
    max-width: 100%;
    background: #fcfcfc;
}
.p-single_info .l-table :is(tr, th) {
    border: solid whitesmoke;
}


/* -------------------
    STAFF
*/

.p-staff_grid {
	display: grid;
    justify-content: center;
	gap: 1em;
    grid-template-columns: 100%;
    grid-template-columns: repeat(3, 1fr);
}
.p-staff_item {
    align-items: center;
}
.p-staff_item > img {
    width: 50%;
}
.p-staff_item > figcaption {
    width: calc(50% - 1em);
}
.p-staff_name {
    display: flex;
    align-items: center;
    gap: .5em;
}

/* -------------------
    お問い合わせ
*/

.p-contact_area {
    padding: 1em;
    border: solid 1px gray;
}
@media screen and (min-width: 768px) {
    .p-contact_area {
        padding: 2em 4em;
    }
}
.p-contact_area [data-status] {
    color: black;
    font-size: 14px;
}
.p-contact_area form {
    width: 100%;
}
.p-contact_area table :is(th, td) {
    display: block;
    width: 100%;
}
.p-contact_area th .l-table__inner {
    justify-content: flex-start;
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
textarea,
select,
.p-contact_area :is(input[type="radio"], input[type="checkbox"]):after {
    background: whitesmoke;
    border: none;
}
.p-contact_area input[type="radio"]:after {
    border-radius: 100%;
}
.p-contact_area :is(input[type="radio"], input[type="checkbox"]):before {
    background: gray;
    z-index: 1;
}


/* -------------------
    お気に入り
*/

.p-favorite_inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    padding: 1em;
    border: solid 1px gray;
}

.p-favorite_inner .p-favorite_thumb {
    display: block;
    margin: 0 auto;
}
@media screen and (min-width: 768px) {
    .p-favorite_inner .p-favorite_thumb {
        margin: inherit;
    }
}
.p-favorite_icons {
    display: flex;
    gap: .5em;
    margin: 0 0 0 auto;
}
/* Favoritesボタン（削除用）を × にする */
.simplefavorite-button.p-favorite_delete {
    position: relative;
    line-height: 1;
    background: none;
    cursor: pointer;
}
.simplefavorite-button.p-favorite_delete::before {
    content: "×";
    font-size: 1em;
    color: currentColor;
    vertical-align: middle;
}
.p-favorite_delete .sf-icon-bookmark {
    display: none;
}