/* ===== 基本設定 ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Meiryo", sans-serif;
  color: #2c3e50;
  background-color: #ffffff;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background-color: #7fb5da;
}

.section-title--center {
  text-align: center;
}

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== 1. ヒーロー ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(rgba(20, 40, 60, 0.45), rgba(20, 40, 60, 0.45)),
    url("images/image_e5e7f0b2.jpg");
  background-size: cover;
  background-position: center;
  padding: 2rem 1.5rem;
}

.hero__inner {
  max-width: 720px;
  text-align: center;
  color: #ffffff;
  background-color: rgba(20, 40, 60, 0.35);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  backdrop-filter: blur(2px);
}

.hero__name {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero__catch {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__sub {
  font-size: 1rem;
  line-height: 1.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ===== 共通セクション幅 ===== */
section {
  padding: 4rem 1.5rem;
}

.about__inner,
.interior__inner,
.cosmetic__inner,
.reception__inner,
.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
}

/* ===== 2. 当クリニックについて ===== */
.about {
  background-color: #ffffff;
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.about__image {
  flex: 1 1 45%;
  border-radius: 12px;
  overflow: hidden;
}

.about__image img {
  border-radius: 12px;
}

.about__text {
  flex: 1 1 55%;
}

.about__text p {
  margin-bottom: 1rem;
}

/* ===== 3. 院内 ===== */
.interior {
  background-color: #eaf4fb;
}

.interior__cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 240px;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover img {
  transform: scale(1.05);
}

/* ===== 4. 審美歯科 ===== */
.cosmetic {
  background-color: #ffffff;
  text-align: center;
}

.cosmetic__image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cosmetic__text {
  max-width: 640px;
  margin: 0 auto;
}

/* ===== 5. 受付 ===== */
.reception {
  background-color: #eaf4fb;
}

.reception__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.reception__image {
  flex: 1 1 45%;
  border-radius: 12px;
  overflow: hidden;
}

.reception__image img {
  border-radius: 12px;
}

.reception__text {
  flex: 1 1 55%;
}

.reception__info {
  margin-top: 1rem;
}

.reception__row {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #cfe4f2;
}

.reception__row dt {
  flex: 0 0 100px;
  font-weight: 700;
  color: #4a90c2;
}

.reception__row dd {
  flex: 1;
}

.reception__inner--hours {
  display: block;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #cfe4f2;
}

.hours {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hours__title {
  text-align: left;
}

.hours__legend {
  justify-content: flex-start;
}

.hours__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.2rem;
}

.hours__scroll {
  overflow-x: auto;
}

.hours__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  text-align: center;
}

.hours__table th,
.hours__table td {
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid #dbe9f2;
  font-size: 0.9rem;
}

.hours__table thead th {
  color: #4a90c2;
  font-weight: 700;
}

.hours__table tbody th {
  color: #2c3e50;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.hours__legend {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #5a6b78;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hours__legend .mark {
  margin-left: 0.6rem;
}

.hours__legend .mark:first-of-type {
  margin-left: 0;
}

.mark {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.mark--open {
  border: 3px solid #4a90c2;
  border-radius: 50%;
}

.mark--close::before,
.mark--close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 3px;
  background-color: #b3bfc9;
}

.mark--close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mark--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ===== 6. フッター ===== */
.footer {
  background-color: #2c3e50;
  color: #ffffff;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 3rem 1.5rem;
}

.footer__image {
  flex: 0 0 360px;
  border-radius: 12px;
  overflow: hidden;
}

.footer__content {
  flex: 1;
}

.footer__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer__info {
  font-size: 0.9rem;
  color: #d7e4ee;
  margin-bottom: 0.3rem;
}

.footer__copyright {
  font-size: 0.8rem;
  color: #9fb3c2;
  margin-top: 1rem;
}

/* ===== 大画面(PC)向けの調整 ===== */
@media (min-width: 1200px) {
  section {
    padding: 5.5rem 2rem;
  }

  .hero {
    min-height: 78vh;
  }

  .hero__catch {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 1.9rem;
  }
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }

  .hero__catch {
    font-size: 1.6rem;
  }

  section {
    padding: 3rem 1.2rem;
  }

  .about__inner,
  .reception__inner {
    flex-direction: column;
  }

  .about__image,
  .reception__image {
    width: 100%;
  }

  .interior__cards {
    flex-direction: column;
  }

  .card {
    flex: 1 1 100%;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
  }
}
