@charset "UTF-8";
/* CSS Document */
/* pc */
/* ハンバーガメニュー非表示 */
.fixed-menu,
.hamburger-menu {
  display: none;
}
.carouselImg-pc {
  display: block;
}
* {
  box-sizing: border-box;
}

p {
  font-size: 16px;
}

h1 {
  font-size: 2.25rem;
  font-weight: bold;
  text-align: center;
  align-items: center;
}

h2 {
  color: #fff;
  font-weight: bold;
  font-size: 1.75rem;
  margin: 0;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

h4 {
  font-size: 1.25rem;
}

body {
  padding: 0;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  color: #333;
}

a {
  text-decoration: none;
  color: #333;
}
a:hover {
  text-decoration: underline;
}
#about,
#service,
#faq,
#access,
#message {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background-color: #fff;
}

#news,
#service,
#access,
#features {
  padding: 60px 0;
  background-color: #eceae6;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
header {
  width: 100%;
  height: 100%;
  background: #eaf4fc;
}

.navbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: center;
  padding: 15px 40px;
  background: #eaf4fc;
}

.navbar ul,
.footer-navbar ul {
  list-style: none;
  display: flex;
  white-space: nowrap;
  gap: 40px;
  padding: 0;
}

.navbar ul li a,
.news-container ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  /*ホバー時の色変化を滑らかにする */
}

.navbar ul li a:hover,
.footer-navbar ul li a:hover,
.news-container ul li a:hover {
  color: #e99557;
}

/* CTAボタン全体 */
.cta-button {
  display: inline-flex;
  /* テキストとアイコンを改行せず横並びにする */
  align-items: center;
  justify-content: center;
  background-color: #e99557;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  /* テキストサイズ */
  font-weight: bold;
  border-radius: 3rem;
  border: 3px solid #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button-text {
  margin-right: 0.25rem;
  white-space: nowrap;
  transition: text-shadow 0.3s ease;
}

/* ------------------------------------------- */
/* 矢印アイコン */
/* ------------------------------------------- */
.arrow-button {
  display: inline-block;
  width: 35px;
  /* アイコン全体の直径 */
  height: 35px;
  border: 2px solid white;
  border-radius: 50%;
  position: relative;
  background-color: transparent;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

/* 矢印 */
.arrow-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  /* 中央に配置 */
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  /* 矢印の位置 */
  transform: translate(-80%, -50%) rotate(45deg);
}

/* ホバー時 */
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 0 10px rgba(233, 149, 87, 0.8);
}

.cta-button:hover .button-text {
  text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

.cta-button:hover .arrow-button {
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #fff);
}

/* CTAボタンここまで */

/* ヒーロセクション画像カルーセル */
#carousel-section {
  position: relative;
  width: 100vw;
  height: 75svh;
  overflow: hidden;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.carouselImg-pc {
  width: 100%;
  height: 100%;
  background-size: cover;
}
.carouselImg-pc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slick-slide {
  box-sizing: border-box;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.overlay-box {
  position: absolute;
  top: 3%;
  left: 10%;
  padding: 1.5rem 3rem;
  background: linear-gradient(
    to bottom,
    rgba(4, 141, 183, 0.8),
    rgba(229, 244, 251, 0.8)
  );
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
}

.overlay-box h1 {
  color: #2c7be5;
  font-weight: bold;
  font-size: 2rem;
  line-height: 1.4;
  /* 白フチ */
  -webkit-text-stroke: 4px #ffffff;
  paint-order: stroke fill;
}

.tooth-features {
  position: absolute;
  bottom: 0;
  left: 8%;
  width: 600px;
  height: 300px;
  background: url("../images/tooth.svg") no-repeat center/contain;
  z-index: 20;
}

.tooth-features span {
  position: absolute;
  width: 50%;
  text-align: center;
  top: 30%;
  transform: translateY(-50%);
  color: #2c7be5;
  font-weight: bold;
  font-size: 2rem;
  line-height: 1.4;
  z-index: 20;

  /* 白フチ */
  -webkit-text-stroke: 4px #ffffff;
  paint-order: stroke fill;
  /* 境界線を文字の下に描画 */
}

.tooth-features .left-text {
  left: 10px;
}

.tooth-features .right-text {
  right: 0;
}

/* お知らせ */
#news {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.news-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-container .btn-more {
  align-self: flex-end;
}

.news-list {
  list-style: none;
}

.news-card {
  background-color: #f7fdfc;
  width: 1080px;
  height: auto;
  padding: 40px 80px;
  box-shadow: 0 20px 20px 9px rgba(136, 136, 136, 0.1);
  margin-bottom: 100px;
  text-align: center;
}

.title {
  background-image: url("../images/midasi.gif");
  background-repeat: repeat;
  width: 30%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 30px;
}

.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 1rem;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
  /* 薄い仕切り線 */
}

.news-list .news-date {
  flex: 0 0 auto;
  /* 固定幅・縮まない */
}

.news-list .text {
  flex: 1;
  /* 残り幅を全部使う */
  margin-left: 20px;
  text-align: left;
}

/* ナビゲーションボタン */
/* CTAボタン全体（青） */
.btn-more,
.little-btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1859d0;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border: 3px solid #ffffff;
  cursor: pointer;
  border-radius: 3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-more {
  font-size: 1.25rem;
  padding: 1rem 1.25rem;
}

/* ------------------------------------------- */
/* 矢印アイコン（青いボタン用） */
/* ------------------------------------------- */
.btn-more .arrow-button {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid white;
  border-radius: 50%;
  position: relative;
  background-color: transparent;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

/* 矢印 */
.btn-more .arrow-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  /* 矢印の位置 */
  transform: translate(-70%, -50%) rotate(45deg);
}

/* ホバー時 */
.btn-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 0 10px rgba(24, 89, 208, 0.8);
}

/* ホバーしたときにテキストとアイコンに光彩をかける */
.btn-more:hover .button-text {
  text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

.btn-more:hover .arrow-button {
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #fff);
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: auto;
}

/* 小さいボタン */
.little-btn-more {
  font-size: 1rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.little-btn-more .arrow-button {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-radius: 50%;
  position: relative;
  background-color: transparent;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

/* 矢印 */
.little-btn-more .arrow-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  /* 矢印の位置 */
  transform: translate(-70%, -50%) rotate(45deg);
}

/* ナビゲーションボタンここまで */

/* 斜めの飾り線 */
.news-divider {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    /* 斜め45度 */ #eaf4fc,
    /* 水色 */ #eaf4fc 10px,
    /* 10pxごとに切り替え */ #ffffff 10px,
    #ffffff 20px
  );
  opacity: 0.8;
  margin: 40px 0;
  width: 100%;
}

/* information */
.info-card {
  display: block;
  justify-content: space-between;
  align-items: center;
  background-color: #f7fdfc;
  width: 1080px;
  height: auto;
  gap: 100px;
  padding: 40px 60px;
}

.info-card .title {
  margin: 0;
}

.info-set {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7fdfc;
  gap: 100px;
}

.info-left {
  flex: 1;
}

.info-right {
  flex: 1;
  text-align: center;
}

.info-right h3 {
  margin: 30px 0 0 0;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.schedule th,
.schedule td {
  border-bottom: 1px solid #ccc;
  padding: 20px 10px;
  text-align: center;
  color: #333;
}

.schedule th {
  background-color: #cadff4;
  padding: 8px;
}

.schedule th:first-child,
.schedule td:first-child {
  text-align: left;
  font-weight: bold;
}

.note {
  font-size: 0.9rem;
  text-align: center;
  color: #333;
  margin-top: 8px;
}

.map {
  width: 100%;
  height: 200px;
  background: url("../images/top/topmap") center/cover no-repeat;
  margin: 30px 0 0 0;
}

.clinic-en {
  font-size: 0.8rem;
  margin-top: 0px;
  margin-bottom: 10px;
}

.address {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* 当院について */
#about {
  width: 100%;
  height: auto;
}

/* 見出し中央 */
.title-center {
  background-image: url("../images/midasi.gif");
  background-repeat: repeat;
  width: 40%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 60px auto;
}

.about-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.about-text p,
.vertical-text {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 40px;
}

.about-text span {
  color: #0086cc;
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 1.4;
}

.about-image {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  /* 子要素を同じ高さにそろえる */
  gap: 20px;
}

.about-left {
  position: relative;
  display: inline-block;
}

.about-left img,
.about-right img {
  display: block;
  height: auto;
  max-width: 100%;
}

.vertical-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  writing-mode: vertical-rl;
  /* 縦書き */
  font-size: 1.25rem;
  text-align: center;
  flex: 1;
  line-height: 2;
  font-weight: bold;
}

.vertical-text p {
  text-align: center;
  margin: 0;
  max-height: 100%;
}

.about-button {
  margin-top: 30px;
  text-align: end;
}

/* 診療案内 */

.subtitle {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 50px 0 30px;
}

.steps-container {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin: 30px 0;
}

.step-number {
  color: #1a4d8f;
}

.step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 4px 4px 6px 3px #7c848f;
}

.step-card h4 {
  margin: 30px 0;
}

.step-card img {
  width: auto;
  height: 100px;
  margin: 0 auto;
}

.step-card p {
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
}

.notice-box h3 {
  color: #1a4d8f;
}

.notice-box {
  width: 80%;
  align-items: center;
  text-align: center;
  background: #f7fdfc;
  border: 1px solid #2c7be5;
  border-radius: 20px;
  padding: 20px 0;
  margin: 0 auto;
}

.notice-text {
  margin: 0 auto;
  width: 65%;
  padding: 0;
  text-align: left;
}

.departments-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.dept-card {
  flex: 1 1 calc(25% - 20px);
  background: #fff;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 4px 3px 6px 2px rgba(41, 40, 40, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.dept-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.dept-card p {
  margin: 20px;
}

/* よくある質問 */
.faq {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 各Q&A枠 */
.qa-details {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  position: relative;
  box-shadow: 0 2px 6px #b3d0df;
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;

  position: relative;
}

/* デフォルトマーカー非表示 */
summary::-webkit-details-marker {
  display: none;
}

/* 左側のQ/A丸アイコン */
.qa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.qa-icon.q {
  background: #71ccfc;
}

.qa-icon.a {
  background: #1a4d8f;
}

/* 回答部分 */
.answer {
  margin-top: 3rem;
  display: flex;
  align-items: flex-start;
  display: flex;
  align-items: flex-start;
}

.answer p {
  margin-left: 0.5rem;
  line-height: 1.6;
  color: #333;
}

/* 下向きの矢印アイコン */
.arrow-down {
  display: inline-block;
  /* アイコンの直径 */
  width: 30px;
  height: 30px;
  border: 2px solid #333;
  border-radius: 50%;
  position: absolute;
  right: 0;
  background-color: transparent;
  flex-shrink: 0;
}

/* 下向きの矢印 */
.arrow-down::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-bottom: 3px solid #333;
  border-right: 3px solid #333;
  /* 下向き*/
  transform: translate(-50%, -70%) rotate(45deg);
}

/* openのとき → 上向き矢印 */
details[open] .arrow-down::after {
  transform: translate(-50%, -30%) rotate(-135deg);
}

/* openのときだけ線を表示 */
details[open] summary::before {
  content: "";
  position: absolute;
  top: 4rem;
  /* アイコンの中央に合わせる */
  left: 1.2rem;
  /* Qアイコンの右端に合わせて調整 */
  right: 1.2rem;
  /* 矢印アイコンの左端に合わせて調整 */
  height: 1px;
  background: #333333;
}

/* よくある質問した案内図 */
.faq-guide {
  position: relative;
  background: #fff;
  box-shadow: 0 5px 13px #b3d0df;
  padding: 2rem;
  margin: 2rem auto;
  width: auto;
  overflow: hidden;
}

.faq-guide::before,
.faq-guide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(26, 77, 143, 0.8) 0,
    rgba(26, 77, 143, 0.8) 12px,
    transparent 12px,
    transparent 66px /* 12px + 54px */
  );
}

.faq-guide::before {
  top: 8px;
}

.faq-guide::after {
  bottom: 8px;
}

.faq-guide {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.faq-guide-left img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.faq-guide-right {
  margin-left: 20px;
  text-align: center;
}

.faq-ctn {
  display: flex;
  justify-content: center;
}

.guide-text {
  font-size: 1rem;
  margin-bottom: 50px;
  line-height: 1.6;
}

.departments-container + .btn-more {
  display: block;
  margin-left: auto;
  margin-right: 0;
  width: fit-content;
}

/* アクセス診療時間 */
.access-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.access-map {
  text-align: center;
  width: 100%;
}

.button-wrapper-pagetop {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  background-color: transparent;
  /* 背景なし */
  padding: 20px;
}

/* footer */
footer {
  padding-top: 60px;
  background: #1a4d8f;
}

.favicon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.favicon-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  margin-bottom: 0.5rem;
}

.favicon-image {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.favicon-text {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.4;
  text-align: left;
}

.sns-icons {
  display: flex;
  gap: 10px;
  margin: 10px 0 0 10px;
}

.sns-icons img {
  width: 30px;
  height: 30px;
  display: block;
}

.footer-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  background-color: transparent;
  padding: 1.2rem;
  gap: 2rem;
}

.footer-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
}

.footer-navbar ul li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

/* PAGE TOPボタン全体 */
.page-top-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 120px;
  height: 120px;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.page-top-button:hover {
  background-color: #e0e0e0;
  /* ホバー時に少し暗く */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* アイコンを囲む小さな円形の枠線 */
.page-top-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  /* アイコン枠サイズ */
  width: 40px;
  height: 40px;
  border: 2px solid #555;
  border-radius: 50%;
  margin-bottom: 5px;
  /* テキストとの間隔 */
  position: relative;
  /* 矢印の基準位置 */
}

/* 上向き矢印アイコン */
.circle-up-arrow {
  display: inline-block;
  position: relative;
  width: 0;
  height: 0;
}

/* 矢印*/
.circle-up-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  /* 矢印の幅 */
  height: 10px;
  /* 矢印の高さ */
  border-top: 3px solid #333;
  border-left: 3px solid #333;

  /* 上向きにするために -45度回転 */
  transform: translate(-50%, calc(-50% + 2px)) rotate(45deg);
  /* Y軸を少し下にずらして中央調整 */
}

/* PAGE TOP テキスト */
.page-top-text {
  font-size: 1rem;
  font-family: "Jost", sans-serif;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  /* 大文字 */
}

.copyright {
  text-align: center;
  padding: 20px;
  color: #fff;
}

/* pagetopボタンここまで */
/* jquery用 */
.pagetop-btn {
  position: fixed;
  /* 画面に固定 */
  bottom: 20px;
  /* 画面下からの位置 */
  right: 20px;
  /* 画面右からの位置 */
  z-index: 999;
}

/* 当院についてページ */
/* 各ページ共通トップ画像 */
#top-img {
  position: relative;
  width: 100vw;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
}

/* 共通画像ここまで */
#message {
  padding: 0;
}

.message-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.message-left {
  display: flex;
  align-items: flex-start;
  padding: 0 20px;
}

.message-left img {
  flex-shrink: 0;
  /* 縮小しない */
  width: 100%;
  border-radius: 8px;
}
.message-right p {
  line-height: 1.6;
}

#features {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  margin-bottom: 60px;
}

.feature-left img {
  width: 500px;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

.feature-right {
  max-width: 500px;
  position: relative;
  z-index: 1;
  /* テキストボックスを下に */
}

/* jquery用 */
.feature-left,
.feature-right {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.feature-left.show,
.feature-right.show {
  opacity: 1;
  transform: translateY(0);
}

.feature-title {
  display: inline-block;
  /* 背景をテキストにフィットさせる */
  background: linear-gradient(transparent 70%, rgba(242, 176, 124, 0.5) 0%);
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 3;
}

.feature-textbox {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-left: -80px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 500px;
  height: 200px;
}

.feature-textbox p {
  margin: 0 3.5rem;
  line-height: 1.6;
}

/* パンクズりすと */
.topic-pass {
  margin-top: 1rem;
  padding-left: 10px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topic-pass li {
  display: inline-block;
  font-size: 14px;
  margin-right: 10px;
  line-height: 1;
  color: #333;
  position: relative;
  padding: 0px 15px 0px 0;
  white-space: nowrap;
}

.topic-pass li a {
  display: inline-block;
  margin-right: 5px;
  text-decoration: none;
  color: #1e70a9;
  position: relative;
  padding: 3px 0;
}

.topic-pass li:not(:last-child):before {
  content: "";
  border-right: solid 1px #333;
  border-bottom: solid 1px #333;
  position: absolute;
  transform: rotate(-45deg);
  padding: 3px;
  right: 1px;
  top: 50%;
  margin-top: -3px;
}

/* 診療案内ページ */

#departments-list {
  padding: 60px 0;
}

#medical-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
  width: 100%;
}

#yobou,
#child {
  padding: 60px 0;
  margin: 100px 0;
  width: 100%;
}

#ippan,
#oral {
  padding: 60px 0;
  background-color: #eceae6;
  background-size: cover;
  background-position: center;
  width: 100%;
}

.department-heading {
  text-align: left;
  margin: 0 auto;
  padding-bottom: 40px;
  line-height: 1.6;
}

.card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  text-decoration: none;
}

.gradient-arrow-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gradient-arrow {
  width: 15px;
  height: 15px;
  border-bottom: 2px solid transparent;
  border-right: 2px solid transparent;
  transform: rotate(45deg);
  margin-bottom: 5px;
  box-sizing: border-box;
  animation-name: none;
  /* 初期状態ではアニメーションを無効にする */
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* 各矢印の色を設定 */
.arrow-1 {
  border-image: linear-gradient(to bottom right, #8dbbf7 0%, #8dbbf7 100%) 1;
}

.arrow-2 {
  border-image: linear-gradient(to bottom right, #2169c5 0%, #2169c5 100%) 1;
}

.arrow-3 {
  border-image: linear-gradient(to bottom right, #1a4d8f 0%, #1a4d8f 100%) 1;
}

/* ホバー時にアニメーションを開始 */
.card-link:hover .gradient-arrow {
  animation-name: move-arrows;
}

/* 矢印ごとのアニメーション開始遅延を設定 */
.card-link:hover .arrow-1 {
  animation-delay: 0s;
}

.card-link:hover .arrow-2 {
  animation-delay: 0.15s;
}

.card-link:hover .arrow-3 {
  animation-delay: 0.3s;
}

/* 矢印のアニメーションを定義 */
@keyframes move-arrows {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }

  50% {
    transform: translateY(5px) rotate(45deg);
    opacity: 0.7;
  }

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

/* コンテンツ部分（画像＋説明） */
.subject-content {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 80%;
}
.subjectleft,
.subject-right {
  align-items: center;
}
.subject-left img {
  width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.subject-right {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

/* 相談ボックス */

.consult-box h3 {
  color: #1a4d8f;
  margin: 0;
}
.consult-box {
  width: 90%;
  margin: 40px 0;
  align-items: center;
  text-align: center;
  background: #f7fdfc;
  border: 1px solid #2c7be5;
  border-radius: 20px;
  padding: 10px 0;
  box-sizing: border-box;
}

.consult-text {
  margin: 0 auto;
  width: 70%;
  padding: 10px 0;
  text-align: left;
  list-style: inherit;
  list-style-position: inside;
}

/* 料金表 */
.price-table {
  margin: 20px auto;
  width: 80%;
}

.price-table h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}

.price-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  border: 1px solid #e0e0e0;
  padding: 10px;
  text-align: left;
  font-size: 0.9rem;
}

.price-table th {
  background: #f7fdfc;
  font-weight: bold;
}

/* スタッフ紹ページ*/

/* カード全体 */
.staff-card {
  width: 100%;
  max-width: 1000px;
  margin: 100px auto;
  background-color: #f7fdfc;
  box-shadow: 4px 2px 5px 4px rgba(0, 0, 0, 0.1);
}

/* 名前のヘッダー部分 */
.staff-header {
  background-color: white;
  border-left: 4px solid #005bac;
  /* 左側の青いボーダー*/
  padding: 10px 20px;
}

.staff-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

/* 画像と情報を横並びにするコンテナ */
.staff-content {
  display: flex;
  padding: 60px;
  gap: 20px;
}

/* 画像のスタイル */
.staff-image {
  flex-shrink: 0;
  width: 35%;
}

.staff-image img {
  width: 100%;
  height: auto;
}

/* カード右側 */
.staff-info {
  flex-grow: 1;
  overflow: hidden;
}

/* 得意な治療と趣味の表部分 */
.staff-table {
  border: 1px solid rgba(51, 51, 51, 0.2);
  width: 80%;
  box-sizing: border-box;
  border-collapse: collapse;
  margin: 0 auto;
}

.staff-row {
  border-bottom: 1px solid #ccc;
}

.staff-row:last-child {
  border-bottom: none;
}

.staff-label,
.staff-value {
  padding: 8px 12px;
}

.staff-value {
  white-space: nowrap;
}

.staff-label {
  flex-basis: 120px;
  background-color: #c9e4fd;
  border-right: 1px solid #ccc;
  font-weight: bold;
}

/* メッセージ部分のスタイル */
.staff-message {
  text-align: center;
}

.staff-message h4 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1a4d8f;
}

.staff-message p {
  line-height: 1.8;
  display: inline-block;
  max-width: 500px;
  text-align: left;
  margin: 0 auto;
}

/* 予約ページ全体の設定 */
.contact-body .cta-button {
  visibility: hidden;
}

.contact-page {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin: 60px 0;
}

.contact-header h3 {
  margin-bottom: 5px;
  font-weight: normal;
}

.form-container {
  padding: 20px;
  background-color: #eceae6;
  box-shadow: 4px 5px 5px 4px rgba(51, 51, 51, 0);
}

/* フォームの各行の設定 */
.form-row {
  display: flex;
  /* 入力欄（テキストや textarea）の開始位置をラベルの上端に揃える */
  align-items: flex-start;
  margin-bottom: 20px;
}
.message-row .form-input {
  flex-grow: 1;
}
/* CF7が自動挿入する<p>タグの解除 */
.form-row p {
  margin: 0;
  padding: 0;
  display: contents;
}

/* ラベルの設定 */
.form-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 30%;
  font-weight: bold;
  padding-right: 20px;
  box-sizing: border-box;
  /* ラベル内のテキストが改行した際の影響を抑える */
  line-height: 1.5;
}
.form-label br,
.form-row p br {
  display: none;
}

.form-label::before {
  content: "■";
  color: #333;
  font-size: 0.8rem;
  margin-right: 5px;
}

.required::after {
  content: "※必須";
  color: #e50000;
  font-size: 0.8rem;
  margin-left: 5px;
}

/* CF7が自動生成するフォームコントロールのラッパー */
.form-input .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* テキスト/メール/電話/textareaフィールドの共通スタイル */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input input[type="number"],
.form-input textarea,
/* CF7が生成するコントロールに直接幅を適用し、インライン要素によるズレを防ぐ */
.form-input .wpcf7-text,
.form-input .wpcf7-textarea,
.form-input .wpcf7-date {
  padding: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  vertical-align: top;
  background-color: #fff;
}

/* ラジオボタン/チェックボックスを含む form-input を flex コンテナにする */
.form-row:has(.wpcf7-checkbox) .form-input,
.form-row:has(.wpcf7-radio) .form-input {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* 各選択肢（リストアイテム）の設定 */
.form-input .wpcf7-list-item {
  display: inline-flex;
  align-items: center; /* ボタンとテキストを中央揃え */
  margin-right: 20px; /* 選択肢間の横間隔 */
  margin-bottom: 8px; /* 選択肢間の縦間隔 */
  padding: 0;
}

/* 入力欄とテキストの表示調整 */
.form-input input[type="radio"],
.form-input input[type="checkbox"] {
  -webkit-appearance: auto;
  appearance: auto;
  margin-right: 0.4rem;
  vertical-align: middle;
}

/* テキスト（ラベル）部分のスタイル */
.form-input .wpcf7-list-item-label {
  display: block;
  padding: 0;
  margin: 0;
}

/* ご年齢フィールドの設定 */
.form-input input[type="number"] {
  width: 80px;
  text-align: right;
}

.age-input {
  display: flex;
  align-items: center;
}

.age-input span {
  display: flex;
  align-items: flex-end;
}
.age-input .wpcf7-form-control-wrap {
  flex-grow: 0;
  align-items: center;
}
.age-input {
  gap: 0.3em; /* number と 歳、エラーの間隔を調整 */
}

.age-input .wpcf7-not-valid-tip {
  order: 2; /* 「歳」の後に並ぶようにする */
  margin-left: 0.3em;
  white-space: nowrap;
}

/* 日付選択 (AM/PM ラジオボタンを含む) */
.date-row {
  display: block;
  align-items: center;
  margin-bottom: 5px;
}

.date-row span {
  margin-right: 10px;
}

.date-row input[type="date"],
.date-row .wcf7-date-field input[type="date"] {
  margin-right: 10px;
}

/* 日付行内の AM/PM の横並び */
.date-row .wpcf7-form-control-wrap {
  align-items: center;
  margin-right: 10px;
}
/* 日付行内のリストアイテムは、親の .wpcf7-form-control-wrap の flex に依存 */
.date-row .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}
.date-row .wpcf7-list-item-label {
  display: block;
  padding-left: 0;
}

/* プライバシーポリシーと送信ボタン */
.privacy-policy {
  text-align: center;
  margin-top: 40px;
}

.privacy-policy h4 {
  padding: 15px;
  margin: 0 auto;
  width: 300px;
  text-align: center;
}

.privacy-text-content {
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #f9f9f9;
  max-height: 200px;
  overflow-y: scroll;
  margin-bottom: 20px;
}

.checkbox-container {
  display: block;
  margin-top: 20px;
}

.wpcf7-list-item-label::before,
.wpcf7-list-item-label::after {
  content: none;
}

.message-row .form-input {
  flex-grow: 1;
}
/* お問い合わせ内容入力欄のみ１００％ */
.form-row .wpcf7-form-control-wrap.message {
  display: block;
  width: 100%;
  max-width: 100%;
}
/* お問い合わせ内容のtextarea自体に幅を100%に設定 */
.form-input textarea.wpcf7-textarea {
  width: 100%;
  height: 120px;
  resize: none;
}
.submit-button {
  display: block;
  width: 200px;
  margin: 40px auto 60px auto;
  padding: 15px;
  background-color: #1a4d8f;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  margin-bottom: 100px;
}
/* 個人情報同意のチェックボックスを表示させる */
.privacy-policy .checkbox-container .wpcf7-acceptance {
  display: inline-block;
}

.privacy-policy .checkbox-container .wpcf7-acceptance input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  display: inline-block;
  visibility: visible;
  opacity: 1;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: middle;
}
/* ブログ記事一覧 */

.container {
  max-width: 1000px;
  padding: 0 20px;
  margin: 100px 0;
}

/* ページタイトルエリア */
.page-title-area {
  background-color: #f0f8ff;
  padding: 40px 0;
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #666;
}

/* コンテンツ全体（記事一覧とサイドバー） */
.content-wrapper {
  display: flex;
  gap: 40px;
}

/* 記事一覧 */
.post-list {
  flex-grow: 1;
}

.post-item {
  display: flex;
  gap: 20px;
  padding: 60px 0;
  align-items: center;
}

.post-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 10px 0;
  /* 上下の余白を調整 */
}

.post-item:last-child {
  border-bottom: none;
}

.post-image {
  flex-shrink: 0;
  width: 40%;
  height: 40%;
  overflow: hidden;
  border-radius: 5px;
}

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

.post-content {
  flex-grow: 1;
}

.post-date {
  font-size: 0.8rem;
  color: #333;
  margin: 10px 0;
}

.post-heading {
  font-size: 1.1rem;
  margin: 0;
  font-weight: bold;
}

.post-heading {
  color: #333;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #333;
  margin: 10px 0;
  line-height: 1.8;
}

/* サイドバー */
.sidebar {
  flex-shrink: 0;
  padding: 60px 0;
  width: 280px;
}

.sidebar-widget {
  background-color: #f7f7f7;
  border: 1px solid #e0e0e0;
  padding: 20px;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #0056b3;
}

.category-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.category-list li a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.category-list li a:hover {
  color: #0056b3;
}

.category-list li a.active {
  color: #0056b3;
  font-weight: bold;
}

/* ページネーション全体 */
.pagination {
  margin: 40px auto;
  text-align: center;
}

.pagination .nav-links {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
  justify-content: center;
}

/* ページネーションの各アイテム */
.pagination .nav-links a,
.pagination .nav-links span {
  display: block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  text-decoration: none;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: background-color 0.3s;
}

/* 現在のページ（アクティブなリンク） */
.pagination .nav-links span.current {
  background-color: #1a4d8f;
  color: white;
  border-color: #1a4d8f;
  font-weight: bold;
}

/* ホバー時のスタイル */
.pagination .nav-links a:hover {
  background-color: #f0f0f0;
}

/* 記事の詳細 */
.blog-article {
  padding: 20px 0;
  margin: 0 auto;
}

/* タイトル左寄せ */
.blog-article .title-center {
  margin: 60px 0;
  justify-content: flex-start;
}

.title-center-long {
  background-image: url("../images/midasi.gif");
  background-repeat: repeat-x;
  width: 70%;
  height: 60px;
  display: flex;
  margin: 60px 0;
  justify-content: flex-start;
}

.blog-article .title-center h2,
.blog-article .title-center-long h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 0 10px;
}

.article-header {
  border-left: 4px solid #1a4d8f;
  /* 左側の青いボーダー */
  padding: 15px;
  margin-bottom: 60px;
  background-color: #f7fdfc;
}

.article-title {
  font-size: 1.5rem;
  color: #1a4d8f;
  margin: 0;
  font-weight: bold;
}

.article-image {
  text-align: center;
  margin-bottom: 60px;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.article-content {
  width: 100%;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1rem;
}

.article-content p {
  text-align: left;
}

.article-footer {
  margin-top: 60px;
  text-align: center;
}

.btn-secondary {
  display: inline-block;
  background-color: white;
  color: #1a4d8f;
  padding: 8px 30px;
  text-decoration: none;
  border: 1px solid #1a4d8f;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  cursor: pointer;
  background-color: #1a4d8f;
  color: #fff;
}
.error-title {
  background-image: url("../images/midasi.gif");
  background-repeat: repeat;
  width: 40%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 60px auto;
}

.not-found {
  text-align: center;
  margin: 60px auto;
}
/* ==============================================
 レスポンシブ
=============================================== */

/* タブレット-----------------------------------------------*/
@media screen and (max-width: 1200px) {
  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.5rem;
    white-space: nowrap;
  }

  h3 {
    font-size: 1.4rem;
    font-weight: bold;
  }

  h4 {
    font-size: 1.1rem;
  }
  /* PC版ヘッダーの背景とロゴのみを表示 */
  #header .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eaf4fc;
    padding: 0.5rem 3rem;
  }
  #header #logo img {
    max-height: 3rem;
    width: auto;
    display: block;
  }
  #about,
  #news,
  #service,
  #faq,
  #access {
    margin: 0;
    padding: 3rem 0;
  }
  /* PC版のナビゲーションリンクとCTAボタンを非表示にする */
  #header .navbar ul,
  #header .navbar .cta-button,
  footer .cta-button,
  .footer-navbar {
    display: none;
  }

  /* スマホ・タブレット用要素を表示 */
  .fixed-menu,
  .hamburger {
    display: flex;
  }

  /* 画面下部の固定メニュー */

  .fixed-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    justify-content: center;
    overflow-x: hidden;
    gap: 4rem;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
  }
  .fixed-menu > #logo img {
    max-height: 3rem;
  }

  .fixed-menu .cta-button {
    flex: 1;
    text-align: center;
    overflow: hidden;
    max-width: fit-content;
    background: #f89b4f;
    color: #fff;
    padding: 0.8rem 0.8rem;
    border-radius: 30px;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .hamburger {
    flex-shrink: 0; /* ボタンが潰れない */
    background: #5fa9dd;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
  }

  /* ハンバーガーメニュー */
  .hamburger-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
  }

  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-logo {
    height: 40px;
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
  }

  .hamburger-menu ul {
    list-style: none;
    padding: 20px 0;
  }

  .hamburger-menu ul li {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
  }

  .hamburger-menu ul li a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    text-decoration: none;
  }

  .menu-access {
    font-size: 13px;
    color: #666;
    margin: 20px 0;
  }
  .hamburger-menu .cta-button {
    display: block;
    text-align: center;
  }
  /* ハンバーガーメニューの初期状態（非表示） */
  .hamburger-menu {
    /* ...（非表示にするためのスタイル）... */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  /* is-activeクラスが付いた時の状態（表示） */
  .hamburger-menu.is-active {
    transform: translateX(0);
  }
  /* カルーセル */

  #carousel-section {
    width: 100vw;
    height: 80svh;
    position: relative;
    overflow: hidden;
  }

  .carouselImg-sp,
  .carouselImg-sp .slick-slide,
  .carouselImg-sp img {
    width: 100%;
    height: 100svh;
    display: block;
    object-fit: cover;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    gap: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
  }

  .overlay-box {
    position: absolute;
    top: 1%;
    left: 5%;
    width: 50%;
    height: auto;
    padding: 0.3rem 1rem;
  }

  .overlay-box h1 {
    font-size: 2rem;
    -webkit-text-stroke: 0.25rem #ffffff;
  }

  .tooth-features {
    position: absolute;
    width: 50%;
    height: 40%;
    bottom: 0;
    background: url("../images/tooth.svg") no-repeat center/contain;
    z-index: 20;
    transform: none;
  }

  .tooth-features span {
    position: absolute;
    width: 50%;
    height: auto;
    text-align: center;
    color: #2c7be5;
    font-size: 1.8rem;
    font-weight: bold;
    -webkit-text-stroke: 0.25rem #ffffff;
    paint-order: stroke fill;
  }

  .tooth-features .left-text {
    bottom: 70%;
  }
  .tooth-features .right-text {
    bottom: 70%;
  }
  /* お知らせ・INFORMATIONセクション */
  #news {
    align-items: center;
  }

  .section-inner {
    width: 90%;
    display: flex;
    flex-direction: column;
  }

  .news-card,
  .info-card {
    width: 100%;
    padding: 20px 30px;
    margin-bottom: 0;
  }

  /* タイトルの調整 */
  .news-card .title,
  .info-card .title,
  .news-container .title {
    width: 40%;
    padding: 10px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem auto;
  }
  .btn-more {
    width: auto;
    font-size: 1.2rem;
    padding: 0.8rem 1.1rem;
    margin: 0 auto;
  }
  .news-card .btn-more {
    margin-top: 0.8rem;
  }

  .btn-more .arrow-button {
    width: 18px;
    height: 18px;
  }

  /* informationセクションのレイアウトを縦並びに */
  .info-set {
    flex-direction: column;
    gap: 30px;
  }

  .map {
    width: 70svw;
    height: 300px;
    margin: 30px auto 0;
  }
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-text,
  .vertical-text {
    padding: 0 1rem;
  }
  .about-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
  }

  .about-text span {
    font-size: 1.4rem;
  }

  /* 画像エリアを縦積み */
  .about-image {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .about-left,
  .about-right {
    width: 100%;

    overflow: visible;
  }

  .about-left img,
  .about-right img {
    width: 140%;
    height: auto;
  }

  /* 縦書きの文章を横書きに変更 */
  .vertical-text {
    writing-mode: horizontal-tb; /* 縦書きを解除 */
    font-size: 1rem;
    line-height: 1.8;
    margin: 20px 0;
  }

  .about-button {
    margin: 20px auto 0;
    padding: 0;
    text-align: center;
  }
  .steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .step-card {
    width: 100%;
    max-width: 70%;
    margin: 0 auto;
  }

  /* 診療科目一覧 2列表示 */
  .departments-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
  }

  .dept-card {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    height: auto;
    margin: 0;
  }

  /* subtitleのマージン調整 */
  .subtitle {
    margin: 0 0 20px 0;
    text-align: center;
  }

  /* notice-box 内幅調整 */
  .notice-box {
    width: 70%;
    margin-bottom: 40px;
  }

  .notice-text {
    width: 80%;
    padding: 0 10px;
  }

  .notice-text li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0;
  }
  .little-btn-more {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }

  .little-btn-more .arrow-button {
    width: 14px;
    height: 14px;
  }

  .little-btn-more .arrow-button::after {
    width: 5px;
    height: 5px;
  }

  .faq {
    max-width: 100%;
    padding: 1rem 0;
  }

  /* 各Q&A枠の幅を100%に */
  .qa-details {
    width: 100%;
    padding: 0.8rem 1rem;
  }

  summary {
    font-size: 1rem;
    padding-right: 3rem;
  }

  .qa-icon {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.9rem;
    margin: 0.6rem 0.4rem 0 0;
  }

  .answer {
    flex-direction: column;
    margin-top: 1rem;
  }

  .answer p {
    margin-left: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .arrow-down {
    width: 24px;
    height: 24px;
    border-width: 2px;
    right: 0.5rem;
  }

  .arrow-down::after {
    width: 8px;
    height: 8px;
  }

  details[open] summary::before {
    left: 0.5rem;
    right: 0.5rem;
    top: 3rem;
  }

  /* 案内図の縦並び */
  .faq-guide {
    width: 80%;
  }

  .faq-guide-right {
    order: 1;
  }
  .faq-guide-left {
    order: 2;
  }
  .faq-ctn {
    order: 3;
    margin-top: 1rem;
  }

  .faq-guide-left img {
    width: 60%;
    margin: 0;
    height: auto;
  }

  .guide-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  .faq-ctn a.cta-button {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
  /* アクセス診療時間縦並び */
  .access-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  .note {
    line-height: 1.6;
  }

  .access-left,
  .access-right {
    max-width: none; /* 固定幅を解除 */
    width: 48%; /* 左右の割合を指定 */
  }

  .access-map {
    width: 100%; /* マップを横幅いっぱいに */
  }

  /* 左側テキストも幅を広げる */
  .access-left p {
    max-width: 100%;
    line-height: 1.6;
  }
  /* テーブル全体 */
  .schedule {
    width: 100%;
    table-layout: fixed;
    font-size: 1rem;
  }

  .schedule th:first-child,
  .schedule td:first-child {
    width: 20%; /* 診療時間列 */
  }

  .schedule th:not(:first-child),
  .schedule td:not(:first-child) {
    width: 10%; /* 曜日列 */
    text-align: center;
  }

  .schedule th,
  .schedule td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }

  /* ===== フッター ===== */
  footer {
    padding-top: 3.75px;
    background: #1a4d8f;
    text-align: center;
    color: #fff;
  }
  .footer-navbar {
    margin: 0;
    padding: 0;
  }
  .footer-btn {
    padding-bottom: 0;
  }
  .favicon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }

  .favicon-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
  }

  .favicon-image {
    width: 3rem;
    height: auto;
    margin-right: 0.625rem;
  }

  .favicon-text {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    text-align: left;
  }

  .sns-icons {
    justify-content: center;
    margin: 20px 0;
  }

  /* SNSアイコン */
  .sns-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .sns-icons a img {
    width: 2rem;
    height: 2rem;
    transition: opacity 0.3s ease;
  }

  .sns-icons a img:hover {
    opacity: 0.7;
  }

  .copyright {
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 0;
    padding: 0 0 5rem 0;
  }

  /* ===== PAGE TOPボタン ===== */
  .pagetop-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 5rem;
    z-index: 999;
  }
  .page-top-button {
    width: 4.375rem;
    height: 4.375rem;
  }

  .page-top-icon-wrapper {
    width: 1.75rem;
    height: 1.75rem;
  }

  .page-top-text {
    font-size: 0.75rem;
    line-height: 1.1;
  }

  /* パンくずリスト */
  .topic-pass {
    text-align: left;
  }
  /* 当院についてページ */
  #top-img {
    height: 25svh;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }

  /* メッセージセクション */
  #message {
    text-align: center;
  }
  .message-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .message-left img {
    width: 100%;
    margin: 0 auto;
  }
  .message-right p {
    line-height: 1.8;
  }

  /* 特徴セクション */
  .feature {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    align-items: center;
    text-align: center;
  }
  .feature-title {
    display: inline;
    font-size: 1.4rem;
  }
  .feature-left img,
  .feature-right {
    width: 100%;
    max-width: 100%;
    text-align: center;
    align-items: center;
    margin: 0 auto;
  }
  .feature-textbox {
    margin: 1rem auto;
    text-align: center;
    align-items: center;
    width: 80%;
    height: 25svh;
    padding: 15px;
  }
  .feature-textbox p {
    padding: 0 3rem;
    margin: 0 1rem;
    font-size: 1.2rem;
  }
  /* 診療案内ページ（タブレット用） */

  #departments-list {
    padding: 40px 0;
  }

  #medical-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    width: 100%;
  }

  #yobou,
  #child {
    padding: 40px 0;
    margin: 60px 0;
    width: 100%;
  }

  #ippan,
  #oral {
    padding: 40px 0;
    background-color: #eceae6;
    background-size: cover;
    background-position: center;
    width: 100%;
  }

  .departments-container {
    margin-top: 20px;
  }
  .department-heading {
    text-align: left;
    margin: 0 auto;
    padding-bottom: 30px;
    line-height: 1.5;
    font-size: 1.1rem;
  }

  .card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    text-decoration: none;
  }

  .gradient-arrow-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gradient-arrow {
    width: 13px;
    height: 13px;
    border-bottom: 2px solid transparent;
    border-right: 2px solid transparent;
    transform: rotate(45deg);
    margin-bottom: 4px;
    box-sizing: border-box;
    animation-name: none;
    animation-duration: 1.2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }

  .arrow-1 {
    border-image: linear-gradient(to bottom right, #8dbbf7 0%, #8dbbf7 100%) 1;
  }

  .arrow-2 {
    border-image: linear-gradient(to bottom right, #2169c5 0%, #2169c5 100%) 1;
  }

  .arrow-3 {
    border-image: linear-gradient(to bottom right, #1a4d8f 0%, #1a4d8f 100%) 1;
  }

  .card-link:hover .gradient-arrow {
    animation-name: move-arrows;
  }

  .card-link:hover .arrow-1 {
    animation-delay: 0s;
  }

  .card-link:hover .arrow-2 {
    animation-delay: 0.12s;
  }

  .card-link:hover .arrow-3 {
    animation-delay: 0.24s;
  }

  @keyframes move-arrows {
    0% {
      transform: translateY(0) rotate(45deg);
      opacity: 1;
    }
    50% {
      transform: translateY(4px) rotate(45deg);
      opacity: 0.7;
    }
    100% {
      transform: translateY(0) rotate(45deg);
      opacity: 1;
    }
  }

  .subject-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .subject-left img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0 auto;
    display: block;
  }

  .subject-right {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    min-width: 200px;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .consult-box h3 {
    color: #1a4d8f;
    margin: 0;
    font-size: 1.1rem;
  }

  .consult-box {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 2rem;
    align-items: center;
    text-align: center;
    background: #f7fdfc;
    border: 1px solid #2c7be5;
    border-radius: 16px;

    box-sizing: border-box;
  }

  .consult-text {
    margin: 0 auto;
    width: 80%;
    padding: 10px 0;
    text-align: left;
    font-size: 0.95rem;
  }

  .price-table {
    margin: 0 auto;
    padding: 0;
    width: 90%;
  }

  .price-table h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
    margin: 0 0 0.8rem 0;
  }

  .price-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
  }

  .price-table th,
  .price-table td {
    border: 1px solid #e0e0e0;
    padding: 8px;
    text-align: left;
    font-size: 0.9rem;
  }

  .price-table th {
    background: #f7fdfc;
    font-weight: bold;
  }

  /*  カード全体 */
  .staff-content {
    flex-direction: column; /* 縦並び */
    align-items: center;
    padding: 40px 20px;
  }

  .staff-image {
    width: 60%;
    margin-bottom: 20px;
  }

  .staff-info {
    width: 100%;
  }

  .staff-table {
    font-size: 0.95rem;
  }

  .staff-label {
    flex-basis: 100px;
  }

  /* 予約ページ */
  .contact-page {
    padding: 0 20px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-label {
    width: 100%;
    margin-bottom: 5px;
    padding-right: 0;
  }

  .form-input input,
  .form-input textarea {
    font-size: 1rem;
    padding: 10px;
  }

  .submit-button {
    width: 20%;
    font-size: 1rem;
  }
  .date-row br {
    display: none;
  }

  /* ブログ */
  .container {
    padding: 0 15px;
    margin: 50px 0;
  }

  .content-wrapper {
    flex-direction: row;
    gap: 30px;
  }
  .article-header {
    width: 80%;
    padding: 10px;
  }
  .article-title {
    white-space: inherit;
  }

  .article-content .title-center,
  .title-center-long {
    width: auto;
    height: auto;
    display: flex;
    justify-content: flex-start;
    background-size: auto 100%;
    margin: 40px 0 30px 0;
  }

  .blog-article .title-center h2,
  .blog-article .title-center-long h2 {
    font-size: 1.3rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin: 20px 0;
  }
  .post-item {
    flex-direction: row;
    gap: 15px;
    padding: 40px 0;
  }
  .post-heading {
    font-size: 1rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .post-image {
    width: 35%;
  }

  .post-content {
    width: 65%;
  }

  .sidebar {
    width: 30svh;
  }
}
/*==================================================
  スマホ版スタイル（768px以下）
 ==================================================*/
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
    white-space: nowrap;
  }

  h3 {
    font-size: 1.25rem;
    font-weight: bold;
  }

  h4 {
    font-size: 1.1rem;
  }

  .about-text br,
  .vertical-text br,
  .message-right p br,
  .news-divider,
  .staff-message br,
  .subject-right p br {
    display: none;
  }

  #message {
    margin-top: 50px;
  }

  .carouselImg-sp {
    display: block;
  }

  /* 画面下部の固定メニュー */
  .fixed-menu {
    max-width: 100svw;
    overflow-x: hidden;
    padding: 10px 20px;
    justify-content: space-around;
    gap: 1rem;
  }

  .fixed-menu .cta-button {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
  }

  .fixed-menu > #logo img {
    max-height: 1.8rem;
  }

  .hamburger {
    padding: 10px 12px;
  }

  .hamburger-menu .cta-button {
    display: block;
    text-align: center;
  }

  .section-inner {
    max-width: 100%;
    padding: 0 10px;
  }

  .overlay-box {
    padding: 0.2rem 0.8rem;
  }

  .overlay-box h1 {
    font-size: 1.4rem;
  }

  .tooth-features {
    left: 0;
    width: 95%;
    height: 50%;
  }

  .tooth-features span {
    width: 50%;
    font-size: 1.2rem;
  }
  .tooth-features .left-text {
    bottom: 80%;
  }
  .tooth-features .right-text {
    bottom: 80%;
  }

  /* お知らせ・INFORMATIONセクション */

  .news-card {
    padding: 20px;
    margin-bottom: 50px;
  }
  .info-card {
    display: flex;
    flex-direction: column;
    width: 98%;
    margin: 0 auto;
    padding: 30px 20px;
    gap: 0;
  }
  /* タイトルの調整 */
  .news-card .title,
  .info-card .title,
  .news-container .title {
    width: 100%;
    margin: 10px auto;
  }

  .news-card .btn-more {
    margin-top: 0.8rem;
  }
  .news-container {
    width: 100%;
    margin: 0 auto 30px;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .news-container ul {
    margin: 10px auto;
  }

  /* 各リストの調整 */
  .news-list {
    padding: 0;
  }

  .news-list li {
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.9rem;
  }
  .news-list li a {
    width: 100%;
  }

  .news-list li .text {
    margin: 0;
  }
  .news-date {
    margin-bottom: 5px;
    display: block;
  }

  .info-set {
    width: 100%;
    gap: 3rem;
    margin-top: 20px;
  }

  .info-right {
    text-align: center;
  }

  .info-right h3 {
    margin: 0;
  }

  .info-left {
    width: 100%;
  }
  /* テーブル全体 */
  .schedule {
    width: 100%;
    table-layout: fixed; /* 列幅を固定割合で割り当てる */
    font-size: 0.85rem;
  }

  /* 診療時間列を広めに、曜日列は少し狭め */
  .schedule th:first-child,
  .schedule td:first-child {
    width: 20%; /* 診療時間列 */
  }

  .schedule th:not(:first-child),
  .schedule td:not(:first-child) {
    width: 10%; /* 曜日列 */
    text-align: center;
  }

  /* スマホでの文字サイズ調整 */
  .schedule th,
  .schedule td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }

  /* 当院について */

  .title-center {
    width: 80%;
    height: 60px;
    margin: 0 auto 30px;
    font-size: 1rem;
    padding: 10px;
  }

  #about {
    padding: 2rem 1rem;
  }

  .about-left img,
  .about-right img {
    width: 120%;
  }

  .step-card {
    max-width: 400px;
  }

  .dept-card {
    flex: 1 1 calc(50% - 20px);
  }

  .little-btn-more {
    margin: 0.4rem 0.4rem;
  }

  /* notice-box 内幅調整 */
  .notice-box {
    width: 100%;
  }

  /* 案内図の縦並び */
  .faq-guide {
    width: 100%;
  }
  .faq-guide {
    display: block;
    text-align: center;
    padding: 1rem;
  }

  .faq-guide-right {
    order: 1;
  }
  .faq-guide-left {
    order: 2;
  }
  .faq-ctn {
    order: 3;
    margin: 2rem 0;
  }
  /* よくある質問線 */
  details[open] summary::before {
    top: 3.2rem;
  }
  /* アクセス診療時間縦並び */

  .access-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .access-left img {
    margin-bottom: 1rem;
  }

  .access-left p {
    max-width: 500px;
    margin: 0 auto;
  }

  .schedule {
    border-collapse: collapse;
  }

  .schedule th,
  .schedule td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
  }
  .map {
    background: url("../images/top/topmap") center/contain no-repeat;
    height: 30svh;
    margin: 0 auto;
  }

  .note {
    padding: 0 15px;
  }

  .access-right,
  .access-left {
    width: 100%;
  }
  .access-map h3 {
    margin-bottom: 1rem;
  }

  /* 当院についてページ */
  #top-img {
    height: 20svh;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }

  /* メッセージセクション */
  .message-right p span {
    display: block;
    margin-top: 1rem;
  }
  .message-content {
    gap: 1rem;
  }
  .message-left img {
    width: 80%;
  }

  /* 特徴セクション */
  .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
  }
  .feature-title {
    font-size: 1.2rem;
    text-align: center;
  }
  .feature-left img,
  .feature-right {
    display: block;
  }
  .feature-textbox {
    padding: 0 15px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .feature-textbox p {
    padding: 10px;
    margin: 0 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    word-break: break-word;
  }
  /* 診療案内ページ（スマホ用） */

  #departments-list {
    padding: 30px 0;
  }

  #medical-block {
    margin-top: 40px;
  }

  #yobou,
  #child {
    padding: 30px 0;
    margin: 40px 0;
  }

  #ippan,
  #oral {
    padding: 30px 0;
  }

  .department-heading {
    padding-bottom: 20px;
    line-height: 1.4;
    font-size: 1rem;
  }

  /* スマホでは縦並びにする */
  .subject-content {
    gap: 20px;
  }

  .subject-left img {
    max-width: 400px;
  }

  /* 相談ボックス */

  .consult-box {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    margin: 30px 0;
    box-sizing: border-box;
  }

  .consult-text {
    width: 90%;
    text-align: left;
  }

  /* 料金表 */
  .price-table {
    width: 100%;
  }

  /* スタッフ紹介 */

  .staff-card {
    margin: 2rem 0;
  }

  .staff-content {
    padding: 30px 15px;
    gap: 15px;
    width: 100%;
  }

  .staff-image {
    width: 100%;
    margin-bottom: 15px;
  }

  .staff-info {
    width: 100%;
  }

  .staff-table {
    font-size: 0.9rem;
    width: 100%;
  }

  .staff-label {
    flex-basis: 90px;
    font-size: 0.85rem;
  }

  .staff-message h4 {
    font-size: 1rem;
    margin-top: 25px;
  }

  .staff-message p {
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: center;
  }

  .staff-value {
    white-space: normal;
  }
  /* 予約ページ */
  .contact-page {
    padding: 0 15px;
  }

  .contact-header {
    margin: 30px 0 15px;
    padding: 0 15px;
  }

  .contact-header h3 {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .form-container {
    padding: 15px;
  }

  .form-row {
    margin-bottom: 15px;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-input input,
  .form-input textarea {
    font-size: 0.9rem;
    padding: 8px;
  }

  .age-input input {
    width: 80px;
  }

  .date-row {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 16px;
  }

  .date-row span {
    font-size: 0.9rem;
  }

  .date-row input[type="date"] {
    display: block;
    width: 100%;
    max-width: 30svw;
    padding: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
  }

  .privacy-text-content {
    max-height: 150px;
    font-size: 0.8rem;
  }

  .submit-button {
    width: 30%;
    padding: 12px;
    font-size: 0.9rem;
  }
  /* ブログ */
  .container {
    padding: 0 10px;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .post-item {
    flex-direction: column;
    padding: 30px 0;
  }

  .post-image {
    width: 100%;
    height: auto;
  }

  .post-content {
    width: 100%;
  }

  .sidebar {
    padding: 0;
    margin: 0 auto;
  }
  .sidebar-widget {
    padding: 0 40px;
  }

  .post-heading {
    font-size: 1.1rem;
  }

  .post-excerpt {
    font-size: 0.9rem;
  }

  .btn-secondary {
    padding: 6px 20px;
    font-size: 0.9rem;
  }
  .article-header {
    width: 100%;
  }

  .article-title {
    font-size: 1.3rem;
  }

  .article-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .article-image img {
    width: 100%;
    height: auto;
  }
  .error-title {
    width: 60%;
  }
  .not-found {
    margin-top: 0;
  }
}
