/*
Theme Name: Kanda LP
Author: ES Dental
Version: 1.0
*/

body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  color: #333;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

.opening-page {
  width: 100%;
}

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }

}

/* =========================
  FV
========================= */
.opening-page .lp-fv {
  padding: 0;
}

.opening-page .lp-fv picture,
.opening-page .lp-fv img {
  width: 100%;
  display: block;
}

/* =========================
  Message
========================= */
.opening-page .lp-message {
  background: #F0EBE3;
  padding: 80px 0;
}

.opening-page .lp-container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.opening-page .lp-message__title {
  margin: 0 0 32px;
  text-align: center;
  font-weight: 300;
  font-size: 32px;
  line-height: 1.6;
  color: #5a4b23;
}

.opening-page .lp-message__text p {
  margin: 16px 0 0;
  text-align: center;
  font-size: 16px;
  line-height: 2;
  color: #6a5f52;
}

.opening-page .lp-message__text p:first-child {
  margin-top: 0;
}

@media (max-width: 767px) {
  .opening-page .lp-message {
    padding: 48px 0;
  }

  .opening-page .lp-container {
    width: calc(100% - 24px);
  }

  .opening-page .lp-message__title {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .opening-page .lp-message__text p {
    font-size: 14px;
    line-height: 1.9;
  }
}

/* =========================
  Charm
========================= */

.lp-charm {
  padding: 100px 0;
  background-image: url("images/marble-bg.png");
  background-size: cover;
  background-position: center;
}

.lp-section-title {
  text-align: center;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 60px;
  color: #5a4b23;
}

.lp-charm-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.lp-charm-item {
  display: flex;
  align-items: center;
  gap: 60px;
}

.lp-charm-item.reverse {
  flex-direction: row-reverse;
}

.lp-charm-text {
  flex: 1;
}

.lp-charm-text h3 {
  font-size: 22px;
  font-weight: 500;
  color: #D7AF73;
  margin-bottom: 16px;
  line-height: 1.6;
}

.lp-charm-text p {
  line-height: 1.9;
}

.lp-charm-image {
  flex: 1;
}

.lp-charm-item .lp-charm-image img {
  border-radius: 32px 0 0 32px;
}

.lp-charm-item.reverse .lp-charm-image img {
  border-radius: 0 32px 32px 0;
}

.charm-head{
    position: relative;
    margin-bottom: 20px;
}

.charm-number{
    position: absolute;
    left: 10px;
    top: -60px;
    font-size: 6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #E3DCD1;
    opacity: 0.4;
    z-index: 0;
}

.charm-title{
    position: relative;
    z-index: 1;

    font-size: 28px;
    color: #c59a5d;
}

@media (max-width: 767px) {

  .lp-charm {
    padding: 60px 0;
  }

  .lp-section-title {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .lp-charm-item {
    flex-direction: column;
    gap: 24px;
  }

  .lp-charm-item.reverse {
    flex-direction: column;
  }

    .lp-charm-image img {
    border-radius: 20px;
  }
}

/* =========================
  Clinic
========================= */
.lp-clinic {
  padding: 100px 0;
  background: #F0EBE3;
}

.lp-clinic-inner {
  display: flex;
  align-items: stretch;
  gap: 48px;
}

.lp-clinic-map,
.lp-clinic-info {
  flex: 1;
}

/* Place map on the right side on desktop */
.lp-clinic-info {
  order: 1;
}

.lp-clinic-map {
  order: 2;
}

.lp-clinic-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
  border-radius: 24px;
}

.lp-clinic-table {
  width: 100%;
  border-collapse: collapse;
}

.lp-clinic-table tr {
  border-bottom: 1px solid #d9d1c5;
}

.lp-clinic-table th,
.lp-clinic-table td {
  padding: 18px 0;
  vertical-align: top;
  line-height: 1.9;
  font-size: 15px;
}

.lp-clinic-table th {
  width: 120px;
  text-align: left;
  font-weight: 500;
  color: #D7AF73;
}

@media (max-width: 767px) {
  .lp-clinic {
    padding: 60px 0;
  }

  .lp-clinic-inner {
    flex-direction: column;
    gap: 32px;
  }

  .lp-clinic-info,
  .lp-clinic-map {
    order: initial;
  }

  .lp-clinic-map iframe {
    min-height: 320px;
    border-radius: 20px;
  }

  .lp-clinic-table th,
  .lp-clinic-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
  }

  .lp-clinic-table th {
    padding-bottom: 0;
  }

  .lp-clinic-table td {
    padding-top: 4px;
  }
}

/* =========================
  Group Clinics
========================= */
.lp-group {
  padding: 100px 0;
  background: #F0EBE3;
}

.lp-group-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 36px;
}

.lp-group-card {
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 34px 34px 38px;
}

.lp-group-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.lp-group-card__image {
  overflow: hidden;
  border-radius: 24px;
}

.lp-group-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.lp-group-card:hover .lp-group-card__image img {
  transform: scale(1.04);
}

.lp-group-card__body {
  padding: 28px 0 0;
}

.lp-group-card__name {
  margin: 0;
  font-size: 22px;
  line-height: 1.6;
  color: #c7a66a;
}

.lp-group-card__address,
.lp-group-card__access {
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: #3c3833;
}

.lp-group-card__access {
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .lp-group-list {
    gap: 24px;
  }

  .lp-group-card {
    padding: 24px 24px 28px;
  }

  .lp-group-card__name {
    font-size: 19px;
  }
}

@media (max-width: 767px) {
  .lp-group {
    padding: 60px 0;
  }

  .lp-group-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-group-card {
    border-radius: 20px;
    padding: 18px 18px 22px;
  }

  .lp-group-card__image {
    border-radius: 16px;
  }

  .lp-group-card__body {
    padding-top: 18px;
  }

  .lp-group-card__name {
    font-size: 17px;
  }

  .lp-group-card__address,
  .lp-group-card__access {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.8;
  }
}

/* =========================
  Footer
========================= */

.lp-footer {
  padding: 40px 20px;
  background: #F0EBE3;
  text-align: center;
}

.lp-copyright {
  font-size: 13px;
  color: #6e6a64;
  letter-spacing: 0.08em;
}