@charset "UTF-8";
@font-face{font-family:"Zen Maru Gothic";font-style:normal;font-weight:100 900;font-display:swap;src:url(/asset/fonts/zenmaru-medium.woff2) format("woff2")}
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:300 700;font-display:swap;src:url(/asset/fonts/notosansjp-vf.woff2) format("woff2")}
/*
  上下の帯（このサイトで新しく作った部分）。
  本文の CSS（theme.css・lp_wisdom-tooth.css）とは接頭辞 oya- で分ける。
  色は本文にある色だけを使う: ヒーローの金 #9A7A35／予約ボタンの青緑 #5BBABE／囲みの地 #F7F4ED／文字 #333。
  白い文字を金の上に置く所は 19px 以上の太字にしている（コントラスト比 4.0）。
*/
.oya-top,
.oya-foot,
.oya-dock {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}
.oya-top *,
.oya-foot *,
.oya-dock * {
  box-sizing: border-box;
  margin: 0;
}
.oya-top a:focus-visible,
.oya-dock a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.oya-foot a:focus-visible {
  outline: 2px solid #9A7A35;
  outline-offset: 3px;
}

/* ---------- 上の帯: 医院名 ＋ 電話・予約 ---------- */
.oya-top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  height: 72px;
  padding: 0 50px; /* ヒーローの左右の余白（50px）に合わせる */
  background: #9A7A35; /* ヒーローの上端と同じ色。先頭ではヒーローとひと続きに見える */
  color: #fff;
}
.oya-top__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.oya-top__logo {
  display: block;
  width: auto;
  height: 44px;
}
.oya-top__name {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 19px;
  line-height: 32px;
  white-space: nowrap;
}
.oya-top__actions {
  display: flex;
  align-items: center;
  gap: 28px;
}
.oya-top__tel {
  color: #fff;
  font-size: 26px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.3s ease-out;
}
.oya-top__tel:hover {
  opacity: 0.8;
}

/* スクロールして帯がヒーローから離れたら、薄い影で本文と分ける（対応するブラウザだけ） */
@supports (animation-timeline: scroll()) {
  @media screen and (min-width: 769px) {
    .oya-top {
      animation: oya-top-lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 160px;
    }
  }
}
@keyframes oya-top-lift {
  to {
    box-shadow: 0 6px 20px rgba(84, 65, 22, 0.24);
  }
}

/* ---------- ボタン（本文の「予約する」と同じ色・丸み・内側の白い線） ---------- */
.oya-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 50px;
  padding: 0 30px;
  border-radius: 25px;
  color: #fff;
  font-size: 19px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.3s ease-out;
}
.oya-btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #fff;
  border-radius: 25px;
  pointer-events: none;
}
.oya-btn:hover {
  transform: scale(1.05);
}
.oya-btn:active {
  transform: scale(0.98);
}
.oya-btn--reserve {
  background: #5BBABE;
}
.oya-btn--tel {
  background: #9A7A35;
}
.oya-top .oya-btn--reserve span {
  position: relative;
  padding-left: 36px;
}
.oya-top .oya-btn--reserve span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 27px;
  height: 28px;
  background: url(/asset/images/wisdom-tooth/icon_calender.png) no-repeat center / contain;
  transform: translateY(-50%);
}

/* ---------- 下の帯: 新百合ファーストデンタルの医院情報 ---------- */
.oya-foot {
  background: #F7F4ED;
  color: #333;
  padding: 72px 50px 0;
}
.oya-foot__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "id info" "site info";
  column-gap: 80px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
/* ロゴは本文の「対応医院」と同じく金で見せる（画像を型抜きに使って色を載せる） */
.oya-foot__logo {
  display: block;
  width: 266px;
  height: 60px;
  background: #9A7A35;
  -webkit-mask: url(/asset/brand/logo-white.png) no-repeat center / contain;
  mask: url(/asset/brand/logo-white.png) no-repeat center / contain;
}
.oya-foot__id {
  grid-area: id;
}
.oya-foot__info {
  grid-area: info;
}
.oya-foot__name {
  margin-top: 22px;
  font-size: 22px;
  line-height: 1.4;
}
.oya-foot__site {
  grid-area: site;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 266px;
  height: 50px;
  margin-top: 28px;
  border-radius: 25px;
  background: #9A7A35;
  color: #fff;
  font-size: 19px;
  letter-spacing: 0.08em;
  transition: transform 0.3s ease-out;
}
.oya-foot__site:hover {
  transform: scale(1.05);
}
.oya-foot__info > div {
  display: grid;
  grid-template-columns: 7em 1fr;
  column-gap: 32px;
  align-items: baseline;
  padding: 22px 0;
}
.oya-foot__info > div:not(:last-child) {
  border-bottom: 2px dashed #B39554; /* 本文の「3つのメリット」の区切り線と同じ。最後の行には引かない */
}
.oya-foot__info > div:first-child {
  padding-top: 6px;
}
.oya-foot__info dt {
  color: #9A7A35;
  font-size: 19px;
  line-height: 1.6;
}
.oya-foot__info dd {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.8;
}
.oya-foot__info dd a {
  color: #333;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.oya-foot__note {
  display: block;
  font-size: 14px;
}
.oya-foot__copy {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 0 28px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  text-align: center;
}

/* ---------- スマホ幅で下に固定するボタン（予約・電話） ---------- */
.oya-dock {
  display: none;
}

@media screen and (max-width: 768px) {
  /* 本文の CSS は、青葉台のサイトの固定ヘッダー（高さ 55px）のぶんだけ body の上を空けている。
     この LP の上の帯は固定しないので、その余白を消す。 */
  body:has(#wisdom-tooth) {
    padding-top: 0;
  }
  .oya-top {
    position: static;
    justify-content: center;
    height: 56px;
    padding: 0 3%;
  }
  .oya-top__logo {
    width: auto; /* テーマの img{width:100%} を打ち消す */
    height: 34px;
  }
  .oya-top__name,
  .oya-top__actions {
    display: none;
  }

  .oya-foot {
    padding: 48px 6% calc(72px + env(safe-area-inset-bottom)); /* 最後の行が固定ボタンに隠れないようにする */
  }
  .oya-foot__inner {
    display: block;
  }
  .oya-foot__id {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .oya-foot__logo {
    width: 222px;
    height: 50px;
  }
  .oya-foot__name {
    margin-top: 16px;
    font-size: 20px;
  }
  .oya-foot__info {
    margin-top: 28px;
  }
  .oya-foot__info > div {
    display: block;
    padding: 18px 0;
  }
  .oya-foot__info > div:first-child {
    padding-top: 0;
  }
  .oya-foot__info dd {
    margin-top: 6px;
    font-size: 15px;
  }
  .oya-foot__site {
    width: 100%;
    margin-top: 28px;
  }
  .oya-foot__copy {
    margin-top: 32px;
    padding: 0;
    font-size: 11px;
  }

  .oya-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -1px 0 rgba(154, 122, 53, 0.3);
  }
  .oya-dock .oya-btn {
    height: 48px;
    padding: 0 8px;
    border-radius: 24px;
  }
  .oya-dock .oya-btn::after {
    border-radius: 24px;
  }
  .oya-dock .oya-btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oya-btn,
  .oya-foot__site,
  .oya-top__tel {
    transition: none;
  }
}
