@charset "UTF-8";

/* * {
  outline: 2px solid blue;
} */


body {
  margin: 0 auto;
  background-color: #fff;
  max-width: 1920px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  overflow-x: hidden;
  font-size: 18px;
}

html,
body {
  height: 100%;
}

/* リンク設定 */
a {
  color: inherit;
  text-decoration: none;
  transition-duration: 0.5s;
}

/* 画像 */
img {
  max-width: 100%;
  height: auto;
}

h2 {
  font-size: 42px;
  color: #3f4f3c;
  margin-bottom: 5px;
}

.subheading {
  font-size: 20px;
  color: #6fa038;
}

h3 {
  font-size: 35px;
  color: #6fa038;
}

/* ------------------------------
   フェードアップ演出
------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

.delay-4 {
  transition-delay: 0.8s;
}

.delay-5 {
  transition-delay: 1.0s;
}

.delay-6 {
  transition-delay: 1.2s;
}

.delay-7 {
  transition-delay: 1.4s;
}

.delay-8 {
  transition-delay: 1.6s;
}

.delay-9 {
  transition-delay: 1.8s;
}

.delay-10 {
  transition-delay: 2.0s;
}

.delay-11 {
  transition-delay: 2.2s;
}

/*----------------------------
scroll_left ｜左から出現
----------------------------*/
.fade-up-left {
  -webkit-transition: 0.8s ease-in-out;
  -moz-transition: 0.8s ease-in-out;
  -o-transition: 0.8s ease-in-out;
  transition: 0.8s ease-in-out;
  transform: translateX(-30px);
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-opacity: 0;
}

.fade-up-left.on {
  opacity: 1.0;
  filter: alpha(opacity=100);
  -moz-opacity: 1.0;
  transform: translateX(0);
}

/*----------------------------
scroll_right ｜右から出現
----------------------------*/
.fade-up-right {
  -webkit-transition: 0.8s ease-in-out;
  -moz-transition: 0.8s ease-in-out;
  -o-transition: 0.8s ease-in-out;
  transition: 0.8s ease-in-out;
  transform: translateX(30px);
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-opacity: 0;
}

.fade-up-right.on {
  opacity: 1.0;
  filter: alpha(opacity=100);
  -moz-opacity: 1.0;
  transform: translateX(0);
}


/* --------------------------------------------
--------ヘッダー--------------------- */
header {
  position: fixed;
  width: 100%;
  height: 175px;
  z-index: 10000;
  background: transparent;
  box-sizing: border-box;
  background: rgba(248, 254, 245, 0.5);
}

.h-top {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  /* ← 左右のブロックを横並びに */
  justify-content: space-around;
  align-items: center;
}

.header-left {
  transition-duration: 0.5s;
}

.header-left a:hover {
  opacity: .5;
}

.header-left h1 {
  font-size: 13px;
  margin: 10px 0 0 45px;
  font-weight: 100;
}

.header-left img {
  width: 320px;
  height: auto;
}

.header-right {
  display: flex;
  flex-direction: column;
  /* ← これで縦並びに */
  align-items: center;
  /* 右寄せにしたい場合 */
  gap: 5px;
  margin-top: 10px;
  width: 400px;
}

.fa-phone {
  color: #3f4f3c;
  /* 深緑 */
  margin-right: 6px;
  /* アイコンと数字の間に余白 */
}

.header-right a[href^="tel:"] {
  color: #d67f1d;
  /* オレンジ系 */
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.header-right a:hover {
  opacity: .5;
}

.thanks-btn {
  background: #3f4f3c;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  padding: 8px 50px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(63, 79, 60, 0.25);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.thanks-btn::after {
  content: "›";
  font-size: 16px;
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.thanks-btn:hover {
  background: #2f3d2c;
  box-shadow: 0 6px 12px rgba(63, 79, 60, 0.3);
  transform: translateY(-2px);
}

.thanks-btn:hover::after {
  transform: translateX(4px);
}

.headerNav {
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
  /* 高さを均等にする */
}

.oya-menu {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* メニューアイテム */
.oya-menu-li {
  list-style: none;
  font-size: 18px;
  margin-right: 45px;
}

.oya-menu-li:last-child {
  margin-right: 0;
}

/* リンクスタイル */
.oya-menu li a {
  text-decoration: none;
  color: #0F1B07;
  opacity: .7;
  transition-duration: 0.5s;
  position: relative;
}

.oya-menu li a:hover {
  color: #5c821a;
}

/* 矢印アイコン */
.arrow-icon {
  margin-left: 0.4em;
  font-size: 0.75em;
  color: #0F1B07;
  transition: transform 0.3s ease;
}

/* スクロールしたら */
.scroll-nav {
  height: 80px;
  background: rgba(255, 255, 255, .7);
}

.scroll-nav li a {
  font-size: 15px;
}

.scroll-nav .header-left,
.scroll-nav .header-right {
  display: none;
}

.scroll-nav .headerNav {
  margin-top: 25px;
}

.nav-menu-info {
  display: none;
}

/* sub-menu */
/* サブメニューのベースデザイン */
.sub-menu {
  list-style: none;
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  width: 250px;
  /* 必要に応じて調整 */
  z-index: 1000;
  padding: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* サブメニューの各項目 */
.sub-menu li {
  padding: 0;
  border-bottom: 1px solid #e0e0e0;
}

.sub-menu li:last-child {
  border-bottom: none;
}

.sub-menu li a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  text-align: left;
  background: #1f4a01;
  transition: all 0.3s ease;
  text-align: center;
}

/* ホバー時のカラー反転 */
.sub-menu li a:hover {
  background: #7caf50;
  color: #fff;
}

/* 親メニューにホバーで表示 */
.oya-menu-li:hover .sub-menu {
  display: block;
}


/* ハンバーガーボタン----------------------------------------- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  position: absolute;
  top: 25px;
  right: 20px;
  z-index: 1001;
}

.hamburger-btn span {
  height: 4px;
  width: 100%;
  background-color: #3f4f3c;
  /* 緑系 */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* スマホ時に表示 */
@media screen and (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .scroll-nav .hamburger-btn {
    top: 23px;
  }

  .headerNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    height: auto;
    /* ← 高さ設定を修正 */
    height: 100vh;         /* 画面いっぱいの高さに固定 */
    min-height: unset;     /* 不要なので解除 */

    /* ← スクロールを有効化 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOSで慣性スクロールを有効化 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .scroll-nav .headerNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    height: auto;
    /* ← 高さ設定を修正 */
    height: 100vh;         /* 画面いっぱいの高さに固定 */
    min-height: unset;     /* 不要なので解除 */

    /* ← スクロールを有効化 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOSで慣性スクロールを有効化 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .headerNav.active  {
    right: 0;
  }

  .header-content {
    padding-top: 0;
  }

  .oya-menu {
    flex-direction: column;
    gap: 5px;
    padding: 0 10px;
  }

  .oya-menu-li {
    margin-right: 0;
  }

  .oya-menu-li a {
    display: block;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 27, 7, 0.3);
  }

  .scroll-nav .headerNav {
  margin-top: 0;
  height: 100vh;               /* 画面いっぱいに固定 */
  min-height: unset;           /* ← これを解除 */
  overflow-y: auto;            /* 縦スクロール */
  -webkit-overflow-scrolling: touch; /* iOSの慣性スクロール */
  }

.headerNav .sub-menu {
  display: block;
  border: none;
  box-shadow: none;
}

.headerNav .sub-menu li {
  border-bottom: none;
}

.headerNav .sub-menu a {
   background-color: #fff;
  color: #0F1B07;
}

.margin-top100 {
  margin-top: 100px;
}

  /* ハンバーガーメニュー内のfooter-info風ブロック */
  .nav-menu-info {
    display: block;
    padding: 20px;
    background-color: #3f4f3c;
    color: #fff;
    text-align: center;
    margin-top: 40px;
  }

  .nav-menu-details {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .nav-tel {
    display: inline-block;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    margin: 8px auto 0 auto;
    text-decoration: none;
  }

  .nav-note,
  .nav-parking {
    font-size: 14px;
    margin: 5px 0;
  }

  .nav-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

/* nav-btnのaタグ */
.nav-btn a {
  display: block;
  width: 100%;
  background-color: #5b7956;
  color: #fff;
  padding: 10px 0;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  position: relative; /* これを追加して、疑似要素の位置を調整 */
}

.nav-btn a::after {
  content: "›"; /* 右向きの矢印を追加 */
  font-size: 14px;
  margin-left: 10px;
  display: inline-block;
  position: absolute;
  right: 20px;  /* ボタンの右端に配置 */
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease; /* アニメーションを追加 */
}
  .nav-menu-details i,
  .nav-btn i {
    margin-right: 8px;
    color: #fff;
  }

  .nav-address i,
  .nav-tel i,
  .nav-parking i {
    font-size: 16px;
    vertical-align: middle;
  }

  .nav-btn a i {
    font-size: 14px;
  }
}

/* -------------------------------------
---------サイドバー------------------- */
.cta-reservation-buttons {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  width: 80px;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  pointer-events: none;
}

.cta-reservation-buttons .cta-btn:not(:last-child) {
  margin-bottom: 10px;
}

.cta-btn {
  display: flex;
  background-repeat: no-repeat;
  background-color: #3f4f3c;
  writing-mode: vertical-rl;
  color: #fff;
  font-weight: bold;
  width: 100%;
  padding: 30px 10px 35px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.5em;
  font-size: 18px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  border-radius: 5px 0 0 5px;
  position: relative;
  pointer-events: auto;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-btn--web {
  font-weight: bold;
}

.cta-btn--tel {
  background-color: #5b7956;
  font-weight: bold;
}

.cta-btn:hover {
  color: #0F1B07;
}

.cta-btn__icon {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
}

/* モバイルで下に固定 */
.sp-fixed-reserve {
  display: none;
}

/* TOPに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background-color: #1f4a01;
  color: #fff;
  text-align: center;
  line-height: 48px;
  /* border-radius: 50%; */
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ------------------------------------
--------スライダー--------------------- */
.zoomout-slider {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  padding-top: 180px;
  position: relative;
}

/* スクロールアニメーション */
.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  animation: fadeInUp 2s ease-out;
  bottom: 7vh;
}

.scroll-text {
  font-size: 25px;
  color: #fff;
  margin-bottom: 5px;
  letter-spacing: 1px;
  opacity: 0.8;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.scroll-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  animation: bounceDown 1.5s infinite;
  opacity: 0.8;
}

/* アニメーション定義 */
@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(8px) rotate(45deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


/* スライダー内の文章 */
.slider-caption-fixed {
  position: absolute;
  bottom: 15vh;
  left: 35%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 30px;
  max-width: 90%;
  text-align: center;
  z-index: 10;
  border-radius: 5px;
  pointer-events: none;
  /* テキスト上で操作不能にする（必要に応じて） */
}

.main-h2 {
  font-size: 48px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.slider-caption-fixed p {
  font-size: 22px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.margin-top20 {
  margin-top: 20px;
}

.zoomout-slider .swiper-slide {
  position: relative;
}

/* スライド */
.swiper-slide {
  width: 100%;
  /* スライドの横幅を親要素に合わせる */
  height: 100%;
  /* スライドの高さも親要素に合わせる */
  box-sizing: border-box;
  /* パディングやボーダーを含めたサイズに */
}

.slide-inner {
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: zoomOut 6s ease-out forwards;
  z-index: 1;
  position: relative;
}

.zooming {
  animation: zoomOut 6s ease-out forwards;
}

@keyframes zoomOut {
  0% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ------------------------------------------
-----------------新着情報---------------------------- */
.news-fixd {
  width: 100%;
  position: relative;
}

.news-section {
  max-width: 900px;
  margin: 100px auto;
  padding: 60px 20px;
}

.news-heading {
  margin-bottom: 0;
}

.news-subheading {
  margin-top: 4px;
  margin-bottom: 40px;
}

.news-list {
  margin: 0;
  padding: 0;
}

.news-item {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e0e0e0;
  padding: 14px 0;
}

.news-item dt {
  width: 280px;
  font-size: 14px;
  color: #333;
}

.news-item .news-category {
  margin-left: 10px;
  font-size: 14px;
  color: #333;
}

.news-item dd {
  margin: 0;
  font-size: 14px;
  color: #292929;
  flex: 1;
}

.news-item dd a:hover {
  opacity: .5;
  text-decoration: underline;
}

.news-more {
  text-align: right;
  margin-top: 30px;
}

.news-link {
  font-size: 13px;
  color: #0F1B07;
  text-decoration: none;
  border-bottom: 1px solid #0F1B07;
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

.news-link:hover {
  opacity: 0.6;
}

/* -------------------------------------------
--------南九州療院のホームページへようこそ----- */
.sec01 {
  width: 100%;
  height: 100vh;
  background:
    url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizen01.png) no-repeat center center / cover;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
}

.sec01wrappeer {
  width: 800px;
  position: relative;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  padding: 20px;
}

.sec01wrappeer::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  backdrop-filter: blur(1px);
  /* 少し強調 */
  -webkit-backdrop-filter: blur(1px);
  filter: blur(8px);
  -webkit-filter: blur(8px);
  box-shadow: 0 0 40px 30px rgba(255, 255, 255, 0.85);
  /* 濃く・広げる */
  -webkit-box-shadow: 0 0 40px 30px rgba(255, 255, 255, 0.85);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.sec01wrappeer::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 750px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
  -webkit-filter: blur(60px);
  filter: blur(60px);
}

.sec01-title {
  position: relative;
  z-index: 10;
}

.sec01-text {
  margin-top: 13px;
  color: #0F1B07;
  position: relative;
  z-index: 10;
  line-height: 1.8;
}

.size22 {
  font-size: 22px;
  font-weight: 600;
}

/* ---------------------------------------
------地域とともに、こころと体の健康を支える医療へ---- */
.sec02 {
  width: 100%;
  margin: 0 auto;
  padding: 230px 0 50px 0;
  background: #f6f3ef;
}

.sec02-wrap {
  position: relative;
}

/* 上の段 */
.sec02-top {
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  position: relative;
}

.sec02-top::before {
  content: '';
  width: 450px;
  height: 450px;
  background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf01.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  bottom: -109px;
  right: -110px;
  z-index: 9;
}

.image1 {
  max-width: 1050px;
  height: 580px;
  z-index: 10;
}

.sec02-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

/* 二段目 */
.sec02-tree-background {
  width: 100%;
  position: relative;
  z-index: 1;
  /* 任意で高さを設定するならここに */
}

.sec02-tree-background::before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 570px;
  background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/tree01.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: -1;
  pointer-events: none;
  opacity: .2;
}

.sec02-text01 {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  /* テキストと画像の間隔 */
  padding: 40px 20px;
  box-sizing: border-box;
}

.text-block {
  flex: 1;
  margin-top: 100px;
  position: relative;
  z-index: 1;
}

.sec02-text01 h2 {
  margin-bottom: 32px;
}

.sec02-text01 p {
  font-size: 16px;
  line-height: 1.8;
}

.image2 {
  margin-top: 220px;
}

.image2 img {
  width: 320px;
  height: auto;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

/* 三段目 */
.sec02-images {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 50px;
  padding: 40px 0;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.sec02-images .image3,
.sec02-images .image04 {
  width: 45%;
}

.sec02-images .image3 img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(-40px);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

.sec02-images .image04 img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(50px);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

/* 四段目 */
.sec02-text02 {
  width: 100%;
  max-width: 1500px;
  margin: 140px auto;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5vw;
  box-sizing: border-box;
}

.image5 {
  flex: 0 0 55%;
  position: relative;
  z-index: 10;
}

.image5::before {
  content: '';
  width: 270px;
  height: 270px;
  background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf01.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  top: -90px;
  left: -145px;
  z-index: 9;
  transform: scaleX(-1);
}

.image5 img {
  width: 100%;
  height: 750px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

.text-column {
  flex: 0 0 40%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 170px;
}

.text-column p {
  font-size: 16px;
  line-height: 2;
  color: #444;
}

.image6 {
  max-width: 600px;
  height: auto;
  margin-top: 130px;
  position: relative;
  z-index: 10;
}

.image6 img {
  width: 100%;
  height: 100%;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

.image6::before {
  content: '';
  width: 450px;
  height: 450px;
  background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf03.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  top: -410px;
  right: 15px;
  z-index: 9;
  transform: scaleX(-1);
  opacity: .3;
}

/* ----------------------------------------
-------信頼とつながりが生み出す健やかな暮らし--------- */
.sec03-background {
  background: #f6f3ef;
}

/* 背景 */
.sec03 {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 60px;
  position: relative;
  z-index: 3;
}

.sec03::before {
  content: '';
  width: 100%;
  height: 1300px;
  background: rgba(255, 255, 255, 0.8);
  position: absolute;
  top: 9%;
  left: 0;
  z-index: 0;
  clip-path: polygon(0 30%, 100% 0, 100% 70%, 0% 100%);
  z-index: 2;
}

/* 背景 */
/* .sec03 {
    background-image: url('http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/bg-f6f3ef.png');
  background-repeat: repeat;
  background-size: cover;
  background-attachment: fixed; 
  position: relative;
  z-index: 1;
} */

/* 背景画像あるパターン */
/* .sec03 {
  padding: 100px 0 200px 0;
  width: 100%;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
    url('http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizen02.png') no-repeat center center / cover;
  background-repeat: repeat;
  background-size: cover;
  background-attachment: fixed; 
  position: relative;
  z-index: 1;
} */

.sec03-title {
  text-align: center;
  margin-bottom: 25px;
}

/* --- 共通ラッパー --- */
.sec03-block {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 60px 0;
  position: relative;
  z-index: 10;
}

.sec03-inner {
  display: flex;
  flex-direction: row;
  max-width: 1500px;
  width: 100%;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.inner-background::before {
  content: '';
  width: 570px;
  height: 570px;
  background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf02.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  top: -150px;
  left: -130px;
  z-index: 9;
  opacity: .2;
}

.inner-background02::before {
  content: '';
  width: 430px;
  height: 430px;
  background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf02.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  top: -175px;
  right: 25px;
  z-index: 9;
  opacity: .2;
}

/* --- テキスト側 --- */
.sec03-text {
  width: 40%;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(245, 240, 230, 0.85);
  /* background: #f6f3ef; */
  position: relative;
  z-index: 10;
}

.sec03-text h3 {
  margin-bottom: 16px;
  color: #1f4a01;
}

.sec03-desc {
  color: #333;
  margin: 32px 0;
  line-height: 1.8;
}

/* --- ボタン --- */
.sec03-btn {
  display: inline-flex;
  align-items: center;
  background-color: #3f4f3c;
  color: #fff;
  padding: 10px 50px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.sec03-btn:hover {
  transform: translateY(-2px);
  background-color: #3f4f3c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  margin-left: 14px;
  font-size: 8px;
  transition: transform 0.3s ease;
}

.sec03-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* --- 画像側 --- */
.sec03-image {
  width: 60%;
  height: 580px;
  overflow: hidden;
  overflow: visible;
  position: relative;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

.sec03-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.firstView {
  margin-top: -100px;
  /* 背景画像にかぶせる */
  position: relative;
  z-index: 2;
}

/* -------------------------------------------
--------南九州療院が目指す“こころと体の健康ひろば”----- */
.sec04 {
  width: 100%;
  height: auto;
  position: relative;
}

.droplet {
  position: absolute;
  width: 80px;
  height: 80px;
  background-image: url("http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizuku05.png");
  background-repeat: no-repeat;
  background-size: contain;
  animation: floatDroplet linear both;
  animation-timeline: view();
  animation-range: cover;
  z-index: 11;
}

@keyframes floatDroplet {
  from {
    translate: 0 150px;
    opacity: 0;
  }

  to {
    translate: 0 -150px;
    opacity: 1;
  }
}

/* サイズバリエーション（任意） */
.droplet--medium {
  scale: 1.4;
  animation-range: entry -150% exit 250%;
}

.droplet--small {
  scale: 1.0;
  animation-range: entry -800% exit 900%;
}

/* 位置指定（例） */
.droplet--1 {
  top: 10%;
  left: 8%;
}

.droplet--2 {
  bottom: 81%;
  right: 15%;
}

.droplet--3 {
  top: 23%;
  right: 27%;
}

.droplet--4 {
  top: 28%;
  right: 75%;
}

.droplet--5 {
  top: 33%;
  right: 89%;
}

.droplet--6 {
  top: 37%;
  right: 20%;
}

.droplet--7 {
  top: 44%;
  right: 27%;
}

.droplet--8 {
  top: 52%;
  right: 78%;
}

.droplet--9 {
  top: 59%;
  right: 20%;
}

.droplet--10 {
  top: 71%;
  right: 79%;
}

.droplet--11 {
  top: 77%;
  right: 19%;
}

.droplet--12 {
  top: 95%;
  right: 73%;
}


.sec04-h2 {
  width: 100%;
  height: 100vh;
  background:
    url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizen02.png) no-repeat center center / cover;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
}

.sec04wrappeer {
  width: 1000px;
  position: relative;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  padding: 20px;
}

.sec04wrappeer::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  backdrop-filter: blur(1px);
  /* 少し強調 */
  -webkit-backdrop-filter: blur(1px);
  filter: blur(8px);
  -webkit-filter: blur(8px);
  box-shadow: 0 0 40px 30px rgba(255, 255, 255, 0.85);
  /* 濃く・広げる */
  -webkit-box-shadow: 0 0 40px 30px rgba(255, 255, 255, 0.85);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.sec04wrappeer::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 750px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
  -webkit-filter: blur(60px);
  filter: blur(60px);
}

.sec04-title {
  position: relative;
  z-index: 10;
}

.sec04-text {
  margin-top: 13px;
  line-height: 1.8;
  color: #0F1B07;
  position: relative;
  z-index: 10;
}

.size22 {
  font-size: 22px;
  font-weight: 600;
}

.sec04-h3 {
  width: 100%;
  margin: 0 auto;
  height: auto;
  background: #f6f3ef;
  padding-bottom: 100px;
}

/* 「新しい医学」に基づく包括的ケア */
.sec04-block-medicine {
  max-width: 1300px;
  padding: 100px 0;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
}

.image7 {
  width: 65%;
  height: 400px;
}

.medicine-text {
  width: 35%;
  line-height: 1.8;
  padding: 0 20px;
}

.medicine-text h3 {
  margin: 300px 0 50px 0;
  position: relative;
  z-index: 10;
}

.medicine-text h3::before {
  content: '';
  width: 175px;
  height: 175px;
  background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/background01.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  top: -90px;
  right: 0;
  z-index: 9;
}

/* 真ん中画像 */
.sec04-block-images {
  max-width: 1300px;
  padding: 80px 0 110px 0;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  gap: 40px;
}

.image11 {
  width: 190px;
  margin-top: 80px;
}

.image8 {
  width: 670px;
}

.image9 {
  width: 300px;
  height: 250px;
  margin-top: 200px;
}

.image11 img {
  transform: translateY(60px);
}

.image9 img {
  transform: translateY(100px);
}


/* 共助とぬくもりのある地域づくり */
.sec04-block-community {
  max-width: 1300px;
  padding: 100px 0;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;

}

.community-text {
  width: 40%;
  line-height: 1.8;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.image10 {
  width: 65%;
  height: 450px;
  margin-top: 130px;
}

.community-text {
  width: 35%;
  line-height: 1.8;
}

.community-text h3 {
  margin: 300px 0 50px 0;
  position: relative;
  z-index: 10;
}

.community-text h3::before {
  content: '';
  width: 170px;
  height: 170px;
  background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/background01.png);
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: absolute;
  top: -90px;
  left: 0;
  z-index: 9;
}

.image7 img,
.image11 img,
.image8 img,
.image9 img,
.image10 img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery {
  width: 100%;
  height: 40vh;
  background:
    url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizen06.png) no-repeat center center / cover;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------
---------------フッター --------------------------*/
footer {
  width: 100%;
  margin: 0 auto;
  background: #f6f3ef;
  padding-top: 70px;
}

/* 横並びラッパー */
.footer-sention-flex {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  background: #f6f3ef;

  /* スマホ対応 */
}

/* 左側：医院情報 */
.footer-info {
  flex: 1 1 550px;
  /* background: #fff; */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.f-logo {
  text-align: center;
  margin-bottom: 20px;
  /* 任意で下に余白追加 */
}

.f-logo img {
  width: 300px;
}

/* 1行ごとの医院データ */
.footer-data {
  display: flex;
  border-bottom: 1px solid #ccc;
  padding: 16px 0;
  font-size: 18px;
  color: #333;
  align-items: flex-start;
}

/* 左ラベル部分 */
.footer-data dt {
  width: 150px;
  font-weight: bold;
  color: #3f4f3c;
  flex-shrink: 0;
  padding-left: 10px;
  margin-right: 20px;
  border-left: 3px solid #3f4f3c;
}

/* 内容部分 */
.footer-data dd {
  flex: 1;
  margin: 0;
  line-height: 1.7;
}

/* 右側：地図 */
.footer-map {
  flex: 1 1 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(63, 79, 60, 0.2);
}

/* iframeのサイズ調整（スマホにも対応） */
.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  /* filter: brightness(80%); */
}

/* ボタンデザイン */
.footer-buttons {
  display: flex;
  flex-direction: row;
  /* 横方向に並べる */
  justify-content: center;
  /* 左寄せ。centerにすれば中央寄せ */
  align-items: center;
  gap: 16px;
  /* ボタン同士の間隔 */
  margin-top: 20px;
  flex-wrap: wrap;
  /* スマホで折り返し対応したい場合 */
}

.footer-btn {
  margin: 0;
}

.footer-btn02 {
  margin: 0;
}

.footer-btn a,
.footer-btn02 a {
  background: #5c821a;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 9px 50px;
  border-radius: 50px;
  box-shadow: 0 4px 8px rgba(63, 79, 60, 0.25);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.footer-btn a::after {
  content: "›";
  font-size: 16px;
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-btn a:hover {
  background: #2f3d2c;
  box-shadow: 0 6px 12px rgba(63, 79, 60, 0.3);
  transform: translateY(-2px);
}

.footer-btn a:hover::after {
  transform: translateX(4px);
}

.footer-btn02 a {
  background: #d67f1d;
}

.footer-btn02 a::after {
  content: "›";
  font-size: 16px;
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-btn02 a:hover {
  background: #a05807;
  box-shadow: 0 6px 12px rgba(63, 79, 60, 0.3);
  transform: translateY(-2px);
}

.footer-btn02 a:hover::after {
  transform: translateX(4px);
}

.footerNav {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footerNav-row {
  display: grid;
  justify-content: center;   /* 全体を中央寄せ */
  column-gap: 30px;          /* 横の余白 */
  row-gap: 12px;
  padding: 10px 0;
}

.footerNav-row.row-top {
  grid-template-columns: repeat(5, auto); /* 上段 5列 */
}

.footerNav-row.row-bottom {
  grid-template-columns: repeat(4, auto); /* 下段 4列 */
  padding-bottom: 10px;
}

.footerNav-row li {
  list-style: none;
}

.footerNav-row li a {
  color: #3f4f3c;
  text-decoration: none;
}

.footerNav-row li a:hover {
  opacity: .5;
}

.small {
  text-align: center;
  color: #fff;
  background-color: #3f4f3c;
  opacity: .9;
}

/* ---------------------------------------------------------
---------------ここからタブレット--------------------------- */
@media screen and (max-width: 768px) {
  body {
    max-width: 768px;
    overflow-x: hidden;
    font-size: 16px;
  }

  h2 {
    font-size: 32px;
    color: #3f4f3c;
    margin-bottom: 5px;
  }

  .subheading {
    font-size: 18px;
    color: #6fa038;
  }

  h3 {
    font-size: 27px;
    color: #6fa038;
  }

  /* -------タブレット-----------------------------
--------ヘッダー--------------------- */
  header {
    width: 100%;
    height: 70px;
  }

  .h-top {
    max-width: 100%;
    display: block;
  }

  .header-left h1 {
    font-size: 10px;
    margin: 5px 0 0 20px;
  }

  .header-left img {
    width: 300px;
    height: auto;
  }

  .header-right {
    display: none;
  }

  /* スクロールしたら */
  .scroll-nav {
    width: 100%;
    height: 55px;
  }

  .scroll-nav.h-top {
    max-width: 100%;
    display: block;
    margin-top: 30px;
  }

  .scroll-nav .header-left {
    display: block;
  }

  .scroll-nav .header-left h1 {
    display: none;
  }

  .scroll-nav .header-left img {
    width: 300px;
    height: auto;
    margin-top: 10px;
  }

  /* サイドバー */
  .cta-reservation-buttons {
    display: none;
  }

  /* モバイルで下に固定 */
  .sp-fixed-reserve {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  }

  .sp-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
  }

  .sp-btn--web {
    background-color: #3f4f3c;
  }

  .sp-btn--tel {
    background-color: #5b7956;
  }

  .sp-btn img {
    width: 20px;
    height: 20px;
  }

  .sp-btn__icon {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    margin-right: 5px;
    margin-top: 9px;
    margin-bottom: 4px;
  }

  /* TOPに戻るボタン */
  .back-to-top {
    bottom: 90px;
    /* 下からの距離（固定ボタンと重ならないよう調整） */
    right: 3%;
    border-radius: 50%;
    font-size: 20px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    line-height: 39px;
  }

  /* 左右から出現をズームインに */
  .fade-up-right {
    transform: scale(0.8);
    /* 初期状態で少し小さく表示 */
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
  }

  .fade-up-right.on {
    opacity: 1;
    transform: scale(1);
    /* ズームインして元のサイズに */
  }

  .fade-up-left {
    transform: scale(0.8);
    /* 初期状態で少し小さく表示 */
    opacity: 0;
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
  }

  .fade-up-left.on {
    opacity: 1;
    transform: scale(1);
    /* ズームインして元のサイズに */
  }


  /* -------タブレット-----------------------------
--------スライダー--------------------- */
  .zoomout-slider {
    padding-top: 105px;
  }

  .scroll-indicator {
    bottom: 12vh;
  }

  .scroll-text {
    font-size: 20px;
  }

  .scroll-arrow {
    width: 12px;
    height: 12px;
    /* border-bottom: 2px solid #0F1B07;
    border-right: 2px solid #0F1B07; */
  }

  .slider-caption-fixed {
    bottom: 15vh;
    left: 50%;
    max-width: 100%;
    width: 90%;
    text-align: left;
    padding: 20px 5px;
  }

  .main-h2 {
    font-size: 35px;
    text-align: center;
  }

  .slider-caption-fixed p {
    font-size: 20px;
  }

  .margin-top20 {
    margin-top: 15px;
  }

  .sp-none {
    display: none;
  }

  /* ---------------タブレット---------------------------
-----------------新着情報---------------------------- */
  .news-section {
    max-width: 90%;
    margin: 50px auto;
  }

  /* -------------タブレット------------------------------
--------南九州療院のホームページへようこそ----- */
/* 共通パララックス背景 */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -1;
  pointer-events: none;
}

/* sec01 用の背景画像 */
.parallax-bg.bg-sec01 {
  background-image: url("http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizen01.png");
}

.sec01 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: none;
  z-index: 1;
}

/* 背景画像を別要素で制御（背景固定風） */
.sec01::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizen01.png)
    no-repeat center top / cover;
  z-index: 0;
  background-position-y: -82px;
  will-change: transform;
}

  .sec01wrappeer {
    width: 100%;
    position: relative;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    padding: 20px;
  }

  .sec01wrappeer::after {
    width: 100%;
    height: 500px;
  }

  /* --------------タブレット-------------------------
------地域とともに、こころと体の健康を支える医療へ---- */
  .sec02 {
    padding: 180px 0 20px 0;
  }

  /* 上の段 */
  .sec02-top {
    max-width: 90%;
    margin: 0 0 0 auto;
  }

  .image1 {
    max-width: 100%;
    height: 390px;
  }

  .sec02-top::before {
    width: 230px;
    height: 230px;
    bottom: -40px;
    right: 510px;
    transform: scaleX(-1);
  }

  /* 二段目 */
  .sec02-tree-background::before {
    bottom: -37px;
    background-size: 150% auto;
    background-position: center;
  }

  .sec02-text01 {
    max-width: 100%;
    margin: 0 auto;
    display: block;
    align-items: initial;
  }

  .image2 {
    margin-top: 100px;
    margin-left: 355px;
  }

  .image2 img {
    width: 295px;
  }

  .text-block {
    position: relative;
    z-index: 2;
  }

  .text-block::before {
    content: '';
    display: block;
    position: absolute;
    bottom: -251px;
    left: 0px;
    width: 240px;
    height: 300px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/background01.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 21;
    pointer-events: none;
  }

  /* 三段目 */
  .sec02-images {
    display: block;
    align-items: initial;
  }

  .sec02-images .image3 {
    width: 65%;
    margin: 0;
  }

  .sec02-images .image04 {
    width: 45%;
    margin: 0 0 0 auto;
  }

  .sec02-images .image3 img {
    transform: translateY(0px);
  }

  .sec02-images .image04 img {
    transform: translateY(50px);
  }

  /* 四段目 */
  .sec02-text02 {
    width: 100%;
    max-width: 100%;
    margin: 140px auto;
    padding: 0 6%;
    display: block;
    align-items: initial;
  }

  .image5 {
    width: 430px;
    height: 625px;
    margin-left: 50px;
  }

  .image5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .image5::before {
    width: 295px;
    height: 295px;
    top: -239px;
    left: -67px;
  }

  .text-column {
    max-width: 100%;
    padding-top: 135px;
    position: relative;
  }

  .text-column::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 96px;
    left: 0px;
    width: 215px;
    height: 300px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/background01.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 21;
    pointer-events: none;
  }

  .image6 {
    max-width: 350px;
    width: 60%;
    margin-top: 0px;
    margin: 0 0 0 auto;
  }

  .image6::before {
    width: 230px;
    height: 230px;
    position: absolute;
    top: -180px;
    right: 0;
  }

  /* -----------タブレット----------------------------
-------信頼とつながりが生み出す健やかな暮らし--------- */
  .sec03::before {
    height: 1400px;
    top: 7%;
    left: 0;
    clip-path: polygon(0 20%, 100% 0, 100% 80%, 0% 100%);
  }

  /* --- 共通ラッパー --- */
  .sec03-inner {
    max-width: 90%;
    width: 90%;
    flex-direction: column-reverse;
  }

  .inner-background02::before {
    content: '';
    width: 311px;
    height: 311px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf03.png);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    position: absolute;
    top: -231px;
    right: 0px;
    z-index: 1;
    opacity: 0.1;
  }

  .sec03-inner {
    max-width: 93%;
    width: 93%;
    flex-direction: column-reverse;
  }


  /* 左右の幅調整（1カラム表示に） */
  .sec03-text {
    width: 100%;
    align-items: center;
  }

  .sec03-image {
    width: 100%;
    height: 400px;
  }

  .sec03-text h3 {
    margin-bottom: 0;
  }

  /* テキストブロックのパディング調整 */
  .sec03-text {
    padding: 40px 20px;
  }

  /* 画像を全幅に調整 */
  .sec03-image img {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* タイトル中央寄せ（必要であれば） */
  .sec03-title {
    text-align: center;
    padding: 0 20px;
  }

  .sec03-inner.reverse {
    flex-direction: row-reverse;
    display: block;
  }



  /* ---------------タブレット----------------------------
--------南九州療院が目指す“こころと体の健康ひろば”----- */
  .droplet {
    width: 65px;
    height: 65px;
  }

  .parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizen02.png")
    no-repeat center center / cover;
  z-index: -1;
  pointer-events: none;
}

.sec04-h2 {
  width: 100%;
  height: 100vh;
  background: none;
  position: relative;
  z-index: 1;
}

  .sec04wrappeer {
    width: 90%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    padding: 0;
  }

  .sec04wrappeer::after {
    width: 100%;
    height: 500px;
  }

  .sec04-text {
    margin-top: 15px;
  }

  .size22 {
    font-size: 20px;
  }

  /* 「新しい医学」に基づく包括的ケア */
  .sec04-block-medicine {
    max-width: 100%;
    padding: 100px 0;
    display: block;
  }

  .image7 {
    width: 80%;
    margin: auto 0 0 0;
    height: 350px;
  }

  .medicine-text {
    width: 90%;
    margin: 0 auto;
  }

  .medicine-text h3 {
    margin: 245px 0 30px 0;
  }

  /* 真ん中画像 */
  .sec04-block-images {
    max-width: 100%;
    padding: 60px 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
  }

  .image11 {
    order: 2;
    width: 30%;
    height: 380px;
    margin-top: 0px;
  }

  .image8 {
    width: 90%;
    margin: 0 auto;
  }

  .image9 {
    width: 50%;
    height: 250px;
    margin-top: 200px;
    position: relative;
  }

  .image9::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 96px;
    left: 0px;
    width: 300px;
    height: 300px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf02.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 21;
    pointer-events: none;
    opacity: .2;
  }

  /* 共助とぬくもりのある地域づくり */
  .sec04-block-community {
    max-width: 100%;
    padding: 100px 0;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    flex-direction: column-reverse;
  }

  .image10 {
    width: 90%;
    height: 350px;
    margin-top: 100px;
  }

  .community-text {
    width: 90%;
    margin: 0 auto;
  }

  .community-text h3 {
    margin: 245px 0 30px 0;
    position: relative;
  }

  .community-text h3::before {
    content: '';
    width: 170px;
    height: 170px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/background01.png);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    position: absolute;
    top: -90px;
    right: 0;
    z-index: 9;
  }

  .community-text h3::after {
    content: '';
    width: 210px;
    height: 210px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf01.png);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    position: absolute;
    top: -158px;
    right: 0;
    z-index: 9;
  }

  /* -------タブレット-----------------------------
--------フッター--------------------- */
  footer {
    padding-bottom: 77px;
  }

  .footer-sention-flex {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
  }

  .footer-info {
    padding: 30px 30px 65px 30px;
  }

  .f-logo {
    display: flex;
    justify-content: center;
    /* 横方向中央寄せ */
    align-items: center;
    /* 縦方向中央寄せ */
  }

  .footer-buttons {
    margin-top: 55px;
  }

  .footer-map {
    width: 90%;
    margin: 0 auto;
  }


  .font-size14 {
    font-size: 14px;
  }

  .footerNav-row.row-top,
  .footerNav-row.row-bottom {
    grid-template-columns: 1fr;  /* 1列表示 */
    justify-items: center;       /* 各リンクを中央寄せ */
  }
  .footerNav a {
    font-size: 14px;
    color: #5c821a;
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 8px;
  }
}

/* -----------ここから-------------------------------------
---------------スマホ---------------------------------- */
@media screen and (max-width: 480px) {

  body {
    max-width: 480px;
    overflow-x: hidden;
    font-size: 16px;
  }

  h2 {
    font-size: 22px;
    color: #3f4f3c;
    margin-bottom: 5px;
  }

  .subheading {
    font-size: 16px;
    color: #6fa038;
  }

  h3 {
    font-size: 20px;
    color: #6fa038;
  }

  /* -------スマホ-----------------------------
--------ヘッダー--------------------- */

  .header-left h1 {
    margin: 2px 0 0 20px;
  }

  .header-left img {
    width: 165px;
  }

  .scroll-nav .header-left img {
    width: 155px;
    margin-top: 3px;
  }

  /* -------スマホ-----------------------------
--------スライダー--------------------- */

  .zoomout-slider {
    padding-top: 70px;
  }

  .slider-caption-fixed {
    padding: 20px 15px;
    bottom: 27vh;
  }

  .main-h2 {
    font-size: 25px;
    text-align: center;
  }

  .slider-caption-fixed p {
    font-size: 16px;
  }

  .scroll-text {
    font-size: 18px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  }

  .scroll-arrow {
    width: 9px;
    height: 9px;
    border-bottom: 2px solid #7caf50;
    border-right: 2px solid #fff;
  }

  /* ---------------スマホ---------------------------
-----------------新着情報---------------------------- */
  .news-section {
    max-width: 90%;
    margin: 0 auto;
    padding: 35px 15px 60px 15px;
  }

  .news-item dt {
    width: 100%;
  }

  .news-item dd {
    width: 100%;
    padding-top: 5px;
  }


  /* ---------スマホ--------------------------------
------地域とともに、こころと体の健康を支える医療へ---- */
  /* 二段目 */
  .sec02-tree-background::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 110px;
    left: 0px;
    width: 140px;
    height: 215px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf01.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 0;
    pointer-events: none;
    opacity: 1.2;
    transform: rotate(-53deg);
  }

  .sec02-text01 {
    max-width: 100%;
    margin: 0 auto;
    display: block;
    align-items: initial;
  }

  .text-block::before {
    bottom: -115px;
    width: 130px;
    height: 130px;
  }

  .image2 {
    width: 200px;
    margin-top: 100px;
    margin-left: 0;
    margin-right: 0;
    display: block;
    margin-inline-start: auto;
  }

  .image2 img {
    width: 100%;
  }

  /* 三段目 */
  .sec02-images .image3 {
    width: 75%;
  }

  .sec02-images .image04 {
    width: 50%;
  }

  /* 四段目 */
  .sec02-text02 {
    width: 100%;
    max-width: 100%;
    margin: 140px auto;
    padding: 0 6%;
    display: block;
    align-items: initial;
  }

  .image5 {
    width: 230px;
    height: 425px;
    margin-left: 20px;
  }

  .image5::before {
    width: 145px;
    height: 145px;
    top: -184px;
    left: -20px;
  }

  .image6::before {
        width: 114px;
        height: 110px;
        position: absolute;
        top: -203px;
        right: 3px;
        transform: rotate(-28deg);
  }

  .text-column::before {
    bottom: 145px;
    width: 130px;
    height: 130px;
  }

  /* ------スマホ------------------------------
-------信頼とつながりが生み出す健やかな暮らし--------- */
  .sec03-background {
    padding-top: 20px;
  }

  .inner-background::before {
    content: '';
    width: 320px;
    height: 320px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf02.png);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    position: absolute;
    top: -150px;
    left: -43px;
    z-index: 9;
    opacity: .2;
  }

  .inner-background02::before {
    content: '';
    width: 220px;
    height: 220px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf03.png);
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    position: absolute;
    top: -169px;
    right: 0px;
    z-index: 1;
    opacity: 0.1;
  }

  /* ------スマホ------------------------------
-------南九州療院が目指す"こころと体の健康ひろば"--------- */
  .droplet {
    width: 45px;
    height: 45px;
  }

  .droplet--1 {
    top: 9%;
    left: 8%;
  }

  .droplet--2 {
    bottom: 81%;
    right: 8%;
  }

  .droplet--3 {
    top: 25%;
    right: 13%;
  }

  .droplet--4 {
    top: 32%;
    right: 75%;
  }

  .droplet--5 {
    top: 38%;
    right: 58%;
  }

  .droplet--6 {
    top: 43%;
    right: 7%;
  }

  .droplet--7 {
    top: 50%;
    right: 27%;
  }

  .droplet--8 {
    top: 60%;
    right: 74%;
  }

  .droplet--9 {
    top: 68%;
    right: 20%;
  }

  .droplet--10 {
    top: 77%;
    right: 64%;
  }

  .droplet--11 {
    top: 88%;
    right: 19%;
  }

  .droplet--12 {
    top: 97%;
    right: 73%;
  }

  .sec04-text {
    width: 90%;
    margin: 15px auto;
  }

  .size22 {
    font-size: 18px;
  }

  /* 新しい医学に基づく包括的ケア */
  .medicine-text h3 {
    margin: 170px 0 30px 0;
  }

  .medicine-text h3::before {
    width: 130px;
    height: 130px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/background01.png);
    top: -105px;
    right: 0;
  }

  .sec04-block-images {
    justify-content: space-between;
    gap: 15px;
  }

  .image9 {
    width: 55%;
  }

  .image11 {
    width: 35%;
  }

  /* 共助とぬくもりのある地域づくり */
  .community-text h3 {
    margin: 170px 0 30px 0;
  }

  .community-text h3::before {
    width: 130px;
    height: 130px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/background01.png);
    top: -105px;
  }

  .community-text h3::after {
    width: 130px;
    height: 130px;
    background-image: url(http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/leaf01.png);
    top: -28px;
  }

.gallery {
  width: 100%;
  height: 40vh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%; /* 高さを大きめにしてパララックス風 */
  background: url("http://minamikyusyuryouin.jp.testrs.jp/test/wp-content/uploads/2025/07/shizen06.png")
    no-repeat center center / cover;
  transform: translateY(-10%);
  z-index: -1;
  will-change: transform;
}


  /* --------------スマホ------------------------------
------------------フッター--------------------------- */
  .footer-data {
    padding: 15px 0;
    font-size: 15px;
  }

  .footer-data dt {
    width: 30%;
    margin-right: 0;
  }

  .footer-data dd {
    width: 70%;
    font-size: 14px;
}

  .footer-map {
    flex: 1 1 100%; 
    width: 90%; 
    margin: 0 auto; 
      border-radius: none;
  }

  .footer-map iframe {
    width: 100%;
    min-height: 300px; 
  }

/* ボタンデザイン */
.footer-buttons {
  display: flex;
  flex-direction: row;   /* 横並び */
  justify-content: center; /* 中央寄せ */
  align-items: center;
  gap: 16px;             /* ボタン間の間隔 */
  margin-top: 20px;
  flex-wrap: wrap;       /* スマホで折り返し */
}

.footer-btn,
.footer-btn02 {
  flex: 1;                  /* 均等に広がる */
  min-width: 220px;         /* 最小幅 */
  max-width: 260px;         /* 最大幅を揃える（任意） */
  text-align: center;
}

.footer-btn a,
.footer-btn02 a {
  display: block;
  width: 100%;              /* ボタンいっぱいに広げる */
  padding: 12px 0;
  text-decoration: none;
  font-weight: bold;
}

.footer-btn02 a {
  background-color: #d67f1d;
}















}












































/* PCでは表示しない（改行しない） */
.sp-br {
  display: none;
}

/* モバイルだけ改行させる */
@media (max-width: 768px) {
  .sp-br {
    display: block;
  }
}