/* ==========================================================================
   1. 変数定義 & 共通スタイル
   ========================================================================== */
:root {
  --flow: steelblue;
  --main-back: #fff;
  --dark: #555;
  --red: #fc445b;
}

/* 共通レイアウト & テキスト調整 */
.img-responsive {
  max-width: 100%;
  height: auto;
}

.position-relative {
  z-index: 1;
}

.price {
  color: crimson;
}

.badge-warning,
.badge-light {
  background: lightgoldenrodyellow;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

/* 見出しカラー＆中央揃え設定 */
.list-title,
.price_title,
.box.pricelist .pricelist-title {
  color: #fff;
}

.list-title,
.price_title {
  text-align: center;
}

.list-title {
  padding: 1em;
  margin-bottom: 1em;
  background: #008bd1;
  font-size: 1.5em;
  font-weight: bold;
}

/* ==========================================================================
   2. Pricelist Wrap（最上部・概要エリア）
   ========================================================================== */
.pricelist-wrap {
  overflow: hidden;
  letter-spacing: 0.1em;
  line-height: 150%;
}

.pricelist-wrap .container {
  max-width: 1200px;
}

.pricelist-wrap .breadcrumb {
  display: block;
  padding: 0;
  margin: 0;
  font-size: 10px !important;
  letter-spacing: 0;
}

.pricelist-wrap .breadcrumb .breadcrumb-item {
  display: inline-block;
}

.pricelist-wrap .bg-blue {
  background: #008bd1;
}

/* Reference（トップ価格簡易表） */
.pricelist-wrap .reference {
  position: relative;
  z-index: 1;
  padding: 15px;
  margin-left: -15px;
  border-radius: 0 12px 12px 0;
  background: #fff;
}

.pricelist-wrap .reference .attention {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
}

.pricelist-wrap .reference .link {
  margin-top: 10px;
  font-size: 2.5vw;
  text-align: center;
}

.pricelist-wrap .reference .link .btn {
  margin-bottom: 10px;
  border-radius: 0.25em;
}

.pricelist-wrap .reference .reference-pricelist {
  border: 2px solid var(--dark);
  border-radius: 6px;
  font-weight: bold;
}

.price_title {
  padding: 0.2em 0 0.4em;
  border-radius: 3px 3px 0 0;
  background: var(--dark);
}

.price_title a {
  padding: 0.2em;
  margin-left: 0.3em;
  border: 1px solid #fff;
  border-radius: 3px;
  background: #ffac03;
  color: #fff;
  font-size: 0.7em;
}

/* 簡易価格表（テーブル） */
.reference-pricelist table {
  margin: 0;
  width: 100%;
}

.reference-pricelist table th,
.reference-pricelist table td {
  padding: 0.3em;
  text-align: center;
  vertical-align: middle;
}

.reference-pricelist table td {
  color: var(--red);
  font-weight: bold;
}

.reference-pricelist table td span {
  font-size: 70%;
  font-weight: normal;
}

/* ==========================================================================
   3. 選ばれる理由・流れ・FAQ
   ========================================================================== */
.pricelist-wrap .about {
  position: relative;
  z-index: 1;
  padding: 3em 0;
}

.pricelist-wrap .about ul li .about-list {
  height: calc(100% - 2.5em);
  margin: 2em 0 0.5em;
  border: 4px solid #fff;
  border-radius: 1em;
  color: #fff;
  font-weight: bold;
  font-style: italic;
  text-align: center;
}

.pricelist-wrap .about ul li .about-list img {
  width: 4em;
  margin-top: -2.5em;
}

.pricelist-wrap .about .flow {
  padding: 20px 15px 30px;
  margin-top: 2em;
  border-radius: 0.5em;
  background: #fff;
  color: #008bd1;
  text-align: center;
}

.pricelist-wrap .about .flow p {
  margin: 1em auto 0.5em;
  font-size: 1.75em;
  font-weight: bold;
  font-style: italic;
}

.pricelist-wrap .about .flow p:first-child {
  margin-top: 0;
}

.pricelist-wrap .about .flow img {
  width: 100%;
  max-width: 850px;
}

/* FAQ */
.pricelist-wrap .about .faq-wrap {
  margin-top: 2em;
}

.pricelist-wrap .about .faq-wrap .collapsing {
  transition: height 0.2s ease !important;
}

.pricelist-wrap .about .faq-wrap .faq {
  margin-bottom: 1em;
  border-radius: 0.5em;
  background: #fff;
  font-size: 1.1em;
}

.pricelist-wrap .about .faq-wrap .faq .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1.2em;
  cursor: pointer;
}

.pricelist-wrap .about .faq-wrap .faq .faq-body {
  padding: 0 0.8em 0.8em 2em;
  font-size: 90%;
}

/* ==========================================================================
   4. Box Pricelist（詳細価格表リスト）
   ========================================================================== */
.box.pricelist {
  margin-bottom: 3rem;
}

.box.pricelist .pricelist-title {
  display: block !important;
  padding: 0.7rem 1rem !important;
  margin-bottom: 0 !important;
  background: var(--dark) !important;
  font-size: 1.8rem !important;
}

.box.pricelist .pricelist-releasedate {
  padding: 4px 8px;
  margin-bottom: 0;
  background: #eee;
  color: #7d7d7d;
  font-size: 1.1rem;
  line-height: 1.5rem;
  text-align: right;
}

.box.pricelist table {
  border-bottom: 1px solid #ddd;
  line-height: normal;
}

.box.pricelist table tr {
  border-bottom: 1px solid #ddd;
  color: #4c4c4c;
}

.box.pricelist table tr:last-child {
  border-bottom: none;
}

.box.pricelist table tr td,
.box.pricelist table tr th {
  padding: 0 5px;
  border-bottom: 0;
  vertical-align: middle;
}

/* キャリアラベル */
.box.pricelist table tr th .carrer {
  position: relative;
  display: block;
  margin-bottom: 5px;
  background: linear-gradient(90deg, #e6e6e6, #ececec, #fff);
  color: #868686;
  font-size: 1rem;
}

.box.pricelist table tr th .carrer span {
  display: block;
  padding: 2px 4px;
  color: #fff;
}

.box.pricelist table tr th .carrer .docomo {
  background: linear-gradient(90deg, #d2203e, #e27688, transparent);
}

.box.pricelist table tr th .carrer .au {
  background: linear-gradient(90deg, #eb5505, #ffaa7d, transparent);
}

.box.pricelist table tr th .carrer .softbank {
  background: linear-gradient(90deg, #8b8b8b, #cdcdcd, transparent);
}

.box.pricelist table tr th .carrer .simfree {
  color: #868686;
}

.box.pricelist table tr th .name {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.5;
}

/* 価格表示箇所のセル設定 */
.box.pricelist table tr td:nth-of-type(1) {
  width: 22rem;
  text-align: right;
}

.box.pricelist table tr td:nth-of-type(2) {
  width: 8.5rem;
  padding: 1.5rem 5px 1.8rem;
  text-align: right;
}

.box.pricelist table tr td .s-name,
.box.pricelist table tr td .a-name {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 2rem;
  word-break: auto-phrase;
}

.box.pricelist table tr td .s-price {
  margin-left: 5px;
  color: var(--red);
  font-size: 1.6rem;
}

.box.pricelist table tr td .a-price,
.box.pricelist table tr td .c-price {
  color: #f08e8e;
}

.box.pricelist table tr td .a-price {
  margin: 0 3px 0 5px;
}

.box.pricelist table tr td .c-price {
  margin-left: 0.3rem;
}

/* SIMロック解除バッジ */
.box.pricelist tr.simunlock span.carrer::after {
  position: absolute;
  top: 0.2rem;
  right: 0;
  content: "SIMロック解除で増額中！";
  border-radius: 5px;
  color: var(--red);
  font-size: 1rem;
  text-shadow: #fff 1px 1px 0, #fff -1px -1px 0, #fff -1px 1px 0, #fff 1px -1px 0;
}

/* アコーディオンボタン */
.box.pricelist .accordion-button {
  padding: 10px;
  margin-bottom: 40px;
}

.box.pricelist .accordion-button .btn:after {
  content: '他のモデルを見る';
}

.box.pricelist .accordion-button .btn[aria-expanded="true"]:after {
  content: "閉じる";
}

/* ==========================================================================
   5. キャンペーン
   ========================================================================== */
.pricelist-campaign p.text-center {
  display: block;
  padding: 6px;
  margin-bottom: 8px;
  background: #145082;
  color: #fff;
}

.pricelist-campaign li {
  float: left;
  width: 49%;
}

.pricelist-campaign li:nth-child(even) {
  margin-left: 2%;
}

/* ==========================================================================
   6. レスポンシブ（メディアクエリ統合エリア）
   ========================================================================== */
@media (max-width: 767px) {
  .box.pricelist table tr td:nth-of-type(1) {
    width: 22rem;
    padding: 0;
  }
}

@media (max-width: 520px) {
  .pricelist-wrap .reference {
    font-size: 3.5vw;
  }

  .box.pricelist table tr td:nth-of-type(1) {
    width: 13rem;
  }

  .box.pricelist table .s-price {
    display: block;
    margin-top: -5px;
  }

  .box.pricelist table .a-price::before {
    content: "\A";
    white-space: pre;
  }

  .box.pricelist table .a-price {
    margin: 0 3px 0 0;
  }

  .box.pricelist table span.a-name {
    margin-top: 3px;
    line-height: 1.3rem;
  }
}

@media (max-width: 405px) {
  .box.pricelist tr.simunlock span.carrer::after {
    right: auto;
    left: 50px;
    width: 120px;
  }
}

@media (max-width: 370px) {
  .box.pricelist table span.a-name {
    font-size: 70%;
  }

  .box.pricelist table tr td:nth-of-type(1) {
    width: 11.5rem;
  }

  .box.pricelist table tr td:nth-of-type(2) {
    width: 7.5rem;
  }

  .box.pricelist table tr td .btn {
    width: 6.5rem;
  }
}

@media (min-width: 768px) {
  .pricelist-wrap .reference {
    margin-left: 0;
    border-radius: 12px;
  }

  .pricelist-wrap .reference .link {
    font-size: 18px;
  }

  .pricelist-wrap .reference .reference-pricelist {
    font-size: 130%;
    line-height: 140%;
  }
}

@media (min-width: 992px) {
  .pricelist-wrap .reference .reference-pricelist {
    font-size: 180%;
    line-height: 130%;
  }

  .list_th {
    font-size: 80%;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .box.pricelist tr.simunlock span.carrer::after {
    right: -30px;
  }
}