@charset "UTF-8";

/* ===== Price Intro ===== */
.price-intro {
  text-align: center;
  padding: 40px 20px;
}
.price-intro__lead {
  font-size: 1.4rem;
  color: #372929;
  margin-bottom: 12px;
}
.price-intro__note {
  font-size: 1.3rem;
  color: #372929;
  line-height: 2;
}

/* ===== Price Plan Section ===== */
.price-plan {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.price-plan__house-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.price-plan__house-svg--sp {
  display: none;
}

.price-plan .inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.price-plan__decoration {
  position: absolute;
  top: 48px;
  right: clamp(24px, 4vw, 60px);
  width: clamp(184px, 16vw, 240px);
  pointer-events: none;
  z-index: 2;
}

.price-plan__decoration img {
  display: block;
  width: 100%;
  height: auto;
}

.price-plan__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  padding: 42px 0 60px;
  overflow: visible;
}

.price-plan__tabs,
.price-plan__panel,
.price-plan__works {
  width: 100%;
}

/* --- Tabs --- */
.price-plan__tabs {
  width: min(100%, 680px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.price-plan__tab-trigger {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 11px 8px;
}

.price-plan__tab-trigger .price-section__box-heading {
  display: block;
  font-size: 1.4rem;
  line-height: 1.3;
}

/* --- Panel --- */
.price-plan__panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 0;
}
.price-plan__panel--active {
  display: flex;
}

/* --- Content Row: heading + description --- */
.price-plan__content-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.price-plan__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.price-plan__heading-sub {
  font-size: 3rem;
  font-weight: 700;
  color: #372929;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.price-plan__heading-main {
  font-size: 4rem;
  font-weight: 700;
  color: #00AFC3;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: left;
}
.price-plan__desc {
  font-size: 1.8rem;
  font-weight: 400;
  color: #372929;
  line-height: 1.83;
  letter-spacing: 0.1em;
  max-width: 580px;
  text-align: left;
}

/* --- Works Section --- */
.price-plan__works {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.price-plan__works-title {
  font-size: 4rem;
  font-weight: 700;
  color: #372929;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.price-plan__works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 27px;
  width: 100%;
}

/* --- Works Card --- */
.price-plan-card__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
/* メイン画像：上部に全幅表示 */
.price-plan-card__img--main {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #C7C7C7;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}
.price-plan-card__img--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* サブ画像＋テキストを横並び */
.price-plan-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
/* サブ画像：テキスト左に小さく */
.price-plan-card__img--thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #C7C7C7;
  overflow: hidden;
  border-radius: 3px;
}
.price-plan-card__img--thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.price-plan-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-plan-card__tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.price-plan-card__tag {
  font-size: 1.5rem;
  font-weight: 400;
  color: #3B3B3B;
  letter-spacing: 0.05em;
  line-height: 1;
}
.price-plan-card__tag + .price-plan-card__tag::before {
  content: "・";
  margin-right: 0;
}
.price-plan-card__title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #372929;
  letter-spacing: 0.05em;
  line-height: 1.69;
}

@media (max-width: 1024px) {
  .price-plan__box {
    gap: 32px;
    padding: 36px 0 56px;
  }

  .price-plan__decoration {
    top: 34px;
    right: 20px;
    width: 104px;
  }

  .price-plan__panel {
    padding: 0;
  }

  .price-plan__content-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-left: 0;
  }

  .price-plan__desc {
    max-width: none;
  }

  .price-plan__works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .price-intro {
    padding: 32px 16px 20px;
  }

  .price-intro__lead {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1.75;
  }

  .price-intro__note {
    font-size: 1.4rem;
    line-height: 1.9;
  }

  .price-intro__note br {
    display: none;
  }

  .price-plan {
    padding: 40px 0 70px;
  }

  .price-plan .inner {
    padding: 34px 18px 0;
    z-index: 2;
  }

  .price-plan__box {
    gap: 24px;
    padding: 20px 0 32px;
  }

  .price-plan__decoration {
    top: -6px;
    right: 8px;
    width: 72px;
    z-index: 1;
  }

  .price-plan__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
  }

  .price-plan__tab-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 72px;
    width: 100%;
    padding: 10px 4px;
    border-radius: 12px;
  }

  .price-plan__tab-trigger .price-section__box-heading {
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
    word-break: keep-all;
  }

  .price-plan__house-svg--pc {
    display: none;
  }

  .price-plan__house-svg--sp {
    display: block;
  }

  .price-plan__panel {
    gap: 32px;
  }

  .price-plan__content-row {
    gap: 18px;
    padding-left: 0;
    padding-right: 0;
  }

  .price-plan__heading-sub {
    font-size: 1.8rem;
  }

  .price-plan__heading-main {
    font-size: 2.8rem;
    letter-spacing: 0.05em;
  }

  .price-plan__desc {
    font-size: 1.4rem;
    line-height: 1.85;
    letter-spacing: 0.05em;
  }

  .price-plan__works {
    gap: 32px;
  }

  .price-plan__works-title {
    font-size: 2.6rem;
  }

  .price-plan__works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .price-plan-card__link {
    gap: 8px;
  }

  .price-plan-card__img--thumb {
    width: 48px;
    height: 48px;
  }

  .price-plan-card__meta {
    gap: 8px;
  }

  .price-plan-card__body {
    gap: 6px;
  }

  .price-plan-card__tag {
    font-size: 1.3rem;
  }

  .price-plan-card__title {
    font-size: 1.5rem;
    line-height: 1.6;
  }
}
