/* ==============================
  Main Visual Layout
  base: 1rem = 10px
============================== */

.l-mv {
  padding: 0; /* 余白は必要に応じて */
}


/* ==============================
  Main Visual
============================== */

.c-mv {
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* 背景画像部分 */
.c-mv__media {
  min-height: 59rem; 
  height: 80vh;
  background-image: url("../../img/top/top_mv.jpg"); 
  background-size: cover;
  background-position: center -2rem;
	background-repeat: no-repeat;
}

/* 文字を読みやすくする薄いグラデ（必要ならON）
.c-mv__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.0) 70%
  );
  pointer-events: none;
}
  */

/* コンテンツ（テキスト＋ボタン） */
.c-mv__content {
  position: absolute;
  left: 10%; 
  top: 53%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 62rem; /* 620px */
  color: #fff;
}

/* h1：40px */
.c-mv__title {
  margin: 0 0 5rem;
  font-size: 4rem; /* 40px */
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 0.2rem 1rem rgba(0,0,0,0.25);
}


/* 下部グリーン帯（背景画像＋文字18px） */
.c-mvBand {
  position: relative;
  z-index: 1;
  padding: 3.2rem 2.4rem; /* 32px 24px */

  background-image: url("../../img/top/top-text-bc.png"); /* ★ここを差し替え（装飾背景） */
  background-size: cover;
  background-position: center;
  background-color: #0B7C6B; /* 画像が無い場合の保険 */
}

.c-mvBand__text {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 1.8rem; /* 18px */
  font-weight: 600;
  line-height: 1.9;
  text-shadow: 0 0.2rem 0.8rem rgba(0,0,0,0.2);
}

/* ==============================
  Responsive
============================== */
/* タブレット */
@media (max-width: 1024px) {
  .c-mv__media {
	min-height: 45rem;
	  height:50vh;
  }
}
/* タブレット */
@media (max-width: 1023px) {

  .c-mv__content {
    left: 3rem;    /* 30px */
    max-width: 54rem;
  }

  .c-mv__title {
    font-size: 3.4rem; /* 34px */
  }
}

/* スマホ */
@media (max-width: 767px) {


  .c-mv__content {
    left: 1.6rem;  /* 16px */
    right: 1.6rem;
    max-width: none;
	top: 48%;
  }

  .c-mv__title {
    font-size: 2.2rem; /* 26px */
    line-height: 1.4;
	margin-bottom: 2rem;
  }

  .c-mv__ctaText {
    font-size: 1.7rem; /* 17px（SPは少しだけ詰めてもOK） */
  }

  .c-mvBand {
    padding: 2.4rem 1.6rem;
  }

  .c-mvBand__text {
    font-size: 1.6rem; /* 16px（SPは読みやすさ優先） */
    line-height: 1.85;
  }
}
@media (max-width: 500px) {

  .c-mv__media {
	min-height: 40rem;
	height:50vh;
	background-position: 70% 0%;
  }
.c-mv__content {
	top: initial;
	bottom:27%;
  }
	  .c-mv__cta {
    width: 100%;
    justify-content: center;
    padding: 1.4rem 1.8rem;
  }
}


/* ==============================
  Latest News (Top)
============================== */

.c-latestNews {
  background: #fff;
}

.c-latestNews__inner {
  max-width: 110rem; /* 1100px */
  margin: 0 auto;
  padding: 2.6rem 1.5rem; /* 上下26px 左右15px */

  display: flex;
  align-items: center;
  gap: 3.2rem; /* 32px */

  border-bottom: 0.1rem solid rgba(0,0,0,0.12);
}

/* 左のラベル（緑枠） */
.c-latestNews__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 20rem;
  height: 4.8rem;

  padding: 0 2rem;
  border: 0.1rem solid #0B7C6B;
  color: #0B7C6B;

  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 中央（date + title） */
.c-latestNews__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2.8rem; /* 28px */
}

.c-latestNews__date {
  flex: 0 0 auto;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
}

.c-latestNews__title {
  flex: 1 1 auto;
  min-width: 0;

  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-latestNews__title:hover,
.c-latestNews__title:focus-visible {
  opacity: 0.75;
}

/* 右ボタン */
.c-latestNews__more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 1.6rem; /* 16px */
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-size: 1.6rem;

  padding-bottom: 0.8rem;
  border-bottom: 0.1rem solid rgba(0,0,0,0.75);
}

.c-latestNews__more:hover,
.c-latestNews__more:focus-visible {
  opacity: 0.75;
}

.c-latestNews__moreIcon {
  width: 3.2rem;  /* 32px */
  height: 3.2rem; /* 32px */
  display: block;
}

/* 空表示 */
.c-latestNews__title.is-empty {
  color: rgba(0,0,0,0.6);
}

/* ==============================
  Responsive
============================== */
@media (max-width: 767px) {
  .c-latestNews__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
  }

  .c-latestNews__label {
    width: 100%;
    min-width: 0;
  }

  .c-latestNews__body {
    gap: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .c-latestNews__title {
    white-space: normal;
    line-height: 1.6;
  }

  .c-latestNews__more {
    justify-content: space-between;
    width: 100%;
  }
}


/* ==============================
  Problem Section
============================== */

.c-problem {
  background: #F2F7F8;
  padding: 4rem 0; /* 上下40px */
}

.c-problem__inner {
  max-width: 110rem; /* 1100px */
  margin: 0 auto;
  padding: 0 2rem;
}


/* ==============================
  上の3ブロック
============================== */

.c-problem__list {
  display: flex;
  justify-content: center;
  gap: 2rem; /* ブロック間余白 */
  flex-wrap: wrap;
}

.c-problem__item {
  border: 0.1rem solid #2f2f2f;
  padding: 2rem; /* 指定：20px */

  font-size: 1.8rem; /* 指定：18px */
  font-weight: 500;
  line-height: 1.4;

  text-align: center;
  white-space: nowrap;
  background-color: #fff;
}


/* ==============================
  大きなテキスト
============================== */

.c-problem__title {
  margin: 3rem 0 0; /* 指定：30px */
  text-align: center;

  font-size: 3.8rem; /* 指定：38px */
  font-weight: 800;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.c-problem__titleLine {
  position: relative;
  display: inline-block;
  z-index: 0;
}



.c-problem__titleText {
      background-image: linear-gradient(transparent calc(100% - 22px), #EDE857 calc(100% - 40px));
    background-repeat: repeat;
    background-size: 100% -1em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 0.2em;
}



@media (max-width: 767px) {

  .c-problem {
    padding: 4rem 0;
  }

  .c-problem__list {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .c-problem__item {
    width: 100%;
    white-space: normal;
    padding: 2rem 1rem; /* 指定：20px */
  }

  .c-problem__title {
    font-size: 2.2rem;
    margin-top: 3rem;
  }

}


/* ==============================
  Strengths Section
============================== */

.c-strengths {
  padding: 10rem 2rem; 
}

.c-strengths__inner {
  max-width: 110rem; /* 1100px */
  margin: 0 auto;
}

/* リスト */
.c-strengths__list {
  display: grid;
  gap: 0; /* 区切り線で分ける */
}

/* 1ブロック */
.c-strengthsItem {
  padding-bottom: 5rem; /* フレックスコンテンツ→下線まで 50px */
  border-bottom: 0.1rem solid #D6DCE5;
}

.c-strengthsItem:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.c-strengthsItem + .c-strengthsItem {
  padding-top: 5rem; /* 次ブロックの上も気持ちよく（画像に近い） */
}

/* 横並び */
.c-strengthsItem__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem; /* 左右の間隔（必要なら調整） */
}

/* 左側幅 550px */
.c-strengthsItem__content {
  width: 55%; /* 550px */
  max-width: 55rem;
  max-width: 100%;
}

/* h3 */
.c-strengthsItem__title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.55;

  position: relative;
  z-index: 1; /* ←重要：テキストを上に */
}

/* 背景画像 */
.c-strengthsItem__title::before {
  content: "";
  position: absolute;

  left: -2rem; /* 少し左に出すと見えやすい */
  top: 50%;
  transform: translateY(-50%);

  width: 20rem;   /* 200px */
  height: 20rem;  /* ←高さをしっかり確保 */

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  z-index: 0; /* ←テキストの下 */
  pointer-events: none; /* 安全対策 */
}


/* 各番号画像（差し替え） */
.c-strengthsItem--01 .c-strengthsItem__title::before {
  background-image: url("../../img/top/01.png");
}
.c-strengthsItem--02 .c-strengthsItem__title::before {
  background-image: url("../../img/top/02.png");
}
.c-strengthsItem--03 .c-strengthsItem__title::before {
  background-image: url("../../img/top/03.png");
}

/* h3→本文 30px */
.c-strengthsItem__text {
  margin: 3rem 0 0; /* 30px */
  font-size: 1.6rem; /* 16px（本文） */
}

/* 右画像：475×250 */
.c-strengthsItem__media {
  flex: 0 0 auto;
  width: 47.5rem;  /* 475px */
}

.c-strengthsItem__media img {
  display: block;
  width: 100%;
  aspect-ratio: 475 / 250; /* 比率固定 */
  object-fit: cover;
}

/* ==============================
  Tablet: 横並び維持（指定）
============================== */
@media (max-width: 1023px) {
  .c-strengthsItem__row {
    gap: 4rem;
  }

  .c-strengthsItem__content {
    width: 50%;
  }

  .c-strengthsItem__media {
    width: min(47.5rem, 44vw);
  }
}

/* ==============================
  SP: 写真上→テキスト下
  指定：h2 24px / 英16px / h3 20px
============================== */
@media (max-width: 767px) {
  .c-strengths {
    padding: 4rem 2rem;
  }

  /* 見出し（コンポーネントの文字サイズをSP指定へ） */
  .c-heading__ja {
    font-size: 2.4rem; /* 24px */
  }
  .c-heading__en {
    font-size: 1.6rem; /* 16px */
  }

  .c-strengthsItem__row {
    flex-direction: column;
    align-items: stretch;
    gap: 2.4rem;
  }

  .c-strengthsItem__text {
    margin-top: 2rem;
  }

  .c-strengthsItem {
    padding-bottom: 30px;
  }
  .c-strengthsItem + .c-strengthsItem {
    padding-top: 30px;
  }
  

  /* 画像が上に来るように */
  .c-strengthsItem__media {
    order: -1;
    width: 100%;
  }

  .c-strengthsItem__content {
    width: 100%;
  }

  .c-strengthsItem__title {
    font-size: 2rem; /* 20px */
  }

  /* 数字背景はSPでも見える程度に（邪魔なら小さく） */
  .c-strengthsItem__title::before {
    width: 16rem;
    height: 10rem;
    transform: translateY(-50%);
    left: 0;
  }
}

/* ==============================
  Vision
============================== */

.p-vision__inner {
  max-width: 110rem; /* 1100px */
  margin: 0 auto;
  padding: 10rem 2rem;
  border-bottom: 1px solid #D6DCE5;
}

.p-vision__heading {
  margin-bottom: 5rem;
}

.p-vision__row {
  display: flex;
  align-items: center;
  gap: 3.5rem; /* 30px */
}

.p-vision__content {
  flex: 1 1 auto;
  min-width: 0;
}

.p-vision__lead {
  margin: 0 0 2.4rem;
  font-size: 4rem; /* 40px */
  line-height: 1.35;
  font-weight: 700;
  color: #00632D;
}

.p-vision__text {
  margin: 0;
  font-size: 1.6rem;
  color: #222;
}

.p-vision__media {
  flex: 0 0 auto;
  width: 50%; /* 475px */
  max-width: 47.5rem; /* 475px */
  margin: 0;
}

.p-vision__img {
  width: 100%;
  height: auto;
  display: block;
}
/* ===== Tablet / SP ===== */
@media (max-width: 768px) {

  .p-vision__lead {
    font-size: 3.2rem;
  }
  .p-vision__inner {
    padding: 4rem 2rem;
  }
}
/* ===== Tablet / SP ===== */
@media (max-width: 767px) {
  .p-vision__row {
    flex-direction: column;
    align-items: stretch;
    gap: 2.4rem;
  }
  .p-vision__lead {
    font-size: 3.2rem;
  }
  .p-vision__media {
    width: 100%;
  }

  .p-vision__lead {
    font-size: 2.8rem; /* 必要なら調整 */
  }
  .p-vision__heading {
    margin-bottom: 3rem;
  }
}


/* ==============================
  Case Studies
============================== */

.p-caseStudies__inner{
  max-width: 110rem;
  margin: 0 auto;
  padding: 10rem 2rem;
}

.p-caseStudies__heading{
  margin-bottom: 5rem;
}

.p-caseStudies__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; /* 15px */
  align-items: start;
}

.c-caseCard{
  background: transparent;
}

.c-caseCard__link{
  display: block;
  color: inherit;
  text-decoration: none;
}

.c-caseCard__media{
  margin: 0;
  height: 18rem; /* 180px（見本に合わせ）*/
  overflow: hidden;
}

.c-caseCard__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-caseCard__title{
  margin: 2rem 0 1.6rem; /* 見本の“会社名”の余白感 */
  font-size: 2rem;
  font-weight: 700;
  color: #111;
}

/* グレーのボタン（カード内） */
.c-caseCard__btn{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.2rem;
  background: #F2F7F8;
  font-size: 1.6rem;
  font-weight: 700;
}

/* ふわっと */
.c-caseCard__link:hover .c-caseCard__media{
  box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.12);
  transition: box-shadow .2s ease;
}

.p-caseStudies__cta{
  margin-top: 5rem;
}

/* ===== Tablet ===== */
@media (max-width: 1023px){
  .p-caseStudies__grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== SP ===== */
@media (max-width: 767px){
  .p-caseStudies__grid{
    grid-template-columns: 1fr;
  }
  .p-caseStudies__inner{
    max-width: 110rem;
    margin: 0 auto;
    padding: 4rem 2rem;
  }

  .p-caseStudies__heading{
    margin-bottom: 3rem;
  }
}


/* =========================================================
   Beyond the Job（画像のみセクション）
   ========================================================= */

.p-beyondJob__inner {
  padding: 10rem 2rem 4rem; /* もし全セクション共通なら消してOK */
}

.p-beyondJob__figure {
  margin: 0;
}

.p-beyondJob__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== SP ===== */
@media (max-width: 767px){
  .p-beyondJob__inner {
    padding: 4rem 0rem 0rem; /* もし全セクション共通なら消してOK */
  }
}