/* =========================================================
   2) Hero (FV)
========================================================= */
.fade-in-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.slider {
  position: relative;
  height: 660px;
}
.slider__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider__item.is-active {
  opacity: 1;
}

.slider__item img {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}


.hero__heading {
  position: absolute;
  display: inline-block;
  height: 162px;
  left: 30px;
  top: 432px;
    color: #F08714;
    font-family: Zen Kaku Gothic New;
	font-weight: 500;
	font-style: Medium;
	font-size: 2.1rem;
	leading-trim: NONE;
	line-height: 160%;
	letter-spacing: 0%;
    margin: 0;
    text-shadow: 3px 3px 3px #fff, -3px -3px 3px #fff,
           -3px 3px 3px #fff,  3px -3px 3px #fff,
            3px 0px 3px #fff, -3px -0px 3px #fff,
            0px 3px 3px #fff,  0px -3px 3px #fff;
}

@media (min-width: 769px) {
  .hero__heading {
    position: absolute;
    width: 560px;
    height: 128px;
    left: 100px;
    top: 422px;
    display: block;
    color: #F08714;
    font-family: Zen Kaku Gothic New;
    font-weight: 500;
    font-style: Medium;
    font-size: 40px;
    line-height: 160%;
    letter-spacing: 0%;
    margin: 0;
    text-shadow: 3px 3px 3px #fff, -3px -3px 3px #fff,
           -3px 3px 3px #fff,  3px -3px 3px #fff,
            3px 0px 3px #fff, -3px -0px 3px #fff,
            0px 3px 3px #fff,  0px -3px 3px #fff;
  }
  .hero__heading .sp {
    display: none;
}
}

.hero__text {
  position: absolute;
  display: inline-block;
  height: 64px;
  left: 25px;
  top: 610px;
  font-family: Zen Kaku Gothic New;
	font-weight: 500;
	font-style: Medium;
	font-size: 16px;
	leading-trim: NONE;
	line-height: 200%;
	letter-spacing: 0%;
	text-shadow: 2px 2px 2px #fff, -2px -2px 2px #fff, -2px 2px 2px #fff, 2px -2px 2px #fff, 2px 0px 2px #fff, -2px -0px 2px #fff, 0px 2px 2px #fff, 0px -2px 2px #fff;

}
@media (min-width: 769px) {
  .hero__text {
    position: absolute;
    width: 420px;
    height: 80px;
    left: 100px;
    top: 566px;
    display: block;
    font-family: Zen Kaku Gothic New;
	font-weight: 500;
	font-style: Medium;
	font-size: 20px;
	leading-trim: NONE;
	line-height: 200%;
	letter-spacing: 0%;
	text-shadow: 2px 2px 2px #fff, -2px -2px 2px #fff, -2px 2px 2px #fff, 2px -2px 2px #fff, 2px 0px 2px #fff, -2px -0px 2px #fff, 0px 2px 2px #fff, 0px -2px 2px #fff;

  }
  
}

/* =========================================================
   3) Information（お知らせ） + Tabs
========================================================= */

@media (min-width: 769px) {
  .information__content {
    width: 100%;
    max-width: 480px;
  }
  .posts {
    width: 100%;
    max-width: 720px;
  }
}

.post__btn {
  cursor: pointer;
  font-family: "Zen Kaku Gothic New";
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 130%;
  padding: 10px 20px 6px;
  border: none;
  background: #fff;
  color: #5a5f66;
  border-bottom: 4px solid #ffc84b;
}
.post__btn.is-active-primary {
  color: #fff;
  background: #f08714;
  border-radius: 10px 10px 0 0;
}
.post__btn.is-active-secondary {
  color: #fff;
  background: #ffc84b;
  border-radius: 10px 10px 0 0;
}

.post__btn:is(.is-active, .is-active-primary) {
  border-bottom-color: #f08714;
}

/* =========================================================
   4) About（当院について）
========================================================= */

.images__inner {
  padding-top: 93%;
}
.images__container {
  max-width: 400px;
  width: 100%;
  z-index: 3;
}
.images__primary {
  max-width: 357px;
  top: 0;
  left: 0;
  width: 100%;
}
.images__secondary {
  max-width: 250px;
  bottom: 0;
  right: 0;
  width: 100%;
  z-index: 4;
}
@media (min-width: 450px) {
  .images__container {
    max-width: 630px;
  }
  .images__primary {
    max-width: 574px;
  }
  .images__secondary {
    max-width: 370px;
  }
}
.content-section {
  background: #faf8f5;
}

@media (min-width: 769px) {
  .content-section {
    background: none;
    background-image: linear-gradient(to right, transparent 25%, #faf8f5 25%);
  }
}
.content-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 195px;
  height: 195px;
  z-index: 2;
  background: url("../images/bg-line-right.svg") repeat center/cover;
}

.content-box {
  padding-top: 350px;
  padding-bottom: 100px;
  padding-left: clamp(0.75rem, 4vw, 1.5rem);
  padding-right: clamp(0.75rem, 4vw, 1.5rem);
  margin-left: auto;
  z-index: 5;
}
@media (min-width: 550px) {
  .content-box {
    padding-top: 550px;
  }
}
@media (min-width: 1195px) {
  .content-box {
    padding-top: 100px;
  }
}
.about-inner {
  max-width: 460px;
  margin-left: auto;
}
.content-inner {
  max-width: 520px;
  margin-left: auto;
}

/* =========================================================
   5) Feature（特徴カード）
========================================================= */
@media (min-width: 769px) {
  .feature__content {
    gap: 30px;
    display: flex;
  }
  .btn-right {
    display: flex;
    flex: 1;
    justify-content: right;
  }
}
.card__body {
  line-height: 1.3;
}
.card__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
}
.card {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}
.card__img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.caption {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  line-height: 130%;
}
.num-box {
  margin-bottom: 12px;
}
.caption-num {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 700;
  width: 50px;
  aspect-ratio: 1/1;
  font-size: 1.5rem;
  line-height: 130%;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card:nth-child(odd) .caption-num {
  background: #f08714;
  box-shadow: 3px 3px 0 1px #ffc84b;
}

.card:nth-child(even) .caption-num {
  background: #ffc84b;
  box-shadow: 3px 3px 0 1px #f08714;
}

.caption-num span {
  transform: translateX(-2px);
}
.card__text {
  font-size: 1.25rem;
  line-height: 130%;
}

@media (min-width: 401px) {
  .card__container {
    margin-bottom: 0;
  }
}

@media (min-width: 769px) {
  .card__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
  }
  .card__container {
    display: block;
    gap: 0;
  }
  .card {
    max-width: 320px;
    display: block;
    margin-bottom: 0;
  }
  .caption {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
  .num-box {
    margin: 17px 20px 20px 0;
  }
}

/* =========================================================
   6) Concerns（お悩み）
========================================================= */

.concerns__wrapper {
  width: 100%;
  background: #fff3e2;
  padding-top: 100px;
  padding-bottom: 100px;
}
.concerns__body {
  margin: auto;
  padding-left: 0;
  position: relative;
  z-index: 2;
}
.concerns__list {
  display: block;
  gap: 2px;
  margin: auto;
  line-height: 1.3;
  box-shadow: 0 0 0 3px #ffe0af, 5px 5px 0 3px #ffe0af;
  max-width: 636px;
  background: #ffe0af;
}
.concerns__list::after {
  content: "";
  grid-column: span 1;
  background: #fff;
}
.concerns__inner {
  display: block;
}

@media (max-width: 768px) {
  .concerns__list .teeth-items {
    border-bottom: #ffe0af 2px solid;
  }
}
.line-left::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 195px;
  height: 195px;
  z-index: 1;
  background: url("../images/bg-line.svg") repeat center/cover;
}

@media (min-width: 768px) {
  .concerns__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .concerns__inner {
    display: flex;
  }
}
/* =========================================================
   7) Treatment Plan（治療プラン）
========================================================= */
.cards__container {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
}

.card-secondary {
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  border: 3px solid #e1e1e1;
  box-shadow: 4px 4px 0 1px #e1e1e1;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-secondary:hover {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.card-secondary:hover .card-secondary__image {
  opacity: 0.6;
}

.card-secondary__items {
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-secondary__num {
  font-style: italic;
}
.card-secondary__num,
.card-secondary__text {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 130%;
  color: #f08714;
}

.card-secondary__image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  transition: 0.3s;
}

.card-secondary__image img {
  width: 100%;
  height: auto;
}

@media (min-width: 451px) {
  .card-secondary {
    min-width: 323px;
  }
}

@media (min-width: 871px) {
  .cards__container {
    flex-wrap: nowrap;
  }
}
/* =========================================================
   8) Cases（症例）
========================================================= */

.cases__wrapper img {
  width: 100%;
}

.cases__inner {
  max-width: 600px;
  width: 100%;
}

.cases-flex {
  display: flex;
}
@media (min-width: 768px) {
  .cases__wrapper {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
  }
}
/* =========================================================
   9) Contact（お問い合わせセクション）
========================================================= */
.contact-btn__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: -140px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
}

.contact-btns {
  display: block;
  width: 100%;
  max-width: 314px;
  box-shadow: 4px 4px 0 1px #ffc7af;
}

.contact-btns:hover {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.contact-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.contact-btn__label {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-btn__content {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.contact-btn--tel {
  background: #fff;
  border: 2px solid #f08714;
  color: #f08714;
}

.contact-btn--tel .contact-btn__label {
  color: #f08714;
}

.contact-btn--tel:hover {
  background: #fff3e2;
}

.contact-btn--web {
  background: #f08714;
  border: 2px solid #f08714;
  color: #fff;
}

.contact-btn--web:hover {
  background: #ffc84b;
  border: 3px solid #ffc84b;
}

.contact-btn--web .contact-btn__label {
  color: #fff;
}

.contact-btn__call-icon {
  width: 15px;
  transform: translateY(2px);
}

.contact-btn__web-icon {
  margin-top: auto;
  width: 28px;
}

@media (min-width: 768px) {
  .contact-btn__wrapper {
    bottom: -50px;
  }
  .contact-btns {
    display: flex;
    max-width: 628px;
  }
}
