@charset "UTF-8";

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: rgb(255, 255, 255);
  margin: 0 auto;
  max-width: 1920px;
  min-width: auto;
  font-family: YuMincho, Hiragino Mincho ProN, serif;
  overflow-x: hidden;
  font-size: 16px;
  color: #292929;
}

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

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

h2 {
  font-size: 40px;
  font-weight: normal;
  color: #292929;
}

.subheading {
  font-size: 18px;
  color: #2a4d75;
}

h3 {
  font-size: 27px;
  font-weight: normal;
}

.shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ------------------------------
   フェードアップ演出
------------------------------ */
.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;
}

/*----------------------------
zoom-in ｜ズームイン
----------------------------*/
/* 初期状態（非表示＋縮小） */
.zoom-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 表示状態（拡大して表示） */
.zoom-in.on,
.zoom-in.active {
  opacity: 1;
  transform: scale(1);
}

/* ---------------------------------
----------ヘッダー----------------- */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.hamburger-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 0;
  color: #000;
}

.header-top {
  display: flex;
  align-items: center;
}

.no-flex h1 {
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 4px;
}

.no-flex img.logo {
  width: 270px;
  height: auto;
}

.slideout-nav {
  position: static;
  visibility: visible;
  opacity: 1;
  transform: none;
  height: auto;
  width: auto;
  background: none;
  box-shadow: none;
  padding: 0;
}

.slideout-nav-inner {
  display: flex;
  align-items: center;
  height: auto;
  padding: 0;
}

.slideout-nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slideout-nav-item {
  padding: 0;
  margin: 0;
  opacity: 1;
  transform: none;
}

.slideout-nav-link {
  font-size: 16px;
  text-decoration: none;
  font-weight: 100;
  position: relative;
  padding: 4px 0;
}

.slideout-nav-link:hover {
  color: #0F2540;
}

.oya-menu-li {
  position: relative;
}

/* 電話番号の特別スタイル */
.tel-highlight {
  text-align: center;
}

.tel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 30px;
  background: linear-gradient(to right, #f2941f, #f8cf2f);
  /* オレンジ→イエロー */
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tel-link i {
  color: #0F2540;
  margin-right: 10px;
  font-size: 16px;
}

/* hoverで少し濃く */
.tel-link:hover {
  background: linear-gradient(to right, #e18400, #e6b900);
}

/* サブメニューのベースデザイン */
.sub-menu {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  /* ← 親の中央位置を起点に */
  transform: translateX(-50%);
  /* ← 自分の幅の半分だけ左にずらして中央揃えに */
  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: #0F2540;
  transition: all 0.3s ease;
  text-align: center;
}

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

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

/* サブメニュー内リンクのホバー時の透明度を無効にする */
.sub-menu li a:hover {
  opacity: 1 !important;
}

/* ハンバーガーメニューは非表示 */
.menu-toggle-button {
  display: none;
}

.slideout-nav-contact {
  display: none;
}

/* スクロールしたら */
.scroll-nav {
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  height: 90px;
}

.scroll-nav h1 {
  display: none;
}

.scroll-nav img {
  width: 250px;
  height: auto;
}

.scroll-nav .header-left {
  margin-top: 10px;
}

.scroll-nav .no-flex {
  margin-top: 6px;
}

.scroll-nav .slideout-nav-list {
  margin-top: 10px;
  position: relative;
}

/* サブメニューの各項目 */
.scroll-nav .sub-menu li,
.scroll-nav .sub-menu li a {
  margin: 0;
  padding: 0;
  border: none;
  background-color: #0F2540;
  color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.scroll-nav .sub-menu li a {
  padding: 12px 18px;
}

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

.arrow-icon {
  margin-left: 0.4em;
  font-size: 0.75em;
  color: #0F2540;
  transition: transform 0.3s ease;
}

@media screen and (max-width: 1199px)  {
  .slideout-nav-list {
  gap: 16px;
  }
  .slideout-nav-link {
  font-size: 15px;
}
}

/* モバイル版 */
@media screen and (max-width: 768px) {
  body {
    max-width: 768px;
    overflow-x: hidden;
    font-size: 16px;
  }

  .no-flex h1 {
    font-size: 10px;
    font-weight: 100;
  }

  .no-flex img.logo {
    width: 210px;
    height: auto;
  }

  .scroll-nav {
    height: 60px;
  }

  .scroll-nav .header-top img {
    width: 200px;
    height: auto;
  }

  /* ヘッダーの全体レイアウト調整 */
  .hamburger-header {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  /* ヘッダー上部（ロゴとハンバーガー） */
  .header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }

  /* ロゴエリア調整 */
  .no-flex {
    display: flex;
    flex-direction: column;
  }

  .scroll-nav .header-top {
    padding: 0;
  }

  .scroll-nav .scroll-nav-none {
    display: none;
  }

  /* ハンバーガーメニュー */
  .menu-toggle-button {
    display: block;
    position: relative;
    z-index: 1001;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle-wrapper {
    position: relative;
    width: 25px;
    height: 20px;
    margin: 20px auto;
  }

  .menu-toggle-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0F2540;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .menu-toggle-line:nth-child(1) {
    top: 0;
  }

  .menu-toggle-line:nth-child(2) {
    top: 9px;
  }

  .menu-toggle-line:nth-child(3) {
    top: 18px;
  }

  .menu-toggle-button.active .menu-toggle-line {
    background-color: #fff;
  }

  .menu-toggle-button.active .menu-toggle-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle-button.active .menu-toggle-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .menu-toggle-button.active .menu-toggle-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .slideout-nav.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .slideout-nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0F2540;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .slideout-nav.active .slideout-nav-bg {
    opacity: 1;
  }

  .slideout-nav-inner {
    position: relative;
    display: block;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 5vh 10vw;
  }

  .slideout-nav-list {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .slideout-nav-item {
    position: relative;
    margin-bottom: 2vh;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .slideout-nav.active .slideout-nav-item {
    opacity: 1;
    transform: translateY(0);
    color: #fff;
  }

  .slideout-nav.active .slideout-nav-item:nth-child(1) {
    transition-delay: 0.2s;
  }

  .slideout-nav.active .slideout-nav-item:nth-child(2) {
    transition-delay: 0.3s;
  }

  .slideout-nav.active .slideout-nav-item:nth-child(3) {
    transition-delay: 0.4s;
  }

  .slideout-nav.active .slideout-nav-item:nth-child(4) {
    transition-delay: 0.5s;
  }

  .slideout-nav.active .slideout-nav-item:nth-child(5) {
    transition-delay: 0.6s;
  }

  .slideout-nav.active .slideout-nav-item:nth-child(6) {
    transition-delay: 0.7s;
  }

  .slideout-nav-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .tel-link {
    padding: 6px 30px;
    border-radius: 4px;
  }

  .slideout-nav-contact {
    display: block;
    margin-top: auto;
    padding-left: 60px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.9s;
  }

  .slideout-nav.active .slideout-nav-contact {
    opacity: 1;
    transform: translateY(0);
  }

  .slideout-nav-address,
  .slideout-nav-tel {
    margin: 5px 0;
  }

  .arrow-icon {
    color: #fff;
  }

  /* 初期状態：非表示 */
  .sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
  }

  /* 「診療案内」がタップされて親に .open がついたら表示 */
  .slideout-nav-item.open .sub-menu {
    display: block;
    width: 100%;
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    background-color: #fff;
    /* border-radius: 4px; */
    padding: 1px 1px;
    margin-top: 5px;
  }

  /* 最後の項目の下線はなし */
  .slideout-nav-item .sub-menu li:last-child a {
    border-bottom: none;
  }

  .slideout-nav-item .sub-menu li:last-child a {
    border-bottom: none;
  }

  .slideout-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0F2540;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .slideout-nav-link:hover {
    color: inherit !important;
  }

  .slideout-nav.active {
    display: block;
    transform: translateX(0);
  }

  .slideout-nav-list {
    flex-direction: column;
    gap: 0;
  }

  .slideout-nav-item {
    margin-bottom: 15px;
  }

  .menu-toggle-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .slideout-nav-contact {
    display: block;
    color: #fff;
    margin-top: 30px;
  }

  .sub-menu {
    position: static;
    transform: none;
    background: #0F2540;
    box-shadow: none;
    border: none;
    display: none;
  }

  .has-submenu.open .sub-menu {
    display: block;
  }

  .sub-menu li a {
    background: #fff;
    color: #0F2540;
    padding: 5px 18px;
  }

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

  .scroll-nav .sub-menu li {
    margin: 0;
    padding: 5px;
    border: none;
    background-color: #fff;
    color: #0F2540;
    border-bottom: 1px solid #e0e0e0;
  }

   .scroll-nav .sub-menu li a {
    background: #fff;
    color: #0F2540;
    padding: 5px 18px;
    border-bottom: none;
  }

}

/* TOPに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background-color: #0F2540;
  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);
}

/* ---------------------------------------
--------サイドバー（青系テーマ）---------
--------------------------------------- */
.l-side__wrap {
  position: fixed;
  top: 30%;
  right: -260px;
  width: 320px;
  background-color: #eee;
  border-radius: 10px 0 0 10px;
  display: flex;
  transition: right 0.3s ease;
  z-index: 999;
}

.l-side__wrap:hover {
  right: 0;
}

.l-side__btn {
  width: 60px;
  background-color: #0F2540;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.8rem;
  padding: 10px 0;
  border-radius: 10px 0 0 10px;
}

.l-side__btn i {
  font-size: 20px;
}

.reserve-content {
  flex: 1;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.reserve-title {
  color: #2a4d75;
  /* 少し深めの青 */
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

.reserve-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 10px 15px;
  text-decoration: none;
  color: #0F2540;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.reserve-link i {
  font-size: 20px;
  color: #0F2540;
}

.reserve-link:hover {
  background-color: #cce7f5;
  /* 薄い青系のホバー色 */
}

.sp-fixed-reserve {
  display: none;
}


/* ---------------------------------
----------スライダー----------------- */
.main-visual {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 100vh;
  z-index: 3;
}

.main-visual .swiper {
  width: 100%;
  height: 100%;
}

.swiper, .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: center; /* 中央揃え */
  align-items: center; /* 垂直中央揃え */
}

.swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* 画像をスライド内でフィットさせる */
}

.main-visual .swiper-wrapper {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
}

.vertical-text-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.7);
  /* 半透明白背景 */
  padding: 16px;
  display: flex;
  gap: 16px;
  pointer-events: none;
  height: 100%;
}

.texit-right {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  /* 中央寄せ */
  align-items: center;
  /* 垂直方向も中央揃え */
  height: 100%;
}

.blue-bg {
  background-color: #003366;
  color: #fff;
  padding: 10px 8px;
  height: 400px;
  /* ←好みに応じて調整可 */
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-align: center;
  font-size: 27px;
  line-height: 2;
  font-weight: 500;
}

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

.lower-text {
    margin-top: 130px;
}

.lower-text01 {
  margin-top: 40px;
}

.lower-text02 {
  margin-top: 70px;
}

.white-text {
  color: #292929;
  writing-mode: vertical-rl;
  font-size: 22px;
  line-height: 2;
  font-weight: 500;
}

.text-shadow {
  font-size: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.orange {
  color: #f2941f;
  font-weight: bold;
    text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 200, 100, 0.8);
}

/* -----------------------------------
-----------新着情報------------------ */
.news-fixd {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  padding: 40px 0;
  background: #fff;
  position: relative;
  z-index: 3;
}

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

.news-heading {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px;
}

.news-subheading {
  margin-top: 20px;
}

/* ニュースリスト全体のカード表示 */
.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

/* 各ニュースアイテムをカード風に */
.news-item {
  width: 250px;
  height: 300px;
  background: #f8f8f8;
  text-align: left;
  padding: 16px;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 12px;
}

.news-item dt {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.news-item .news-category {
  background: #0F2540;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  margin-left: 6px;
}

.news-item dd {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.news-item dd a {
  text-decoration: none;
  color: #222;
}

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

/* ボタン */
.news-more {
  text-align: center;
}

.news-link {
  display: inline-block;
  padding: 10px 60px;
  border: 1px solid #0F2540;
  color: #0F2540;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-link:hover {
  background: #e85e0c;
  color: #fff;
  border: 1px solid #fff;
}

.news-link::after {
  content: "▶";
  transition: transform 0.3s ease;
  font-size: 10px;
}

.news-link:hover::after {
  transform: translateX(4px);
}

/* -------------------------------------------
--------医院からのメッセージ----- */
/* 共通パララックス背景 */
.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("/wp-content/uploads/2025/12/03_入口02.jpg");
  overflow-x: hidden;
}

.sec01 {
  width: 100%;
  height: 100vh;
  /* background:
    url(http://toyoshima-dental.com.testrs.jp/test/wp-content/uploads/2025/09/top-img06.jpg) no-repeat center center / cover;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
    overflow-x: hidden; */
}

.sec01wrappeer {
  width: 800px;
  position: relative;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  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));
  z-index: 1;
  filter: blur(60px);
  -webkit-filter: blur(60px);
}

.sec01-title {
  font-size: 32px;
  color: #0F2540;
  font-weight: 700;
  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;
}


/* -------------------------------------------
--------新発田市のとよしま歯科医院の特徴----- */
.feature-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 200px 0 5px 0;
  color: #333;
  position: relative;
  z-index: 3;
  background: #fff;
}

.sec02-title {
  text-align: center;
}

/* ----------幅広い治療に対応し----------- */
.back-ground {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.back-ground::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 290px;
  top: 63%;
  left: 0;
  background: #f8f8f8;
  z-index: -1;
}

.feature-text {
  max-width: 1500px;
  margin: 0 auto;
  padding: 100px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

/* --------------左側画像-------------- */
.feature-image {
  position: relative;
  width: 54%;
}

.feature-left-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* .feature-right-image {
  position: absolute;
  bottom: -25px;
  left: 60%;
  width: 55%;
  height: 300px;
  transform: translate(-30%, 30%);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
} */

/* --------------右側テキスト-------------- */
.feature-lead {
  width: 42%;
  padding: 40px 20px 0 20px;
}

.feature-content {
  margin-bottom: 55px;

}

.feature-content span {
  display: block;
  text-align: center;
  font-size: 32px;
  color: #0F2540;
}

.feature-content h3 {
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: #0F2540;
  text-shadow: 1px 2px 2px rgba(25, 42, 65, 0.5);
  text-align: center;
}

.feature-content p {
  margin-top: 15px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

/* バッチ */
.society-badges {
  text-align: center;
}

.society-badges-flex {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  /* 任意で調整 */
  margin: 0 auto;
}

.badge {
  position: relative;
  width: 27%;
  aspect-ratio: 1 / 1;
  /* 正円 */
  background-color: #fff;
  border-radius: 50%;
  font-size: 16px;
  color: #333;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre-line;
  /* <br>対応 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1;
  line-height: 1.5;
}

/* 二重線（上左） */
.badge::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: #999;
  border-left-color: #999;
  transform: rotate(15deg);
  z-index: -1;
}

/* 二重線（下右） */
.badge::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: #999;
  border-right-color: #999;
  transform: rotate(-15deg);
  z-index: -1;
}

/* ---------ずっと健康なお口でいていただくために---------
----------------------------------------------------- */
.prevention-block {
  position: relative;
  padding-bottom: 60px;
}

.prevention-block::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  height: 600px;
  /* 高さは自由に */
  background-color: #f8f8f8;
  /* 任意の色 */
  clip-path: polygon(0 0, 100% 100%, 0% 100%);
  z-index: -1;
}

.feature-text02 {
  max-width: 1500px;
  margin: 0 auto;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}

/* --------------右側画像-------------- */
.feature-image02 {
  position: relative;
  width: 54%;
}

.feature-left-image02 {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* .feature-right-image02 {
  position: absolute;
  bottom: -25px;
  left: 15%;
  width: 55%;
  height: 300px;
  transform: translate(-30%, 30%);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
} */

/* --------------左側テキスト-------------- */
.feature-content02 {
  width: 42%;
  padding: 0 30px;
}

.feature-content02 span {
  display: block;
  text-align: center;
  font-size: 32px;
  color: #0F2540;
}

.feature-content02 h3 {
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: #0F2540;
  text-shadow: 1px 2px 2px rgba(25, 42, 65, 0.5);
  text-align: center;
}

.feature-content02 p {
  margin-top: 15px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

/*--------------下の段---------------*/

/* 横並び用 */
.prevention-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1360px;
  margin: 0 auto;
}

.items {
  width: 65%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.prevention-item {
  width: 45%;
}

.prevention-item img {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.caption {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #0F2540;
  margin-bottom: 10px;
}

/* ボタン */
.prevention-button {
  width: 30%;
}

.prevention-link {
  display: inline-block;
  padding: 10px 60px;
  border: 1px solid #0F2540;
  color: #0F2540;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prevention-link:hover {
  background: #e85e0c;
  color: #fff;
  border: 1px solid #fff;
}

.prevention-link::after {
  content: "▶";
  transition: transform 0.3s ease;
  font-size: 10px;
}

.prevention-link:hover::after {
  transform: translateX(4px);
}


/* ---------感染症対策を徹底しております------------
 駅前通りのメインストリートに位置しアクセス良好。専用駐車場もございます*/
.virus-secsion {
  width: 100%;
  position: relative;
  z-index: 5;
}

.virus-contents {
  max-width: 1500px;
  margin: 100px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  /* ブロック間に余白 */
}

.virus-block {
  width: 48%;
  padding: 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.06); */
}

.virus-block::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  width: 100%;
  height: 70%;
  background-color: #f8f8f8;
  /* ← カチッとした淡い青 */

  z-index: -1;
  border-radius: 4px;
}

/* 右側だけ高さを長めにする */
.virus-contents .virus-block:nth-child(even)::before {
  height: 85%;
}

/* 左側はデフォルト高さ */
.virus-contents .virus-block:nth-child(odd)::before {
  height: 75%;
}

.virus-block img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.virus-block span {
  display: block;
  text-align: center;
  font-size: 32px;
  color: #0F2540;
}

.virus-block h3 {
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: #0F2540;
  text-align: center;
  text-shadow: 1px 2px 2px rgba(25, 42, 65, 0.5);
}

.virus-block-text {
  margin-top: 15px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.margin-top80 {
  margin-top: 80px;
}

/* ------------------------------
  選ばれる理由
------------------------------ */
.reasons-section {
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 120px 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(233, 239, 244, 0.9), rgba(255, 255, 255, 0.9));
  position: relative;
  z-index: 1;
}

.reasons-section h2 {
  text-align: center;
}

.reasons-section .subheading {
  text-align: center
}

.reason-list {
  max-width: 1300px;
  margin: 65px auto;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.reason-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0 10px;
}

.reason-block .reason-image img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3);
}

.reason-text {
  margin-top: 30px;
  padding: 20px
}

.reason-title {
  font-weight: normal;
  color: #0F2540;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.reason-text p {
  font-size: 15px;
  color: #2e2e2e;
  line-height: 1.7;
}

.marker {
  background: linear-gradient(transparent 60%, #ffdfa3 60%);
  font-weight: bold;
}

/* ------------------------------
  診療案内
------------------------------ */
.treatment-section {
  width: 100%;
  margin: 0 auto;
  padding: 100px 0;
  position: relative;
  z-index: 5;
  background: #fff;
}

.treatment-heading {
  text-align: center;
}

.pickUp {
  width: 100%;
  padding: 50px 0;
  overflow: hidden;
}

/* ピックアップ */
/* 矯正歯科 */
.orthodontics {
  display: flex;
  justify-content: center;
  align-items: center;
  /* max-width: 1500px; */
  width: 90%;
  margin-bottom: 80px;
  height: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #f5faff;
  background-image: url("/wp-content/uploads/2025/09/ortho.png");
  /* ← ここを実際のパスに置き換え */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* 左側：背景画像＋テキスト */
.pickUp-left {
  width: 35%;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.bg-text {
  color: white;
  font-size: 68px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* 右側：説明とリンク */
.pickUp-right {
  width: 60%;
  /* height: 400px; */
  min-width: 500px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* 背景画像 */
/* HTML内に追加された背景＋グラデーション */
.bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 50%),
    url("/wp-content/uploads/2025/09/medical04_img01.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  /* 背景がクリックを邪魔しないように */
}

/* テキストやボタンなど前面に出す */
.pickUp-right>*:not(.bg-overlay) {
  position: relative;
  z-index: 10;
}

.pickUp h3 {
  margin-bottom: 15px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  font-weight: 600;
  color: #0F2540;
  text-shadow: 2px 2px 10px rgba(25, 42, 65, 0.5);
}

.pickUp-text {
  position: relative;
  z-index: 10;
  padding-top: 10px;
}

.pickup-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  position: relative;
  z-index: 10;
}

.pickup-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.pickup-list .li-icon {
  color: #002f6c;
  margin-right: 10px;
  margin-top: 4px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ボタン全体の幅 */
.pickup-button {
  width: 100%;
  margin-top: 20px;
}

.pickup-link {
  display: inline-flex;
  padding: 10px 60px;
  border: 1px solid #0F2540;
  background-color: #0F2540;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pickup-link:hover {
  background: #fff;
  color: #0F2540;
  border: 1px solid #0F2540;
}

.pickup-link::after {
  content: "▶";
  transition: transform 0.3s ease;
  font-size: 10px;
}

/* ホバー時にアイコンをスライド */
.pickup-link:hover::after {
  transform: translateX(4px);
}


/* インプラント */
.implant {
  display: flex;
  justify-content: center;
  align-items: center;
  /* max-width: 1500px; */
  max-width: 90%;
  margin-left: auto;
  height: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #f5faff;
  background-image: url("/wp-content/uploads/2025/09/implant.png");
  /* ← ここを実際のパスに置き換え */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* 右側：説明とリンク */
.implant-right {
  width: 60%;
  min-width: 500px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.implant-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 50%),
    url("/wp-content/uploads/2025/09/23179126_s.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  /* 背景がクリックを邪魔しないように */
}

/* テキストやボタンなど前面に出す */
.implant-right>*:not(.implant-overlay) {
  position: relative;
  z-index: 10;
}

/* 根管治療 */
.root {
  display: flex;
  justify-content: center;
  align-items: center;
  /* max-width: 1500px; */
  width: 90%;
  margin-top: 80px;
  height: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #f5faff;
  background-image: url("/wp-content/uploads/2025/09/root.png");
  /* ← ここを実際のパスに置き換え */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* 右側：説明とリンク */
.root-image {
  width: 60%;
  min-width: 500px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.root-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 50%),
    url("/wp-content/uploads/2025/09/konnkanntiryou.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  /* 背景がクリックを邪魔しないように */
}

/* テキストやボタンなど前面に出す */
.root-image>*:not(.root-overlay) {
  position: relative;
  z-index: 10;
}

/* 診療案内ブロック */
.treatment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 15px;
}

/* 各カード */
.treatment-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.treatment-link {
  display: block;
  text-decoration: none;
}

/* 画像部分 */
.treatment-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* テキストとボタンのエリア */
.treatment-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-top: 1px solid #eee;
}

/* テキスト側 */
.treatment-text h3 {
  font-size: 22px;
  color: #333;
  margin: 0 0 5px;
  font-weight: 500;
}

.treatment-text p {
  font-size: 14px;
  color: #5e7b94;
  /* グリーン系 */
  font-weight: 500;
  margin: 0;
  letter-spacing: 1px;
}

/* 丸い矢印 */
.treatment-arrow {
  width: 32px;
  height: 32px;
  background-color: #0F2540;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.treatment-arrow i {
  color: #fff;
  font-size: 14px;
}

/* ------------------------------------------
-------------------院長挨拶------------------ */
.greeting-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 100px 0;
  color: #333;
  position: relative;
  z-index: 3;
  background: #fff;
}

.greeting-wrapper::before {
  content: "";
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 65%;
  height: 650px;
  background-color: #e0ecf7b4;
  clip-path: polygon(0 0, 100% 100%, 0% 100%);
  z-index: -1;
}

.greeting-text {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.greeting-image {
  position: relative;
  width: 45%;
}

.left-image {
  width: 80%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.right-image {
  position: absolute;
  bottom: 0;
  left: 60%;
  width: 50%;
  max-width: 280px;
  height: 350px;
  transform: translate(-30%, 30%);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.greeting-lead {
  width: 50%;
}

.greeting-title {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px;
}

.greeting-subheading {
  margin-top: 20px;
}

.doctor {
  margin-top: 10px;
  font-size: 15px;
  color: #333;
}

.font-size22 {
  font-size: 22px;
  margin: 0 15px;
  font-weight: bold;
}

.greeting-content h3 {
  margin-top: 65px;
  letter-spacing: 0.1em;
  color: #0F2540;
  text-shadow: 1px 2px 2px rgba(25, 42, 65, 0.5);
}

.greeting-content p {
  margin-top: 15px;
  font-size: 15px;
  line-height: 2;
  color: #333;
}

/* ボタン */
.greeting-more {
  margin-top: 30px;
}

.greeting-link {
  display: inline-block;
  padding: 10px 60px;
  border: 1px solid #0F2540;
  color: #0F2540;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.greeting-link:hover {
  background: #e85e0c;
  color: #fff;
  border: 1px solid #fff;
}

.greeting-link::after {
  content: "▶";
  transition: transform 0.3s ease;
  font-size: 10px;
}

.greeting-link:hover::after {
  transform: translateX(4px);
}

/* ------------------------------------------
-------------------アクセス------------------ */
/* 親ラッパー */
.clinic-sention {
  width: 100%;
  margin: 0 auto 400px auto;
  padding: 170px 0;
  position: relative;
  z-index: 3;
  background: #fff;
}

.clinic-heading {
  max-width: 1200px;
  margin: 0 auto;
}

/* 横並びラッパー */
.clinic-sention-flex {
  max-width: 1200px;
  margin: 90px auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  /* スマホ対応 */
}

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

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

/* 左ラベル部分 */
.clinic-data dt {
  width: 160px;
  font-weight: 600;
  color: #324b63;
  flex-shrink: 0;
  padding-left: 10px;
  margin-right: 20px;
  border-left: 3px solid #476a88;
}

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

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

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

.clinic-time-table {
  max-width: 1200px;
  margin: 0 auto;
}

.center {
  text-align: center;
  color: #0F2540;
}

/* ---------------------------------------
--------フッター--------------------- */
footer {
  width: 100%;
  padding-top: 70px;
  background:
    linear-gradient(135deg, rgba(84, 119, 153, 0.9), rgba(25, 42, 65, 0.9), rgba(0, 17, 34, 0.9)),
    url(/wp-content/uploads/2025/09/top-img05.jpg) no-repeat center center / cover;
  position: relative;
  z-index: 1;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  color: #fff;
}

.foot-left {
  width: 50%;
}

.info {
  width: 80%;
  margin: 0 auto;
}

.f-logo {
  display: flex;
  justify-content: center;
  /* 横方向の中央揃え */
  align-items: center;
  /* 縦方向の中央揃え */
  text-align: center;
  /* テキストを中央揃えにする */
  width: 100%;
  margin: 0 auto;
}

.f-logo img {
  width: 350px;
  height: auto;
  margin-bottom: 15px;
}

.address,
.f-flex {
  margin-left: 20px;
  padding-top: 5px;
  text-align: center;
}

/* フッターの表 */
.time-table {
  width: 80%;
  border-collapse: collapse;
  margin: 20px auto 0 auto;
  border: 1px solid #ddd;
  border-collapse: separate;
  overflow: hidden;
  border-spacing: 0;
  text-align: center;
  background: #fff;
  margin-bottom: 15px;
  font-family: serif;
  color: #4c5d6b;
}

.time-table th,
.time-table td {
  padding: 15px 5px;
  vertical-align: middle;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  line-height: 1;
  font-weight: normal;
}

.time-table th:last-child,
.time-table td:last-child {
  border-right: none;
}

.time-table tr:last-child th,
.time-table tr:last-child td {
  border-bottom: none;
}

.time-table th {
  background: #b2c7db;
  color: #324b63;
}

.time-table th.bg01 {
  background: #fff;
  color: #2b2b2b;
}

.time-table th:first-child {
  width: 33%;
}

.time-table th:last-child {
  width: 12%;
}

.time-table td {
  width: calc(55% / 6);
  color: #476a88;
}

.time-table.f-time-table th {
  background: #f4f7fa;
  color: #5e7b94;
}

.time-table.wide th:first-child {
  width: 25%;
}

.time-table.wide th:last-child {
  width: 10%;
}

.Saturday p {
  text-align: center;
  color: #eaf4ff;
}

iframe {
  width: 100%;
  height: 450px;
}

.foot-right {
  width: 50%;
}

.footer-list {
  width: 100%;
  margin: 50px 0;
  display: flex;
  justify-content: space-around;
  color: #fff;
}

.footer-list li {
  list-style: none;
}

.category {
  width: 100%;
  margin: 0 auto;
  line-height: 200%;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
}

.category ul li a {
  text-decoration: none;
  transition-duration: 0.5s;
	color: #fff;
}

.category ul li a:hover {
  text-decoration-line: underline;
  text-decoration-color: #e0ecf7;
  opacity: .5;
}

.small {
  text-align: center;
  color: #fff;
  background-color: #1f3447;
  padding: 10px;
}

.foot-end {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 80%;
  margin: 0 auto;
  justify-content: center;
}

.btn-primary02,
.btn-secondary02 {
  display: inline-block;
  width: 180px;
  padding: 12px 0;
  font-size: 14px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  box-sizing: border-box;
  font-weight: bold;
}

/* オレンジ背景・白文字（電話予約） */
.btn-primary02 {
  background: #f7941d;
  color: #fff;
  border: 1px solid #f7941d;
}

.btn-primary02:hover {
  background: #e67800;
  border-color: #e67800;
}

/* 白背景・オレンジ枠（WEB予約） */
.btn-secondary02 {
  background: #fff;
  color: #f7941d;
  border: 1px solid #f7941d;
}

.btn-secondary02:hover {
  background: #f7941d;
  color: #fff;
}

.btn-primary02::after,
.btn-secondary02::after {
  content: "▶";
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.btn-primary02:hover::after,
.btn-secondary02:hover::after {
  transform: translateX(4px);
}

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

  h2 {
    font-size: 22px;
    margin-bottom: 5px;
  }

  .subheading {
    font-size: 14px;
  }

  h3 {
    font-size: 18px;
  }

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

  /* サイドバー */
  .reserve-box {
    display: none;
  }

  /* モバイルで下に固定 */
.sp-fixed-reserve {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.08);
  font-family: 'sans-serif';
}

.sp-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff; /* ←アウトライン追加 */
  box-sizing: border-box;
  transition: all 0.3s ease;
}

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

.sp-btn--web:hover {
  background-color: #2e4a6a;
  border-color: #e0e0e0;
}

.sp-btn--tel {
  background-color: #98b1c4;
}

.sp-btn--tel:hover {
  background-color: #88a0b3;
  border-color: #e0e0e0;
}


  /* ----------タブレット---------------------------
---------------新着情報--------------------- */
  .news-list {
    justify-content: center;
    gap: 16px;
  }

  .news-item {
    width: calc(50% - 10px);
    /* 2列表示に調整（gap考慮） */
    height: auto;
  }

  .news-thumb {
    height: 140px;
  }

  .news-section {
    padding: 40px 16px;
    margin: 0px auto;
  }


  /* ----------タブレット---------------------------
--------医院からのメッセージ--------------------- */
  .sec01 {
    position: relative;
    width: 100%;
    height: 80vh;
    background: none;
    z-index: 1;
  }

  /* 背景画像を別要素で制御（背景固定風） */
  .sec01::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    /* background: url(http://toyoshima-dental.com.testrs.jp/test/wp-content/uploads/2025/09/top-img06.jpg) no-repeat center top / cover; */
    background: rgba(255, 255, 255, 0.9);
    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;
  }

  .sec01-title {
    font-size: 22px;
  }

  .size22 {
    font-size: 18px;
  }

  /* ---------------タブレット----------------------
--------新発田市のとよしま歯科医院の特徴----- */
  .feature-wrapper {
    padding: 100px 0 5px 0;
  }

  .feature-text {
    max-width: 100%;
    margin: 0 auto;
    padding: 70px 0;
    flex-direction: column;
  }

  .feature-image {
    width: 90%;
    margin: 0 auto;
  }

  .feature-lead {
    width: 90%;
    padding: 25px 20px 0 20px;
    margin: 0 auto;
  }

  .feature-content p,
  .feature-content02 p,
  .virus-block-text {
    font-size: 16px;
  }

  .society-badges-flex {
    gap: 0px;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
  }

  .back-ground::before {
    height: 315px;
    top: 68%;
  }

  .feature-text02 {
    max-width: 100%;
    margin: 0 auto;
    padding: 70px 0;
    flex-direction: column-reverse;
  }

  .feature-content02 {
    width: 90%;
    padding: 0 20px;
    margin-top: 25px;
  }

  .feature-image02 {
    width: 90%;
  }

  .prevention-inner {
    display: block;
    width: 90%;
    max-width: 100%;
  }

  .items {
    width: 100%;
  }

  .prevention-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    margin: 20px auto 0 auto;
  }

  .virus-contents {
    max-width: 100%;
    display: block;
  }

  .virus-block {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
  }

  .virus-contents .virus-block:nth-child(odd)::before {
    height: 80%;
  }

  /* ----------タブレット---------------------------
--とよしま歯科医院の治療が新発田市の皆様に選ばれる理由------ */
  .reasons-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(233, 239, 244, 0.9), rgba(255, 255, 255, 0.9));
  }

  .reason-list {
    max-width: 100%;
    margin: 15px auto;
    display: block;
  }

  .reason-block {
    width: 90%;
    margin: 0 auto;
  }

  .reason-image {
    margin-top: 40px;
  }

  .reason-image img {
    width: 380px;
    height: 380px;
  }

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

  .reason-title {
    margin-bottom: 20px;
  }

  /* --------------タブレット-----------------------
--------------------診療案内--------------------- */
  .orthodontics,
  .root {
    display: block;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 80px;
    height: 860px;
  }

  .pickUp-left {
    width: 100%;
    margin: 0 auto;
    min-width: 200px;
    min-height: 130px;
  }

  .bg-text {
    font-size: 48px;
  }

  .pickUp-right,
  .root-image {
    width: 95%;
    height: 655px;
    min-width: 480px;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 270px;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 50%), url(/wp-content/uploads/2025/09/medical04_img01.jpg);
  }

  .mb-bottom {
    position: absolute;
    top: 112px;
    right: 0;
    width: 90%;
    height: 300px;
    margin: 0 auto;
    z-index: 1;
    pointer-events: none;
  }

  .pickup-button {
    width: 100%;
    margin-top: 30px;
    text-align: center;
  }

  .pickup-link {
    padding: 7px 60px;
    font-size: 13px;
  }

  /* インプラント */
  .implant {
    display: flex;
    width: 90%;
    flex-direction: column-reverse;
    margin: 0 auto;
    margin-bottom: 80px;
    height: 860px;
  }

  .implant-right {
    width: 95%;
    height: 655px;
    min-width: 480px;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .implant-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 270px;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 50%), url(/wp-content/uploads/2025/09/23179126_s.jpg);
  }

  .root-overlay {
    width: 100%;
    height: 270px;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 50%), url(/wp-content/uploads/2025/09/konnkanntiryou.jpg);
  }

  .treatment-cards {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2列 */
    gap: 20px;
    /* カード間の余白 */
    padding: 10px;
  }

  /* --------------タブレット-----------------------
--------------------院長挨拶--------------------- */
  .greeting-wrapper {
    width: 100%;
    margin: 0 auto;
    background: #fff;
  }

  .greeting-text {
    max-width: 100%;
    flex-direction: column;
  }

  .greeting-image,
  .greeting-lead {
    width: 100%;
    margin: 30px auto;
  }

  .left-image {
    width: 70%;
  }

  .right-image {
    position: absolute;
    bottom: -20px;
    left: 75%;
    width: 50%;
    transform: translate(-50%, 0%);
  }

  .greeting-lead {
    margin-top: 100px;
    padding: 0 15px;
  }

  .greeting-title {
    justify-content: center;
  }

  .greeting-subheading {
    margin-top: 7px;
  }

  .doctor {
    text-align: center;
  }

  .font-size22 {
    font-size: 18px;
  }

  .greeting-content h3 {
    margin-top: 50px;
  }

  .greeting-more {
    margin-top: 30px;
    text-align: center;
  }

  .greeting-link {
    padding: 8px 60px;
    font-size: 13px;
  }

  /* --------------タブレット-----------------------
--------------------アクセス--------------------- */
  .clinic-sention {
    padding: 60px 0;
    margin: 200px auto;
    background: #fff;
  }

  .clinic-sention-flex {
    width: 100%;
    margin: 20px auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
  }

  .clinic-heading {
    width: 90%;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
  }

  .news-subheading {
    margin-top: 5px;
  }

  .clinic-time-table {
    max-width: 95%;
    margin: 0 auto;
  }

  /* --------------タブレット-----------------------
--------------------フッター--------------------- */
  footer {
    width: 100%;
    padding-top: 70px;
    background:
      linear-gradient(135deg, rgba(84, 119, 153, 0.9), rgba(25, 42, 65, 0.9), rgba(0, 17, 34, 0.9)),
      url(/wp-content/uploads/2025/12/01_医院全体02.jpg) no-repeat center center / cover;
    padding-bottom: 45px;
    margin-top: 20px;
  }

  .inner {
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    color: #fff;
  }

  .foot-left {
    width: 100%;
  }

  .info {
    width: 100%;
    margin: 0 auto;
  }

  .f-logo {
    display: flex;
    justify-content: center;
    /* 横方向の中央揃え */
    align-items: center;
    /* 縦方向の中央揃え */
    text-align: center;
    /* テキストを中央揃えにする */
    width: 100%;
    margin: 0 auto;
  }

  .f-logo img {
    width: 250px;
    height: auto;
    margin-bottom: 15px;
  }

  .address,
  .f-flex {
    margin-left: 20px;
    padding-top: 5px;
    text-align: center;
  }

  /* フッターの表 */
  .time-table {
    width: 100%;
  }

  iframe {
    width: 100%;
    height: 450px;
  }

  .foot-right {
    width: 100%;
  }

  .footer-list {
    font-size: 12px;
    margin: 45px auto;
    display: flex;
    justify-content: space-around;
  }

  .category {
    font-size: 14px;
    width: 100%;
    line-height: 250%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 5px;
  }

  .category1 {
    order: 1;
  }

  .category2 {
    order: 3;
  }

  .category2-2 {
    order: 4;
  }

  .category3 {
    order: 2;
  }

  .foot-end {
    margin-bottom: 30px;
  }

  .btn-primary02,
  .btn-secondary02 {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    width: 100%;
  }
}

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

  /* ----------スマホ---------------------------
--------新着情報--------------------- */
  .news-fixd {
    max-width: 100%;
    padding: 0;
  }

  .news-section {
    padding: 40px 10px;
  }

  .news-heading {
    justify-content: center;
  }

  .news-item {
    padding: 10px;
  }

  /* ----------スマホ---------------------------
----------新発田市のとよしま歯科医院の特徴------ */
  .feature-wrapper {
    padding: 70px 0 5px 0;
  }

  .feature-text {
    padding: 35px 0;
  }

  .feature-content {
    margin-bottom: 40px;
  }

  .badge {
    font-size: 14px;
  }

  .feature-content02 {
    width: 100%;
    padding: 0 15px;
  }

  .feature-lead {
    width: 100%;
    padding: 25px 15px 0 15px;
    margin: 0 auto;
  }

  .feature-text02 {
    padding: 70px 0 30px 0;
  }

  .items {
    width: 100%;
    display: block;
  }

  .prevention-item {
    width: 100%;
    margin: 15px auto;
  }

  .prevention-button {
    width: 100%;
    margin: 40px auto 0 auto;
  }

  /* ----------スマホ---------------------------
--とよしま歯科医院の治療が新発田市の皆様に選ばれる理由------ */
  .reasons-section {
    padding: 80px 0;
  }

  .reason-block {
    width: 100%;
  }

  .reason-block .reason-image img {
    width: 100%;
    height: 240px;
  }

  .reason-text {
    margin-top: 20px;
    padding: 10px;
  }

  /* ----------スマホ---------------------------
-------------診療案内--------------------- */
  .treatment-section {
    padding: 60px 0;
  }

  .pickUp {
    padding: 34px 0 0 0;
  }

  .orthodontics {
    display: block;
    width: 95%;
    margin: 0 auto;
    margin-bottom: 80px;
    height: 820px;
  }

  .pickUp-left {
    min-height: 95px;
  }

  .pickUp-right {
    width: 90%;
    height: 655px;
    min-width: 350px;
    margin: 0 auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .bg-overlay,
  .implant-overlay {
    height: 217px;
  }

  .mb-bottom {
    top: 175px;
	  pointer-events: auto;
	  z-index: 20; 
  }

  .implant {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 95%;
    flex-direction: column-reverse;
    margin: 0 auto;
    margin-bottom: 80px;
    height: 820px;
  }

  .implant-right {
    width: 90%;
    height: 655px;
    min-width: 350px;
    margin: 0 auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .root {
    display: block;
    width: 95%;
    margin: 0 auto;
    margin-bottom: 80px;
    height: 820px;
  }

  .root-image {
    width: 90%;
    height: 655px;
    min-width: 350px;
    margin: 0 auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .root-overlay {
    height: 303px;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 1) 37%, rgba(255, 255, 255, 0) 80%), url(/wp-content/uploads/2025/09/konnkanntiryou.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 5%;
  }

  .treatment-cards {
    gap: 15px;
  }

  .treatment-card {
    border-radius: 4px;
  }

  .treatment-img {
    width: 100%;
    height: 135px;
  }

  .treatment-body {
    padding: 20px 10px;
  }

  .treatment-arrow {
    width: 25px;
    height: 25px;
  }

  .treatment-text h3 {
    font-size: 18px;
  }

  /* ----------スマホ---------------------------
-------------院長挨拶--------------------- */
  .greeting-wrapper {
    padding: 0 0 75px 0;
  }

  .greeting-text {
    margin: 160px auto 0 auto;
  }

  .left-image {
    width: 90%;
  }

  .right-image {
    bottom: -55px;
    left: 75%;
    width: 50%;
    height: 230px;
  }

  .greeting-lead {
    padding: 0px 20px;
  }

  .doctor {
    margin-top: 8px;
    font-size: 13px;
    color: #444;
  }

  /* ----------スマホ---------------------------
-------------アクセス--------------------- */
  .clinic-info {
    padding: 0 20px;
  }

  .clinic-data {
    font-size: 15px;
  }

  .clinic-data dt {
    width: 90px;
    flex-shrink: 0;
    padding-left: 8px;
    margin-right: 10px;
    border-left: 2px solid #476a88;
  }

  .clinic-map iframe {
    min-height: 300px;
  }

}


/* デスクトップ版のみ改行 */
.pc-br {
  display: block;
}

@media (max-width: 480px) {
  .pc-br {
    display: none;
  }
}


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

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

/* ---------------------------------
----------モバイル版スライダー----------------- */
@media screen and (max-width: 480px) {


  /* スライダーの基本設定 */
  .main-visual {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 390px; /* 高さを390pxに設定 */
    z-index: 3;
  }

  /* Swiper の設定 */
  .main-visual .swiper {
    width: 380px; /* 幅を351pxに設定 */
    height: auto; /* 高さを390pxに設定 */
  }


  /* スライドの画像設定 */
  .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-content: center; /* 中央揃え */
    align-items: center; /* 垂直中央揃え */
    width: 351px; /* 幅を351pxに設定 */
    height: 390px; /* 高さを390pxに設定 */
  }

  .swiper-slide picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 画像をスライド内でフィットさせる */
  }



.vertical-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    display: flex;
    gap: 10px;
    pointer-events: none;
    width: 40%;
    height: 390px;
    overflow: hidden;
    justify-content: center;
}

  .texit-right {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    gap: 5px;
    justify-content: center;
    align-items: center;
    height: auto; /* 高さを内容に合わせる */
    max-width: 100%; /* 横幅を100%に制限 */
  }

  /* 青い背景テキスト */
.blue-bg {
    padding: 5px 3px;
    height: 100px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-align: center;
    white-space: nowrap;
    height: auto;
}

.margin-top100 {
    margin-top: 0;
}

  /* 白いテキスト */
  .white-text {
    font-size: 14px; /* フォントサイズを小さく */
    line-height: 1.5;
  }

.text-shadow {
    font-size: 17px;
}

.orange {
    font-size: 18px;
}
	
	.lower-text {
    margin-top: 70px;
}

  /* 画像をぴったり収める */
  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像がスライド内でぴったり収まるように調整 */
  }

.swiper-wrapper picture img{
    width: 380px;
    height: auto;
	}
}

