@charset "utf-8";

/* ランキングカード内「◯◯の料金・サービス」タブ切替コンテンツ (info_tabs.php)
 * 指定色: 濃いピンク #D78A93（タイトル） / 薄いピンク #F1BCC0（選択タブ） / 茶 #8B4D41（タブ文字） */

.info-tabs {
  width: 96%;
  margin: 14px auto;
  padding-bottom: 12px;
  background: #fdf1f1;
  border-radius: 6px;
  overflow: hidden;
}

.info-tabs__title {
  position: relative;
  margin-bottom: 18px;
  padding: 0.55em 0.5em;
  background: #D78A93;
  color: #fff;
  text-align: center;
  font-size: 1.7rem;
  font-weight: bold;
}
.info-tabs__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border: solid transparent;
  border-width: 10px 12px 0;
  border-top-color: #D78A93;
}

.info-tabs__nav {
  display: flex;
  align-items: flex-end; /* 選択タブだけ背が高くなる（下端は揃える） */
  gap: 5px;
  width: 94%;
  margin: 0 auto 14px;
}
.info-tabs__btn {
  position: relative;
  flex: 1;
  padding: 0.6em 0.1em;
  background: #fff;
  border: 1px solid #e8cdd0;
  border-radius: 6px;
  color: #8B4D41;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
  transition: padding 0.15s ease, font-size 0.15s ease, background 0.15s ease;
}
.info-tabs__btn.is-active {
  padding: 0.9em 0.1em;
  background: #F1BCC0;
  border-color: #F1BCC0;
  font-size: 1.45rem;
}
.info-tabs__btn.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border: solid transparent;
  border-width: 7px 7px 0;
  border-top-color: #F1BCC0;
}

.info-tabs__panel {
  display: none;
  width: 94%;
  margin: 0 auto;
}
.info-tabs[data-active="price"] .info-tabs__panel[data-tab="price"],
.info-tabs[data-active="method"] .info-tabs__panel[data-tab="method"],
.info-tabs[data-active="access"] .info-tabs__panel[data-tab="access"],
.info-tabs[data-active="service"] .info-tabs__panel[data-tab="service"] {
  display: block;
}

.info-tabs__price,
.info-tabs__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}
.info-tabs__th {
  padding: 0.5em 0.2em;
  border: 1px solid #e0d6d2;
  background: #dff3ee;
  color: #203864;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
}
.info-tabs__th--price {
  background: #fbe3e6;
}
.info-tabs__th--part {
  width: 32%;
}
.info-tabs__td {
  padding: 0.7em 0.3em;
  border: 1px solid #e0d6d2;
  text-align: center;
  vertical-align: middle;
  font-size: 1.3rem;
  line-height: 1.45;
  word-break: break-word;
}
.info-tabs__price tr.is-top td {
  background: #fdf8e8;
}

.info-tabs__part {
  padding: 0.6em 0.2em;
  border: 1px solid #e0d6d2;
  text-align: center;
}
.info-tabs__part-img {
  display: block;
  width: 74%;
  max-width: 110px;
  margin: 0 auto;
}
.info-tabs__part-name {
  margin: 0.2em 0 0.4em;
  font-size: 1.35rem;
  font-weight: bold;
}
.info-tabs__part-btn {
  position: relative;
  display: inline-block;
  min-width: 72%;
  padding: 0.5em 0.8em;
  background: #FFA800;
  border-radius: 6px; /* タブと同じ角丸の長方形 */
  box-shadow: 0 2px 0 #CF8800;
  color: #fff;
  font-size: 1.25rem; /* パーツ名(1.35rem)より少し小さく */
  font-weight: bold;
  line-height: 1.35;
  text-decoration: none;
  overflow: hidden;
}
.info-tabs__part-btn::after {
  /* 外部リンクアイコン（白） */
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.25em;
  vertical-align: -0.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-5'/%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* キラッと光るエフェクト */
.info-tabs__part-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -120%;
  width: 36%;
  height: 200%;
  background: rgba(255, 255, 255, 0.6);
  transform: rotate(25deg);
  animation: info-tabs-shine 3.2s ease-in-out infinite;
}
@keyframes info-tabs-shine {
  0% { left: -120%; }
  38% { left: 170%; }
  100% { left: 170%; }
}

.info-tabs__mark {
  width: 22px;
  margin-bottom: 2px;
}
.info-tabs__text {
  font-size: 1.25rem;
}

.info-tabs__note {
  margin-top: 8px;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
}

@media screen and (min-width: 768px) {
  .info-tabs__title {
    font-size: 2rem;
  }
  .info-tabs__btn {
    font-size: 1.5rem;
  }
  .info-tabs__btn.is-active {
    font-size: 1.75rem;
  }
  .info-tabs__th,
  .info-tabs__td,
  .info-tabs__part-name {
    font-size: 1.5rem;
  }
  .info-tabs__text {
    font-size: 1.4rem;
  }
  .info-tabs__part-btn {
    font-size: 1.5rem;
  }
  .info-tabs__note {
    font-size: 1.2rem;
  }
}
