/* ========================================
   株式会社ひかり市 トップページ
   hoken01 デザイン準拠
======================================== */

:root{
    --primary:#F439A5;
    --primary-dark:#ab2874;
    --accent:#B89B5E;

    --bg:#FBFAF7;
    --white:#FFFFFF;

    --text:#222222;
    --text-light:#555555;

    --border:#007EB7;

    --cyan:#007EB7;
    --cyan-light:#E2F3FF;
    --pink:#F539A5;
    --yellow:#FFF3A0;
}

/* ========================================
   Reset
======================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:
        "Yu Gothic",
        "YuGothic",
        "Hiragino Kaku Gothic ProN",
        sans-serif;

    color:var(--text);
    background:var(--bg);
    line-height:1.8;
}

img{
    max-width:100%;
    height:auto;
}

a{
    text-decoration:none;
    transition:all .25s ease;
}

.container{
    width:90%;
    max-width:1100px;
    margin:0 auto;
}

/* ========================================
   Header
======================================== */

header{
    background:#fff;
    border-top:4px solid var(--yellow);
    border-bottom:1px solid var(--primary);

    position:sticky;
    top:0;
    z-index:1000;
}

header .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo{
    color:var(--text);
    font-size:1.8rem;
    font-weight:bold;
}

nav ul{
    list-style:none;
    display:flex;
    gap:30px;
}

nav a{
    color:var(--text);
    font-weight:600;
}

nav a:hover{
    color:var(--primary);
}

/* ========================================
   Hero
======================================== */

.hero{
    background:
        linear-gradient(
            to bottom,
            #ffc86b,
            #feee75
        ),
        url("hero.jpg");

    background-size:cover;
    background-position:center;

    color:var(--primary);
    text-align:center;

    padding:140px 20px;
}

.hero h1{
    font-size:3rem;
    font-weight:700;
    line-height:1.5;
    margin-bottom:25px;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:40px;
}

.hero-buttons{
    font-size:1.5rem;
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

/* ========================================
   Buttons
======================================== */

.btn{
    display:inline-block;

    background:var(--primary);
    color:#fff;

    padding:15px 35px;

    border-radius:4px;

    font-weight:bold;
}

.btn:hover{
    background:var(--primary-dark);
}

.btn-outline{
    background:transparent;
    border:2px solid #fff;
}

.btn-outline:hover{
    background:#fff;
    color:var(--primary);
}

/* ========================================
   Section Common
======================================== */

section{
    padding:80px 0;
}

h2{
    text-align:center;
    color:var(--text);

    font-size:2rem;

    margin-bottom:50px;
}

h2::after{
    content:"";

    display:block;

    width:60px;
    height:3px;

    background:var(--accent);

    margin:15px auto 0;
}

p{
    font-size:1.1rem;
    color:var(--text);
}

/* ========================================
   About
======================================== */

.about{
    background:var(--bg);
    text-align:center;
}

.about p{
    max-width:800px;
    margin:0 auto 20px;
}

/* ========================================
   Insurance
======================================== */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.card{
    background:#fff;

    border:1px solid var(--border);
    border-top:5px solid var(--border);

    padding:40px;

    border-radius:4px;

    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.card h3{
    color:var(--primary);
    margin-bottom:15px;
}

.card p{
    color:var(--text);
}

.card-btn{
    display:inline-block;

    margin-top:25px;

    background:var(--primary);
    color:#fff;

    padding:12px 24px;

    border-radius:4px;
}

.card-btn:hover{
    background:var(--primary-dark);
}

/* ========================================
   Reasons
======================================== */

.reason{
    background:var(--bg);
}

.features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.feature{
    background:#fff;

    border:1px solid var(--border);

    padding:35px;

    border-radius:4px;
}

.feature h3{
    color:var(--primary);
    margin-bottom:15px;
}

/* ========================================
   Flow
======================================== */

.steps{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.step{
    background:#fff;

    border:1px solid var(--border);

    border-radius:4px;

    text-align:center;

    padding:35px 25px;
}

.step span{
    display:flex;

    width:55px;
    height:55px;

    justify-content:center;
    align-items:center;

    margin:0 auto 15px;

    border-radius:50%;

    background:var(--primary);

    color:var(--white);

    font-size:1.2rem;
    font-weight:bold;
}

.step h3{
    color:var(--text);
    margin-bottom:10px;
}

/* ========================================
   Contact
======================================== */

.contact{
    background:var(--yellow);
    color:var(--text);
    text-align:center;
}

.contact h2::after{
    background:var(--accent);
}

.contact-btn{
    display:inline-block;

    margin-top:25px;

    background:var(--primary);
    color:var(--white);

    padding:15px 35px;

    border-radius:4px;

    font-weight:bold;
}

.contact-btn:hover{
    background:var(--accent);
    color:#fff;
}

/* ========================================
   Footer
======================================== */

footer{
    background:var(--yellow);
    color:var(--text);

    text-align:center;

    padding:40px 20px;
}

footer p{
    color:var(--text);
}

.footer-links{
    margin:15px 0;
}

.footer-links a{
    color:var(--text);
    margin:0 10px;
}

.footer-links a:hover{
    color:var(--text-light);
}

footer small{
    opacity:.8;
}

/* ========================================
   Mobile
======================================== */

@media (max-width:768px){

    header .container{
        flex-direction:column;
        gap:15px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:15px;
    }

    .hero{
        padding:90px 20px;
    }

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    h2{
        font-size:1.6rem;
    }

    .card,
    .feature,
    .step{
        padding:25px;
    }
}
