.loke-no-syasin {
  position: relative;
  margin-bottom: -15px;
}

.loke-no-moji {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40%;
  transform: translate(-50%, -50%);
}

.body1080 {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 20px;
}

.body780 {
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 20px;
}

.nakanosan {
  margin: 80px auto 100px;
  text-align: center;
}

.nakanomo {
  max-width: 980px;
  margin: 100px auto 50px;
  font-size: 12px;
  text-align: center;
}

.plan-section {
  box-sizing: border-box;
  padding: 56px 0 0;
  background: #b8aea5;
}

.plan-top {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 42px;
  max-width: 1080px;
  margin: 0 auto;
}

.plan-cards {
  width: 400px;
}

.plan-card {
  display: block;
  margin-bottom: 14px;
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.plan-card img {
  display: block;
  width: 100%;
  height: auto;
}

.plan-card:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

.plan-card.is-disabled {
  pointer-events: auto;
  cursor: default;
}

.plan-note {
  margin-top: 10px;
  color: #ffffff;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.plan-floor {
  width: 250px;
  padding-top: 14px;
}

.floor-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.floor-item {
  display: grid;
  grid-template-columns: 0.4fr 1.3fr 1.3fr;
  gap: 15px;
  margin-bottom: 4px;
}

.floor-num {
  position: relative;
  width: 32px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  text-align: right;
  letter-spacing: 0.04em;
}

.floor-num::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 36px;
  height: 2px;
  background: #ffffff;
  opacity: 0.9;
  transform: translateY(-50%);
}

.floor-boxes {
  display: flex;
  gap: 0;
}

.floor-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 36px;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.25s ease;
}

.floor-box.is-a,
.floor-box.is-service {
  background: #c5c5c5;
  color: #9c9c9c;
}

.floor-box.is-b,
.floor-box.is-c {
  background: #f3f3f1;
   color: #43516c;
}

.floor-box.is-a {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.floor-box.is-b,
.floor-box.is-c {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.floor-box.is-service {
  font-size: 20px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.floor-note {
  margin-top: 8px;
  color: #ffffff;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.04em;
}

.plan-copy {
  margin-top: 44px;
  padding: 46px 20px 52px;
  background: #46546f;
}

.plan-copy h2 {
  margin: 0 0 28px;
  color: #ffffff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.08em;
}

.plan-copy ul {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.plan-copy li {
  position: relative;
  padding-left: 1em;
  color: #ffffff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.05em;
}

.plan-copy li::before {
  content: "・";
  position: absolute;
  top: 0;
  left: 0;
}

.floor-box.is-a:hover,
.floor-box.is-b:hover,
.floor-box.is-c:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}


.floor-box.is-b:hover,
.floor-box.is-c:hover {
  background: #43516c;
  color: #fff;
}

/* 左カードにマウスを乗せた時、右の対応マスを強調 */
.plan-top:has(.plan-cards .plan-card:nth-child(1):hover) .plan-floor .floor-box.is-a,
.plan-top:has(.plan-cards .plan-card:nth-child(2):hover) .plan-floor .floor-box.is-b,
.plan-top:has(.plan-cards .plan-card:nth-child(3):hover) .plan-floor .floor-box.is-c {
  background: #43516c;
  color: #f3f3f1;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.tyorotyorto-taiya {
  display: none;
}

.toyo-p {
  margin: 3px 0;
  color: #3f495d;
  font-size: 22px;
  font-weight: 700;
}

.maijinga {
  margin: 0;
}

.plan-b-detail {
  display: block;
}

.plan-floor2 {
  display: none;
}


.plan-card {
  position: relative;
  display: block;
  margin-bottom: 14px;
}


/* coming soonでもhoverは効かせる */
.plan-card.is-disabled {
  cursor: default;
}


/* =========================
   左カード hover → 右カード連動
   ========================= */

/* 右カードの基本アニメーション */
.plan-floor .floor-box {
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

/* Aをホバーした時：右のAを濃く、Bは白のまま */
.plan-top:has(.plan-cards .plan-card:nth-child(1):hover) .plan-floor .floor-box.is-a {
  background: #43516c;
  color: #f3f3f1;
}

.plan-top:has(.plan-cards .plan-card:nth-child(1):hover) .plan-floor .floor-box.is-b {
  background: #f3f3f1;
  color: #43516c;
}

/* Bをホバーした時：右のBを濃く、Aは白に */
.plan-top:has(.plan-cards .plan-card:nth-child(2):hover) .plan-floor .floor-box.is-b {
  background: #43516c;
  color: #f3f3f1;
}

.plan-top:has(.plan-cards .plan-card:nth-child(2):hover) .plan-floor .floor-box.is-a {
  background: #f3f3f1;
  color: #43516c;
}

/* Cをホバーした時：1FのCだけ濃く */
.plan-top:has(.plan-cards .plan-card:nth-child(3):hover) .plan-floor .floor-box.is-c {
  background: #43516c;
  color: #f3f3f1;
}

/* Cをホバーした時、※側は白ベースのまま */
.plan-top:has(.plan-cards .plan-card:nth-child(3):hover) .plan-floor .floor-box.is-service {
  background: #f3f3f1;
  color: #43516c;
}

@media (max-width: 768px) {
  .plan-b-detail {
    display: none;
  }

  .maijinga {
    margin: 45px 0;
  }

  .tyorotyorto-taiya {
    display: block;
    padding: 0 15px 15px;
  }

  .tyorotyorto {
    font-size: 10px;
  }

  .tyorotyorto span{
   line-height:1;
  }

  .plan-top {
    display: block;
    gap: 28px;
    align-items: center;
  }

  .plan-cards,
  .plan-floor {
    width: 100%;
    max-width: 100%;
  }

  .plan-copy {
    margin-top: 36px;
    padding: 36px 18px 42px;
    background: #ffffff;
  }

  .plan-copy h2 {
    margin: 0 0 28px;
    color: #3f495d;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 25px;
  }

  .plan-copy li {
    color: #3f495d;
    font-size: 16px;
    line-height: 1.9;
  }
}

@media (max-width: 768px) {
  .loke-no-moji {
    position: relative;
    top: 0;
    left: 0;
    width: 80%;
    margin: 30px auto 50px;
    transform: translate(0, 0);
  }

  .plan-section {
    box-sizing: border-box;
    padding: 56px 0 0;
    background: #ffffff;
  }

  .plan-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .plan-floor {
    display: none;
  }

  .plan-note {
    display: none;
  }

  .plan-floor2 {
    display: block;
    width: auto;
    padding: 30px;
    background: #b3a69b;
  }

  .plan-floor2 img {
    max-width: 45%;
    margin: 30px auto 15px;
  }

  .floor-item {
    display: grid;
    grid-template-columns: 0.1fr 1.3fr;
    gap: 15px;
    margin-bottom: 4px;
  }

  .floor-num {
    padding-top: 10px;
  }

  .floor-num::after {
    top: 85%;
    right: -6px;
  }
.nakanomo {
    text-align: left;
    margin:0 15px;
}
}

@media (max-width: 340px) {
    .plan-copy h2 {
        font-size: 22px;
    }
.floor-box {
    width: 90px;
}
}