/* ファーストビュー
   PC：左に幅 60.3% の写真（3枚がふわっと切り替わる）、右に縦書きの添え書きと段違いのコピー。
   写真のまわりに太陽・雲・歯ブラシ・歯の絵。写真の左下に白い丸の案内、左端に縦書きの「scroll」。
   スマホ・タブレットは写真の下にコピー。添え書きはコピーの左、案内は白い帯 */
/* 右へはみ出す歯ブラシの絵で横にスクロールしないよう、横だけ切る */
.fv { overflow-x: clip; }
.fv__inner {
  position: relative;
  padding: 90px 25px 0;
}
.fv__con { position: relative; }
.fv__img {
  position: relative;
  margin-bottom: 40px;
}
.fv__slider {
  position: relative;
  aspect-ratio: 335 / 310;
  overflow: hidden;
}
.fv__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.fv__slide.is-on { opacity: 1; z-index: 1; }
.fv__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fv__slide:nth-child(2) img { object-position: 50% 78%; }

/* 写真のまわりの絵（線の絵は細い線、塗りの絵は黄色の面） */
.fv__deco {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.fv__deco-item {
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: visible;
}
.fv__sun { top: -24px; right: 21%; width: 58px; height: 58px; transition-delay: 0.2s; }
.fv__sun circle { fill: var(--yellow); }
.fv__sun path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; }
.fv__cloud { top: -14px; left: 10%; width: 60px; height: 36px; transition-delay: 0.4s; }
.fv__cloud path { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linejoin: round; }
.fv__brush { bottom: -26px; right: -32px; width: 60px; height: 60px; transition-delay: 0.6s; }
.fv__brush rect,
.fv__brush path { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fv__tooth { bottom: -30px; left: 9%; width: 48px; height: 50px; transition-delay: 0.8s; }
.fv__tooth use { fill: var(--yellow); }

/* 縦書きの添え書き（左）と、コピー（右） */
.fv__txt {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 10px 0 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fv__copy {
  margin-top: 6px;
  font-family: var(--f-copy);
  font-weight: 700;
  font-size: 24px;
  line-height: 2.05;
  letter-spacing: 0.2em;
}
.fv__line { display: block; white-space: nowrap; }
.fv__line:nth-child(2) { padding-left: 1.2em; }
.fv__line:nth-child(3) { padding-left: 2.4em; }
.fv__sub {
  order: -1;
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.22em;
}
.fv__sub span { display: block; }

/* 「scroll」の縦書きと、伸び縮みする線 */
.fv__scroll {
  position: absolute;
  top: 128px;
  left: 6px;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
}
.fv__scroll::before {
  content: "";
  position: absolute;
  top: 57px;
  right: 3px;
  width: 1px;
  height: 60px;
  background: var(--ink);
  animation: fvLine 2s cubic-bezier(1, 0, 0, 1) infinite;
}
@keyframes fvLine {
  0% { transform: scaleY(0); transform-origin: 0 0; }
  30% { transform: scaleY(1); transform-origin: 0 0; }
  70% { transform: scaleY(1); transform-origin: 0 100%; }
  100% { transform: scaleY(0); transform-origin: 0 100%; }
}

/* 予約の案内（スマホは白い帯、PC は白い丸） */
.fv__badge { margin: 26px -25px 0; }
.fv__badge a {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  padding: 14px 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.fv__badge-ic { flex: none; width: 64px; height: 32px; }
.fv__badge-txt { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-weight: 700; line-height: 1.5; }
.fv__badge-s { width: 100%; font-size: 11px; letter-spacing: 0.12em; }
.fv__badge-l { font-size: 17px; letter-spacing: 0.15em; }
.fv__badge-m { font-size: 14px; letter-spacing: 0.12em; }

/* 絵の線と面 */
.ic-circle { fill: var(--yellow-pale); }
.ic-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic-thick { stroke-width: 3; }
.ic-xthick { stroke-width: 9; }
.ic-fill { fill: var(--sky); }
.ic-line.ic-fill { fill: var(--sky); }
.ic-yel { fill: var(--yellow); }
.ic-line.ic-yel { fill: var(--yellow); }
.ic-dot { fill: var(--ink); }
.ic-tooth-sky { fill: #d7ebf5; }
.ic-sky-line { stroke: var(--sky); }

/* 表示：読み込みが済んだら絵とコピーを出す（参考は 0.2 秒ずつずらして 1 秒） */
.fv.is-in .fv__deco-item,
html:not(.js) .fv__deco-item { opacity: 1; }
.fv.is-in .fv__txt,
html:not(.js) .fv__txt { opacity: 1; transform: none; }
.js .fv.anime { opacity: 1; transform: none; }

@media (min-width: 480px) and (max-width: 1023px) {
  .fv__slider { aspect-ratio: 16 / 11; }
  .fv__copy { font-size: 30px; }
  .fv__sub { font-size: 14px; }
}

@media (min-width: 1024px) {
  .fv__inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 150px 90px 0;
  }
  .fv__con {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .fv__img {
    width: 60.3%;
    max-width: 1080px;
    margin: 0;
    position: static;
  }
  .fv__slider { aspect-ratio: 760 / 521; }
  .fv__txt {
    flex: 1;
    justify-content: flex-end;
    column-gap: min(2.4vw, 40px);
    padding: 0 0 30px 20px;
  }
  .fv__copy { margin-top: 18px; font-size: min(2.7vw, 40px); line-height: 2; }
  .fv__sub { margin-top: -30px; font-size: 13px; letter-spacing: 0.25em; }

  .fv__sun { top: -36px; right: 35.4%; width: 96px; height: 96px; }
  .fv__sun path { stroke-width: 6; }
  .fv__cloud { top: -30px; left: 6.5%; width: 96px; height: 58px; }
  .fv__cloud path { stroke-width: 2; }
  .fv__brush { bottom: -10px; right: -11%; width: 100px; height: 100px; }
  .fv__brush rect,
  .fv__brush path { stroke-width: 2; }
  .fv__tooth { bottom: -12px; right: 50.1%; left: auto; width: 84px; height: 88px; }

  .fv__scroll { top: calc(50% + 75px); left: 50px; font-size: 11px; transform: translateY(-100%); }
  .fv__scroll::before { top: 66px; height: 80px; }

  .fv__badge {
    position: absolute;
    left: 20px;
    bottom: -45px;
    z-index: 5;
    width: 200px;
    margin: 0;
  }
  .fv__badge a {
    flex-direction: column;
    justify-content: center;
    row-gap: 10px;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 50%;
    text-align: center;
    transition: transform 0.3s ease;
  }
  .fv__badge a:hover { transform: scale(1.04); }
  .fv__badge-ic { width: 78px; height: 39px; }
  .fv__badge-txt { flex-direction: column; align-items: center; }
  .fv__badge-s { font-size: 11px; }
  .fv__badge-l { font-size: 22px; letter-spacing: 0.2em; }
  .fv__badge-m { font-size: 15px; letter-spacing: 0.14em; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .fv__img { width: 55%; }
  .fv__copy { font-size: 26px; }
  .fv__sub { font-size: 12px; letter-spacing: 0.2em; }
  .fv__sun { right: 41%; width: 84px; height: 84px; }
  .fv__tooth { width: 70px; height: 74px; }
}
@media (min-width: 1300px) {
  .fv__badge { width: 240px; left: 20px; }
}
@media (min-width: 1580px) {
  .fv__inner { padding: 150px 160px 0 130px; }
  .fv__copy { font-size: 52px; }
  .fv__sub { font-size: 15px; }
  .fv__sun { top: -40px; right: 27.2%; width: 140px; height: 140px; }
  .fv__cloud { top: -40px; left: 7.2%; width: 140px; height: 84px; }
  .fv__brush { right: -9.5%; width: 150px; height: 150px; }
  .fv__tooth { right: 43.5%; width: 124px; height: 130px; }
  .fv__scroll { left: 60px; }
  .fv__badge { width: 255px; left: 40px; }
}
