@charset "utf-8";

:root {
  --header-height: 8rem;
  --red-offset: 2rem;
  --hero-bottom-margin: 4rem;
}

.hero-inner {
  position: relative;
  width: 90%;
  max-width: 177rem;
  margin: 0 0 auto auto;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: auto;
  bottom: calc(-1 * var(--red-offset));
  left: calc(-2rem);
  width: 100%;
  height: 100%;
  background: #ff0303;
  z-index: -1;
  box-sizing: border-box;
}

.hero-image {
  position: relative;
  width: calc(100% - 2rem);
  margin-left: auto;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  height: calc(100vh - var(--header-height) - var(--red-offset) - var(--hero-bottom-margin));
}

.hero-textbox {
  position: absolute;
  top: 50%;
  left: -7rem;
  transform: translateY(-50%);
  background: #fff;
  padding: 7rem 7rem 7rem 9rem;
  z-index: 3;
  max-width: 88%;
}

.hero-sub {
  margin: 0 0 3rem;
  font-size: 3rem;
  color: #333;
  font-weight: 400;
}

.hero-title {
  margin: 0;
  font-size: 5rem;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

.hero-title span {
  color: #ff0303;
}

#COMMITMENT {
  margin-top: 14rem;
}

#COMMITMENT .inner {
  max-width: 122rem;
  width: 90%;
  margin: auto;
}


.commitment-contents {
  margin-top: 9rem;
  display: flex;
  flex-direction: column;
  gap: 10rem;
  list-style: none;
  padding: 0;
}

.commitment-contents li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.commitment-img-wrap {
  position: relative;
  width: 50%;
  flex-shrink: 0;
}

.commitment-lead {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
}

.commitment-lead::before,
.commitment-lead::after {
  content: "";
  width: 3.2rem;
  height: .1rem;
  background: currentColor;
}

.commitment-img-wrap img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  z-index: 2;
}

.commitment-img-wrap.left::before,
.commitment-img-wrap.right::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 2rem;
  width: 100%;
  height: 100%;
  background: #e8e8e8;
  z-index: 1;
}


.commitment-contents li p {
  margin: 0;
  line-height: 2.5;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.company-section {
  margin: 12rem 0;
  display: flex;
  flex-direction: column;
  gap: 10rem;
  overflow: hidden;
}

.company-contents,
.businessactivities-contents {
  position: relative;
  min-height: 67rem;
}

.company-section-intro {
  position: absolute;
  width: 70rem;
  background: #f2f2f2;
  z-index: 3;
  padding: 6rem;
  box-sizing: border-box;
}

.company-contents .company-section-intro {
  top: 50%;
  left: 10rem;
  transform: translateY(-50%);
}

.businessactivities-contents .company-section-intro {
  top: 50%;
  right: 10rem;
  transform: translateY(-50%);
}

.company-image,
.businessactivities-image {
  position: absolute;
  width: 65%;
  z-index: 2;
  top: 0;
  height: 100%;
}

.company-image {
  right: 0;
}

.businessactivities-image {
  left: 0;
}

.company-image img,
.businessactivities-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.company-contents .company-section-intro::before,
.businessactivities-contents .company-section-intro::before {
  content: "";
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 100%;
  height: 100%;
  border-right: 2rem solid #ff0303;
  border-bottom: 2rem solid #ff0303;
  z-index: -1;
  box-sizing: border-box;
}

.view-more {
  display: flex;
  flex-direction: column;
  margin-top: 10rem;
}

.view-more p {
  margin: 0;
  color: #555;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 0.6rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.view-more a {
  position: relative;
  align-items: center;
  text-decoration: none;
  color: #548ac7;
  text-align: right;
  padding-right: 12rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.view-more a::after {
  content: "";
  position: absolute;
  left: calc(100% - 11rem);
  top: 50%;
  width: 8rem;
  height: .1rem;
  background: #548ac7;
  transition: width 0.3s ease;
}

.view-more a::before {
  content: "";
  position: absolute;
  right: 5%;
  top: 84%;
  width: 1.5rem;
  height: .1rem;
  background: #548ac7;
  transform: rotate(-35deg);
  transform-origin: left center;
  transition: right 0.3s ease;
}



/* ========== モバイル（900px以下） ========== */
@media screen and (max-width: 900px) {
:root {
  --red-offset: 1.5rem;
  --hero-bottom-margin: 0px;
}

.hero-inner {
  width: 100%;
  margin: 0;
}

.hero-image {
  width: 100%;
  margin: 0;
}

.hero-image::before {
  top: auto;
  bottom: calc(-1 * var(--red-offset));
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 48rem;
  object-fit: cover;
}

.hero-textbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(252, 252, 252, 0.92);
  padding: clamp(2rem, 4vw, 4rem);
  width: 90%;
  max-width: 90%;
  box-sizing: border-box;
  text-align: center;
}

.hero-sub {
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  margin: 0 0 clamp(0.8rem, 2vw, 1.5rem);
}

.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
}

#COMMITMENT {
  margin-top: 17%;
}

.commitment-contents {
  margin-top: 5rem;
  gap: 6rem;
}

.commitment-contents li {
  flex-direction: column;
  gap: 3rem;
}

.commitment-contents li:nth-child(2) {
  flex-direction: column-reverse;
}

.commitment-img-wrap {
  width: 85%;
  margin: 0 auto;
}

.commitment-img-wrap.left::before {
  top: 1.5rem;
  left: 1.5rem;
}

.commitment-img-wrap.right::before {
  top: 1.5rem;
  right: 1.5rem;
}

.commitment-contents li p {
  width: 90%;
  margin: 0 auto;
  line-height: 2.2;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.company-section {
  gap: 6rem;
}

.company-contents,
.businessactivities-contents {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.businessactivities-contents {
  overflow: visible;
  padding-bottom: 3rem;    /* 赤がはみ出す分のスペース確保 */
}

.businessactivities-contents .company-section-intro::before {
  bottom: -1.5rem;
  right: -1.5rem;
  width: 100%;
  height: 100%;
  border-right: 1.5rem solid #ff0303;
  border-bottom: 1.5rem solid #ff0303;
}

.company-contents .company-image {
  order: -1;
}

.company-contents .company-section-intro {
  order: 1;
}

.company-image,
.businessactivities-image {
  position: relative;
  width: 100%;
  height: auto;
  top: auto;
  left: auto;
  right: auto;
}

.company-image img,
.businessactivities-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.company-section-intro {
  position: relative;
  width: 90%;
  max-width: 50rem;
  min-width: 0;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  margin: -5rem auto 0;
  padding: 4rem;
  z-index: 3;
}

.company-contents .company-section-intro,
.businessactivities-contents .company-section-intro {
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  margin: -6rem auto 0;
}

.company-contents .company-section-intro::before,
.businessactivities-contents .company-section-intro::before {
  bottom: -1.5rem;
  right: -1.5rem;
  border-right-width: 1.5rem;
  border-bottom-width: 1.5rem;
}

.view-more {
  margin-top: 5rem;
}

.view-more p {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.view-more a {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  padding-right: 10rem;
}

.view-more a::after {
  width: 6rem;
  left: calc(100% - 9rem);
}

.view-more a::before {
  right: 7%;
}
}

@media screen and (max-width: 600px) {
.commitment-contents {
  margin-top: 3rem;
  gap: 4rem;
}

.commitment-img-wrap {
  width: 100%;
}

.commitment-img-wrap.left::before,
.commitment-img-wrap.right::before {
  top: 1rem;
  left: 1rem;
  right: 1rem;
}

.commitment-contents li p {
  width: 100%;
}

.company-image img,
.businessactivities-image img {
  aspect-ratio: 16 / 12;
}

.company-section-intro {
  width: 92%;
  max-width: 50rem;
  padding: 3rem 2.5rem;
  margin: -4rem auto 0;
}

.company-contents .company-section-intro::before,
.businessactivities-contents .company-section-intro::before {
  bottom: -1rem;
  right: -1rem;
  border-right-width: 1rem;
  border-bottom-width: 1rem;
}

.businessactivities-contents {
  padding-bottom: 2rem;
}

.businessactivities-contents .company-section-intro::before {
  bottom: -1rem;
  right: -1rem;
  border-right-width: 1rem;
  border-bottom-width: 1rem;
}

.view-more {
  margin-top: 3rem;
}

.company-section-intro .inner h2 {
  font-size: 3rem;
  padding-left: 1rem;
}

.company-section-intro .inner h2 span {
  font-size: 1.6rem;
  margin-top: 1rem;
}

.view-more a::before {
  right: 2.7rem;
  top: 92%;
}
}



@media (hover: hover) {
.view-more a:hover::after {
  width: 13rem;
}
.view-more a:hover::before {
  right: -2rem;
}
}

@media screen and (hover: hover) and (max-width: 900px) {
.view-more a:hover::after {
  width: 9rem;
}
.view-more a:hover::before {
  right: 0rem;
}
}
