/* 高坂皮膚科 専用デザイン（元サイトの見た目を再現するための追加スタイル） */

:root {
  --takasaka-navy: #1e50a2;
  --takasaka-orange: #f39800;
  --takasaka-text: #333333;
  --takasaka-bg-gray: #f4f4f4;
}

body {
  color: var(--takasaka-text);
}

/* ---------- ヘッダー ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  height: 75px;
  padding: 0 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.top .logo {
  flex: 0 0 auto;
  line-height: 0;
  margin-right: 0;
}

.top .logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.top .logo:not(:has(img)) {
  line-height: 75px;
}

.clinic-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  order: 4;
  margin-left: auto;
}

.clinic-tel img {
  width: 33px;
  height: auto;
}

.clinic-tel__number {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.clinic-tel__hours {
  display: block;
  font-size: 12px;
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .clinic-tel__hours {
    display: none;
  }
}

/* ---------- ナビゲーション ---------- */

.navbar .navbar__menu li a {
  font-weight: bold;
  font-size: 16px;
  height: 75px;
  line-height: 75px;
  padding: 0 20px;
}

.navbar .navbar__menu li a:hover {
  background-color: #ddd;
}

/* ---------- 固定ページ：見出し画像 ---------- */

.page--access .hero--noimage,
.page--doctors .hero--noimage {
  height: 275px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
}

.page--access .hero--noimage::before,
.page--doctors .hero--noimage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #000;
  opacity: 0.5;
}

.page--access .hero--noimage {
  background-image: url("../img/header_access.jpg");
}

.page--doctors .hero--noimage {
  background-image: url("../img/header_doctors.jpg");
}

.page--access .hero--noimage .hero__content,
.page--doctors .hero--noimage .hero__content {
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: left;
  padding-left: 80px;
}

.page--access .hero--noimage h1,
.page--doctors .hero--noimage h1 {
  color: #fff;
  font-size: 44px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 834px) {
  .page--access .hero--noimage .hero__content,
  .page--doctors .hero--noimage .hero__content {
    text-align: center;
    padding-left: 0;
  }

  .page--access .hero--noimage::before,
  .page--doctors .hero--noimage::before {
    width: 100%;
  }
}

.page--access .entry-wrapper,
.page--doctors .entry-wrapper {
  max-width: var(--page-width);
}

/* ---------- 医師紹介ページ ---------- */

.section-doctors {
  padding: 60px 0;
  background: var(--takasaka-bg-gray);
  border-bottom: 1px solid #eee;
}

.section-doctors:last-child {
  border-bottom: 0;
}

.section-doctors .doctor {
  text-align: center;
}

.section-doctors .doctor .photo {
  display: inline-block;
  width: 240px;
  margin: 0 0 20px;
}

.section-doctors .doctor .profile {
  max-width: 700px;
  margin: 0 auto;
}

.section-doctors .doctor .profile h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.section-doctors .doctor .profile .txt01 {
  font-size: 20px;
  margin-bottom: 30px;
}

.section-doctors .doctor .profile h3 {
  font-size: 40px;
  margin-bottom: 25px;
}

.section-doctors .doctor .profile ul {
  position: relative;
  padding: 0;
  margin: 0;
  text-align: left;
}

.section-doctors .doctor .profile ul::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: #999;
}

.section-doctors .doctor .profile ul li {
  list-style: none;
}

.section-doctors .doctor .profile li.year {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  background: var(--takasaka-bg-gray);
  position: relative;
  z-index: 1;
  margin: 1em 0 0.5em;
  padding: 2px 0;
}

.section-doctors .doctor .profile li.text {
  position: relative;
  width: 48%;
  font-size: 18px;
  line-height: 1.6;
}

.section-doctors .doctor .profile li.text.left {
  text-align: right;
  padding-right: 20px;
}

.section-doctors .doctor .profile li.text.right {
  margin-left: 52%;
  text-align: left;
  padding-left: 20px;
}

@media screen and (max-width: 640px) {
  .section-doctors .doctor .profile ul::after {
    display: none;
  }
  .section-doctors .doctor .profile li.text.left,
  .section-doctors .doctor .profile li.text.right {
    width: 100%;
    margin-left: 0;
    text-align: center;
    padding: 0;
  }
}

/* ---------- アクセスページ ---------- */

.section-access {
  padding: 60px 0;
  background: var(--takasaka-bg-gray);
}

.section-access .wrap01 {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
}

.section-access .wrap01 > div {
  flex: 1;
  text-align: center;
}

.section-access .icon {
  width: 40px;
  margin: 0 auto 10px;
}

.section-access h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.section-access .wrap02 h2 {
  font-size: 18px;
}

.section-access .wrap02 p {
  font-size: 14px;
}

.map-wrap {
  overflow: hidden;
  margin-bottom: 20px;
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.section-access a.btn01,
.section-access a.btn02 {
  display: flex;
  align-items: center;
  justify-content: center;
  float: left;
  width: 50%;
  height: 70px;
  box-sizing: border-box;
  color: #fff !important;
  text-decoration: none !important;
}

.section-access a.btn01 {
  background: #333333;
}

.section-access a.btn02 {
  background: #161616;
}

.section-access a.btn01:hover,
.section-access a.btn02:hover {
  opacity: 0.85;
}

.section-access .wrap01 .l::after {
  content: "";
  display: block;
  clear: both;
}

.section-access .qr img {
  width: 140px;
}

.section-access .wrap02 {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.section-access .wrap02 > div {
  flex: 1;
}

@media screen and (max-width: 640px) {
  .section-access .wrap01,
  .section-access .wrap02 {
    flex-direction: column;
  }
}

/* ---------- フッター ---------- */

.footer {
  background: #353535;
  border-top: 0;
  color: #fff;
  max-width: none;
}

.footer__copyright {
  text-align: center;
  font-size: 13px;
  padding: 20px 0;
  color: #fff;
}

/* ---------- トップページ ---------- */

.page--gao-ban-pi-fu-ke .hero {
  display: none;
}

.page--gao-ban-pi-fu-ke .entry-wrapper {
  max-width: none;
  padding: 0;
  margin-top: 0;
}

.top-slide {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3000 / 900;
}

.top-slide__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

.top-slide__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-slide__img.is-active {
  transform: translateX(0);
}

.top-slide__img.is-prev {
  transform: translateX(-100%);
}

.top-slide__pager {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.top-slide__pager button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.top-slide__pager button.is-active {
  background: #fff;
}

@media screen and (max-width: 834px) {
  .top-slide {
    aspect-ratio: auto;
    height: 480px;
  }
}

@media screen and (max-width: 640px) {
  .top-slide {
    height: 315px;
  }
}

.page--gao-ban-pi-fu-ke section {
  padding: 70px 20px;
}
.page--gao-ban-pi-fu-ke section.section-bg-g {
  background: var(--takasaka-bg-gray);
}
.page--gao-ban-pi-fu-ke section > h2 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 40px;
}

.doctor-wrap {
  display: flex;
  gap: 40px;
  max-width: var(--page-width);
  margin: 0 auto;
}
.doctor-wrap .doctor {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}
.doctor-wrap .doctor img {
  width: 45%;
}
.doctor-wrap .txt01 { font-size: 18px; }
.doctor-wrap h3 { font-size: 30px; margin: 5px 0; }

.news-notice {
  max-width: var(--page-width);
  margin: 0 auto 30px;
  padding: 20px;
  border: 1px solid #e0a0a0;
  background: #fff6f6;
}
.news-notice h3 { color: #c00; margin-bottom: 10px; }

.news-list {
  max-width: var(--page-width);
  margin: 0 auto;
}
.news-item {
  padding: 15px 0;
  border-bottom: 1px solid #ccc;
}
.news-item .date { margin: 0; font-size: 12px; color: #888; }
.news-item h3 { margin: 5px 0; font-size: 20px; font-weight: normal; }
.news-item .desc { margin: 0; font-size: 14px; color: #555; line-height: 1.6; }

.business-wrap {
  display: flex;
  gap: 40px;
  max-width: var(--page-width);
  margin: 0 auto;
}
.business-wrap .l { flex: 1; overflow-x: auto; }
.business-wrap .r { flex: 1; }
.business-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.business-wrap thead tr { background: #d5edf5; }
.business-wrap th, .business-wrap td { border: 1px solid #ccc; padding: 10px; text-align: center; }
.business-wrap tbody th { background: #666; color: #fff; font-weight: normal; }
.business-wrap .r h3 { font-size: 16px; margin: 15px 0 5px; }
.business-wrap .r ul { padding-left: 1.2em; }

.page--gao-ban-pi-fu-ke section:has(.business-wrap) {
  padding-bottom: 220px;
}

.page--gao-ban-pi-fu-ke section:has(.access-wrap) {
  padding-top: 220px;
}

.top-contact {
  background: none;
  margin-top: -150px;
  position: relative;
  z-index: 2;
}
.contact-wrap {
  display: flex;
  max-width: var(--page-width);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 8px #ccc;
}
.contact-wrap .l {
  width: 350px;
  background: #eee;
  padding: 60px 20px;
}
.contact-wrap .l h2,
.contact-wrap .r h2 {
  font-size: 18px;
  text-align: left;
  margin: 0 0 1em;
}

.contact-wrap .r h2 {
  color: #fff;
}

.contact-wrap .tel p {
  font-size: 30px;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-wrap .tel img { width: 33px; }
.contact-wrap .tel span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  white-space: nowrap;
}
.contact-wrap .r {
  flex: 1;
  background: #3b3b3b;
  color: #fff;
  padding: 40px 20px;
}
.contact-wrap .r ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 10px 0 0;
}
.contact-wrap .r li {
  width: 48%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-wrap .r li img { width: 25px; }
.contact-wrap .r p { margin: 0; font-size: 17px; }

.access-wrap {
  display: flex;
  gap: 40px;
  max-width: var(--page-width);
  margin: 0 auto;
}
.access-wrap .r { flex: 1; }
.access-wrap .l { flex: 1; }
.access-wrap table { width: 100%; font-size: 16px; }
.access-wrap th { text-align: left; white-space: nowrap; padding: 10px; vertical-align: top; width: 6em; }
.access-wrap td { padding: 10px; }
.access-wrap img { width: 100%; height: auto; }

@media screen and (max-width: 768px) {
  .doctor-wrap,
  .business-wrap,
  .access-wrap,
  .contact-wrap {
    flex-direction: column;
  }
  .contact-wrap .l { width: 100%; }
}
