/*-------------------------- 全体 --------------------------*/
body{
    line-height: 1.5;
    font-family: "Noto Sans JP";
    color: var(--wp--preset--color--textblack) !important;
    letter-spacing: 0.1em;
}

h1{
    font-weight: 100;
}

h2{
    font-family: var(--wp--preset--font-family--zen-old-mincho) !important;
    font-size: 2em;
    margin-top: 12px !important;
}

.h2_deco{
    font-family: var(--wp--preset--font-family--zen-old-mincho) !important;
    color: var(--wp--preset--color--mainblue) !important;
}

h3{
    font-family: var(--wp--preset--font-family--zen-old-mincho) !important;
    font-size: 1.4em;
    color: var(--wp--preset--color--mainblue);
    position: relative;
    padding-bottom: 10px;
    text-align: center ;
}

h3::after{
    content: "";
    border: 1px solid var(--wp--preset--color--mainblue);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;

}

h4{
    color: var(--wp--preset--color--textblack);
}

a{
    color: var(--wp--preset--color--textblack);
}

a{
    text-decoration: none;
    transition: 1s;
}

a:hover{
    opacity: 0.5;
}

figure{
    overflow: hidden;
}

figure a img {
  transition: transform 0.3s ease; 
}

figure a:hover img {
  transform: scale(1.1); 
}

.wp-block-group {
    padding-top: 60px;
    padding-bottom: 45px;
}

.wp-block-button > a.wp-block-button__link {
    width: 300px;
    padding: 20px 30px;
    transition: .5s;
    color: var(--wp--preset--color--maingreen);
}

.wp-block-button > a:hover {
    background-color: var(--wp--preset--color--maingreen);
    opacity: 1;
    color: #fff;
}

.line_buttun > .wp-block-button > .wp-block-button__link {
    padding: 20px 30px 20px 70px;
    border-width: 1px;
}

.line_buttun > .wp-block-button{
    position: relative;
}

.line_buttun > .wp-block-button::before{
    content: "";
    background-image: url(/wp-content/uploads/2026/08/LINE_Brand_icon.png);
    background-size: cover;
    width: 35px;
    height: 35px;
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
}

.no-padding-top{
    padding-top: 0;
    margin-top: 0;
}

.wp-block-group{
    padding-left: 15px;
    padding-right: 15px;
}

.content_all,
header > .wp-block-group,
.main_visual ~ .wp-block-group{
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* パンくずリスト */
.custom-breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 40px;
    color: var(--wp--preset--color--textblack);
}

.custom-breadcrumb li {
    position: relative;
    display: inline-block;
}

.custom-breadcrumb li:not(:last-child)::before,
.custom-breadcrumb li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: -22px;
    width: 11px;
    height: 2px;
    border-radius: 9999px;
    background-color: var(--wp--preset--color--textblack);
    transform-origin: calc(100% - 0px) 50%;
}

.custom-breadcrumb li:not(:last-child)::before{
    transform: rotate(45deg);
}

.custom-breadcrumb li:not(:last-child)::after{
    transform: rotate(-45deg);
}

.breadcrumb{
    padding: 0;
}

/* 店舗のアコーディオン */
ul .wp-block-navigation__submenu-container{
    width: max-content !important;
}
/*-------------------------- ヘッダー --------------------------*/
header{
    z-index: 10;
    background-color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
}

header .wp-block-group{
    padding-top: 0;
    padding-bottom: 0;
}

/* お問い合わせボタン */
.contact_button{
    background-color: var(--wp--preset--color--maingreen) !important;
    color: #fff;
    padding: 15px !important;
}

.wp-container-core-group-is-layout-da663a52 > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    width: 90%;
}

/* ハンバーガーメニューのブレークポイント変更 */
@media (max-width: 1118px) {
    /* 通常のメニュー（横並び）を非表示にする */
    .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
    }

    /* ハンバーガーアイコン（開くボタン）を強制表示 */
    .wp-block-navigation__responsive-container-open {
        display: flex !important;
    }

    /* メニューが開いている状態のコンテナ制御 */
    .wp-block-navigation__responsive-container.is-menu-open {
        display: flex !important; /* blockではなくflexにすることで、WP標準のレイアウトを維持 */
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100000;
        flex-direction: column;
        background-color: inherit; /* 親の背景色を継承、または #fff など指定 */
    }

    /* お問い合わせボタンのパディングを無効化 */
    .contact_button{
        padding: initial !important;
    }
}

/*-------------------------- フッター --------------------------*/
/* フッターを下部に固定 */
.wp-site-blocks{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
footer{
    margin-top: auto;
}

footer > div >.wp-block-group{
    padding: 30px 15px !important;
}

.wp-block-separator{
    border-top: 1px solid var(--wp--preset--color--textblack);
    max-width: 1240px;
}

footer p{
    margin: auto !important;
    padding: 5px 0;
}

.footer_nav{
    display: flex;
    justify-content: space-around;
    gap: 18px;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
    max-width: 626px;
}

footer .wp-block-group{
    padding-top: 0;
    padding-bottom: 0;
}

.footer_menu{
    width: fit-content;
}

/*-------------------------- TOP --------------------------*/
.main_visual{
    margin-top: 75.44px !important;
    height: 92vh;
    position: relative;
}

.wp-block-cover{
    width:  85%;
    max-width: initial;
    height: 100%;
    margin: initial !important;
    position: absolute;
    top: 0;
    right: 0;
}

.kusunokipharmacy{
    margin-top: 0;
    position: absolute;
    bottom: 10%;
    right: 3%;
    transform: rotate(-10deg);
    z-index: 12;
    animation-name: fadeIn;
    animation-duration: 2s;
    animation-fill-mode:forwards;
}


.kusunokipharmacy p{
    margin: 0;
    font-size: clamp(16px, 6vw, 80px) !important;
    color: #000;
    line-height: 1;
    animation-name: ColorWhite;
    animation-duration: 2s;
    animation-delay: 2s;
    animation-fill-mode:forwards;
}

.catchphrase{
    position: absolute;
    top: 10%;
    left: 0;
    width: 15%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.catchphrase p {
    font-size: clamp(24px, 2.5vw, 36px) !important;
    writing-mode: vertical-rl;
    margin: 0 5px !important;
    letter-spacing: 0.3em;
}

.catchphrase p:nth-child(2){
margin-top: 45% !important;
}

.container_07 {
    height: 300px;
    position: absolute;
    bottom: 2%;
    left: 0;
    width: 15%;
}

@media (max-width: 719px) {
    .wp-block-cover{
    width:  100%;
    }

    .catchphrase p {
        background-color: #fff;
        left: 50%;
        transform: translateX(-50%); 
    }

    .catchphrase {
        left: 50%;
        transform: translateX(-50%); 
    }

    .catchphrase p:nth-child(1){
        height: max-content;
    }

    .container_07 {
        left: 50%;
        transform: translateX(-50%); 
    }

}

/* TOPコンテンツ */
.home > .wp-site-blocks > .wp-block-group{
    margin-top: 0;
    padding-top: 0;
}

/*-------------------------- オープニングシャッターアニメーション --------------------------*/

/* 共通設定 */
.opening_animation1, .opening_animation2, .opening_animation3, 
.opening_animation4, .opening_animation5 {
    background-color: #fff;
    display: block;
    width: 100%;
    max-width: initial;
    position: absolute;
    top: -30%;
    left: 0;
    z-index: 11;
    animation-name: fadeOut_one;
    animation-duration: 5s;
    animation-fill-mode: forwards;
    margin-top: 0;
}

/* 各要素の配置：
  前の要素の [top + height] が 次の要素の [top] になるように計算
*/

.opening_animation1 {
    height: 20%; 
    top: 0%;      /* 0%からスタート */
    animation-delay: 1s;
}

.opening_animation2 {
    height: 20%;
    top: 20%;     /* 0 + 20 */
    animation-delay: 1.5s;
}

.opening_animation3 {
    height: 20%;
    top: 40%;     /* 20 + 20 */
    animation-delay: 2s;
}

.opening_animation4 {
    height: 20%;
    top: 60%;     /* 40 + 20 */
    animation-delay: 2.5s;
}

.opening_animation5 {
    height: 20%;
    top: 80%;     /* 60 + 20 */
    /* 合計 100% */
    animation-delay: 3s;
}

@keyframes fadeIn{
    0%, 7% {
        transform: rotateZ(0);
    }
    15% {
        transform: rotateZ(-15deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    25% {
        transform: rotateZ(-10deg);
    }
    30% {
        transform: rotateZ(6deg);
    }
    35% {
        transform: rotateZ(-4deg);
    }
    40% {
        transform: rotateZ(0);
        transform: rotate(-10deg);
    }

    90%{
        z-index: 12;
    }

    100% {
        transform: rotateZ(0);
        transform: rotate(-10deg);
        z-index: 9;
    }
}

@keyframes ColorWhite{
    0% {
        color: #000;
    }
    100% {
        color: #fff;
    }
}


@keyframes fadeOut_one{
  0% {
    opacity: 1;
    width: 100%;
  }
  100% {
    width: 0%;
  }
  100% {
    opacity: 0;
  }
}


/*-------------------------- 薬局ブログアーカイブ --------------------------*/
.h1_cover{
    width: 100vw;
    height: 250px;
    margin-top: 75.4px !important;
}

.blog_roop{
    margin-top: 350px;
    padding-top: 0;
}

.wp-block-post-featured-image img{
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/*-------------------------- 固定ページ全体 --------------------------*/
.content_all{
    margin-top: 350px;
    padding-top: 0;
}

/*-------------------------- 企業概要 --------------------------*/
/* テーブル全体 */
td:nth-of-type(2n-1){
    color: var(--wp--preset--color--mainblue);
    width: 30%;
    border: initial;
    border-bottom: 1px solid;
}

td:nth-of-type(2n){
    border: initial;
    width: 70%;
    border-bottom: 1px solid var(--wp--preset--color--mainblue);
}


table{
    width: 100%;
    table-layout: fixed;
}

.wp-block-table{
    padding: 30px 0;
}

thead{
    background-color: var(--wp--preset--color--mainblue);
    color: #fff;
}

.right_border{
    border-right: 1px solid var(--wp--preset--color--mainblue);
}

@media (max-width: 781px) {
    .right_border{
    border-right: none;
    }
}

.gap_big{
    gap: 45px;
}

.wp-block-table td{
    padding: 1em;
    vertical-align:top
}

/*-------------------------- 店舗 --------------------------*/
.store{
    border: 1px solid var(--wp--preset--color--mainblue);
    padding: 30px 45px 80px 45px;
    width: 320px;
    position: relative;
}

.wp-block-columns:has(.store){
    gap: 45px;
}

.store h3::after{
    width: 100%;
}

.store p{
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    height: max-content;
}

.store > p > a{
    border-bottom: 1px solid var(--wp--preset--color--maingreen);
}

.net_shop figure{
    width: 280px;
}

.net_shop{
    gap: 16px;
    justify-content: center;
}

.equipment{
    justify-content: center;
    column-gap: 93px;
}

.equipment > .wp-block-image {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
    text-align: center; /* 中身を中央に */
}

.equipment img {
    width: 100% !important;
    display: block; /* 隙間対策 */
}

.g_map{
    text-align: center;
	display: flex;
	justify-content: center;
}

.g_map iframe{
    width: clamp(350px, 60%, 600px);
}
/*-------------------------- 店舗(個別ページ) --------------------------*/
.branch{
    margin-top: 700px;
}

.branch_cover > .wp-block-cover__background{
    background-color: initial !important;
}

.branch_cover > .wp-block-cover__inner-container{
    width: 100%;
    height: 100%;
    position: relative;
}

/* 本店 */

.branch_title,
.branch_title2{
    padding: 10px;
    color: var(--wp--preset--color--mainblue) !important;
    background-color: #fff;
    width: fit-content;
    text-align: left;
    box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.4);
    position: absolute;
}

.branch_title{
    margin-left: initial !important;
    margin-right: initial !important;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
}

.branch_title2{
    font-size: 24px;
    top: 60%;
    left: 5%;
}

@media (max-width: 570px) {
    .branch_title{
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
    }

    .branch_title2{
        top: 70%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        font-size: 16px;
        box-sizing: border-box;
    }
}

.hoten_sec1 img,
.hoten_sec2 img,
.hoten_sec3 img{
    aspect-ratio: 4/3;
}

.hoten_sec1 figure,
.hoten_sec2 figure,
.hoten_sec3 figure,
.hoten_sec4 figure{
    max-width: 420px;
    margin: 0 auto !important;
}


.hoten_sec1,
.hoten_sec2,
.hoten_sec3,
.hoten_sec4{
    max-width: 1200px;
    margin: 80px auto 0 auto;
    position: relative;
}

.hoten_sec1::after{
    content: "";
    background-color: var(--wp--preset--color--subblue);
    display: block;
    width: 110%;
    height: 300px;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.hoten_sec2::after{
    content: "";
    background-color: var(--wp--preset--color--subblue);
    display: block;
    width: 80%;
    height: 200px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hoten_sec3::after{
    content: "";
    background-color: var(--wp--preset--color--subblue);
    display: block;
    width: 80%;
    height: 200px;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

.hoten_sec4::after{
    content: "";
    background-color: var(--wp--preset--color--subblue);
    display: block;
    width: 100%;
    height: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: -1;
}

.hoten_sec4_fig img:nth-of-type(1){
    width: 320px;
    padding-bottom: 100px;
}

.hoten_sec4_lastfig{
    padding-top: 60px;
    flex-wrap: nowrap !important;
}

.hoten_sec4_fig > .wp-block-media-text__content{
    padding-top: 180px;
}


@media (max-width: 781px) {
    .hoten_sec4_fig img:nth-of-type(1){
    width: 320px;
    padding-bottom: initial;
    }

    .hoten_sec4_lastfig{
        padding-top: initial;
    }

    .hoten_sec4_fig > .wp-block-media-text__content{
        padding-top: initial;
    }
}

    
/* 南口店 */
.branch_minamiguchi_title,
.branch_minamiguchi_title2{
    padding: 10px;
    color: var(--wp--preset--color--mainblue) !important;
    background-color: #fff;
    width: fit-content;
    text-align: left;
    box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.4);
    position: absolute;
}

.branch_minamiguchi_title{
    margin-left: initial !important;
    margin-right: initial !important;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
}

.branch_minamiguchi_title2{
    font-size: 24px;
    top: 60%;
    right: 5%;
}

@media (max-width: 570px) {
    .branch_minamiguchi_title{
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 100%;
    }

    .branch_minamiguchi_title2{
        top: 70%;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        font-size: 16px;
        box-sizing: border-box;
    }
}

.minami_sec1{
    max-width: 1200px;
    margin: 80px auto 0 auto;
    position: relative;
}

.minami_sec1::after{
    content: "";
    background-color: var(--wp--preset--color--subblue);
    display: block;
    width: 110%;
    height: 350px;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.medication_support{
    gap: initial !important;
    max-width: 1200px;
    margin-top: 50px;
}

.medication_support > .wp-block-column{
    border-right: none;
    padding: 30px;
    position: relative;
    height: 450px;
}

.medication_support > .wp-block-column:nth-of-type(4){
    border-right: 1px solid;
}

@media (max-width: 781px) {
    .medication_support > .wp-block-column{
    border-right: 1px solid;
    border-bottom: none;
    }

    .medication_support > .wp-block-column:nth-of-type(4){
    border-bottom: 1px solid;
}

}

.medication_support > .wp-block-column > .wp-block-image
{
    width: 180px;
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.medication_support > .wp-block-column:nth-of-type(3) > .wp-block-image{
    position: absolute;
    bottom: 3%;
    width: 150px;
}

@media screen and (min-width:782px) and ( max-width:972px) {
    /*　画面サイズが768pxから1024pxまではここを読み込む　*/
    .medication_support > .wp-block-column:nth-of-type(3) > .wp-block-image{
        display: none;
    }
}

/*-------------------------- 健康相談 --------------------------*/
.health_consultation li{
    border-bottom: dotted 1px var(--wp--preset--color--mainblue);
    padding: 10px 0;
}

ul{
    list-style: inside;
}

ul li::marker {
  color: var(--wp--preset--color--mainblue); /* 点の色だけ赤にする */
}

iframe{
    display: block;
}
/*-------------------------- アクセス --------------------------*/

.wp-container-core-group-is-layout-21c309ac > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    width: 90%;
}



/* -------------------アニメーション（JSあり）------------------- */

/* 下からふわっと */
.fuwa {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 1s;
}
.fuwa.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

/* 右からスライド */
.right_slide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(80px);
  transition: all 1s;
}
.right_slide.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0px);
}

.entry-content{
    overflow: hidden;
}

