@charset "utf-8";

/* ==========================================================================
   共通設定 (Base)
   ========================================================================== */
body {
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 14px;
  line-height: calc(20 / 14);
  color: #333;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.inner {
  width: 992px;
  margin: auto;
}

.sp-only {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   特典セクション全体の背景設定 (濃い青 + 雲の柄)
   ========================================================================== */
.tokuten {
  background-color: #00325b;
  background-image: url("../images/tokkuten_bg.webp");
  background-repeat: repeat;
  background-position: top center;
  background-size: 500px auto;
  margin: 21px 0;
}

/* ==========================================================================
   タイトル画像と重なり設定
   ========================================================================== */
.tokuten_h2.title-image {
  background-image: url("../images/tokuten-title.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: auto;
  aspect-ratio: 928 / 312;
  /* 画像の比率 */
  width: 90%;
  max-width: 560px;
  margin: 0 auto;
  border: none;
  padding: 0;

  /* 重なりの順序を上にする */
  position: relative;
  z-index: 2;
}

/* タイトル下のサブ見出し（背景が青い部分） */
.tokuten_h3 {
  color: #ffffff;
  text-align: center;
  padding: 0px 0 20px;

}

/* ==========================================================================
   キャンペーン内容エリア (白背景ボックス ＋ 重なり)
   ========================================================================== */
.tokuten .layout-c {
  background-color: #ffffff;
  max-width: 1104px;
  margin: -60px auto 0;
  /* 上にずらしてタイトルと被らせる */
  padding: 70px 80px 40px;
  /* 上部に余白を作り、被ったタイトルと中身が重ならないようにする */
  border-radius: 30px;
  position: relative;
  z-index: 1;
  /* タイトルより下に配置 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  /* 軽い影をつけると背景から浮き立って綺麗です */
}

/* 黄色のマーカー */
.marker-yellow {
  background: linear-gradient(transparent 60%, #ffff00 60%);
  display: inline-block;
  padding: 0 2px;
  color: #333;
  /* 背景が白なので文字は濃い色に */
}

/* ==========================================================================
   特典カード & アコーディオン
   ========================================================================== */
#saikaiApp .ui-static-item-card-details {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.accordion__button {
  width: 218px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 24px;
  background-color: #00325b;
  border: 1px solid #00325b;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  position: relative;
  text-align: center;
  font-weight: bold;
}

.plan__details {
  display: none;
  width: 100%;
  padding: 15px;
  background-color: #f9f9f9;
  text-align: left;
  border-top: 1px dashed #ccc;
  margin-top: 10px;
  box-sizing: border-box;
}

.item-sub {
  display: inline-block;
  background: #00325b;
  color: #fff;
  padding: 2px 10px;
  font-size: 11px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: bold;
}

/* ==========================================================================
   キャンペーン概要ボックス
   ========================================================================== */
.campaign-summary {
  max-width: 100%;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border: 2px solid #00325b;
  border-radius: 8px;
}

.summary-item:last-child {
  flex-direction: column;
  /* 横並びを解除して縦並びにする */
  border-bottom: none;
  padding-bottom: 0;
}

.summary-item:last-child dt {
  width: 100%;
  margin-bottom: 5px;
}

.summary-item {
  display: flex;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.summary-item dt {
  width: 160px;
  font-weight: bold;
  color: #00325b;
}

.ui-static-section-wrapper {
  margin: 18px 0;
}

/* ==========================================================================
   SP用設定
   ========================================================================== */
@media screen and (max-width: 767px) {
  .sp-only {
    display: block;
  }


  /* タイトルと白背景の重なり調整 */
  .tokuten_h2.title-image {
    width: 100%;
  }

  .tokuten .layout-c {
    margin-top: -40px;
    border-radius: 10px;
    padding: 50px 20px 40px;
  }

  .tokuten_h3 {
    font-size: 1.5rem;
    padding-bottom: 30px;
  }
.ui-static-heading-with-subtitle-top{
      line-height: 1.5;

}
  /* グリッドを強制1列（縦並び） */
  #hisApp #saikaiApp #mainArea .layout-c .ui-static-grid-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .summary-item {
    flex-direction: column;
  }

  .marker-yellow {
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
}

/* --- 畳む仕組み (Readmore) --- */
.readmore-check {
  display: none;
}

.readmore-content {
  position: relative;
  overflow: hidden;
  height: 150px;
  transition: height 0.3s;
}

.readmore-content::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: linear-gradient(rgba(255, 255, 255, 0) 0%, #fff 100%);
  z-index: 1;
}

.readmore-check:checked~.readmore-content {
  height: auto;
}

.readmore-check:checked~.readmore-content::before {
  display: none;
}

.readmore-label {
  display: block;
  width: 180px;
  margin: 20px auto 0;
  padding: 10px;
  background: #00325b;
  color: #fff;
  text-align: center;
  border-radius: 25px;
  cursor: pointer;
}

.readmore-label::before {
  content: "詳細を確認する";
}

.readmore-check:checked~.readmore-label::before {
  content: "閉じる";
}