/* ========================================
   FEATURE
======================================== */


html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.feature {
  width: 100%;
}

/* SPのみ改行 */
.sp-br {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-br {
    display: block;
  }
}



/* ========================================
   FEATURE HEADER
   白背景
======================================== */

.feature-header {
  width: 100%;
  padding: 50px 20px 70px;
  box-sizing: border-box;

  background-color: #fff;
  text-align: center;
}


/* FEATURE */

.feature-header h1 {
  margin: 0 0 -10px;
  text-align: center;

  font-family: "Crimson Text","Times New Roman", serif;
  font-size: 39.91px;
  font-weight: 400;
  letter-spacing: 0.1em;

  color: #263653;
}


/* 特集 */

.feature-ja {
  margin: 3px 0 24px;

  font-size: 14px!important;
  font-weight: 400;
  
  color: #999;
}


/* 横線 */

.feature-line {
  width: 210px;
  height: 1px;

  margin: 0 auto 25px;

  background-color: #222E53;
}


/* リード */

.feature-lead {
  margin: 0 0 15px;

  font-size: 20.8px!important;
  font-weight: 500;
  line-height: 1.8;

  color: #777777;
}


/* 説明文 */

.feature-description {
  margin: 0;

  font-size: 14.3px!important;
  font-weight: 400;
  line-height: 2.2;

  color: #777;
}


/* ========================================
   FEATURE CONTENTS
   青背景
======================================== */

.feature-contents {
  width: 100%;

  background-color: #e8f0f2;
}


/* ========================================
   FEATURE LIST
   1120px
======================================== */

.feature-list {
  width: 1120px;
  max-width: calc(100% - 40px);

  margin: 0 auto;
  padding:100px 0;

  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(3, 322px);

  column-gap: 77px;
  row-gap: 150px;

  /* 実機iOS Safariでのテキスト自動拡大(Text Inflation)対策として追加 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* ========================================
   FEATURE ITEM
======================================== */

.feature-item {
  display: block;

  width: 322px;

  text-decoration: none;
  color: inherit;
}


/* ========================================
   IMAGE
======================================== */

.feature-image {
  width: 322px;
  height: 221px;

  overflow: hidden;
}

.feature-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}


/* ========================================
   CARD CONTENT
======================================== */

.feature-content {
  width: 322px;
  height: 172px;   /* 151px → 172px に変更（本文13px化に合わせて高さを拡大） */

  margin: 0;
  padding: 25px 31px 30px;

  box-sizing: border-box;

  background-color: #fff;

  text-align: center;

  /* 実機iOS Safariでのテキスト自動拡大(Text Inflation)対策として追加 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* カードタイトル */

.feature-content h2 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  font-weight: bold;
  color:#434853;

}


/* カード説明 */

.feature-content p {
  margin: 0;

  font-size: 13px;
  line-height: 2;

  color: #434853;
}


/* ========================================
   FEATURE CONTENT（装飾数字のため position 追加）
======================================== */

.feature-content {
  position: relative;   /* 追加：装飾数字の基準にする */
  overflow: hidden;     /* 追加：数字がカードからはみ出さないように */
}


/* ========================================
   装飾数字（画像化）
======================================== */

.feature-number {
  position: absolute;
  left: 63%;
  top: 67%;

  height: 160px;
  width: auto;      /* 数字ごとの字幅の違いをそのまま反映（縦横比を維持） */

  transform: translate(-50%, -50%) rotate(4deg);

  pointer-events: none;
  z-index: 0;
}


/* h2とpを数字より前面に */

.feature-content h2,
.feature-content p {
  position: relative;
  z-index: 1;
}


/* ========================================
   HOVER
======================================== */

/* .feature-item:hover .feature-image img {
  transform: scale(1.03);
} */


/* ========================================
   SP（768px以下）
======================================== */

@media screen and (max-width: 768px) {

  /* ---------- FEATURE HEADER ---------- */

  .feature-header {
    padding: 40px 20px 35px;
  }

  .feature-header h1 {
    margin-bottom: -6px;
    font-size: 27.95px;
    letter-spacing: 0.08em;
  }

  .feature-ja {
    margin-bottom: 18px;
    font-size: 12px !important;
  }

  .feature-line {
    width: 140px;
    margin-bottom: 18px;
  }

  .feature-lead {
    margin-bottom: 12px;
    font-size: 16px !important;
    line-height: 1.7;
    font-weight: bold;
  }

  .feature-description {
    font-size: 13px !important;
    line-height: 2;
  }


  /* ---------- FEATURE LIST ---------- */

  /* .feature-list {
    width: 100%;
    max-width: calc(100% - 40px);

    padding: 40px 0 60px;

    grid-template-columns: 1fr;
    row-gap: 30px;
  } */


  .feature-list {
    width: 100%;
    max-width: 100%;         /* calc(100% - 40px) をやめる */
    margin: 0;                /* margin: 0 auto をやめる */

    padding: 50px 20px 60px; /* 左右の余白はpaddingで持たせる */
    box-sizing: border-box;   /* paddingを含めてwidth:100%に収める */

    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  /* ---------- FEATURE ITEM（カード本体） ---------- */

  .feature-item {
    width: 100%;

    display: block;

    background-color: #fff;
    /* border-radius: 6px; */
    overflow: hidden;         /* 中の要素をカードの角丸で切り抜く */
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); */
  }


  /* ---------- IMAGE ---------- */

  .feature-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;     /* 322/221(約1.46:1) → 16/9(約1.78:1) に変更し、縦に高すぎるのを解消 */
  }

  .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }


  /* ---------- CARD CONTENT ---------- */

  .feature-content {
    width: 100%;
    height: auto;

    margin: 0;                /* 重なりをやめてシンプルに下に配置 */
    padding: 18px 16px 20px;  /* 本文サイズアップに合わせて上下・左右の余白を微調整 */

    box-sizing: border-box;
  }

  .feature-content h2 {
    margin-bottom: 8px;       /* 本文とのジャンプ差を保つため余白も調整 */
    font-size: 16px;          /* 13px → 16px に変更（本文13pxとの差を確保） */
    line-height: 1.5;
  }

  .feature-content p {
    font-size: 13px;          /* 10.5px → 13px に変更 */
    line-height: 1.8;         /* 文字が大きくなった分、行間を少し詰めて圧迫感を軽減 */
  }

  /* 装飾文字（画像） */
  .feature-number {
    height: 150px;
    top: 63%;
  }

}

/* ========================================
   TABLET〜SMALL DESKTOP
   769px〜1440px：3カラムを可変幅に
======================================== */

@media screen and (min-width: 769px) and (max-width: 1440px) {

  .feature-list {
    width: 100%;
    max-width: 100%;
    margin: 0;

    padding: 70px 20px;
    box-sizing: border-box;

    grid-template-columns: repeat(3, 1fr);

    column-gap: 40px;
    row-gap: 80px;

    align-items: stretch;   /* 明示（デフォルトだが念のため） */
  }

  .feature-item {
    width: 100%;
    height: 100%;            /* グリッドが揃えた行の高さいっぱいに広げる */

    display: flex;
    flex-direction: column;
  }

  .feature-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;    /* 322/221(約1.46:1) → 16/9(約1.78:1) に変更し、縦に高すぎるのを解消 */

    flex: none;               /* 画像は縮まないよう固定 */
  }

  .feature-content {
    width: 100%;
    height: auto;
    min-height: 0;             /* min-height:140pxを撤廃し、flexに任せる */

    padding: 18px 20px 25px;
    box-sizing: border-box;

    flex: 1;                   /* 残りの高さいっぱいに広がる */

    display: flex;
    flex-direction: column;
    justify-content: center;   /* テキスト量が少ないカードも縦中央に */
  }

  .feature-content p {
    font-size: 13px;
  }

}


/* ========================================
   【補足】Alex Brush（Google Fonts）について

   装飾数字を画像化したことで、Alex BrushをWebフォントとして
   読み込む必要があるのはこの装飾数字部分だけではなくなりました。
   他の箇所（例：ロゴ等）でAlex Brushを使用していない場合は、
   index.html内の以下の読み込みごと削除して問題ありません。

     <link href="https://fonts.googleapis.com/css2?family=Alex+Brush&display=block" rel="stylesheet">

   他で使用している場合はそのまま残してください。
======================================== */

