@charset "UTF-8";

html{
    font-size: 100%;
    scroll-behavior: smooth;
}
img{
    max-width: 100%
}
body{
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    font-weight: 500;
    color: #383634;
}
a {
    text-decoration: none;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h2, h3, h4, h5{
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
}

/* 共通部分 */
.logo {
  width: 280px;
  display: left;
  
}
.main-nav{
  gap: 1rem;
  width: 100%;
  font-family: 'Noto Sans JP', serif;
  display: flex;
  justify-content: left;
  list-style: none;

}
.main-nav a{
  color: #ba55d3;
  font-size: 1.1rem;
  font-style: bold;
  padding: 0.5rem 1rem;
  font-family: 'Noto Sans JP', serif;
}

.font-english {
  font-family: 'M PLUS Rounded 1c', serif;
  color: #9ecaf0;
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  height: auto;
  background-color: #fffafa;
  transition: all 0.3s ease;
}

header.hide {
  transform: translateY(-100%);
}
.main-nav:hover{
    color: #fff;
}
.main-large{
  font-size: 2.4rem;
  padding: 1rem;
  color: #d8a1e8;
}
.heading-large{
  text-align: center;
  font-size: 3rem;
  padding: 1rem;
  color: #d8a1e8;
  margin-bottom: 4rem;
}
.main-img{
    max-width: auto;
}
.concept{
    display: flex;
    justify-content: center;
    gap: 10rem;
    margin-top: 3rem;
    margin-bottom: 10rem;
}
.concept p{
    color: #383634;
    text-align: left;
    padding: 0 2rem;
}
.photos{
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 2rem;
    margin-bottom: 10rem;
}
.photos img{
    width: 30%;
}
h2{
    color: #9ecaf0;
    font-size: 2rem;
    margin-bottom: 1rem;
}
h3{
    font-size: 120%;
    margin-bottom: .8rem;
}
.type{
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr)); 
    justify-content: center;  
    justify-items: center;    
    align-items: start;
    gap: 5rem;   
    max-width: 1200px;          
    margin: 1rem auto; 
    margin-top: 2rem; 
    background-color: #fffafa;
    margin-bottom: 0 6rem;
}

.type p{
    font-size: auto;
    margin-bottom: 10rem;
    background-color: #9ecaf0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    text-align: bottom;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 10px;
}
.number{
    font-weight: 600;
    color: #9ecaf0;
}
.doctor img{
    width: 400px;
}
.doctor{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0 auto;
    margin-top: 3rem;
    gap: 0 4rem;
    margin-bottom: 10rem;
}
h2{
    font-size: 2rem;
    font-weight: 600;
    
}
.doctor p{
    font-size: 1rem;
    text-align: left;
    margin-bottom: 10rem;
}
.icon{
    color: #9ecaf0;
}
.flow{
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 3rem;
    margin-bottom: 10rem;   
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fffafa;
}
.flow-large{
    font-weight: 600;
    font-size: 18px;
}
.flow p{
    width: 70%;
    border-radius: 50%;
    background-color: #9ecaf0;
    height:200px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.flow > div {
  width: 25%;  
  text-align: left;
}

.access{
    margin: 0 auto;
    max-width: 800px;
}
.info,
.map {
  width: 100%;
  max-width: 600px; 
  margin: 0 auto;   
  border-collapse: collapse;
}
.info{
    margin-bottom: 3rem;
}
.info th{
    border-bottom: 1px solid #383634;
    text-align: left;
    font-weight: 400;
    padding: 1rem;
}
.info td{
    border-bottom: 1px solid #383634;
    padding: 1rem 0;
}
.map p{
    text-align: center;
    margin-bottom: 10rem;
    margin-top: 3rem;
}

.svgs img {
  flex-shrink: 0; /* ← Safariが画像を圧縮するバグ防止 */
}
.svgs {
    display: flex;
    flex-direction: row;
    align-items: center;   /* 縦中央揃え */
    justify-content: center; /* ← 水平方向も中央寄せ！ */
    gap: 0.5rem;
    width: 100%;
    text-align: center; 
  }

  /* Safari のズレ対策 */
  .svgs img {
    width: 40px;
    height: auto;
    display: block;
    flex-shrink: 0;
  }

  .svgs h3,
  .svgs h5 {
    margin: 0;
    line-height: 1.1;
  }
.reserve{
    text-align: center;
}
.reserve p {
  text-align: center;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

.reserve-btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 32px;
  background: #9ecaf0;
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin: 0 auto;
  transition: 0.2s;
}

.reserve-btn:hover {
  background: #00bfff;
}
.footer-cover{
    height: 4rem;
}
.copyright{
    text-align: center;
}
.to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: #d8a1e8;
  color: white;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 28px;
  text-decoration: none;
  opacity: 0.8;
  transition: 0.3s;
  z-index: 100;
}

.to-top:hover {
  opacity: 1;
  transform: translateY(-5px);
}
/* スマホ版 */
@media (max-width: 768px) {

  /* ナビをデフォルト非表示 */
  nav {
    display: none;
    position: absolute;
    top: 60px; 
    right: 0;
    background: #fff;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  /* activeがついたら表示 */
  nav.active {
    display: block;
  }

  /* ハンバーガーボタン */
  .hamburger {
    display: block;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ba55d3;
    margin-bottom: 6px;
    transition: 0.3s;
  }


  /* メニュー開いたときのアニメ（×マークに変える） */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .main-nav {
  display: block;
  flex-direction: column;
  gap: 20px;
}
.main-img{
    padding-top: 160px;
}
.heading-large{
    margin-bottom: 1rem;
}
section,
  div,
  .concept,
  .photos,
  .type,
  .doctor,
  .flow,
  .access {
    margin: 1.5rem 0;
    padding: 0;
  }

.concept{
    display: block;
    margin: 2rem 0;
    gap: 2rem;
}
.main-large{
    font-size: 2rem;
}
.h1, h2, h3, h4, h5{
    font-size: 25px;
    padding-left: 2rem;
    padding-top: 2rem;
}
.concept p{
    
}
.photos{
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-bottom: 3rem;
}
.photos img {
    width: 100%;
    max-width: 350px; 
    height: auto;
  }

.type {
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: center;
    gap: 3rem;
    width: 100%;
    margin: 0 auto 2rem;
  }

  .doctor p{
    padding: 0 2rem;
    margin-bottom: 2rem;
  }
  .doctor {
    display: flex;
    flex-direction: column;
    align-items: center; /
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    margin: 0 auto 3rem;
  }

  .doctor img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 350px; /* 画像を大きすぎないように */
    height: auto;
  }
  .flow {
    display: flex;
    flex-direction: column;
    align-items: center;   
    gap: 2rem;
    padding: 0 1rem;
    margin-bottom: 3rem;
  }
  .flow > div {
    width: 100%;          
    max-width: 300px;     
    text-align: center;   
    margin: 0 auto;
  }
  .flow p {
    margin: 1rem auto 0;
  }
  .info{
    padding: 0 2rem;
  }
  .th, td{
    font-size: 14px;
  }
.map {
  text-align: center;
}

.googlemap {
  display: inline-block;
  width: 100%;
  max-width: 600px;
  height: auto;
  padding: 0 1rem;
}
 .map p{
    text-align: left;
    font-size: 13px;
    padding: 0 1rem;
    margin-bottom: 1rem;
 }
}

/* デスクトップ版 */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}
