@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 {
  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 -15px;
    padding: 0 15px;
  }

  .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 {
  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: 1.6rem;
  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: 11rem;
  }

  .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: 10rem;
  }

  .open-btn {
    width: 35px;
    height: 35px;
  }

  .open-btn span {
    height: 2.5px;
  }
}

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

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

.yoyaku-section {
  scroll-margin-top: 0px;
}


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

@media(max-width:1000px) {
  .section-wrapper {
    padding: 20px 30px 30px;
  }

  .header-logo-sp {
    width: 72px;
    height: auto;
    margin-right: 37px;
  }
}

/* ======================
   共通部分
   ====================== */

h2 {
  margin: 0 auto;
}


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

/* フッター全体 */
.footer {
  background-color: #fdeccf;
  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;
  line-height: 1.3;
}

.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;
}

.font-size-small{
  font-size: 1.4rem;
}

/* ======================
   レスポンシブ対応
   ====================== */
@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: -107px auto 0;
}

/* 画像を重ねるためのコンテナ */
.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: -114px auto 0;
  }

  .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: #cce0f4;
    padding: 0px 15px 5px;
    text-align: center;
  }

  .sp-fv-button a {
    display: block;
    margin-bottom: 10px;
  }

  .sp-fv-button a img {
    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-image: linear-gradient(#ffffff, #fce5be);
  margin: -90px -30px 0;
  padding: 0px 30px 50px;
  text-align: center;
}

.donyu h2 {
  line-height: 1.4;
  font-size: 5rem;
  color: #0071bc;
  font-weight: 600;
}

.donyu h2 span {
  color: #f39800;
}

.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: 600;
}

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

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

.donyu .donyu-text {
  margin: 90px auto;
  max-width: 870px;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 2.2;
}

@media screen and (max-width: 1000px) {
  .donyu {
    margin: 0 -30px;
    padding: 0 15px;
  }

  .donyu h2 {
    font-size: 1.8rem;
  }

  .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;
    text-align: left;
  }

  .donyu ul li img {
    width: 22px;
    margin: 0 15px;
  }

  .donyu .donyu-text {
    margin: 30px auto 50px;
    max-width: 870px;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8;
  }
}



/*こんな悩みはありませんか？*/
.nayami {
  background-color: #cce0f4;
}

.nayami .section-wrapper {
  padding: 90px 50px 0px;
}

.nayami h2 {
  margin-bottom: 70px;
  text-align: center;
  font-size: 5rem;
  color: #036eb8;
  font-weight: 600;
}

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

/* 各悩み項目の共通スタイル */
.nayami-item {
  background-color: #ffffff;
  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 {
  font-weight: 500;
  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-list::after {
  content: '';
  display: table;
  clear: both;
}

.nayami-character {
  margin: 0 auto;
  width: 733px;
  z-index: 10;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1000px) {
  .nayami {
    margin: 0 -30px;
  }

  .nayami .section-wrapper {
    padding: 40px 15px 0px;
  }

  .nayami h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
  }

  .nayami-item {
    text-align: center;
  }

  .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 {
    left: 10px;
    bottom: -58px;
  }

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

@media screen and (max-width: 768px) {
  .nayami-item {
    max-width: 100%;
    padding: 15px 25px;
    font-size: 14rem;
  }

  .nayami-item--right,
  .nayami-item--left,
  .nayami-item--center {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }

  .nayami-character {
    width: 80%;
    left: 20px;
  }
}

/*愛媛へのUターンに関するお悩み相談なら*/
.answer-sodan-wrap {
  position: relative;
  overflow: hidden;
}

@media(max-width:1000px) {
  .answer-sodan-wrap {
    margin: 0 -30px;
  }
}

.answer {
  padding-bottom: 50px;
}

/* ===================================
   帯デコレーション共通
   ・各セクションの内側 div (answer/sodan) を包括ブロックにする
   ・deco は section-wrapper より DOM順が前 → 自然にコンテンツが上に重なる
=================================== */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  max-inline-size: none;
  /* reset.css の max-inline-size:100% を無効化 */
  max-block-size: none;
}

/* answer 左上：line3（青＋金の並列2本）
   ※ answer と sodan は隣接するため、上側 (answer) は上辺付近に配置 */
.deco-answer-l {
  width: 767px;
  top: 160px;
  left: -190px;
}

/* answer 右上：line2（金の単体帯） */
.deco-answer-r {
  width: 1533px;
  top: 600px;
  right: -270px;
}

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

/* アニメーション前の初期状態 */
.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 img {
  max-width: 490px;
  width: 100%;
  border-radius: 20px;
}

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


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

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

@media screen and (max-width: 1000px) {

  .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;
    font-weight: 500;
  }

  .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 {
  margin: 0 -30px;
  padding-top: 30px;
  position: relative;
  overflow: hidden;
}

/* sodan 左下：line4（金大＋青小の重なり）
   ※ sodan は answer の直下のため、下辺付近に配置してセクション境界を回避 */
.deco-sodan-l {
  width: 1015px;
  bottom: -2px;
  left: -360px;
}

/* sodan 右下：line1（青上＋金下の複合） */
.deco-sodan-r {
  width: 1442px;
  bottom: -450px;
  right: -550px;
}

.sodan h2,
.event-oshirase h2 {
  font-weight: 500;
  line-height: 1.6;
  max-width: 853px;
  background-color: #036eb8;
}

.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: #0071bc 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;
  border: solid 3px #036eb8;
}

.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::after {
  content: '';
  display: block;
  height: 8px;
  background: linear-gradient(to right, #f39800, transparent);
  margin-top: 10px;
  border-radius: 2px;
}

.sodan-contents h3 span {
  background: none;
}

.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-1 {
  padding-left: 40px;
}

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

@media screen and (max-width: 1000px) {
  .sodan {
    padding: 0 15px;
  }

  .sodan h2,
  .event-oshirase h2 {
    font-weight: 500;
    line-height: 1.4;
    width: 100%;
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .h2-contents {
    padding: 18px 0;
  }

  .sodan-contents-1 {
    flex-direction: column-reverse;
  }

  .sodan-contents-2 {
    flex-direction: column;
  }

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

  .sodan-contents img {
    border-radius: 15px;
  }

  .sodan-contents {
    border-radius: 20px;
    padding: 15px 15px 40px;
    margin: 0 auto 60px;
    row-gap: 20px;
  }

  .sodan-contents h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .sodan-contents h3::after {
    height: 3px;
  }

  .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;
  }

}

/* タブレット（501px〜1000px）：帯を中間サイズに */
@media screen and (min-width: 501px) and (max-width: 1000px) {
  .deco-answer-l {
    width: 500px;
    top: 100px;
    left: -130px;
  }

  .deco-answer-r {
    width: 900px;
    top: 500px;
    right: -250px;
  }

  .deco-sodan-l {
    width: 600px;
    bottom: 20px;
    left: -200px;
  }

  .deco-sodan-r {
    width: 800px;
    bottom: -200px;
    right: -300px;
  }
}

/* スマホ（〜500px）：帯を最小サイズに */
@media screen and (max-width: 500px) {
  .deco-answer-l {
    width: 220px;
    top: 20px;
    right: 160px;
  }

  .deco-answer-r {
    width: 620px;
    top: 620px;
    right: -278px;
  }

  .deco-sodan-l {
    width: 470px;
    bottom: 60px;
    left: -120px;
  }

  .deco-sodan-r {
    width: 470px;
    bottom: -130px;
    right: -190px;
  }
}

/*ご相談予約受付中！*/
.yoyaku {
  background-color: #fdeccf;
  margin: 0 -30px;
  padding: 250px 0;
  text-align: center;
}

.yoyaku-background {
  position: relative;
  background-color: #ffffff;
  border: solid 3px #036eb8;
  border-radius: 30px;
  padding: 80px 0;
}

.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 {
  font-size: 5.5rem;
  margin-bottom: 60px;
  font-weight: 500;
}

.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 0px;
}

.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: 90px 0 90px;
  }

  .yoyaku h2 {
    font-size: 2.2rem;
    font-weight: 600;

    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;
    margin-bottom: 5px;
  }

  .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 15px 30px;
}

.event-oshirase h2 {
  padding: 45px 0;
  font-size: 5rem;
  font-weight: 400;
}

.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: 283px;
}

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

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

.sns-joho {
  margin-bottom: 300px;
}

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

.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 #000000;
}

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

.taimen,
.sns-joho {
  text-align: center;
  border: solid 6px #0071bc;
  background-color: #ffffff;
  border-radius: 30px;
}

.taimen {
  margin-bottom: 50px;
}

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

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

.taimen p {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.6;
}

.taimen-text {
  margin: 20px auto;
}

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

.shiten1 h4 {
  font-size: 2.6rem;
  font-weight: 600;
  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: #f8b62d;
  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) {

  .sodan h2,
  .event-oshirase h2 {
    font-weight: 500;
    line-height: 1.4;
    width: 100%;
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

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

  .oshirase-itiran {
    margin-bottom: 140px;
  }

  .event-oshirase-text {
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    margin: 0 auto 30px;
  }

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

  .display-posts-listing {
    flex-direction: column;
    row-gap: 15px;
    padding-left: 0;
    margin-bottom: 35px;
  }

  .sns-joho {
    border-radius: 20px;
    border: solid 3px #0071bc;
    padding: 0px 25px 10px;
    margin-bottom: 100px;
  }

  .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: 320px;
  }

  .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,
  .sns-joho h3 {
    font-size: 2rem;
    padding: 12px 0;
    border: solid 3px #0071bc;
    max-width: 250px;
  }

  .taimen {
    text-align: center;
    border-radius: 16px;
    padding: 0 15px;
    margin-bottom: 30px;
    border: solid 3px #0071bc;
  }

  .taimen p {
    font-size: 1.4rem;
  }

  .taimen-text {
    margin: 0 auto;
  }

  .shiten1 {
    margin-top: 34px;
    padding-top: 25px;
    border-top: solid 2px #000000;
  }

  .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%;
  }
}

/* event-oshirase〜banner-sliderをまたぐ帯デコレーション */
.event-banner-wrap {
  position: relative;
  overflow: hidden;
}

@media(max-width:1000px) {
  .event-banner-wrap {
    margin: 0 -30px;
  }
}

/* line5：左上スタート */
.deco-event-1 {
  width: 780px;
  top: -60px;
  left: -323px;
}

/* line6：右上〜中（ジグザグ右） */
.deco-event-2 {
  width: 1200px;
  top: 490px;
  right: -260px;
}

/* line7：左中（ジグザグ左） */
.deco-event-3 {
  width: 780px;
  top: 1250px;
  left: -220px;
}

/* line8：右中〜下（ジグザグ右） */
.deco-event-4 {
  width: 860px;
  bottom: 800px;
  right: -70px;
}

/* line9：左下（ジグザグ左） */
.deco-event-5 {
  width: 700px;
  bottom: 0px;
  left: -190px;
}

/* line1-sp：SP専用 */
.deco-event-6 {
  display: none;
  /* PC時は非表示 */
}

/* タブレット（501px〜1000px）：帯を中間サイズに */
@media screen and (min-width: 501px) and (max-width: 1000px) {

  /* line5：左上 */
  .deco-event-1 {
    width: 500px;
    top: -40px;
    left: -200px;
  }

  /* line6：右上〜中 */
  .deco-event-2 {
    width: 700px;
    top: 400px;
    right: -180px;
  }

  /* line7：左中 */
  .deco-event-3 {
    width: 500px;
    top: 900px;
    left: -150px;
  }

  /* line8：右中〜下 */
  .deco-event-4 {
    width: 550px;
    bottom: 600px;
    right: -100px;
  }

  /* line9：左下 */
  .deco-event-5 {
    width: 450px;
    bottom: 50px;
    left: -130px;
  }

  /* line1-sp：タブレット */
  .deco-event-6 {
    display: block;
    width: 500px;
    bottom: 10px;
    left: -190px;
  }
}

/* スマホ（〜500px）：帯を最小サイズに */
@media screen and (max-width: 500px) {

  /* line5：左上 */
  .deco-event-1 {
    width: 300px;
    top: -130px;
    left: -90px;
  }

  /* line6：右上〜中 */
  .deco-event-2 {
    width: 450px;
    top: 1730px;
    right: 0px;
    left: -190px;
  }

  /* line7：左中 */
  .deco-event-3 {
    width: 240px;
    top: 1680px;
    left: 220px;
  }

  /* line8：右中〜下 */
  .deco-event-4 {
    width: 350px;
    bottom: 400px;
    right: -80px;
  }

  /* line9：左下 */
  .deco-event-5 {
    width: 300px;
    bottom: 480px;
    left: -150px;
  }

  /* line1-sp：スマホ */
  .deco-event-6 {
    display: block;
    width: 500px;
    bottom: 10px;
    left: -190px;
  }
}

/* バナースライダーセクション */
.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;
    /* event-banner-wrap が margin: 0 -15px で full幅を確保しているため不要 */
  }
}

@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;
  }

  .slider-arrow svg {
    width: 15px;
    height: 35px;
  }
}

@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;
  }

  .slider-arrow svg {
    width: 13px;
    height: 28px;
  }
}

@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 svg {
    width: 12px;
    height: 24px;
  }

  .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: 65px;
  height: 65px;
  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: 25px;
  height: 25px;
  border-top: 4px solid #fff;
  border-right: 4px solid #fff;
  transform: rotate(-45deg);
  margin-top: 8px;
  /* 少し下にずらして中央に見せる */
}

/* PAGE TOP画像 */
.page-top-text {
  font-size: 2.2rem;
  font-weight: 500;
  color: #f8b62d;
}

.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 3px #0071bc;
  height: 420px;
  width: 33.33%;
}

.title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* ← ここが「2行まで」の指定 */
  overflow: hidden;
  font-size: 2.2rem;
  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: 16rem;
}

.excerpt-dash {
  display: none;
}

.page-id-5 .date {
  font-size: 1.4rem;
  color: #0071bc;
  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;
    margin-bottom: 40px;
  }
}


.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 #fdeccf;
  clip-path: inset(0 -100vw);
  background-color: #fdeccf;
  color: #f7931e;
  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: #f7931e;
  margin-bottom: 40px;
  position: relative;
  background: linear-gradient(to right, #f7931e 10%, #fdeccf 10%);
  background-size: 100% 6px;
  background-position: bottom;
  background-repeat: no-repeat;
}

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

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

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

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

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

.article h5 {
  color: #f7931e;
  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: #f7931e;
}

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

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

.article table tr td:first-child {
  color: #f7931e;
  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: #f7931e;
}

.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: #f7931e;
  border-radius: 10px;
  font-weight: 600;
  padding: 15px 50px;
  box-shadow: 0 6px 0 0 #f15a24;
  transition: all 0.15s ease;
  position: relative;
  top: 0;
}

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

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

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

.blank-box {
  border: none;
  background-color: #fdeccf;
  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;
  }
}

body .is-layout-flex {
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 600px) {
  .wp-block-media-text>.wp-block-media-text__content {
    padding: 8% 0!important;
  }

  .wp-block-group-is-layout-flex{
    margin-bottom: 0px!important;
  }

  .wp-block-image{
    margin-bottom: 20px!important;
  }
}

/* ==================================================
   メディアとテキストブロック SP時の表示順制御
   Gutenbergのデフォルトは600px以下でしか縦積みしないため
   1000px以下でも1カラムに変更し、表示順を制御する
================================================== */
@media screen and (max-width: 1000px) {
  /* 1000px〜600pxでも1カラムに縦積み */
  .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 1fr !important;
  }

  /* 縦積み時はpaddingをリセット */
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    padding: 0 !important;
  }

  /* ②通常（画像左・テキスト右）：画像上・テキスト下 */
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 20px;
  }

  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
  }

  /* ①has-media-on-the-right（テキスト左・画像右）：テキスト上・画像下 */
  .wp-block-media-text.has-media-on-the-right.is-stacked-on-mobile .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 1;
  }

  .wp-block-media-text.has-media-on-the-right.is-stacked-on-mobile .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 2;
  }

  .is-stacked-on-mobile{
    margin-bottom: 0px!important;
  }
}