/*
Theme Name: ATT Doctor
Theme URI: 
Author: ATT
Author URI: 
Description: 医師情報を表示するテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: att-doctor
*/

body {
  background-color: #ffffff;
  overflow-x: hidden;
}

/* 基本的なレスポンシブ指定は直接TailwindのユーティリティクラスでHTMLに記述 */
/* このスタイルシートには特殊な調整が必要なもののみ記述 */

.doctor-image {
  object-fit: cover;
  aspect-ratio: 1/1;
}

/* 画像サイズは直接HTMLでTailwindのクラスで指定 */
.before-after-image {
  object-fit: cover;
}
.time-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px; /* 小さい画面ではスクロールさせる */
}
.time-table th {
  background-color: #f5f5ee;
  padding: 4px 8px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
}
.time-table td {
  background-color: #f5f5ee;
  padding: 4px 8px;
  text-align: center;
  font-size: 12px;
}

@media (min-width: 640px) {
  .time-table th, .time-table td {
    padding: 8px;
    font-size: 14px;
  }
}
.case-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.case-grid {
  display: inline-flex;
  gap: 8px;
}
.case-item {
  width: 200px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .case-item {
    width: auto;
    flex-shrink: 1;
  }
  
  .case-scroll-container {
    overflow-x: visible;
  }
}
.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 14px;
}

@media (min-width: 640px) {
  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  font-size: 12px;
}
.qualification-list li {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}
.history-list li {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .qualification-list li, .history-list li {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* モーダル関連のスタイル */
.case-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-modal-content {
  background-color: white;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
  padding: 20px;
}

.case-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #00B8D4;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.case-modal-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-modal-img {
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
}

.hidden {
  display: none !important;
}

.modal-open {
  overflow: hidden;
}

/* 症例写真をクリック可能に見せるスタイル */
.case-modal-trigger {
  cursor: pointer;
  transition: opacity 0.2s;
}

.case-modal-trigger:hover {
  opacity: 0.8;
}

.hidden-case-images {
  display: none;
}
.map-container {
  height: 300px; /* スマホ表示での高さを大きく増加 */
  background-color: #f0f0f0;
  margin-top: 8px;
  position: relative;
  margin-bottom: 50px; /* マップとアクセス情報の間の余白も増加 */
}

@media (min-width: 640px) {
  .map-container {
    height: 350px; /* PC表示ではさらに高さを増加 */
    margin-bottom: 50px;
  }
}

/* iframeのある親コンテナの高さも調整 */
.map-iframe-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map-controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
}
.map-control-btn {
  background-color: white;
  border: 1px solid #ccc;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.access-list {
  margin-top: 25px; /* アクセス情報リストの上に余白を追加 */
  padding-top: 5px; /* パディングも追加 */
}

.access-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .access-list {
    margin-top: 15px; /* PC表示では余白を少なめに */
  }
  
  .access-list li {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* スマホ向けメニュー調整 */
@media (max-width: 640px) {
  .menu-icon {
    width: 20px;
    height: 20px;
  }
  
  .menu-item {
    margin: 0 2px;
  }
}

/* フッター最適化 */
footer {
  width: 100%;
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

footer .max-w-6xl {
  width: 100%;
  height: auto;
}

/* コピーライト部分の調整 */
.copyright-section {
  margin-bottom: 0;
  padding-bottom: 0 !important;
}

.copyright-section p {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* HTMLとbodyの余白調整 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* レスポンシブコンテナの調整 */
body > div:last-child {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* フッターを最下部に固定 */
body > div:last-child > footer {
  margin-top: auto;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* モバイル画面でのフッター最適化 */
@media (max-width: 768px) {
  footer {
    padding-top: 1.5rem;
    padding-bottom: 0; /* 下部の余白を削除 */
  }
  
  footer .grid {
    gap: 1.5rem;
    margin-bottom: 1rem;
  }
}

/* デスクトップ画面でのフッター最適化 */
@media (min-width: 769px) {
  footer {
    padding-top: 2rem;
    padding-bottom: 0; /* 下部の余白を削除 */
  }
  
  footer .grid {
    gap: 2rem;
    margin-bottom: 1.5rem;
  }
}
