﻿/* built-house archive */
.l-page__built-house {
  background: #fff;
  color: #000;
}

.p-built-house-archive {
  padding-bottom: 86px;
}

.p-built-house-filter,
.p-built-house-status-filter,
.p-built-house-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.p-built-house-filter {
  margin-bottom: 18px;
}

.p-built-house-status-filter {
  margin: 2rem auto 3rem;
  
}

.p-built-house-tags {
  margin-bottom: 58px;
}

.p-built-house-filter a,
.p-built-house-status-filter a {
  align-items: center;
  border: 1px solid #007e43;
  color: #007e43;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
  min-width: 112px;
  padding: 8px 16px;
}

.p-built-house-filter a.is-active,
.p-built-house-status-filter a.is-active {
  background: #007e43;
  color: #fff;
}

.p-built-house-tags a {
  color: #007e43;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.p-built-house-tags a.is-active {
  color: #cf3528;
}
.p-built-house-list {
  display: grid;
  gap: 58px 28px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-built-house-card {
  color: #000;
  display: block;
}

.p-built-house-card__image {
  aspect-ratio: 330 / 220;
  background: #e8e8e8;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.p-built-house-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.p-built-house-card__type {
  background: #050505;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  left: 0;
  line-height: 1;
  min-width: 76px;
  padding: 8px 12px;
  position: absolute;
  text-align: center;
  top: 0;
  z-index: 2;
}

.p-built-house-card__noimage {
  align-items: center;
  color: #999;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.p-built-house-card__sold {
  align-items: center;
  background: rgba(0, 0, 0, .56);
  color: #fff;
  display: flex;
  font-size: 30px;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  letter-spacing: 0;
  position: absolute;
  z-index: 1;
}

.p-built-house-card__head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.p-built-house-card__badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 20px;
}

.p-built-house-card__title {
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin: -3px 0 0;
  min-width: 0;
}

.p-built-house-card__badge {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
}

.p-built-house-card__badge--new {
  background: #cf3528;
}

.p-built-house-card__badge--pickup,
.p-built-house-card__badge--negotiating {
  background: #008b4a;
}

.p-built-house-card__price {
  color: #d83d2e;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin: 14px 0 12px;
}

.p-built-house-card__price span {
  font-size: 28px;
  letter-spacing: 0;
}

.p-built-house-card__price small {
  font-size: 12px;
}

.p-built-house-card__specs {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-built-house-card__specs li {
  color: #8a7149;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.p-built-house-card__specs li::before {
  background: #d8c9b3;
  border-radius: 50%;
  content: '';
  height: 9px;
  left: 0;
  position: absolute;
  top: .42em;
  width: 9px;
}

.head-archives-ti {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  margin: 32px 0 16px;
}

.p-built-house-pagination {
  margin-top: 76px;
  text-align: center;
}

.p-built-house-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.p-built-house-pagination .page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  color: #111;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.p-built-house-pagination .page-numbers.current {
  background: #008b4a;
  border-color: #008b4a;
  color: #fff;
}

@media screen and (max-width: 980px) {
  .p-built-house-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .p-built-house-filter,
  .p-built-house-status-filter,
  .p-built-house-tags {
    justify-content: flex-start;
  }

  .p-built-house-filter a,
  .p-built-house-status-filter a {
    min-width: 0;
    width: calc(50% - 6px);
  }

  .p-built-house-tags {
    margin-bottom: 40px;
  }

  .p-built-house-list {
    gap: 42px;
    grid-template-columns: 1fr;
  }
}

.p-common__title-en span {
  color: #008b4a;
}

/* estate archive */
.l-page__estate {
  background: #fff;
  color: #000;
}

.p-estate-archive {
  padding-bottom: 86px;
}

.p-estate-archive__lead {
  font-size: 14px;
  font-weight: 700;
  line-height: 2;
  max-width: 1050px;
}

.p-estate-filter,
.p-estate-status-filter,
.p-estate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.p-estate-filter {
  margin: 2rem auto 3rem;
}

.p-estate-status-filter {
  margin: 2rem auto 3rem;
}

.p-estate-filter a,
.p-estate-status-filter a {
  align-items: center;
  border: 1px solid #007e43;
  color: #007e43;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
  min-width: 112px;
  padding: 8px 16px;
}

.p-estate-filter a.is-active,
.p-estate-status-filter a.is-active {
  background: #007e43;
  color: #fff;
}

.head-archives-ti{
  text-align: center;
  font-size: 1.125rem;
}

.p-estate-tags {
  margin-bottom: 58px;
}

.p-estate-tags a {
  color: #007e43;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.p-estate-tags a.is-active {
  color: #cf3528;
}

.p-estate-list {
  display: grid;
  gap: 54px 28px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-estate-card {
  color: #000;
  display: block;
}

.p-estate-card__image {
  aspect-ratio: 330 / 220;
  background: #e8e8e8;
  margin: 0;
  overflow: hidden;
  position: relative;
border: 2px solid #e8e8e8;
}

.p-estate-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.p-estate-card__type {
  background: #050505;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  left: 0;
  line-height: 1;
  min-width: 72px;
  padding: 8px 12px;
  position: absolute;
  text-align: center;
  top: 0;
  z-index: 2;
}

.p-estate-card__noimage {
  align-items: center;
  color: #999;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.p-estate-card__sold {
  align-items: center;
  background: rgba(0, 0, 0, .58);
  color: #fff;
  display: flex;
  font-size: 30px;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  letter-spacing: 0;
  position: absolute;
  z-index: 1;
}

.p-estate-card__head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.p-estate-card__badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 20px;
}

.p-estate-card__badge {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
}

.p-estate-card__badge--new {
  background: #cf3528;
}

.p-estate-card__badge--pickup,
.p-estate-card__badge--negotiating {
  background: #008b4a;
}

.p-estate-card__title {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  margin: -3px 0 0;
  min-width: 0;
}

.p-estate-card__school {
  color: #333;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  margin: 2px 0 0;
}

.p-estate-card__price {
  color: #d83d2e;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin: 12px 0 12px;
}

.p-estate-card__price span {
  font-size: 28px;
  letter-spacing: 0;
}

.p-estate-card__price small {
  color: #111;
  font-size: 12px;
  font-weight: 700;
}

.p-estate-card__property-meta {
  color: #111;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 4px;
  line-height: 1.5;
  margin: -4px 0 12px;
}

.p-estate-card__property-meta p {
  margin: 0;
}

.p-estate-card__specs {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-estate-card__specs li {
  color: #5e4b33;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.p-estate-card__specs li::before {
  background: #d8c9b3;
  border-radius: 50%;
  content: '';
  height: 9px;
  left: 0;
  position: absolute;
  top: .42em;
  width: 9px;
}

.p-estate-pagination {
  margin-top: 76px;
  text-align: center;
}

.p-estate-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.p-estate-pagination .page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid #111;
  border-radius: 4px;
  color: #111;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.p-estate-pagination .page-numbers.current {
  background: #008b4a;
  border-color: #008b4a;
  color: #fff;
}

@media screen and (max-width: 980px) {
  .p-estate-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .p-estate-archive__lead {
    margin-bottom: 30px;
  }

  .p-estate-filter a,
  .p-estate-status-filter a {
    min-width: 0;
    width: calc(50% - 6px);
  }

  .p-estate-tags {
    justify-content: flex-start;
    margin-bottom: 40px;
  }

  .p-estate-list {
    gap: 42px;
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   contact page
   ============================================================ */

.l-page__contact {
  padding-block-end: 0;
}

.l-page__contact .p-common__title-en span {
  color: #008b4a;
}

/* ---------- hero section (メインビジュアル) ---------- */

/*
  .p-contact-main 単体ルールは他ページ共通のベース。
  .l-page__contact 内では hero レイアウト（実画像）に差し替えるため
  上書きする。重複していた ::after 背景画像方式と
  p-contact-hero__image 実画像方式を後者に統一。
*/

.p-contact-main {
  background: #f7f5f5;
  background-image: none;
  margin-top: clamp(2.5rem, 4.032vw + 1.593rem, 5.625rem);
  min-height: clamp(17.5rem, 12.419vw + 11.706rem, 24.125rem);
  overflow: hidden;
  position: relative;
}

.p-contact-main::before {
  content: none;
}

.p-contact-main::after {
  background: url(../img/contact/bg-main.webp) no-repeat right center / auto 100%;
  content: "";
  inset: 0 0 0 auto;
  position: absolute;
  width: min(74%, 90rem);
  z-index: 0;
}

.p-contact-main__inner {
  min-height: inherit;
  padding-block: clamp(1.5rem, 2.258vw + 0.992rem, 3.25rem) clamp(2.25rem, 2.581vw + 1.669rem, 4.25rem);
  position: relative;
  z-index: 1;
}

.p-contact-main .p-breadcrumb {
  margin-block-start: 0;
}

.p-contact-main__content {
  margin-top: clamp(1.5rem, 1.935vw + 1.065rem, 3rem);
  max-width: 40rem;
}

.p-contact-main__lead {
  font-size: clamp(1.375rem, 0.806vw + 1.194rem, 2rem);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.08em;
  max-width: 38rem;
}

.p-contact-main__lead span {
  color: #008b4a;
}

.p-contact-main__list {
  display: grid;
  gap: 0.625rem;
  margin-top: clamp(1.5rem, 1.29vw + 1.21rem, 2.5rem);
}

.p-contact-main__list li {
  font-size: clamp(0.938rem, 0.242vw + 0.883rem, 1.125rem);
  font-weight: 700;
  line-height: 1.6;
  padding-left: 2rem;
  position: relative;
}

.p-contact-main__list li::before {
  background: #008b4a;
  border-radius: 50%;
  color: #fff;
  content: "";
  height: 1.25rem;
  left: 0;
  position: absolute;
  top: 0.2em;
  width: 1.25rem;
}

.p-contact-main__list li::after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  height: 0.45rem;
  left: 0.43rem;
  position: absolute;
  top: 0.48em;
  transform: rotate(45deg);
  width: 0.25rem;
}

/* ---------- contactページ専用ヒーロー（実画像レイアウト） ---------- */
/*
  .p-contact-hero クラスが付いているときは ::before / ::after を無効化し、
  .p-contact-hero__image の実 <img> で背景を表現する。
*/

body .l-page__contact section.p-contact-main.p-contact-hero {
  background: #f7f5f5;
  height: auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

body .l-page__contact section.p-contact-main.p-contact-hero::before,
body .l-page__contact section.p-contact-main.p-contact-hero::after {
  content: none !important;
  display: none !important;
}

body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-hero__image {
  bottom: 0;
  height: auto;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 0;
}

body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-hero__image img {
  display: block;
  height: 100%;
  inset: 0;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  position: absolute;
  transform: none;
  width: 100%;
}

body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-main__inner {
  min-height: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-main__content {
  margin-top: clamp(1.25rem, 1.29vw + 0.96rem, 2.25rem);
  max-width: 40rem;
}

body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-main__lead {
  max-width: 38rem;
}

/* SP */
@media screen and (max-width: 767px) {
  .p-contact-main {
    min-height: 0;
  }

  .p-contact-main::after {
    background-position: right center;
    background-size: auto 100%;
    filter: saturate(1.12) contrast(1.08);
    inset: 0;
    width: auto;
  }

  .p-contact-main__inner {
    min-height: 0;
    padding-block: 1.25rem 1.75rem;
  }

  .p-contact-main__content {
    max-width: 100%;
  }

  .p-contact-main__content,
  .p-contact-main .p-breadcrumb {
    text-shadow: 0 1px 0 #fff, 0 0 0.75rem rgba(255, 255, 255, 0.95);
  }

  

  /* hero SP：<img>で背景を表現 */
  body .l-page__contact section.p-contact-main.p-contact-hero {
    background-image: none;
    margin-top: 2rem;
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-hero__image {
    bottom: 0;
    display: block;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 0;
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(247, 245, 245, 0.85) 0%,
      rgba(247, 245, 245, 0) 65%
    );
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-hero__image img {
    display: block;
    height: 100%;
    left: 0;
    max-width: none;
    object-fit: cover;
    object-position: 60% center;
    opacity: 0.75;
    position: absolute;
    top: 0;
    transform: none;
    width: 100%;
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-main__inner {
    min-height: 50vw;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
    position: relative;
    z-index: 1;
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-breadcrumb {
    margin-block-start: 0;
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-main__content {
    margin-top: 0.875rem;
    max-width: 100%;
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-main__content,
  body .l-page__contact section.p-contact-main.p-contact-hero .p-breadcrumb {
    text-shadow: 0 1px 0 #fff, 0 0 0.75rem rgba(255, 255, 255, 0.95);
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-main__lead {
    font-size: clamp(1.25rem, 1.29vw + 0.96rem, 1.5rem);
    line-height: 1.75;
  }

  body .l-page__contact section.p-contact-main.p-contact-hero .p-contact-main__list {
    gap: 0.5rem;
    margin: 1rem auto 2rem;
  }
}

/* ---------- お問い合わせ方法 ---------- */

.p-contact-page-heading {
  color: #008b4a;
  font-size: clamp(1.25rem, 0.323vw + 1.177rem, 1.5rem);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.p-contact-method {
  padding-block: clamp(3.5rem, 3.226vw + 2.774rem, 6rem);
}

.p-contact-method__list {
  align-items: stretch;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  margin-top: clamp(2rem, 1.29vw + 1.71rem, 3rem);
}

.p-contact-method__item {
  align-items: center;
  border: 1px solid #008b4a;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 18.75rem;
  padding: clamp(1.5rem, 1.29vw + 1.21rem, 2.5rem) 1.5rem;
  text-align: center;
}

.p-contact-method__icon {
  align-items: center;
  display: flex;
  height: 4.25rem;
  justify-content: center;
  width: 4.25rem;
}

.p-contact-method__icon img {
  height: 4.25rem;
  width: 4.25rem;
}

.p-contact-method__title {
  color: #008b4a;
  font-size: clamp(1.125rem, 0.242vw + 1.071rem, 1.313rem);
  font-weight: 700;
  line-height: 1.5;
  margin-top: 1.25rem;
}

.p-contact-method__text {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.8;
  margin-top: 0.875rem;
  margin-bottom: 0.25rem;
}

.p-contact-method__tel,
.p-contact-method__line {
  color: #008b4a;
  font-size: clamp(1.5rem, 0.484vw + 1.391rem, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.p-contact-method__note {
  font-size: 0.813rem;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 0.8rem;
}

.p-contact-method__button {
  align-items: center;
  border: 1px solid #111;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.4;
  margin-block-start: auto;
  margin-top: auto;
  min-height: 2.625rem;
  min-width: 14rem;
  padding: 0.5rem 2.25rem 0.5rem 1rem;
  position: relative;
}

.p-contact-method__button::after {
  background: #008b4a;
  border-radius: 50%;
  content: "";
  height: 1.4375rem;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.4375rem;
}

.p-contact-method__button::before {
  border-color: transparent transparent transparent #fff;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  content: "";
  height: 0;
  position: absolute;
  /* 円(right:0.75rem, 幅1.4375rem)の中心に三角を揃える */
  right: calc(0.75rem + 1.4375rem / 2 - 7px / 2);
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  z-index: 1;
}

@media screen and (max-width: 980px) {
  .p-contact-method__list {
    grid-template-columns: 1fr;
  }

  .p-contact-method__item {
    min-height: 0;
  }
}

@media screen and (max-width: 767px) {
  .p-contact-method__button {
    min-width: 0;
    width: 100%;
  }
}

/* ---------- フォームセクション ---------- */

.p-contact-form-section {
  background: #e5dcd1;
  padding-block: clamp(3.75rem, 4.032vw + 2.843rem, 6.875rem);
}

.p-contact-form-section .p-contact-page-heading {
  margin-bottom: clamp(2rem, 1.29vw + 1.71rem, 3rem);
}

.p-contact-page-form {
  max-width: 58rem;
  padding-inline: 0;
}

.p-contact-page-form input[type="text"],
.p-contact-page-form input[type="tel"],
.p-contact-page-form input[type="email"],
.p-contact-page-form textarea {
  background: #fff;
  border: 1px solid transparent;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  width: 100%;
}

.p-contact-page-form textarea {
  min-height: 11.5rem;
  resize: vertical;
}

.p-contact-page-form__checks {
  display: grid;
  gap: 0.5rem;
}

.p-contact-page-form__checks label,
.p-contact-page-form__privacy label {
  align-items: center;
  display: flex;
  gap: 0.625rem;
  line-height: 1.6;
}

.p-contact-page-form__notice {
  color: #c23321;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 48rem;
  text-align: center;
}

.p-contact-page-form__privacy {
  background: #fff;
  border: 1px solid #008b4a;
  border-radius: 5px;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.625rem;
  padding: 1.5rem 2rem;
  text-align: center;
}

.p-contact-page-form__privacy p,
.p-contact-page-form__privacy a {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.8;
}

.p-contact-page-form__privacy a {
  text-decoration: underline;
}

.p-contact-page-form__privacy label {
  align-items: center;
  display: inline-flex;
  gap: 0.625rem;
  justify-content: center;
}

.p-contact-page-form__privacy-link {
  display: inline-block;
}

.p-contact-form-section .p-contact__submit {
  margin-block-start: clamp(1.5rem, 1.29vw + 1.21rem, 2.5rem);
}

@media screen and (max-width: 767px) {
  .p-contact-page-form__privacy {
    padding: 1.25rem;
  }
}

/* ---------- チェックボックス ---------- */

.p-contact-page-form__checks.p-contact__data-checkbox {
  row-gap: 0.375rem;
}

.p-contact-page-form__checks.p-contact__data-checkbox input {
  opacity: 0;
  position: absolute;
}

.p-contact-page-form__checks.p-contact__data-checkbox span {
  padding-inline-start: 1.875rem;
}

.p-contact-page-form__checks.p-contact__data-checkbox span::before {
  background: #fff;
  border: 1px solid #b3b3b3;
  border-radius: 3px;
  height: 1rem;
  left: 0;
  top: 0.35em;
  width: 1rem;
}

.p-contact-page-form__checks.p-contact__data-checkbox span::after {
  background: transparent;
  border-bottom: 2px solid #fff;
  border-radius: 0;
  border-right: 2px solid #fff;
  height: 0.55rem;
  left: 0.34rem;
  top: 0.5em;
  transform: rotate(45deg);
  transition: opacity 0.2s ease;
  width: 0.32rem;
}

.p-contact-page-form__checks.p-contact__data-checkbox input:checked + span::before {
  background: #008b4a;
  border-color: #008b4a;
}

.p-contact-page-form__checks.p-contact__data-checkbox input:checked + span::after {
  opacity: 1;
}

/* ---------- プライバシーチェックボックス ---------- */

.p-contact-page-form__privacy input[type="checkbox"] {
  appearance: none;
  background: #fff;
  border: 1px solid #b3b3b3;
  border-radius: 3px;
  flex: 0 0 auto;
  height: 1.125rem;
  position: relative;
  width: 1.125rem;
}

.p-contact-page-form__privacy input[type="checkbox"]:checked {
  background: #008b4a;
  border-color: #008b4a;
}

.p-contact-page-form__privacy input[type="checkbox"]:checked::after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  height: 0.55rem;
  left: 0.35rem;
  position: absolute;
  top: 0.15rem;
  transform: rotate(45deg);
  width: 0.32rem;
}

/* ---------- プライバシーモーダル ---------- */

.p-contact-privacy-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

.p-contact-privacy-modal:target,
.p-contact-privacy-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

html.is-modal-open {
  overflow: hidden;
}

.p-contact-privacy-modal__overlay {
  background: rgba(0, 0, 0, 0.62);
  inset: 0;
  position: absolute;
}

.p-contact-privacy-modal__body {
  background: #fff;
  max-height: calc(100vh - 3rem);
  max-width: min(980px, calc(100vw - 2rem));
  overflow: auto;
  padding: clamp(1rem, 1.613vw + 0.637rem, 2.25rem);
  position: relative;
  width: 100%;
}

.p-contact-privacy-modal__body img {
  display: block;
  height: auto;
  width: 100%;
}

.p-contact-privacy-modal__close {
  align-items: center;
  border: 1px solid #111;
  border-radius: 5px;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 1.25rem;
  justify-content: center;
  line-height: 1.5;
  margin: 2rem auto 0;
  max-width: 24rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
}

.p-contact-privacy-modal__close span {
  border: 1px solid #999;
  height: 1.5rem;
  position: relative;
  width: 1.5rem;
}

.p-contact-privacy-modal__close span::before,
.p-contact-privacy-modal__close span::after {
  background: #999;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 1rem;
}

.p-contact-privacy-modal__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.p-contact-privacy-modal__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .p-contact-privacy-modal__body {
    max-height: calc(100vh - 1.5rem);
    max-width: calc(100vw - 1rem);
  }
}

.p-contact-privacy-modal__content {
  font-size: 1rem;
  line-height: 2;
}

.p-contact-privacy-modal__content section + section {
  margin-top: 2rem;
}

.p-contact-privacy-modal__content h3 {
  border-bottom: 2px dotted #111;
  font-size: clamp(1.125rem, 0.323vw + 1.052rem, 1.375rem);
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 1rem;
  padding: 0 0 0.75rem 1.75rem;
  position: relative;
}

.p-contact-privacy-modal__content h3::before {
  border: 3px solid #008b4a;
  border-radius: 50%;
  content: "";
  height: 0.7rem;
  left: 0;
  position: absolute;
  top: 0.45em;
  width: 0.7rem;
}

.p-contact-privacy-modal__content p {
  margin: 0;
}

.p-contact-privacy-modal__content ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.p-contact-privacy-modal__content li {
  padding-left: 1em;
  position: relative;
}

.p-contact-privacy-modal__content li::before {
  content: "・";
  left: 0;
  position: absolute;
}

/* ============================================================
   reform page
   ============================================================ */

.l-page__reform {
  padding-block-end: 0;
}

/* ---------- hero ---------- */

.p-reform-hero .p-contact-main__lead {
  font-size: clamp(1.5rem, 1.129vw + 1.246rem, 2.375rem);
}

.p-reform-hero .p-contact-main__lead span {
  color: #008b4a;
}

.p-reform-hero__text {
  font-size: clamp(0.875rem, 0.242vw + 0.821rem, 1.063rem);
  font-weight: 500;
  line-height: 1.9;
  margin-top: 1rem;
  max-width: 36rem;
}

/* ---------- モデルハウス ---------- */

.p-reform-model__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 1.613vw + 1.137rem, 2.75rem);
}

.p-reform-model__item--wide {
  grid-column: span 2;
}

.p-reform-model__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.p-reform-model__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.3s ease;
}

@media (any-hover: hover) {
  .p-reform-model__item:hover .p-reform-model__image img {
    scale: 1.05;
  }
}

.p-reform-model__caption {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 0.5rem;
  color: #555;
}

@media screen and (max-width: 767px) {
  .p-reform-model__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-reform-model__item--wide {
    grid-column: span 2;
  }
}

/* ---------- 4つの安心 ---------- */

.p-reform-reason {
  background: #e7edeb;
  padding-block: clamp(2.5rem, 2.419vw + 1.956rem, 4.375rem);
}

.p-reform-reason .l-inner {
  max-width: 1280px;
}

.p-reform-reason__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 1.613vw + 1.137rem, 2.75rem);
}

.p-reform-reason__item {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1.25rem 1.75rem;
  position: relative;
}

.p-reform-reason__number {
  display: block;
  font-family: "Karla", sans-serif;
  font-size: clamp(2.5rem, 1.613vw + 2.137rem, 3.75rem);
  font-weight: 700;
  color: #008b4a;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.p-reform-reason__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
}

.p-reform-reason__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-reform-reason__title {
  font-size: clamp(1rem, 0.323vw + 0.927rem, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

.p-reform-reason__text {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.9;
  margin-top: 0.625rem;
  color: #333;
}

@media screen and (max-width: 980px) {
  .p-reform-reason__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .p-reform-reason__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- リフォームメニュー ---------- */

.p-reform-menu__slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 1.613vw + 1.137rem, 2.75rem);
}

.p-reform-menu__slide {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.p-reform-menu__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-reform-menu__pdf {
  margin-top: clamp(1.25rem, 1.129vw + 0.996rem, 2.125rem);
  text-align: center;
}

.p-reform-menu__pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #c23321;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.875rem 2.5rem;
  border-radius: 4px;
  letter-spacing: 0.1em;
  position: relative;
}

.p-reform-menu__pdf-icon {
  width: 1.5rem;
  height: 1.5rem;
  background: url(../img/common/icon-button-white.webp) no-repeat center / contain;
  flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .p-reform-menu__slider {
    grid-template-columns: 1fr;
  }
}

/* ---------- カテゴリリスト ---------- */

.p-reform-category__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: clamp(1.25rem, 1.129vw + 0.996rem, 2.125rem);
}

.p-reform-category__link {
  display: block;
}

.p-reform-category__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.p-reform-category__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.3s ease;
}

@media (any-hover: hover) {
  .p-reform-category__link:hover .p-reform-category__image img {
    scale: 1.05;
  }
}

.p-reform-category__name {
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 980px) {
  .p-reform-category__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .p-reform-category__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

/* ============================================================
   reform page refinements
   ============================================================ */
body .l-page__reform section.p-contact-main.p-contact-hero {
  background: #f7f5f5;
  height: auto;
  margin-top: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

body .l-page__reform section.p-contact-main.p-contact-hero::before,
body .l-page__reform section.p-contact-main.p-contact-hero::after {
  content: none !important;
  display: none !important;
}

body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-hero__image {
  bottom: 0;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-hero__image img {
  display: block;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center right;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-main__inner {
  min-height: clamp(18.75rem, 12.903vw + 15.847rem, 28.75rem);
  padding-block: clamp(1.125rem, 0.968vw + 0.907rem, 1.875rem) clamp(2.5rem, 2.419vw + 1.956rem, 4.375rem);
  position: relative;
  z-index: 1;
}

body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-main__content {
  margin-top: clamp(2rem, 2.581vw + 1.419rem, 4rem);
  max-width: 43rem;
}

.p-reform-hero__title {
  align-items: baseline;
  display: flex;
  gap: 0.75rem;
}

.p-reform-hero__title-en {
  font-size: clamp(2rem, 1.29vw + 1.71rem, 3rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.p-reform-hero__title-en span {
  color: #008b4a;
}

.p-reform-hero__title-jp {
  font-size: clamp(0.875rem, 0.242vw + 0.821rem, 1.063rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.p-reform-hero .p-contact-main__lead {
  font-size: clamp(1.375rem, 0.968vw + 1.157rem, 2.125rem);
  line-height: 1.75;
  margin-top: 1.125rem;
  max-width: 42rem;
}

.p-reform-hero__text {
  max-width: 34rem;
}

.p-reform-model__list {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(18rem, 2fr);
  margin-inline: auto;
  max-width: 70rem;
}

.p-reform-model__item--wide {
  grid-column: auto;
}

.p-reform-model__image {
  background: #b5b5b5;
}

.p-reform-model__image img,
.p-reform-menu__slide img,
.p-reform-category__image img,
.p-reform-reason__image img {
  display: block;
}

.p-reform-menu__slider {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
  max-width: 68rem;
}

.p-reform-menu__slide {
  background: #999;
  aspect-ratio: 16 / 9;
}

.p-reform-category + .p-reform-category {
  margin-top: clamp(2rem, 2.419vw + 1.456rem, 3.875rem);
}

.p-reform-category__list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p-reform-category__image {
  aspect-ratio: 16 / 9;
  background: #eee;
}

.p-reform-category__name {
  font-weight: 500;
}@media screen and (max-width: 980px) {
  .p-reform-model__list,
  .p-reform-menu__slider,
  .p-reform-category__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-hero__image::after {
    background: rgba(247, 245, 245, 0.74);
    content: "";
    inset: 0;
    position: absolute;
  }

  body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-main__inner {
    min-height: 0;
  }

  .p-reform-hero__title {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .p-reform-model__list,
  .p-reform-menu__slider,
  .p-reform-category__list {
    grid-template-columns: 1fr 1fr;
  }

  .p-reform-model__item--wide {
    grid-column: span 2;
  }}

/* footer logo fix */
.p-footer__logo img {
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

/* reform adjustment: hero image position and hover */
body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-hero__image img {
  object-position: 82% center;
}

@media screen and (max-width: 767px) {
  body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-hero__image img {
    object-position: 72% center;
  }
}

.l-page__reform .p-reform-model__image img,
.l-page__reform .p-reform-category__image img {
  transition: none;
}

@media (any-hover: hover) {
  .l-page__reform .p-reform-model__item:hover .p-reform-model__image img,
  .l-page__reform .p-reform-category__link:hover .p-reform-category__image img {
    scale: 1;
  }
}

/* reform hero: match contact visual positioning */
body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-hero__image img {
  object-fit: contain;
  object-position: right center;
}

@media screen and (max-width: 767px) {
  body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-hero__image img {
    object-fit: cover;
    object-position: 60% center;
  }
}

/* shared contact-style hero for contact/reform */
body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero {
  background: #ecf8ff;
  height: auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero::before,
body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero::after {
  content: none !important;
  display: none !important;
}

body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero .p-contact-hero__image {
  bottom: 0;
  height: auto;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 0;
}

body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero .p-contact-hero__image img {
  display: block;
  height: 100%;
  inset: 0;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  position: absolute;
  transform: none;
  width: 100%;
}

body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero .p-contact-main__inner {
  min-height: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero .p-contact-main__content {
  margin-top: clamp(1.25rem, 1.29vw + 0.96rem, 2.25rem);
  max-width: 40rem;
}

body .l-page__reform section.p-contact-main.p-contact-hero {
  margin-top: 0;
}

body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-main__inner {
  min-height: clamp(18.75rem, 12.903vw + 15.847rem, 28.75rem);
}

body .l-page__reform section.p-contact-main.p-contact-hero .p-contact-main__content {
  max-width: 43rem;
}

@media screen and (max-width: 767px) {
  body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero .p-contact-hero__image::after {
    background: rgba(255, 255, 255, 0.72);
    content: "";
    inset: 0;
    position: absolute;
  }

  body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero .p-contact-hero__image img {
    object-fit: cover;
    object-position: 60% center;
    opacity: 0.75;
  }

  body :is(.l-page__contact, .l-page__reform) section.p-contact-main.p-contact-hero .p-contact-main__inner {
    min-height: 50vw;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
  }
}

/* reform model section: match design data */
.p-reform-model {
  padding-block: clamp(3rem, 2.581vw + 2.419rem, 5rem);
}

.p-reform-model__heading {
  font-size: clamp(1.5rem, 0.645vw + 1.355rem, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

.p-reform-model__heading span {
  color: #008b4a;
}

.p-reform-model__list {
  align-items: start;
  display: grid;
  gap: clamp(1.25rem, 1.613vw + 0.887rem, 2.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(28rem, 2fr);
  margin-inline: auto;
  margin-top: clamp(2.5rem, 2.419vw + 1.956rem, 4.375rem);
  max-width: 75rem;
}

.p-reform-model__item--wide {
  grid-column: auto;
}

.p-reform-model__image {
  aspect-ratio: 300 / 178;
  background: #c9c9c9;
  border-radius: 0;
  overflow: hidden;
}

.p-reform-model__item--wide .p-reform-model__image {
  aspect-ratio: 587 / 284;
}

.p-reform-model__caption {
  color: #000;
  font-size: clamp(0.938rem, 0.161vw + 0.901rem, 1.063rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.75;
  margin-top: 0.875rem;
  text-align: center;
}

.p-reform-model__item--wide .p-reform-model__caption {
  text-align: center;
}

@media screen and (max-width: 980px) {
  .p-reform-model__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-reform-model__item--wide {
    grid-column: span 2;
  }
}

@media screen and (max-width: 600px) {
  .p-reform-model__list {
    grid-template-columns: 1fr;
  }

  .p-reform-model__item--wide {
    grid-column: auto;
  }
}

/* reform reason section: match design data */
.p-reform-reason {
  background: linear-gradient(to bottom, #e7edeb 0%, #e7edeb 70%, #fff 70%, #fff 100%);
  padding-block: clamp(3.75rem, 3.226vw + 3.024rem, 6.25rem) clamp(2.5rem, 2.419vw + 1.956rem, 4.375rem);
}

.p-reform-reason .p-common__catch-title {
  color: #000;
  font-size: clamp(1.5rem, 0.645vw + 1.355rem, 2rem);
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
}

.p-reform-reason .p-common__catch-title span {
  color: #008b4a;
}

.p-reform-reason__list {
  gap: clamp(1rem, 1.29vw + 0.71rem, 2rem);
  margin-top: clamp(3.75rem, 3.226vw + 3.024rem, 6.25rem);
}

.p-reform-reason__item {
  background: #fff;
  border: 1px solid #008b4a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: clamp(2.25rem, 1.935vw + 1.815rem, 3.75rem) clamp(1.25rem, 0.645vw + 1.105rem, 1.75rem) clamp(1.75rem, 0.968vw + 1.532rem, 2.5rem);
  position: relative;
}

.p-reform-reason-main__image {
  margin-block-start: clamp(2rem, 1.29vw + 1.71rem, 3rem);
  margin-inline: auto;
  width: 85%;
}

.p-reform-reason-main__image img {
  display: block;
  height: auto;
  width: 100%;
}

.p-reform-reason__number {
  color: #007e43;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(4rem, 2.581vw + 3.419rem, 6rem);
  font-weight: 700;
  letter-spacing: 0;
  left: 50%;
  line-height: 1;
  margin-bottom: 0;
  position: absolute;
  top: 0;
  transform: translate(-50%, -63%);
}

.p-reform-reason__title {
  color: #008b4a;
  font-size: clamp(1.25rem, 0.323vw + 1.177rem, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.55;
  margin-top: 0;
  order: 1;
  text-align: center;
}

.p-reform-reason__image {
  aspect-ratio: 247 / 150;
  border-radius: 0;
  margin-top: clamp(1rem, 0.645vw + 0.855rem, 1.5rem);
  order: 2;
}

.p-reform-reason__text {
  color: #000;
  font-size: clamp(0.938rem, 0.161vw + 0.901rem, 1.063rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 2;
  margin-top: clamp(1rem, 0.645vw + 0.855rem, 1.5rem);
  order: 3;
}

@media screen and (max-width: 980px) {
  .p-reform-reason {
    background: linear-gradient(to bottom, #e7edeb 0%, #e7edeb 42%, #fff 42%, #fff 100%);
  }

  .p-reform-reason__list {
    row-gap: 4rem;
  }
}

@media screen and (max-width: 600px) {
  .p-reform-reason {
    background: linear-gradient(to bottom, #e7edeb 0%, #e7edeb 22%, #fff 22%, #fff 100%);
  }

  .p-reform-reason-main__image {
    width: 100%;
  }
}

/* reform reason desktop sizing */
@media screen and (min-width: 981px) {
  .p-reform-reason .l-inner {
    max-width: 1238px;
  }

  .p-reform-reason__list {
    grid-template-columns: repeat(4, 285px);
    justify-content: center;
  }

  .p-reform-reason__number {
    font-size: 4.75rem;
  }

  .p-reform-reason__title {
    font-size: 23px;
  }
}

/* reform menu section: match design data */
.p-reform-menu {
  padding-block: clamp(3rem, 2.581vw + 2.419rem, 5rem) clamp(2.5rem, 2.419vw + 1.956rem, 4.375rem);
}

.p-reform-menu .p-common__heading-border {
  font-size: clamp(1.5rem, 0.323vw + 1.427rem, 1.75rem);
}

.p-reform-menu .p-common__text {
  color: #000;
  font-size: clamp(1rem, 0.161vw + 0.964rem, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: clamp(2.25rem, 1.935vw + 1.815rem, 3.75rem) !important;
  text-align: center;
}

.p-reform-menu__slider {
  display: grid;
  gap: clamp(1.5rem, 1.29vw + 1.21rem, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 580px));
  justify-content: center;
  margin-inline: auto;
  margin-top: clamp(2.5rem, 2.419vw + 1.956rem, 4.375rem);
  max-width: 1200px;
}

.p-reform-menu__slide {
  aspect-ratio: 580 / 407;
  background: #999;
}

.p-reform-menu__slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.p-reform-menu__pdf {
  margin-top: clamp(3rem, 2.581vw + 2.419rem, 5rem);
}

.p-reform-menu__pdf-link {
  border-radius: 4px;
  font-size: clamp(1.125rem, 0.484vw + 1.016rem, 1.5rem);
  justify-content: center;
  min-height: 80px;
  min-width: min(100%, 465px);
  padding: 1rem 3rem;
}

@media screen and (max-width: 767px) {
  .p-reform-menu__slider {
    grid-template-columns: 1fr;
  }

  .p-reform-menu__pdf-link {
    min-height: 64px;
    min-width: 0;
    width: 100%;
  }
}

/* reform category blocks */
.p-reform-category {
  padding-block: clamp(0.75rem, 0.645vw + 0.605rem, 1.25rem);
}

.l-page__section.p-reform-category {
  margin-block: 0;
  padding-block-start: clamp(0.75rem, 0.645vw + 0.605rem, 1.25rem);
}

.l-page__section.p-reform-category + .l-page__section.p-reform-category {
  margin-block-start: clamp(1.75rem, 1.613vw + 1.387rem, 3rem);
}

.p-reform-category .p-common__heading-dashed {
  font-size: clamp(1.125rem, 0.323vw + 1.052rem, 1.375rem);
  line-height: 1.8;
  margin: 0;
  padding-bottom: 1.125rem;
}

.p-reform-category__list {
  display: grid;
  gap: clamp(1.5rem, 2.258vw + 0.992rem, 3.25rem) clamp(1rem, 1.613vw + 0.637rem, 2.25rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(1.25rem, 1.29vw + 0.96rem, 2.25rem);
}

.p-reform-category__image {
  aspect-ratio: 285 / 200;
  background: #e5e5e5;
}

.p-reform-category__name {
  color: #000;
  font-size: clamp(1rem, 0.323vw + 0.927rem, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin-top: 1.125rem;
  text-align: center;
}

@media screen and (max-width: 980px) {
  .p-reform-category__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 600px) {
  .p-reform-category__list {
    gap: 1.5rem 1rem;
    grid-template-columns: 1fr;
  }
}

/* reform category: use common four-column component */
.p-reform-category .p-common__col-four.p-reform-category__list {
  display: grid;
  gap: clamp(1.5rem, 2.258vw + 0.992rem, 3.25rem) clamp(1rem, 1.613vw + 0.637rem, 2.25rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(1.25rem, 1.29vw + 0.96rem, 2.25rem);
}

.p-reform-category .p-common__col-four-content {
  display: block;
}

.p-reform-category .p-common__image.p-reform-category__image {
  aspect-ratio: 285 / 200;
  margin: 0;
  width: 100%;
}

.p-reform-category .p-common__image.p-reform-category__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.p-reform-category .p-common__col-text.p-reform-category__name {
  margin-top: 1.125rem;
  text-align: center;
}

@media screen and (max-width: 980px) {
  .p-reform-category .p-common__col-four.p-reform-category__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 600px) {
  .p-reform-category .p-common__col-four.p-reform-category__list {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .p-reform-category {
    padding-block: 0.75rem;
  }

  .l-page__section.p-reform-category + .l-page__section.p-reform-category {
    margin-block-start: 1.75rem;
  }
}

/* reform category text: keep template defaults */
.p-reform-category .p-common__col-text.p-reform-category__name {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin-top: 0.75rem;
  text-align: center;
}

/* reform category heading alignment */
.p-reform-category .p-common__heading-dashed {
  line-height: 1.6;
  padding-block-end: 1.125rem;
}

.p-reform-category .p-common__heading-dashed::before {
  top: 0.58em;
}

/* reform category heading: restore template default alignment */
.p-reform-category .p-common__heading-dashed {
  font-size: clamp(1.125rem, 0.161vw + 1.089rem, 1.25rem);
  line-height: 2.9;
  padding-block-end: 0.6875rem;
  padding-inline-start: 2rem;
}

.p-reform-category .p-common__heading-dashed::before {
  left: 0.5rem;
  top: 1.2em;
}
/* reform CTA */
.p-reform-cta {
  background: #fff;
  margin-top: clamp(3rem, 3.226vw + 2.274rem, 5.5rem);
  padding-block: 0 clamp(3rem, 2.581vw + 2.419rem, 5rem);
}

.p-reform-cta__inner {
  align-items: center;
  background: #fff;
  border: 1px solid #008b4a;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 210px;
  padding: 28px 70px;
}

.p-reform-cta__text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0 0 20px;
  text-align: center;
  white-space: nowrap;
}

.p-reform-cta__button {
  text-align: center;
}

.p-reform-cta__button .c-button__main-link {
  align-items: center;
  background: #c93223;
  border: 0;
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 60px;
  min-width: 300px;
  padding: 0 56px 0 24px;
  position: relative;
  white-space: nowrap;
}

.p-reform-cta__button .c-button__main-link::before {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 24px;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
}

.p-reform-cta__button .c-button__main-link::after {
  border-bottom: 4px solid transparent;
  border-left: 6px solid #c93223;
  border-top: 4px solid transparent;
  content: "";
  height: 0;
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
}

.p-reform-cta__tel {
  align-items: center;
  border-left: 1px solid #008b4a;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  margin: 0;
  padding-left: 64px;
}

.p-reform-cta__tel-link {
  display: block;
  grid-column: 1;
  text-align: center;
  white-space: nowrap;
}

.p-reform-cta__tel-number {
  align-items: center;
  color: #000;
  display: inline-flex;
  font-size: 42px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.p-reform-cta__tel-number::before {
  background: url(../img/common/icon-tel.webp) no-repeat center / contain;
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  height: 40px;
  position: relative;
  top: 4px;
  width: 40px;
}

.p-reform-cta__tel-note {
  color: #000;
  font-size: 16px;
  font-weight: 500;
  grid-column: 1;
  line-height: 1.8;
  margin: 14px 0 0;
  text-align: center;
  white-space: nowrap;
}

.p-reform-cta__parking {
  align-items: center;
  aspect-ratio: 1;
  background: #008b4a;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 24px;
  font-weight: 700;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin: 0;
  text-align: center;
  width: 112px;
}

@media screen and (max-width: 1100px) {
  .p-reform-cta__inner {
    padding-inline: 32px;
  }

  .p-reform-cta__tel {
    padding-left: 32px;
  }

  .p-reform-cta__tel-number {
    font-size: 34px;
  }
}

@media screen and (max-width: 900px) {
  .p-reform-cta__inner {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .p-reform-cta__tel {
    border-left: 0;
    border-top: 1px solid #008b4a;
    padding-left: 0;
    padding-top: 28px;
  }
}

@media screen and (max-width: 600px) {
  .p-reform-cta__inner {
    padding: 24px 18px;
  }

  .p-reform-cta__text {
    font-size: 22px;
    white-space: normal;
  }

  .p-reform-cta__button .c-button__main-link {
    min-width: 0;
    width: 100%;
  }

  .p-reform-cta__tel {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .p-reform-cta__tel-number {
    font-size: 28px;
  }

  .p-reform-cta__tel-note {
    white-space: normal;
  }

  .p-reform-cta__parking {
    grid-column: 1;
    grid-row: auto;
    margin-top: 16px;
    width: 96px;
  }
}


/* reform CTA layout correction */
.p-reform-cta__inner {
  align-items: center;
  column-gap: 64px;
}

.p-reform-cta__text {
  align-self: end;
  grid-column: 1;
  grid-row: 1;
}

.p-reform-cta__button {
  align-self: start;
  grid-column: 1;
  grid-row: 2;
}

.p-reform-cta__tel {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media screen and (max-width: 900px) {
  .p-reform-cta__text,
  .p-reform-cta__button,
  .p-reform-cta__tel {
    grid-column: 1;
    grid-row: auto;
  }
}

/* reform CTA button arrow visibility */
.p-reform-cta__button .c-button__main-link::before {
  z-index: 1;
}

.p-reform-cta__button .c-button__main-link::after {
  background: transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #c93223;
  border-radius: 0;
  border-top: 4px solid transparent;
  height: 0;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  z-index: 2;
}

/* reform CTA button uses contact-method button icon */
.p-reform-cta__link.p-contact-method__button {
  background: #c93223;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0;
  min-height: 60px;
  min-width: 300px;
  padding: 0.5rem 3.5rem 0.5rem 1.5rem;
}

.p-reform-cta__link.p-contact-method__button::after {
  background: #fff;
  height: 24px;
  right: 1.125rem;
  width: 24px;
}

.p-reform-cta__link.p-contact-method__button::before {
  border-color: transparent transparent transparent #c93223;
  border-width: 4px 0 4px 7px;
  right: calc(1.125rem + 24px / 2 - 7px / 2);
  z-index: 1;
}

@media screen and (max-width: 600px) {
  .p-reform-cta__link.p-contact-method__button {
    min-width: 0;
    width: 100%;
  }
}

.p-reform-menu__slide {
  cursor: zoom-in;
}

.p-reform-lightbox {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 1.25rem;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.p-reform-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.p-reform-lightbox__overlay {
  background: rgba(0, 0, 0, 0.72);
  border: 0;
  cursor: zoom-out;
  inset: 0;
  padding: 0;
  position: absolute;
}

.p-reform-lightbox__body {
  max-height: 90vh;
  max-width: min(90vw, 1100px);
  position: relative;
  z-index: 1;
}

.p-reform-lightbox__image {
  display: block;
  height: auto;
  max-height: 90vh;
  max-width: 100%;
  object-fit: contain;
}

.p-reform-lightbox__close {
  align-items: center;
  background: #008b4a;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -1rem;
  top: -1rem;
  width: 2.5rem;
  z-index: 2;
}

.p-reform-lightbox__close::before,
.p-reform-lightbox__close::after {
  background: #fff;
  content: "";
  height: 0.125rem;
  position: absolute;
  width: 1.125rem;
}

.p-reform-lightbox__close::before {
  transform: rotate(45deg);
}

.p-reform-lightbox__close::after {
  transform: rotate(-45deg);
}

@media screen and (max-width: 600px) {
  .p-reform-lightbox {
    padding: 0.875rem;
  }

  .p-reform-lightbox__close {
    right: 0;
    top: -3rem;
  }
}

.main-img {
  margin: 48px auto 0;
  width: 90%;
}

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

@media screen and (max-width: 767px) {
  .main-img {
    margin-top: 28px;
    width: 100%;
  }
}

.p-top-news__head-link,
.p-top-works__image,
.p-top-spec__image {
  display: block;
  overflow: hidden;
}

.p-top-news__head-link {
  aspect-ratio: 570 / 361;
}

.p-top-works__image {
  aspect-ratio: 770 / 491;
}

.p-top-spec__image {
  aspect-ratio: 570 / 400;
}

.p-top-news__head img,
.p-top-works__image img,
.p-top-spec__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}


