/* =========================================================
  Top：ヒーロー直下用 導線ブロック（v1）
  ファイル：/css/top_commitment_v1.css
  画像パス前提：/images/ 配下（このCSSが /css/ にある想定）
========================================================= */

.nowrap { white-space: nowrap; }

.topCommit{
  border-top: 3px solid #b89a53;
  border-bottom: 3px solid #b89a53;
}

/* 共通（幅） */
.topCommit__container{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Head（白背景） */
.topCommit__head{
  background: #fff;
  padding: 56px 0 0;
  text-align: left; /* PCは左寄せ */
}





/* Top専用ゴールド（commitment.css の gold_grad とは別） */
.top_gold_grad{
  display: inline-block;
  background: linear-gradient(
    180deg,
    #6a4c14 0%,
    #bb9d4b 50%,
    #9f7320 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: clamp(23px, 3.2vw, 52px);
  letter-spacing: -0.05em !important;
}




/* Head：2カラム（左：テキスト／右：バッヂ） */
.topCommit__headGrid{
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "tag   badge"
    "title badge"
    "lead  badge";
  column-gap: 28px;
  row-gap: 18px;
  align-items: center;
}

/* 赤ラベル（上下の黒罫線＋赤グラデ） */
.topCommit__tag{
  width: fit-content;
  justify-self: start;
  grid-area: tag;
  display: inline-block;
  position: relative;
  padding: 7px 28px;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.03em;
  color: #ffe700;

  background: linear-gradient(180deg, #8b0d0d 0%, #6e0909 100%);
  /*border: 2px solid rgba(255,255,255,0.9);*/
  /*box-shadow: 0 2px 0 rgba(0,0,0,0.12);*/
}

.topCommit__tag::before,
.topCommit__tag::after{
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  height: 2px;            /* 細い黒罫線 */
  background: #111;
}

.topCommit__tag::before{ top: -6px; }
.topCommit__tag::after{ bottom: -6px; }

/* 見出し */
.topCommit__title{
  grid-area: title;
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(36px, 4.2vw, 62px);
  color: #2f2f2f;
  font-family: "Hiragino Mincho ProN","Yu Mincho","Noto Serif JP","MS PMincho",serif;
}

/* リード（PCは左寄せ） */
.topCommit__lead{
  grid-area: lead;
  margin: 0 !important;
  font-size: clamp(15px, 1.4vw, 18px) !important;
  line-height: 2;
  letter-spacing: 0.02em;
  color: #111;
}

/* バッヂ */
.topCommit__badge{
  grid-area: badge;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topCommit__badge img{
  width: min(300px, 28vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.22));
}

/* SP：順番 1タグ→2見出し→3バッヂ→4リード、全部センター */
@media (max-width: 900px){
  .topCommit__head{
    text-align: center;
  }

  .topCommit__headGrid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "tag"
      "title"
      "badge"
      "lead";
    row-gap: 16px;
    justify-items: center;
  }

  .topCommit__tag{
    font-size: 17px;
    padding: 4px 22px;
    justify-self: center; /* センターに */
    margin-left: auto;    /* 念のため */
    margin-right: auto;   /* 念のため */
  }

  .topCommit__badge img{
    width: min(260px, 70vw);
  }

  .topCommit__lead{
    margin-top: 0 !important;
    text-align: center;
  }
}




/* Body（背景画像） */
.topCommit__body{
  padding: 44px 0 54px;
  background: url(../images/commit_bg04_hand.webp) center / cover no-repeat;
}

.topCommit__grid{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

/* 左：テキスト */
.topCommit__content{
  flex: 1 1 700px;
  min-width: 0;
}

.topCommit__item + .topCommit__item{
  margin-top: 22px;
}

.topCommit__label{
  display: inline-block;
  padding: 10px 18px;
  background: #9b664d;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(16px, 1.8vw, 22px);
}

/* チェックリスト（Top専用） */
.topCommit__checklist{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.topCommit__checklist li{
  position: relative;
  padding-left: 44px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.9;
  color: #111;
  font-weight: 600;
}

.topCommit__checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 26px;
  height: 26px;
  border: 2px solid #111;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: #e26f1a;
  background: transparent;
}

.topCommit__checklist strong{
  font-weight: 800;
}

/* 右：イラスト */
.topCommit__visual{
  flex: 0 0 min(300px, 30%);
  display: flex;
  justify-content: flex-end;
}

.topCommit__visual img{
  width: 100%;
  height: auto;
  max-width: 360px;
}

/* CTA */
.topCommit__cta{
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ボタン（波背景） */
.topCommit__btn{
  display: block;
  width: min(400px, 90%);
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.04em;
  color: #fff !important;
  border-radius: 10px;
  background: url(../images/commit_bg02_read.webp) center / cover no-repeat;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.topCommit__btn:hover{
    filter: brightness(2.5);
}

.topCommit__btn:focus-visible{
  outline: 3px solid rgba(184,154,83,0.65);
  outline-offset: 4px;
}

/* ===== 右端の「◯の中に→」：安定版（文字で表示） ===== */

.topCommit__btn{
  position: relative;     /* 追加 */
  padding-right: 70px;    /* 追加：右端アイコン分の余白 */
}

.topCommit__btn::after{
  content: "→";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);

  width: 32px;            /* ◯の大きさ（見本寄せ） */
  height: 32px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 9999px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;        /* 矢印の大きさ */
  line-height: 1;
  color: rgba(255,255,255,.95);

  pointer-events: none;
}

@media (max-width: 767px){
  .topCommit__btn{
    padding: 16px 18px;   /* 少し詰める（必要最小限） */
    padding-right: 50px;  /* 右の◯分も少し詰める */
  }
  .topCommit__btn::after{
    font-size: 14px;
    width: 22px;            /* ◯の大きさ（見本寄せ） */
    height: 22px;
  }
}


/* Responsive */
@media (max-width: 900px){
  .topCommit__head{
    padding: 42px 0 0;
  }

  .topCommit__body{
    padding: 34px 0 44px;
  }

  .topCommit__grid{
    flex-direction: column;
    align-items: flex-start;
  }

  .topCommit__visual{
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .topCommit__visual img{
    max-width: 320px;
  }

  .topCommit__cta{
    margin-top: 28px;
  }
  .topCommit__content{
    flex: none;
    min-width: 0;
  }
}

/* 英字装飾（MARKETING × DESIGN） */
.topCommit__enBand{
  margin-top: 0;
  background-color: #fff;
}

.topCommit__enText{
  width: 90%;
  margin: 0 auto;
  padding: 40px 0 0;

  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 0.75;

  /* うっすら大きく */
  color: rgba(0, 0, 0, 0.12);
  font-size: clamp(18px, 3.6vw, 65px);

  /* 文字を横に広げる */
  letter-spacing: 0.9em;
  white-space: nowrap;
}

/* SPは詰める（はみ出し防止） */
@media (max-width: 900px){
  .topCommit__enText{
    letter-spacing: 0.22em;
    font-size: clamp(18px, 6.2vw, 28px);
    padding: 20px 0 0;
  }
}
