/*
Theme Name: Clinic Original
Theme URI: https://example.com/
Author: Sayaka Tanaka
Author URI: https://example.com/
Description: かわぐち内科クリニックテーマ（修正版 - グリーン統一＆レイアウト調整）
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clinic-original
Tags: clinic, medical, hospital, two-columns, custom-logo, featured-images, responsive-layout
*/

/*==================================================
 Web Fonts
==================================================*/

@font-face {
  font-family: "Hiragino Kaku Gothic ProN";
  src: url("fonts/HiraginoKakuGothicProNW3.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hiragino Kaku Gothic ProN";
  src: url("fonts/HiraginoKakuGothicProNW6.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ryumin Pro";
  src: url("fonts/A-OTF-RyuminPro-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ryumin Pro";
  src: url("fonts/A-OTF-RyuminPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ryumin Pro";
  src: url("fonts/A-OTF-RyuminPro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ryumin Pro";
  src: url("fonts/A-OTF-RyuminPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ryumin Pro";
  src: url("fonts/A-OTF-RyuminPro-Heavy.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/*==================================================
 共通設定
==================================================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #008b72;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  opacity: 0.8;
}

.wrap {
  width: 1200px;
  max-width: 92%;
  margin: 0 auto;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 50px;
  color: #1180bf;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #1180bf;
  margin: 20px auto 0;
}

/*==================================================
 Header Layout
==================================================*/

#wrapper {
  overflow: hidden;
}

/* ヘッダー全体（追従型） */
#header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: auto !important; /* コンテンツに合わせて自動伸縮 */
  padding: 15px 0 0 !important; /* ナビ表示のため下部余白を調整 */
}

/* ヘッダー内部（3つのブロックを横並びにする） */
.header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
  height: auto !important;
  min-height: 80px;
  padding-bottom: 15px;
}

/* 左側：ロゴ（比率調整） */
.header-left {
  flex: 0 0 auto !important;
  max-width: unset;
}

.logo {
  margin: 0;
  padding: 0;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px !important; /* ロゴ高さを固定 */
  width: 100%;
  max-width: 400px;
  object-fit: contain !important; /* 比率を維持して領域に収める */
  display: block;
}

/* 中央：診療時間表（グリーンベースに変更） */
.header-timetable {
  flex: 0 1 auto !important;
  margin: 0 30px !important;
  font-size: 13px !important;
  color: #4a4a4a !important;
  min-width: 380px;
}

.header-time-table {
  border-collapse: collapse !important;
  width: 100% !important;
  margin-bottom: 5px !important;
}

.header-time-table th,
.header-time-table td {
  padding: 4px 8px !important;
  text-align: center !important;
  font-weight: bold !important;
  border: none !important;
  font-size: 13px !important;
  color: #1180bf !important;
}

.header-time-table th {
  background-color: #e8f3fb !important;
}

.header-time-table td:first-child {
  color: #555 !important;
}

/* テーブル下の注意書き */
.timetable-notice {
  margin: 0 !important;
  text-align: center !important;
  font-size: 11px !important;
  color: #555 !important;
  font-weight: bold !important;
}

/* 右側：連絡先（文字とアイコンのサイズを揃える） */
.header-contact-info {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-end !important;
}

.contact-row {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 6px !important;
}

.contact-row:last-child {
  margin-bottom: 0 !important;
}

.contact-row a {
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  align-items: center !important;
}

/* 電話・FAXアイコン共通（グリーンに変更） */
.contact-icon {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background-color: #209c85 !important;
  color: #fff !important;
  margin-right: 8px !important;
  font-size: 9px !important;
  font-weight: bold !important;
  flex-shrink: 0 !important;
}

.contact-icon.fax-bg,
.contact-icon.tel-bg {
  background-color: #3cb39b !important;
}

/* 電話番号・FAX番号の文字サイズを統一 */
.contact-row strong {
  font-family: "Ryumin Pro", serif !important;
  font-size: 20px !important; /* 電話とFAXのフォントサイズを20pxに統一 */
  color: #4a4a4a !important;
  font-weight: bold !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
}

/* ==================================================
   グローバルナビゲーション（表示担保）
=================================================== */

.global-nav {
  background: #fff !important;
  border-top: 1px solid #e0e0e0 !important;
  border-bottom: 1px solid #e0e0e0 !important;
  margin-top: 10px !important;
  width: 100% !important;
  display: block !important;
  position: relative !important;
  z-index: 10000 !important;
}

.global-nav .wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.header-menu-list {
  display: flex !important;
  justify-content: space-between !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.header-menu-list li {
  flex: 1 !important;
  text-align: center !important;
  border-left: 1px solid #e0e0e0 !important;
  position: relative !important;
}

.header-menu-list li:last-child {
  border-right: 1px solid #e0e0e0 !important;
}

.header-menu-list li a {
  display: block !important;
  padding: 12px 0 18px !important;
  color: #333 !important;
  text-decoration: none !important;
  transition: background-color 0.3s !important;
}

/* メニューの日本語テキスト */
.header-menu-list li a .menu-title-ja {
  display: block !important;
  font-size: 16px !important;
  font-weight: bold !important;
  color: #333 !important;
  line-height: 1.2 !important;
}

/* メニューの英語サブタイトル */
.header-menu-list li a .menu-title-en {
  display: block !important;
  font-size: 9px !important;
  color: #666 !important;
  text-transform: uppercase !important;
  margin-top: 2px !important;
  font-weight: bold !important;
}

/* アクティブ/ホバー時のピンク色の矢印マーク */
.header-menu-list li a::after {
  content: "" !important;
  position: absolute !important;
  bottom: 5px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 6px 8px 6px !important;
  border-color: transparent transparent #209c85 transparent !important; /* 三角形もグリーンに変更 */
  opacity: 0 !important;
  transition: opacity 0.3s !important;
}

.header-menu-list li a:hover::after,
.header-menu-list li.current-menu-item a::after {
  opacity: 1 !important;
}

.header-menu-list li a:hover {
  background-color: #fafafa !important;
}

/*==================================================
 MainVisual（被り・レイアウト調整）
==================================================*/

.top-mainvisual {
  margin-top: 185px !important; /* メニュー付きヘッダーの高さ分、開始位置を下げて被りを完全に解消 */
  position: relative;
  z-index: 1;
}

.top-mainvisual .metaslider {
  margin: 0;
}

.top-mainvisual img {
  width: 100%;
}

.top-mainvisual:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 80px; /* グラデーションの被りを少し控えめに調整 */
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  z-index: 2;
}

/*==================================================
 Recruit Banner
==================================================*/

.top-recruit {
  padding: 40px 0;
  background: #fff;
}

.top-recruit img {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: 0.4s;
}

.top-recruit img:hover {
  transform: translateY(-5px);
}

/*==================================================
 Recruit Message
==================================================*/

.recruit-message {
  padding: 0 0 60px;
}

.recruit-message p {
  text-align: center;
  font-size: 18px;
}

.recruit-message a {
  display: inline-block;
  margin-top: 15px;
  color: #2ca089;
  font-weight: bold;
}

/*==================================================
 Contact Area
==================================================*/

.top-contact {
  background: #f0f8fc;
  padding: 40px 0;
}

.top-contact .wrap {
  display: block;
}

.top-banner {
  border: 2px solid #1180bf;
  border-radius: 12px;
  padding: 20px 24px;
  background: #fffcee;
}

/* Tags grid */
.banner-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 16px;
}

.banner-tag {
  background: #c8e9f8;
  color: #333;
  text-align: center;
  padding: 8px 10px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}


/* CTA row */
.banner-cta {
  display: flex;
  align-items: center;
  gap: 50px;
}

.banner-btn-group {
  width: 50%;
  display: flex;
  gap: 20px;
}

.banner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  outline: 2px solid #fff;
  outline-offset: -5px;
}

.banner-btn img {
  width: 26px;
  height: auto;
  filter: brightness(0) invert(1);
}

.btn-web-cta {
  background: #1180bf;
}

.btn-line-cta {
  background: #83c900;
}

.banner-info {
  width: 50%;
  font-size: 20px;
  line-height: 2;
}

/*==================================================
 Clinic Menu
==================================================*/

.clinic-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 35px;
}

.clinic-menu li {
  background: #2ca089;
  color: #fff;
  border-radius: 30px;
  padding: 10px 22px;
  margin: 8px;
  font-weight: bold;
}

/*==================================================
 TEL Area
==================================================*/

.tel-area {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tel-area a {
  display: flex;
  align-items: center;
}

.tel-area .icon {
  width: 70px;
  margin-right: 20px;
}

.tel-area .number {
  font-size: 42px;
  font-weight: bold;
  color: #006b5c;
}

/*==================================================
 Time Table
==================================================*/

.contact-right table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-right th {
  width: 35%;
  background: #2ca089;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.contact-right td {
  padding: 20px;
  border-bottom: 1px solid #ececec;
}

.contact-right tr:last-child td {
  border-bottom: none;
}

/*==================================================
 Button
==================================================*/

.btn-more,
.btn-blue {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 40px;
  background: #1180bf;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

.btn-more:hover,
.btn-blue:hover {
  background: #0d6aab;
}

/*==================================================
 Utility
==================================================*/

.pc {
  display: block;
}

.sp {
  display: none;
}

/*==================================================
 院長あいさつ
==================================================*/

.top-message {
  background: #fff;
}

.top-message .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.message-text {
  width: 55%;
}

.message-text h2 {
  font-size: 34px;
  color: #006b5c;
  margin-bottom: 30px;
  line-height: 1.4;
}

.message-text p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #555;
}

.message-photo {
  width: 40%;
  text-align: center;
}

.message-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/*==================================================
 当院の特徴
==================================================*/

.top-feature {
  background: url("images/feature_bg.jpg") center center no-repeat;
  background-size: cover;
  position: relative;
  padding: 100px 0;
  margin-top: 70px;
}

.feature-bg {
  position: relative;
  z-index: 2;
}

.feature-box {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  padding: 70px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.feature-list {
  list-style: none;
  width: max-content;
  margin: 0 auto;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e7e7e7;
}

.feature-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border: none;
}

.feature-point-wrap {
  position: relative;
  width: 170px;
  min-width: 170px;
  height: 130px;
  margin-right: 35px;
}

.feature-no {
  position: absolute;
  top: 0;
  left: 0;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: #1180bf;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
  z-index: 2;
}

.feature-img {
  position: absolute;
  top: 10px;
  right: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  color: #1180bf;
  font-size: 24px;
  margin-bottom: 12px;
}

.sp-br {
  display: none;
}

.feature-text p {
  color: #555;
  line-height: 2;
}

.feature-btn {
  text-align: center;
  margin-top: 50px;
}

/*==================================================
 診療案内
==================================================*/

.top-treatment {
  background: #f8fbfb;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

.treatment-item {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: 0.35s;
}

.treatment-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.treatment-item a {
  display: block;
  color: inherit;
}

.treatment-item img {
  width: 100%;
  height: auto;
  transition: 0.5s;
}

/* .treatment-item:hover img {
  transform: scale(1.08);
} */

.overlay {
  padding: 30px;
  background: #fff;
}

.overlay h3 {
  color: #006b5c;
  font-size: 26px;
  margin-bottom: 15px;
}

.overlay p {
  color: #666;
  line-height: 1.8;
  font-size: 16px;
}

/*==================================================
 診療案内ボタン
==================================================*/

.treatment-button {
  text-align: center;
  margin-top: 55px;
}

.treatment-button .btn-more {
  min-width: 260px;
}

/*==================================================
 Hover Animation
==================================================*/

.feature-list li,
.treatment-item {
  transition: all 0.3s ease;
}

.feature-list li:hover {
  transform: translateX(8px);
}

.feature-list li:hover .feature-no {
  background: #0d6aab;
}

/*==================================================
 背景装飾
==================================================*/

/*==================================================
 予防接種・健康診断
==================================================*/

.top-reserve {
  padding: 80px 0;
  position: relative;
  background: rgba(209, 236, 248, 0.82);
  overflow: hidden;
}

.top-reserve::before {
  content: '';
  position: absolute;
  top: -95px;
  left: -10px;
  display: block;
  width: 45%;
  aspect-ratio: 5 / 3;
  background: url("images/reserve-bg.png") top left no-repeat;
  background-size: contain;
}

.top-reserve .wrap {
  position: relative;
  z-index: 1;
}

/* Hide tabs — both panels shown side by side */
.reserve-tabs {
  display: none;
}

.reserve-inner {
  display: flex;
  gap: 30px;
}

.reserve-area {
  flex: 1;
  min-width: 0;
  display: block;
  background: #fff;
  padding: 30px 40px;
  border: 1px solid #1180BF;
}

.reserve-area__title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #023058;
  margin-bottom: 30px;
}

.reserve-steps {
  margin: 0;
}

.reserve-steps dt {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 12px;
  color: #023058;
}

.reserve-step {
  border: 1px solid #333;
  color: #023058;
  font-weight: bold;
  font-size: 14px;
  font-weight: bold;
  padding: 0.3em 0.8em;
  height: 2em;
  margin-right: 1em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.reserve-steps dd {
  margin: 0 0 2.5em 0;
  padding: 0;
}

.reserve-steps dd p {
  color: #023058;
  margin-bottom: 10px;
  line-height: 1.7;
}

.reserve-qr {
  display: flex;
  justify-content: center;
  margin: 12px auto;
}

.reserve-qr img {
  width: 120px;
  aspect-ratio: 1 / 1;
}

.reserve-note {
  font-size: 0.85em;
  line-height: 1.5em;
  color: #1180BF;
  margin-bottom: 10px;
}

.reserve-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  padding: 15px 30px 15px 15px;
  background: #fff;
  border: 1px solid #eee;
  color: #023058;
  font-size: 0.9em;
  position: relative;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: 0.2s;
}

.reserve-btn::after {
  content: '▶';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #1180BF;
}

.reserve-btn:hover {
  background: #E9F8FF;
  border: 1px solid #E9F8FF;
  transform: translate(1px, 1px);
}

.reserve-tel-number {
  font-size: 1.6em;
  font-weight: bold;
  margin: 0.5em 0 0.3em;
}

.reserve-tel-number a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #023058;
  text-decoration: none;
  white-space: nowrap;
}

.reserve-tel-number a img {
  width: 20px;
  height: auto;
}

/* LINE reserve row */
.reserve-line {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  background: #fff;
  border: 1px solid #1180BF;
  padding: 30px 40px;
  margin-top: 30px;
}

.reserve-line__title {
  width: 100%;
}

.reserve-line__col1,
.reserve-line__col2 {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/*==================================================
 院長紹介
==================================================*/

.top-director {
  background: url("images/director-bg.jpg") center center no-repeat;
  background-size: cover;
  padding: 100px 0;
  margin-top: 70px;
  overflow: hidden;
}

.director-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.director-message {
  width: 55%;
}

.director-message p {
  margin-bottom: 20px;
  color: #555;
  line-height: 2;
}

.director-photo {
  width: 40%;
  text-align: center;
  position: relative;
}

.director-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.director-cartoon {
  position: absolute;
  bottom: -70px;
  right: -120px;
  width: 45% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.top-director .btn-blue {
  margin-top: 40px;
}

/*==================================================
 医院紹介
==================================================*/

.top-clinic {
  background: #fff;
  padding: 100px 0;
}

.top-clinic a[href^="tel"] {
  color: #1180BF;
}

.clinic-wrap {
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.clinic-info {
  width: 48%;
}

.clinic-map {
  width: 48%;
}

.clinic-map iframe {
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.clinic-table,
.footer-time-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.clinic-table th,
.footer-time-table th {
  width: 30%;
  background: #1180BF;
  color: #fff;
  padding: 16px;
  text-align: center;
}

.clinic-table td,
.footer-time-table td {
  padding: 16px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.footer-time-table th {
  width: 10%;
  background: #ccc;
  color: #023058;
  white-space: nowrap;
}

.footer-time-table td:first-child {
  white-space: nowrap;
  background: #fff;
}

.footer-time-table td.is-open,
.time-table td.is-open {
  color: #1180BF;
}

.time-table {
  margin-top: 30px;
}

.time-table h3 {
  margin-bottom: 20px;
  color: #1180BF;
}

.time-table table {
  width: 100%;
  border-collapse: collapse;
}

.time-table th {
  background: #ccc;
  color: #023058;
  padding: 12px;
  border: 1px solid #e5e5e5;
}

.time-table td {
  text-align: center;
  padding: 12px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.holiday {
  margin-top: 15px;
  color: #777;
}

/*==================================================
 新着情報
==================================================*/

.top-news {
  padding: 0;
}

.top-news__wrap {
  background: #f8fbfb;
  padding: 70px 30px;
  border: 1px solid #e9f8ff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-head h2 {
  color: #1180bf;
  font-size: 34px;
}

.section-head a {
  color: #1180bf;
  font-weight: bold;
}

.news-list {
  list-style: none;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.news-list li {
  border-bottom: 1px solid #eee;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-list a {
  display: flex;
  align-items: center;
  padding: 22px 30px;
  transition: 0.3s;
}

.news-list a:hover {
  background: #ebf9ff;
}

.news-list .date {
  width: 150px;
  color: #1180bf;
  font-weight: bold;
}

.news-list .title {
  flex: 1;
  color: #333;
}

/*==================================================
 下部バナー
==================================================*/

.bottom-banner {
  padding: 70px 0;
  background: #fff;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.banner-grid img {
  width: 100%;
  border-radius: 15px;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.banner-grid img:hover {
  transform: translateY(-6px);
}

/*==================================================
 右側固定バナー（PC用・グリーン仕様に修正）
==================================================*/

.side-reserve-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 110px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 90px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  transition: opacity 0.3s;
}

.side-btn:hover {
  opacity: 0.9;
}

/* WEB予約 */
.side-btn.btn-web {
  background-color: #ffffff;
  color: #333;
  border: 3px solid #1180bf;
  box-sizing: border-box;
}

/* LINE予約 */
.side-btn.btn-line {
  background-color: #ffffff;
  color: #333;
  border: 3px solid #83c900;
  box-sizing: border-box;
}

/* 電話予約 */
.side-btn.btn-tel {
  background-color: #ffffff;
  color: #333;
  border: 3px solid #1180bf;
  box-sizing: border-box;
}

/* ページトップ */
.side-btn.btn-pagetop {
  background-color: #1180bf;
  color: #fff;
  border: 3px solid #1180bf;
  box-sizing: border-box;
}

.side-btn span {
  margin-top: 5px;
  font-size: 10px;
  width: 30px;
}

/*==================================================
 Footer Contact
==================================================*/

.footer-contact {
  background: #fff;
  padding: 80px 20px;
}

.footer-contact__btns-wrap {
  background: #E9F8FF;
  padding: 100px;
}

.footer-contact__banners {
  display: flex;
  gap: 60px;
  margin-bottom: 20px;
}

.footer-banner-img {
  flex: 1;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.footer-banner-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

.footer-banner-img:hover img {
  opacity: 0.85;
}

.footer-contact__btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}

.footer-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 60px;
  padding: 12px;
  border-radius: 6px;
  background: #1180BF;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  outline: 2px solid #fff;
  outline-offset: -5px;
  transition: opacity 0.3s;
}

.footer-contact-btn:hover {
  opacity: 0.85;
}

/*==================================================
 Footer
==================================================*/

footer {
  color: #fff;
}

footer a {
  color: #555;
}

footer .footer-inner {
  width: 1200px;
  max-width: 92%;
  margin: auto;
  display: flex;
  flex-direction: row;
  gap: 40px;
}

footer .footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-bottom: 35px;
}

footer .footer-nav li {
  list-style: none;
}

footer .copyright {
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/*==================================================
 PageTop
==================================================*/

.pagetop {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #2ca089;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: 0.3s;
  z-index: 999;
}

.pagetop:hover {
  background: #006b5c;
  transform: translateY(-4px);
}

/*==================================================
 Scroll Animation
==================================================*/

.fadeUp {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fadeUp.show {
  opacity: 1;
  transform: translateY(0);
}

.fadeLeft {
  opacity: 0;
  transform: translateX(-40px);
  transition: 0.8s;
}

.fadeLeft.show {
  opacity: 1;
  transform: none;
}

.fadeRight {
  opacity: 0;
  transform: translateX(40px);
  transition: 0.8s;
}

.fadeRight.show {
  opacity: 1;
  transform: none;
}

/*==================================================
 Header Scroll
==================================================*/

.header-scroll {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
}

/*==================================================
 Hamburger Menu
==================================================*/

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
}

.menu-toggle span {
  position: absolute;
  left: 7px;
  width: 28px;
  height: 3px;
  background: #006b5c;
  transition: 0.3s;
}

.menu-toggle span:nth-child(1) {
  top: 11px;
}

.menu-toggle span:nth-child(2) {
  top: 19px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 19px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
}

/*==================================================
 FOOTER (Second block in style.css)
==================================================*/

#footer {
  margin-top: 80px;
}

.footer-main {
  background: #fff;
  color: #333;
  padding: 60px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-group-info,
.footer-group-nav {
  display: flex;
  gap: 40px;
}

/* Col 1 — Access Info */
.footer-access-info {
  color: #023058;
}

.footer-clinic-name {
  font-size: 18px;
  font-weight: bold;
  color: #023058;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-address {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-access-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
  padding: 15px 30px 15px 15px;
  color: #1180BF;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  position: relative;
  background-color: transparent;
}

.footer-access-btn::after {
  content: '▶';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #1180BF;
}

.footer-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

.footer-tel-label {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-tel-number {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
}

.footer-tel-number a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #023058;
  text-decoration: none;
  white-space: nowrap;
}

.footer-tel-number a img {
  width: 20px;
  height: auto;
  vertical-align: middle;
  margin-right: 4px;
}

.footer-tel-note {
  font-size: 13px;
  line-height: 1.7;
}

/* Col 2 — Schedule */
.footer-schedule {
  color: #023058;
}

.footer-schedule h3 {
  font-size: 16px;
  font-weight: bold;
  color: #023058;
  text-align: center;
  margin-bottom: 12px;
  border-bottom: none;
  padding-bottom: 0;
}


.footer-schedule-note {
  font-size: 12px;
  color: #023058;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* Col 3 & 4 — Nav */
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list > li {
  margin-bottom: 10px;
}

.footer-nav-list > li > a {
  font-size: 18px;
  font-weight: bold;
  color: #023058;
  text-decoration: none;
}

.footer-nav-list > li > a:hover {
  color: #1180BF;
}

.footer-subnav-list,
.footer-nav-list .sub-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.footer-subnav-list li,
.footer-nav-list .sub-menu li {
  margin-bottom: 4px;
}

.footer-subnav-list li a,
.footer-nav-list .sub-menu li a {
  font-size: 16px;
  color: #023058;
  text-decoration: none;
  font-weight: normal;
}

.footer-subnav-list li a::before,
.footer-nav-list .sub-menu li a::before {
  content: 'ー';
  margin-right: 2px;
  color: #023058;
}

.footer-subnav-list li a:hover,
.footer-nav-list .sub-menu li a:hover {
  color: #1180BF;
}

.footer-copy {
  background: #1180BF;
  color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: 14px;
}

/*==================================================
 Single
==================================================*/

.single-wrap {
  max-width: 960px;
  margin: 70px auto;
}

.single-article {
  background: #fff;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.single-header {
  margin-bottom: 35px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.single-meta time {
  color: #2ca089;
  font-weight: bold;
}

.single-title {
  font-size: 38px;
  color: #006b5c;
  line-height: 1.5;
}

.single-thumbnail {
  margin-bottom: 40px;
}

.single-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.entry-content {
  line-height: 2;
  color: #555;
}

.entry-content h2 {
  margin: 60px 0 25px;
  padding-left: 18px;
  border-left: 6px solid #2ca089;
  color: #006b5c;
  font-size: 32px;
}

.entry-content h3 {
  margin: 40px 0 20px;
  color: #006b5c;
  font-size: 26px;
}

.entry-content p {
  margin-bottom: 25px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.entry-content ul {
  margin: 25px 0;
  padding-left: 22px;
}

.entry-content li {
  margin-bottom: 10px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 35px 0;
}

.entry-content th {
  background: #2ca089;
  color: #fff;
  padding: 15px;
}

.entry-content td {
  border: 1px solid #ddd;
  padding: 15px;
}

/*==============================
 Navigation
==============================*/

.post-navigation {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-navigation a {
  color: #2ca089;
  font-weight: bold;
}

.nav-center {
  flex: 1;
  text-align: center;
}

/*==================================================
 Search Form
==================================================*/

.search-form {
  width: 100%;
  margin: 40px auto;
}

.search-form-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.search-field {
  width: 420px;
  max-width: 100%;
  height: 54px;
  padding: 0 20px;
  border: 2px solid #d9e6e4;
  border-radius: 999px;
  font-size: 16px;
  background: #fff;
  transition: 0.3s;
  outline: none;
}

.search-field:focus {
  border-color: #2ca089;
  box-shadow: 0 0 0 4px rgba(44, 160, 137, 0.15);
}

.search-submit {
  height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: #2ca089;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.search-submit:hover {
  background: #006b5c;
  transform: translateY(-2px);
}

.search-submit:active {
  transform: translateY(0);
}

/*==================================================
 Search Result
==================================================*/

.search-keyword {
  font-size: 18px;
  color: #666;
  margin-top: 15px;
}

.search-keyword strong {
  color: #006b5c;
}

.no-post {
  text-align: center;
  padding: 80px 20px;
}

.no-post h2 {
  font-size: 30px;
  color: #006b5c;
  margin-bottom: 20px;
}

.no-post p {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.8;
}

/*==============================
index.php (Blog index / News list)
==============================*/

.page-header {
  margin: 120px 0 50px;
  text-align: center;
}

.page-title {
  font-size: 36px;
  color: #006b5c;
}

.news-article {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  transition: 0.3s;
}

.news-article:hover {
  transform: translateY(-5px);
}

.news-article a {
  display: block;
  color: #333;
}

.post-thumbnail img {
  width: 100%;
  display: block;
}

.post-content {
  padding: 30px;
}

.post-date {
  color: #2ca089;
  font-weight: bold;
  margin-bottom: 10px;
}

.post-title {
  font-size: 26px;
  margin-bottom: 15px;
}

.post-excerpt {
  line-height: 1.9;
}

.pagination {
  margin: 70px 0;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 12px 18px;
  margin: 0 5px;
  background: #f4f4f4;
  border-radius: 6px;
}

.pagination .current {
  background: #2ca089;
  color: #fff;
}

/*==================================================
 レスポンシブ & メディアクエリ
==================================================*/

@media screen and (max-width: 1200px) {

  /* Footer: switch from 4-col to 2-row layout */
  footer .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-group-info,
  .footer-group-nav {
    align-items: start;
  }

}

@media screen and (max-width: 1024px) {
  .top-message .wrap,
  .director-content,
  .clinic-wrap {
    flex-direction: column;
  }

  .message-text,
  .message-photo,
  .checkup-image,
  .checkup-content,
  .director-message,
  .director-photo,
  .clinic-info,
  .clinic-map {
    width: 100%;
  }

  .feature-box {
    padding: 50px;
  }

  .feature-list li {
    flex-direction: column;
    gap: 20px;
  }

  .feature-no {
    margin: 0 auto 25px;
  }

  .feature-text {
    text-align: center;
  }

  .treatment-grid {
    grid-template-columns: 1fr;
  }

  .banner-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* タブレット時は時間表を非表示にしてスッキリさせる */
  .header-timetable {
    display: none !important;
  }
}

@media screen and (max-width: 960px) {
  /* メニューバーと追従サイドボタンを隠す */
  .global-nav {
    display: none !important;
  }
  .side-reserve-bar {
    display: none !important;
  }
  .menu-toggle {
    display: block !important;
  }
  #header {
    position: relative !important;
    height: auto !important;
    padding: 10px 0 !important;
  }
  .header-inner {
    height: 50px !important;
    min-height: 50px !important;
  }
  .logo img {
    height: 45px !important;
  }
  .top-mainvisual {
    margin-top: 0 !important;
  }

  /* Top Banner */
  .banner-tag {
    font-size: 16px;
  }

  .banner-cta {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .banner-btn-group {
    width: 100%;
  }

  .banner-info {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  .wrap {
    width: 94%;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 35px;
  }

  .top-message,
  .top-reserve,
  .top-director,
  .top-clinic,
  .top-news {
    padding: 60px 0;
  }

  .director-cartoon {
    bottom: -40px;
    right: -40px;
    width: 35% !important;
  }

  /* Top Banner */
  .banner-tags {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .banner-tag {
    font-size: 13px;
    padding: 6px 8px;
  }

  .banner-btn {
    font-size: 15px;
  }

  .banner-info {
    font-size: 14px;
  }

  /* Reserve — all 3 blocks stack full width */
  .reserve-inner,
  .reserve-line {
    flex-direction: column;
    gap: 20px;
  }

  .reserve-area,
  .reserve-line__col1,
  .reserve-line__col2 {
    flex: none;
    width: 100%;
  }

  .reserve-area,
  .reserve-line {
    padding: 24px 20px;
  }

  .reserve-line {
    margin-top: 20px;
  }

  .reserve-line__title {
    margin-bottom: 16px;
  }

  .message-text h2 {
    font-size: 28px;
  }

  .feature-box {
    padding: 35px 25px;
  }

  .feature-list {
    width: 100%;
  }



  .feature-point-wrap {
    margin: 0 auto;
  }

  .sp-br {
    display: inline;
  }

  .feature-no {
    width: 80px;
    height: 80px;
    min-width: 80px;
    font-size: 13px;
  }

  .feature-text h3 {
    font-size: 20px;
  }

  .overlay {
    padding: 22px;
  }

  .overlay h3 {
    font-size: 22px;
  }

  .checkup-btn {
    flex-direction: column;
  }

  .btn-green,
  .btn-blue {
    width: 100%;
    text-align: center;
  }

  .section-head {
    display: block;
    text-align: center;
  }

  .section-head a {
    display: inline-block;
    margin-top: 15px;
  }

  .news-list a {
    display: block;
  }

  .news-list .date {
    display: block;
    width: auto;
    margin-bottom: 8px;
  }

  .banner-grid {
    grid-template-columns: 1fr;
  }

  .clinic-map iframe {
    height: 320px;
  }

  /* Contact Block */
  .top-contact .wrap {
    flex-direction: column;
  }

  .contact-left,
  .contact-right {
    width: 100%;
  }

  .contact-right {
    margin-top: 35px;
  }

  .tel-area .number {
    font-size: 30px;
  }

  .tel-area {
    padding: 20px;
  }

  .clinic-menu {
    justify-content: center;
  }

  .clinic-menu li {
    font-size: 14px;
    padding: 8px 15px;
  }

  /* Single post article */
  .single-article {
    padding: 30px;
  }

  .single-title {
    font-size: 28px;
  }

  .single-meta {
    flex-wrap: wrap;
  }

  .post-navigation {
    flex-direction: column;
  }

  .nav-center {
    width: 100%;
  }

  /* Footer */
  .footer-time-table th,
  .footer-time-table td {
    font-size: 12px;
    padding: 8px 5px;
  }

  .footer-group-info,
  .footer-group-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .footer-contact__btns-wrap {
    padding: 20px;
  }

  .footer-contact__banners {
    flex-direction: column;
    gap: 20px;
  }

  .footer-contact__btns {
    flex-direction: column;
    gap: 10px;
  }

  footer {
    padding: 45px 0 20px;
  }

  #footer {
    margin-top: 0;
  }

  footer .footer-nav {
    display: block;
    text-align: center;
  }

  footer .footer-nav li {
    margin-bottom: 15px;
  }

  /* PageTop */
  .pagetop {
    right: 15px;
    bottom: 15px;
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  /* モバイル・スマホ時のヘッダー連絡先 */
  .header-contact-info {
    display: none !important; /* スマホでは時間表に加えて上部ヘッダーの連絡先も隠してシンプルにする */
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .tel-area .number {
    font-size: 26px;
  }

  .footer-contact-btn {
    font-size: 16px;
    padding: 14px;
  }
}

/*==================================================
 MainVisual（高さを崩さず、後続の引き上げを完全に防止）
==================================================*/

.top-mainvisual {
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  display: block !important;
  clear: both !important; /* floatによる高さ消失を防ぐ */
  overflow: hidden !important;
}

/* MetaSliderが読み込まれるエリア自体の浮き上がりを防ぐ */
.top-mainvisual .metaslider {
  margin: 0 !important;
  clear: both !important;
  display: block !important;
}

.top-mainvisual img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* 下部グラデーション効果 */
.top-mainvisual::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  z-index: 10 !important;
  pointer-events: none; /* 下の要素へのクリックを邪魔しない */
}

/* 固定サイドボタンのレイアウト崩れ防止 */
.side-reserve-bar {
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  width: 110px !important;
  z-index: 99999 !important; /* 常に最前面 */
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}
.contact-image {
  display: block;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.message-image {
  display: block;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/** custom css by upward */

/* ============================================================
   PC OVERWRITES
============================================================ */

/* Global Nav (#nav-s) */
#nav-s {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  width: 100%;
}

#nav-s ul.header-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#nav-s ul.header-menu-list > li {
  flex: 1;
  text-align: center;
  border-left: 1px solid #e0e0e0;
}

#nav-s ul.header-menu-list > li:last-child {
  border-right: 1px solid #e0e0e0;
}

#nav-s ul.header-menu-list > li > a {
  display: block;
  padding: 12px 0 24px !important;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.2;
  position: relative;
}

#nav-s ul.header-menu-list > li > a::after {
  content: "" !important;
  position: absolute !important;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 0 7px 7px !important;
  border-color: transparent transparent #1180bf !important;
  opacity: 1 !important;
}

#nav-s ul.header-menu-list > li > a span:not(.nav-break) {
  display: block;
  font-size: 9px;
  color: #666;
  font-weight: normal;
  text-transform: uppercase;
  margin-top: 2px;
}

#nav-s .sub-menu > li > a::after,
.mobile-menu-list .sub-menu > li > a::after {
  content: none !important;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
}


/* Topics Banner (.top-message) */
.greeting-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-radius: 12px;
  padding: 20px 20px 30px;
  background: #ebf9ff;
}

.greeting-head {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.greeting-title {
  margin-bottom: 20px;
}

.greeting-title::after {
  margin-top: 10px;
}

.greeting-doctor {
  position: absolute;
  top: -40px;
  right: -130px;
  width: 130px;
  display: block;
}

.greeting-banner {
  display: block;
  padding: 10px;
  max-width: 400px;
  border: 3px dashed #e05555;
}

.greeting-banner img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ============================================================
  PC OVERWRITES (960px and above)
============================================================ */
@media only screen and (min-width: 960px) {
  #nav-s .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10001;
    width: 260px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-align: left;
  }

  #nav-s .menu-item-has-children:hover > .sub-menu,
  #nav-s .menu-item-has-children:focus-within > .sub-menu {
    display: block;
  }

  #nav-s .sub-menu > li {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }

  #nav-s .sub-menu > li:last-child {
    border-bottom: 0;
  }

  #nav-s .sub-menu > li > a {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    background: #fff;
    padding: 1em !important;
    color: #333;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
  }

  #nav-s .sub-menu > li > a:hover {
    background: #fafafa;
    color: #333;
  }

  #nav-s .sub-menu > li:last-child > a {
    border-bottom: 0;
  }

  #nav-s .sub-menu > li.current-menu-item > a {
    background: #fff;
    color: #333;
  }

}

/* ============================================================
   960px OVERWRITES
============================================================ */

@media screen and (max-width: 960px) {
  #header .header-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 0;
  }

  #header .header-contact-info {
    display: none !important;
  }

  #header .menu-toggle {
    display: block !important;
    flex: 0 0 42px;
  }

  /* Global Nav */
  #nav-s {
    display: none !important;
    border-top: none !important;
    border-bottom: none !important;
  }

  #header .mobile-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  #header .mobile-nav.active {
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-menu-list {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .mobile-menu-list > li {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }

  .mobile-menu-list > li > a {
    display: block;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 12px 0 24px;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    position: relative;
    text-align: center;
  }

  .mobile-menu-list > li > a::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 7px 7px;
    border-color: transparent transparent #1180bf;
  }

  .mobile-menu-list > li > a span:not(.nav-break) {
    display: block;
    font-size: 9px;
    color: #666;
    font-weight: normal;
    text-transform: uppercase;
    margin-top: 2px;
  }

  .mobile-menu-list > li > a:hover {
    background: #fafafa;
  }

  .mobile-menu-list > li.current-menu-item > a {
    background: #fff;
  }

  .mobile-menu-list > li.menu-item-has-children > a {
    width: max-content;
  }

  .mobile-menu-list > li.submenu-open > a {
    background: #fafafa;
    color: #333;
  }

  .mobile-menu-list > li.submenu-open {
    background: #fafafa;
  }

  .mobile-menu-list .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-menu-list > li.submenu-open > .sub-menu {
    display: block;
    max-height: 80vh;
  }

  .mobile-menu-list .sub-menu > li {
    width: 100%;
    border: 0;
  }

  .mobile-menu-list .sub-menu > li > a {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    background: #fff;
    padding: 1em;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 0;
    border-left: 0;
  }

  .mobile-menu-list .sub-menu > li > a:hover {
    background: #fafafa;
    color: #333;
  }

  .mobile-menu-list .sub-menu > li:last-child > a {
    border-bottom: 0;
  }

  .mobile-menu-list .sub-menu > li.current-menu-item > a {
    background: #fff;
    color: #333;
  }

  #nav-s ul.header-menu-list {
    flex-wrap: wrap !important;
    width: 100% !important;
  }

  #nav-s ul.header-menu-list > li {
    flex: 0 0 33.333% !important;
    border-left: 1px solid #e0e0e0 !important;
    border-bottom: none !important;
    padding: 0 8px !important;
  }

  #nav-s ul.header-menu-list > li:nth-child(3n+1) {
    border-left: none !important;
  }

  #nav-s ul.header-menu-list > li:nth-child(3n) {
    border-right: none !important;
  }

  #nav-s ul.header-menu-list > li > a {
    border-top: 1px solid #e0e0e0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    height: 100%;
  }

  #nav-s ul.header-menu-list > li:nth-child(n+4) > a {
    border-top: none !important;
  }

  #nav-s ul.header-menu-list > li > a span:not(.nav-break) {
    display: none !important;
  }

  #nav-s ul.header-menu-list .nav-break {
    display: block;
    line-height: 1.2;
  }

}

/* ============================================================
   767px OVERWRITES
============================================================ */

@media screen and (max-width: 767px) {
  /* Header */
  #header {
    height: auto !important;
    padding: 12px 0 !important;
  }

  .header-inner {
    height: auto !important;
    min-height: unset !important;
  }

  .header-left {
    max-width: unset;
  }

  .logo img {
    max-width: 300px;
  }

  .menu-toggle {
    position: absolute;
    bottom: 21px;
    right: 4%;
  }

  /* Global Nav */
  #nav-s ul.header-menu-list > li > a {
    font-size: 13px;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* Topics Banner */
  .greeting-doctor {
    top: -35px;
    right: -100px;
    width: 95px;
  }

}

/* ============================================================
   OSATO — Header timetable (text format) + reserve buttons
============================================================ */

.header-timetable {
  min-width: 220px !important;
}

.timetable-text-wrap {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.timetable-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: none;
  color: #1180bf;
  font-size: 14px !important;
  font-weight: bold !important;
  padding: 0 10px 0 0;
  border-right: 2px solid #1180bf;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.timetable-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.timetable-hours {
  font-size: 14px !important;
  font-weight: bold !important;
  color: #222 !important;
  margin: 0 0 3px !important;
  line-height: 1.4 !important;
}

.timetable-note {
  font-size: 11px !important;
  color: #555 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Header Reserve buttons */
.header-reserve-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.header-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9em;
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: -5px;
  transition: 0.2s;
}

.header-btn.btn-web-reserve {
  background: #1180bf;
}

.header-btn.btn-line-reserve {
  background: #06c755;
}

/* Tel row */
.header-tel-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.tel-phone-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  padding-bottom: 2px;
}

.tel-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tel-label-small {
  font-size: 11px;
  color: #1180bf !important;
  white-space: nowrap;
}

.header-tel-number {
  font-family: "Ryumin Pro", serif !important;
  font-size: 30px !important;
  font-weight: bold !important;
  color: #333 !important;
  text-decoration: none !important;
  line-height: 1.1;
  letter-spacing: 0.1em;
}
