/* 背景色 #F5F5F1 */
body {
    background-color: #F5F5F1;
}

section[id] {
  scroll-margin-top: 100px; /* ←ヘッダーの高さに合わせて調整 */
}

/* ファーストビュー */
.firstview-r {
    padding: 0 15%;
}

.img-firstview-r {
    height: 290px;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    background-image: url('../images/reasonwhy/reasonwhyTop.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 選ばれる理由6選 */
.reason-r {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.reason-title-r {
  position: relative;
  display: inline-block;
}

.reason-bg-r {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.05); /* 薄く透けた文字 */
  z-index: 1;
  white-space: nowrap;
}

.reason-main-r {
  position: relative;
  font-size: 50px;
  color: #3e1e1a; /* 濃いブラウン系 */
  z-index: 2;
  margin: 0;
  font-weight: bold;
}

.reason-text-box {
  position: relative;
  background-color: #ffffff;
  border: 3px solid #003873;
  max-width: 800px;
  margin: 0px auto 70px auto;
  padding: 15px 0px;
  text-align: center; /* 中央ぞろえ */
  color: #3e1e1a; /* 濃いブラウン系 */
}

/* 選ばれる理由6選 */
.reason-h1 {
  font-size: 50px;
  font-weight: bold;
}
.reason-h2 {
  font-size: 30px;
  font-weight: bold;
}

/*** plan1 ***/
.img-reason-plan1 {
  height: 200px;
  width: 100%;
  margin: 15px auto;
  max-width: 800px;
  background-image: url('../images/reasonwhy/rCard1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.reason-text-plan1 {
  text-align: start;
  padding: 0 30px;
  font-size: 21px;
}

/*** plan2 ***/
.big {
  font-size: 60px; /* h1の基準より2倍の大きさ */
}
.reason-h1.h1-plan2 {
  font-size: 40px;
}
.img-reason-plan2 {
  height: 280px;
  width: 100%;
  margin: 15px auto;
  max-width: 800px;
  background-image: url('../images/reasonwhy/rCard2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.reason-container {
  display: flex;
  align-items: stretch; /* ← ここが重要：子要素（divider含む）を縦に伸ばす */
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
}
.reason-column {
  flex: 1;
  box-sizing: border-box;
  text-align: start;
  font-size: 20px;
}
.reason-column.plan2-left {
  padding-left: 20px;
}
.reason-column.plan2-right {
  padding-right: 20px;
}
.reason-divider {
  width: 0;
  align-self: stretch;      /* 親の高さに合わせて伸ばす */
  border-left: 3px dotted #a88b74; /* 点線の太さと色 */
  margin: 0 12px;
}
.reason-h3 {
  margin-bottom: 8px;
  font-weight: bold;
}

/*** plan3 ***/
.reason-h1.h1-plan3 {
  font-size: 32px;
}
.reason-h2.h2-plan3 {
  font-size: 44px;
  margin-top: -10px;
}
.img-reason-plan3 {
  height: 280px;
  width: 100%;
  margin: 15px auto;
  max-width: 800px;
  background-image: url('../images/reasonwhy/rCard3.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.reason-text-plan3 {
  text-align: start;
  padding: 0 30px;
  font-size: 21px;
}

/*** plan4 ***/
.reason-h1.h1-plan4 {
  font-size: 35px;
}
.reason-h2.h2-plan4 {
  font-size: 44px;
  margin-top: -10px;
}
.img-reason-plan4 {
  height: 220px;
  width: 100%;
  margin: 15px auto;
  max-width: 800px;
  background-image: url('../images/reasonwhy/rCard4.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.reason-text-plan4 {
  text-align: start;
  padding: 0 30px;
  font-size: 21px;
}

/*** plan5 ***/
.reason-h1.h1-plan5 {
  font-size: 35px;
}
.reason-h2.h2-plan5 {
  font-size: 44px;
  margin-top: -10px;
}
.img-reason-plan5 {
  height: 220px;
  width: 100%;
  margin: 15px auto;
  max-width: 800px;
  background-image: url('../images/reasonwhy/rCard5.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.reason-text-plan5 {
  text-align: start;
  padding: 0 30px;
  font-size: 21px;
}

/*** plan6 ***/
.reason-h1.h1-plan6 {
  font-size: 35px;
}
.reason-h2.h2-plan6 {
  font-size: 44px;
  margin-top: -10px;
}
.img-reason-plan6 {
  height: 220px;
  width: 100%;
  margin: 15px auto;
  max-width: 800px;
  background-image: url('../images/reasonwhy/rCard6.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.reason-text-plan6 {
  text-align: start;
  padding: 0 30px;
  font-size: 21px;
}



@media (max-width: 480px) {
    /* ファーストビュー */
    .firstview-r {
        padding: 0;
    }
    .img-firstview-r {
        height: 220px;
        background-size: cover;
    }
    
    /* 選ばれる理由6選 */
    .reason-bg-r {
      font-size: 48px;
    }
    .reason-main-r {
      font-size: 32px;
    }
    /* 選ばれる理由6選 */
/*** plan1 ***/
    .reason-h1 {
      font-size: 32px;
    }
    .reason-h2 {
      font-size: 24px;
    }
    .reason-text-plan1 {
      font-size: 12px;
    }
/*** plan2 ***/
    .big {
      font-size: 36px; /* h1の基準より2倍の大きさ */
    }
    .reason-h1.h1-plan2 {
      font-size: 24px;
    }
    .img-reason-plan2 {
      height: 200px;
    }
    .reason-column {
      font-size: 12px;
    }
/*** plan3 ***/
    .reason-h1.h1-plan3 {
      font-size: 28px;
    }
    .reason-h2.h2-plan3 {
      font-size: 40px;
    }
    .img-reason-plan3 {
      height: 200px;
    }
    .reason-text-plan3 {
      font-size: 12px;
    }
/*** plan4 ***/
    .reason-h1.h1-plan4 {
      font-size: 28px;
    }
    .reason-h2.h2-plan4 {
      font-size: 38px;
    }
    .img-reason-plan4 {
      height: 190px;
    }
    .reason-text-plan4 {
      font-size: 12px;
    }
/*** plan5 ***/
    .reason-h1.h1-plan5 {
      font-size: 28px;
    }
    .reason-h2.h2-plan5 {
      font-size: 36px;
    }
    .img-reason-plan5 {
      height: 175px;
    }
    .reason-text-plan5 {
      font-size: 12px;
    }
/*** plan6 ***/
.reason-h1.h1-plan6 {
  font-size: 24px;
}
.reason-h2.h2-plan6 {
  font-size: 34px;
}
.img-reason-plan6 {
  height: 185px;
}
.reason-text-plan6 {
  font-size: 12px;
}
}