/* border:1px solid #333FFF; */

/* ベース設定 */
body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background-color: #f0f8f5;
  color: #333;
}

h1, h2 {
  color: #2f855a;
  margin-left: 30px;
  margin-bottom: 0.5em;
}


/* ヘッダメニュー*/

.top-menu {
  position: fixed; /* スクロールしても画面に固定 */
  top: 0;
  right:0px;
  left: auto;
  padding: 0px 0;
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom-left-radius: 8px;
  z-index: 1000;

  /* アニメーション用の設定 */
  animation: slideDown 0.8s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* アニメーションの定義 */
@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.top-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 20px;
}

.top-menu li {
  margin-left: 20px;
}

.top-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.top-menu a:hover {
  color: #fffa;
}


/* Heroセクション */
.hero {
  background-size: cover;
  background-position: center;
  padding: 120px 0px 100px;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: #fff;
  position: relative;
  overflow: hidden;
	font-size:32px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.bg1 {
  opacity: 1;
}

.bg2 {
  opacity: 0;
}



.hero .subtitle{	font-size:19px;width:90%;margin-left:auto;margin-right:auto; line-height: 1.5;}
.subject{	font-size:43px;width:90%;margin-left:auto;margin-right:auto; line-height: 0.5;  color: #fff;  text-shadow: 0px 2px 4px rgba(0, 20, 0, 0.8); }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(47, 133, 90, 0.3);
  z-index: 1;
}

.hero h1,
.hero .subtitle,
.hero .logo,
.hero .subject,
.ribbon {
  position: relative;
  z-index: 2;
}


/* 
.hero .logo {
  width: 100%;
  margin: 0 auto 20px;
  display: block;
	text-align:center;
  background: linear-gradient(to bottom, white 90%, #76DE30 10%);
}
*/

.subject02{	font-size:43px;width:90%;margin-left:auto;margin-right:auto; line-height: 0.5;  color: rgba(255, 255, 255, 0.95); text-shadow: 0px 2px 4px rgba(0, 20, 0, 0.8);   background-color: rgba(255, 133, 0, 0.3); z-index: 1000; }

.subject02 {
  position: relative;
  z-index: 2; /* hero::before より上に */
}
.hero {
  position: relative; /* z-index が有効になる親に設定 */
}
.hero::before {
  z-index: 1;
}


.hero02 {

  background-size: cover;
  background-position: center;
  padding: 120px 0px 10px;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: #fff;
  position: relative;
  overflow: hidden;
	font-size:32px;
}



.icon {
  width: 80%;
  margin: 0 auto 20px;
  display: block;
	text-align:center;
}

.icon02 {
  width: 96%;
  margin: 0 auto 20px;
  display: block;
	text-align:center;
}
.features {
	max-width:1280px;
  position: relative;
	margin-left:auto;
	margin-right:auto;
  z-index: 2;
  margin-top: -90px; /* ← heroに重ねる高さを調整 */
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  background: transparent; /* 背景は hero に重ねるため透明に */
}

.feature {
  background: white;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.feature .icon {
	margin-left: 0 auto;
	margin-right: 0 auto;
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  color: #007acc;
	width:60%;
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: #003366;
	text-align: center;
}

.feature p {
  font-size: 1rem;
  color: #555;
}
.topicon img {text-align: center;	margin-left: 0 auto; margin-right: 0 auto;}

.title {width:120px;}

/* サブタイトル */
.title-wrap {
  display: flex;
  align-items: baseline; /* 文字のベースラインで揃える */
  gap: 0.3em; /* 画像と文字の間隔を微調整 */
}

.title-wrap img {
  width: 36px;
  height: auto;
  margin: 0;
  padding: 0;
}

.title-wrap h1 {
  margin: 0;
  padding: 0;
  font-size: 2.4rem;
  line-height: 1;
}



/* 装飾リボン */
.ribbon {
  position: absolute;
  top: 20px;
  right: -40px;
  transform: rotate(45deg);
  background-color: #f56565;
  color: white;
  padding: 10px 40px;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* セクション共通 */
.section {
  padding: 10px 50px 10px 50px;
  max-width: 900px;
  margin-left:auto;
  margin-right:auto;
  margin-top:20px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	overflow:hidden;
  font-size: 18px;
}

.section02 {
  padding: 20px 20px;
  max-width: 900px;
	height:40px;
  margin-left:auto;
  margin-right:auto;
  margin-top:0px;
  background-color: none;
}

.features ul {
  list-style: disc;
  padding-left: 1.5em;
}

/* 地図 */
.map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 12px;
  margin-top: 15px;
}

/* お問い合わせ */
.contact {
  background-color: #9CC813;
  text-align: center;
  padding: 50px 20px;
  font-size: 1.2rem;
	margin-top:30px;
  color: #fff;
}

.contact .btn {
  display: inline-block;
  background-color: #9CC813;
  color: #fff;
  padding: 14px 28px;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s;
}

.contact .btn:hover {
  background-color: #276749;
}

.contact h2 {color: #fff;}


.contact a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact a[href^="tel"] {
  background-color: #007bff;
}

.contact a[href^="https://docs.google.com"] {
  background-color: #00B200;
}

/* Hover演出 */
.contact a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0.9;
}

/* フォント */

.font01 {font-size: 1.2rem; font-weight:bold; color: #008C69;}
.font02 {font-size: 2rem; font-weight:bold; color: #008C69;}
.font03 {font-weight:bold;}


/* 施設紹介*/
.clinic-section {
  margin: 20px 0;
  padding: 20px;
}

.section-number {
  font-size: 1.2em;
  color: #007bff;
  margin-right: 8px;
}

.clinic-images {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.clinic-images img {
  width: 100%;
  max-width: 48%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* スマホサイズで縦並びに */
@media (max-width: 768px) {
  .clinic-images {
    flex-direction: column;
  }

  .clinic-images img {
    max-width: 100%;
  }
}

/* 施設紹介ここまで*/


/* アニメーション（フェードイン） */
.fade-in {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* アニメーション（スクロール時フェードイン） */
.fade-in02 {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}


/* フッター */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #666;
  background-color: #f0f8f5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}




/* ロゴアニメーション用 */
.logo {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
}

.logo-bar {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 0%;
  height: 140px;
  background: linear-gradient(to bottom, white 90%, #76DE30 10%);
  transform: translateY(-50%);
  overflow: hidden;
}

/* アニメーション用のクラス（JSで追加） */
.logo-bar.animate-bar {
  animation: slideInBar 1s ease-out forwards;
}
.logo img {
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  animation: fadeUpLogo 0.8s ease-out 1.2s forwards; /* 1.2秒後に始まる */
	margin-left:auto;
	margin-right:auto;
}

@keyframes slideInBar {
  0% {
    left: 100%;
    width: 0%;
  }
  100% {
    left: 0;
    width: 100%;
  }
}

@keyframes fadeUpLogo {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


.logo02 {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, white 90%, #76DE30 10%);
  overflow: hidden;
}


/* バーガーメニュー */


/* モバイル表示（768px以下） */
@media screen and (max-width: 768px) {
  .hamburger{
    display: block;
  }
  .menu-items {
    display: none;
  }
}

/* PC表示（769px以上） */
@media screen and (min-width: 769px) {
  .hamburger {
    display: none;
  }
  .menu-items {
    display: flex; /* or block, depending on layout */
  }
}

@media (max-width: 768px) {
  .top-menu {
    background-color: rgba(0, 0, 0, 0.6); /* 黒の半透明 */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  .hamburger {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 36px;
    color: #fff; /* 白アイコン */
    cursor: pointer;
    z-index: 1100;
		padding:0 20px 0 20px;
    background-color: rgba(0, 0, 0, 0.6); /* 黒の半透明 */
  }

  .menu-items {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 100, 0, 0.85); /* 展開メニューも黒系 */
    position: absolute;
    top: 80px;
    right: 0;
    width: 200px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  .menu-items li a {
    color: #fff; /* 白文字で視認性アップ */
    text-decoration: none;
    padding: 8px 0;
    display: block;
  }

  .menu-items li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* 軽いホバー効果 */
  }

}

