/* ==========================================================
   BoyaChat Sprint3
   style.css
   Part1
   ----------------------------------------------------------
   Contents
   1. Reset
   2. Base
   3. Layout
   4. Header
   5. Hero
========================================================== */

/* ==========================================================
   1. Reset
========================================================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

img{
    display:block;
    max-width:100%;
}

a{
    color:inherit;
    text-decoration:none;
}

button{
    font:inherit;
}

ul,
ol{
    list-style:none;
}

/* ==========================================================
   2. Base
========================================================== */

:root{

    --color-primary:#ff6d92;
    --color-secondary:#ff9a6d;

    --color-bg:#fff9f8;

    --color-white:#ffffff;

    --color-text:#333333;

    --color-sub:#666666;

    --color-border:#f1e6e8;

    --color-shadow:rgba(0,0,0,.08);

    --radius-xl:32px;

    --radius-lg:24px;

    --radius-md:18px;

    --radius-sm:12px;

    --container:1280px;

    --transition:.25s ease;

}

body{

    font-family:"Noto Sans JP",sans-serif;

    color:var(--color-text);

    background:

    radial-gradient(
        circle at top,
        #ffffff 0%,
        #fff7f8 70%
    );

    overflow-x:hidden;

    position:relative;

}

/* ==========================================================
   Background
========================================================== */

body::before{

    content:"";

    position:fixed;

    left:0;

    right:0;

    bottom:0;

    height:420px;

    background:

    radial-gradient(
        circle at left bottom,
        rgba(255,183,212,.55),
        rgba(255,183,212,0) 60%
    ),

    radial-gradient(
        circle at right bottom,
        rgba(255,214,182,.55),
        rgba(255,214,182,0) 60%
    );

    z-index:-2;

}

body::after{

    content:"";

    position:fixed;

    left:-8%;

    right:-8%;

    bottom:-120px;

    height:320px;

    background:#ffffff;

    border-radius:50% 50% 0 0;

    z-index:-1;

}

/* ==========================================================
   3. Layout
========================================================== */

.container{

    width:min(
        var(--container),
        calc(100% - 48px)
    );

    margin-inline:auto;

}

/* ==========================================================
   4. Header
========================================================== */

.site-header{

    padding:28px 0 18px;

}

.logo-link{

    display:flex;

    justify-content:center;

}

.site-logo{

    width:620px;

    max-width:95%;

    transition:var(--transition);

}

.site-logo:hover{

    transform:scale(1.02);

}

/* ==========================================================
   5. Hero
========================================================== */

.hero{

    padding:20px 0 70px;

}

.hero-layout{

    display:grid;

    grid-template-columns:

        1fr
        1fr;

    gap:72px;

    align-items:center;

}

/* ==========================================================
   Hero Card
========================================================== */

.hero-card{

    background:var(--color-white);

    border-radius:var(--radius-xl);

    padding:30px;

    border:1px solid var(--color-border);

    box-shadow:

        0 18px 42px
        var(--color-shadow);

}

/* ==========================================================
   Hero Preview
========================================================== */

.chat-preview{

    display:flex;

    flex-direction:column;

    gap:18px;

}

/* ==========================================================
   Hero Image
========================================================== */

.hero-photo{

    width:72%;

    margin:8px auto;

    border-radius:20px;

}

/* ==========================================================
   Hero Content
========================================================== */

.hero-content{

    max-width:560px;

}

.hero-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 16px;

    border-radius:999px;

    background:#ffe8ef;

    color:#ff6d92;

    font-size:14px;

    font-weight:700;

    margin-bottom:24px;

}

.hero-title{

    font-size:72px;

    line-height:1.08;

    letter-spacing:-2px;

    font-weight:900;

    margin-bottom:28px;

}

.hero-description{

    font-size:20px;

    line-height:1.9;

    color:var(--color-sub);

    margin-bottom:40px;

}
/* ==========================================================
   6. Chat Preview
========================================================== */

.chat-row{

    display:flex;

    align-items:flex-end;

    gap:14px;

}

.chat-row.left{

    justify-content:flex-start;

}

.chat-row.right{

    justify-content:flex-end;

}

/* ==========================================================
   Avatar
========================================================== */

.avatar{

    width:46px;

    height:46px;

    flex-shrink:0;

    border-radius:50%;

    overflow:hidden;

    background:#f3f3f3;

    border:1px solid #ececec;

}

.avatar img{

    width:100%;

    height:100%;

    object-fit:cover;

}

/* ==========================================================
   Chat Bubble
========================================================== */

.chat-bubble{

    position:relative;

    max-width:310px;

    padding:16px 20px;

    border-radius:20px;

    font-size:16px;

    line-height:1.75;

    box-shadow:

        0 8px 18px rgba(0,0,0,.06);

    word-break:break-word;

}

.bubble-gray{

    background:#f4f4f4;

    color:#444;

}

.bubble-pink{

    background:#ffdbe7;

    color:#444;

}

/* ==========================================================
   Bubble Tail
========================================================== */

.chat-row.left .chat-bubble::after{

    content:"";

    position:absolute;

    left:-7px;

    top:18px;

    width:14px;

    height:14px;

    background:#f4f4f4;

    transform:rotate(45deg);

}

.chat-row.right .chat-bubble::after{

    content:"";

    position:absolute;

    right:-7px;

    top:18px;

    width:14px;

    height:14px;

    background:#ffdbe7;

    transform:rotate(45deg);

}

/* ==========================================================
   Hero Button
========================================================== */

.start-button{

    position:relative;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    width:500px;

    height:150px;

    border-radius:44px;

    background:

        linear-gradient(
            90deg,
            var(--color-primary),
            var(--color-secondary)
        );

    color:#ffffff;

    font-size:30px;

    font-weight:800;

    overflow:hidden;

    transition:var(--transition);

    box-shadow:

        0 16px 36px rgba(255,110,150,.28);

}

.start-button:hover{

    transform:translateY(-4px);

    box-shadow:

        0 22px 42px rgba(255,110,150,.34);

}

.start-button::before{

    content:"";

    position:absolute;

    left:-120px;

    top:0;

    width:80px;

    height:100%;

    background:

        rgba(255,255,255,.35);

    transform:skewX(-24deg);

    transition:.7s;

}

.start-button:hover::before{

    left:460px;

}

/* ==========================================================
   Hero Note
========================================================== */

.hero-note{

    margin-top:18px;

    font-size:14px;

    color:#888;

}

/* ==========================================================
   Status
========================================================== */

.status{

    padding:10px 0 70px;

}

.status-grid{

    display:grid;

    grid-template-columns:

        repeat(3,1fr);

    background:#ffffff;

    border-radius:28px;

    overflow:hidden;

    border:1px solid var(--color-border);

    box-shadow:

        0 16px 36px rgba(0,0,0,.06);

}

.status-card{

    padding:42px 30px;

    text-align:center;

}

.status-card:not(:last-child){

    border-right:

        1px solid #f2f2f2;

}

.status-icon{

    width:54px;

    margin:0 auto 18px;

}

.status-card h2{

    font-size:24px;

    margin-bottom:14px;

    font-weight:800;

}

.status-card p{

    color:#666;

    line-height:1.8;

    font-size:17px;

}
/* ==========================================================
   7. Advertisement
========================================================== */

.ad-section{

    padding:10px 0 70px;

}

.ad-box{

    height:96px;

    border-radius:24px;

    border:2px dashed #e8e8e8;

    background:

        repeating-linear-gradient(
            -45deg,
            #ffffff,
            #ffffff 14px,
            #fafafa 14px,
            #fafafa 28px
        );

    display:flex;

    justify-content:center;

    align-items:center;

    color:#9a9a9a;

    font-size:18px;

    font-weight:700;

}

/* ==========================================================
   8. Section Heading
========================================================== */

.section-heading{

    text-align:center;

    margin-bottom:56px;

}

.section-heading h2{

    font-size:46px;

    font-weight:900;

    margin-bottom:18px;

}

.section-heading p{

    color:#666;

    font-size:18px;

    line-height:1.8;

}

/* ==========================================================
   9. Features
========================================================== */

.features{

    padding:10px 0 90px;

}

.feature-grid{

    display:grid;

    grid-template-columns:

        repeat(3,1fr);

    gap:34px;

}

.feature-card{

    background:#ffffff;

    border-radius:28px;

    padding:42px;

    border:1px solid var(--color-border);

    box-shadow:

        0 16px 36px rgba(0,0,0,.05);

    transition:var(--transition);

}

.feature-card:hover{

    transform:translateY(-8px);

    box-shadow:

        0 22px 48px rgba(0,0,0,.08);

}

.feature-icon{

    width:64px;

    margin-bottom:28px;

}

.feature-card h3{

    font-size:28px;

    margin-bottom:20px;

    font-weight:800;

}

.feature-card p{

    color:#666;

    line-height:2;

    font-size:17px;

}

/* ==========================================================
   10. Footer
========================================================== */

.site-footer{

    padding:70px 0;

    border-top:1px solid #efefef;

    background:#ffffff;

}

.footer-logo{

    width:260px;

    margin:0 auto 42px;

}

.footer-nav{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:42px;

    flex-wrap:wrap;

    margin-bottom:34px;

}

.footer-nav a{

    color:#666;

    transition:var(--transition);

}

.footer-nav a:hover{

    color:var(--color-primary);

}

.copyright{

    text-align:center;

    color:#999;

    font-size:14px;

}
/* ==========================================================
   11. Responsive
========================================================== */

/* ---------- Large Tablet ---------- */

@media (max-width:1200px){

    .hero-title{

        font-size:60px;

    }

    .hero-layout{

        gap:48px;

    }

    .feature-grid{

        gap:24px;

    }

}

/* ---------- Tablet ---------- */

@media (max-width:992px){

    .hero{

        padding:10px 0 60px;

    }

    .hero-layout{

        grid-template-columns:1fr;

        gap:50px;

    }

    .hero-card{

        order:2;

    }

    .hero-content{

        order:1;

        max-width:none;

        text-align:center;

    }

    .hero-badge{

        margin-inline:auto;

    }

    .hero-title{

        font-size:56px;

    }

    .hero-description{

        font-size:18px;

    }

    .start-button{

        width:100%;

        max-width:420px;

    }

    .status-grid{

        grid-template-columns:1fr;

    }

    .status-card:not(:last-child){

        border-right:none;

        border-bottom:1px solid #f1f1f1;

    }

    .feature-grid{

        grid-template-columns:1fr;

    }

}

/* ---------- Mobile ---------- */

@media (max-width:768px){

    .container{

        width:min(
            calc(100% - 32px),
            100%
        );

    }

    .site-header{

        padding:20px 0;

    }

    .site-logo{

        width:340px;

    }

    .hero{

        padding:0 0 50px;

    }

    .hero-card{

        padding:20px;

        border-radius:24px;

    }

    .hero-photo{

        width:100%;

    }

    .hero-title{

        font-size:42px;

        letter-spacing:-1px;

    }

    .hero-description{

        font-size:17px;

        line-height:1.8;

    }

    .chat-bubble{

        max-width:220px;

        font-size:15px;

        padding:14px 16px;

    }

    .avatar{

        width:40px;

        height:40px;

    }

    .start-button{

        width:100%;

        height:70px;

        font-size:24px;

    }

    .section-heading{

        margin-bottom:40px;

    }

    .section-heading h2{

        font-size:34px;

    }

    .feature-card{

        padding:30px;

    }

    .feature-card h3{

        font-size:24px;

    }

}

/* ---------- Small Mobile ---------- */

@media (max-width:480px){

    .site-logo{

        width:260px;

    }

    .hero-title{

        font-size:34px;

        line-height:1.2;

    }

    .hero-description{

        font-size:16px;

    }

    .chat-row{

        gap:10px;

    }

    .chat-bubble{

        max-width:180px;

        font-size:14px;

        border-radius:16px;

    }

    .status-card{

        padding:28px 20px;

    }

    .feature-card{

        padding:24px;

    }

    .footer-nav{

        flex-direction:column;

        gap:18px;

    }

}
/* ==========================================================
   12. Animation
========================================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.hero-content{

    animation:fadeUp .8s ease;

}

.hero-card{

    animation:fadeUp 1s ease;

}

.status-card{

    animation:fadeUp .8s ease;

}

.feature-card{

    animation:fadeUp .8s ease;

}

/* ==========================================================
   Hover
========================================================== */

.site-logo{

    transition:
        transform .25s ease;

}

.site-logo:hover{

    transform:scale(1.03);

}

.hero-photo{

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}

.hero-photo:hover{

    transform:scale(1.02);

    box-shadow:

        0 20px 40px rgba(0,0,0,.12);

}

.feature-card{

    transition:

        transform .25s ease,

        box-shadow .25s ease;

}

.status-card{

    transition:

        background .25s ease;

}

.status-card:hover{

    background:#fff8fa;

}

/* ==========================================================
   Focus
========================================================== */

a:focus-visible,

button:focus-visible{

    outline:3px solid #ff7ba4;

    outline-offset:4px;

    border-radius:10px;

}

/* ==========================================================
   Selection
========================================================== */

::selection{

    background:#ffd4e3;

    color:#333;

}

/* ==========================================================
   Scrollbar
========================================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#fafafa;

}

::-webkit-scrollbar-thumb{

    background:#ffb6ca;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#ff8cab;

}

/* ==========================================================
   Utility
========================================================== */

.text-center{

    text-align:center;

}

.mt-0{

    margin-top:0;

}

.mb-0{

    margin-bottom:0;

}

.hidden{

    display:none !important;

}

.shadow{

    box-shadow:

        0 18px 40px rgba(0,0,0,.08);

}

.round{

    border-radius:24px;

}

/* ==========================================================
   Image Safety
========================================================== */

.hero-photo,

.avatar img,

.feature-icon,

.status-icon,

.site-logo,

.footer-logo{

    user-select:none;

    -webkit-user-drag:none;

}

/* ==========================================================
   Footer
========================================================== */

.site-footer{

    position:relative;

    z-index:2;

}

/* ==========================================================
   End
========================================================== */
