/* ========================================
   TOP：共通レイアウト
======================================== */
.page-container {
  width: min(1080px, calc(100% - 48px));
  margin: auto;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 2.22vw, 32px);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.page-heading__icon {
  width: 28px;
  height: 30px;
  flex: none;
}

/* ========================================
   TOP：ボタン
======================================== */
.primary-button,
.outline-button {
  position: relative;
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 14px 64px 14px 48px;
  border-radius: 100px;
  font-size: clamp(18px, 1.39vw, 20px);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.primary-button {
  color: #fff;
  background: #d44446;
}

.outline-button {
  border: 1px solid #6e5d5d;
  font-weight: 700;
}

/* ========================================
   TOP：ファーストビュー
======================================== */
.home-hero {
  overflow: hidden;
  padding: 80px 24px 0;
  background: #fff url("assets/top-fv-bg.webp") center / cover no-repeat;
}

.home-hero__inner {
  position: relative;
  width: min(1080px, 100%);
  min-height: 610px;
  margin: auto;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.home-hero__copy {
  min-width: 0;
}

.home-hero__title {
  font-size: clamp(28px, 4.17vw, 60px);
  font-weight: 700;
  line-height: 1.4;
}

.home-hero__text {
  margin-top: 30px;
  font-size: clamp(16px, 1.25vw, 18px);
}

.home-hero__buttons {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 20px;
}

.home-hero__people {
  position: absolute;
  bottom: -17%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

/* ========================================
   TOP：カテゴリーから探す
======================================== */
.browse-section {
  padding: 90px 0;
  background: #fbf9f5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.category-card {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 20px;
  font-weight: 700;
}

.category-card__icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fbf9f5;
}

.category-card__icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ========================================
   TOP：エリアから探す
======================================== */
.area-section {
  padding: 0 0 90px;
  background: #fbf9f5;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.area-grid a {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.area-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.area-grid strong,
.area-grid span {
  display: block;
}

.area-grid strong {
  margin-top: 14px;
  font-size: 20px;
}

.area-grid span {
  padding-bottom: 10px;
}

@media (hover: hover) {
  .category-card:hover,
  .area-grid a:hover {
    box-shadow: 0 10px 24px rgba(110, 90, 82, 0.16);
    opacity: 1;
    transform: translateY(-3px);
  }
}

.area-section .outline-button {
  display: flex;
  width: max-content;
  margin: auto;
}

/* ========================================
   TOP：私たちについて
======================================== */
.home-about {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  padding-left: 7vw;
}

.home-about__copy {
  width: 520px;
  min-width: 0;
  flex: 1;
}

.home-about__copy h2 {
  font-size: clamp(24px, 2.22vw, 32px);
  line-height: 1.8;
}

.home-about__copy p {
  margin: 20px 0 40px;
  font-size: clamp(16px, 1.25vw, 18px);
}

.home-about > img {
  width: 50%;
  height: clamp(340px, 38vw, 430px);
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 100%);
}

/* ========================================
   TOP：お問い合わせ
======================================== */
.simple-contact {
  padding: 100px 24px;
}

.simple-contact__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 560px));
  width: 100%;
  justify-content: center;
  gap: 40px 35px;
}

.simple-contact__cards > .page-heading {
  grid-column: 1 / -1;
  text-align: center;
}

.simple-contact__cards article {
  position: relative;
  min-width: 0;
  padding: 40px;
  border-radius: 20px;
  background: #fbf9f5;
  box-shadow: var(--shadow-card);
}

.simple-contact__top {
  display: block;
}

.simple-contact__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.simple-contact__image {
  width: clamp(100px, 9.72vw, 140px);
  flex: none;
}

.simple-contact__cards h3 {
  font-size: clamp(20px, 1.67vw, 24px);
}

.simple-contact__cards p {
  min-width: 0;
  flex: 1;
  margin: 20px 0;
  font-size: clamp(16px, 1.25vw, 18px);
}

/* ========================================
   TOP：お問い合わせ（タブレット）
======================================== */
@media (max-width: 1018px) {
  .simple-contact__cards {
    grid-template-columns: minmax(0, 560px);
  }
}

.simple-contact__cards a {
  position: relative;
  display: block;
  width: 260px;
  margin: auto;
  padding: 14px 48px 14px 32px;
  border: 1px solid #6e5d5d;
  border-radius: 100px;
  font-weight: 700;
  text-align: center;
}

/* ========================================
   TOP：タブレット
======================================== */
@media (max-width: 912px) {
  .home-about__copy h2 br {
    display: none;
  }
}

@media (max-width: 900px) {
  .home-hero__content {
    flex-direction: column;
    gap: 0;
  }

  .home-hero__buttons {
    margin-top: 28px;
  }

  .category-grid,
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ========================================
   TOP：スマートフォン
======================================== */
@media (max-width: 767px) {
  .home-hero {
    padding-top: 38px;
    background: #fff url("assets/top-fv-bg-sp.webp") center bottom / cover no-repeat;
  }

  .home-hero__inner {
    min-height: 500px;
    overflow: visible;
  }

  .home-hero__people {
    width: 125%;
    max-width: calc(100% + 40px);
    bottom: -6%;
  }

  .home-hero__title {
    font-size: 28px;
  }

  .home-hero__text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  .home-hero__buttons {
    width: 100%;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
  }

  .area-section .outline-button,
  .home-hero__buttons .primary-button,
  .home-hero__buttons .outline-button {
    box-sizing: border-box;
    width: 308px;
    max-width: 100%;
    min-height: 54px;
    padding: 16px 54px 16px 24px;
    font-size: 18px;
  }

  .home-hero__buttons .outline-button {
    color: #d44446;
    border-color: #d44446;
    background: #fff;
  }

  .page-heading {
    font-size: 24px;
  }

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

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

  .category-grid,
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .area-grid {
    margin: 20px 0;
  }

  .area-grid strong {
    margin-top: 10px;
    line-height: 1.1;
  }

  .area-grid span {
    font-size: 14px;
    font-weight: 700;
  }

  .category-card {
    min-height: 98px;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-size: 18px;
  }

  .area-grid a {
    border-radius: 12px;
  }

  .category-card__icon {
    width: 40px;
    height: 40px;
  }

  .category-card__icon img {
    width: 28px;
    height: 28px;
  }

  .area-grid img {
    height: 100px;
  }

  .home-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 60px 24px;
  }

  .home-about__copy {
    display: contents;
  }

  .home-about__copy h2 {
    font-size: 24px;
    line-height: 1.4;
  }

  .home-about__copy .outline-button {
    order: 2;
    align-self: center;
  }

  .home-about__title-break {
    display: inline;
  }

  .home-about > img {
    order: 1;
    width: calc(100% + 48px);
    height: 250px;
    max-width: none;
    max-height: none;
    margin: 0 -24px;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .simple-contact {
    padding: 0 24px 60px;
  }

  .simple-contact__cards {
    gap: 20px;
  }

  .simple-contact__cards article {
    padding: 24px;
  }

  .simple-contact__top {
    display: block;
  }

  .simple-contact__body {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .simple-contact__image {
    width: 80px;
    flex: none;
  }

  .simple-contact__cards h3 {
    font-size: 20px;
  }

  .simple-contact__cards p {
    flex: 1;
    min-width: 0;
    margin: 8px 0 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  .simple-contact__cards a {
    width: 260px;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 48px 12px 32px;
  }
}
