/**
 * サイト全体のスタイル
 * 移行元: WordPress カスタマイザー > 追加CSS
 */

body{
	background-color: #ffffff;
}

body {
    font-family: "Roboto", "Noto Sans JP", sans-serif;
    font-size: 1rem;
}

@media screen and (min-width: 960px){
	.l-article {
		width: calc(100% - 360px);
		max-width: 1080px;
	}
}


/* ボタンアニメーション */
.btn_frame_anime a {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #ffffff; /* 文字色: 白 */
  background-color: #3BA6D7; /* 背景: 青 */
  position: relative; /* ::before疑似要素の基準点 */
  overflow: hidden; /* はみ出た背景を隠す */
  /* テキストが背景の下敷きにならないように設定 */
  isolation: isolate; 
  /* 文字色の切り替えアニメーション */
  transition: color 0.5s ease;
}
.btn_frame_anime.btn_frame_anime_blue a{
	  background-color: #126CB1; /* 背景: 青 */
}
.btn_frame_anime.btn_frame_anime_white a{
	  background-color: #ffffff; /* 背景: 青 */
	color: #3BA6D7;
}

/* ホバー時の文字色 */
.btn_frame_anime a:hover {
  color: #3BA6D7; /* 文字色: 青 */
}
.btn_frame_anime.btn_frame_anime_blue a:hover {
color: #126CB1;
}
.btn_frame_anime.btn_frame_anime_white a:hover {
color: #ffffff;
}

/* スライドする背景 (::before疑似要素) */
.btn_frame_anime a::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;

  /* --- 色の指定 (ホバー時の背景) --- */
  background: #ffffff; /* 背景: 白 */

  /* --- アニメーション (通常時) --- */
  /* (参考CSSのロジック) 右を基点に幅0の状態で隠れる */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;

  /* テキストの背面に配置 */
  z-index: -1;
}
.btn_frame_anime.btn_frame_anime_white a::before{
	background-color: #CFE9F5;
	color: #ffffff;
	border: transparent;
}

/* ホバー時のスライド背景 */
.btn_frame_anime a:hover::before {
  /* 左を基点に幅100%まで広がる (＝左から右へスライド) */
  transform: scaleX(1);
  transform-origin: left;
}

/* スマホ時はタップでアニメーション */
@media screen and (max-width: 959px){
/* クリック時の文字色 */
.btn_frame_anime a:active {
  color: #3BA6D7; /* 文字色: 青 */
}
.btn_frame_anime.btn_frame_anime_blue a:active {
color: #126CB1;
}
	.btn_frame_anime a:active::before {
  /* 左を基点に幅100%まで広がる (＝左から右へスライド) */
  transform: scaleX(1);
  transform-origin: left;
}
}
.btn_frame_anime.radius a {
  border-radius: 30px;
}
/* ボタンアニメここまで */

/* 固定ページのタイトルエリア非表示 */
.l-topTitleArea{
	display : none;
}

/* ヘッダー */
.l-header{
	position: absolute;
}

.l-header__inner{
	height: 48px;
}

.l-header__inner .c-gnav .sub-menu a{
	font-size: 12px;
}


/* ヘッダー hover */
.l-header__gnav li.menu-item a:hover {
	color: #3b93ca;
}
.l-header__gnav li.menu-item:hover a {
	background-color: transparent;
}
.l-header__gnav li.menu-item.-current > a{
	background-color: transparent;
	color: #126cb1;
}

.fa-brands {
	color:#777777;
}
.l-header__inner .wp-block-column:last-child{
	margin-right: 1em !important;
}
.l-header .swell-block-button__link span {
	white-space: nowrap;
}

div.p-spMenu__body{
	overflow: visible;
}
.p-spMenu__body .c-widget__title.-spmenu{
		font-size: 0;
		height: 35px;
		width: 150px;
		background-color: #ffffff;
		background-image: url("https://ti-plus-hd.jp/econowa/wp-content/uploads/2025/10/ligo.svg");
		background-repeat: no-repeat;
		position: absolute;
		top: -25px;
		left: 4px;
		z-index: 10;
	}

.p-spMenu__body .btn_frame_anime a{
	border-radius: 0px;
	width: 100%;
	background-color: #3B93CA;
}

@media (min-width: 960px) {
		.l-header__inner{
		justify-content: space-around;
		align-items: center;
		width: calc(100% - 350px);
		margin-top: 24px !important;
		max-width: 750px;
		transform: translatex(-175px);
		margin: 0 auto;
		background-color: rgba(255, 255, 255, 0.69);
		padding: 16px;
		border-radius: 5px;
		position: relative;
	}
	.l-header__logo{
		transform: translatey(-10px);
	}
	.l-header .wp-block-columns {
		gap: 0 !important;
	}
	.c-headLogo{
		display: flex;
		align-items: center;
	}
	.c-gnav{
		justify-content: space-between;
	}
	.-series .l-header__inner .l-header__logo{
		padding: 0; 
	}
	
	.w-header{
		position: absolute;
		top: 0;
		right: -335px;
	}
}

.c-gnav>.menu-item-483>.sub-menu {
	transform: translatex(0);
	font-size: 0.6rem;
	border-radius: 0;
	top: 75%;
}

.c-gnav>.menu-item-483>.sub-menu a:before{
	content: none;
}

/* メインビジュアル */
.p-mainVisual__imgLayer {
	background: linear-gradient(to bottom, #EAF1F5 0%, #FDFDFD 100%);
	width: 100%;
	height: auto;
	min-width: 300px;
}
.p-mainVisual__imgLayer img{
  width: 100%;
  height: auto !important;
}

/* -height-img: PC ボタンを画像左下に配置 */
.p-mainVisual__textLayer .btn_frame_anime a {
	width: 16vw;
	min-width: 242px;
	height: 3.3vw;
	max-height: 60px;
}
.p-mainVisual__textLayer .btn_frame_anime_blue a {
	width: 20vw;
	min-width: 275px;
}
@media screen and (min-width: 960px){
	.-height-img .p-mainVisual__textLayer {
		left: 9vw;
		transform: none;
		width: 46%;
		min-width: 650px;
		justify-content: flex-end;
		padding-bottom: 3vw;
	}
}
@media screen and (min-width: 1600px){
	.-height-img .p-mainVisual__textLayer {
		left: 10.5vw;
	}
}

/* spでボタン非表示 */
@media screen and (max-width: 960px){
	.p-mainVisual__textLayer .p-blogParts{
		display: none;
	}
}

.p-mainVisual__textLayer .wp-block-columns{
    gap: 0 !important;
}
.swell-block-columns__inner{
	position: relative;
}

/* .sp_only .swell-block-column:last-child{
	position: absolute;
	top: 115vw;
	left: 6.25vw;
}
*/

/* スマホナビメニュー */
.sns_icons{
	text-align:center;
}

/* Contact Form 7 CSS*/
/* フォームの下に余白 */
.wpcf7-form p {
margin-bottom: 30px;
}
/* フォームのカスタマイズ */
.wpcf7-text, .wpcf7-email, .wpcf7-tel, .wpcf7-textarea {
width: 100%;
background-color: #fff;
margin-top: 5px;
}
/* ラジオボタンの左の余白 */
.wpcf7-radio span {
margin-left: 0;
}
/* ボタンのカスタマイズ */
.wpcf7-submit, .wpcf7-previous {
display:inline-block;
width: 240px;
padding: 1.2em 1em;
border-radius: 50px;
background: #3BA6D7;/* ここにメインカラー */
font-size: 16px;
font-weight: 700;
letter-spacing: 0.2em;
line-height: 1;
color: #fff!important;
}
.submit-btn .send{
	margin-left:32px;
}


.submit-btn > p{
	display:flex;
}
.back{
	background:#fff;
	border:1px solid #3BA6D7!important;
	color:#3BA6D7!important;
	
}

/* 必須マーク */
.required {
color: #fff;
background: #3BA6D7;/* ここにメインカラー */
font-size: 0.8em;
padding: 0.3em;
border-radius: 0.5em;
}

/* ハンバーガーメニュー内 */
.p-spMenu__inner::before{
	background-color: #ffffff;
}
.p-spMenu__nav .c-widget__title.-spmenu{
	display:none;
}
.p-spMenu__nav .c-gnav .sub-menu a:before, .c-listMenu a:before{
	content: "";
}
.p-spMenu__nav .hb_nav_parent a{
	position: relative;
}
.p-spMenu__nav .hb_nav_parent>a::after, .p-spMenu__nav .hb_nav_parent>a::before{
	all: unset;
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  height: 2px;
  background-color: #3B93CA;
  transition: transform 0.3s;
}
.p-spMenu__nav .hb_nav_parent>a::after{
	transform: rotate(90deg) translateY(0.5px);
}
.p-spMenu__nav .hb_nav_parent > a.active::after {
  transform: translateY(0px) rotate(0deg);
}

.p-spMenu__nav .sub-menu{
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.p-spMenu__nav .c-listMenu .sub-menu li a{
	padding-left: 4.5rem;
}

.p-spMenu__nav .c-listMenu .sub-menu li a::before {
	content: "→";
	color: #ffffff;
	background-color: #3B93CA;
	border-radius: 50%;
	left: 2.5rem;
	padding: 0.3rem;
}

/* フッターメニュー */
.w-beforeFooter {
    margin: 30px auto 0;
}

.footer_before .footer_before_right .swell-block-columns__inner  {
	justify-content: flex-end;
}

.footer_before .footer_before_right .swell-block-column{
	width: fit-content;
}

@media screen and (max-width: 959px){
		.w-beforeFooter {
		margin-top: 50px;
	}
	.w-beforeFooter .swell-block-columns{
		margin-bottom: 26px;
	}
	.w-beforeFooter .swell-block-columns .swell-block-column{
		width: fit-content;
	}
	.w-beforeFooter .swell-block-columns.sp_only p{
		width: fit-content;
		margin-bottom: 16px;
	}
	.w-beforeFooter .swell-block-columns:last-child p{
		font-size: 0.8em;
		padding-bottom: 14px;
	}
}

/******活用シーンセクション****
 ****** モーダルのCSS.    *****/

/* モーダル全体のラッパー（初期状態は非表示） */
.c-custom-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Javascriptで表示フラグが付与された時 */
.c-custom-modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景の暗いオーバーレイ */
.c-custom-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* モーダルの白いボックス */
.c-custom-modal__content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* 閉じる(X)ボタン */
.c-custom-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    z-index: 10;
}

.c-custom-modal__close:hover {
    color: #000;
}

/* 内部レイアウト（PC時は左右分割） */
.c-custom-modal__inner {
    display: flex;
    gap: 40px;
    padding: 50px 40px 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.c-custom-modal__text {
    flex: 1;
}

.c-custom-modal__text h3 {
    margin-top: 0;
    font-size: 1.5em;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* 画像ギャラリーエリア */
.c-custom-modal__gallery {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

.c-custom-modal__main-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.c-custom-modal__main-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スライダーの左右ボタン */
.c-custom-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    color: #333;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}
.c-custom-modal__nav:hover { background: #fff; }
.c-custom-modal__nav--prev { left: 10px; }
.c-custom-modal__nav--next { right: 10px; }

/* サムネイル群 */
.c-custom-modal__thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.c-custom-modal__thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.c-custom-modal__thumbnails img.is-active,
.c-custom-modal__thumbnails img:hover {
    opacity: 1;
    border: 2px solid #333;
}

/* スマホ表示時（縦積み） */
@media screen and (max-width: 768px) {
    .c-custom-modal__inner {
        flex-direction: column;
        padding: 40px 20px 20px;
    }
}
