@charset "UTF-8";

/*!
Theme Name: ehime-u-turn
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


html{
  font-size: 62.5%;
  width: 100%;
  transition: .2s;  /*変化する時の速度*/
  scroll-behavior: smooth;
}

body{
  display: block;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  transition: .2s;
  line-height: 2.4rem;
  text-align: left;
  background-color: #ffffff;
  font-weight: 400;
  margin: 0;
  padding: 0 30px;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 遷移先のページに追加 */
body {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.noto-sans-jp-<uniquifier> {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

main{
  background-color: #dff1f8;
  margin: 0 -90px;
}

.font-mochiy{
  font-family: "Mochiy Pop One", sans-serif;
  font-weight: 400;
}

/* ホバーアニメーション */
.hover-style {
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hover-style:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.fade-in-text {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: calc(var(--delay) * 0.1s);
}

.fade-in-text.visible {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width:1000px){
  body{
    padding: 0 15px;
  }
  main{
    margin: 0 -30px;
		padding: 0 30px;
  }
  .fade-in-text.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
}

/* ===================================
   ヘッダー基本スタイル
=================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto!important;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.header_content {
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* ===================================
   ロゴエリア
=================================== */
.h1-wrapper {
  display: flex;
  align-items: center;
  gap: 35px;
}

.h1-wrapper h1 {
  margin: 0;
}

.h1-wrapper h1 a {
  display: block;
  line-height: 0;
}

.h1-wrapper h1 img {
  height: 70px;
  width: auto;
  display: block;
}

.h1-wrapper span {
  font-size: 20px;
  line-height: 1.3;
  color: #333;
  font-weight: 500;
}

.header-logo img{
  max-width: 90px;
}

/* PC/SP表示切り替え */
.pc-none {
  display: none;
}

.sp-none {
  display: block;
}

/* ===================================
   ハンバーガーメニューボタン
=================================== */
.open-btn {
  width: 48px;
  height: 50px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.open-btn span {
  display: block;
  width: 100%;
  height: 5px;
  background-color: #f7931e;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* メニューが開いている時のハンバーガーアイコン（×印） */
.open-btn.active {
  gap: 0;
}

.open-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
}

.open-btn.active span:nth-child(2) {
  opacity: 0;
}

.open-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
}

/* ===================================
   ナビゲーションメニュー
=================================== */
.header__navigation {
  position: fixed;
  top: 0;
  right: -100%;
  width: 460px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease-in-out;
  z-index: 1001;
  overflow-y: auto;
  padding-top: 80px;
}

.header__navigation.active {
  right: 0;
}

.header__navigation ul {
  list-style: none;
  padding: 40px 30px;
  margin: 0;
}

.header__navigation ul li {
  border-bottom: 1px solid #f7931e;
  margin-bottom: 0;
}

.header__navigation ul li a {
  display: block;
  padding: 20px 10px;
  color: #F5A623;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
}

.header__navigation ul li a:hover {
  background-color: #FFF5E6;
  padding-left: 20px;
}

/* オーバーレイ（背景の暗いレイヤー） */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================
   タブレット・スマホ対応
=================================== */
@media screen and (max-width: 768px) {
  .pc-none {
    display: block;
  }
  
  .sp-none {
    display: none;
  }
  
  .h1-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .h1-wrapper span {
    font-size: 11px;
  }
  
  .h1-wrapper h1 img {
    height: 40px;
  }
  
  /* スマホ時は全画面表示 */
  .header__navigation {
    width: 100%;
    right: -100%;
  }
  
  .header__navigation ul {
    padding: 37px;
  }
  
  .header__navigation ul li a {
    font-size: 15px;
    padding: 18px 10px;
  }
}

@media screen and (max-width: 480px) {
  header {
    padding: 10px 0;
  }
  
  .header_content {
    padding: 0 15px;
  }
  
  .h1-wrapper h1 img {
    height: 35px;
  }
  
  .h1-wrapper span {
    font-size: 10px;
  }
  
  .open-btn {
    width: 35px;
    height: 35px;
  }
  
  .open-btn span {
    height: 2.5px;
  }
}

/* bodyのスクロール制御 */
body.menu-open {
  overflow: hidden;
}

.section{
  scroll-margin-top: 150px;
}

.section-wrapper{
  max-width: 1100px;
  padding: 90px 50px 100px;
  margin: 0 auto;
  position: relative;
}

@media(max-width:1000px){
  .section-wrapper{
    padding: 20px 15px 30px;
  }
  .header-logo-sp{
		width: 72px;
		height: auto;
		margin-right: 37px;
	}
}
  
/* ======================
   共通部分
   ====================== */

h2{
  margin: 0 auto;
}


/* ======================
   フッター
   ====================== */

/* フッター全体 */
.footer {
  background-color: #fff7d7;
  padding: 30px 100px 0px;
  margin: 0 -30px;
}

/* フッターコンテナ */
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-logo{
  max-width: 430px;
  width: 100%;
  margin-bottom: 20px;
}

.footer-text{
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 50px;
}

.footer-contents-wrapper{
  display: flex;
  column-gap: 180px;
}

.footer-contact{
  display: flex;
  column-gap: 40px;
  font-size: 1.4rem;
  font-weight: 500;
}

.footer-telinfo{
  line-height: 1.6;
  font-weight: 600;
}

.footer-tel{
  font-size: 3.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.footer-address{
  font-style: normal;
  font-weight: 600;
  transform: translateY(10px);
}

.footer-hours{
  font-size: 2.2rem;
  font-weight: 600;
}

.footer-links ul {
  line-height: 1.8;
}

.footer-links ul li{
  position: relative;
  list-style: none;
}

.footer-links ul li::before{
  position: absolute;
  content: "";
  width: 14px;
  height: 14px;
  background-color: #f8b62d;
  border-radius: 20px;
  top: 30%;
  left: -13%;
}

.footer-links ul li a{
  color: #0071bc;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links ul li a:hover{
  opacity: 0.6;
  transition: all 0.3s;
}

.copyright{
  color: #f8b62d;
  background-color: #ffffff;
  padding: 22px 0;
  margin: 0 -100px;
}

.copyright-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: right;
}

/* ======================
   レスポンシブ対応
   ====================== */
@media (max-width: 1080px){
  .footer-contents-wrapper{
    column-gap: 100px;
  }
}

@media (max-width: 1000px) {
  /* フッター調整 */
  .footer {
    padding: 45px 0px 0px;
    margin: 0 -15px;
  }
  .footer-logo {
    max-width: 320px;
    width: 100%;
    margin-bottom: 20px;
	}
  .footer-text {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 25px;
	}
	.footer-container {
    padding: 0 30px 20px;
	}
	.footer-contents-wrapper {
    flex-direction: column;
	}
	.footer-contact {
    font-size: 1.4rem;
    flex-direction: column;
	}
	.footer-links{
		margin-top: 32px;
	}
	.footer-links ul{
		list-style: none;
    padding-left: 24px!important;
	}
  .footer-links ul li::before{
    left: -3%;
  }
	.copyright{
		font-size: 1.4rem;
		margin: 0;
		padding: 10px 0;
	}
	.copyright-inner {
    padding: 0 10px;
    text-align: center;
  }
}

@media (max-width: 610px){
  .footer-links ul{
    padding-left: 20px;
  }
  .footer-links ul li::before{
    left: -6%;
  }
}


.sp-br{
  display: none;
}

.pc-none{
  display: none;
}

.sp-none{
  display: block;
}

@media(max-width:1000px){
  .sp-br{
    display: block;
  }
  .pc-none{
    display: block;
    margin: 0 auto;
  }
  .sp-none{
    display: none!important;
  }
}  



/*FV*/
.section-top-wrapper {
  margin: 0 calc(50% - 50vw) 0;
  position: relative;
}

.section-top {
  position: relative;
  margin: -174px auto 0;
  padding-top: 75px;
}

/* 画像を重ねるためのコンテナ */
.top-images-container {
  position: relative;
  width: 100%;
}

.top-images {
  height: auto;
  margin: 0 auto;
  margin-top: 5px; /* transformの代わり */
  position: relative;
}

.top-images-sp {
  display: none;
}

.top-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* キャッチコピー画像 */
.top-catchcopy {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 50%;
  z-index: 50; /* 画像と波の間 */
}

.top-catchcopy img {
  width: 100%;
  height: auto;
  display: block;
}
.wave-divider{
  transform: translateY(-60px);
}


/* レスポンシブ対応 */
@media screen and (max-width: 1000px) {
   .section-top {
    margin: -174px auto 0;
    padding-top: 60px;
  }
  .top-images {
    display: none;
  }
  .top-images-sp {
    display: block;
    margin-top: 40px;
  }
  .top-images-sp img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .top-catchcopy {
    position: absolute;
    left: 50%;
    top: 8%; /* 上部に配置 */
    transform: translateX(-50%); /* 横方向のみ中央揃え */
    width: 95%; /* 大きめに */
    max-width: 800px; /* 最大幅を指定 */
    z-index: 50;
    margin: 20px auto;
  }
  .sp-fv-button{
		background-color: #fff7d7;
		padding: 12px 15px;
		text-align:center;
	}
	.sp-fv-button a{
		display: block;
		margin-bottom: 10px;
	}
	.sp-fv-button a img{
		max-width: 340px;
    width: 100%;
	}
	.wave-divider {
    transform: translateY(-11px);
    margin: 0 -30px;
	}
}

/* さらに小さい画面用 */
@media screen and (max-width: 600px) {
  .top-catchcopy {
    top: 8%; /* より上に */
    width: 90%;
    max-width: 400px;
  }
}

/* 極小画面用 */
@media screen and (max-width: 400px) {
  .top-catchcopy {
    top: 8%;
    width: 90%;
  }
}

/* サイドボタン */
.fv-button__wrap {
  position: fixed;
  right: 0;
  top: 520px;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fv-button__wrap a {
  display: block;
  width: 80px;
  transition: transform 0.3s ease;
  transform: translateX(5px);
}

.fv-button__wrap a:hover {
  transform: translateX(0px);
}

.fv-button__wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
}

@media screen and (max-width: 768px) {
  .fv-button__wrap {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin: 20px auto;
    max-width: 90%;
    gap: 10px;
  }
  
  .fv-button__wrap a {
    flex: 1;
  }
  
  .fv-button__wrap img {
    width: 100%;
  }
}




/*導入セクション*/
#donyu {
  position: relative;
}

.donyu {
  background-color: #dff1f8;
  margin: -90px -30px 0;
  padding: 0px 30px 50px;
}

.donyu h2{
  max-width: 674px;
  text-align: center;
}

.donyu ul{
  max-width: 870px;
  margin: 35px auto 0;
}

.donyu ul li{
  display: flex;
  align-items: center;
  padding: 35px 0;
  border-bottom: solid 1px #000000;
  font-size: 3.8rem;
  font-weight: 700;
}

.donyu ul li span{
  background:linear-gradient(transparent 60%, #ffd000 60%);
}

.donyu ul li img{
  width: 50px;
  height: auto;
  margin: 0 40px 0 20px;
}


@media screen and (max-width: 1000px){
  .donyu{
		margin: 0 -30px;
		padding: 0;
	}
	.donyu img{
		max-width: 520px;
		width: 100%;
	}
	.donyu ul{
		margin: 7px auto 0;
		padding-left: 0;
		max-width: 500px;
	}
	.donyu ul li{
		padding: 13px 0;
		font-size: 1.6rem;
	}
	.donyu ul li img{
		width: 22px;
		margin: 0 15px;
	}
}



/*こんな悩みはありませんか？*/
.nayami{
  background-color: #afe6e6;
  margin: 0 -200px;
  padding-top: 50px;
  border-radius: 1500px 1500px 0 0 / 300px 300px 0 0;
}

.nayami-hatena1{
  position: relative;
}

/* はてなマーク - 左上 */
.nayami-hatena1::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 160px;
  top: 120px;
  left: -120px; 
  background-image: url("./assets/img/hatena.svg"); 
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(352deg);
}

/* はてなマーク - 右上 */
.nayami-hatena1::after {
  content: '';
  position: absolute;
  width: 155px;
  height: 220px;
  top: 80px;
  right: -150px; 
  background-image: url("./assets/img/hatena.svg");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(25deg);
}

.nayami-hatena2{
  position: relative;
}

/* はてなマーク - 左下 */
.nayami-hatena2::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 220px;
  bottom: 100px;
  left: -270px; 
  background-image: url("./assets/img/hatena.svg"); 
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(16deg);
}

/* はてなマーク - 右下 */
.nayami-hatena2::after {
  content: '';
  position: absolute;
  width: 115px;
  height: 170px;
  bottom: 120px;
  right: -200px; 
  background-image: url("./assets/img/hatena.svg");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(342deg);
}


.nayami h2{
  max-width: 616px;
  margin-bottom: 60px;
}

/* 悩みリストコンテナ */
.nayami-list {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* 各悩み項目の共通スタイル */
.nayami-item {
  background-color: #ffffff;
  border: 6px solid #7dc8c8;
  border-radius: 50px;
  padding: 20px 40px;
  margin-bottom: 60px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーション表示状態 */
.nayami-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nayami-item p {
  color: #0091af;
  font-weight: 700;
  font-size: 3.0rem;
  margin: 0;
  line-height: 1.6;
}

/* 右寄せ */
.nayami-item--right {
  float: right;
  clear: both;
  margin-right: 0;
}

/* 左寄せ */
.nayami-item--left {
  float: left;
  clear: both;
  margin-left: 0;
}

/* 中央寄せ */
.nayami-item--center {
  float: left;
  clear: both;
  margin-left: 100px; /* 左から少し離して配置 */
}

/* 各アイテムの時間差設定 */
.nayami-item:nth-child(1).is-visible {
  transition-delay: 0.2s;
}

.nayami-item:nth-child(2).is-visible {
  transition-delay: 0.5s;
}

.nayami-item:nth-child(3).is-visible {
  transition-delay: 0.8s;
}

.nayami-item:nth-child(4).is-visible {
  transition-delay: 1.1s;
}

/* みかんキャラクター */
.nayami-character {
  position: absolute;
  bottom: -119px;
  left: -75px;
  width: 190px;
  z-index: 10;
}

.nayami-character img {
  width: 100%;
  height: auto;
  display: block;
}

/* クリアフィックス */
.nayami-list::after {
  content: '';
  display: table;
  clear: both;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1000px){
	.nayami{
		margin: 0 -30px;
		padding: 0 0 40px;
	}
	.nayami h2 {
    max-width: 400px;
    margin-bottom: 25px;
}
	.nayami-item{
		text-align: center;
		border: 3px solid #7dc8c8;
	}
	.nayami-list{
		max-width: 540px;
	}
	.nayami-item p{
		font-size: 1.6rem;
	}
	.nayami-item--right, .nayami-item--left, .nayami-item--center{
		margin: 0 auto 10px;
	}
	.nayami-character{
    width: 70px;
    left: 10px;
    bottom: -58px;
	}
  .nayami-character img{
    width: 70%;
    height: auto;
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .nayami-item {
    max-width: 100%;
    padding: 15px 25px;
    font-size: 14px;
  }
  
  .nayami-item--right,
  .nayami-item--left,
  .nayami-item--center {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }
  
  .nayami-character {
    width: 100px;
    left: 20px;
  }
}

/*愛媛へのUターンに関するお悩み相談なら*/
.answer {
  background-color: #fff7d7;
  margin: 0 -30px;
  padding-bottom: 100px;
}

.answer h2{
  max-width: 1000px;
  margin-bottom: 50px;
}

/* アニメーション前の初期状態 */
.fade-in-anime {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* アニメーション発火後 */
.fade-in-anime.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 画像自体にもスムーズな表示 */
.fade-in-anime img {
  width: 100%;
  height: auto;
}

/* 遅延時間のバリエーション（必要に応じて使用） */
.fade-in-anime.delay-02.is-active {
  transition-delay: 0.2s;
}

.fade-in-anime.delay-04.is-active {
  transition-delay: 0.4s;
}

.fade-in-anime.delay-06.is-active {
  transition-delay: 0.6s;
}

@media (max-width: 1000px){
	.fade-in-anime img{
		max-width: 500px;
	}
}


.answer-contents{
  display: flex;
  column-gap: 50px;
  position: relative;
}

/* 文章の下のキラキラ（大） */
.answer-contents::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  bottom: -110px;
  right: 280px;
  background-image: url('./assets/img/kirakira-white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

/* 文章の下のキラキラ（小） */
.answer-contents::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  bottom: -140px;
  right: 200px;
  background-image: url('./assets/img/kirakira-white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

.answer-contents img{
  max-width: 490px;
  width: 100%;
  border-radius: 20px;
}

.answer-contents-text{
  margin-top: 36px;
  position: relative;
}

/* 右上のキラキラ */
.answer-contents-text::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  top: -90px;
  right: -160px;
  background-image: url("./assets/img/kirakira-white.svg"); 
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

.answer-contents-text h3{
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 30px;
}

.answer-contents-text p{
  font-size: 2.0rem;
  line-height: 2.0;
  font-weight: 600;
}

@media screen and (max-width: 1000px){
	.answer {
    padding: 0 15px 10px;
	}
	.answer-contents{
		max-width: 600px;
		margin: 0 auto;
		flex-direction: column;
	}
	.answer-contents img{
		margin: 0 auto;
		z-index: 2;
		max-width: 310px;
	}
	.answer-contents-text {
    margin-top: 20px;
	}
	.answer-contents-text h3 {
    font-size: 2.2rem;
    line-height: 1.5;
    margin-bottom: 13px;
	}
	.answer-contents-text p {
		position: relative;
    font-size: 1.6rem;
    line-height: 1.6;
		z-index: 2;
	}
	.answer-contents::before {
    width: 50px;
    height: 50px;
    bottom: 0;
    top: -40px;
    right: 60px;
	}
	.answer-contents-text::before {
    width: 60px;
    height: 60px;
    top: -280px;
    right: 6px;
    z-index: 1;
	}
	.answer-contents::after {
    width: 45px;
    height: 45px;
    bottom: 0px;
    right: 0px;
    left: -11px;
    z-index: 0;
	}
}

/*愛媛へのUターンに関するお悩み相談なら*/
.sodan {
  background-color: #fffaec;
  margin: 0 -30px;
  padding-top: 30px;
}

.sodan h2{
  max-width: 1000px;
  margin-bottom: 5px;
}

.h2-contents{
  position: relative;
  font-size: 3.2rem;
  color: #ffffff;
  line-height: 1.8;
  padding: 30px 0;
  border-radius: 120px;
  background-color: #f7931e;
  text-align: center;
  font-weight: 600;
  max-width: 850px;
  margin: 10px auto 80px;
}

.h2-contents::after{
  position: absolute;
  content: "";
  bottom: -20px; /* 三角形の高さに合わせて調整 */
  left: 50%; /* 中央配置 */
  transform: translateX(-50%); /* 中央揃え */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 28px 20px 0 20px; /* 上 右 下 左 */
  border-color: #f7931e transparent transparent transparent;
}

.sodan-contents{
  display: flex;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 20px;
  column-gap: 50px;
  align-items: center;
  margin: 0 auto 50px;
  max-width: 900px;
}

.sodan-contents:first-of-type{
  margin-bottom: 50px;
}

.sodan-contents h3{
  font-size: 3.6rem;
  line-height: 1.3;
  margin-bottom: 40px;
}

.sodan-contents h3 span{
  background: linear-gradient(transparent 60%, #ffd000 60%);
}

.sodan-contents img{
  max-width: 350px;
  width: 100%;
  border-radius: 35px;
}

.sodan-contents-text p{
  position: relative;
  font-size: 1.8rem;
  line-height: 2.0;
  font-weight: 600;
}

.sodan-contents-text p:after{
  content: '';
  position: absolute;
  width: 65px;
  height: 65px;
  bottom: -75px;
  left: -40px;
  background-image: url(./assets/img/kirakira-orange.svg);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

.sodan-contents-text-1{
  position: relative;
  padding-left: 40px;
}

.sodan-contents-text-1:before{
  content: '';
  position: absolute;
  width: 105px;
  height: 105px;
  top: -55px;
  right: -20px;
  background-image: url(./assets/img/kirakira-orange-2.svg);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  transform: rotateY(180deg);
}

.sodan-contents-text-2{
  position: relative;
  padding-right: 40px;
}

.sodan-contents-text-2:before{
  content: '';
  position: absolute;
  width: 105px;
  height: 105px;
  top: -55px;
  right: 20px;
  background-image: url(./assets/img/kirakira-orange-2.svg);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}

@media screen and (max-width: 1000px){
	.sodan {
    padding: 0 15px;
	}
	.sodan-contents-1{
		flex-direction: column-reverse;
	}
	.sodan-contents-2{
		flex-direction: column;
	}
	.sodan-contents img{
    border-radius: 15px;
	}
	.sodan-contents {
    border-radius: 20px;
    padding: 15px;
    margin: 0 auto 30px;
		row-gap: 20px;
	}
	.sodan-contents h3{
    font-size: 1.8rem;
		margin-bottom: 15px;
	}
	.sodan-contents-text-1{
    padding-left: 0;
		max-width: 555px;
	}
	.sodan-contents-text-2{
    padding-right: 0;
	}
	.sodan-contents-text p {
    font-size: 1.4rem;
    line-height: 1.5;
	}
	.sodan-contents-text p:after{
		display: none;
	}
	.sodan-contents-text-1:before {
    width: 45px;
    height: 45px;
    top: -12px;
    right: 20px;
	}
	.sodan-contents-text-2:before{
    width: 50px;
    height: 45px;
    top: -5px;
    right: 15px;
	}
}

/*ご相談予約受付中！*/
.yoyaku {
  background-image: repeating-linear-gradient(45deg, #f39800, #f39800 20px, #f5a200 20px, #f5a200 40px);;
  margin: 0 -30px;
  padding: 125px 0;
  text-align: center;
}

.yoyaku-background{
  position: relative;
  background-color: #ffffff;
  border-radius: 30px;
  padding: 70px 0 40px;
}

.yoyaku-background::before{
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: 210px; 
  height: 210px; 
  background-image: url("./assets/img/sodanmuryo-circle.png");
  background-size: cover; /* 画像を枠に合わせる */
  background-position: center;
  transform: translate(25%, -25%); /* 右上にはみ出させる場合 */
}

.yoyaku h2{
  max-width: 500px;
  margin-bottom: 40px;
}

.yoyaku p{
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.8;
}

.yoyaku-button{
  display: flex;
  justify-content: center;
  column-gap: 40px;
  margin: 45px 0 40px;
}

.yoyaku-button img{
  max-width: 420px;
}

.yoyaku-button img:hover{
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

@media screen and (max-width: 1000px){
	.yoyaku{
		padding: 60px 0 50px;
	}
	.yoyaku h2 {
    max-width: 220px;
    margin: 25px auto 15px;
	}
	.yoyaku-background{
		margin: 0 15px;
		border-radius: 15px;
    padding: 20px 24px 20px;
	}
	.yoyaku-background::before {
    width: 70px;
    height: 70px;
    transform: translate(-30%, -50%);
	}
	.yoyaku p{
		font-size: 1.4rem;
	}
	.yoyaku-button {
    row-gap: 10px;
    margin: 20px 0 20px;
    flex-direction: column;
		align-items: center;
	}
	.yoyaku-button img{
		max-width: 340px;
    width: 100%;
	}
}

/*お知らせ*/
#event-oshirase{
  background-color: #ffffff;
}

.event-oshirase {
  padding: 100px 0 30px;
}

.event-oshirase h2{
  max-width: 530px;
  margin-bottom: 45px;
}

.event-oshirase-text{
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 45px;
}

.oshirase-itiran{
  text-align: center;
  margin-bottom: 100px;
}

.oshirase-button img{
  max-width: 450px;
  width: 100%;
}

.oshirase-itiran a img:hover{
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.sns-joho{
  text-align: center;
  border-radius: 30px;
  border: solid 7px #64c31f;
  padding: 40px 0 10px;
  margin-bottom: 120px;
}

.sns-joho h3 img{
  max-width: 380px;
}

.sns-joho h3{
  margin-bottom: 35px;
}

.sns-joho-contents{
  display: flex;
  justify-content: center;
  column-gap: 30px;
  text-align: left;
  margin-bottom: 50px;
}

.sns-button:hover{
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.sns-joho-contents-text{
  width: 550px;
}

.sns-joho-contents img{
  max-width: 180px;
  width: 100%;
}

.sns-joho-contents h4{
  font-size: 3.0rem;
  line-height: 1.3;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: solid 3px #64c31f;
}

.sns-joho-contents p{
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.taimen{
  text-align: center;
  background-color: #64c31f;
  border-radius: 30px;
  margin-bottom: 30px;
}

.taimen-contents{
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.taimen h3{
  font-size: 3.6rem;
  font-weight: 700;
  background-color: #ffffff;
  border-radius: 50px;
  padding: 20px 0;
  border: solid 6px #64c31f;
  max-width: 580px;
  margin:  0 auto;
  transform: translateY(-30px);
}

.taimen p{
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.6;
}

.shiten1{
  display: flex;
  text-align: left;
  margin-top: 50px;
  padding-top: 45px;
  border-top: solid 2px #ffffff;
}

.shiten1 h4{
  font-size: 2.6rem;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 15px;
}

.shiten1 span{
  position: relative;
  display: inline-block;
  width: 35px;
  height: 35px;
  margin-right: 15px;
  vertical-align: middle;
}

.shiten1 span::before{
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  top: -4px;
  left: 0;
}

.taimen-contents-h4-wrapper{
  margin-top: 10px;
}

.shiten1 address p{
  font-style: normal;
  font-size: 1.8rem;
}

@media screen and (max-width: 1000px){
	#event-oshirase{
		margin: 0 -30px;
	}
	.oshirase-itiran {
    margin-bottom: 40px;
		padding: 0 15px;
	}
	.event-oshirase{
		padding: 45px 15px 30px;
	}
	.event-oshirase-text {
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    margin: 0 auto 30px;
	}
	.display-posts-listing {
		flex-direction: column;
		row-gap: 15px;
		padding-left: 0;
		margin-bottom: 35px;
	}

	.sns-joho {
    border-radius: 20px;
    border: solid 3px #64c31f;
    padding: 20px 25px 10px;
		margin-bottom: 80px;
	}
	.sns-joho h3 img {
    max-width: 232px;
	}
	.sns-joho-contents {
    row-gap: 18px;
    margin-bottom: 35px;
    flex-direction: column;
	}
	.sns-joho-contents img{
		max-width: 280px;
	}
	.sns-joho-contents h4 {
    font-size: 1.6rem;
    padding-bottom: 15px;
    margin-bottom: 15px;
	}
	.sns-joho-contents-text {
    width: 100%;
	}
	.sns-joho-contents p {
    font-size: 1.6rem;
	}
	.taimen h3 {
    font-size: 1.6rem;
    padding: 12px 0;
    border: solid 3px #64c31f;
    max-width: 250px;
	}
	.taimen {
    text-align: center;
    background-color: #64c31f;
    border-radius: 16px;
    padding: 0 15px;
    margin-bottom: 30px;
	}
	.taimen p {
    font-size: 1.4rem;
	}
	.shiten1 {
    margin-top: 34px;
    padding-top: 25px;
    border-top: solid 1px #ffffff;
	}
	.shiten1 h4 {
    font-size: 1.6rem;
    margin-bottom: 9px;
	}
	.shiten1 span::before {
    width: 20px;
    height: 20px;
    top: 3px;
    left: 13px;
	}
	.taimen-contents-h4-wrapper{
		margin-top: 0;
		transform: translateX(-10px);
	}
	.shiten1 address p {
    font-size: 1.4rem;
	}
	.taimen-contents {
    padding-bottom: 40px;
	}
	.map iframe{
		height: 20%;
	}
}

/* バナースライダーセクション */
.banner-slider {
  background-color: #ffffff;
  padding: 60px 0 130px;
}

.slider-container {
  position: relative;
  max-width: 860px; /* 740px + 矢印スペース120px */
  margin: 0 auto;
  padding: 0 60px; /* 矢印のスペース */
}

.slider-wrapper {
  overflow: hidden;
  width: 740px; /* 正確に3つ分 (220×3 + 40×2) */
  max-width: 100%;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  gap: 40px;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  border: solid 1px #000000;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-link {
  display: block;
  transition: opacity 0.3s;
}

.banner-link:hover {
  opacity: 0.8;
}

/* 矢印ボタン */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 50px;
  height: 70px;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.slider-arrow svg {
  width: 20px;
  height: 50px;
}

.slider-arrow.prev {
  left: 5px;
}

.slider-arrow.next {
  right: 5px;
}

.slider-arrow:hover {
  opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 1000px) {
	.banner-slider {
		padding: 40px 15px;
		margin: 0 -30px;
	}
}

@media (max-width: 860px) {
  .slider-container {
    max-width: 580px; /* 480px + 矢印スペース100px */
    padding: 0 50px;
  }

  .slider-wrapper {
    width: 480px; /* 2つ表示 (220×2 + 40×1) */
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .banner-slider {
    padding: 40px 0;
  }
}

@media (max-width: 600px) {
  .slider-container {
    max-width: 490px; /* 400px + 矢印スペース90px */
    padding: 0 45px;
  }

  .slider-wrapper {
    width: 400px; /* 2つ表示（小さいサイズ 180×2 + 40×1） */
  }

  .slide {
    min-width: 180px;
    max-width: 180px;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 1.8rem;
  }
}

@media (max-width: 490px) {
  .slider-container {
    padding: 0 40px;
  }

  .slider-wrapper {
    width: 100%;
    max-width: 400px;
  }
}

/* SP時は1つのみ表示 */
@media (max-width: 480px) {
  .slider-container {
    padding: 0 35px;
  }
  .slider-wrapper {
    width: 100%;
    max-width: 220px; /* バナー1つ分の幅 */
  }
  .slide {
    min-width: 220px;
    max-width: 220px;
  }
  
  .slider-arrow {
    width: 30px;
    height: 30px;
  }
  .slider-arrow.prev {
    left: 0;
  }
  .slider-arrow.next {
    right: 0;
  }
}

/* さらに小さい画面用（オプション） */
@media (max-width: 360px) {
  .slider-container {
    padding: 0 30px;
  }
  .slider-wrapper {
    max-width: 200px;
  }
  .slide {
    min-width: 200px;
    max-width: 200px;
  }
}



.page-top {
  position: fixed;
  right: 6%;
  bottom: 110px;
  display: flex;
  flex-direction: row; /* 横並びに変更 */
  align-items: center;
  gap: 15px; /* 丸とテキストの間隔 */
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.page-top.show {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  transform: translateY(-5px);
}

/* 丸の部分 */
.page-top-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background-color: #f8b62d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* 縮小しないように */
}

/* 矢印（山形の線） */
.page-top-icon span {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border-top: 6px solid #fff;
  border-right: 6px solid #fff;
  transform: rotate(-45deg);
  margin-top: 8px; /* 少し下にずらして中央に見せる */
}

/* PAGE TOP画像 */
.page-top-text {
  display: block;
  line-height: 1;
}

.page-top-text img {
  width: auto;
  height: 30px; /* 高さを指定 */
  display: block;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .page-top {
    right: 15px;
    bottom: 15px;
    gap: 10px;
  }
  
  .page-top-icon {
    width: 45px;
    height: 45px;
  }
  
  .page-top-icon span {
    width: 15px;
    height: 15px;
    border-top: 2.5px solid #fff;
    border-right: 2.5px solid #fff;
  }
  
  .page-top-text img {
    height: 24px;
  }
}

.wrap{
  width: 100%!important;
}


/*ブログ部分スタイル*/
.display-posts-listing{
	display:flex;
	column-gap: 40px;
	margin-bottom: 70px;
  padding-left: 0;
}

.listing-item{
	display:flex;
	flex-direction: column;
  background-color: #fff;
	border-radius: 20px;
  border: solid 1.5px #231815;
	height: 420px;
  width: 33.33%;
}

.title{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* ← ここが「2行まで」の指定 */
  overflow: hidden;
	font-size: 22px;
	text-decoration: none;
	color:#333;
	font-weight: 700;
	text-align: left;
	margin: 30px 25px 20px;
  line-height: 1.4;
}

.title:hover{
	color:#333;
}

.excerpt{
	padding: 0 25px 20px;
	flex-grow: 1;
	order: 1;
	margin-top: 0;
  text-align: left;
  font-size: 1.6rem;
}

.excerpt p{
	font-size: 16px;
}

.excerpt-dash{
	display: none;
}

.page-id-5 .date{
	font-size: 14px;
	color: #ee7700;
	padding: 0 25px 20px; 
	order: 2; 
  text-align: left;
}

.image img{
	width: 100%;
	height: 195px;
	object-fit:cover;
	border-radius: 5px 5px 0 0;
}

/* リスト項目のホバーエフェクト */
.listing-item {
  overflow: hidden; 
}

.listing-item .image {
  display: block;
  overflow: hidden; 
}

.listing-item .image img {
  transition: transform 0.3s ease; 
  transform-origin: center center; 
}

.listing-item:hover .image img {
  transform: scale(1.08); 
}

@media screen and (max-width: 1000px) {
	.listing-item{
		width: 100%;
	}
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
	.display-posts-listing {
		flex-direction: column;
		row-gap: 15px;
		column-gap: 0;
	}
}


.breadcrumb{
	margin: 80px auto 10px;
  color: #333333;
  max-width: 1000px;
  font-size: 1.5rem;
}

.article{
	max-width: 1000px;
  margin: 0 auto;
}

.article-header {
	display: flex;
  flex-direction: column;
  text-align: center;
  position: static;
  box-shadow: 0 0 0 100vw #64c31f;
  clip-path: inset(0 -100vw);
  background-color: #64c31f;
  color: #ffffff;
  padding: 30px 0;
	margin-bottom: 60px;
}

.article h1 {
    display: flex;
    flex-direction: column;
}

.article h1 .subtitle {
    font-size: 3.4rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.article-header h1{
	font-size: 5.2rem;
}

.date-tags{
	display: none;
}

.article h2{
	font-size: 3.5rem;
	padding: 0 0 23px 0; 
	color: #64c31f;
	margin-bottom: 40px;
	position: relative;
  background: linear-gradient(to right, #64c31f 10%, #ebffe1 10%);
  background-size: 100% 6px;
  background-position: bottom;
  background-repeat: no-repeat;
}

.article p{
	font-size: 1.6rem;
}

.article h3{
	border-left: 7px solid #64c31f;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
  font-size: 3.0rem;
	color: #64c31f;
}

.wp-block-image img{
	border-radius: 20px;
}

.wp-block-columns-is-layout-flex{
	column-gap: 50px;
}

.article h4{
	color: #64c31f;
	font-size: 2.0rem;
	border-top: 0;
	padding: 0 0 10px 0;
	border-bottom: 2px solid  #64c31f;
}

.article h5 {
  color: #64c31f;
  font-size: 1.8rem;
  border-top: 0;
  border-bottom: 0;
  padding: 0;
  padding-left: 20px; 
  position: relative;
}

.article h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; /* 正方形のサイズ */
  height: 15px;
  background-color: #64c31f;
}

.article table:not(.has-border-color) :where(th, td){
	border: 1px solid #64c31f;
}

.article table tr:nth-of-type(2n+1){
	background-color: #ffffff;
}

.article table tr td:first-child{
	color: #64c31f;
	font-weight: 600;
	padding: 30px;
	width: 25%;
}

.article table tr td:last-child{
	padding: 30px;
}

.article ul li, .article ol li{
	position: relative;
}

.article ul li::marker, .article ol li::marker{
	color: #64c31f;
}

.article a:where(:not(.wp-element-button)){
	color: #008dd3;
	text-decoration: none;
}

.article p a:hover{
	text-decoration: underline;
}

.article p a:visited{
	color: #c1004a;
}

.wp-block-button__link {
  background-color: #64c31f;
  border-radius: 10px;
  font-weight: 600;
  padding: 15px 50px;
  padding-right: 70px; /* 矢印のスペースを確保 */
  box-shadow: 0 6px 0 0 #22ac38;
  transition: all 0.15s ease;
  position: relative;
  top: 0;
}

.wp-block-button__link::after {
  content: '';
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  border-top: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
}

.wp-block-button__link:hover {
  box-shadow: 0 3px 0 0 #22ac38;
  top: 3px;
	color: #ffffff;
}

.wp-block-button__link:active {
  box-shadow: 0 1px 0 0 #22ac38;
  top: 5px;
}

.article .wp-block-button__link a:hover {
	text-decoration: none!important;
}

.blank-box{
	border: none;
	background-color: #ebffe1;
	border-radius: 20px;
	padding: 50px;
}
.blank-box .wp-block-heading{
	color: #333333;
	font-size: 2.0rem;
}

/* 外部リンクにアイコンを追加 */
.article a[href^="http"]:not([href*="ehime-u-turn.pref.ehime.jp"])::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  background-image: url("./assets/img/gaibulink.png");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}


@media screen and (max-width: 1000px){
	.breadcrumb{
		margin: 50px auto 10px;
	}
	.article-header{
		margin-bottom: 30px;
	}
  .article-header h1 {
    font-size: 3.2rem;
    padding: 0;
  }

  .article h1 .subtitle {
    font-size: 1.8rem;
  }
	.article h2{
		font-size: 2.5rem;
		margin-bottom: 30px;
	}
	.article h3{
		font-size: 2.2rem;
		padding: 6px 10px;
		margin-bottom: 25px;
	}
	.blank-box {
    border-radius: 15px;
    padding: 30px;
  }
	.blank-box .wp-block-heading{
		margin-bottom: 15px;
	}
	.article table tr td:first-child {
    padding: 10px 20px;
    width: 30%;
		vertical-align: top;
  }
	.article table tr td:last-child {
    padding: 10px 20px;
  }
	.wp-block-button{
		margin: 0 auto!important;
		max-width: 350px;
		width: 100%;
	}
	.wp-block-image img{
		margin: 0 auto;
	}
}

@media screen and (max-width: 480px){
  .breadcrumb{
    margin: 20px auto 10px;
  }
}

.cat-label{
	display: none;
}


.content{
  margin-top: 90px;
}

.single-post .content{
    margin-top: 30px;
  }

@media screen and (max-width: 834px){
  .content{
    margin-top: 70px;
  }
  .single-post .content{
    margin-top: 20px;
  }
}





/*お知らせ一覧*/

.blog .content{
  margin: 120px auto 0;
  max-width: 1000px;
}

@media screen and (max-width: 1000px){
  .blog .content{
  margin: 100px auto 0;
  }
}

@media screen and (max-width: 480px){
  .blog .content{
  margin: 50px auto 0;
  }
}

























