element.style {
  float: none;
  list-style: none;
  position: absolute;
  width: 1270px;
  z-index: 50;
  display: block;
}

#mv {
  clear: both;
  overflow: hidden;
  position: relative;
}

#mv:before {
  display: block;
  content: "";
  background: url(../img/top-logo.png) no-repeat center top;
  background-size: 100% auto;
  position: absolute;
  left: 50%;
  width: 25%;
  max-width: 260px;
  height: 100%;
  margin-left: -130px;
  z-index: 1;
}

@media screen and (max-width: 1000px) {
  #mv:before {
    margin-left: -12.5%;

  }
}


.carousel-container {
  width: 100%;
  max-width: 800px;
  margin: 50px auto;
  perspective: 1200px; /* 奥行き感 */
  position: relative;
}

.carousel {
  width: 100%;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.carousel__item {
  position: absolute;
  width: 60%;
  left: 20%;
  top: 0;
  transform-origin: center center;
}
.carousel__item img {
  width: 200%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 10px 10px 10px rgba(0,0,0,0.3);
}

/* ボタン */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 28px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}
.nav-btn:hover {
  background: rgba(0,0,0,0.8);
}
.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

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

  .carousel__item img {
    width: 125%;
  }
  .carousel{
    height: 14em;
  }
}

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

  .carousel__item img {
    width: 100%;
  }
  .carousel{
    height: 5em;
  }
}

/*======================================
  トピックス start
======================================*/


#topics {
  clear: both;
  padding: 60px 3% 100px;
  background: url(../img/topics-bg.jpg) no-repeat center bottom fixed;
  background-size: cover;
  overflow: hidden;
}

.section {
  margin-bottom: 20px;
}

.section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  will-change: opacity, transform;
}

/* 表示された時に追加されるクラス */
.section.active {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}



.catetitle:after {
  display: block;
  content: "";
  width: 150px;
  height: 3px;
  background: #1B1464;
  margin: 0 auto 0px;
}

.catetitle small {
  display: block;
  color: #808080;
  font-size: 12px;
  font-weight: normal;
}
/* ラッパー：広い画面は2列、狭い画面は1列 */
.access-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;                 /* 余白 */
  align-items: stretch;      /* 高さ揃え */
}

/* 中身（画像と地図）の共通スタイル */
.access-layout > .access-item {
  aspect-ratio: 4 / 3;       /* 横:縦の比率を揃える（任意） */
  overflow: hidden;
  border-radius: 12px;       /* 角丸（任意） */
}

/* メディア要素を領域いっぱいにフィット */
.access-layout img,
.access-layout iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;         /* 画像の切り抜きで見栄え調整 */
  border: 0;
}

/* 画面幅が狭いときは縦並びにして高さを自動に */
@media (max-width: 768px) {
  .access-layout {
    grid-template-columns: 1fr;
  }
  .access-layout > .access-item {
    aspect-ratio: auto;      /* 自動高さに戻す */
  }
  .access-layout iframe {
    min-height: 320px;       /* モバイルで見やすい最低高さ */
  }
}


/*=========================================================
  strong start
=========================================================*/
.topics-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 70px;
}

.topics-image {
  width: 100%;
  text-align: center;
}



@media (min-width: 900px) {
  .topics-image {
    width: calc(33.333% - 13.33px);
    /* 3列 */
  }

  .topics-wrapper {
    flex-wrap: nowrap;
  }


}

@media (min-width: 600px) {
  .topics-image {
    width: calc(50% - 10px);
  }
}


@media screen and (max-width: 900px) {
  .topics-image p {
    margin-bottom: 70px;
  }
}

.topics-image01 {
  position: relative;
  width: 85%;
  aspect-ratio: 1 / 1;
  /* 正方形の枠を維持（四角） */

  overflow: visible;
}

.topics-image01 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.topics-title {
  position: absolute;
  top: -2em;
  right: -2em;
  width: 6em;
  height: 6em;
  background: var(--s-color-77819e6f, #e6f0ec);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  text-align: center;
  z-index: 2;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.topics-image p {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  background-color: rgb(0 0 0 / 56%);
}

section#strong {
  background-color: transparent;
}

/*=========================================================
  strong end
=========================================================*/
/*=========================================================
  company start 会社概要
=========================================================*/


.history_box00 {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
  padding: 20px;
}

.image-box {
  flex: 0 0 50%;
  min-height: 300px;
  background-image: url(../img/company.jpg);
  background-size: cover;
  background-position: center;
}

.text-content00 {
  flex: 1;
  font-size: 24px;
  font-weight: bold;
}


/* テキストボックス */
.text-content00 {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

/* タイトル */
.text-content00 h3 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 0.3em;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* 英語タイトル */
.text-content00 span {
  font-size: clamp(14px, 2vw, 18px);
  color: #888;
  margin-bottom: 1em;
}

/* パラグラフ調整 */
.text-content00 p {
  margin: 0.3em 0;
}

@media (max-width: 768px) {
  .history_box00 {
    flex-direction: column;
    text-align: center;
  }

  .history_box00 {
    display: block;
  }

  .image-box,
  .text-content00 {
    flex: 0 0 100%;
  }
}

/*=========================================================
  company end 会社概要 
=========================================================*/
/*=========================================================
施設案内 start
=========================================================*/
/* 施設案内セクション */
.section .room-gallery {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.section .room-gallery img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/*.section .room-gallery img:hover {
  transform: scale(1.03);
}*/

/* レスポンシブ対応 */
@media screen and (min-width: 600px) {
  .section .room-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 900px) {
  .section .room-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* "もっと見る" ボタン */
.see.more {
  text-align: center;
  margin-top: 40px;
}



/*=========================================================
施設案内 end
=========================================================*/

/*=========================================================
  contact start
=========================================================*/
/* === 全体のレイアウト（PC/スマホ共通） === */
.contact-background {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.contact-background img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 黒半透明 */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.contact-text {
  max-width: 900px;
  text-align: center;
}

.contact-text h4 {
  margin-bottom: 1em;
  font-size: 1.4rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 2em;
}

.contact-method {
    flex: 1 1 250px;
    background: #e6f0ec;
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    color: #333;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.contact-method p,
.contact-method h5 {
  margin: 0.5em 0;
  font-size: 1rem;
}

.contact-method a {
  color: #fff;
}


/* === メディアクエリ（スマホ対応） === */
@media screen and (max-width: 768px) {
  .contact-overlay {
    padding: 20px 10px;
    align-items: flex-start;
  }

  .contact-text h4 {
    font-size: 1rem;
  }

  .contact-box {
    flex-direction: column;
    gap: 0px;
  }

  .contact-method {
    padding: 0px;
    flex: auto;
  }

  #pageTop a {
    padding: 10px 16px;
    font-size: 0.8rem;
  }
}
 html {
    scroll-behavior: smooth;
  }


/*=========================================================
  contact end
=========================================================*/

/*=========================================================
  services start
=========================================================*/

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: center;
  margin-top: 30px;
}

.service-circle {
  width: 200px;
  height: 200px;
  background-color: #418c7e82;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgb(0 0 0 / 82%);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

/*.service-circle:hover {
  transform: scale(1.05);
}*/



/* 画面幅960px以上 → 4列表示 */
@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 670px) {
  .contact-overlay {
    padding: 0px;
    align-items: flex-start;
    line-height: none;
  }

  .contact-method p, .contact-method h5 {
    margin: 0;
  }

  .contact-box {
    margin-top: -1rem;
}
p.time_info {
    font-size: 10px;
}
.contact-method p {
  font-size: 12px;

}
.contact-text h4 {
   font-size: 12px;
}
.contact-box {
    gap: 3px;

}
}



@media screen and (max-width: 510px) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/*=========================================================
  services end
=========================================================*/

/*=========================================================
  contact button start
=========================================================*/

.contact-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #1d3557, #457b9d);
  border: none;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(69, 123, 157, 0.4);
  position: relative;
  overflow: hidden;
}

.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-button:hover::before {
  left: 100%;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(69, 123, 157, 0.6);
}
/*=========================================================
  contact button end
=========================================================*/