@charset "utf-8";

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  background: #fff;
}

a { color: #45AAB8; text-decoration: none; transition: .5s; }
a:hover { color: #666; }
img { max-width: 100%; height: auto; border: 0; vertical-align: top; }
ul { margin: 0; padding: 0; list-style: none; }

.wrapper { max-width: 960px; margin: 0 auto; padding: 30px 10px; }

/* ヘッダー */
.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 25px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.logo { margin: 0; }
.nav { text-align: right; }
.tel { margin-bottom: 12px; }
.tel span { margin-left: 15px; font-size: 24px; font-weight: bold; color: #45aab8; }
.nav ul { display: flex; justify-content: flex-end; }
.nav li a {
  display: block;
  padding: 5px 15px;
  font-size: 16px;
  letter-spacing: .05em;
  color: #332828;
  border-left: 1px solid #eee;
}
.nav li:last-child a { border-right: 1px solid #eee; }
.nav li a:hover, .nav li a.current { color: #867888; background: #ddd; }

/* スライドショー */
.slideshow {
  position: relative;
  aspect-ratio: 960 / 350;
  margin-bottom: 30px;
  overflow: hidden;
}
.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s;
}
.slideshow img.active { opacity: 1; }

/* ごあいさつ・診療案内 */
.intro { display: flex; gap: 30px; }
.intro section { flex: 1; }
.title {
  margin: 0 0 10px;
  padding-bottom: 3px;
  font-size: 14px;
  letter-spacing: .05em;
  border-bottom: 1px solid #ccc;
}
.intro p { margin: 0; }

/* フォトギャラリー */
.gallery-title {
  margin: 60px 0 20px;
  padding-bottom: 10px;
  font-size: 14px;
  letter-spacing: .05em;
  color: #999;
  border-bottom: 1px solid #ccc;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery a:hover img { opacity: .5; }
.gallery img { transition: opacity .3s; }
.gallery p { margin: 10px 0 0; font-size: 13px; text-align: center; }

/* 画像ポップアップ */
.lightbox {
  max-width: 96vw;
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; cursor: zoom-out; }
.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  padding: 0 8px;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

/* 診療時間・アクセス */
.hours th, .hours td { padding: 6px 10px; border: 1px solid #ddd; text-align: center; }
.hours th { background: #f6f6f6; font-weight: normal; }
.access p { margin: 10px 0 0; }
.access .info { margin-top: 20px; }
.access h4 { margin: 25px 0 10px; font-size: 14px; color: #45aab8; }
.map { width: 100%; height: 450px; border: 0; }

.parking { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.parking figure { margin: 0; }
.parking figcaption { margin-top: 6px; font-size: 13px; }
.parking a:hover img { opacity: .5; }
.parking img { width: 100%; height: auto; transition: opacity .3s; }

/* フッター */
.footer { margin-top: 30px; padding-top: 25px; border-top: 1px solid #eee; }
.copyright { font-size: 11px; text-align: center; color: #999; }

/* 下層ページ */
.pagetitle {
  margin: 0 0 30px;
  padding-bottom: 10px;
  font-size: 20px;
  border-bottom: 1px solid #ccc;
}
.page h3 {
  margin: 40px 0 15px;
  padding: 0 0 3px 10px;
  font-size: 16px;
  border-left: 4px solid #45AAB8;
  border-bottom: 1px solid #eee;
}
.page h4 { margin: 25px 0 5px; font-size: 14px; color: #45aab8; }
.page p { margin: 0 0 1em; }
.page img.side { float: left; margin: 0 20px 15px 0; }
.clear { clear: both; }
.item { display: flow-root; margin-bottom: 10px; }
.item h4:first-child { margin-top: 0; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.photos img { width: 300px; max-width: 100%; }
table { border-collapse: collapse; }
.info { width: 100%; }
.info > tbody > tr > th, .info > tbody > tr > td { padding: 10px; border: 1px solid #ddd; vertical-align: top; }
.info > tbody > tr > th { width: 110px; background: #f6f6f6; text-align: left; font-weight: normal; }
.about-map { height: 600px; }
.bigtel { font-size: 32px; color: #808080; }

@media (max-width: 720px) {
  .header { justify-content: center; text-align: center; }
  .nav { text-align: center; }
  .nav { width: 100%; }
  .nav ul { flex-direction: column; gap: 1px; }
  .nav li a, .nav li:last-child a { padding: 10px; text-align: center; background: #f6f6f6; border: 0; }
  .tel span { display: block; margin: 0; }
  .intro { flex-direction: column; gap: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .page img.side { float: none; display: block; margin: 0 0 15px; }
  .info > tbody > tr > th, .info > tbody > tr > td { display: block; width: auto; }
  .hours { font-size: 12px; }
  .map { height: 400px; }
}

.tel a, .bigtel a { color: inherit; }
