@charset "UTF-8";

/* ========================================================================== */
/* SUB_PAGE_HEADER */
/* ========================================================================== */
.sub_page_header { background-image: url("../images/works/sub_header_bg.jpg"); }


/* ========================================================================== */
/* POINTS_INNER */
/* ========================================================================== */
.points_inner {
   max-width: 1340px;
   width: calc(100% - 80px);
   margin: 0 auto;
}


/* ========================================================================== */
/* POINTS_FLEX */
/* ========================================================================== */
.points_flex {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: clamp(40px, 5vw, 80px);

   scroll-margin-top: 130px; /* PCヘッダー(100px)＋ゆとり30px分、着地位置を上にずらす */
}

.points_flex:nth-child(even) {
   flex-direction: row-reverse;
}

.points_flex:not(:first-child) {
   margin-top: 100px;
}


/* ========================================================================== */
/* POINTS_BODY */
/* ========================================================================== */
.points_body { width: 53%; }

.points_body .detail { padding-left: 8px; }

.points_body .detail .lead {
   margin-top: 15px;
   font-size: 23px;
   font-weight: 700;
   line-height: 1.5;
}

.points_body .detail p {
   margin-top: 15px;
   font-size: 16px;
   line-height: 1.75;
}

/* ========================================================================== */
/* POINTS_IMG */
/* ========================================================================== */
.points_img {
   width: 38%; 
   flex-shrink: 0;
}

.points_img img {
   display: block;
   width: 100%;
   height: auto; 
   object-fit: cover;
   border-radius: 4px;
}


/* ========================================================================== */
/* POINTS_TTL */
/* ========================================================================== */
.points_ttl {
   display: flex;
   align-items: flex-end;
   gap: 15px;
}

.points_ttl .num_box {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;

   color: #FA5B22; 
   font-family: 'Roboto', 'Lato', sans-serif;
   font-weight: 900;
   letter-spacing: -0.03em;
   text-align: center;
}

.num_box span,
.num_box .num {
  line-height: 1; 
}

.points_ttl .num_box .num { 
   font-size: 80px; 
   line-height: 1;
}

.points_ttl .num_box span {
   margin-bottom: -2px; 
   font-size: 22px;
   letter-spacing: -0.015em;
   transform: scaleX(0.8); 
   transform-origin: center center;
}

.points_ttl .text {
   margin-bottom: 20px; 
   font-size: 45px;
   font-weight: 700;
   line-height: 1;
   letter-spacing: 0.03em;
}


/* ========================================================================== */
/* RESPONSIVE (レスポンシブ対応) */
/* ========================================================================== */

/* -------------------------------------------------------------
   【タブレットサイズ（1024px以下）】
   ------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   .points_inner {
      width: 100%;
      padding: 0 20px;
   }

   .points_flex:not(:first-child) {
      margin-top: 80px; /* ブロック間の余白を少し詰める */
   }

   .points_body {
      width: 57%; /* テキスト領域を広げる */
   }

   .points_body .detail .lead {
      font-size: 20px; /* 文字サイズを少しコンパクトに */
   }

   .points_img {
      width: 35%; /* 画像を少しコンパクトに */
   }
}

/* -------------------------------------------------------------
   【スマートフォンサイズ（768px以下）】
   ------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   .points_inner { padding: 0 15px; }

   .points_flex {
      scroll-margin-top: 80px; 
      flex-direction: column !important; /* ★縦並びにする */
      align-items: stretch;
      gap: 25px; /* タイトル・本文と、下の画像との隙間 */
   }

   .points_flex:nth-child(even) {
      flex-direction: column !important; /* ★偶数番目の左右反転を解除して上から順に並べる */
   }

   .points_flex:not(:first-child) {
      margin-top: 60px; /* スマホ向けにブロック間の余白を調整 */
   }

   .points_body {
      width: 100%; /* 横幅いっぱいに広げる */
   }

   .points_body .detail {
      padding-left: 0; /* スマホ時はインデントをなくしてスッキリさせる */
   }

   .points_body .detail .lead {
      margin-top: 12px;
      font-size: 18px; /* スマホに最適なサイズ */
   }

   .points_body .detail p {
      margin-top: 10px;
      font-size: 14px; /* スマホに最適なサイズ */
   }

   .points_body .detail p br {
      display: none;
   }

   .points_img {
      width: 100%; /* 横幅いっぱいに広げる */
   }

   .points_img img {
      height: 240px;      /* スマホ時の画像の高さを固定（数値はお好みで調整してください） */
      object-fit: cover;  /* 固定した高さに合わせて、画像を綺麗に中央トリミング */
   }

   /* --- スマホ用のタイトル周りの縮小調整 --- */
   .points_ttl {
      gap: 12px;
   }

   .points_ttl .num_box .num { 
      font-size: 60px; /* 80px → 60px に縮小 */
   }

   .points_ttl .num_box span {
      font-size: 16px; /* 22px → 16px に縮小 */
   }

   .points_ttl .text {
      margin-bottom: 12px; /* 数字に合わせて浮かせる高さを調整 */
      font-size: 32px;     /* 45px → 32px に縮小 */
   }
}
