@import url("https://voi.0101.co.jp/voi/content/dam/01/renew/common/style/variables.css");
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Kosugi+Maru&display=swap&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");

.coupon-page-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--neutral-black);
}

.coupon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
}
.coupon-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.coupon-header-inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.coupon-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.coupon-usage-link {
  font-size: 12px;
  text-decoration: underline;
}

.coupon-total-price-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.coupon-total-price {
  position: relative;
  font-family: Jost, sans-serif;
  font-weight: bold;
  font-size: 70px;
  line-height: 100%;
  text-align: center;
}
.coupon-total-label {
  width: 45px;
  height: 45px;
  background-color: var(--neutral-gray-900);
  color: var(--neutral-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
}
.coupon-total-price span {
  font-size: 36px;
  line-height: 100%;
}

.coupon-present {
  font-size: 24px;
  text-align: center;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
}

.coupon-expiration-datetime {
  position: relative;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  width: 100%;
  margin-bottom: 30px;
}
.coupon-expiration-datetime::before {
  content: "";
  display: block;
  border-top: 1px solid var(--neutral-gray-900);
  width: 100%;
  padding-top: 15px;
}
.coupon-expiration-datetime::after {
  content: "";
  display: block;
  border-bottom: 1px solid var(--neutral-gray-900);
  width: 100%;
  padding-bottom: 15px;
}
.remaining-time {
  position: absolute;
  font-size: 15px;
  font-weight: bold;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
}
.countdown-timer-wrapper {
  position: relative;
  margin-bottom: 15px;
}
.countdown-timer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.countdown-timer-elapsed-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 60px;
  background-color: var(--neutral-gray-900);
  border-radius: 6px;
}
.elapsed-time {
  font-size: 18px;
  font-weight: bold;
  color: var(--neutral-white);
}
.elapsed-time-label {
  font-size: 12px;
  color: var(--neutral-white);
}

@media screen and (min-width: 641px) {
  .coupon-page-title {
    font-size: 22px;
    margin: 0 auto;
    margin-bottom: 30px;
    padding: 0px;
    max-width: 950px;
  }

  .coupon-header {
    gap: 30px;
  }
  .coupon-total-price {
    font-size: 100px;
  }
  .coupon-total-label {
    width: 70px;
    height: 70px;
    font-size: 22px;
  }
  .coupon-total-price span {
    font-size: 50px;
  }
  .coupon-total-price-wrapper {
    margin-bottom: 5px;
  }
  .coupon-present {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .coupon-expiration-datetime {
    font-size: 18px;
    margin-bottom: 55px;
  }
  .countdown-timer-wrapper {
    margin-bottom: 30px;
  }
  .countdown-timer-elapsed-time {
    width: 60px;
    height: 75px;
    border-radius: 10px;
  }
  .elapsed-time {
    font-size: 22px;
  }
  .elapsed-time-label {
    font-size: 15px;
  }
  .coupon-footer {
    margin-bottom: 50px;
  }
}

/* =========================
  ボタン
========================= */
.wc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 12px 0;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: var(--neutral-white);
  background-color: var(--neutral-gray-900);
  min-width: 335px;
  max-width: 335px;
  cursor: pointer;
  width: 100%;
  border: none;
  --size: 16px;
  --dot: calc(var(--size) * 0.16);
  --border: calc(var(--size) * 0.16);
  --color: var(--neutral-white);
}
.wc-btn.disabled {
  background-color: var(--neutral-gray-50);
  color: var(--neutral-gray-500) !important;
  cursor: not-allowed;
  --color: var(--neutral-gray-500);
}
.wc-btn--coupon-prefix {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
  クーポン一覧
========================= */
.coupon-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
/* =========================
  クーポンひな形
========================= */
.coupon-item {
  filter: drop-shadow(var(--elevation-drop-shadow-sp-item-shadow));
  will-change: filter;
}
.coupon {
  position: relative;
  cursor: pointer;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 150ms linear;
  --hole-left: 12px;
  --hole-right: 12px;
  --hole-top: 72%;
  --coupon-bg: var(--neutral-white);
}
.coupon:active {
  opacity: 0.7;
}

.coupon-item .coupon-inner .coupon-price.red {
  color: var(--semantic-error-sale);
}
.coupon-item .coupon-inner .coupon-price.green {
  color: var(--semantic-success);
}
.coupon-item .coupon-inner .coupon-price.blue {
  color: var(--main-blue);
}
.coupon-item .coupon-inner .coupon-price.orange {
  color: var(--semantic-maruko-orange);
}

.coupon-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  padding-bottom: 30px;
  align-items: center;
  gap: 5px;
}
.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: -1;
}
.coupon::before {
  left: 0;
  background-image: radial-gradient(
    circle at 0 var(--hole-top),
    transparent var(--hole-left),
    var(--coupon-bg) calc(var(--hole-left) + 1px)
  );
}

.coupon::after {
  right: 0;
  background-image: radial-gradient(
    circle at 100% var(--hole-top),
    transparent var(--hole-right),
    var(--coupon-bg) calc(var(--hole-right) + 1px)
  );
}
.coupon-inner .coupon-price {
  font-size: 64px;
  line-height: 100%;
  font-family: Jost, sans-serif;
  font-weight: bold;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: baseline;
}
.coupon-price span {
  font-size: 36px;
  line-height: 100%;
}

.coupon-discription {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--neutral-gray-600);
}

.coupon-expiration-date,
.coupon-usage-condition {
  font-size: 12px;
}

.coupon-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 20px;
  font-size: 15px;
  font-weight: bold;
  background-color: var(--neutral-white);
  padding-bottom: 15px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
.coupon-bottom::before {
  content: "";
  position: absolute;
  width: 90%;
  border: 1px dashed var(--neutral-gray-200);
  top: -15px;
}

.coupon-bottom-prefix {
  display: flex;
  justify-content: center;
  align-items: center;
  --size: 16px;
  --dot: calc(var(--size) * 0.16);
  --border: calc(var(--size) * 0.16);
  --color: var(--neutral-gray-900);
}

.wc-loader {
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;

  background:
    radial-gradient(farthest-side, var(--color) 94%, #0000) top/var(--dot)
      var(--dot) no-repeat,
    conic-gradient(#0000 30%, var(--color));

  -webkit-mask: radial-gradient(
    farthest-side,
    #0000 calc(100% - var(--border)),
    #000 0
  );

  animation: l13 1s infinite linear;
}
@keyframes l13 {
  100% {
    transform: rotate(1turn);
  }
}

.animated-check {
  height: 20px;
  width: 20px;
}

.animated-check path {
  fill: none;
  stroke: var(--color);
  stroke-width: 2;
  stroke-dasharray: 23;
  stroke-dashoffset: 23;
  animation: draw 500ms linear forwards;
}
.coupon-item.disabled {
  filter: none;
  will-change: filter;
  cursor: not-allowed;
}

.coupon-item.disabled .coupon {
  --coupon-bg: var(--neutral-gray-50);
  pointer-events: none;
}
.coupon-item.disabled .coupon-price {
  color: var(--neutral-gray-500) !important;
}

.coupon-item.disabled .coupon-bottom {
  background-color: var(--neutral-gray-50);
  color: var(--neutral-gray-500);
}

.coupon-item.disabled .coupon-bottom-prefix {
  --color: var(--neutral-gray-500);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media screen and (min-width: 641px) {
  .coupon-list {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    gap: 30px;
    max-width: 950px;
  }
  .coupon {
    border-radius: 12px;
    max-width: 375px;
    width: 375px;
    --hole-left: 15px;
    --hole-right: 15px;
    --hole-top: 75%;
  }
  .coupon:hover {
    opacity: 0.7;
  }

  .coupon-inner {
    padding: 15px 10px;
    height: 162px;
  }
  .coupon-inner .coupon-price {
    font-size: 80px;
  }

  .coupon-inner span {
    font-size: 45px;
  }

  .coupon-expiration-date,
  .coupon-usage-condition {
    font-size: 15px;
  }

  .coupon-bottom {
    height: 0px;
    font-size: 18px;
    padding-bottom: 28px;
  }

  .coupon-bottom::before {
    width: 90%;
    border: 1px dashed var(--neutral-gray-200);
    top: -28px;
  }
  .coupon-bottom-prefix {
    --size: 20px;
  }
}

/* =========================
  注意事項
========================= */
.coupon-usage-cautions-section {
  padding: 0 20px;
}
.coupon-usage-cautions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 6px;
  background-color: var(--neutral-gray-50);
  padding: 20px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  margin-top: 60px;
  box-sizing: border-box;
}
.coupon-usage-cautions-wrapper h5 {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  margin: 0 !important;
}
.coupon-usage-cautions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  line-height: 200%;
}
@media screen and (min-width: 641px) {
  .coupon-usage-cautions-section {
    padding: 0;
  }

  .coupon-usage-cautions-wrapper {
    margin-top: 80px;
  }
  .coupon-usage-cautions-wrapper h5 {
    font-size: 18px;
  }
  .coupon-usage-cautions {
    font-size: 14px;
    line-height: 28px;
  }
}

/* =========================
  アイテムセクション
========================= */
.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.item-section {
  padding-top: 50px;
}

.item-section--recently-check {
  padding-top: 60px;
  padding-bottom: 0;
}
.item-section--bg-white {
  background-color: var(--neutral-white);
}

.item-section__inner {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 950px;
  margin: 0 auto;
}

.item-section__label {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
  width: fit-content;
  background-color: var(--semantic-maruko-orange);
  color: var(--neutral-white) !important;
}
.item-section__label p {
  font-size: 12px;
  font-weight: bold;
}

.item-section__title h2 {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
}

.item-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  margin-left: 20px;
}

.item-section__header h3 {
  font-size: 16px;
  font-weight: 600;
}

.item-section__header a {
  font-size: 12px;
  font-weight: 600;
  color: var(--main-purple) !important;
  margin-right: 20px;
}
.item-section__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.item-section__footer-caption {
  font-size: 12px;
  color: var(--neutral-gray-500) !important;
  font-weight: 400;
  display: flex;
  justify-content: center;
}

@media screen and (min-width: 641px) {
  .item-section {
    padding-top: 80px;
  }
  .item-section--recently-check {
    padding-top: 80px;
    padding-bottom: 0;
  }
  .item-section__inner {
    gap: 60px;
  }
  .item-section__title h2 {
    font-size: 24px;
  }
  .item-section__header {
    margin-bottom: 30px;
    margin-left: 0px;
  }
  .item-section__header h3 {
    font-size: 22px;
  }
  .item-section__header a {
    font-size: 14px;
    margin: 0;
  }
  .item-list-container {
    padding-left: 20px;
  }
}
/* =========================
  情報セクション
========================= */
.information-section {
  background-color: var(--neutral-white);
  padding: 60px 20px;
}

.information-section__title {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.information-section__title h2 {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  line-height: 24px;
}

@media screen and (min-width: 641px) {
  .information-section {
    padding: 80px 0;
  }
  .information-section__title {
    margin-bottom: 50px;
  }
  .information-section__title h2 {
    font-size: 22px;
    line-height: 34px;
  }
}

/*----- SNSシェア -----*/
.s_mainArea .s_snsListBlock ul {
  display: flex;
  margin-bottom: 30px !important;
}
.s_mainArea .s_snsListBlock li {
  max-width: 33.3%;
  min-width: 33.3%;
  flex-basis: 33.3%;
  text-align: center;
}
.s_mainArea .s_snsListBlock li:first-child {
  text-align: right;
}
.s_mainArea .s_snsListBlock li:last-child {
  text-align: left;
}
.s_mainArea .s_snsListBlock img {
  width: 40px;
  height: 40px;
}

/* iPhone 5 View */
@media screen and (max-width: 320px) {
  .s_mainArea .s_snsListBlock img {
    width: 35px;
    height: 35px;
  }
}

/* エラーモーダルのオーバーレイ */
.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-modal-overlay.show {
  opacity: 1;
}

/* モーダル本体 */
.error-modal {
  background: #ffffff;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.error-modal-inner {
  padding: 20px 20px 0 20px;
}

.error-modal-overlay.show .error-modal {
  transform: scale(1);
}

/* エラーアイコン */
.error-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

/* タイトル */
.error-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 12px 0;
}

/* メッセージ */
.error-modal-message {
  font-size: 15px;
  color: var(--neutral-gray-900);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.error-modal-bottom {
  height: 50px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top: 1px solid var(--neutral-gray-200);
  overflow: hidden;
}

/* OKボタン */
.error-modal-button {
  color: var(--neutral-gray-900);
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--neutral-white);
  width: 100%;
  height: 100%;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.error-modal-button:hover {
  background-color: var(--neutral-gray-50);
}

.error-modal-button:active {
  background-color: var(--neutral-gray-50);
}

/* WebView用の追加調整 */
@media (max-width: 480px) {
  .error-modal {
    max-width: 340px;
  }

  .error-modal-icon {
    font-size: 40px;
  }

  .error-modal-title {
    font-size: 18px;
  }

  .error-modal-message {
    font-size: 14px;
  }
}

.sns-share-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  height: 80px;
  justify-content: center;
  margin-bottom: 20px;
}

.sns-share-text {
  display: none;
  font-size: 16px;
}
.sns-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sns-list {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sns-list li img {
  width: 40px;
  height: 40px;
}
.link-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: var(--neutral-gray-100);
  border-radius: 999px;
  width: 110px;
  height: 20px;
  border: none;
  font-size: 10px;
  color: var(--neutral-gray-900);
}
.link-copy img {
  height: 9px;
}

@media screen and (min-width: 641px) {
  .sns-share-section {
    height: auto;
    margin-bottom: 50px;
  }
  .sns-share-text {
    display: block;
  }

  .sns-list {
    gap: 50px;
  }
  .sns-list li img {
    width: 60px;
    height: 60px;
  }
  .link-copy {
    display: none;
  }
}
