/* ============================================================
   QUALIA TOP PAGE CSS
   ============================================================ */

/* === HERO / FV === */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5efe6 0%, #ede4d4 30%, #d8c9b0 70%, #c5b18e 100%);
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--bg-main), transparent);
  z-index: 1;
}

.hero__image {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero__image-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(213, 193, 160, 0.3) 0%, rgba(184, 157, 106, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 60px 80px;
  width: 100%;
}

.hero__label {
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero__catch {
  font-family: var(--font-ja);
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero__catch em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-family: var(--font-ja);
  font-size: 1.5rem;
  line-height: 2.2;
  color: var(--text-sub);
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}

.hero__btn--primary {
  background: var(--primary);
  color: #fff;
}

.hero__btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 157, 106, 0.25);
}

.hero__btn--line {
  background: #06c755;
  color: #fff;
}

.hero__btn--line:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.25);
}

.hero__btn svg {
  width: 16px;
  height: 16px;
}

.hero__deco-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(184, 157, 106, 0.12);
  top: 20%;
  left: 35%;
  z-index: 0;
  animation: floatCircle 8s ease-in-out infinite;
}

.hero__deco-circle2 {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(184, 157, 106, 0.04);
  bottom: 15%;
  left: 25%;
  z-index: 0;
  animation: floatCircle 6s ease-in-out infinite reverse;
}

@keyframes floatCircle {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* === BANNER CAROUSEL === */
.bnr {
  padding: 80px 0 40px;
}

.bnr-slider-area {
  overflow: hidden;
}

.bnr-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bnr-track::-webkit-scrollbar {
  display: none;
}

.bnr-item {
  flex: 0 0 380px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-warm);
  aspect-ratio: 16/11;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.bnr-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.bnr-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.bnr-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === FEATURES === */
.features {
  padding: 100px 0;
  background: var(--bg-warm);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.feature-card__num {
  font-family: var(--font-en);
  font-size: 6rem;
  font-weight: 300;
  color: var(--primary-light);
  opacity: 0.3;
  position: absolute;
  top: 12px;
  right: 20px;
  line-height: 1;
}

.feature-card__line {
  width: 40px;
  height: 2px;
  background: var(--gold-gradient);
  margin-bottom: 24px;
  border-radius: 1px;
}

.feature-card__title {
  font-family: var(--font-ja);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.feature-card__text {
  font-size: 1.4rem;
  line-height: 2;
  color: var(--text-sub);
}

/* === CONCERNS === */
.concerns {
  padding: 100px 0;
}

.concerns-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.concern-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.concern-item:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.concern-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.concern-item__name {
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

/* === EQUIPMENT === */
.equipment {
  padding: 100px 0 120px;
  background: var(--bg-warm);
  position: relative;
}

.equipment__sub {
  text-align: center;
  font-family: var(--font-ja);
  font-size: 1.6rem;
  color: var(--text-sub);
  margin-top: -32px;
  margin-bottom: 48px;
  letter-spacing: 0.06em;
}

.equip-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 40px 20px;
  -webkit-overflow-scrolling: touch;
}

.equip-track::-webkit-scrollbar {
  display: none;
}

.equip-item {
  flex: 0 0 200px;
  scroll-snap-align: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.equip-item:hover {
  transform: translateY(-6px);
}

.equip-item__img {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  overflow: hidden;
}

.equip-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equip-item:hover .equip-item__img {
  box-shadow: var(--shadow-soft);
  transform: scale(1.06);
}

.equip-item__name {
  font-family: var(--font-ja);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.04em;
}

.equip-item__name-en {
  display: block;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.equip-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.equip-btn {
  width: 52px;
  height: 32px;
  border-radius: 100px;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
}

.equip-btn:hover {
  background: var(--primary);
  color: #fff;
}

.equip-btn svg {
  width: 16px;
  height: 16px;
}

/* === NEWS === */
.news {
  padding: 80px 0;
}

.news__main {
  display: flex;
  gap: 60px;
}

.news__tl-area {
  flex: 0 0 280px;
}

.news__tl-area .btn-more {
  margin-top: 32px;
}

.news-list {
  flex: 1;
}

.news-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:first-child {
  border-top: 1px solid var(--border);
}

.news-item a {
  display: block;
  transition: opacity var(--transition);
}

.news-item a:hover {
  opacity: 0.7;
}

.news-item__date {
  font-family: var(--font-en);
  font-size: 1.3rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.news-item__title {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* === HOURS === */
.hours-section {
  padding: 80px 0;
  background: var(--bg-warm);
}

.hours-table {
  max-width: 500px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
  font-size: 1.5rem;
}

.hours-table th,
.hours-table td {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hours-table th {
  font-weight: 500;
  color: var(--primary-dark);
  background: rgba(184, 157, 106, 0.06);
  font-family: var(--font-ja);
}

.hours-table td {
  color: var(--text-sub);
}

/* === ACCESS === */
.access {
  padding: 100px 0;
}

.access__main {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.access__info {
  flex: 0 0 400px;
}

.access__clinic-name {
  font-family: var(--font-ja);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.access__clinic-name small {
  display: block;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 4px;
}

.access__detail p {
  font-size: 1.5rem;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.access__detail .accent {
  color: var(--primary-dark);
  font-weight: 500;
}

.access__map {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16/10;
  background: var(--bg-warm);
  border: 1px solid var(--border);
}

.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   RESPONSIVE - TOP
   ============================================================ */
@media (max-width: 768px) {

  /* --- HERO: SP版もPC同様に右半分に画像表示 --- */
  .hero {
    min-height: 100svh;
    padding-top: 64px;
  }

  .hero__image {
    width: 50%;
    opacity: 0.5;
  }

  .hero__content {
    padding: 80px 24px 60px;
  }

  .hero__label {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
  }

  .hero__catch {
    font-size: 2.4rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .hero__sub {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 32px;
    max-width: 100%;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero__btn {
    justify-content: center;
    padding: 14px 28px;
    font-size: 1.3rem;
  }

  .hero__deco-circle,
  .hero__deco-circle2 {
    display: none;
  }

  .bnr {
    padding: 40px 0 20px;
  }

  .bnr-item {
    flex: 0 0 280px;
  }

  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 36px 28px;
  }

  .concerns {
    padding: 60px 0;
  }

  .concerns-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .equipment {
    padding: 60px 0 80px;
  }

  .equip-item {
    flex: 0 0 160px;
  }

  .equip-item__img {
    width: 120px;
    height: 120px;
  }

  .news {
    padding: 60px 0;
  }

  .news__main {
    flex-direction: column;
    gap: 24px;
  }

  .news__tl-area {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .news__tl-area .section-tl {
    margin-bottom: 0;
  }

  .news__tl-area .btn-more {
    margin-top: 0;
  }

  .hours-section {
    padding: 60px 0;
  }

  .access {
    padding: 60px 0;
  }

  .access__main {
    flex-direction: column;
    gap: 32px;
  }

  .access__info {
    flex: none;
    width: 100%;
  }

  .access__map {
    width: 100%;
    aspect-ratio: 4/3;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  .hero__catch {
    font-size: 3.4rem;
  }

  .features-grid {
    gap: 20px;
  }

  .feature-card {
    padding: 36px 28px;
  }

  .concerns-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .access__info {
    flex: 0 0 340px;
  }
}