:root{
    --color-white: white;
    --color-gray-light: #F4F4F4;
    --color-gray: #E9E9E9;
    --color-gray-dark: #888888;
    --color-black-natural: #333333;
    --color-red: #D24C4C;
    --color-yellow-light: #FFF4CC;
    --color-yellow: #FFD953;
    --color-yellow-medium: #ad8a0c;
    --color-yellow-dark: #776B00;
    --color-blue-lighter: #F3F6FF;
    --color-blue-light: #E5ECFF;
    --color-blue: #446DFF;
    --color-blue-dark: #314EB3;
    --color-func-link: #3385ff;
    --color-func-caution: #933705;
    --color-func-caution-bg: #FFF4EF;
    --color-au: #eb5505;
}

html{
    background-color: var(--color-gray-light);
    color: var(--color-black-natural);
}

body {
    margin: 0;
}

a {
    color: var(--color-black-natural);
    text-decoration: none;
}
#dialog{
    --var-margin: 2rem;
    --var-padding: 1rem;
    display: none;
    position: fixed;
    top: 12rem;
    left: var(--var-margin);
    z-index: 2000;
    width: calc(100% - (var(--var-margin) + var(--var-padding)) * 2 );
    padding: 1rem;
    background-color: var(--color-gray-light);
    border-radius: .25rem;
    animation: show-dialog 300ms ease-in-out forwards;    
}
@keyframes show-dialog {
  0% {
    transform: translateY(15%);
    opacity: 0%;
  }
  100% {
    transform: translateY(0%);
    opacity: 100%;
  }
}

#dialog-close-btn{
    display: block;
    width: 100%;
    background-color: var(--color-gray);
    margin-top: 0.5rem;
    padding: 0.5rem 0.25rem;
    border-radius: 0.2rem;

}

#dark-cover{
    display: none;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.25);
}

header{
    position: relative;
    background-color: var(--color-yellow);
    background-image: url(../imgs/img-header-bg.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    height:10.5rem;
    text-align: center;
    padding-top: 4vh;
}

#header-title{
    color: var(--color-yellow-dark);
    font-size: 1.5rem;
    font-weight: bold;
}

#date-chip{
    display: inline-block;
    margin-top: 1rem;
    padding: 0.2rem 1rem;
    color: white;
    font-size: 0.8rem;
    background-color: var(--color-yellow-dark);
    border-radius: 1rem;
}
#content-wrapper{
    position: relative;
    top: -4rem; /* TODO: カードサイズを取得して、サイズを指定する*/
}
/* ポイント表示カード */
#point-value-card{
    position: relative;
    margin: 0 1.25rem;
    padding: 0.75rem 0.75rem 0.5rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 0.2rem 0.5rem 0.15rem #00000015;
}
#point-area{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.75rem;
    background-color: var(--color-yellow-light) ;
    border-radius: 0.5rem;
}
#point-label{
    font-size: 0.8rem;
    font-weight: bold;
}
#point-value-wrapper {
  display: inline-flex;
  align-items: center;
  line-height: 1; /* line-heightを1に設定 */
  padding: 0; /* パディングを0に */
  margin: 0; /* マージンを0に */
}
#point-value {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.1rem;
}

#point-scale {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-left: 0.25rem;
}

.point-card-notion{
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-gray-dark);
}

.point-card-notion:first-of-type{
    margin-top: 0.5rem;
}

.point-card-notion i{
    font-size: 1rem;
    margin-right: 0.2rem;
}

/* ご利用金額表示 */
#usage-amount{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 2rem;
    padding: 0.75rem 1rem;
    background-color: var(--color-gray);
    border-radius: 0.5rem;
}
#usage-label-wrapper {
    display: inline-flex;
    align-items: center;
    height: 100%; /* 親要素の高さに合わせる */
}

#usage-label {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}

#usage-label i {
    margin-left: 0.25rem; /* アイコンと文字の間隔を調整 */
    font-size: 1rem;

}

#usage-value-wrapper{
    display: inline-flex;
    align-items: center;
}

#usage-value{
    margin-right: 0.25rem;
    font-size: 1.5rem;
    font-weight: 500;

}

/* 還元率説明シート */

#reward-sheet{
    background-color: var(--color-white);
    margin: 0;
    padding: 1.25rem;
    border-radius: 2rem;
}

#reward-ratio-area{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin : 0.75rem;
    padding: 0 1rem;
    border-bottom: solid 2px var(--color-black-natural);
}

#au-pay-announce{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-gray-dark);
padding-right: 1.5rem;

}
#reward-ratio-balloon{
    position: absolute;
    top: -3rem;
    right: 2rem;
    font-size: 1rem;
    font-weight: 400;
    padding-right: 1rem;
    animation: floating-y 1s ease-in-out infinite alternate-reverse;
}
@keyframes floating-y {
  0% {
    transform: translateY(-5%);
  }
  100% {
    transform: translateY(5%);
  }
}
#reward-ratio-balloon-value{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 500;
}
#reward-ratio-ballon-coution{
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    font-size:0.75rem;
}

#reward-ratio-label{
    font-size: 1rem;
    font-weight: 700;
}
#reward-ratio{
    display: flex;
    align-items: center;
}
#reward-ratio-value{
    font-size: 3rem;
    font-weight: 700;
    line-height: 3rem;
}

#reward-ratio-scale{
    font-size: 2.2rem;
    line-height: 2.2rem;
    margin-left: 0.5rem;
}


/* ポイントアップリワードタイトル */
/* 左右に斜め線(両端を丸く) */
#point-up-reward-title {
  align-items: center; /* 線を上下中央 */
  display: flex; /* 文字と線を横並び */
  justify-content: center; /* 文字を中央寄せ */
  margin-top: 2rem;
}
#point-up-reward-title::before,
#point-up-reward-title::after {
  background-color: var(--color-red); /* 線の色 */
  border-radius: 1px; /* 線の両端を丸く */
  content: "";
  height: 0.1rem; /* 線の高さ */
  width: 2.5rem; /* 線の長さ */
}
#point-up-reward-title::before {
  margin-right: 0.5rem; /* 文字との余白 */
  transform: rotate(60deg); /* 傾ける */
}
#point-up-reward-title::after {
  margin-left: 0.5rem; /* 文字との余白 */
  transform: rotate(-60deg); /* 傾ける */
}

#point-up-reward-title-str{
    display: block;
    color: var(--color-red);
    font-size: 1.5rem;
    font-weight: 700;
}

#point-up-reward-title-desc{
    display: block;
    text-align: center;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* 特典条件達成ステイタス表示 */
#point-up-reward-list{
    margin-top: 1.5rem;
}

.requirement-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 0 0 0.4rem;
    background-color: var(--color-blue-lighter);
    border: solid 0.15rem var(--color-gray-dark);
    border-radius: 0.5rem;
}

.requirement-card-check-wrapper{
    display: flex;
}

.card-label-wrapper{
    display: inline-block;
    margin-left: 0.5rem;
}

.card-label{
    color: var(--color-blue-dark);
    font-weight: 700;
}

.card-desc{
    font-size: 0.75rem;
    line-height: 1rem;
}

.card-value{
    margin-left: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-blue-dark);
}
.requirement-card-inactive .card-value{
    color: var(--color-blue-light);
}
.card-scale{
    display: inline;
    margin-left: 0.25rem;
    font-size: 1rem;
}


/* 非アクティブのカードデコレーション */
.requirement-card-inactive {
    position: relative;
    display: flex;
    align-items: center;
    
}

.requirement-card-inactive .requirement-card{
    position: relative;
    z-index: 10;
    width: 15rem;
    background-color: var(--color-gray-light); 
}

.requirement-card-inactive img {
  filter: saturate(0%)  brightness(275%);
}

.requirement-circle {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 5.5rem;
    height: 5.5rem;
    margin-left: -0.5rem;
    text-align: center;
    background-color: var(--color-blue-dark);
    background-image: url(../imgs/icon-chevron-right-blue.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 5rem;
    animation: springBounce 6s ease-out infinite;
}

.a1 { animation-delay: 0s;}
.a2 { animation-delay: 0.25s;}
.a3 { animation-delay: 0.75s;}
.a4 { animation-delay: 1s;}
.a5 { animation-delay: 1.25s;} 

.circle-desc-wrapper{
    margin-top: 1rem;
}

.circle-desc {
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1rem;
    margin-bottom: -0.75rem;
}


/* 申込導線のアニメーション*/

@keyframes springBounce {
  0% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-15px) scale(0.95);
  }
  12% {
    transform: translateX(15px) scale(1.2);
  }
  14% {
    transform: translateX(-8px) scale(0.98);
  }
  16% {
    transform: translateX(5px) scale(1.15);
  }
  18% {
    transform: translateX(-3px) scale(0.99);
  }
  20% {
    transform: translateX(2px) scale(1.1);
  }
  22% {
    transform: translateX(-1px);
  }
  24% {
    transform: translateX(0.5px);
  }
  26% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes knock {
  
  1% {
    transform: translateX(-8px) scale(90%) rotate(10deg);
  }
  2% {
    transform: translateX(0) scale(110%);
  }
  3% {
    transform: translateX(8px) rotate(-5deg);
  }
  4% {
    transform: translateX(0);
  }
  5% {
    transform: translateX(-8px) scale(90%) rotate(10deg);
  }
  6% {
    transform: translateX(0) scale(110%);
  }
  7% {
    transform: translateX(8px) rotate(-5deg);
  }
  8% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(0);
  }
}


/* ゴールドカード表示用個別指定 */
.requirement-card.goldc{
    border: none;
    background: linear-gradient(45deg, #ffd942 0%, #fdd73e 45%, #FEE9A0 70%, #ffd942 85%, #ffd942 90% 100%);
    background-size: 800% 400%;
    animation: gradient 5s infinite cubic-bezier(.62, .28, .23, .99) both;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.requirement-card.goldc img{
  filter: saturate(0%)  brightness(500%);
}

.requirement-card.goldc .card-label{
    color: var(--color-yellow-dark);
}

.requirement-card-inactive.goldc .card-label{
    color: var(--color-yellow-medium); 
}

.goldc .card-value, .goldc .card-scale{
    color: var(--color-yellow-dark);
}

.goldc .requirement-circle {
    background-color: var(--color-yellow-light);
    background-image: url(../imgs/icon-chevron-right.svg);
}

.requirement-card-inactive.goldc .circle-desc{
    color: var(--color-black-natural)!important;
}

#lp-link{
    margin: 1rem 0 0;
    text-align: right;
    color: var(--color-func-link);
    text-decoration: underline;
}
#lp-link-02{
    margin: 1rem 0 0;
    text-align: right;
    color: var(--color-func-link);
    text-decoration: underline;
}
.error-message{
    margin: 4rem 1.25rem;
    padding: 2rem 1.5rem;
    background-color:var(--color-white);
    border-radius: 0.5rem;
    animation: show-dialog 300ms ease-in-out forwards ;    
}
.error-message h2{
    display: block;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
}
    
#sheetmodal {
    position: fixed;
    width: 100%;
    z-index: 100;
    bottom: 0;
    padding: 2rem 1.5rem;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    box-shadow: 0 -0.5rem 0.5rem rgba(0, 0, 0, 0.2) ;
    background-color: #ffffff;
    box-sizing: border-box; 
    left: 0; 
    right: 0; 
    margin: 0; 
    text-align: center;
    animation: slidein 0.5s forwards;
}
.slideout{
    animation: slideout 0.5s forwards!important;
}
@keyframes slidein{
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0%);
  }
}
@keyframes slideout{
  0% {
    transform: translateY(0%);
  }
  100% {
    transform: translateY(120%);
  }
}
button{
    background-color: transparent;
    display: block;
    text-align: center;
    border: none;
    outline: none;
    padding: 0;
    margin: 0 auto;
    appearance: none;
}
#ac-setting{
    display: block;
    background-color: var(--color-white);
    border: solid .15rem var(--color-au);
    width: 100%;
    padding: 0.75rem;
    margin: 1rem 0 ;
    border-radius: 0.5rem;
    color: var(--color-au);
    font-size: 1rem;
    font-weight: bold;
}

button.tertiary {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-gray-dark);
}

/* その他 */
.balloon {
  display: inline-block;
  font-weight: bold;
  color: var(--color-white);
  background: var(--color-blue);
  padding: 0.25rem 0.5rem;
  position: relative;
  border-radius: 0.5rem;
}
.balloon::before {
  content: "";
  position: absolute;
  width: 1rem;
  height: 0.75rem;
  background: var(--color-blue);
  bottom: -0.5rem;
  left: 0;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  margin: auto;
}
.caution{
    display: flex;
    margin: 1rem;
    padding: 1rem;
    color: var(--color-func-caution);
    background-color: var(--color-func-caution-bg);
    font-size: 1rem;
    border-radius: 0.5rem;

}
.caution i{
    margin-right: 0.25rem;
    font-size: 1.2rem;
    line-height: 1.75rem;
}

.fadein{
    animation: fadein 200ms forwards;
}
@keyframes fadein{
    0% {opacity: 0}
	100% {opacity: 1}
}
