@charset "utf-8";

body {
  color: #222222;
}


/* =========================================
　hero section
========================================= */
.hero-section{
    display: grid;
    place-items: center;    
    /* 古いブラウザ用のフォールバック */
    height: calc(65vh - 70px);
    min-height: calc(65dvh - 70px);
}
.title-wrap{
    display: grid;
    justify-items: center;
    justify-items: left;
    width: fit-content;
    margin: auto;
}
.hero-title{
    font-size: clamp(28px, 4vw, 48px);
    font-weight: bold;
    line-height: 1.5;
    text-align: end;
}


.content-wrapper {
  background-color: #fff;
  /* 角を丸くする */
  border-radius: 40px 40px 0 0; 
  
  /* 画像の上に食い込ませる（ネガティブマージン） */
  margin-top: -96px; 
  position: relative; /* 重なり順を安定させるため */
  z-index: 1;
}
.sub-title{
    font-size: 11px;
    font-weight: bold;
}
 @media (min-width: 768px) {
    .hero-section{
      height: 100%;
        /* height: calc(100dvh - 70px); */
        /* min-height: 400px;
        max-height: 700px; */
        display: flex;
        flex-direction: row-reverse;
        gap: 30px;
        align-items: baseline;
        width: 90vw;
        max-width: 1400px;
    }
.title-wrap{
    display: grid;
    width: fit-content;
    justify-items: left;
}
}
 @media (min-width: 1800px) {
    .hero-section{
      margin: 200px auto;
    }
  }

/* =========================================
　各section
========================================= */

/* ====================
strengths section
======================== */
/* 親のセクションをフレックスなどで横並びにしている場合 */
.hero-section {
    display: flex;
    align-items: center; /* 垂直中央 */
    justify-content: space-between;
}

/* 画像を囲む picture タグ */
.strengths-hero {
    display: block; /* pictureは初期値がインラインなのでブロック化 */
    width: 100%;     /* PCでの枠の幅を指定（例: 50%） */
    /* height: 500px;   */
    overflow: hidden;
    border-radius: 0 40px 0 0;/* デザインにある角丸 */
}

/* 中の画像 */
.strengths-hero img {
    width: 100%;
    height: auto;    /* 親(picture)の高さに合わせる */
    object-fit: cover; /* これで枠内にぴったり収まり、余りは切り抜かれる */
    object-position: center; /* 中央合わせ */
}
    .strengths-wrap {
    flex: 4; 
    }
    .strengths-hero {
        flex: 6;
    }
/* スマホ用設定 */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* 縦並びに変更 */
        height: fit-content;
        /* height: calc(100vh - 70px);
        min-height: calc(100dvh - 70px); */
    }
    .strengths-hero {
        width: 100%;
        height: auto;  
        margin-top: 20px;
    }
    .strengths-hero img {
          border-radius: 40px;
    }

}

/* ====================
know-how section
======================= */
.know-how{
  margin-bottom: 200px;

}
.know-wrap{
    display: grid;
    grid-template-columns: 1fr; /* 1カラム */
    gap: 16px;
    /* padding: 20px; */
    margin: 100px auto;
}
.structure{
    background: #d0fff0;
    border-radius: 0;
    padding: 15px 15px 100px 15px;
    padding-bottom: 100px;
}
.structure-wrap{
    background: #fff;
    border-radius: 20px;
    margin-top: -25%;
    padding: 20px 20px 60px;
}

/* SPでの並び順を調整 grid-area を指定 */
.title {
    grid-row: 1;
}
.image {
    grid-row: 2;
}
.text  {
    grid-row: 3;
    line-height: 2;
}
  /* know-howタイトル前の●CSS */
.title {
  display: flex;
  align-items: start;
  gap: 12px;        
  font-size: 20px; 

}

.title::before {
  content: "";         /* 疑似要素には必須 */
  display: block;
  width: 25px;         /* ドットの横幅 */
  height: 25px;        /* ドットの高さ */
  background-color: #ffd700; /* 黄色の指定（デザインの色コードに合わせてください） */
  border-radius: 50%;  /* 正方形を丸くする */
  flex-shrink: 0;      /* テキストが長くなってもドットが潰れないように固定 */
}
@media (min-width: 520px) {
  .image {
    width: 80%;
    margin: auto;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .know-wrap{
    grid-template-columns: 1fr 1fr; /* 2カラム */
    grid-template-areas:
      "img title"
      "img text";
    column-gap: 40px;
    align-items: start;
    width: 80vw;
    max-width: 1000px;
    margin: 100px auto;
  }

  .image {
    grid-area: img;
    width: 100%;
  }

  .title {
    line-height: 1.1;
    grid-area: title;
    align-self: end; /* タイトルを画像の上部に合わせる調整 */
    font-weight: 500;
  }

  .text {
    grid-area: text;
  }
  
  .structure{
    border-radius: 0;
    padding: 15px;
    padding-bottom: 100px;

  }

  .structure-wrap{
    grid-template-areas:
      "title img"
      "text img";
    
    background: #fff;
    border-radius: 20px;
    padding: 0 0 0 20px;
}
}

  /* know-how画像レイアウト */

  /* ベースのリセット（figureのデフォルト余白を消す） */
.card-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* キャプションを中央寄せにする場合 */
}

.card-img img {
  width: 80%;
  max-width: 350px;
  height: auto;
  display: block;
  margin: auto;
}

.card-caption {
  margin-top: 5px;
  font-size: 14px;
  text-align: center;
}

/* --- レイアウト制御 --- */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* カード同士の隙間 */
}

/* SP版: 1カラム（100%） */
.card-item {
  width: 100%;
}

/* PC版: 2カラム */
@media (min-width: 768px) {
  .card-item {
    /* gap分を考慮して計算。2カラムなら (100% - gap) / 2 */
    width: calc((100% - 20px) / 2); 
  }
  
  .card-container {
    gap: 40px 20px; /* 行間を少し広めに取るなど調整可能 */
    width: 60vw;
    max-width: 580px;
    margin: auto;
    }
  
  .card-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
  }

}

/* =========================================
challenge section
========================================= */
/* .challenge {
  display: grid;
  place-items: center; 
  text-align: center;
  margin-top: -40px;
  width: 100%;
  min-height: 100vh; 
  background: url('../img/concept/sp/sp-challenge.png') no-repeat center / contain;
  padding: 10% 20px; 
} */

.challenge {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: center; /* 上下中央 */
  justify-items: center; /* 左右中央 */
  width: 100%;
  overflow: hidden;
  /* margin-top: 30px; */
  margin-top: -20%;
}
/* HTMLに空のdivを追加するか、疑似要素で */
/* .challenge::after {
  content: "";
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  background-color: rgba(0, 0, 0, 0.3); 
  z-index: 1.5; 
  width: 100%;
  height: 100%;
} */

.challenge-bg {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  width: 100%;
  height: auto;
  display: block; /* 下の謎の隙間を消す */
  z-index: 1;
}

.challenge-content {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  z-index: 2; /* 画像より上に */
  text-align: right;
  padding: 20px;
  /* 画像の顔に被らないように、marginやpaddingで位置を微調整 */
  margin-top: 20%; 
}

.challenge-title {
  /* background-color: #f9d41a;  */
  display: inline-block;
  padding: 4px 8px;
  margin-bottom: 20px;
  justify-self: self-end;
  text-align: left;
}
.challenge-text {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    text-align: left;
    line-height: 2.2;
}
.challenge-title span {
  background-color: #f9d41a;
  color: #333;
  padding: 4px 8px; 
  line-height: 2.3;     
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
    font-weight: 500;
    font-size: clamp(22px, 3vw, 50px);
  
  /* インライン要素にする（背景を文字幅に合わせるため） */
  display: inline;
}
  .challenge-image{
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
  }
  .challenge-image img{
    object-fit: cover;
  }

@media (min-width: 768px) {
  .challenge{
    margin-top: -85px;
  }
  .challenge-content {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    z-index: 2; /* 画像より上に */
    text-align: left;
    padding: 20px;
    margin-top: 0;
    width: 50%;
    min-width: 450px;
    margin-left: 10em; 
  }
  .challenge-text {
    padding:  30px 50px;
  }
  .challenge-title span {
    line-height: 2.1;
  }
}