:root {
    /* Green */
    --color-green-100: #00B893;
    --color-green-400: #55EACE;

    /* Pink / Orange / Yellow */
    --color-pink-100: #FF6366;
    --color-orange-100: #FF6B3D;
    --color-yellow-600: #FDFBDA;

    /* Background / Border */
    --color-background-100: #F0F0F2;
    --color-border-100: #CBCBD2;

    /* Text */
    --color-text-100: #1A1A1E;
    --color-text-350: #828291;

    /* Base */
    --color-white: #FFFFFF;

    /* Component-specific */
    --shadow-cta: 0 4px 12px 0 rgba(0, 89, 71, 0.3);
}

html {
    color-scheme: light;
}

body {
    color: var(--color-text-100);
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--color-green-100);
}
a {
    color: inherit;
    text-decoration: none;
}
h2 {
    font-family: "Noto Sans JP";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}


/* header */
.cp-header {
    border-bottom: 1px solid var(--color-border-100);
    background-color: var(--color-white);
}
.cp-header__inr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.cp-header__logo {
  width: 68px;
  height: auto;
}
.cp-header__link {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1E;
  padding: 8px 24px;
  border-radius: 4px;
  border: 1px solid #1A1A1E;
  text-decoration: none;
  display: inline-block;
  margin-left: 16px;
}
.cp-header__link:hover {
  background-color: #1A1A1E;
  color: #fff;
}

.container {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: start;
}

/*PC時の左に表示される領域*/
.side-content {
    position: sticky;
    top: 0;
    /*　header 分の高さを調整 */
    margin-top: -80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 375px;
    height: 100dvh;
}
.side-cta-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 32px;
    background-color: var(--color-pink-100);
    border: 2px solid white;
    border-radius: 50px;
    box-shadow: var(--shadow-cta);
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
    .side-cta-button:hover {
        background-color: var(--color-white);
        border-color: var(--color-pink-100);
        color: var(--color-pink-100);
    }
}

/*main*/
.main_content {
    width: 375px;
}

/* FV */
.fv {
    position: relative;
    width: 375px;
    height: 550px;
    overflow: hidden;
    background-image: url(../images/fv.jpg);
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100%;
}
.hero-heading {
    position: absolute;
    top: 48%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    text-align: center;
    line-height: normal;
    font-size: 32px;
}
.hero-heading__lead {
    display: block;
    font-size: 18px;
    color: var(--color-pink-100);
}

.cta-area {
    position: absolute;
    bottom: 2.2%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

/* FVのCTAが画面外に出たときに下から追従するCTA */
.floating-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}
.floating-cta.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}
@media (min-width: 769px) {
    .floating-cta {
        display: none;
    }
}
.tooltip {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 1px 0.5px rgba(0, 0, 0, 0.25));
  width: fit-content;
  margin: 0 auto;
}
.tooltip__text {
  margin: 0;
  padding: 6px 16px;
  background: #fff;
  border-radius: 4px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  font-size: 12px;
  line-height: normal;
  letter-spacing: 0.02em;
  text-align: center;
  color: #000;
}
.tooltip__num {
  color: var(--color-pink-100);
}
/* 下向きの三角 */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--tooltip-arrow-x, 50%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-inline: 5.86px solid transparent;
  border-top: 5.5px solid #fff;
}
.cta-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 46px;
    background-color: var(--color-pink-100);
    border: 2px solid var(--color-pink-100);
    border-radius: 50px;
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 1px 3px 0 0 rgba(0, 0, 0, 0.50);
    width: fit-content;
    transition: background-color 0.2s ease, color 0.2s ease;
}
@media (hover: hover) {
    .cta-button:hover {
        background-color: var(--color-white);
        color: var(--color-pink-100);
    }
}

.text {
    padding-bottom: 2px;
}
/* 毎月2日以外はCTAを押せない状態で表示する */
.side-cta-button.is-disabled,
.cta-button.is-disabled {
    padding-inline: 24px;
    background-color: var(--color-text-350);
    border-color: var(--color-text-350);
    color: var(--color-white);
    pointer-events: none;
}
/* flow */

.flow {
    background-color: var(--color-yellow-600);
    width: 100%;
    padding: 48px 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 24px;
}
.down_arrow {
    display: flex;
    justify-content: center;
    align-items: center;

}
.card_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}
/* step card */
.step-card {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-100);
    border-radius: 4px;
}
.step-card__body {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}
.step-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.step-card__number {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-green-400);
    color: var(--color-text-100);
    font-size: 14px;
    font-weight: 700;
}
.step-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-100);
}
.step-card__text {
    margin: 0;
    width: 100%;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: var(--color-text-100);
}
.step-card__note {
    margin: 0;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    color: var(--color-orange-100);
}
.step-card__illustration {
    flex-shrink: 0;
    width: 80px;
    height: 95px;
    overflow: hidden;
}
.step-card__illustration-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* details */
.details {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding: 48px 20px;
    background-color: #fff;
}
.details__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.details__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 4px;
    background-color: var(--color-background-100);
}
.details__title {
    margin: 0;
    color: var(--color-text-100);
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
}
.details__text {
    margin: 0;
    color: var(--color-text-100);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}
.details__list {
    margin: 0;
    padding-left: 21px;
    color: var(--color-text-100);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
}
.details__list li {
    list-style: disc;
}
.details__list li:not(:last-child) {
    margin-bottom: 4px;
}

/* footer */
.cp-footer {
    border-top: 1px solid var(--color-border-100);
    background: var(--color-background-100);
    padding: 48px 32px;
}
.cp-footer__inr {
    display: flex;
    align-items: center;
    gap: 32px;
}
.cp-footer__logo {
    width: 68px;
    height: auto;
    flex-shrink: 0;
}
.cp-footer__nav__lst {
    display: flex;
    align-items: center;
    gap: 24px;
}
.cp-footer__nav__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-100);
    text-decoration: none;
    white-space: nowrap;
    &:hover {
        text-decoration: underline;
    }
}
.cp-footer__copyright {
    flex: 1;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-350);
    text-align: right;
}
.cp-footer__copyright-break {
    display: none;
}

@media (max-width: 768px) {
    .main_content {
        width: 100%;
    }
    .side-content {
        display: none;
    }
    .fv {
        width: 100%;
        height: auto;
        aspect-ratio: 375 / 550; /* 元デザインの縦横比 */
        background-size: cover;
    }
    .hero-heading {
        font-size: clamp(32px, 8.53vw, 65px); /* 375px:32px 〜 768px:約65px、FV画像の拡大率に比例 */
    }
    .hero-heading__lead {
        font-size: clamp(18px, 4.8vw, 37px);
    }
    .cta-button {
        font-size: clamp(18px, 4.8vw, 37px);
    }
    .tooltip__text {
        font-size: clamp(12px, 3.2vw, 25px);
    }
    /* Header */
    .cp-header__inr {
        padding: 12px 20px;
    }
    .cp-header__logo {
        width: 45px;
    }
    .cp-header__link {
        font-size: 14px;
        padding: 6px 16px;
    }

    /* Footer */
    .cp-footer__inr {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .cp-footer__nav__lst {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .cp-footer__copyright {
        flex: none;
        text-align: left;
    }
    .cp-footer__copyright-break {
        display: inline;
    }
}
