@charset "utf-8";

/* 全体の体裁 */
.section_contents_1 {
  margin-top: 3em;
}
.section_contents_2, .section_contents_3, .section_contents_4 {
  margin-top: 5em;
}
.section_contents_2 a {
  color: black;
  text-decoration: none;
}
.column_1, .column_2, .column_3 {
  margin-top: 2%;
}

/* 吹き出し */
.speechBubble {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 10px;
  background-color: var(--accent-color);
  text-align: left;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-white);
}
.speechBubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 17%;
  border-style: solid;
  border-width: 20px 10px 0 10px;
  border-color: #ea5532 transparent transparent;
  translate: -50% calc(100% - 1px);
}

/* 小見出し */
.large {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: bold;
  margin: 0;
}
h6 .large {
  font-size: clamp(16px, 1.7vw, 22px);
}
/* 小さい注釈 */
.notes {
  line-height: 1.3;
}
.small {
  font-size: clamp(12px, 0.8vw, 14px);
  line-height: 1.3;
  margin: 0;
}

/* マーカー */
.marker {
  background:linear-gradient(transparent 50%, var(--line-color) 50%);
  display: inline;
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition:background-size 1.5s;
}
.marker.on {
  background-size: 100% 100%;
}
.fa-solid {
  font-size: clamp(14px, 1.5vw, 20px);
}

/* 関連記事 */
.article {
  padding: 1.5em 1.5em;
  margin: 2em 0;
  font-weight: bold;
  border: solid 3px var(--main-color);
}
.article_title {
  margin: 0 0 5px 0;
  font-size: clamp(14px, 1.3vw, 20px);
}
.article p {
  margin-left: 0;
}
.article:hover {
  background-color: var(--main-color);
  color: var(--color-white);
}
.space {
  font-weight: 400;
}
.article_link p {
  line-height: 2;
}
.article_link img {
  width: 40%;
}

.btn_box{
  width: 100%;
  margin: 0;
}

.animation{
  color: #000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: center;
  line-height: 50px;
  width: 220px;
  height: 50px;
  background: #FFF;
  margin: auto;
  position: relative;
  display: block;
  overflow: hidden;
  transition: 0.5s;
  border-radius: 100px;
  text-decoration: none;
}
.animation:after {
  font-family: "FontAwesome";
  content: "\f101";
  position: absolute;
  right: 20px;
}
.animation:hover:after {
  animation: fuwafuwa .5s linear infinite;
}
@keyframes fuwafuwa{
 0%{transform:translateX(0)}
 50%{transform:translateX(-5px)}
 100%{transform:translateX(0)}
}


/* topics1の体裁 */
.emphasis {
  font-weight: bold;
  margin: 0 0 3% 0;
}
.column_1 {
  display: block;
}
.image-container {
  max-width: 100%;
  text-align: center;
  margin: 2em 0;
  position: relative;
  z-index: 1;
}
.tilt-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

/* スワイパー */
.swiper {
  margin-top: 5%;
  width: 100%;
  max-width: 100%;
}
.swiper-wrapper {
  transition-timing-function: linear !important;
}
/* スライドおよび画像：高さを縮めて隙間なく密着させる */
.swiper-slide {
  margin: 0 !important;
  padding: 0 !important;
}
.swiper-slide img {
  width: 100%;
  height: auto;      /* ★ここで全体の「高さ」を縮めます（希望の高さに数値調整） */
  object-fit: cover;  /* ★画像を変形させず、指定した高さに綺麗に収めます */
  display: block;     /* 下部の数pxの隙間を消去 */
  margin: 0;
}

/* ズームイン */
.zoom-in {
  text-align: center;
  margin: 1em auto 0;
}

/* スライド */
.container {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}
.image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: image-switch-animation 25s ease-in-out infinite;
}
.src1 {
  background-image: url(../image/image_4_1.jpg);
}
.src2 {
  background-image: url(../image/image_4_2.jpg);
}
.src3 {
  background-image: url(../image/image_4_3.jpg);
}
.src4 {
  background-image: url(../image/image_14_1.jpg);
}
.src5 {
  background-image: url(../image/image_14_2.jpg);
}
.src6 {
  background-image: url(../image/image_14_3.jpg);
}
.image:nth-of-type(1) {
  animation-delay: 0s;
}
.image:nth-of-type(2) {
  animation-delay: 8.33s;
}
.image:nth-of-type(3) {
  animation-delay: 16.66s;
}
@keyframes image-switch-animation {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1; /* ★0%〜6%（約1.5秒）かけてゆっくりフェードイン */
  }
  27% {
    opacity: 1; /* 表示維持（約5.25秒間） */
  }
  33% {
    opacity: 0; /* ★27%〜33%（約1.5秒）かけてゆっくりフェードアウト */
  }
  100% {
    opacity: 0; /* 次の画像が終わるまで待機 */
  }
}






/* レスポンシブ */
/* PC用　画面幅が601px以上の場合に適用 */
@media (min-width: 601px) {
  .image-container-gallery {
    display: flex;
    gap: 20px;
  }
    .image-container-gallery .image {
    position: static;
    opacity: 1;
    animation: none;
    flex: 1;
    aspect-ratio: 4 / 3;
  }
}

/* PC用　画面幅が960px以上の場合に適用 */
@media (min-width: 960px) {
  .section_contents {
    width: 80%;
    padding-top: 2%;
  }
  .tilt-image {
    width: auto;
  }
  .column_1 {
    display: flex;
    align-items: center;
    gap: 3%;
  }
  .container {
    float: right;
    margin-left: 3%;
  }
  .image {
    margin-top: 1em;
  }
  .column_1 p {
    margin: 0;
  }
  .column_1:nth-of-type(2) {
    flex-direction:row-reverse
  }
  .image-container {
    width: 100%;
    margin: 0;
  }
  .img-wrap img {
    max-width: 700px;
  }
  .container {
    width: 400px;
    height: 300px;
  }
  .image {
    margin-bottom: 20px;
  }
}

/* PC用　画面幅が1700px以上の場合に適用 */
@media (min-width: 1700px) {
  .section_contents {
    width: 65%;
  }
}

/* スマホ・タブレット用　画面幅が600px以下の場合に適用 */
@media (max-width: 600px) {
  .image-container-gallery {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 3;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
  }
    .image-container-gallery .image {
    position: absolute;
    inset: 0;
    animation: image-switch-animation 25s ease-in-out infinite;
  }
    .image-container-gallery .image:nth-of-type(1) {
    animation-delay: 0s;
  }
    .image-container-gallery .image:nth-of-type(2) {
    animation-delay: 8.33s;
  }
    .image-container-gallery .image:nth-of-type(3) {
    animation-delay: 16.66s;
  }
}

/* スマホ・タブレット用　画面幅が450px以下の場合に適用 */
@media (max-width: 450px) {
  .box1::before {
    border: 1.5px solid var(--color-gray);
  }
}