/* ==========================
   リセット
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Noto Sans JP",sans-serif;

    background:#f4f4ef;

    color:#333;

    line-height:1.8;

}

/* ==========================
ヘッダー
========================== */

header{

    position:fixed;

    top:0;

    width:100%;

    height:80px;

    background:#1b5e20;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 60px;

    z-index:1000;

    box-shadow:0 3px 10px rgba(0,0,0,.2);

}

.logo{

    color:white;

    font-size:30px;

    font-weight:bold;

}

nav ul{

    display:flex;

    list-style:none;

    gap:30px;

}

nav a{

    color:white;

    text-decoration:none;

    font-weight:bold;

    transition:.3s;

}

nav a:hover{

    color:#ffd54f;

}

/* ==========================
ヒーロー
========================== */

.hero{

    height:100vh;

    background:linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)),
    url(images/hero.jpg);

    background-size:cover;

    background-position:center;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    color:white;

}

.hero h1{

    font-size:60px;

    margin-bottom:20px;

}

.hero p{

    font-size:22px;

    margin-bottom:40px;

}

.btn{

    display:inline-block;

    padding:15px 40px;

    background:#43a047;

    color:white;

    border-radius:50px;

    text-decoration:none;

    transition:.3s;

}

.btn:hover{

    background:#2e7d32;

    transform:translateY(-5px);

}

/* ==========================
共通
========================== */

.section{

    padding:120px 10%;

}

.section h2{

    text-align:center;

    font-size:40px;

    margin-bottom:30px;

    color:#1b5e20;

}

.section-text{

    text-align:center;

    margin-bottom:50px;

}

/* ==========================
麻雀とは
========================== */

.about-box{

    display:flex;

    gap:50px;

    align-items:center;

}

.about-box img{

    width:100%;

    border-radius:20px;

}

.image{

    flex:1;

}

.text{

    flex:1;

}

.text h3{

    margin-bottom:20px;

    color:#2e7d32;

}

/* ==========================
カード
========================== */

.card-container{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.card{

    background:white;

    padding:30px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 5px 20px rgba(0,0,0,.1);

    transition:.3s;

}

.card:hover{

    transform:translateY(-10px);

}

.card img{

    width:120px;

    margin-bottom:20px;

}

.card h3{

    margin-bottom:15px;

    color:#2e7d32;

}

/* ==========================
あがり方
========================== */

.win-container{

    display:flex;

    gap:30px;

    margin-top:40px;

}

.win-card{

    flex:1;

    background:white;

    padding:30px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 5px 20px rgba(0,0,0,.1);

}

.sample{

    font-size:40px;

    margin-top:20px;

}

.goal-box{

    margin-top:50px;

    text-align:center;

    background:#e8f5e9;

    padding:40px;

    border-radius:20px;

}
/* ==========================
役紹介
========================== */

#role .card{

    min-height:220px;

}


/* ==========================
対局の流れ
========================== */

.timeline{

    display:flex;

    justify-content:space-between;

    gap:20px;

    margin-top:50px;

    flex-wrap:wrap;

}

.step{

    flex:1;

    min-width:180px;

    background:white;

    padding:30px 20px;

    text-align:center;

    border-radius:20px;

    box-shadow:0 5px 20px rgba(0,0,0,.1);

    transition:.3s;

}

.step:hover{

    transform:translateY(-8px);

}

.step span{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    width:50px;

    height:50px;

    border-radius:50%;

    background:#2e7d32;

    color:white;

    font-size:22px;

    font-weight:bold;

    margin-bottom:20px;

}

.step h3{

    color:#1b5e20;

    margin-bottom:15px;

}


/* ==========================
初心者向けアドバイス
========================== */

.tips-container{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.tip-card{

    background:white;

    padding:30px;

    border-radius:20px;

    box-shadow:0 5px 20px rgba(0,0,0,.1);

    transition:.3s;

}

.tip-card:hover{

    transform:translateY(-8px);

}

.tip-card h3{

    color:#1b5e20;

    margin-bottom:15px;

}


/* ==========================
まとめ
========================== */

.summary{

    text-align:center;

}

.summary p{

    max-width:700px;

    margin:30px auto;

}


/* ==========================
フッター
========================== */

footer{

    background:#1b5e20;

    color:white;

    text-align:center;

    padding:50px 20px;

}

.footer-content h3{

    font-size:30px;

    margin-bottom:15px;

}

.footer-content ul{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:25px;

    list-style:none;

    margin:30px 0;

}

.footer-content a{

    color:white;

    text-decoration:none;

}

.footer-content a:hover{

    color:#ffd54f;

}

.copy{

    margin-top:30px;

    font-size:14px;

    opacity:.8;

}


/* ==========================
スクロールアニメーション
========================== */

.section{

    opacity:0;

    transform:translateY(40px);

    animation:fadeUp .8s ease forwards;

}

.section:nth-child(2){animation-delay:.2s;}
.section:nth-child(3){animation-delay:.4s;}
.section:nth-child(4){animation-delay:.6s;}
.section:nth-child(5){animation-delay:.8s;}
.section:nth-child(6){animation-delay:1s;}
.section:nth-child(7){animation-delay:1.2s;}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(40px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}


/* ==========================
レスポンシブ
========================== */

@media(max-width:900px){

header{

    flex-direction:column;

    height:auto;

    padding:20px;

}

nav ul{

    flex-wrap:wrap;

    justify-content:center;

    gap:15px;

    margin-top:15px;

}

.hero h1{

    font-size:42px;

}

.hero p{

    font-size:18px;

}

.about-box{

    flex-direction:column;

}

.card-container{

    grid-template-columns:repeat(2,1fr);

}

.win-container{

    flex-direction:column;

}

.timeline{

    flex-direction:column;

}

.tips-container{

    grid-template-columns:1fr;

}

}


@media(max-width:600px){

.hero h1{

    font-size:32px;

}

.hero p{

    font-size:16px;

}

.section{

    padding:80px 8%;

}

.section h2{

    font-size:28px;

}

.card-container{

    grid-template-columns:1fr;

}

.logo{

    font-size:24px;

}

nav ul{

    gap:10px;

}

nav a{

    font-size:14px;

}

.card img{

    width:90px;

}

}