@charset "UTF-8";

/* =========================================
   STV Dosanko App Section (GO App Style)
   ========================================= */

section {
    margin: 0 !important;
    padding: 10rem 0 12rem !important; 
}

.t-home-app {
    background: linear-gradient(to right, #ffffff, #efefef, #ffffff);
    width: 100%;
}

.t-home-app__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.t-home-app__header {
    margin-bottom: 8rem;
    text-align: center;
}

/* --- ステップ全体のコンテナ --- */
.t-home-app__steps {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    padding-bottom: 10rem;
}

.t-home-app__desc {
    font-size: 1.4rem;
    line-height: 1.8;
    transition: opacity 0.3s ease;
    text-align: center;
    margin: 2rem 0 8rem;
    color: #555555;
}

/* --- 各ステップのレイアウト（ジグザグ） --- */
.t-home-app-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8%;
}

/* 偶数番目のステップは左右を反転させる */
.t-home-app-step.-reverse {
    flex-direction: row-reverse;
}

/* --- テキストエリア --- */
.t-home-app-step__text {
    width: 60%;
}
.t-home-app-step__text_02 {
    width: 60%;
}
.t-home-app-step__text_03 {
    width: 70%;
}
.t-home-app-step__text_04 {
    width: 100%;
}

.t-home-app-step__label {
    display: inline-block;
    font-family: var(--font-family_outfit, sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff59ee;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    position: relative;
}

/* 応募コンテンツ下のさりげないライン */
.t-home-app-step__label::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff59ee;
    border-radius: 2px;
}

.t-home-app-step__title {
    font-family: var(--font-family_monbran, sans-serif);
    font-size: 3.6rem;
    font-weight: 800;
    color: #111111;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.t-home-app-step__desc {
    font-size: 1.5rem;
    line-height: 1.9;
    color: #555555;
}

.t-home-app-step__desc strong {
    color: #ff59ee;
    font-weight: 700;
    font-size: 1.8rem;
}

/* 注釈 */
ul.t-home-app-step__note {
margin: 1em 0 0;
padding: 0;
font-size: 1.5rem;
line-height: 1.9;
color: #555555;
}
ul.t-home-app-step__note > li {
list-style: none;
padding-left: 1em;
position: relative;
}
ul.t-home-app-step__note > li::before {
content: "※";
display: block;
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
margin: 0;
}

/* ナンバー */
ul.t-home-app-step__number {
margin: 1em 0 0;
padding: 0;
font-size: 1.5rem;
line-height: 1.9;
color: #555555;
}
ul.t-home-app-step__number > li {
list-style: none;
padding-left: 2rem;
position: relative;
}
ul.t-home-app-step__number > li::before {
display: block;
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
margin: 0;
font-size: 2rem;
line-height: 2;
font-weight: bold;
}
ul.t-home-app-step__number > li:nth-of-type(1)::before {
content: "①";
}
ul.t-home-app-step__number > li:nth-of-type(2)::before {
content: "②";
}
ul.t-home-app-step__number > li > p:nth-of-type(1) {
font-size: 2rem;
font-weight: bold;
}
ul.t-home-app-step__number > li > p:nth-of-type(2) > strong {
    color: #ff59ee;
    font-weight: 700;
    font-size: 1.8rem;
}

/* --- スマホ画像エリア（モックアップ風） --- */
.t-home-app-step__image {
    width: 40%;
    position: relative;
}

.t-home-app-step__image_02 {
    width: 40%;
}

.t-home-app-step__image_03 {
    width: 30%;
}

/* 占い */
.t-home-app__character {
    position: relative;
    top: -10rem;
}
.t-home-app__character > img {
    max-width: 15rem;
    width: 100%;
    transform: rotate(-5deg);
}

/* 初期状態：透明で少し下に下げておく（ふわっと浮き上がる効果） */
.t-home-app__character > p {
    position: absolute;
    max-width: 15rem;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease; 
    border-radius: 1rem;
    pointer-events: none;
}

/* クラスがついた時の状態：表示して元の位置へ */
.t-home-app__character > p.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.t-home-app__character > p:nth-of-type(1) {
    top: -10rem;
    left: 15rem;
}
.t-home-app__character > p:nth-of-type(2) {
    left: 5rem;
}
.t-home-app__character > p:nth-of-type(3) {
    top: 32rem;
    left: 17rem;
}
.t-home-app__character > img,
.t-home-app__character > p > img {
    border-radius: 1rem;
    border: 1px solid #ffffff;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.t-home-app__character > p:nth-of-type(1) > img {
    transform: rotate(5deg);
}
.t-home-app__character > p:nth-of-type(2) > img {
    transform: rotate(8deg);
}
.t-home-app__character > p:nth-of-type(3) > img {
    transform: rotate(-10deg);
}

/* 二次元コード */
.t-home-app__qrchord {
    position: absolute;
    bottom: 0;
    left: -5rem;
    z-index: 1;
}

.t-home-app__qrchord_02 {
    position: absolute;
    bottom: 0;
    right: -5rem;
    z-index: 1;
}

.t-home-app__qrchord > img,
.t-home-app__qrchord_02 > img {
    max-width: 10rem;
    width: 100%;
    border-radius: 1rem;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 後ろに敷くアクセントの丸い背景（浮遊感を演出） */
.t-home-app-step__image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(135deg, rgba(255,89,238,.25) 0%, rgba(238,255,46,.25) 100%);
    border-radius: 50%;
    z-index: -1;
}

/* スマホ本体の枠 */
.t-home-app-step__mockup {
    position: relative;
    z-index: 10;
    width: 40%;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 16px;
    border: 10px solid #ffffff;
    border-radius: 36px;
    outline-offset: 0;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.t-home-app-step:hover .t-home-app-step__mockup {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

/* --- アクションボタン --- */
.t-home-app__action {
    margin-top: 1rem;
    text-align: center;
}

.t-home-app__action_02 {
    margin-top: -6rem;
    text-align: center;
}


/* === スマホ用レスポンシブ === */
@media screen and (max-width: 799px) {

.t-home-app__action_02 {
    margin-top: 0;
}
}

.t-home-app__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
    background: #111111;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.t-home-app__btn:hover {
    color: #ffffff;
    background: #ff59ee;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 89, 238, 0.3);
    text-decoration: none;
}

.t-home-app__btn:hover,
.t-home-app__btn_02:hover {
    color: #ffffff;
    text-decoration: none;
}

.t-home-app__btn:visited,
.t-home-app__btn_02:visited {
    color: #ffffff;
}

.t-home-app__btn_02 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5rem;
    background: #111111;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 0rem;
}

/* 共通のキャラクター設定 */
.t-home-app__btn_02::before,
.t-home-app__btn_02::after {
    content: "";
    position: absolute;
    width: 10rem;
    height: 10rem;
    top: -8.5rem;
    transition: opacity 0.3s ease, right 0.3s ease;
    pointer-events: none; 
}

/* 通常時の画像 (gugu_character_02) */
.t-home-app__btn_02::before {
    background: url(../img/gugu_character_02.gif) no-repeat 50% 50% / contain;
    right: 1rem;
    opacity: 1;
    z-index: 2;
}

/* ホバー時の画像 (gugu_character_01) をあらかじめ重ねておく */
.t-home-app__btn_02::after {
    background: url(../img/gugu_character_01.gif) no-repeat 50% 50% / contain;
    right: -.5rem;
    opacity: 0;
    z-index: 1;
}

/* ホバー時の挙動 */
.t-home-app__btn_02:hover {
    background: #ff59ee;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 89, 238, 0.3);
}

/* 通常画像を消して、ホバー画像を出す */
.t-home-app__btn_02:hover::before {
    opacity: 0;
}

.t-home-app__btn_02:hover::after {
    opacity: 1;
    z-index: 3;
}

.t-home-app__spbtn {
    display: none;
}

.slideshow_01 {
    position: relative;
    width: 60%;
    aspect-ratio: 9 / 19;
    border-radius: 24px;
}

.slideshow_02 {
    position: relative;
    width: 60%;
    aspect-ratio: 9 / 19;
    border-radius: 24px;
}

/* 画像の基本設定（既存） */
.slideshow_01 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0;
    animation: fade_01 33s infinite both;
}

.slideshow_02 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0;
    animation: fade_02 27s infinite both;
}

/* 数字の共通設定 */
.step-number {
    position: absolute;
    top: -70px;
    right: -70px;
    z-index: 1;
    font-size: 3rem;
    font-weight: bold;
    color: #ff59ee;
    border: 1px solid;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 rgba(255,255,255,.5);
    opacity: 0;
    animation: step_show 33s infinite both;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    font-size: 2.8rem;
}

.step-number::before {
    content: "STEP";
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.step-number_02 {
    position: absolute;
    top: -70px;
    left: -70px;
    z-index: 1;
    font-size: 3rem;
    font-weight: bold;
    color: #ff59ee;
    border: 1px solid;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 0 rgba(255,255,255,.5);
    opacity: 0;
    animation: step_show_02 27s infinite both;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    font-size: 2.8rem;
}

.step-number_02::before {
    content: "STEP";
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* 5枚分の遅延（3秒刻み） */
.slideshow_01 img:nth-of-type(1),
.slideshow_01 .step-number:nth-of-type(1) { animation-delay: 0s; }

.slideshow_01 img:nth-of-type(2),
.slideshow_01 .step-number:nth-of-type(2) { animation-delay: 3s; }

.slideshow_01 img:nth-of-type(3),
.slideshow_01 .step-number:nth-of-type(3) { animation-delay: 6s; }

.slideshow_01 img:nth-of-type(4),
.slideshow_01 .step-number:nth-of-type(4) { animation-delay: 9s; }

.slideshow_01 img:nth-of-type(5),
.slideshow_01 .step-number:nth-of-type(5) { animation-delay: 12s; }

.slideshow_01 img:nth-of-type(6),
.slideshow_01 .step-number:nth-of-type(6) { animation-delay: 15s; }

.slideshow_01 img:nth-of-type(7),
.slideshow_01 .step-number:nth-of-type(7) { animation-delay: 18s; }

.slideshow_01 img:nth-of-type(8),
.slideshow_01 .step-number:nth-of-type(8) { animation-delay: 21s; }

.slideshow_01 img:nth-of-type(9),
.slideshow_01 .step-number:nth-of-type(9) { animation-delay: 24s; }

.slideshow_01 img:nth-of-type(10),
.slideshow_01 .step-number:nth-of-type(10) { animation-delay: 27s; }

.slideshow_01 img:nth-of-type(11),
.slideshow_01 .step-number:nth-of-type(11) { animation-delay: 30s; }



/* 9枚分の遅延（3秒刻み） */
.slideshow_02 img:nth-of-type(1),
.slideshow_02 .step-number_02:nth-of-type(1) { animation-delay: 0s; }

.slideshow_02 img:nth-of-type(2),
.slideshow_02 .step-number_02:nth-of-type(2) { animation-delay: 3s; }

.slideshow_02 img:nth-of-type(3),
.slideshow_02 .step-number_02:nth-of-type(3) { animation-delay: 6s; }

.slideshow_02 img:nth-of-type(4),
.slideshow_02 .step-number_02:nth-of-type(4) { animation-delay: 9s; }

.slideshow_02 img:nth-of-type(5),
.slideshow_02 .step-number_02:nth-of-type(5) { animation-delay: 12s; }

.slideshow_02 img:nth-of-type(6),
.slideshow_02 .step-number_02:nth-of-type(6) { animation-delay: 15s; }

.slideshow_02 img:nth-of-type(7),
.slideshow_02 .step-number_02:nth-of-type(7) { animation-delay: 18s; }

.slideshow_02 img:nth-of-type(8),
.slideshow_02 .step-number_02:nth-of-type(8) { animation-delay: 21s; }

.slideshow_02 img:nth-of-type(9),
.slideshow_02 .step-number_02:nth-of-type(9) { animation-delay: 24s; }

/* --- スライド1 (11枚・33秒) --- */
@keyframes fade_01 {
    0%   { opacity: 0; }
    1.5% { opacity: 1; }
    9.09% { opacity: 1; }
    10.6% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes step_show {
    0%    { opacity: 0; }
    0.1%  { opacity: 1; }
    9.0%  { opacity: 1; }
    9.09% { opacity: 0; }
    100%  { opacity: 0; }
}

/* --- スライド2 (9枚・27秒) --- */
@keyframes fade_02 {
    0%   { opacity: 0; }
    1.8% { opacity: 1; }
    11.11% { opacity: 1; }
    13.0% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes step_show_02 {
    0%    { opacity: 0; }
    0.1%  { opacity: 1; }
    11.0% { opacity: 1; }
    11.11% { opacity: 0; }
    100%  { opacity: 0; }
}

@media screen and (max-width: 799px) {
    .t-home-app__steps {
        gap: 6rem;
        padding-bottom: 0;
    }

    .t-home-app-step,
    .t-home-app-step.-reverse {
        flex-direction: column;
        gap: 4rem;
    }

    .t-home-app-step__text,
    .t-home-app-step__text_02,
    .t-home-app-step__text_03 {
        width: 100%;
    }
    
    .t-home-app__btn {
        font-size: 1.4rem;
    }
    
    .t-home-app__btn_02 {
        font-size: 1.4rem;
    }

    .t-home-app__spbtn {
        display: block;
        margin: 3rem 0 0;
        text-align: center;
    }
    
    .t-home-app__qrchord {
        display: none;
    }
    
    .t-home-app__qrchord_02 {
        display: none;
    }

    .t-home-app-step__title {
        font-size: 2.6rem;
    }
    
    .t-home-app-step__image {
        margin-top: 5rem;
        width: 100%;
    }

    .t-home-app-step__image_02 {
        width: 80%;
    }

    .t-home-app-step__image_03 {
        width: 100%;
    text-align: center;
    }
    

.t-home-app__character {
    position: static;
    top: 0;
    width: 100%;
    letter-spacing: -.35em;
}

.t-home-app__character > img,
.t-home-app__character > p {
    letter-spacing: 0;
    display: inline-block;
    margin: 0 .25rem;
    width: 20%;
}

.t-home-app__character > img {
    max-width: 12rem;
}

.t-home-app__character > p {
    position: static;
    max-width: 12rem;
}
}


/* =========================================
   横並び用の新クラスを追加
   ========================================= */
.t-home-app__actions {
    display: flex;
    justify-content: center; /* 水平方向の中央寄せ */
    align-items: center;     /* 垂直方向のズレを防ぐ */
    gap: 3rem;               /* ボタン同士の間の余白 */
}

/* スマホ閲覧時（799px以下）は縦並びにする場合 */
@media screen and (max-width: 799px) {
    .t-home-app__actions {
        margin-top: 0;
        flex-direction: column; /* スマホでは縦並びに戻す */
        gap: 2rem;              /* 縦並びのときの余白 */
    }
    .t-home-app__btn_02 {
        /* ▼ キャラクターが上のボタンに被らないよう、お好みの広さに調整してください ▼ */
        margin-top: 7rem; 
    }

/* 既存の .t-home-app__spbtn の記述に margin-bottom を足す */
    .t-home-app__spbtn_02 {
        display: block;
        margin-top: 3rem;
        margin-bottom: -5rem; /* ▼追加：下のボタンを押し下げる余白 */
        text-align: center;
    }
}
}

/* 上用の余白 */
.t-home-app__actions--mt-large {
    margin-top: 10rem;
}

/* 上余白を狭くしたい時用 */
.t-home-app__actions--mt-none {
    margin-top: -6rem;
}

/* 下用の余白 */
.t-home-app__actions--mb-large {
    margin-bottom: 5rem;
}

