@charset "UTF-8";

body {
  background-color: #f1efe9;
}

/*コンテンツB 1day*/

.conB {
  width: 80%;
  margin: 0px auto 50px;
}

.conB h3 {
  width: 80%;
  margin: 0px 0 50px;
  padding-top: 50px;
  line-height: 1.6em;
}
.conB p {
  margin: -20px 0 10px;
  font-size: 1.2vW;
  line-height: 1.8vw;
}

.renovation-schedule {
  width: 80%;
  border: #f07207 1px solid;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  max-width: 1200px;
  margin: 40px auto 100px;
  padding: 20px;
  background-color: #fcfcfc;
}
.schedule-header {
  width: 100%;
  margin-bottom: 40px;
  text-align: center;
}
.schedule-header h3 {
  font-size: 24px;
  text-align: center;
  color: #333;
  margin: 20px 0;
}


.badge {
  background: #333;
  color: #fff;
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 4px;
  font-weight: bold;
}
.alert-box {
  display: inline-block;
  background-color: #fff0f0;
  border: 1px solid #ffcccc;
  color: #d93838;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 10px;
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 10px;
}

/* ステップ数字の丸いサークル */
.step-number {
  background-color: #fff;
  border: 2px solid #bbb;
  color: #777;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  transition: all 0.3s ease;
}
/* 中身のカード */
.step-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  min-height: 140px;
}
.step-card h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #333;
  line-height: 1.2;
}
.step-card h5 {
  margin: -5px 0 5px 0;
  font-size: 16px;
  color: #333;
  line-height: 1.2;
}
.step-days {
  font-size: 13px;
  color: #007bff;
  font-weight: bold;
  margin: 0 0 10px 0;
  padding-top: 3px;
}
.step-desc {
  font-size: 12px;
  color: #444;
  margin: 0;
  text-align: left;
  line-height: 1.5;
}
/* --- 特別な状態のカラー（使えない / 復活） --- */
/* ⚠️ 使えない期間（赤） */
.timeline-step.is-danger .step-number {
  border-color: #d93838;
  background-color: #d93838;
  color: #fff;
}
.timeline-step.is-danger .step-card {
  border-top: 4px solid #d93838;
  background-color: #fffafa;
}
/* ✨ 復活・使える期間（緑） */
.timeline-step.is-success .step-number {
  border-color: #28a745;
  background-color: #28a745;
  color: #fff;
}
.timeline-step.is-success .step-card {
  border-top: 4px solid #28a745;
  background-color: #f7fdf9;
}


@media (max-width: 767px) {

  /*767px以下*/
  .con1 {
    width: 100%;
    padding: 10px;
    background-color: #27201c;
  }

  .con1 .container {
    width: 100%;
    margin: 0 auto;
  }

  .conA {
    width: 100%;
    margin: -38px auto 20px;
  }

  .conA .container {
    width: 100%;
  }

  .conB {
    width: 100%;
    margin: 0px auto 50px;
    padding-bottom: -30px;
    background-color: #f1efe9;
  }

  .conB .container {
    width: 80%;
    margin: 0px auto;
  }

  .conB h3 {
    width: 100%;
    margin: -30px auto 10px;
    color: #4c392d;
    font-size: 4vw;
  }

  .conB h4 {
    width: 100%;
    margin: 0px auto;
    line-height: 1.3rem;
  }
  .conB p {
    width: 80%;
    line-height: .8rem;
    font-size: 2.5vw;
    margin: 10px auto 0;
  }

  /* スケジュール */
/* --- 📱 スマートフォン用の縦並び切り替え（レスポンシブ） --- */

  .timeline-wrapper {
    flex-direction: column;
    padding-left: 0;
  }
  .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px; /* 下側の矢印スペース */
    padding: 0;
  }
  .step-number{
    margin-bottom: 5px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin: 0 auto 20px auto;
  }
  /* 💡【修正】スマホ用の下向き矢印も、カードのすぐ下に配置 */
  .timeline-step:not(:last-child)::after {
    content: "▼"; /* スマホは見やすいように少し太めの矢印にしました */
    top: auto;
    bottom: -30px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #ccc;
  }

/* フッター */
  footer {
    margin-top: 40px;
  }
}

@media (min-width: 768px) {
  /*768px以上*/

  /*  タイムスケジュールー*/
  .conB h3 {
    width: 65%;
    margin: 0 auto;
    color: #4c392d;
    font-size: 2vw;
  }
  .conB h4 {
    width: 80%;
    margin: 10px auto 0px;
    line-height: 1.8vw;
  }
  .conB p {
    width: 80%;
    margin: 10px auto -15px;
    font-size: 1vw;
    padding-left: 20px;
  }

  /* スケジュール */
/* --- 横型タイムラインのレイアウト（PC用） --- */
.timeline-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 5px;
  margin: 0 auto 30px;
}
/* ステップ同士を繋ぐ中央の横線 */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 35px; /* STEPサークルの中心を通る位置 */
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}
.timeline-step {
  width: 60%;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 10px;
  margin: 0 auto;
}
/* 💡【修正】PC用の矢印を「カードの真横」に配置 */
.timeline-step:not(:last-child)::after {
  content: "＞";
  position: absolute;
  top: 120px;       /* 👈 数字の位置（32px）＋カードの中心に合わせる計算 */
  right: -10px;     /* 隣のカードとの真ん中 */
  font-size: 18px;
  color: #bbb;
  font-weight: bold;
  z-index: 3;
}
/* ステップ数字の丸いサークル */
.step-number {
  width: 45px;
  height: 45px;
  background-color: #fff;
  border: 2px solid #bbb;
  color: #777;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  transition: all 0.3s ease;
}
/* 中身のカード */
.step-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  min-height: 140px;
}
.step-card h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #333;
}
.step-days {
  font-size: 13px;
  color: #007bff;
  font-weight: bold;
  margin: 0 0 10px 0;
}
.step-desc {
  font-size: 12px;
  margin: 0;
  text-align: left;
  line-height: 1.5;
}/* --- 特別な状態のカラー（使えない / 復活） --- */
/* ⚠️ 使えない期間（赤） */
.timeline-step.is-danger .step-number {
  border-color: #d93838;
  background-color: #d93838;
  color: #fff;
}
.timeline-step.is-danger .step-card {
  border-top: 4px solid #d93838;
  background-color: #fffafa;
}
/* ✨ 復活・使える期間（緑） */
.timeline-step.is-success .step-number {
  border-color: #28a745;
  background-color: #28a745;
  color: #fff;
}
.timeline-step.is-success .step-card {
  border-top: 4px solid #28a745;
  background-color: #f7fdf9;
}
}

@media (max-width: 599px) {
  :root {
    font-size: 14px;
  }
}/* カードの長さを揃える */
.timeline-wrapper {
  display: flex;
  align-items: stretch; /* 子の高さを一番高いものに揃える */
  gap: 10px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  flex: 1; /* 幅も均等にする */
}

.step-card {
  flex: 1; /* 余った高さを埋めてカードの長さを揃える */
}

@media (min-width: 600px) and (max-width: 799px) {
  :root {
    font-size: 16px;
  }
}

@media (min-width: 900px) {
  :root {
    font-size: 17px;
  }

  .headB .sub-menu {
    width: 270px;
  }
}

@media (max-width: 900px) {
  .conA .nav li {
    font-size: 10px;
  }
}
