@media screen and (min-width: 48em) {
    .wrap {
        max-width: 100%; /* 全幅に設定 */
        padding-left: 20px;
        padding-right: 20px;
    }
}


img {
	filter: drop-shadow(5px 5px 5px #aaa);
}

.slide-box img {
	filter: drop-shadow(0px 0px 0px #aaa);
}

.slide-box ul{
	padding-left: 20px;
}
.wrap {
	padding-top: 0 !important;
    /*max-width: 1600px;*/ /* 好みの幅に変更 */
	max-width: 100%;
}
@media screen and (min-width: 30em) {
    .page-one-column .panel-content .wrap {
    /*max-width: 1600px;*/ /* 好みの幅に変更 */
	max-width: 100%;
    }
}

/*===投稿者消す===*/
.entry-meta {
  display: none;
}

.posted-on {
  display: none;
}

.byline {
  display: none;
}

.post-date {
  display: none;
}

.section-label {
  font-size: 3rem;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 20px;
  text-transform: uppercase;
}


/*お知らせ*/
/*news（お知らせ）
---------------------------------------------------------------------------*/
/*.news {
  max-width: 800px;
  display: block;
  margin: 0 auto;
  padding: 20px;
}*/

.news {
  clear: both;        /* 前の要素の回り込みを解除 */
  position: relative; /* 重なり順を安定させる */
  z-index: 5;
  max-width: 800px;
  display: block;
  margin: 0 auto;
  /*padding: 20px;*/
  background: #fff;   /* 背景色を付けることで透けを防止 */
}

.news1-parts {
  max-height: 150px; /* ← 好きな高さに調整 */
  overflow-y: auto;  /* ← 縦スクロール */
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  background: #fff;
  padding-right: 10px; /* スクロールバー余白 */
}

/* 各行 */
.news1-parts dt {
  font-weight: bold;
  margin-top: 15px;
}

.news1-parts dd {
  margin: 5px 0 15px 0;
  line-height: 1.6;
}

/* ラベル */
.news1-parts span {
  margin-left: 10px;
  font-size: 12px;
  background: #eee;
  padding: 2px 8px;
  border-radius: 10px;
}

.news1-parts .accent-color {
  background: #a61919;
  color: #fff;
}

.news1-parts::-webkit-scrollbar {
  width: 6px;
}

.news1-parts::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/*--- 本文 ---*/
.lead-text {
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 0.05em;      /* 少し余裕を出す */
  background: linear-gradient(135deg, #f7fbfd, #eef5f9);
  color: #333;
  max-width: 800px;
  margin: 40px auto;
  font-weight: 400;
  padding: 35px 40px;
  background: #f9fbfc;
  border-left: 3px solid #a61919;
  border-radius: 12px;
}

.lead-text::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 25px;

  width: 14px;
  height: 14px;
  background: #a61919;
  border-radius: 50%;

  box-shadow: 0 0 0 6px #f7fbfd; /* ←リング */
}

.lead-text br {
  display: block;
  margin-bottom: 10px;
}

.lead-text strong {
  color: #a61919;
  font-weight: bold;
}

.lead-first {
  display: inline-flex;
  width: 52px;
  height: 52px;
  background: #a61919;
  color: #fff;
  font-weight: bold;
  font-size: 36px;

  justify-content: center;
  align-items: center;

  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);

  float: left;
  margin-right: 12px;
  margin-top: 4px;
}

/*====== 動画スクロール（レスポンシブ完全対応版） ======*/

/* 1. セクション全体（上下に適切な余白を確保） */
.events {
  background: #f7f7f7;
  height: auto !important;          /* スマホで高さが潰れるのを防止 */
  padding: 60px 0;
  overflow: hidden;                 /* 画面外にはみ出る動画のスクロールバーを隠す */
}

/* 2. 無限ループのコンテナ */
.scroll-infinity {
  overflow: hidden;
  width: 100%;
}

/* 3. 横並びトラック（アニメーションの土台） */
.scroll-track {
  display: flex !important;
  width: max-content;               /* 中身の合計幅に自動で合わせる */
  animation: scroll 25s linear infinite;
}

/* 4. 動画1つ分を包むラップ（キャプションと動画ボックスをセットに） */
.video-wrap {
  width: 560px;                     /* PC時の動画の横幅 */
  margin-right: 30px;               /* 動画と動画の間のすき間 */
  flex-shrink: 0;                   /* 横幅が勝手に縮まないように固定 */
  position: relative;
}

/* 5. 動画のタイトル（キャプション） */
.video-caption {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  text-align: left;
  /* ホバーで出す演出を残したい場合は、元のopacity設定のままで機能します */
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.6s ease;
}

.video-wrap:hover .video-caption {
  opacity: 1;
  transform: translateY(0);
}

/* 6. 動画のアスペクト比を16:9に保つボックス */
.video-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%;              /* 16:9の黄金比率（高さを自動計算） */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  background: #000;
}

/* 7. iframeをボックスにぴったりフィットさせる */
.video-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  pointer-events: none;             /* 流れている間はクリックを無効化（モーダルを開きやすくする） */
  border-radius: 12px;
}

/* 超滑らかスクロールアニメーション */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ホバーでループを一時停止 */
.scroll-infinity:hover .scroll-track {
  animation-play-state: paused;
}


/* ==========================================
    ★スマホ最適化（画面幅768px以下）
========================================== */
@media (max-width: 768px) {
  .events {
    padding: 40px 0;                /* スマホ用に上下余白を少しタイトに */
  }

  /* スマホの画面幅に合わせて、動画1つ分のサイズを綺麗に縮小 */
  .video-wrap {
    width: 75vw;                    /* スマホ画面の横幅75%サイズにする（ズレを防止） */
    margin-right: 20px;             /* すき間を少し狭める */
  }

  .scroll-track {
    animation-duration: 35s;        /* スマホでは少しゆっくり流す */
  }
  
  .video-caption {
    font-size: 12px;                /* スマホ用の文字サイズ */
    opacity: 1 !important;          /* スマホはホバーがないため、最初から文字を常時表示させる */
    transform: translateY(0) !important;
    margin-bottom: 8px;
  }
}


/* ==========================================
    モーダル（ポップアップ窓）の設定
========================================== */
#modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;                 /* モーダル動画が大きくなりすぎないように制限 */
  margin: auto;
}

#modal iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
}

.close {
  position: absolute;
  right: 10px;
  top: -45px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  transition: 0.2s;
}

.close:hover {
  color: #ff9900;
}

/*====== スクロールここまで ======*/

.close {
  position: absolute;
  right: 10px;
  top: -40px;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 100%;
  /*max-width: 1000px;*/
  margin: 5% auto;
}

#modal iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}


/*====== 大会結果タイトル ======*/
.cycle {
  position: relative;
  padding-top: 15px;
  padding-bottom: 50px;
  font-size: 26px;
  text-align: center;
}

.cycle span {
	position: relative;
	z-index: 2;
}

.cycle::before {
	content: attr(data-en);
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(224,66,114,0.2);
	font-size: 32px;
	font-style: italic;
}

.roge {
	position: relative;
	padding-top: 15px;
	padding-bottom: 50px;
	font-size: 26px;
	text-align: center;
}

.roge span {
	position: relative;
	z-index: 2;
}

.roge::before {
	content: attr(data-en);
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(224,66,114,0.2);
	font-size: 32px;
	font-style: italic;
}

.single-post:not(.has-sidebar) #primary, .page.page-one-column:not(.twentyseventeen-front-page) #primary, .archive.page-one-column:not(.has-sidebar) .page-header, .archive.page-one-column:not(.has-sidebar) #primary {
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.shimano {
  position: relative;
  padding-top: 15px;
  padding-bottom: 50px;
  font-size: 26px;
  text-align: center;
}

.shimano span {
	position: relative;
	z-index: 2;
}

.shimano::before {
	content: attr(data-en);
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(224,66,114,0.2);
	font-size: 16px;
	font-style: italic;
}

/*------------当日までの流れ--------------*/
.workflow {
  position: relative;
  padding-top: 15px;
  padding-bottom: 50px;
  font-size: 26px;
  text-align: center;
}

.workflow span {
	position: relative;
	z-index: 2;
}

.workflow::before {
	content: attr(data-en);
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(224,66,114,0.2);
	font-size: 32px;
	font-style: italic;
}

 /*====== 大会結果 ======*/
table {
    border-collapse: separate;
    text-indent: initial;
    border-spacing: none !important;
}

.result {
    /*border: solid 1px;*/
    width: 100%;
	text-align: center
}

.result tr td{
    border: solid 0.5px;
}

.result tr {
  opacity: 0;
  transform: translateX(80px);
  animation: slideIn 1s ease forwards;
}


.result 	tr:nth-child(2) 	{ 	animation-delay:	 	0.1s; 	}
.result 	tr:nth-child(3) 	{ 	animation-delay:	 	0.2s; 	}
.result 	tr:nth-child(4) 	{ 	animation-delay:	 	0.3s; 	}
.result 	tr:nth-child(5) 	{ 	animation-delay:	 	0.4s; 	}
.result 	tr:nth-child(6) 	{ 	animation-delay:	 	0.5s; 	}
.result 	tr:nth-child(7) 	{ 	animation-delay:	 	0.6s; 	}
.result 	tr:nth-child(8) 	{ 	animation-delay:	 	0.7s; 	}
.result 	tr:nth-child(9) 	{ 	animation-delay:	 	0.8s; 	}
.result 	tr:nth-child(10)	 {	 animation-delay	:	 0.9s;	 }
.result 	tr:nth-child(11)	 {	 animation-delay	:	 1.0s;	 }
.result 	tr:nth-child(12)	 {	 animation-delay	:	 1.1s;	 }
.result 	tr:nth-child(13)	 {	 animation-delay	:	 1.2s;	 }
.result 	tr:nth-child(14)	 {	 animation-delay	:	 1.3s;	 }
.result 	tr:nth-child(15)	 {	 animation-delay	:	 1.4s;	 }
.result 	tr:nth-child(16)	 {	 animation-delay	:	 1.5s;	 }
.result 	tr:nth-child(17)	 {	 animation-delay	:	 1.6s;	 }
.result 	tr:nth-child(18)	 {	 animation-delay	:	 1.7s;	 }
.result 	tr:nth-child(19)	 {	 animation-delay	:	 1.8s;	 }
.result 	tr:nth-child(20)	 {	 animation-delay	:	 1.9s;	 }
.result 	tr:nth-child(21)	 {	 animation-delay	:	 2.1s;	 }
.result 	tr:nth-child(22)	 {	 animation-delay	:	 2.2s;	 }
.result 	tr:nth-child(23)	 {	 animation-delay	:	 2.3s;	 }
.result 	tr:nth-child(24)	 {	 animation-delay	:	 2.4s;	 }
.result 	tr:nth-child(25)	 {	 animation-delay	:	 2.5s;	 }
.result 	tr:nth-child(26)	 {	 animation-delay	:	 2.6s;	 }
.result 	tr:nth-child(27)	 {	 animation-delay	:	 2.7s;	 }
.result 	tr:nth-child(28)	 {	 animation-delay	:	 2.8s;	 }
.result 	tr:nth-child(29)	 {	 animation-delay	:	 2.9s;	 }
.result 	tr:nth-child(30)	 {	 animation-delay	:	 3.0s;	 }
.result 	tr:nth-child(31)	 {	 animation-delay	:	 3.1s;	 }
.result 	tr:nth-child(32)	 {	 animation-delay	:	 3.2s;	 }
.result 	tr:nth-child(33)	 {	 animation-delay	:	 3.3s;	 }
.result 	tr:nth-child(34)	 {	 animation-delay	:	 3.4s;	 }
.result 	tr:nth-child(35)	 {	 animation-delay	:	 3.5s;	 }
.result 	tr:nth-child(36)	 {	 animation-delay	:	 3.6s;	 }
.result 	tr:nth-child(37)	 {	 animation-delay	:	 3.7s;	 }
.result 	tr:nth-child(38)	 {	 animation-delay	:	 3.8s;	 }
.result 	tr:nth-child(39)	 {	 animation-delay	:	 3.9s;	 }
.result 	tr:nth-child(40)	 {	 animation-delay	:	 4.1s;	 }
.result 	tr:nth-child(41)	 {	 animation-delay	:	 4.2s;	 }
.result 	tr:nth-child(42)	 {	 animation-delay	:	 4.3s;	 }
.result 	tr:nth-child(43)	 {	 animation-delay	:	 4.4s;	 }
.result 	tr:nth-child(44)	 {	 animation-delay	:	 4.5s;	 }
.result 	tr:nth-child(45)	 {	 animation-delay	:	 4.6s;	 }
.result 	tr:nth-child(46)	 {	 animation-delay	:	 4.7s;	 }
.result 	tr:nth-child(47)	 {	 animation-delay	:	 4.8s;	 }
.result 	tr:nth-child(48)	 {	 animation-delay	:	 4.9s;	 }
.result 	tr:nth-child(49)	 {	 animation-delay	:	 5.0s;	 }
.result 	tr:nth-child(50)	 {	 animation-delay	:	 5.1s;	 }


@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*区切り*/
hr{
	margin-top: 3vw;
}

/* 共通 */
.slide-box {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-left: 4px solid #a61919;
  opacity: 0;
}

/* 横並び */
.slide-wrap.horizontal {
  display: flex;
  gap: 20px;
  margin-top: 5vw;
}

.slide-wrap.horizontal .slide-box {
  flex: 1;
  transform: translateY(50px);
  animation: slideUp 0.8s ease-out forwards;
}

/* 縦並び */
.slide-wrap.vertical {
  display: block;
  margin-top: 5vw;
}

.slide-wrap.vertical .slide-box {
  margin-bottom: 30px;
  transform: translateX(-50px);
  animation: slideLeft 0.8s ease-out forwards;
}

/*====== 順番アニメーション ======*/
/* 横並び用 */
.slide-wrap.horizontal .slide-box:nth-child(1) { animation-delay: 0.2s; }
.slide-wrap.horizontal .slide-box:nth-child(2) { animation-delay: 0.6s; }
.slide-wrap.horizontal .slide-box:nth-child(3) { animation-delay: 0.9s; }

/* 縦並び用 */
.slide-wrap.vertical .slide-box:nth-child(1) { animation-delay: 0.2s; }
.slide-wrap.vertical .slide-box:nth-child(2) { animation-delay: 0.6s; }
.slide-wrap.vertical .slide-box:nth-child(3) { animation-delay: 0.9s; }

/* アニメーション */
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* ===== スマホ ===== */
@media (max-width: 768px) {
  .slide-wrap.horizontal {
    flex-direction: column;
  }
}

/* ホバーでちょい浮く */
.slide-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}


/*====== WORKFLOW ======*/


/* PCやタブレットなど、画面幅が768px以上のときに横並びにする */
@media (min-width: 768px) {
    /* 左側の画像の設定：全体幅の45%にする */
    img.wp-image-838 {
        float: left;
        width: 45% !important;
        height: auto !important;
        margin-right: 5%; /* 画像とリストの間の隙間を5%にして、合計50%に */
        margin-bottom: 20px;
    }
	.work img{
	    margin: 0 auto;
        display: block;
}
    
    /* 右側のリストの設定：残り半分の50%に収める */
    .flow {
        float: right;
        width: 50%;
        margin: 0 !important; /* 横並び時の余計なマージンをカット */
        clear: none; /* 回り込みを維持 */
    }

    /* floatの崩れを防ぐための、次の要素への回り込み解除 */
    .flow::after {
        content: "";
        display: block;
        clear: both;
    }
}

/* フローリスト全体の基本設定（既存の赤ライン・デザインを維持） */
.flow {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;                   /* カード同士の上下の隙間 */
    padding-left: 25px;          /* 左側の無駄な隙間を削りました */
    box-sizing: border-box;
}

/* 縦ライン（既存のグラデーションライン） */
.flow::before {
    content: "";
    position: absolute;
    left: -10px;                  /* 左に寄せてカード幅を広く確保 */
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #a61919, #ddd);
}

/* 各ステップ（横幅を100%に統一して綺麗に揃える） */
.flow-item {
    position: relative;
    width: 100%;                 /* 右側エリアの中で幅を均一に統一 */
    box-sizing: border-box;
    transition: 0.3s;
}

/* ホバーで右に少し動くアニメーション */
.flow-item:hover {
    transform: translateX(5px);
}

/* 番号（既存の赤丸デザイン） */
.flow-step {
    position: absolute;
    left: -15px;                 /* 縦ラインに合わせて位置を調整 */
    top: 50%;
    transform: translateY(-50%); /* カードの高さに対して常に中央に配置 */
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: #a61919;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

/* カードコンテンツ（既存の浮き出る白いカード） */
.flow-content {
    background: #fff;
    padding: 15px 20px;          /* 余白を少しタイトにして引き締め */
    margin-left: 20px;           /* 赤丸とカードが被りすぎないための余白 */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
}

/* ホバーでカードが浮く */
.flow-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* タイトル（既存の設定） */
.flow-content h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/*====== 動画無限スクロール ======*/
/* 全体 */
.scroll-infinity {
  overflow: hidden;
  width: 100%;
}

/* 横並び */
.scroll-track {
  display: flex;
  width: max-content;
  animation: scrollLoop 60s linear infinite;
}

/* 各アイテム */
.image-wrap {
  width: 300px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* 画像 */
.image-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}


/* キャプション */
.image-caption {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
}

/* アニメーション */
@keyframes scrollLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.image-wrap img {
  transition: 0.3s;
}

.image-wrap:hover img {
  transform: scale(1.05);
}

.scroll-track:hover {
  animation-play-state: paused;
}

/*===ホバーで止める===*/
.img-scroll ul:hover {
  animation-play-state: paused;
}
.img-scroll li:hover img {
  transform: scale(1.05);
  transition: 0.3s;
}
.img-scroll li {
  opacity: 0.5;
  transform: scale(0.9);
  transition: 0.3s;
}

.img-scroll li:hover {
  opacity: 1;
  transform: scale(1.1);
}

.img-scroll {
  padding: 40px 0;
}

@media (max-width: 768px) {
  .img-scroll ul {
    animation-duration: 30s;
  }
}

/*動画タイトル*/
.video-caption {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.6s ease;
}

.video-wrap:hover .video-caption {
  opacity: 1;
  transform: translateY(0);
}

/*--- リストスタイル ---*/
/* デフォルトの点を消す */
.check-list {
  list-style: none;
  padding-left: 0;
}

/* 各項目 */
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* チェックマーク */
.check-list li::before {
  content: "✔";
  position: absolute;

  width: 20px;
  height: 20px;

  background: #a61919;
  /*background: #001e43;*/
  color: #fff;

  border-radius: 4px;
  font-size: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  left: 0;
  top: 4px;
}

/*----- カード斜め -----*/
/* 全体 */
/*.feature-wrap {
  position: relative;
  max-width: 600px;
  margin: 50px auto;
}*/

/* カード共通 */
/*.feature-box {
  display: flex;
  align-items: center;

  background: #eaf3f8;
  border-radius: 20px;
  padding: 20px 25px;

  width: 70%;
  margin-bottom: 40px;

  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}*/


.rogaining-section-bg {
    position: relative;
    padding: 60px 0; 
    z-index: 0;
    overflow: hidden;
}

.rogaining-section-bg::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('https://www.ehime-rogaining.jp/wp-content/uploads/2026/05/ehime2.png') no-repeat center;
    background-size: contain;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.feature-wrap {
    display: flex;
    justify-content: center;
    align-items: stretch;
	padding: 100px 10px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32%;
    max-width: 380px;
    padding: 20px 15px;
    box-sizing: border-box;

    word-wrap: break-word;
    overflow-wrap: break-word;
}

.feature-box h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.feature-box .text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
    width: 100%;
}

.box1 { transform: translateY(-30px); }
.box2 { transform: translateY(15px); }
.box3 { transform: translateY(-30px); }

/* スマホ・タブレット（幅768px以下）の設定 */
@media screen and (max-width: 768px) {
    .rogaining-section-bg::before {
        background-size: 150%;
        opacity: 0.15;
    }
    .hero-lead {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 15px;
    }
    .feature-wrap {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 30px;
    }
    .feature-box {
        width: 100%;
        max-width: 400px;
        transform: none !important;
        margin-bottom: 0;
		padding: 30px 20px;
    }
	.feature-box h4 {
        font-size: 1.2rem;
    }
    .icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
}

/* アイコン */
.feature-box .icon {
  width: 70px;
  height: 70px;

  background: #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  margin-right: 20px;

  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* テキスト */
.feature-box h4 {
  margin: 0;
  font-size: 18px;
}

.feature-box p {
  margin: 5px 0 0;
  font-size: 14px;
}

/* ===== 斜め配置 ===== */
.box1 {
  margin-left: 0;
}

.box2 {
  margin-left: 80px;
}

.box3 {
  margin-left: 160px;
}

/* 横長感アップ */
.feature-box {
  border-radius: 40px;
}

/* 背景少し濃く */
.feature-box {
  background: #dfeaf2;
}

/* アイコン縁 */
.feature-box .icon {
  border: 5px solid #cfe0ea;
}

@media (max-width: 768px) {

  .feature-box {
    flex-direction: column;   /* 縦並び */
    text-align: center;
    padding: 20px;
  }

  .feature-box .icon {
    margin: 0 0 10px;
  }

}
@media (max-width: 768px) {

  .feature-box {
    width: 100%; /* 横幅いっぱい */
  }

  .box1,
  .box2,
  .box3 {
    margin-left: 0; /* ←斜め解除 */
  }

}

.feature-box:hover {
  transform: translateX(3px);
}

/*
.work img{
	width: 100%;
}
*/
/*----- お問い合わせ -----*/

/* セクション */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #a61919, #d94b4b);
  color: #fff;
  border-radius: 12px;
  margin: 80px 0;
}

/* テキスト */
.cta-text {
  font-size: 20px;
  margin-bottom: 20px;
}

/* ボタン */
.cta-button {
  display: inline-block;
  background: #fff;
  color: #a61919;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: 0.3s;
}

/* ホバー */
.cta-button:hover {
  background: #f5f5f5;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* 押した感 */
.cta-button:active {
  transform: translateY(0);
}
/* ボタン横並び */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #a61919, #d94b4b);
  color: #fff;
  border-radius: 12px;
  margin: 80px 0;
}

/* ボタンを横並びにする */
.cta-section a {
  margin: 10px;
}

/* ボタンラッパー（追加推奨） */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* スマホ対応 */
}

.cta-minimal {
  text-align: center;
  padding: 120px 20px;
}

.cta-minimal a {
  font-size: 24px;
  text-decoration: none;
  border-bottom: 3px solid #000;
  padding-bottom: 5px;
}

/*-------チラシ無限スクロール-------*/
.img-scroll {
  overflow: hidden;
  width: 100%;
}

.img-scroll ul {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
  padding: 20px 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

.img-scroll li {
  flex: 0 0 auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.img-scroll img {
  display: block;
  height: 260px;
  width: auto;
  border-radius: 8px;
}

/* 通常状態 */
.img-scroll li {
  transform: scale(0.85);
  /*opacity: 0.5;*/
}

/* 中央強調 */
.img-scroll li.active {
  transform: scale(1.15);
  opacity: 1;
  z-index: 2;
}

/* スクロール */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


