@charset "UTF-8";
/* CSS Document */

/* キービジュアル */
.carousel h1 {
  font-size: 5.0rem;
  font-weight: 600;
  line-height: 8.0rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
  letter-spacing:  0.14em;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0 140px 50px 0;
  z-index: 999;
}

/* Slider */
.carousel {
  max-width: 1440px;
  margin: 0 auto;
  /* padding: 20px; */
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.carousel img {
  width: 100%;
  height: 90svh;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.carousel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.05); /* 半透明の黒 */
  z-index: 2;
}

@media (max-width:1060px){ 
  .carousel h1 {
    padding: 0 80px 50px 0;
  }
}

@media (max-width:960px) {
  .carousel {
    max-width: 1440px;
    margin: 0 auto;
    /* padding: 20px; */
    position: relative;
    overflow: hidden;
    padding-top: 80px;
  }

  .carousel h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 6.0rem;
    color: #fff;
    letter-spacing:  0.14em;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 25px 30px 0;
    z-index: 999;
  }
}  

@media (max-width:768px){
  .carousel img {
    width: 100%;
    height: 90svh;
    object-fit: cover;
  }
  
  .carousel h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 5.0rem;
    color: #fff;
    letter-spacing:  0.14em;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 25px 25px 0;
    z-index: 999;
  }
}

/* 交通事故治療 */
.accident {
  width: 100%;
  margin: 0 auto;
  width: 100%;
  background-image: url(../imgs/bg_green.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.accident br {
  display: none;
}

.accident-inner {
  padding: 80px 140px;
}

.accident h2 {
  font-size: 3.2rem;
  letter-spacing:  0.08em;
  text-align: center;
  color: #fff;
  font-weight: 700;
}

.accident p {
  font-size: 1.8rem;
  line-height: 2.8rem;
  letter-spacing:  0.08em;
  color: #fff;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 0 50px;
}

@media (max-width:768px){
  .accident {
    width: 100%;
    margin: 0 auto;
    background-image: url(../imgs/bg_green.jpg);
    background-repeat: repeat;
    background-position: center;
    background-size: cover;
  }

  .accident br {
    display: block;
  }
  
  .accident-inner {
    padding: 50px 25px;
  }

  .accident h2 {
    font-size: 1.8rem;
    letter-spacing:  0.08em;
    text-align: left;
    color: #fff;
  }

  .accident p {
    font-size: 1.4rem;
    line-height: 2.2rem;
    letter-spacing:  0.08em;
    color: #fff;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px 25px;
    text-align: justify;
  }

  .accident-title {
    display: flex;
    justify-content: center;
  }
}

/* メディセラとは？ */
.about {
  width: 100%;
  margin: 0 auto;
  background-color: #efeeea;
  background-image: url(../imgs/big_tam.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.about-inner {
  padding: 150px 140px 100px;
}

.about-title {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.about h2 {
  font-size: 3.2rem;
  letter-spacing:  0.08em;
  text-align: center;
  font-weight: 700;
}

.about h2 .h2-icon {
  position: absolute;
  left: -80px;       
  top: -40px;
  transform: translateY(-40%); 
  width: 260px;
  height: auto;
}

.catch {
  font-size: 2.6rem;
  letter-spacing:  0.08em;
  text-align: center;
  font-weight: 700;
  padding-bottom: 30px;
}

.about-text-01 {
  font-size: 1.8rem;
  line-height: 2.8rem;
  letter-spacing:  0.08em;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 0 0;
  width: 100%;
  margin: 0 auto;  
  border-bottom: 1px solid #333; 
  text-align: justify;
}

.about-text-01 p {
  padding-bottom : 50px;
}

.text-01 {
  font-weight: 500;
}

.about-b {
  font-weight: 700;
}  

.about-text-02 {
  font-size: 1.8rem;
  line-height: 2.8rem;
  letter-spacing:  0.08em;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
  padding: 50px 0 50px;
  text-align: justify;
}

.about-text-03 {
  font-size: 1.8rem;
  line-height: 2.8rem;
  letter-spacing:  0.08em;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;
}

.ceo {
  display: flex;
  justify-content: center;
}

.about-text-03 img {
  width: 300px;
  display: inline-block;
}

.line-up {
  display: flex;
  max-width: 800px;
  position: relative;
}

.about-br {
  display: none;
}

@media (max-width:960px) {
  .about h2 .h2-icon {
    position: absolute;
    left: -80px;       
    top: 0;
    transform: translateY(-40%); 
    width: 200px;
    height: auto;
  }
}

@media (max-width:768px) {
  .about {
    width: 100%;
    margin: 0 auto;
  }

  .about-inner {
    padding: 150px 25px 50px;
  }

  .about h2 {
    font-size: 1.8rem;
    letter-spacing:  0.08em;
    text-align: center;
  }

  .about h2 .h2-icon {
    position: absolute;
    left: 120px;       
    top: -60px;
    transform: translateY(-40%); 
    width: 130px;
    height: auto;
  }

  .catch {
    font-size: 1.4rem;
    letter-spacing:  0.08em;
    text-align: center;
    font-weight: 700;
    padding-bottom: 0px;
  }

  .about-text-01 {
    font-size: 1.4rem;
    line-height: 2.2rem;
    letter-spacing:  0.08em;
    max-width: 325px;
    margin: 0 auto;
    padding: 30px 0 0;
    width: 100%;
    margin: 0 auto;  
  }

  .about-text-01 p {
    padding-bottom : 30px;
  }

  .about-b {
    font-weight: 700;
    text-align: center;
  }  

  .about-text-02 {
    font-size: 1.4rem;
    line-height: 2.2rem;
    letter-spacing:  0.08em;
    font-weight: 500;
    max-width: 325px;
    margin: 0 auto;
    padding: 30px 0 30px;
  }

  .about-text-03 {
    font-size: 1.4rem;
    line-height: 2.2rem;
    letter-spacing:  0.08em;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
  }

  .about-text-03 img {
    width: 250px;
    display: inline-block;
    text-align: center;
    padding-top: 20px;
  }

  .line-up {
    display: initial;
    max-width: 325px;
    position: static;
    display: block;
    margin: 0 auto;
  }

  .about-br {
    display: block;
  }
}

@media (max-width:590px) {
  .about h2 .h2-icon {
    position: absolute;
    left: 10px;       
    top: -70px;
    transform: translateY(-40%); 
    width: 130px;
    height: auto;
  }
}

.about-slider {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 1);
}

/* スライド */
.splide__slide img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
    background-color: #ccc;
  }
  
  #my-slider {
    z-index: 10;
    max-width: 1440px;
    margin: 0 auto;
  }

  @media (max-width: 768px) {
    .splide__slide img {
      height: 230px;
    }
  }

/* 治療について */
.therapy {
  width: 100%;
  background-image: url(../imgs/bg_beige.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.therapy-inner {
  padding: 100px 140px;
}

.therapy h2 {
  font-size: 3.2rem;
  letter-spacing:  0.08em;
  text-align: center;
  color: #333;
  font-weight: 700;
}

.therapy p {
  font-size: 1.8rem;
  line-height: 2.8rem;
  letter-spacing:  0.08em;
  color: #333;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 0 50px;
  text-align: justify;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px; 
  max-width: 1160px;
  margin: 0 auto;
}

.card {
  background-color: #ffffff; 
  padding: 25px;
  border-radius: 10px;
  position: relative;
  font-weight: 600;
}

.card h3 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 2.2rem;
  text-align: center;
  font-weight: 700;
}

.card p {
  margin: 0 auto;
  font-size: 1.6rem;
  color: #333;
  letter-spacing: 0.05em;
  padding: 40px 0 50px;
  font-weight: 500;
}

.arrow-btn {
  display: inline-block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #00a9e3;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none; 
  position: absolute;
  bottom: 20px;
  right: 20px;
}

/* ホバーで色を変える */
.arrow-btn:hover {
  background-color: #e0e0e0;
}

/* 矢印 */
.arrow-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg); 
}

.therapy-bubble {
  justify-content: center;
  display: flex;
  padding-bottom: 100px;
}

.therapy-bubble  img{
  width: 500px;
  display: block;
}

@media (max-width:1060px) {
.therapy-inner {
    padding: 100px 30px;
  }
}

@media (max-width:768px) {
.therapy {
  width: 100%;
  background-image: url(../imgs/bg_beige.jpg);
  background-repeat: round;
  background-position: center;
  background-size: cover;
}  

.therapy-inner {
  padding: 50px 25px;
}

.therapy h2 {
  font-size: 1.8rem;
  letter-spacing:  0.08em;
  text-align: center;
  color: #333;
}

.therapy p {
  font-size: 1.4rem;
  line-height: 2.2rem;
  letter-spacing:  0.08em;
  color: #333;
  font-weight: 500;
  max-width: 325px;
  margin: 0 auto;
  padding: 30px 0 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr); 
  gap: 20px; 
  max-width: 325px;
  margin: 0 auto;
}

.card {
  background-color: #ffffff; 
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.card h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.6rem;
  text-align: center;
}

.card p {
  margin: 0 auto;
  font-size: 1.4rem;
  color: #333;
  letter-spacing: 0.05em;
  padding: 10px 0 20px;
  line-height: 2.2rem;
}

.arrow-btn {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #00a9e3;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none; 
  bottom: 0px;
  right: 0px;
  display: flex;         
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;  
}

  /* 矢印 */
  .arrow-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translate(-50%, -50%) rotate(-45deg); 
  }

    .therapy-bubble {
    justify-content: center;
    display: flex;
    padding-bottom: 50px;
  }

  .therapy-bubble  img {
    width: 260px;
    display: block;
  }
}

/* 店舗一覧 */
.shop {
  width: 100%;
  margin: 0 auto;
  background-color: #efeeea;
}

.shop-inner {
  padding: 100px 140px;
}

.shop h2 {
  font-size: 3.2rem;
  letter-spacing:  0.08em;
  text-align: center;
  padding-bottom: 2px;
  font-weight: 700;
}

.shop-box {
  padding: 80px 0 0;
  display: flex;
  margin: 0 auto;
  justify-content: center;
  flex-direction: row-reverse;
  max-width: 1160px;
}

.shop-left {
  width: 100%;
  max-width: 300px;
  text-align: center;
  flex: 0 0 40%;
}

.building {
  padding-bottom: 10px;
  max-width: 300px;
}

.building img {
  width: 100%;
  display: block;
}

.staff {
  max-width: 300px;
  display: flex;
  justify-content: center;
}

.staff img {
  width: 100%;
  display: block;
}

.staff-a {
  max-width: 300px;
  display: flex;
  justify-content: center;
}

.staff-a img {
  width: 100%;
  display: block;
}

.staff-t {
  max-width: 300px;
  display: flex;
  justify-content: center;
}

.staff-t img {
  width: 60%;
  display: block;
}

.shop-right {
  padding-left: 40px;
  flex: 0 0 60%;
}

.shop-title {
  align-items: flex-start; 
  gap: 10px; 
  padding-bottom: 30px; 
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.shop-title p {
  background-color: #00a9e3;
  border-radius: 8px; 
  padding: 5px 10px; 
  display: inline-block;   
  color: #fff;
  font-weight: 700;
  margin-bottom: 15px;
}

.shop-title p:nth-of-type(2) {
  margin-left: 15px;
}

.shop h3 {
  font-size: 2.4rem;
  letter-spacing:  0.08em;
  font-weight: 700;
}

.shop-right p {
  font-size: 1.8rem;
  letter-spacing:  0.08em;
  font-weight: 500;
}

.access {
  padding-bottom: 30px;
}

.shop-time {
  display: flex;
  align-items: flex-start; 
  gap: 20px; 
  padding-bottom: 30px; 
}

.link a {
  display: block;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 700;
  padding-bottom: 30px;
}

.link-box {
  display: flex;
  gap: 100px;
}

.link-box-tam {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
}

.badge {
  background-color: #fff;
  border-radius: 8px; 
  padding: 5px 10px; 
  display: inline-block;   
  color: #333;
  font-weight: 600;
  margin-top: -5px;
  width: 100px;
  text-align: center;
  flex-shrink:0;
}

.tel-badge {
  background-color: #00a9e3;
  border-radius: 50px; 
  display: inline-block;   
  color: #fff;
  font-size: 2.4rem;
  font-weight: 600;
  margin-top: -5px;
  width: 300px;
  height: 80px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.tel-badge a {
  text-decoration: none !important;
}

.shop-btn {
  display: block;
  text-align: center;
  padding: 20px 0;
}

.tel-bubble {
  font-size: 1.4rem;
  font-weight: 700;
}

p.shop-bold {
  font-weight: 700;
}

p.badge {
  font-weight: 700;
}

@media (max-width:1060px) {
  .shop-inner {
    padding: 100px 30px;
  }
}

@media (max-width:768px)  {
  .shop {
    width: 100%;
    margin: 0 auto;
    background-color: #efeeea;
  }

  .shop-inner {
    padding: 50px 25px;
  }

  .shop h2 {
    font-size: 1.8rem;
    letter-spacing:  0.08em;
    text-align: center;
    padding-bottom: 10px;
  }

  .shop-box {
    padding: 20px 0;
    display: block;
    width: 100%;
    max-width: 325px;
    margin: 0 auto;
  }

  .shop-right {
    padding-left: 0px;
  }

  .shop-title {
    align-items: flex-start; 
    gap: 10px; 
    padding-bottom: 15px; 
    flex-direction: row-reverse;
    justify-content: flex-end;
  }

  .shop-title p {
    background-color: #00a9e3;
    border-radius: 5px; 
    padding: 0px 8px; 
    display: inline-block;   
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .shop-title p:nth-child(2) {
    margin-left: 10px;
  }

  .shop-content {
    max-width: 325px;
    width: 100%;
  }

  .shop h3 {
    font-size: 1.6rem;
    letter-spacing:  0.08em;
    padding-top: 0px;
  }

  .shop-right p {
    font-size: 1.4rem;
    letter-spacing:  0.08em;
    line-height: 2.2rem;
  }

  .access {
    padding-bottom: 15px;
  }

  .shop-time {
    display: block;
    align-items: flex-start; 
    gap: 10px; 
    padding-bottom: 15px; 
  }

  .shop-time .cont {
    transform: translateY(-3px);
  }

  .link a {
    display: block;
    color: #333;
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight: 700;
    padding-bottom: 30px;
    font-size: 1.4rem;
  }

  .link-box {
    display: block;
    gap: 20px;
  }

  .building {
    max-width: 325px;
  }

  .building img {
    width: 100%;
    display: block;
  }

  .staff-a {
    max-width: 325px;
  }

  .staff-a img {
    width: 100%;
    display: block;
  }

  .staff-t {
    max-width: 325px;
  }

  .staff-t img {
    width: 50%;
    display: block;
  }

  .staff img {
    width: 250px;
    display: block;
  }

  .badge {
    background-color: #fff;
    border-radius: 5px; 
    padding: 0px 8px; 
    display: inline-block;   
    color: #333;
    font-weight: 600;
    margin-top: -5px;
    width: 80px;
    text-align: center;
    margin-bottom: 10px;
  }

  .tel-badge {
    background-color: #00a9e3;
    border-radius: 50px; 
    display: inline-block;   
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: -5px;
    width: 200px;
    height: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .shop-btn {
    display: block;
    text-align: center;
    padding-bottom: 30px;
  }

  .tel-bubble {
    font-size: 1.2rem;
    font-weight: 700;
  }

  .shop-left {
    max-width: 325px;
  }
}

/* フッターの上の写真 */
.footer_photo img {
  width: 100%;
  display: block;
}

/* 上に戻るボタン */
#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 700;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease; 
  pointer-events: none; 
}

#scrollToTopBtn.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollToTopBtn.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

#scrollToTopBtn img {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

#scrollToTopBtn span {
  font-size: 14px;
  color: #333;
  display: inline-block;
  font-weight: 600;
}

#scrollToTopBtn img:hover {
  animation: shake 0.3s ease-in-out;
}

@media (max-width: 768px) {
  #scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 900;
  }

  #scrollToTopBtn img {
    width: 100px;
    height: auto;
    display: block;
    margin-bottom: 5px;
  }
}

/* ぴこぴこ */
#scrollToTopBtn img:hover {
  animation: bounce 0.4s ease-in-out;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  25% { transform: translateY(-5px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

