@charset "UTF-8";
/* ==========================================================================
   components.css - 岩本町クリニック テンプレート 共通コンポーネント
   全ページ共通のUI部品（メガメニュー / ドロワー / パンくず / 文字サイズ切替）
   ========================================================================== */


/* ==========================================================================
   1. メガメニュー（PC: 診療科目ドロップダウン）
   ========================================================================== */
.mega-menu.is-open {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.mega-overlay.is-open {
  background: rgba(0,0,0,0.18) !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #444;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s ease;
  border-radius: 6px;
  margin: 0 -8px;
}
.mega-link:hover {
  background: #E8F8FC;
  color: #0090AD;
  padding-left: 20px;
}
.mega-link-arrow {
  color: #ccc;
  font-size: 16px;
  transition: transform 0.25s ease, color 0.25s ease;
}
.mega-link:hover .mega-link-arrow {
  color: #0090AD;
  transform: translateX(4px);
}
.mega-btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #0090AD;
  text-decoration: none;
  padding: 10px 28px;
  border: 1.5px solid #0090AD;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.mega-btn:hover {
  background: #0090AD;
  color: #fff;
}
.mega-btn:hover span {
  transform: translateX(4px);
}


/* ==========================================================================
   2. 全画面ドロワーメニュー（ハンバーガーメニュー展開時）
   ========================================================================== */
.drawer-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.23,1,0.32,1), visibility 0.5s;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.drawer-fullscreen.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer-inner {
  display: flex;
  width: 100%;
  min-height: 100%;
  position: relative;
}

/* --- ドロワー 左カラム（ロゴ・画像） --- */
.drawer-left {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.drawer-left-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 0.15s ease, transform 0.6s 0.15s ease;
}
.drawer-fullscreen.is-open .drawer-left-content {
  opacity: 1;
  transform: translateY(0);
}
.drawer-logo {
  text-align: center;
}

/* --- ドロワー 右カラム（ナビゲーション） --- */
.drawer-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.drawer-right-scroll {
  overflow-y: auto;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
}

/* --- ドロワー ナビリンク --- */
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.drawer-nav-link {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,46,85,0.08);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s;
}
.drawer-fullscreen.is-open .drawer-nav-link {
  opacity: 1;
  transform: translateX(0);
}
.drawer-nav-en {
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A3A4A;
  letter-spacing: 0.05em;
  line-height: 1.2;
  transition: color 0.3s;
}
.drawer-nav-ja {
  font-size: 12px;
  color: #00B4D8;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.drawer-nav-link:hover .drawer-nav-en {
  color: #00B4D8;
}

/* --- ドロワー内アコーディオン（診療科目 +/−） --- */
.drawer-acc {
  border-bottom: 1px solid rgba(26,46,85,0.08);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.drawer-fullscreen.is-open .drawer-acc {
  opacity: 1;
  transform: translateX(0);
}
.drawer-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.drawer-acc-btn-left {
  display: flex;
  flex-direction: column;
}
.drawer-acc-btn .drawer-nav-en {
  transition: color 0.3s;
}
.drawer-acc-btn:hover .drawer-nav-en {
  color: #00B4D8;
}
.drawer-acc-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.drawer-acc-icon span {
  display: block;
  position: absolute;
  background: #1A3A4A;
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.3s;
}
.drawer-acc-icon span:first-child {
  width: 16px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.drawer-acc-icon span:last-child {
  width: 1.5px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
.drawer-acc.is-open .drawer-acc-icon span:last-child {
  transform: translate(-50%,-50%) rotate(90deg);
  opacity: 0;
}
.drawer-acc-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1), opacity 0.35s ease;
  padding-left: 4px;
}
.drawer-acc.is-open .drawer-acc-body {
  opacity: 1;
}
.drawer-acc-body a {
  display: block;
  padding: 10px 0 10px 12px;
  font-size: 14px;
  color: #4A7A8A;
  text-decoration: none;
  border-left: 2px solid #D4F1F9;
  transition: color 0.2s, border-color 0.2s;
}
.drawer-acc-body a:hover {
  color: #1A3A4A;
  border-left-color: #00B4D8;
}

/* --- ドロワー CTAボタン --- */
.drawer-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.drawer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.drawer-cta-tel {
  border: 1.5px solid #00B4D8;
  color: #1A3A4A;
  background: transparent;
}
.drawer-cta-tel:hover {
  background: #E8F8FC;
}
.drawer-cta-reserve {
  background: #0090AD;
  color: #fff;
  border: 1.5px solid #0090AD;
}
.drawer-cta-reserve:hover {
  opacity: 0.85;
}

/* --- ドロワー 閉じるボタン（×） --- */
.drawer-close {
  position: absolute;
  top: 30px;
  right: 36px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10;
}
.drawer-close span {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 32px;
  background: #1A3A4A;
  border-radius: 1px;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.drawer-close span:first-child {
  transform: translate(-50%,-50%) rotate(45deg);
}
.drawer-close span:last-child {
  transform: translate(-50%,-50%) rotate(-45deg);
}
.drawer-close:hover span {
  background: #00B4D8;
}

/* --- ドロワー レスポンシブ（SP） --- */
@media (max-width: 767px) {
  .drawer-fullscreen {
    overflow-y: auto;
  }
  .drawer-inner {
    flex-direction: column;
    min-height: auto;
  }
  .drawer-left {
    display: none;
  }
  .drawer-right {
    flex: none;
    align-items: flex-start;
    padding: 70px 28px 40px;
  }
  .drawer-right-scroll {
    max-height: none;
    overflow: visible;
  }
  .drawer-nav-en {
    font-size: 20px;
  }
  .drawer-nav-link {
    padding: 12px 0;
  }
  .drawer-acc-btn {
    padding: 13px 0;
  }
  .drawer-cta {
    flex-direction: column;
  }
  .drawer-close {
    top: 20px;
    right: 20px;
  }
}


/* ==========================================================================
   3. パンくずリスト + 文字サイズ切替（下層ページ共通）
   ========================================================================== */
.breadcrumb-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 12px 30px 12px 30px;
  font-size: 13px;
  color: #4A7A8A;
  text-align: left;
  gap: 12px;
  background: #ffffff;
}
.breadcrumb-bar nav a {
  color: #4A7A8A;
  text-decoration: none;
}
.breadcrumb-bar nav a:hover {
  text-decoration: underline;
}
.font-size-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4A7A8A;
}
.font-size-switcher button {
  background: none;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 2px 10px;
  cursor: pointer;
  font-size: inherit;
  color: #333;
  transition: background 0.2s, color 0.2s;
}
.font-size-switcher button:hover {
  background: #0090AD;
  color: #fff;
}

@media (max-width: 768px) {
  .breadcrumb-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 8px 15px !important;
    gap: 16px;
  }
}
