/*
Theme Name: iyakukaigo_GE Child Theme
Description: 薬局検索サイト用の子テーマ
Author: K.T
Template: generatepress
Version: 1.0.0
*/

/*********************
 * 
 * iyaku-kaigo.jp
 *  
 *********************/

.iyaku-kaigo-search-form, .iyaku-kaigo-search-form-modal {
    background-color: transparent !important;
}

.wpcf7-turnstile.cf-turnstile {
    text-align: center;
    padding-bottom: 20px;
}

.navigation-branding img,
.site-logo.mobile-header-logo img {
    height: auto !important;
    width: 260px !important;
}

.main-navigation.has-branding .inside-navigation.grid-container, .main-navigation.has-branding.grid-container .inside-navigation:not(.grid-container) {
    padding: 0px 10px 0px 10px !important;
}

nav#site-navigation {
    padding: 0px 0px;
}

a {
	text-decoration: none;
}

a.link_custom_1:hover p {
	color: #fff !important;
	opacity: 0.6;
}

.iyaku-kaigo-search-form .modal h4 {
    color: var(--global-color-8) !important;
    text-align: center;
}

.iyaku-kaigo-search-form .modal-content {
    margin: 10% auto !important;
}

.iyaku-kaigo-search-form .search-button, .iyaku-kaigo-search-form .download-button, .iyaku-kaigo-search-form .submit-button {
	background-color: var(--global-color-8) !important;
}
.iyaku-kaigo-search-form .search-button:hover, .iyaku-kaigo-search-form .download-button:hover, .iyaku-kaigo-search-form .submit-button:hover {
	opacity: 0.6 !important;
}
.iyaku-kaigo-search-form .modal-content {
	z-index:1111 !important;
}
.iyaku-kaigo-search-form {
    /* background-color: transparent!important; */
	background-color:#fff !important;
    /* box-shadow: none !important; */
	box-shadow: 0px 0px 5px 4px rgba(0, 0, 0, 0.1) !important;
}
.iyaku-kaigo-search-form .search-results {
    background-color: #eafefc !important;
	border: 1px dashed var(--global-color-8) !important;
}
.iyaku-kaigo-search-form h3 {
    font-size: 2em !important;
    font-weight: 700 !important;
	color: var(--global-color-8) !important;
	padding: 15px 0px;
}
.iyaku-kaigo-search-form .search-results h4 {
    font-size: 1.4em !important;
	color: var(--global-color-8) !important;
}
.iyaku-kaigo-search-form .form-group {
    text-align: center;
}

.checkbox-item label {
	text-align:left;
}
.iyaku-kaigo-search-form {
    width: 90% !important;
}

/* チェックボックスを非表示 */
.checkbox-item input[type="checkbox"] {
    display: none;
}

/* ラベルをカスタムチェックボックスとして装飾 */
.checkbox-item label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    line-height: 20px;
}

/* カスタムチェックボックスの円 */
.checkbox-item label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #bbbbbb;
    border-radius: 50%; 
    background: #fff;
    box-sizing: border-box;
}

/* チェック状態のスタイル */
.checkbox-item input[type="checkbox"]:checked + label::before {
    background: #45a049;
    border-color: #45a049;
}

/* チェックマーク */
.checkbox-item label::after {
    content: "";
    position: absolute;
	left: 7px;
    top: 4px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
}

/* チェック時のチェックマークを表示 */
.checkbox-item input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.iyaku-kaigo-search-form .modal h4, .iyaku-kaigo-search-form-modal .modal h4 {
    text-align: center;
	color: #00a286 !important;
}
.iyaku-kaigo-search-form .search-button, .iyaku-kaigo-search-form .download-button, .iyaku-kaigo-search-form .submit-button, .iyaku-kaigo-search-form-modal .search-button, .iyaku-kaigo-search-form-modal .download-button, .iyaku-kaigo-search-form-modal .submit-button {
    background-color: #00a286 !important;
}
.iyaku-kaigo-search-form .form-group, .iyaku-kaigo-search-form-modal .form-group {
    text-align: center;
}

/*********************
 * 
 * Top Page Overlay
 *  
 *********************/

/* bodyの初期状態 */
body {
    margin: 0;
    padding: 0;
    overflow-y: scroll;
    /* overflow: hidden; ← スクロール無効化時に有効 */
}

/* オーバーレイ全体：最初は黒い背景 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

/* 背景画像用の疑似要素：初期は非表示 */
.overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://jobu-ichiba.com/websystem/wp-content/uploads/2025/04/IMG_0894-scaled-e1745558064135.jpg');
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -1; /* ← これがポイント！中身を覆わないように */
}

/* .show-bg クラス追加で、背景画像をフェードイン */
.overlay.show-bg::after {
    opacity: 1;
}

/* ロゴやメッセージのスタイル */
.overlay .logo {
    max-width: 150px;
    max-height: 150px;
}

.top_overlay_p {
    margin-top: 20px;
    font-size: 3.2em !important;
    font-family: 'Noto Serif JP', serif;
    color: #ffffff !important;
    position: relative; /* ← 背景画像より前に出す */
    z-index: 1;
	letter-spacing: 0.1em;
}

/***************************************/

/* page-top */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #087900;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  z-index: 9999;
}

/* footer icon */
#mega-menu-wrap-footer-menu #mega-menu-footer-menu > li.mega-menu-item > a.mega-menu-link::before {
    content: "\f105"; /* Font Awesome右矢印のユニコード */
    font-family: "Font Awesome 5 Free"; /* Font Awesome 5の場合（Free版） */
    font-weight: 900; /* Solidの場合 */
    position: absolute;
    left: 10px; /* 左側の余白調整 */
    top: 50%;
    transform: translateY(-50%); /* 上下中央揃え */
	color: #ccc;
}

#mega-menu-wrap-footer-menu #mega-menu-footer-menu > li.mega-menu-item > a.mega-menu-link {
    padding: 0px 10px 0px 30px;
}

/*********************
 * 
 * サイドバナー：見積・LINE
 *  
 *********************/

.floating-banner {
  position: fixed;
  right: -10px;
  width: 60px;
  background-color: #f68800;
  color: #ffffff;
  text-align: center;
  z-index: 9999;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: opacity 0.3s;
	font-weight: 700;
	transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);

}

.floating-banner:hover {
	color:#fff;
	opacity: 0.9;
}

.floating-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 30px 10px 20px;
  font-size: 18px;
  line-height: 1.5;
}

.floating-banner-inner i {
  margin-top: 10px;
  font-size: 20px;
}

/* ご相談バナー：縦中央配置 */
.banner-soudan {
  top: 40%;
}

/* LINEバナー：ご相談のすぐ下に配置 */
.banner-line {
	top:calc(40% + 145px); /* 調整が必要ならpxを変更してください */
  background-color: #06c755; /* LINEカラー */
}

/* ホバー時に左へ10pxスライド */
.floating-banner:hover {
  right: 0px;
  opacity: 0.9;
  color: #fff;
}

.floating-banner {
  opacity: 0;
  pointer-events: none;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* スクロール開始後に表示される状態 */
.floating-banner.visible {
  opacity: 1;
  pointer-events: auto;
}

/***************************************/

/* ホームの余白解除 */

body.home .site-main {
  margin-top: 0px;
}

body.home .inside-article {
  padding-top: 0px;
}

/* ホームのスライドタイトル */
.top_slide_title :is(h1, h2, h3, h4, h5, h6) {
	font-family: 'Noto Serif JP', serif !important;
	 letter-spacing: 0.05em !important;
}

/* 各ページタイトル */
.entry-header .entry-title,
.jobu-market-title{
	position: relative;
	padding: 10px 10px 20px 10px;
	font-size: 1.2em;
}

.entry-header .entry-title::after,
.jobu-market-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 8px;
	background-image: repeating-linear-gradient(45deg, #949494 0px, #949494 1px, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%);
	background-size: 8px 8px;
}

header.page-header {
	margin-bottom: 0px !important;
	padding-bottom: 20px !important;
}

/*
.page-header .page-title {
	font-size: 1.5em;
	padding: 1rem 1rem;
	color: #fff;
	background: #094;
	-webkit-box-shadow: 5px 5px 0 #007032;
	box-shadow: 5px 5px 0 #007032;
}*/

.page-header .page-title {
  font-weight: bold;
  padding: 0.5em 1.2em;
  border: 3px solid var(--global-color-8);
  overflow: hidden;
  position: relative;
  font-size: 1.4em;
}
.page-header .page-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  border-width: 25px 25px 0 0;
  border-style: solid;
  border-color: var(--global-color-8) #fff var(--global-color-8);
}

/*
.custom_entry-title {
	font-size: 1.5em;
	padding: 1rem 1rem;
	color: #fff;
	background: #094;
	-webkit-box-shadow: 5px 5px 0 #007032;
	box-shadow: 5px 5px 0 #007032;
}*/

.custom_entry-title {
  font-weight: bold;
  padding: 0.5em 1.2em;
  border: 3px solid var(--global-color-8);
  overflow: hidden;
  position: relative;
  font-size: 1.4em;
}
.custom_entry-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  border-width: 25px 25px 0 0;
  border-style: solid;
  border-color: var(--global-color-8) #fff var(--global-color-8);
}

.title_vertical_1{
	position: absolute;
    z-index: 2;
    right: -40px;
    top: 20px;
}
@media screen and (max-width: 768px) {
.title_vertical_1{
	position: relative;
}
}

/* 各ページアイキャッチ */
.separate-containers .featured-image {
	margin-top: 0px;
}

/* 会社案内 Modal */
.kt-modal-container {
	margin-top: 100px !important;
    max-height: 80vh !important;
	box-sizing: border-box !important;
}
/*
.kd_custom_modal .kt-modal-container {
	margin-top: 18% !important;
	margin-bottom 18% !important;
}
@media (max-width: 767px) {
.kd_custom_modal .kt-modal-container {
	margin-top: 28% !important;
}
}*/

/* table */
.custom_table p{
	margin:0px;
}
.custom_table table td:first-child {
	background: #ffffff21;
} 

.custom_table table td:nth-child(2) {
	background: #f9f9f945;
}

@media (max-width: 767px) {
.custom_table table td:first-child {
	display: block;
	width: 100%;
} 

.custom_table table td:nth-child(2) {
	display: block;
	width: 100%;
}
}
/* サイドメニュー  */

aside.widget.inner-padding ul li a {
    text-decoration: none;
    color: inherit;
    padding: 0.5em 0;
    display: inline-block;
    flex: 1;
}

aside.widget.inner-padding ul li {
    display: flex;
    align-items: center;
    border-bottom: 1px dotted #ccc;
    margin-bottom: 0.8em;
    gap: 0.5em;
}

aside.widget.inner-padding ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-weight: 900;
    color: #666;
    font-size: 1em;
    line-height: 1;
}

/***************
 * 
 * イベントカレンダー
 * 
 ***************/

.xo-event-calendar {
  font-family: 'Noto Sans JP', sans-serif;
}

aside.widget.inner-padding ul li a:hover {
	color: #00a286;
}

aside.widget.inner-padding.widget_block:has(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 0px;
}

.calendars.xo-months {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px; /* カレンダー同士の間隔をお好みで */
}

.calendar.xo-month-wrap {
  width: calc(50% - 8px); /* gapの半分だけ引くと左右均等に */
  box-sizing: border-box;
}

/* 768px以下は1列表示 */
@media screen and (max-width: 768px) {
  .calendar.xo-month-wrap {
    width: 100%;
  }
}

.xo-event-calendar .calendar.xo-month-wrap th {
	padding:9px 10px 9px 10px !important;
	background: linear-gradient(to bottom, #eeeeee, #fcfcfc); /* 上から下にグラデーション */
}

span.calendar-caption {
	font-weight: 600 !important;
	font-size: 1.2em;
}

/* プラグインが出力する凡例を非表示に */
div.holiday-titles {
  display: none;
}

.holiday-titles_custom p {
    display: inline-block;
    padding: 0px 10px 0px 0px;
}

.xo-event-calendar table.xo-month {
    border-radius: 10px;
}

table.xo-month th.sunday {
border-radius: 10px 0px 0px 0px;
}

table.xo-month th.saturday {
border-radius: 0px 10px 0px 0px;
}

.xo-event-calendar table.xo-month tr:last-child td {
	border-radius: 0px 0px 10px 10px;
}
/*
table.xo-month tr.dayname td:first-child {
    border-radius: 0px 0px 0px 10px;
}

table.xo-month tr.dayname td:nth-child(7) {
    border-radius: 0px 0px 10px 0px;
}
*/

/***************
 * 
 * 相場情報
 * 
 ***************/

.jobu-market-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.jobu-market-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.vm-market-view th,
.vm-market-view td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: center;
}
.vm-market-view th {
    background-color: #f5f5f5;
}

.jobu-market-wrapper{
	width: 100%;
}

/***************
 * 
 * form
 * 
 ***************/

input:read-write:not([type=search]), select, textarea {
    border-color: #ccc !important
}
table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th{
    background-color: transparent;
}

.form_box_001 p {
	float: left;
}

td.td_1 p {
    margin: 0px;
	font-weight: 500;
}
td.td_2 p {
    margin: 0px;
}
.wpcf7-not-valid-tip {
	padding-top: 10px;
}

.form_box_001 {
    display: block;
    text-align: center;
    padding: 20px 20px 30px 20px;
    /*background-color: #fff;*/
    border-radius: 10px;
    margin-bottom: 30px;
    /*border: 2px solid #fff;*/
}
.form-selection-input {
	/*box-shadow: 0px 0px 20px 0px rgb(0 0 0 / 10%);*/
    padding: 25px 0px 20px 0px;
    margin: 0px 0px 20px 0px;
    border-radius: 20px;
	color: #222;
	background: transparent;
}
.form-selection-input table {
    margin: 0px 0px 0px 20px;
    width: calc(100% - 40px);
    box-sizing: border-box;
}
.contact-table001 {
    border: none;
}
.form-selection-input table.contact-table001 tr, .form-selection-input table.contact-table001 td {
    border: none;
    border-bottom: 1px dashed #666;
	min-width: 200px;
}
table.contact-table001 tr {
    padding: 20px;
}
.required_check {
    background-color: #ff4b4b;
    padding: 4px 8px 6px 7px;
    display: inline-block;
    border-radius: 5px;
    font-weight: 500;
    color: #FFF;
    margin-left: 20px;
    line-height: 1.2em;
    font-size: 0.6em;
}
.arbitrary_check {
    background-color: #999999;
    padding: 4px 8px 6px 7px;
    display: inline-block;
    border-radius: 5px;
    font-weight: 500;
    color: #FFF;
    margin-left: 20px;
    line-height: 1.2em;
    font-size: 0.6em;
}

.contact-table001 input[type=text], .contact-table001 input[type=search], .contact-table001 input[type=email], .contact-table001 input[type=url], .contact-table001 input[type=tel], .contact-table001 textarea {
    background-color: #f7f7f7;
    border: 0;
    -webkit-appearance: none;
    border-radius: 6px;
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    margin: 10px;
	width: calc(100% - 20px) !important;
	margin-left: 10px !important;
}
table.contact-table001 tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    /* background-color: #f9f9f9; */
    /* background-color: #fff; */
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output {
    text-align: center;
}
input.wpcf7-form-control.wpcf7-submit {
    background: #ff8e01;
    padding: 10px 20px 10px 20px;
    width: 100%;
    font-weight: 600;
    font-size: 1.2em;
    border-radius: 10px;
    box-shadow: 0 4px 0 0 #d37501;
    border: none;
    color: #ffffff;
    /*border: 2px solid #ffa22e;*/
}
input.wpcf7-form-control.wpcf7-submit:hover {
    box-shadow: none;
    color: #fff;
    background: #ff8e01;
}
input.wpcf7-form-control.wpcf7-submit:disabled {
    box-shadow: none;
    cursor: not-allowed;
    background: #babfc5;
    border: 2px solid #babfc5;
}
.contact-table001 input:focus, .contact-table001 textarea:focus {
    background: #fff;
}
input[type="text"]:focus, input[type="submit"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea {
    outline: 0;
}
@media screen and (min-width: 0px) and (max-width: 600px) {
.contact-table001 td {
    width: auto;
    display: block;
    /* float: left; */
    padding: 20px 0px 20px 0px;
	border: none !important;
}
	table.contact-table001 td.td_1 {
    padding-bottom: 0px !important;
}
	.contact-table001 input[type=text], .contact-table001 input[type=search], .contact-table001 input[type=email], .contact-table001 input[type=url], .contact-table001 input[type=tel], .contact-table001 textarea {
    margin: 0px;
}
}
table.contact-table001 tbody tr:hover>td, table tbody tr:hover>th {
    background-color: #e7fffb !important;
}

/****/

@media (max-width: 767px) {
    .header-custom_r_1 .wp-block-kadence-column > .kt-inside-inner-col {
        flex-direction: column !important;
		align-items: center !important;
    }
}

@media (max-width: 767px) {
    .header-custom_r_2 > .kt-row-column-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;

    }
}
inside-header {
	height: 100vh !important; /* またはヘッダーの親要素と同じ高さ */
}
.inside-header * {
  /* margin: 0 !important; */
}

#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-3 img {
    padding-top: 5px;
}

.modal_shikaku button{
	position: relative;
    overflow: hidden;
    z-index: 0;
    width: 100%;
}

/* 輝きエフェクト（ヘッダーの公式認定業者） */
.modal_shikaku button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    z-index: 1;
    animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}
.header-aligned-center:not([class*=nav-float-]) .inside-header {
    flex-direction: row;
}

/* 輝きエフェクト（ヘッダーの公式認定業者） */
.character-fixed-br img{
	position: absolute;
	right: 0;
	bottom: 0;
	width: 100px;
	height: auto;
	z-index: 2;
}