/* Hero */

.home-hero {
  padding-block: 40px;
}

.home-hero__inner {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: 8px;
}

.home-hero__visual {
  margin: 0;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.88) 43%,
    rgba(255, 255, 255, 0.35) 62%,
    rgba(255, 255, 255, 0) 78%
  );
}

.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 72px 56px;
}

.home-hero__eyebrow {
  margin-bottom: 24px;
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.home-hero__title {
  margin-bottom: 32px;
  font-size: clamp(3.8rem, 3.6vw, 5.8rem);
  line-height: 1.42;
  letter-spacing: 0.02em;
}

.home-hero__title span {
  display: block;
}

.home-hero__description {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--color-text-light);
  font-size: 1.7rem;
  line-height: 2;
}

/* About */

.home-about {
  background: var(--color-bg-light);
}

.home-about__layout {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 48px 96px;
}

.home-about__content {
  max-width: 700px;
}

.home-about__lead {
  margin-bottom: 32px;
  font-size: clamp(2.6rem, 3vw, 3.8rem);
  line-height: 1.5;
}

.home-about__visual {
  grid-column: 1 / -1;
  margin: 32px 0 0;
}

.home-about__image {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.home-about__layout,
.home-about__content,
.home-about__visual {
  min-width: 0;
}

.home-about__content p,
.home-about__lead {
  overflow-wrap: break-word;
  word-break: normal;
}
@media (max-width: 1023px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__inner,
  .home-about__layout {
    grid-template-columns: 1fr;
  }


  .home-about__visual {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding-block: 24px 48px;
    min-height: auto;
  }

  .home-hero__inner {
    min-height: 560px;
    border-radius: 6px;
  }

  .home-hero__image {
    object-position: center right;
  }

  .home-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.9) 58%,
      rgba(255, 255, 255, 0.35) 100%
    );
  }

  .home-hero__content {
    padding: 40px 24px;
  }

  .home-hero__eyebrow {
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .home-hero__title {
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 9vw, 4.8rem);
    line-height: 1.42;
  }

  .home-hero__description {
    font-size: 1.5rem;
    line-height: 1.9;
  }
}

.home-business__heading {
  margin-bottom: 56px;
}

.home-business__lead {
  margin-top: 24px;
  margin-bottom: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
  font-weight: 700;
  line-height: 1.6;
}

.home-business__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.business-card {
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.business-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.business-card__visual {
  margin: 0;
  overflow: hidden;
}

.business-card__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.business-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px;
}

.business-card__number {
  margin-bottom: 12px;
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.business-card__title {
  margin-bottom: 20px;
  font-size: 2.2rem;
  line-height: 1.5;
}

.business-card__text {
  margin-bottom: 28px;
  color: var(--color-text-light);
}

.business-card__link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  font-weight: 700;
  border-top: 1px solid var(--color-border);
}

.home-business__button {
  margin-top: 48px;
  text-align: center;
}
 .home-about__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-about__content {
    max-width: 100%;
  }

  .home-about__lead,
  .home-recruit__lead,
  .home-company__lead {
    font-size: clamp(2.4rem, 7vw, 3.2rem);
    line-height: 1.5;
  }

  .home-about__content p {
    font-size: 1.5rem;
    line-height: 1.9;
  }
/* Philosophy */

.home-philosophy {
  color: var(--color-white);
  background: var(--color-bg-dark);
}

.home-philosophy__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 80px;
}

.home-philosophy__visual {
  margin: 0;
  width: 100%;        /* 横幅いっぱいに広げる */
  height: auto;       /* 高さは自動（比率を維持） */
  /* aspect-ratio: 1 / 1; は削除するかコメントアウト */
}

.home-philosophy__image {
  width: 100%;
  height: auto;       /* containではなく、画像本来の比率で表示 */
  display: block;     /* 下部の不要な隙間を消す */
}

.home-philosophy .section-heading__en {
  color: var(--color-accent);
}

.home-philosophy__lead {
  margin-top: 40px;
  margin-bottom: 32px;
  font-size: clamp(3rem, 4vw, 5.2rem);
  font-weight: 700;
  line-height: 1.45;
}

.home-philosophy__text {
  color: rgba(255, 255, 255, 0.82);
}

/* Company */

.home-company {
  background: var(--color-bg-light);
}

.home-company__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 80px;
}

.home-company__lead {
  margin-top: 40px;
  margin-bottom: 32px;
  font-size: clamp(2.6rem, 3vw, 3.8rem);
  line-height: 1.5;
}

.home-company__summary {
  margin: 40px 0 0;
  border-top: 1px solid var(--color-border);
}

.home-company__summary > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.home-company__summary dt {
  font-weight: 700;
}

.home-company__summary dd {
  margin: 0;
}

.home-company__visual {
  margin: 0;
}

.home-company__image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Recruit */

.home-recruit__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 80px;
}

.home-recruit__visual {
  margin: 0;
}

.home-recruit__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-recruit__lead {
  margin-top: 40px;
  margin-bottom: 28px;
  font-size: clamp(2.6rem, 3vw, 3.8rem);
  line-height: 1.5;
}

/* Contact */

.home-contact {
  color: var(--color-text);
  background: var(--color-bg-light);
}

.home-contact .section-heading__en {
  color: var(--color-primary);
}

.home-contact__heading {
  margin-bottom: 48px;
}

.home-contact__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding: 56px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.home-contact__lead {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  font-weight: 700;
  line-height: 1.5;
}

.home-contact__content p:last-child {
  margin-bottom: 0;
  color: var(--color-text-light);
}

.home-contact__button {
  flex-shrink: 0;
}

.home-contact__phone {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  padding: 32px 56px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-primary);
}

.home-contact__phone p {
  margin-bottom: 0;
  font-weight: 700;
}

.home-contact__phone a {
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.home-contact__phone span {
  color: var(--color-text-light);
  font-size: 1.4rem;
}

/* Tablet */

@media (max-width: 1023px) {
  .home-business__list {
    grid-template-columns: 1fr;
  }

  .business-card > a {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .home-philosophy__layout,
  .home-company__layout,
  .home-recruit__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-company__visual {
    order: -1;
  }

  .home-contact__content {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .home-business__heading {
    margin-bottom: 36px;
  }

  .business-card > a {
    display: flex;
  }

  .business-card__body {
    padding: 24px;
  }

  .business-card__title {
    font-size: 2rem;
  }

  .home-philosophy__layout,
  .home-company__layout,
  .home-recruit__layout {
    gap: 36px;
  }

  .home-philosophy__image,
  .home-company__image {
    aspect-ratio: 4 / 3;
  }

  .home-company__summary > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }


  .home-contact__phone a {
    font-size: 3rem;
  }
	  .home-contact__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 24px;
  }

  .home-contact__lead {
    font-size: 2.4rem;
    line-height: 1.5;
  }

  .home-contact__content p {
    font-size: 1.5rem;
    line-height: 1.8;
  }

  .home-contact__button {
    width: 100%;
  }

  .home-contact__button .button {
    width: 100%;
    justify-content: center;
  }

  .home-contact__phone {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 24px;
  }

}