@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

body {
	font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
	}






/*------------------- メニュー -------------------*/
/* 最初は通常の位置に */
.nav {
  width: 100%;
  background: #fff;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* 最初は relative */
  transition: all 0.3s ease-in-out;
  z-index: 10;
}



/* 固定されるときのスタイル */
.nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); */
  background: #ffffff;
  transition: all 0.3s ease-in-out;
  z-index: 15;
}


/* メニューリスト */
.nav-list {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 1200px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* メニュー項目 */
.nav-item {
  position: relative;
}

/* メニューリンク */
.nav-item a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  padding: 7px 7px;
  display: block;
  position: relative;
  transition: color 0.3s ease;
}

/* ホバー時のエフェクト（下線アニメーション） */
.nav-item a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  background: #938068;
  transition: all 0.3s ease-out;
  transform: translateX(-50%);
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-item a:hover {
  color: #b19768;
}

/* プルダウンメニュー */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* プルダウンメニュー項目 */
.dropdown li {
  padding: 12px 20px;
}

.dropdown li a {
  text-decoration: none;
  color: #666;
  display: block;
  font-size: 14px;
  transition: background0.3s ease, padding-left 0.3s ease;
}

.dropdown li a:hover {
  background: #f4f4f4;
  padding-left: 25px;
}

/* ホバー時にプルダウンを表示 */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  z-index: 1;
}

/* ハンバーガーメニュー（スマホ対応） */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-item button {
	text-decoration: none;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    padding: 7px 7px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {


  /* ナビゲーションのスタイル */
  .nav {
    position: relative; /* ナビゲーションの位置を変更 */
    justify-content: space-between;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95); /* ナビゲーション背景 */
  }


  .nav-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }


  .nav-item a {
    padding: 15px;
    font-size: 14px;
  }


  .menu-toggle {
    display: none; /* タブレットではハンバーガーメニューを隠す */
  }
}


/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  /* メインビジュアルの上にナビゲーションを配置 */
  .nav {
    position:relative; /* メイン画像の上に固定 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 10px 15px; /* ナビゲーションのパディング */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ナビゲーションのシャドウ */
    display: flex; /* ここでflexを追加 */
    justify-content: space-between; /* 左右に配置する */
    align-items: center; /* 垂直方向に中央揃え */
    background-color: rgba(255, 255, 255, 0.95);
  }

  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 全画面の高さ */
    overflow-y: auto; /* はみ出したらスクロール */
    background: white;
    z-index: 999;
    display: none; /* デフォルトで非表示 */
    flex-direction: column;
    padding: 60px 20px 20px;
  }

  .nav-list.active {
    display: flex !important; /* ← ハンバーガーメニューで開いたときに表示 */
  }

  .nav-item {
    text-align: center;
  }

  .nav-item a {
    display: block;
    padding: 15px;
    width: 100%;
  }

  .dropdown li a {
    display: inline-block; /* 中央揃えを維持しつつ横幅に合わせる */
    padding: 12px 16px;
    background: rgba(240, 240, 255, 0.5);
    border-radius: 24px;
    display: block;
    margin: 4px 0;
  }

  .dropdown li a:hover {
    background: #f4f4f4;
  }

  /* ------------------- ここを修正します ------------------- */
  /* 不要な :hover ルールを削除またはコメントアウト */
  /* .has-dropdown:hover .dropdown {
       display: block;
  } */

  /* .nav-list .dropdown の display: none; を削除 */
  /* .nav-list .dropdown {
       display: none;
       padding-left: 1em;
       border-radius: 20px;
  } */
  /* ------------------- 修正ここまで ------------------- */

  /* アコーディオンの開閉制御（このルールはグローバル設定から持ってきてもOK） */
  .has-dropdown .dropdown {
    max-height: 0; /* デフォルトで非表示（高さ0）*/
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease; /* padding も含めるとアニメーションが滑らかに */
    padding-top: 0; /* 閉じる時のパディングを0に */
    padding-bottom: 0; /* 閉じる時のパディングを0に */
  }

  .has-dropdown.open .dropdown {
    max-height: 1000px; /* 十分に大きい値に調整して表示 */
    padding-top: 10px; /* 必要に応じて開いたときのパディングを設定 */
    padding-bottom: 10px; /* 必要に応じて開いたときのパディングを設定 */  
  }

  /* ハンバーガーメニューの表示 */
  .menu-toggle {
    display: flex;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    margin-left: auto;
  }

  /* メイン画像に合わせてナビゲーションの下に隙間を作る */
  .main-visual {
    margin-top: 60px; /* ナビゲーションの下に隙間を追加 */
  }

  /* アクティブリンクのスタイル（既存コードを維持） */
  .nav-item a.active {
    color: #333333;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    padding: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    height: 30px;
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
  }

  .nav-item a.active:hover {
    background-color: rgba(74, 144, 226, 0.2);
  }

  /* ハンバーガーメニューボタンの固定位置（既存コードを維持） */
  .menu-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: white;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
  }

/* .nav-item button {
    color: #333333;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    padding: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    height: 30px;
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
    width: 100%;
    border: none;
    font-weight: bold;
    font-size: 16px;
} */
} /* @media (max-width: 768px) の終わり */








/*------------------- ファーストビューブロック -------------------*/
.main-visual {
	position: relative;
	width: 100%;
    aspect-ratio: 16 / 9;
	 overflow: hidden;
    background-size: cover;
    background-position: center;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 2s ease-in-out; /* ふわっとフェードする */
}

.background-image.active {
  opacity: 1;
  z-index: 2;
}

.image1 {
  background-image: url("../img/main.png");
}

.image2 {
  background-image: url("../img/AdobeStock_709352392.jpg"); /* ファイル名は正確に */
}


.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #dddddd29;
  z-index: 3;
}

/* キャッチコピー */
.text-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 4;
  top: 27%;
	padding: 15px;
}

.size3rem {
  font-size: 50px;
  font-weight: 600;
  line-height: 1.5;
  /* text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.6), 0 0 10px rgba(204, 183, 115, 0.2); */
  /* text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.6), 0 0 10px #d5892e; */
  margin-bottom: 30px;
  margin-left: 70px;
  margin-top: 50px;
  font-family: serif;
}

.bgwrap {
  position: relative;
  display: inline-block;
  font-family: serif;
  /* padding: 0.3em 0.8em; */
  /* background: linear-gradient(to right, rgb(255, 255, 255), rgb(250, 243, 220));
  box-shadow: 0 4px 20px rgba(255, 215, 115, 0.2);
  backdrop-filter: blur(4px); */
}

.size1-5rem {
  font-size: 1.2rem;
  color: #5c4a1f;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-left: 70px;
}
.bgwrap .catchhighlight {
  background: linear-gradient(90deg, #090c9b, #3066be);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    /* text-shadow: 0 0 8px rgb(123 100 33 / 40%); */
    font-size: 55px;
}

.catchhighlight {
  background: linear-gradient(90deg, #d6b161, #f8e5ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    /* text-shadow: 0 0 8px rgb(123 100 33 / 40%); */
    font-size: 1.5rem;
}

/* 数字 */
.appeal {
  /* padding: 0 45px; */
  margin: 50px 0;
  display: flex;
  flex-direction: column;
}
.appeal dl {
  display: grid;
  grid-template-columns: 10em 1fr;
  align-items: end;
  border-bottom: 2px solid #ffe7a2;
  width: 34.7em;
  margin: 0 1em 1.6em;
  color: #69492a;
}

.appeal dt {
  background: linear-gradient(135deg, #f1e0b5 20%, #f5e2a1 80%);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.5em 1px;
}

.appeal i {
  /* font-size: 64%; */
  display: block;
}

.appeal dd {
  font-size: 1.4rem;
  padding: 0 0 0 0.4em;
  display: flex; /* これでdd内の要素を横並びにする */
  align-items: flex-end;
  margin: 0 0 0.5rem;
}

.appeal dl dd em {
  margin: 0 0.2em 0;
}

.appeal dd em {
  font-size: 3rem;
  color: #d9c173;
  letter-spacing: -0.06em;
  line-height: 1;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 0 25px rgba(255, 255, 255, 0.6); /* テキストシャドウ */
}

.appeal .minitxt {
  font-size: 1.4rem;
  margin-left: 5px;
}



.white {
  color: white;
}
.tel {
  font-size: 30px;
  color: #363636;
}


.kkm {
  width: 34.9em;
  aspect-ratio: 524 / 210;
  min-height: max(15vw, 195px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url(..img/mainboxbg.png);
  margin: 50px;
  padding: 0.8em 0px 0px 16.6em;
  text-align: left;
}
.kkm em {
  font-size: 30px;
  margin: 0 5px;
  color: #c02828;
}
.kkm ul {
  display: grid;
  margin: 25px 0;
}
.kkm li {
  margin: 5px 0;
}

.kkm li span {
  display: inline-block;
  font-size: 1.3rem;
  padding-left: 1.2em;
  background-repeat: no-repeat;
  background-size: 1.1em;
  background-image: url(..img/check.png);
  border-bottom: 1px solid rgb(97, 97, 97);
  background-position: 0px 1em;
  margin: 0 0 5px;
  background-position: left center;
}
.kkm li i {
  font-size: 88.6%;
}
.kkm p {
  font-size: 88.6%;
  text-align: right;
  margin-right: 2em;
}

/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width: 768px) {

.main-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* キャッチコピー */
.text-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 4;
  top: 27%;
  padding: 15px;
}

.size3rem {
  font-size: 24px; /* スマホサイズにフォントを縮小 */
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 30px;
  margin-left: 0;
  margin-top: 20px;
  font-family: serif;
}


.size1-5rem {
  font-size: 11px;
  color: #5c4a1f;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-left: 0;
}

/* catchhighlight調整 */
.catchhighlight {
  background: linear-gradient(90deg, #d6b161, #f8e5ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 15px; /* スマホサイズにフォントを縮小 */
}


.bgwrap .catchhighlight {
  font-size: 24px; /* スマホ用に縮小 */
}



}










/*------------------------------------- 特徴キャッチコピーブロック --------------------------------------*/
.flex {
  display: flex;
}
.leftbox, .rightbox {
  width: 50%;
}

.featureimg {
  margin: 0 auto;
}
.featurep {
  padding: 50px;
  line-height: 2;
}
.intro_section {
  width: 64%;
  max-width: 762px;
  line-height: 1;
  white-space: nowrap;
  margin: 0 auto 30px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-style: normal;
}

.intro_section p {
  position: relative;
  text-align: center;
  line-height: 1.8;
}

.intro_section p:last-of-type {
  font-size: 50px;
  line-height: 1.4;
   font-family: serif;
   color: black;
}

.intro_section img {
  position: relative;
  width: 35%;
  display: inline-block;
  transform: translate(-1em, 0.5em);
  transition: all 1s;
  opacity: 0;
}


.intro_section img.animation_on {
  transform: translate(0, 0);
  opacity: 1;
}

.intro_section img.effect_txt2 {
  width: 33%;
  transition-delay: 0.5s;
}
/* 文字 */
.text_container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 3rem;
  line-height: 1.5;
}

.text_container p {
  position: relative;
  margin: 0;
  font-size: 55px;
   font-family: serif;
}

.gradient_text {
  display: inline-block;
  background: linear-gradient(135deg, #1F3A93 0%, #4A69BD 40%, #A2C5E8 100%);
  -webkit-background-clip: text;
  color: transparent;
  transform: rotate(-2deg); /* 斜めの角度 */
  font-weight: 700;
}

.gradient_text::after {
  content: '';
  display: block;
  width: 100%;
  height: 0.5px;
  background-color: #666;
  position: absolute;
  bottom: -5px;
  left: 0;
  transform: rotate(-3deg); /* 下線も斜めに */
}

.normal_text {
  font-size: 1em;
  color: #666;
  transform: none; 
}

/* 背景 */
.catch {
  background: radial-gradient(circle, #fff 20%, #f0f0f0 80%);
  padding: 100px 0;
  position: relative; /* セクションを基準にする */
  z-index: 0;
}
.catch .catchcopy {
  position: absolute;
  top: 0;
  /* left: calc(-50vw + 45rem); */
  z-index: -1;
}
picture.catchcopy.sp {
  display: none;
}
/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .featurep {
    padding: 0 50px;
  }
  
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  /* 見出し */
  .intro_section p:last-of-type{
    font-size: 20px;
  }
  .text_container p  {
    font-size: 20px;
  }
  .flex {
    display: block;
  }
  .leftbox, .rightbox {
    width: 100%;
  }
  .featurep {
    padding: 10px;
  }
  
  .catch .catchcopy {
      left: 0;
      top: 0;
  }

  .catchn .catchcopy img {
      width: 100vw;
  }

.m40 {
    text-align: left;
    margin-top: 30px;
    line-height: 2;
    font-size: 14px;
}



  
}

/*-------------------------------------- 特徴ブロック --------------------------------------*/

/* ---------title部分--------- */
.feature {
  /* display: flex; */
  justify-content: center;
  align-items: center;
  padding-bottom: 0;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 50px; 
  color: black;
}
.title-container::after {
  content: "Point"; 
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10rem;
  color: rgba(70, 130, 180, 0.2);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}


/* 左側のテキスト */
.ttleleft {
  color:black;
  line-height: 1.6;
   font-family: serif;
}

/* 数字 */
.number {
  font-family:serif;
  font-size: 10rem;
  color: #1F3A93;
  position: relative;
}

/* 背景の装飾テキスト */
.script-text {
  font-family:'Noto Sans JP', sans-serif;
  font-size: 10rem;
  color: rgba(70, 130, 180, 0.2);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

/* 数字と特徴のセット */
.number-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: serif;
}

/* 「つの特徴」部分 */
.horizontal {
  display: flex;
  align-items: center;
  gap: 5px;
  color:black;
}


/* ---------コンテンツ部分--------- */
.featurebox {
  position: relative;
  padding-top: 50px;
  margin-bottom: 30px;
  /* height: 350px; */
}

.featurebox::before {
  position: absolute;
  content: "";
  width: 50%;
  height: 100%;
  top: 0;
  z-index: -1;
}

.feature-box1::before,
.feature-box3::before,
.feature-box5::before {
  right: 0;
}
.feature-box2::before,
.feature-box4::before {
  left: 0;
}
.feature-box1::before {
  background: url(../img/treatmentroom-background.jpeg) no-repeat right top;
  background-size: 100% auto;
}
.feature-box2::before {
  background: url(../img/Cavitytreatment-equipment.jpeg) no-repeat right top;
  background-size: 100% auto;
  
}

.feature-box3::before {
  background: url(../img/Director.jpg) no-repeat right top;
  background-size: 40% auto;
  margin-right: 150px;
}


.feature-box4::before {
  background: url(../img/treatment-tools.jpeg) no-repeat right top;
  background-size: 100% auto;
}

.feature-box5::before {
  background: url(../img/feauture1.jpeg) no-repeat right top;
  background-size: 100% auto;
}



.feature-box2 {
  position: relative;
  /* background: url(../img/AdobeStock_491538509.jpeg) no-repeat right bottom; */
  background-size: 55% auto;
  padding-bottom: 230px;
  /* margin-bottom: 80px; */
}


.feature-box4 {
  position: relative;
  /* background: url(../img/AdobeStock_491538509.jpeg) no-repeat right bottom; */
  background-size: 55% auto;
  padding-bottom: 230px;
  /* margin-bottom: 80px; */
}

.container {
  width: 94%;
  padding: 0 3%;
  max-width: 1300px;
  margin: 0 auto;
  min-width: auto;
  height: 400px;
}



.tokutyou1 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100% ;
  font: inherit;
  vertical-align: baseline;
  text-align: left;
}

.tokutyou2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100% ;
  font: inherit;
  vertical-align: baseline;
  text-align: left;
}

.tokutyou3 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-align: left;
}

.tokutyou4 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-align: left;
}

.tokutyou5 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-align: left;
}


/* 一つ目のコンテンツ */
.feature-box1 .feature-content {
  width: 50%;
  padding-left: 6%;
  margin-bottom: 70px;
}

/* 二つ目のコンテンツ（さらに右寄せ） */
.feature-box2 .container {
    display: flex;
    justify-content: flex-end; /* コンテンツを右側に寄せる */
    max-width: 1100px; /* 最大幅を少し狭くする */
    margin-left: auto; /* 左側の余白を増やして、右側に寄せる */
}
/* 三つ目のコンテンツ（さらに右寄せ） */
.feature-box3 .feature-content {
  width: 60%;
  padding-left: 6%;
  margin-bottom: 70px;
}

.feature-box2 .feature-content {
    width: 45%; 
    text-align: left;
}


.feature-box4 .container {
    display: flex;
    justify-content: flex-end; /* コンテンツを右側に寄せる */
    max-width: 1100px; /* 最大幅を少し狭くする */
    margin-left: auto; /* 左側の余白を増やして、右側に寄せる */
}


.feature-box4 .feature-content {
    width: 45%; 
    text-align: left;
}



/* feature-content 内の背景数字（デフォルト：左下） */
.feature-content::before {
  content: attr(data-number);
  position: absolute;
  font-size: 150px;
  color: #4da1d11f;
  font-weight: bold;
  z-index: -1;
}

/* 1つ目と3つ目（左下） */
.feature-box1 .feature-content::before {
  left: 10%;
  bottom: 0;
  transform: translate(-10%, 30%);
}

/* 2つ目（右下） */
.feature-box2 .feature-content::before {
  right: 10%;
  bottom: 200px;
  transform: translate(10%, 30%);
  z-index: 2;
}
/* 3つ目（右下） */
.feature-box3 .feature-content::before {
  left: 10%;
  bottom: 30px;
  transform: translate(-10%, 30%);
}
/* 4つ目（右下） */
.feature-box4 .feature-content::before {
  left: 80%;
  bottom: 220px;
  transform: translate(-10%, 30%);
}
/* 3つ目（右下） */
.feature-box5 .feature-content::before {
  left: 10%;
  bottom: 0;
  transform: translate(-10%, 30%);
}

/* タイトル・番号 */
span.feature-number {
  font-size: 35px;
  padding-right: 5px;
}

.feature-title {
  position: relative;
  color: #3066be;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 15px;
   font-family: serif;
   font-weight: bold;
}

.feature-subtitle {
  line-height: 1.3;
  letter-spacing: .1em;
  font-family: serif;
}

h3.feature-subtitle {
  font-size: 24px;
}
}
/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .featurebox {
    height: auto;
  }
  .featurebox::before {
    top: 24%;
  }
  .feature-box2 {
    padding-bottom: 85px;
  }
  

.feature-subtitle {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: .1em;
}


.feature-title {
    position: relative;
    color: #3066be;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 15px;
    font-family: serif;
}

.tokutyou1 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 18px !important ;
    font: inherit;
    vertical-align: baseline;
    text-align: left;
}


.tokutyou2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 18px !important ;
    font: inherit;
    vertical-align: baseline;
    text-align: left;
}




.tokutyou3 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 18px !important ;
    font: inherit;
    vertical-align: baseline;
    text-align: left;
}



.tokutyou4{
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 18px !important ;
    font: inherit;
    vertical-align: baseline;
    text-align: left;
}



.tokutyou5{
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 18px !important ;
    font: inherit;
    vertical-align: baseline;
    text-align: left;
}

.feature-box3 .feature-content {
    width: 50%;
    text-align: left;
    padding-left: 3px;
}

.feature-box5 .feature-content {
    width: 50%;
    text-align: left;
    padding-left: 3px;
}






}








/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {

.title-container {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      position: relative;
      font-family: 'Noto Sans JP', sans-serif;
      font-size: 20px;
      color: black;
}
}

@media (max-width: 768px) {
  .featurebox .container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap:  20px; /* テキストと画像の間隔 */
    flex-wrap: wrap; /* 横幅が足りない場合の折返し対策 */
    padding: 10px 15px; /* 左右に余白を追加して画面端に当たらないように */
   height: 200px;
  }

  .feature-content {
    flex: 1 1 50%;
    box-sizing: border-box;
  }


  .feature-box1::before {
    background: url(../img/Dentist male treatment.jpeg) no-repeat right top;
    background-size: 100% auto;
    border-radius: 6px; /* 角丸があるとさらに美しく見えます（任意） */
    max-width: 90%;
    /* background-color:rgba(255,255,255,0.8); */
   background-blend-mode:lighten;
}


  .feature-box2::before {
    background: url(../img/Cavity treatment equipment.jpeg) no-repeat right top;
    background-size: 100% auto;
    border-radius: 6px; /* 角丸があるとさらに美しく見えます（任意） */
    max-width: 90%;
    /* background-color:rgba(255,255,255,0.8); */
   background-blend-mode:lighten;
}


  .feature-box3::before {
    background: url(../img/Director.jpg) no-repeat right top;
    background-size: 100% auto;
    border-radius: 6px; /* 角丸があるとさらに美しく見えます（任意） */
    /* background-color:rgba(255,255,255,0.8); */
   background-blend-mode:lighten;
  top: -230px; /* ← これで画像を上に浮かせる */
  }

 
  .feature-box4::before {
    background: url(../img/treatment tools.jpeg) no-repeat right top;
    background-size: 100% auto;
    border-radius: 6px; /* 角丸があるとさらに美しく見えます（任意） */
    /* background-color:rgba(255,255,255,0.8); */
   background-blend-mode:lighten;
  }

  
  .feature-box5::before {
    background: url(../img/Inspection explanation.jpeg) no-repeat right top;
    background-size: 100% auto;
    border-radius: 6px; /* 角丸があるとさらに美しく見えます（任意） */
    /* background-color:rgba(255,255,255,0.8); */
   background-blend-mode:lighten;
  }



.feature-box1 .feature-content::before {
    left: 10px;
    top: 240px;
    transform: translate(10%, 30%);
    z-index: 2;
}



.feature-box2 .feature-content::before {
    right: 2%;
    margin-top: 20px;
    transform: translate(10%, 30%);
    z-index: 2;
}


.feature-box3 .feature-content::before {
    right: 10%;
    top: 220px;
    transform: translate(10%, 30%);
    z-index: 2;
}


.feature-box4 .feature-content::before {
    left: 60%;
    top: 220px;
    transform: translate(10%, 30%);
    z-index: 2;
}



.feature-box5 .feature-content::before {
    left: 220px;
    top: 150px;
    transform: translate(10%, 30%);
    z-index: 2;
}






/*   テキストの可読性も向上させる
  .feature-title {
    font-size: 16px;
    margin-top: 0;
    padding-right: 5px;
    padding-left: 5px;
  }

  .feature-subtitle {
    font-size: 16px;
    line-height: 1.4;
   padding-right: 5px;
    padding-left: 5px;
  }

  .tokutyou1,
  .tokutyou2,
  .tokutyou3,
  .tokutyou4,
  .tokutyou5 {
    font-size: 14px;
    line-height: 1.6;
    padding-right: 5px;
    padding-left: 5px;
  } */
}

@media (max-width: 768px) {
  /* 各 featurebox の上下余白を調整（詰めすぎない） */
  .featurebox {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    position: relative;
  }

  .featurebox .container {
    height: auto !important;
    padding: 0 15px;
  }

  /* 番号背景・画像の位置と不透明度を調整して視認性UP */
  .feature-content::before {
    opacity: 0.08 !important;
    top: 0;
    bottom: auto;
    transform: none;
    z-index: 0;
  }

  /* テキスト側を最前面にしっかり表示 */
  .feature-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.8); /* 背景が被る場合の対策 */
    padding: 10px 0;
  }

/*   .feature-title,
  .feature-subtitle,
  .tokutyou1,
  .tokutyou2,
  .tokutyou3,
  .tokutyou4,
  .tokutyou5 {
    position: relative;
    z-index: 2;
  } */
}


@media (max-width: 768px) {
  .featurebox {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    position: relative;
  }

  .feature-box2 {
    margin-bottom: 10px !important;
  }

  .feature-box3 {
    margin-top: 10px !important;
  }

  /* 4と5の間を縮める */
  .feature-box4 {
    margin-bottom: 10px !important;
  }

  .feature-box5 {
    margin-top: 10px !important;
  }

  .featurebox .container {
    height: auto !important;
    padding: 0 15px;
  }

  .feature-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 10px 0;
  }

  .feature-content::before {
    opacity: 0.08 !important;
    top: 0;
    bottom: auto;
    transform: none;
    z-index: 0;
  }

  .feature-title {
    position: relative;
    z-index: 2;
    padding: 0 5px;
    line-height: 1.6;
    font-size: 14px;
    color:#1F3A93;
  }

h3.feature-subtitle {
  font-family: serif ;
  font-size: 17px ;!important
  line-height: 1.6;
  padding: 0 5px;
  position: relative;
  z-index: 2;
  font-weight: bold;
}


  
  
  .tokutyou1
	{
    position: relative;
    z-index: 2;
    padding: 0 5px;
    line-height: 1.6;
    font-size: 14px;
  }
  .tokutyou2
	{
    position: relative;
    z-index: 2;
    padding: 0 5px;
    line-height: 1.6;
    font-size: 14px;
  }
  .tokutyou3
	{
    position: relative;
    z-index: 2;
    padding: 0 5px;
    line-height: 1.6;
    font-size: 14px;
  }
  .tokutyou4
	{
    position: relative;
    z-index: 2;
    padding: 0 5px;
    line-height: 1.6;
    font-size: 14px;
  }
  .tokutyou5 
	{
    position: relative;
    z-index: 2;
    padding: 0 5px;
    line-height: 1.6;
    font-size: 14px;
  }

  /* 番号の再表示 */
  .feature-content {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 10px 0;
  }

  .feature-content::before {
    content: attr(data-number);
    position: absolute;
    font-size: 80px;
    font-weight: bold;
    color:#0072BC;
    opacity: 0.2;
    top: -10px;
    right: 10px;
    z-index: 0;
  }

}
 /*-------------------------------------- 選ばれる理由ブロック --------------------------------------*/

/* --------- タイトル部分 --------- */
.top50 {
  top: 50px;
}
.reasonttl {
line-height: 1.2;
color: #666;
text-align: center;
font-size:50px;
font-family: serif;
color: black;
}

.readonnumber {
  color: #6d92d0;
  text-shadow: 2px 4px 3px rgb(126 126 126 / 30%);
  font-size: 80px;
}
.txcenter {
  position: relative; 
}

/* .reasonttl::after {
  content: "Reason"; 
  font-family: 'Great Vibes', cursive;
  font-size: 10rem; 
  color: rgba(70, 130, 180, 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  white-space: nowrap;
} */

.reason {
  position: relative;
  /* margin-top: max(8.929vw, 116px); */
	padding: max(6.571vw, 85px) 0 0;
	background-image: url(../images/bg3.png);
	background-size: cover;
	background-position: center top;
	box-sizing: border-box;
	/* aspect-ratio: 1400 / 1086; */
}

.reason::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 120px; /* さらに短く */
  background: linear-gradient(to bottom,
        #fbfff1 100%
    );
  pointer-events: none;
  z-index: -2;

}

/* --------- コンテンツ部分 --------- */
.team-section {
  background: url(..img/setumei.png) no-repeat top right 4.571% / max(57.071vw, 741.927px);
  margin-bottom: max(7.143vw, 92.857px);
}

.team-title {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: max(.786vw, 10.214px);
  margin-bottom: max(2.214vw, 28.786px);
margin-top:120px;
font-family:'Noto Sans JP', sans-serif;
}
.team-title h2 {
  padding: 0 .5em;
}

.riyuu1{
  text-align: center;
  font-size: 16px;
}





.team-title h2 {
  font-size: max(3.276vw,42.584px);
  line-height: 1.1em;
  height: 1.35em;
  color: #fff;
  display: inline-flex;
  align-items: flex-end;
  background: url(../images/image_with_92B9AA_and_729889_stripes.png) repeat top left / max(.429vw, 5.571px);
  letter-spacing: .06em;
}
.team-title p {
  font-size: max(3.276vw,42.584px);
  line-height: 1.1em;
  height: 1.35em;
  color: #fff;
  display: inline-flex;
  align-items: flex-end;
  background: url(../images/image_with_92B9AA_and_729889_stripes.png) repeat top left / max(.429vw, 5.571px);
  letter-spacing: .06em;
}

.team-cont {
  /* background: linear-gradient(to top, #fff 15%, transparent 15%), url(../images/dot.png) repeat top left / max(.571vw, 7.429px);
  padding: max(2.143vw, 27.857px) 0 0; */
  margin-top: 90px;
}
.team-item-list {
  display: flex;
  justify-content: center;
  column-gap: max(3.714vw, 48.286px);
}
.team-item {
  width: max( 300px);
  aspect-ratio: 350 / 400;
  background: #fff;
  box-shadow: 0px 4px 7px 0px rgba(67, 67, 67, .16);
  position: relative;
  padding: max(1.714vw, 22.286px) max(3vw, 39.000px);
  box-sizing: border-box;
  
}
.team-num {
  display: block;
  width: max(3.929vw, 51.071px);
  position: absolute;
  top: -1.25%;
  left: 4.857%;
  mix-blend-mode: multiply;
}
.team-num img {
width: 40px;
}
.team-category {
  text-align: center;
  line-height: 1.3em;
  font-size: max(1.2rem);
  margin-bottom: .25em;
  letter-spacing: .08em;
  color: #363636;
}
.team-item figure {
  margin-bottom: max(1.214vw, 15.786px);
}
ol, ul { list-style: none; }
.team-item:after {
  content: \"\";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 18px 18px;
  border-color: transparent transparent #acacac;
  position: absolute;
  bottom: 7px;
  right: 7px;
}
.team-item01 h3 .team-en { color: #add9e2; }
.team-category .team-en {
  display: block;
  line-height: 1.17em;
  font-size: 62%; /* サイズはそのまま */
  text-align: center; /* 中央揃え */
  margin-top: 0.2em; /* 日本語との間隔を調整 */
  color: #add9e2; /* 色は既存のものを維持 */
}
.team-txt62 { font-size: 62%; }
.team-txt-list li {
font-size: 15px;
line-height: 2;
color: #363636;
align-items: stretch;
}



.team-item01 li .team-underline,
.team-item02 li .team-underline,
.team-item03 li .team-underline,.team-item04 li .team-underline{ border-bottom: 2px solid #add9e2; }
.team-item li .team-underline { text-decoration: none; }
@media (min-width: 768px) and (max-width: 1050px) {

}
/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
	.team-title h2,
	.team-title p{
		font-size: 25px;
	}
	.team-num img {
		width: 40px;
	}

.riyuu1 {
    text-align: left;
    font-size: 18px;
    padding: 20px;
}





@media screen and (min-width: 768px) and (max-width: 1024px) {
  .team-item-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列レイアウト */
    gap: 24px 32px; /* 縦横の隙間 */
    padding: 0 20px;
  }

  .team-item {
    width: 100%; /* 親グリッドに合わせて調整 */
    aspect-ratio: auto;
  }

  .team-title h2,
  .team-title p {
    font-size: 24px;
  }

  .riyuu1 {
    text-align: left;
    font-size: 16px;
    padding: 16px;
  }

  .team-num {
    left: 16px;
    top: -12px;
  }
}











}
/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media screen and (max-width:768px) {
	
.team-num img {
  width: 30px;
}
.team-title h2,
.team-title p{
  font-size: 25px;
}
.team-desc {
  padding:15px 5px;
  margin:0;
  width:100%;
  font-size: 15px;
}
.team-title h2{
  padding: 0;
}
}
@media screen and (max-width:543px) {
.team-title h2,
.team-title p{
  font-size: 15px;
}
.team-item-list{
  flex-direction: column; 
      justify-content: center;
      align-items: center; 
      row-gap: max(3.714vw, 48.286px); 
      column-gap: 0; 
}


.reasonttl {
    line-height: 1.2;
    color: #666;
    text-align: center;
    font-size: 24px;
    font-family: serif;
    color: black;
}

.mfs27 {
		font-size:24px;
	}
	.mfs30 {
		font-size: 24px;
	}

.riyuu1 {
    text-align:left !important;
    font-size: 14px;
    padding:5% ;
}

.readonnumber {
    color: #6d92d0;
    text-shadow: 2px 4px 3px rgb(126 126 126 / 30%);
    font-size: 30px;
}

}

/*-------------------------------------- ピックアップブロック --------------------------------------*/

/* 見出し */
.picuph2 {
  font-size: 50px;
  font-weight: normal;
  text-align: center;
   font-family: serif;
}
.picuph2-title {
  font-size:50px;
  font-weight: normal;
  text-align: center;
   font-family: serif;
}

.colgr {
  color: black;
}

.highlight {
  color: #3066be;
  text-shadow: 2px 4px 3px rgb(126 126 126 / 30%);
  font-size: 55px;
}

.underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.dots,
.dots1 {
  position: relative;
}
.dots1::before{
  content: "・・";
    position: absolute;
    top: -40px;
    left: 52%;
    transform: translateX(-50%);
    font-size: 50px;
    letter-spacing: 4px;
    color: #6d92d0;
}
.dots::before {
  content: "・・・・";
    position: absolute;
    top: -40px;
    left: 52%;
    transform: translateX(-50%);
    font-size: 50px;
    letter-spacing: 4px;
    color: #6d92d0;
}


.flex_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background-color: #fff;
  position: relative;
  border-radius: 10px;
}
.flex_box2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background-color: #fff;
  position: relative;
  border-radius: 10px;
  gap: 20px;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 25px;
  color: #3b9ad188;
  letter-spacing: 2px;
  font-weight: bold;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  border-left: 3px solid #3b89d1;
  /* padding-left: 5px; */
}
.vertical-text2 {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 25px;
  color: #3b9ad188;
  letter-spacing: 2px;
  font-weight: bold;
  position: absolute;
  right: 60%;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  border-left: 3px solid #3b89d1;
}
.vertical-text2-2 {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 25px;
  color: #3066be;
  letter-spacing: 2px;
  font-weight: bold;
  position: absolute;
  right: 58%;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  border-left: 3px solid #3066be;
  line-height: 30px;
  margin-top: 30px;
}
.pickupbox2 {
  width: 60%;
  padding-right: 20px;
  background-color: rgba(59, 137, 209, 0.05);
  border-radius: 5px;
  margin: 0 0 0 15px;
  padding: 15px 20px;
}

.pickupbox2 h3 {
  font-size: 24px;
  color: #3b89d1;
  border-bottom: 2px solid #3b89d1;
  padding-bottom: 5px;
  display: inline-block;
   font-family: serif;
}

.pickupbox2-2 {
  width: 60%;
  padding-right: 20px;
  background-color:#fbfff1;
  border-radius: 5px;
  margin: 0 0 0 15px;
  padding: 15px 20px;
}
.pickupbox2-2 h3 {
  font-size: 24px;
  color: #3066be;
  border-bottom: 2px solid #3066be;
  padding-bottom: 5px;
  display: inline-block;
}

.pickupbox1 {
  width: 40%;
  display: flex;
  justify-content: center;
  margin: 10px;
}

.pickup-image {
  width: 90%;
  max-width: 500px;
  height: auto;
}

/* リストのデザイン */
.picup-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.picup-list li,
.picup-list2 li{
  font-size: 16px;
  color: #666;
  padding-left: 25px;
  position: relative;
  margin-bottom: 8px;
  margin-top: 8px;
}

.picup-list li::before {
  content: '✔'; /* チェックマーク */
  position: absolute;
  left: 0;
  color: #3b89d1;
  font-weight: bold;
}

.picup-list2 li::before {
  content: '✔'; /* チェックマーク */
  position: absolute;
  left: 0;
  color: #3066be;
  font-weight: bold;
}

/* 強調デザイン */
.pickupbox2 p span {
  font-size: 20px;
  color: #3b89d1;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.pickupbox2 p span::after {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  background-color: #3b89d15b;
  position: absolute;
  bottom: 5px;
  /* left: -5px; */
  z-index: 0;
  /* border-radius: 4px; */
}

.pickupbox2-2 p span {
  font-size: 20px;
  color: #3066be;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.pickupbox2-2 p span::after {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  background-color: #b5a9c93b;
  position: absolute;
  bottom: 5px;
  /* left: -5px; */
  z-index: 0;
  /* border-radius: 4px; */
}

/* buttonデザイン 青 */
.pickup-btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.pickup-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.pickup-btn:hover {
  background: linear-gradient(135deg, #00c6ff, #007bff);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.5);
}

.pickup-btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.pickup-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* buttonデザイン　紫 */
.pickup-btn-purple {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #3066be, #b4c5e4); /* 上品なくすみ紫 */
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(154, 123, 191, 0.4);
}

.pickup-btn-purple::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.pickup-btn-purple:hover {
  background: linear-gradient(135deg, #C8A2C8, #9A7BBF);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(154, 123, 191, 0.5);
}

.pickup-btn-purple:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(154, 123, 191, 0.3);
}

.pickup-btn-purple:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.picup{
  margin-top: 200px;
}
/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .vertical-text2-2 {
    right: 57%;
  }
}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */

@media (max-width: 768px) {


.highlight {
    color: #3066be;
    text-shadow: 2px 4px 3px rgb(126 126 126 / 30%);
    font-size: 24px;
    font-family: serif;
}

.picup{
  margin-top: 150px;
}


  .picuph2 {
    font-size: 22px;
  }

   .picuph2-title {
    font-size: 22px;
  }
  .dots::before {
    content: none;
  }
  .dots1::before {
    content: none;
  }
  /* 1つ目 */
  .flex_box {
      flex-direction: column-reverse;
      align-items: stretch;
      padding: 15px;
  }
  /* 2つ目 */
  .flex_box2 {
    flex-direction: column;
    padding: 15px;
  }
  .pickupbox2-2 {
    width: 100%;
    margin: 0;
    padding: 10px;
    font-size: 14px;
  }
  .pickupbox2, .pickupbox1 {
      width: 100%;
      padding: 20px;
      margin: 0;
  }
  .pickupbox2 {
      padding: 14px;
      border-left: none;
      font-size: 14px;
  }
  .vertical-text {
      position: relative;
      left: auto;
      top: auto;
      transform: none;
      margin-bottom: 10px;
  }


.pickupbox2-2 p span {
    font-size: 17px;
    color: #3066be;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.pickupbox2-2 h3 {
    font-size: 20px;
    color: #3066be;
    border-bottom: 2px solid #3066be;
    padding-bottom: 5px;
    display: inline-block;
    font-family: serif;
    margin-bottom: 10px;
}






.picup-list li, .picup-list2 li {
    font-size: 14px;
    color: #666;
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
    margin-top: 10px;
}


.pickupbox2 h3 {
    font-size: 20px;
    color: #3b89d1;
    border-bottom: 2px solid #3b89d1;
    padding-bottom: 5px;
    display: inline-block;
    font-family: serif;
    margin-bottom: 10px;
}

.pickupbox2 p span {
    font-size: 17px;
    color: #3b89d1;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

}





/*------------------- 院長紹介 -------------------*/
/* === 全体のレイアウト === */
.intyou {
  background: linear-gradient(
    to bottom,
    rgba(235, 245, 255, 0.9) 0%,  /* 明るいブルー */
    rgba(220, 233, 246, 0.8) 40%, /* 中間色 */
    rgba(200, 220, 240, 0.9) 100% /* 濃いブルー */
  );   padding: 40px;
  backdrop-filter: blur(10px);
  position: relative;
}

.intyou::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#2f6b7c56 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.2; /* 控えめなテクスチャ */
  z-index: 0;
}
.profile-container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  align-items: center;
  gap: 40px;
  padding: 60px;
  background: #ffffff91;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}



/* === 左側の画像エリア === */
.profile-image {
  flex: 1;
  max-width: 450px;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* === 右側のテキストエリア === */
.profile-text {
  flex: 2;
  padding: 10px;
}

/* === 見出しデザイン === */
.clinic-name {
  font-size: 20px;
  font-weight: bold;
  color: #555;
}

.position {
  font-size: 18px;
  font-weight: normal;
  color: #777;
}

.doctor-name {
  font-size: 26px;
  font-weight: bold;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.jp-name {
  font-size: 26px;
  font-weight: bold;
  margin: 0 10px;
}

.en-name {
  font-size: 16px;
  font-weight: normal;
  color: #977c4c;
}

/* === 罫線デザイン === */
.profile-line {
  width: 100%;
  border: 1px solid #ddd;
  margin: 20px 0;
}
/* `.profile-details` を2カラムレイアウトにする */
.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
}
.profile-details li {
  font-size: 12px;
}

/* 各セクションのスタイル */
.profile-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 見出しデザイン */
.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #977c4c;
  margin-bottom: 10px;
}

/* 略歴は1列全体を使う */
.profile-section.history {
  grid-column: span 2; /* 2カラムをまたぐ */
}


/* === 略歴・学会・講演情報のデザイン === */
.profile-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #977c4c;
  margin-bottom: 10px;
}

.profile-info {
  list-style: none;
  padding: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.profile-info li {
  margin-bottom: 8px;
}

.year {
  font-weight: bold;
  color: #977c4c;
}


















/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  .intyou {
    padding: 15px;
  }

  .profile-details {
      grid-template-columns: 1fr; /* 1カラムに変更 */
  }

  .profile-section.history {
      grid-column: span 1; /* 1カラムで表示 */
  }

  .profile-container {
      flex-direction: column;
      text-align: center;
      padding: 0;
  }

  .profile-image {
      max-width: 80%;
  }

  .profile-text {
      padding: 15px;
      width: 90%;
  }
  .profile-section {
    padding: 10px;
  }

  .doctor-name {
      flex-direction: column;
      text-align: center;
  }

  .jp-name {
      font-size: 28px;
  }



  .en-name {
      font-size: 14px;
  }

  .section-title {
      font-size: 18px;
  }


.doctor-name {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    align-items: center;
}




.profile-info {
    list-style: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}






}




/*-------------------------------------- 症例ブロック --------------------------------------*/
.case-slider {
  background-image: url("..img/casebg.jpg"); 
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  /* background-attachment: fixed; */
  position: relative;
  padding: 60px 0;
  margin: 0 auto;
}
.case-slider::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color:#f0f0f0;
  z-index: 1;
}
.case-slider > * {
  position: relative;
  z-index: 2;
}

.case-inner {
  gap: 40px;
  max-width: 1300px;
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}
/* 見出し */
.case-header {
  text-align: center;
  padding: 60px 20px;
   font-family: serif;
  color: #5b4633;
}

.case-main {
  font-size:50px;
  line-height: 1.2;
  font-weight: 400;
  color: black;
}

.case-main .gold {
  font-size: 2.5rem;
  letter-spacing: 0.03em;
}


.case-main .highlight-line {
  display: inline-block;
  position: relative;
  font-size: 3.5rem;
  margin-top: 10px;
  background: linear-gradient(135deg, #090c9b, #3066be, #b4c5e4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}




/* カルーセルブロック */
.case-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.case-carousel::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -30px;
  right: -30px;
  bottom: -20px;
  /* background: rgba(255, 255, 255, 0.8);  */
  border-radius: 16px;
	z-index: -1;
}

.case-carousel-track {
  display: flex;
  transition: transform 0.7s ease-out;
  width: 100%;
}

.case-carousel-slide {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 100%;
  box-sizing: border-box;
}

.case-slide {
  display: flex;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
	margin: 20px;
}

.case-image-area {
  width: 40%;
  position: relative;
  overflow: hidden;
  padding: 15px;
}

.case-image-area img {
  width: 100%;
  height: 100%;
  display: block;
}

.case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px 15px;
  font-size: 14px;
}

.case-tag {
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}

.case-cta {
  font-size: 12px;
  opacity: 0.8;
  color: #fff;
}

.case-info {
  width: 100%;
  padding: 15px;
}

.case-bfafp {
  max-width: 873px;
  margin: 0 auto;
  padding: 12px;
}
p.case-heading {
  background: #3066be;
  color: #fff;
  padding: 5px;
  margin: 5px 0;
}

.case-text {
  background: #fbfff1;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 12px;
  padding: 5px;
}

.case-before-after {
  display: flex;
  justify-content: center;
  /* gap: 10px; */
  max-width: 873px;
  margin: 0 auto;
}
.arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #977c4c;
  padding: 0 5px;
  font-weight: bold;
}
.case-before-after p {
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  /* color: #fff; */
  background-color: #fbfff1;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  width: 80px;
  margin: 0 auto 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.beforediv,
.afterdiv {
  position: relative;
}
p.before,
p.after {
  position: absolute;
  top: 0;
}

.case-before-after img {
  border-radius: 4px;
  max-width: 100%;
  margin: 0 auto;
}



.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

.implant-btn {
  display: inline-flex;
  padding: 12px 24px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
  white-space: nowrap;
}










/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {
  .case-inner {
    flex-direction: column;
    padding: 0 15px;
    gap: 30px;
  }

  .case-title-area,
  .case-carousel {
    width: 100%;
  }

  .case-carousel-slide {
    gap: 0;
  }

  .case-carousel-track {
    flex-direction: column;
  }

  .case-carousel-slide {
    display: block;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
  }



  .case-slide {
    flex-direction: column;
    margin: 0 auto 40px;
    width: 100%;
  }

  .case-image-area {
    width: 40%;
    padding: 10px;
  }

  .case-image-area img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }

  .case-overlay {
    font-size: 12px;
    padding: 6px 10px;
  }

  .case-info {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  .case-heading {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .case-text {
     font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }

  .case-before-after {
     flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .case-before-after img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
  }

  .case-before-after p {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .case-before-after p.before,
  .case-before-after p.after {
    position: static;
    margin: 0 auto 6px;
    font-size: 12px;
  }

  .case-carousel-nav {
    top: auto;
    bottom: 45%;
    transform: translateY(50%);
    padding: 0 10px;
  }

  .carousel-dots-wrapper {
    margin-top: 12px;
  }

    .arrow-icon {
    display: none; /* スマホでは省略してもよい場合 */
  }

  .case-bfafp {
    padding: 10px;
  }

  
  .case-carousel-nav {
    bottom: 20px;
    top: auto;
  }

  .carousel-dots-wrapper {
    margin-top: 20px;
  }

.case-main {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
    color: black;
}

.case-main .gold {
    font-size: 24px;
    letter-spacing: 0.03em;
}


.case-main .highlight-line {
    display: inline-block;
    position: relative;
    font-size: 24px;
    margin-top: 10px;
    background: linear-gradient(135deg, #090c9b, #3066be, #b4c5e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

}

/*------------------------------------- 症例ここまで --------------------------------------*/

/*------------------------------------- 無料相談 --------------------------------------*/
section.consultation {
  background: url(../img/Freeimplant-consultation.png) no-repeat top center / 100%;
  width: 100%;
  aspect-ratio: 1400 / 762;
  padding: max(4.571vw, 59px) 0 max(1.429vw, 19px);
  position: relative;
  box-sizing: border-box;
  display: flex
;
  flex-direction: column;
  margin-bottom: max(7.143vw, 93px);
}
.consult-block {
  width: 100%;
  padding: 0 3%;
  max-width: 1400px;
  margin: 0 auto;
}

h2.ja-title {
  line-height: 1.2em;
  font-size: max(2.976vw, 39px);
  display: flex;
  height: max(8.214vw, 107px);
  align-items: center;
  box-sizing: border-box;
  padding-top: .2em;
  letter-spacing: .14em;
  margin-bottom: max(2.5vw, 32px);
  color: #3066be;
   font-family: serif;
}
p.en-title {
  width: 50%;
  line-height: 1em;
  font-size: 2rem;
  letter-spacing: .08em;
  border-bottom: 1px solid;
  box-sizing: border-box;
  padding-bottom: max(1.143vw, 15px);
  margin-bottom: max(1.929vw, 25px);
   font-family: serif;
}
.consult-copy p {
  line-height: 1.5;
  /* font-size: 1.2rem; */
  letter-spacing: .14em;
  margin: 20px 0;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(to right, #3066be, #b4c5e4); /* ゴールドグラデ */
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.cta-button:hover {
  color: #fff;
  background: linear-gradient(to right, #007bff, #00c6ff); /* 青グラデーション */
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}


 /* レスポンシブ版 */

@media (max-width: 768px) {
  section.consultation {
    background-size: cover;
    background-position: center top;
    aspect-ratio: auto;
    padding: 50px 15px;
    margin-bottom: 60px;
  }

  .consult-block {
    padding: 0;
  }

  .consult-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  h2.ja-title {
    font-size: 22px;
    height: auto;
    text-align: left;
    justify-content: left;
    margin-bottom: 20px;
/*     font-weight: bold; */
  }

  p.en-title {
    width: 100%;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid #999;
    padding-bottom: 8px;
    margin-bottom: 20px;
  }

  .consult-copy p {
    font-size: 15px;
    letter-spacing: 0.05em;
    line-height: 1.7;
    text-align: left;
    margin: 15px 0;
  }

  .cta-button {
    font-size: 16px;
    padding: 12px 24px;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
    text-align: center;
  }





.consult-copy{
    background-color: rgba( 255, 255, 255, 0.45 );
    color: #000000;
}









}



















/*------------------------------------- 無料相談ここまで --------------------------------------*/






/* -------------------支払方法------------------- */
.paymentsec {
  background: linear-gradient(to bottom, #ffffff, #f5f7fa); 
  padding: 80px 0;
}

.payout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 40px;
  max-width: 1000px;
  margin: 20px auto;
}

.paytxtbox {
  flex: 1 1 55%;
  padding: 20px 30px;
}

.payttl span {
  background: linear-gradient(transparent 70%, #b4c5e4 70%);
  padding-bottom: 5px;
  font-weight: bold;
  font-size: 20px;
}

.marker {
  margin-bottom: 16px;
  line-height: 1.6;
  position: relative;
  font-size: 20px;
  padding-left: 30px;
}

.marker::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: #6ca0dc;
  font-size: 18px;
}

.payp {
  padding-top: 20px;
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}

.payimg {
  flex: 1 1 40%;
  padding: 20px;
  text-align: center;
}

/* 流れる画像 */
.payimg img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* --- 画像が途切れず滑らかに流れるカルーセル --- */
/* 画像が流れるエリア */
.flowing-images {
  overflow: hidden;
  width: 100%;
  background: #fff;
  padding: 30px 0;
}

/* 横スクロールトラック */
.flow-track {
  display: flex;
  gap: 20px;
	width: max-content;
	animation: scroll-left 40s linear infinite;
	will-change: transform; /* スムーズな描画 */
}


/* 各画像の設定 */
.flow-track img {
  width: 160px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.flow-track img:hover {
  transform: scale(1.05);
}

/* スマホ版 */
@media (max-width: 768px) {
  .payout {
    flex-direction: column;
    padding: 20px;
  }

  .paytxtbox, .payimg {
    width: 100%;
    padding: 10px 0;
    text-align: center;
  }

  .payttl span {
    font-size: 16px;
    background: linear-gradient(transparent 70%, #b4c5e4 70%);
    padding-bottom: 2px;
    display: inline;
    line-height: 1.6;
    word-break: keep-all;
    white-space: nowrap;
  }

  .marker {
    font-size: 16px;
    padding-left: 24px;
    text-align: left;
    margin-bottom: 12px;
  }

  .marker::before {
    font-size: 14px;
    top: 1px;
  }

  .payp {
    font-size: 14px;
    text-align: left;
    line-height: 1.7;
    padding: 10px 0;
  }

  .payimg img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
  }
}


@media (max-width: 768px) {
  .flow-track img {
    width: 90px;
    height: 70px;
  }
}


@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}



.m40{
  text-align: left;
  margin-top: 30px;
  line-height: 2;
}

.riyuu1{
  text-align: center;
}


.map {
  background: linear-gradient(to bottom, #ffffff, #f5f7fa);
  padding: 60px 20px;
}

.map-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  box-sizing: border-box;
}

.map-left {
  flex: 1 1 55%;
  min-width: 300px;
}

.map-left iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 8px;
}

.map-right {
  flex: 1 1 40%;
  min-width: 260px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  padding-top: 10px;
}

.map-text {
  margin: 0;
}

/* ---------- レスポンシブ対応 ---------- */
@media (max-width: 768px) {
  .map-box {
    flex-direction: column;
    padding: 20px;
  }

  .map-left iframe {
    height: 300px;
  }

  .map-right {
    padding-top: 0;
    text-align: left;
  }

  .map-text{
    margin: 0;
    font-size: 14px;
}
  }

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .map-box {
    flex-direction: row;
    padding: 24px;
    gap: 20px;
  }

  .map-left {
    flex: 1 1 60%;
  }

  .map-right {
    flex: 1 1 40%;
    font-size: 15px;
    padding-top: 0;
  }

  .map-left iframe {
    height: 320px;
  }

  .map-text {
    font-size: 15px;
    margin-top: 10px;
  }
}














.news {
  background: #f0f6ff;
  padding: 60px 20px;
}

.news-title {
  text-align: center;
  font-size: 50px;
  margin-bottom: 40px;
  font-style: serif;
  position: relative;
  font-family: serif;
}

.news-title .icon {
  font-size: 24px;
  margin-right: 10px;
}

.news-txt {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  background: #ffffff;
  border-left: 6px solid #1e5eff;
  padding: 1em;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 5px;
}

.news-content {
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.6;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .news-title {
    font-size: 22px;
  }

  .news-content {
    font-size: 15px;
  }
}






















.bannar {
  text-align: center;  /* バナーを中央に配置 */
  margin: 20px 0;      /* バナーの上下に余白を追加 */
}

.bannar img {
  width: 100%;         /* 画像の幅を親要素に合わせて調整 */
  max-width: 800px;    /* 最大幅を800pxに制限 */
  height: auto;        /* 高さを自動調整 */
  display: block;      /* 画像が行内要素にならないように */
  margin: 0 auto;      /* 画像を中央に配置 */
}









@media (max-width: 768px) {
.flow-track img {
    width: 10%;
    height: auto;
    object-fit: contain;
    margin-right: 30px;
}





}

@media screen and (min-width: 768px) and (max-width: 1024px) {
.consult-text{
  font-size: 14px;
}
}



/* PCでは非表示 */
.br-sp {
display: none;
}
/* モバイル時のみ表示 */
@media screen and (max-width: 767px) {
.br-sp {
display: inline;
}
}



.introtext{
 padding: 20px;
 text-align: center;
}