@charset "UTF-8";
/* =========================================================
   top.css … TOPページ（front-page.php）
     0. 共通（見出し・幅・ボタンの置き場）
     1. メイン画像（スライド）＋診療時間
     2. 診療日カレンダー・ニュース
     3. 導入（39年の実績）
     4. ご挨拶
     5. お悩みタイル・診療メニュータイル
     6. 選ばれる理由
     7. 設備・急患対応
     8. 診療案内（ピックアップ）
     9. 治療の流れ
    10. 動画・求人バナー
   画面幅の区切り：スマホ ～767px ／ タブレット 768～1024px ／ PC 1025px～
   ========================================================= */

.top-page { overflow-x: clip; }


/* ---------------------------------------------------------
   0. 共通
     top-heading          … 歯のアイコン付きの大見出し（中央）  --left 左寄せ ／ --white 白文字
     top-inner            … 中身の幅（最大 1170px）           --narrow 908px
     top-btn              … ボタンの置き場（中央）            --left 左寄せ・縦に並べる
   --------------------------------------------------------- */
.top-heading {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 50px; font-size: 45px; line-height: 1.3; letter-spacing: .12em;
}
.top-heading::before { content: ""; flex: 0 0 auto; width: 44px; height: 46px; background: url("../images/common/icon-heading.webp") no-repeat center / contain; }
.top-heading--white { color: #fff; }
.top-heading--white::before { filter: brightness(0) invert(1); }

.top-inner { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

.top-btn { margin: 24px 0 0; text-align: center; }
.top-btn--left { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }

@media screen and (max-width: 1199px) {
  .top-inner { padding: 0 24px; }
}
@media screen and (max-width: 767px) {
  .top-heading { gap: 8px; margin-bottom: 30px; font-size: 25px; letter-spacing: .06em; }
  .top-heading::before { width: 30px; height: 32px; }
  .top-inner { padding: 0 18px; }
  .top-btn--left { align-items: center; }
}


/* ---------------------------------------------------------
   1. メイン画像（スライド）＋診療時間
   --------------------------------------------------------- */
.top-hero { position: relative; margin-bottom: clamp(40px, 6.6vw, 100px); padding: 0 clamp(10px, 2.56vw, 50px); }
.top-hero__frame { position: relative; height: clamp(460px, 59.3vw, 1000px); border-radius: clamp(30px, 4.4vw, 70px); overflow: hidden; }
.top-hero__slides { position: absolute; inset: 0; }
.top-hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translateX(100%); transition: transform 1s ease;
}
.top-hero__slide.is-active { transform: translateX(0); }
.top-hero__slide.is-prev { transform: translateX(-100%); }
.top-hero__slide:not(.is-active):not(.is-prev) { transition: none; }

.top-hero__catch { position: absolute; top: 42.8%; right: 7.4vw; font-weight: 700; color: #fff; text-align: center; text-shadow: 0 0 10px rgba(0, 0, 0, .25); }
.top-hero__catch p { line-height: 1.3; }
.top-hero__catch-1 { font-size: clamp(36px, 5.5vw, 96px); letter-spacing: .1em; }
.top-hero__catch-2 { font-size: clamp(32px, 4.76vw, 84px); letter-spacing: .06em; }
.top-hero__catch-3 { margin-top: 10px; font-size: clamp(15px, 1.9vw, 32px); letter-spacing: .14em; }

.top-hero__hours {
  position: absolute; left: 0; bottom: -31px;
  width: clamp(420px, 42.5vw, 640px); padding: 12px 18px 10px 34px;
  border-radius: 0 30px 30px 0; background: rgba(255, 255, 255, .88);
}
.top-hero__hours .hours__table { font-size: clamp(13px, 1.1vw, 16px); }
.top-hero__hours .hours__table th, .top-hero__hours .hours__table td { padding: 5px 3px; }
.top-hero__hours .hours__note { margin-top: 4px; font-size: clamp(11px, .95vw, 14px); }

@media screen and (max-width: 767px) {
  .top-hero { margin-bottom: 40px; padding: 0; }
  .top-hero__frame { height: 520px; border-radius: 0 0 50px 0; }
  .top-hero__catch { top: 190px; left: 0; right: 0; }
  .top-hero__catch-1 { font-size: 46px; }
  .top-hero__catch-2 { font-size: 40px; }
  .top-hero__catch-3 { font-size: 16px; }
  .top-hero__hours { position: relative; bottom: auto; width: auto; margin: -40px 10px 0; padding: 14px; border-radius: 20px; }
  .top-hero__hours .hours__table { font-size: 12px; }
}


/* ---------------------------------------------------------
   2. 診療日カレンダー・ニュース
   --------------------------------------------------------- */
.top-info { padding: 120px 0 100px; background: var(--color-light); }
.top-info__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1150px; margin: 0 auto; padding: 0 15px; }
.top-info__heading {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 26px; padding-bottom: 24px;
  background: url("../images/common/line-white.webp") no-repeat left bottom / 100% auto;
  font-size: clamp(22px, 2.56vw, 35px); line-height: 1.3; letter-spacing: .1em; color: #fff;
}
.top-info__heading::before {
  content: ""; flex: 0 0 auto; width: clamp(30px, 3.2vw, 44px); height: clamp(32px, 3.4vw, 46px);
  background: url("../images/common/icon-heading.webp") no-repeat center / contain; filter: brightness(0) invert(1);
}
.top-info__calendar { padding: 16px 15px 20px; border-radius: 10px; background: #fff; }

/* ニュース */
.top-news { display: flex; flex-direction: column; gap: 14px; }
.top-news__item { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 12px 15px 14px; border-radius: 10px; background: #fff; }
.top-news__title { align-self: flex-start; font-weight: 600; font-size: 17px; letter-spacing: .08em; }
.top-news__more {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 40px; padding: 0 12px 0 18px; border-radius: 100px;
  background: #fff; box-shadow: 0 0 0 2px var(--color-primary) inset;
  font-family: var(--font-round); font-size: 19px; line-height: 1; letter-spacing: .15em; color: var(--color-primary);
}
.top-news__more i { margin-left: 4px; }

/* カレンダー（プラグイン XO Event Calendar の表示を整える）
   ※ .month-dayname-space / .month-event-space は行の高さを作るので消さないこと */
.top-info__calendar .xo-event-calendar { font-family: var(--font-base); font-size: 14px; }
.top-info__calendar .xo-event-calendar table.xo-month { width: 100%; margin: 0 0 8px; border: 1px solid #ccc; border-right-width: 0; border-collapse: collapse; }
.top-info__calendar .xo-event-calendar table.xo-month td, .top-info__calendar .xo-event-calendar table.xo-month th { padding: 0; border: 1px solid #ccc; background-color: #fff; }
.top-info__calendar .xo-event-calendar table.xo-month .month-header { display: flex; align-items: center; justify-content: center; margin: 0 0 6px; }
.top-info__calendar .xo-event-calendar table.xo-month .month-header > span { flex-grow: 1; font-size: 14px; text-align: center; }
.top-info__calendar .xo-event-calendar table.xo-month button { width: 38px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.top-info__calendar .xo-event-calendar table.xo-month button span.nav-prev,
.top-info__calendar .xo-event-calendar table.xo-month button span.nav-next { display: inline-block; width: 11px; height: 11px; font-size: 0; transform: rotate(45deg); }
.top-info__calendar .xo-event-calendar table.xo-month button span.nav-prev { border-bottom: 2px solid #333; border-left: 2px solid #333; }
.top-info__calendar .xo-event-calendar table.xo-month button span.nav-next { border-top: 2px solid #333; border-right: 2px solid #333; }
.top-info__calendar .xo-event-calendar table.xo-month > thead th { padding: 2px 0; border-width: 0 1px 0 0; font-weight: 700; font-size: 14px; color: #333; text-align: center; }
.top-info__calendar .xo-event-calendar table.xo-month > thead th.saturday { color: #00d; }
.top-info__calendar .xo-event-calendar table.xo-month > thead th.sunday { color: #d00; }
.top-info__calendar .xo-event-calendar table.xo-month .month-week { position: relative; width: 100%; padding: 0; border: 0; overflow: hidden; }
.top-info__calendar .xo-event-calendar table.xo-month .month-week table { width: 100%; margin: 0; padding: 0; border: 0; border-collapse: collapse; table-layout: fixed; }
.top-info__calendar .xo-event-calendar table.xo-month .month-dayname { position: absolute; inset: 0; border-width: 1px 0 0 1px; }
.top-info__calendar .xo-event-calendar table.xo-month .month-dayname td { padding: 0; border-width: 1px 1px 0 0; }
.top-info__calendar .xo-event-calendar table.xo-month .month-dayname td div { height: 1000px; padding: 4px 6px; font-size: 14px; line-height: 1.2; text-align: right; }
.top-info__calendar .xo-event-calendar table.xo-month .month-dayname td div.other-month { opacity: .5; }
.top-info__calendar .xo-event-calendar table.xo-month .month-dayname td div.today { font-weight: 700; color: #00d; }
.top-info__calendar .xo-event-calendar table.xo-month .month-dayname-space { position: relative; height: 1.5em; }
.top-info__calendar .xo-event-calendar table.xo-month .month-event-space { position: relative; height: 26px; background: transparent; }
.top-info__calendar .xo-event-calendar table.xo-month .month-event-space td { border-width: 0 1px 0 0; background: transparent; }
.top-info__calendar .xo-event-calendar .holiday-titles { margin-top: 10px; font-size: 14px; }
.top-info__calendar .xo-event-calendar .holiday-title { display: flex; align-items: center; gap: 6px; margin: 0; line-height: 1.6; }
.top-info__calendar .xo-event-calendar .holiday-title span { display: inline-block; width: 16px; height: 16px; border: 1px solid #ccc; }
.top-info__calendar .xo-event-calendar .loading-animation { display: none; }

@media screen and (max-width: 1199px) {
  .top-info__inner { gap: 24px; padding: 0 24px; }
}
@media screen and (max-width: 767px) {
  .top-info { padding: 60px 0; }
  .top-info__inner { grid-template-columns: 1fr; gap: 50px; padding: 0 15px; }
  .top-info__heading { font-size: 26px; }
  .top-info__heading::before { width: 30px; height: 32px; }
}


/* ---------------------------------------------------------
   3. 導入（39年の実績）
   --------------------------------------------------------- */
.top-intro { padding: 112px 0 50px; }
.top-intro__heading { margin: 0 0 70px; font-size: 41px; line-height: 1.3; letter-spacing: .13em; color: #000; text-align: center; }
.top-intro__body { position: relative; width: calc(100% - 48px); max-width: 1065px; min-height: 820px; margin: 0 auto; }
.top-intro__img { display: block; width: 100%; height: auto; }
.top-intro__text { position: absolute; top: 487px; left: 600px; width: 437px; }
.top-intro__text p { font-size: 17px; line-height: 1.7; letter-spacing: .05em; }
.top-intro__text .top-btn { margin-top: 10px; }

@media screen and (max-width: 1199px) {
  .top-intro__body { min-height: 0; }
  .top-intro__text { position: static; width: auto; max-width: 640px; margin: 30px auto 0; }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .top-intro__heading { font-size: clamp(26px, 3.6vw, 41px); }
}
@media screen and (max-width: 767px) {
  .top-intro { padding: 60px 15px 30px; }
  .top-intro__heading { margin-bottom: 30px; font-size: 21px; letter-spacing: .06em; }
  .top-intro__body { width: 100%; }
  .top-intro__text p { font-size: 15px; }
}


/* ---------------------------------------------------------
   4. ご挨拶
   --------------------------------------------------------- */
.top-greeting { position: relative; padding: 130px 24px; overflow: hidden; }
.top-greeting__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.top-greeting__card {
  position: relative; display: grid; grid-template-columns: 283px 1fr; gap: 24px; align-items: end;
  max-width: 1170px; margin: 0 auto; padding: 0 30px 34px; border-radius: 10px; background: rgba(255, 255, 255, .92);
}
.top-greeting__photo { display: block; width: 283px; height: auto; margin-top: -110px; }
.top-greeting__text { padding-top: 40px; }
.top-greeting__text p { font-size: 17px; line-height: 1.7; }
.top-greeting__text .top-btn { margin-top: 16px; }
.top-greeting__heading {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid rgba(61, 170, 244, .75);
  font-size: 22px; line-height: 1.3; letter-spacing: .09em;
}
.top-greeting__heading::before { content: ""; flex: 0 0 auto; width: 40px; height: 42px; background: url("../images/common/icon-heading.webp") no-repeat center / contain; }

@media screen and (max-width: 1199px) {
  .top-greeting__card { padding: 0 24px 30px; }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .top-greeting__card { grid-template-columns: 220px 1fr; }
  .top-greeting__photo { width: 220px; }
}
@media screen and (max-width: 767px) {
  .top-greeting { padding: 120px 10px 40px; }
  .top-greeting__card { grid-template-columns: 1fr; justify-items: center; padding: 0 16px 24px; }
  .top-greeting__photo { width: 220px; }
  .top-greeting__text { padding-top: 0; }
  .top-greeting__text p { font-size: 15px; }
  .top-greeting__heading { font-size: 20px; }
}


/* ---------------------------------------------------------
   5. お悩みタイル・診療メニュータイル（3×3）
   --------------------------------------------------------- */
.top-worries { padding: 127px 24px 75px; }
.top-worries__heading { margin: 0 0 60px; font-size: 45px; line-height: 1.3; letter-spacing: 0; color: #000; text-align: center; }

.top-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 auto; }
.top-tiles img { display: block; width: 100%; height: auto; border-radius: 10px; transition: transform .2s; }
.top-tiles a:hover img { transform: translateY(-3px); }
.top-tiles--worries {
    max-width: auto;
    width: 60%;
}
.top-tiles--worries img { aspect-ratio: 1 / 1; object-fit: cover; }
.top-tiles--menu { max-width: 866px; margin-top: 60px; gap: 16px; }
.top-tiles--menu img { box-shadow: 0 0 6px rgba(0, 0, 0, .08); }

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .top-worries__heading { font-size: clamp(26px, 3.6vw, 41px); }
}
@media screen and (max-width: 767px) {
  .top-worries { padding: 60px 15px 40px; }
  .top-worries__heading { margin-bottom: 30px; font-size: 25px; letter-spacing: .06em; }
  .top-tiles { gap: 8px; }
  .top-tiles--menu { margin-top: 30px; }
}


/* ---------------------------------------------------------
   6. 選ばれる理由（写真と文章を交互に）
     top-reason__item          … 左に写真・右に文章
     top-reason__item--reverse … 左に文章・右に写真
   --------------------------------------------------------- */
.top-reason { padding: 100px 0 60px; }
.top-reason__item { display: grid; grid-template-columns: 410px 1fr; gap: 25px; align-items: center; margin: 40px 0; }
.top-reason__item .top-reason__img { order: -1; }
.top-reason__item--reverse { grid-template-columns: 1fr 410px; }
.top-reason__item--reverse .top-reason__img { order: 0; }
.top-reason__img { display: block; width: 100%; height: auto; }
.top-reason__title { margin: 0 0 16px; font-size: 24px; line-height: 1.4; letter-spacing: 1.4px; color: var(--color-primary); }
.top-reason__text p { font-size: 17px; line-height: 1.7; }

@media screen and (max-width: 767px) {
  .top-reason { padding: 60px 0 30px; }
  .top-reason__item, .top-reason__item--reverse { grid-template-columns: 1fr; gap: 14px; }
  .top-reason__item .top-reason__img, .top-reason__item--reverse .top-reason__img { order: -1; width: 68%; margin: 0 auto; }
  .top-reason__title { font-size: 20px; }
  .top-reason__text p { font-size: 15px; }
}


/* ---------------------------------------------------------
   7. 設備・急患対応（写真と文章の2列。画面の端まで使う）
   --------------------------------------------------------- */
.top-feature { padding: 60px 0 100px; }
.top-feature__item { display: grid; grid-template-columns: 38.6% 1fr; gap: 30px; align-items: center; margin: 0 0 40px; padding: 0 26px 0 10px; }
.top-feature__item--reverse { grid-template-columns: 1fr 38.6%; padding: 0 10px 0 90px; }
.top-feature__item--reverse .top-feature__img { order: 2; }
.top-feature__img { display: block; width: 100%; height: auto; border-radius: 10px; }
.top-feature__text p { font-size: 17px; line-height: 1.7; }
.top-feature__text .top-heading { margin-bottom: 30px; }
.top-feature__text .top-feature__lead { font-weight: 700; font-size: 19px; line-height: 1.6; letter-spacing: 1.5px; color: var(--color-primary); }
.top-feature__text .top-btn--left { flex-direction: row; flex-wrap: wrap; }

@media screen and (max-width: 1024px) {
  .top-feature__item, .top-feature__item--reverse { padding: 0 24px; }
}
@media screen and (max-width: 767px) {
  .top-feature { padding: 30px 0 60px; }
  .top-feature__item, .top-feature__item--reverse { grid-template-columns: 1fr; gap: 16px; padding: 0 18px; }
  .top-feature__item--reverse .top-feature__img { order: 0; }
  .top-feature__text p { font-size: 15px; }
  .top-feature__text .top-feature__lead { font-size: 18px; }
}


/* ---------------------------------------------------------
   8. 診療案内（白い箱：左に文章・右に写真）
   --------------------------------------------------------- */
.top-medical { padding: 100px 0 140px; background: var(--color-light); }
.top-medical__card { display: grid; grid-template-columns: 1fr 30%; gap: 40px; align-items: start; margin: 0 0 30px; padding: 40px 40px; border-radius: 10px; background: #fff; }
.top-medical__img { display: block; width: 100%; height: auto; margin-top: 65px; border-radius: 10px; }
.top-medical__title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px dashed rgba(191, 191, 191, .75);
  font-size: 35px; line-height: 1.4; letter-spacing: .12em;
}
.top-medical__title img { width: 60px; height: auto; }
.top-medical__sub { margin: 26px 0 8px; font-size: 25px; line-height: 1.5; letter-spacing: 1.6px; color: var(--color-primary); }
.top-medical__text p { font-size: 17px; line-height: 1.7; }
.top-medical__text .top-medical__price { margin-top: 16px; font-size: 20px; line-height: 1.5; letter-spacing: 1.6px; }
.top-medical__list { margin: 6px 0 10px; }
.top-medical__list li { position: relative; padding: 6px 0 6px 22px; font-weight: 700; font-size: 18px; line-height: 1.4; letter-spacing: .02em; }
.top-medical__list li::before { content: ""; position: absolute; top: 8px; left: 0; width: 6px; height: 22px; background: linear-gradient(90deg, #ffd3ad 0 2px, transparent 2px 4px, #ffd3ad 4px 6px); }

@media screen and (max-width: 767px) {
  .top-medical { padding: 60px 0; }
  .top-medical__card { grid-template-columns: 1fr; gap: 16px; padding: 24px 16px; }
  .top-medical__img { order: -1; margin-top: 0; }
  .top-medical__title { font-size: 24px; }
  .top-medical__title img { width: 44px; }
  .top-medical__sub { font-size: 19px; }
  .top-medical__text p { font-size: 15px; }
  .top-medical__text .top-medical__price { font-size: 15px; }
  .top-medical__list li { font-size: 15px; }
}


/* ---------------------------------------------------------
   9. 治療の流れ（番号の丸・文章・写真）
   --------------------------------------------------------- */
.top-flow { padding: 100px 0 60px; }
.top-flow__step {
  display: grid; grid-template-columns: 100px 1fr 314px; gap: 30px; align-items: center;
  padding: 30px 0 50px; background: url("../images/uploads/2025/01/img-ef09c1a7.webp") no-repeat center bottom / 100% auto;
}
.top-flow__step:last-child { padding-bottom: 30px; background: none; border-bottom: 2px solid rgba(61, 170, 244, .75); }
.top-flow__num { width: 100%; }
.top-flow__title { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px dashed rgba(191, 191, 191, .75); font-size: 22px; line-height: 1.3; letter-spacing: 3.3px; color: var(--color-primary); }
.top-flow__text p { font-size: 17px; line-height: 1.7; }
.top-flow__img { display: block; width: 100%; height: auto; border-radius: 10px; }

@media screen and (max-width: 767px) {
  .top-flow { padding: 60px 0 30px; }
  .top-flow__step { grid-template-columns: 1fr; gap: 10px; }
  .top-flow__num { width: 56px; }
  .top-flow__title { font-size: 19px; letter-spacing: 1.5px; }
  .top-flow__text p { font-size: 15px; }
}


/* ---------------------------------------------------------
   10. 動画・求人バナー
   --------------------------------------------------------- */
.top-movie { padding: 100px 15px 75px; text-align: center; }
.top-movie__video { position: relative; max-width: 842px; margin: 0 auto 60px; aspect-ratio: 16 / 9; }
.top-movie__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.top-movie__banner { display: block; width: 842px; max-width: 100%; height: auto; margin: 0 auto; }

@media screen and (max-width: 767px) {
  .top-movie { padding: 50px 10px 40px; }
  .top-movie__video { margin-bottom: 30px; }
}
