/* =========================================================
   Reason
   ========================================================= */
.sg-reason {
  padding: 0 0 50px;
}

/* ---------------------------------------------------------
   ナビ
   --------------------------------------------------------- */
.sg-reason .sgr-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 26px auto 40px;
}

/* PC：4列相当の幅（7枚→2段目が3枚で中央寄せになる） */
.sg-reason .sgr-navitem {
  display: grid;
  grid-template-columns: 25px 1px 1fr;
  gap: 10px;
  align-items: center;
  width: min(260px, calc((100% - 25px * 3) / 4));
  min-height: 80px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  padding: 10px 10px 10px 20px;
}

/* 縦線（2列目に固定） */
.sg-reason .sgr-navitem::before {
  content: "";
  width: 1px;
  height: 50px;
  background: rgba(0, 0, 0, .35);
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
}

/* 数字 */
.sg-reason .sgr-navnum {
  grid-column: 1;
  display: block;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  font-size: 35px;
  line-height: 1;
  color: #669e9a;
  text-align: left;
}

/* テキスト */
.sg-reason .sgr-navtxt {
  grid-column: 3;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .02em;
  color: #000;
}

/* hover：common.cssのopacityを打ち消す */
.sg-reason .sgr-navitem:hover,
.sg-reason .sgr-navitem:focus {
  opacity: .5;
  transform: translateY(-5px);
  transition: opacity .2s ease, transform .2s ease;
}

/* Responsive */
@media (max-width: 900px) {
  .sg-reason .sgr-nav {
    gap: 16px;
  }

  .sg-reason .sgr-navitem {
    width: calc((100% - 16px) / 2);
    min-height: 120px;
    padding: 18px 16px;
  }

  .sg-reason .sgr-navtxt {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .sg-reason .sgr-nav {
    margin: 18px auto 26px;
    gap: 14px;
  }

  .sg-reason .sgr-navitem {
    width: 100%;
    min-height: 0;
    padding: 16px 14px;
    grid-template-columns: 40px 1px 1fr;
    gap: 12px;
  }

  .sg-reason .sgr-navnum {
    font-size: 30px;
  }

  .sg-reason .sgr-navitem::before {
    height: 34px;
  }

  .sg-reason .sgr-navtxt {
    font-size: 16px;
  }
}

/* ---------------------------------------------------------
   各セクション共通
   --------------------------------------------------------- */
.sg-reason .sgr-sec {
  padding: 30px 0 50px;
  scroll-margin-top: 110px;
  margin-bottom: 20px;
}

.sg-reason .sgr-sec-head {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, .35);
  margin-bottom: 30px;
  padding-bottom: 10px;
}

/* セクション番号（見出し左） */
.sg-reason .sgr-no {
  position: relative;
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  font-size: 40px;
  color: #669e9a;
  line-height: 1;
  padding-bottom: 3px;
}

.sg-reason .sgr-no::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 35px;
  background: rgba(0, 0, 0, .35);
}

.sg-reason .sgr-h2 {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.45;
  letter-spacing: .03em;
  margin: 0;
}

/* 2カラム（PC） */
.sg-reason .sgr-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}

.sg-reason .sgr-h3 {
  margin: 0 0 14px;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: .01em;
}

/* 本文 */
.sg-reason .sgr-text p {
  line-height: 1.9;
  margin: 0;
}

/* ボタン */
.sg-reason .sg-btn {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-top: 30px;
}

/* ---------------------------------------------------------
   右カラム：画像・動画
   --------------------------------------------------------- */
.sg-reason .sgr-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* 画像2枚（理由2,4） */
.sg-reason .sgr-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* 動画＋画像（理由3）：縦に積む */
.sg-reason .sgr-yt {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* iframe：16:9 */
.sg-reason .sgr-yt iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

/* ---------------------------------------------------------
   工事実績 表
   --------------------------------------------------------- */
.sg-reason .sgr-tablebox {
  margin-top: 40px;
}

.sg-reason .sgr-tabletitle {
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 5px;
}

.sg-reason .sgr-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  margin: 0;
}

.sg-reason .sgr-table th,
.sg-reason .sgr-table td {
  text-align: center;
  vertical-align: middle;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  border: 1px solid rgba(0, 0, 0, .35);
  padding: 8px 8px;
}

.sg-reason .sgr-tablenote {
  text-align: right;
  font-size: 16px;
  color: #f00;
  margin: 0;
}

/* ---------------------------------------------------------
   マップ
   --------------------------------------------------------- */
.sg-reason .sgr-media {
  position: relative;
}

.sg-reason .sgr-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* 丸バッジ共通 */
.sg-reason .sgr-badge {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, .18);
  display: grid;
  place-content: center;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
  padding: 10px;
}

/* 文字 */
.sg-reason .sgr-badge-pref {
  margin: 0;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  font-size: clamp(14px, 2.5vw, 20px);
  letter-spacing: .08em;
  line-height: 1.2;
}

.sg-reason .sgr-badge-num {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  font-size: clamp(14px, 3.6vw, 26px);
  line-height: 1.1;
  margin: 6px 0 0;
}

.sg-reason .sgr-badge-num span {
  font-size: 12px;
}

/* 位置調整 */
.sg-reason .sgr-badge--chiba {
  left: 80%;
  top: 80%;
  transform: translate(-50%, -50%);
  width: clamp(88px, 18vw, 140px);
}

.sg-reason .sgr-badge--saitama {
  left: 34%;
  top: 28%;
  transform: translate(-50%, -50%);
  width: clamp(60px, 15vw, 120px);
}

.sg-reason .sgr-badge--ibaraki {
  left: 75%;
  top: 18%;
  transform: translate(-50%, -50%);
  width: clamp(60px, 18vw, 100px);
}

.sg-reason .sgr-badge--tokyo {
  left: 40%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: clamp(40px, 10vw, 90px);
}

/* ---------------------------------------------------------
   受賞歴
   --------------------------------------------------------- */
.sg-reason .sgr-awards {
  margin: 20px 0;
}

.sg-reason .sgr-awards-title {
  font-size: 17px;
  color: #f00;
  line-height: 1.3;
  margin: 0 0 10px;
}

.sg-reason .sgr-awards-list {
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, .35);
  margin: 0;
  padding: 0;
}

.sg-reason .sgr-awards-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, .35);
  padding: 8px 0;
}

.sg-reason .sgr-awards-years {
  text-align: center;
  line-height: 1.2;
}

.sg-reason .sgr-awards-name {
  line-height: 1.2;
  border-left: 1px solid rgba(0, 0, 0, .35);
  padding-left: 16px;
}

/* -------------------------
   Responsive
------------------------- */
@media (max-width: 900px) {
  .sg-reason .sgr-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .sg-reason .sgr-h2 {
    font-size: 18px;
  }

  .sg-reason .sgr-awards-item {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .sg-reason .sgr-awards-years,
  .sg-reason .sgr-awards-name {
    font-size: 14px;
  }

  .sg-reason .sgr-table th,
  .sg-reason .sgr-table td {
    font-size: 12px;
    padding: 8px 6px;
  }

  .sg-reason .sgr-badge {
    width: clamp(70px, 22vw, 110px);
    padding: 8px;
  }

  .sg-reason .sgr-badge-num {
    margin-top: 4px;
  }
}