@charset "UTF-8";

/* =========================================================
夏ほけんLP：06_保険料セクション
リキッドレイアウト版
- SP: 390px基準でrem設計
- PC: 1100px基準でrem設計
- 768px〜1099pxは画面幅に合わせて縮小
- 1100px以上は最大サイズを維持
========================================================= */

:root {
  --summer-navy: #02418E;
  --summer-blue: #189CEB;
  --summer-orange: #FF7307;
  --summer-text: #435260;
  --summer-gray: #EBEBEB;
  --summer-dot-gray: #CBCDD7;

  --gold-border: #FFE000;
  --gold-bg: #FFF7D8;
  --gold-text: #805100;

  --silver-border: #CBCDD7;
  --silver-bg: #F3F5FF;
  --silver-text: #46464A;

  --bronze-border: #EAD9CC;
  --bronze-bg: #FFF5E9;
  --bronze-text: #7E4016;
}

/* =========================================================
共通
========================================================= */

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--summer-text);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h2 {
  margin: 0;
}

.pc {
  display: none;
}

.sp {
  display: initial;
}

.inner {
  width: 100%;
  margin-inline: auto;
  padding-inline: 0.9375rem;
}

/* =========================================================
共通/SP基準
390px時：1rem = 16px相当
========================================================= */

.summer-price-section {
  padding-block: 3.125rem;
  background: #fff;
  overflow-x: hidden;
}

.summer-price-section .injury__content {
  width: 100%;
  max-width: 58.75rem;
  margin-inline: auto;
}

.summer-price-section .section__title-wrap > span {
  display: none;
}

.summer-price-section__title-wrap {
  text-align: center;
}

.summer-price-section__title {
  width: fit-content;
  margin: 0 auto;
  color: var(--summer-navy);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.375rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
}

.summer-price-section__title::after {
  content: "";
  display: block;
  width: 11.875rem;
  height: 0.5rem;
  margin: 0.625rem auto 0;
  background:
    radial-gradient(circle, #189CEB 0.1875rem, transparent 0.2rem)
    repeat-x center;
  background-size: 0.875rem 0.5rem;
}

/* =========================================================
タブ全体
========================================================= */

.summer-price-tabs {
  padding-block: 1.75rem 2.125rem;
}

.summer-price-tabs .tabs__inner {
  width: min(100%, 57.5rem);
  margin-inline: auto;
}

.summer-price-tabs .tabs__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 0.3125rem;
  align-items: end;
  width: 100%;
  padding-inline: 0.625rem;
}

.summer-price-tabs .tabs__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.875rem;
  padding: 0.3125rem 0.5rem;
  border-radius: 0.625rem 0.625rem 0 0;
  background: var(--summer-gray);
  color: #333;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.summer-price-tabs .tabs__item[aria-selected="true"] {
  min-height: 3.375rem;
  background: var(--summer-blue);
  color: #fff;
  pointer-events: none;
}

.summer-price-tabs .tabs__item[aria-selected="false"]:hover {
  opacity: 0.75;
}

.summer-price-tabs .tabs__contents {
  width: min(100%, 50rem);
  margin-inline: auto;
  border: 0.1875rem solid #D7ECF6;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.summer-price-tabs .tabs__content-wrap {
  height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.summer-price-tabs .tabs__content-wrap.js-show {
  height: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.summer-price-tabs .tabs__content {
  position: relative;
  padding: 1.125rem 0.9375rem;
}

/* =========================================================
タブ内リード
========================================================= */

.summer-price-tabs .tabs__content-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #535353;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.summer-price-tabs .tabs__content-text img {
  flex: 0 0 auto;
  width: auto;
  height: 5.625rem;
}

.summer-price-tabs .tabs__content-text p {
  position: relative;
  padding-bottom: 0.625rem;
  border-bottom: none;
  text-align: left;
}

.summer-price-tabs .tabs__content-text p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.5rem;
  background:
    radial-gradient(circle, #189CEB 0.125rem, transparent 0.15625rem)
    repeat-x left center;
  background-size: 0.625rem 0.5rem;
}

.summer-price-tabs .tabs__content-text p .dot span {
  color: var(--summer-orange);
}

/* =========================================================
料金カード：SP
========================================================= */

.summer-price-tabs .tabs__content-items {
  position: relative;
  margin-top: 1.125rem;
}

.summer-price-tabs .tabs__content-item {
  margin-bottom: 0.5rem;
  border: 0.125rem solid;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.summer-price-tabs .tabs__content-item.gold {
  position: relative;
  border-color: var(--gold-border);
  z-index: 1;
}

.summer-price-tabs .tabs__content-item.silver {
  border-color: var(--silver-border);
}

.summer-price-tabs .tabs__content-item.bronze {
  border-color: var(--bronze-border);
}

/* SPではgoldカード右上にバッジ表示 */
.summer-price-tabs .tabs__content-item.gold::after {
  content: "約8%\Aおトク";
  white-space: pre;
  position: absolute;
  top: 0;
  right: 0;
  width: 3.0625rem;
  height: 3.0625rem;
  border-radius: 50%;
  background: #0055C8;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.summer-price-tabs .tabs__head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-block: 0.4375rem 0.5625rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.33;
  text-align: center;
}

.summer-price-tabs .gold .tabs__head {
  color: var(--gold-text);
  background: var(--gold-bg);
}

.summer-price-tabs .silver .tabs__head {
  color: var(--silver-text);
  background: var(--silver-bg);
}

.summer-price-tabs .bronze .tabs__head {
  color: var(--bronze-text);
  background: var(--bronze-bg);
}

.summer-price-tabs .tabs__wrap {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.5625rem 0.3125rem;
}

.summer-price-tabs .tabs__wrap-item {
  width: 50%;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.summer-price-tabs .tabs__wrap-item:first-child {
  border-right: 0.125rem dotted var(--summer-dot-gray);
}

.summer-price-tabs .tabs__wrap-item > span {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.3125rem;
  padding: 0.1875rem 0.6875rem 0.25rem;
  border-radius: 1.25rem;
  color: #182331;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.33;
}

.summer-price-tabs .gold .tabs__wrap-item .month {
  color: #fff;
  background: var(--summer-orange);
}

.summer-price-tabs .gold .tabs__wrap-item .lump,
.summer-price-tabs .silver .tabs__wrap-item .month,
.summer-price-tabs .silver .tabs__wrap-item .lump,
.summer-price-tabs .bronze .tabs__wrap-item .month,
.summer-price-tabs .bronze .tabs__wrap-item .lump {
  color: #182331;
  background: #f1f1f1;
}

.summer-price-tabs .gold .tabs__wrap-item .lump {
  background: #FFE600;
}

.summer-price-tabs .tabs__price {
  color: #3B3B3B;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.37;
}

.summer-price-tabs .tabs__price span {
  padding: 0 0.125rem;
  color: #3B3B3B;
  font-size: 1.5rem;
  font-weight: 700;
}

.summer-price-tabs .tabs__price .gold-month {
  color: var(--summer-orange);
}

/* =========================================================
PC用：768px以上
1100px未満はhtmlのrem変動に追従
1100px以上は他セクション側のhtml font-size:16pxにより最大サイズ維持
========================================================= */

@media (min-width: 768px) {
  .pc {
    display: block;
  }

  .sp {
    display: none;
  }

  .inner {
    max-width: 81.25rem;
    padding-inline: 0.625rem;
  }

  .summer-price-section {
    padding-block: 6.875rem;
  }

  .summer-price-section__title {
    font-size: 3.125rem;
  }

  .summer-price-tabs {
    padding-block: 1.875rem 3.75rem;
  }

  .summer-price-tabs .tabs__inner {
    width: min(100%, 80rem);
  }

  .summer-price-tabs .tabs__list {
    width: min(100%, 50rem);
    margin-inline: auto;
    padding-inline: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.3125rem;
  }

  .summer-price-tabs .tabs__item {
    min-height: 3.75rem;
    padding: 1.25rem 0.5rem;
    border-radius: 0.625rem 0.625rem 0 0;
    font-size: 1.4375rem;
    line-height: 1.25;
  }

  .summer-price-tabs .tabs__item[aria-selected="true"] {
    min-height: 3.75rem;
  }

  .summer-price-tabs .tabs__contents {
    width: min(100%, 80rem);
    border-radius: 1rem;
  }

  .summer-price-tabs .tabs__content {
    padding: 2.125rem 5rem;
  }

  .summer-price-tabs .tabs__content-text {
    gap: 0.75rem;
    font-size: 1.5rem;
  }

  .summer-price-tabs .tabs__content-text img {
    height: 5.625rem;
  }

  .summer-price-tabs .tabs__content-items {
    margin-top: 1.875rem;
  }

  /* PCではカード群の右上にバッジ表示 */
  .summer-price-tabs .tabs__content-items::after {
    content: "約8%\Aおトク";
    white-space: pre;
    position: absolute;
    top: -1.625rem;
    right: -1.625rem;
    width: 3.875rem;
    height: 3.875rem;
    border-radius: 50%;
    background: #1F84E8;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
  }

  .summer-price-tabs .tabs__content-item.gold::after {
    content: none;
  }

  .summer-price-tabs .tabs__content-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 0.625rem;
  }

  .summer-price-tabs .tabs__head {
    flex: 0 0 12.5rem;
    align-self: stretch;
    width: 12.5rem;
    max-width: 100%;
    padding-block: 0.4375rem 0.5625rem;
    font-size: 1.4375rem;
    font-weight: 700;
    line-height: 1.44;
  }

  .summer-price-tabs .tabs__wrap {
    flex: 1 1 auto;
    display: flex;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .summer-price-tabs .tabs__wrap-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50%;
    min-width: 0;
    gap: 0.75rem;
    padding: 1.875rem;
    text-align: left;
  }

  .summer-price-tabs .tabs__wrap-item:first-child {
    border-right: 0.125rem dotted var(--summer-dot-gray);
  }

  .summer-price-tabs .tabs__wrap-item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 6.25rem;
    width: 6.25rem;
    min-width: 0;
    margin-bottom: 0;
    padding: 0.375rem 0 0.4375rem;
    font-size: 1.125rem;
    line-height: 1.2;
    text-align: center;
  }

  .summer-price-tabs .tabs__price {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    color: #3B3B3B;
    font-size: 1.4375rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .summer-price-tabs .tabs__price span {
    display: inline-block;
    padding: 0 0.125rem 0 0;
    color: #3B3B3B;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
  }
}

/* =========================================================
狭いSPのみ：320px〜360px程度の崩れ防止
========================================================= */

@media (max-width: 374px) {
  .summer-price-tabs .tabs__item {
    padding-inline: 0.25rem;
    font-size: 0.8125rem;
  }

  .summer-price-tabs .tabs__content {
    padding-inline: 0.75rem;
  }

  .summer-price-tabs .tabs__content-text {
    gap: 0.375rem;
    font-size: 1rem;
  }

  .summer-price-tabs .tabs__content-text img {
    height: 4.75rem;
  }

  .summer-price-tabs .tabs__wrap-item > span {
    padding-inline: 0.5rem;
    font-size: 0.9375rem;
  }

  .summer-price-tabs .tabs__price {
    font-size: 1rem;
  }

  .summer-price-tabs .tabs__price span {
    font-size: 1.3125rem;
  }
}
