/* =====================================================
   SHOWA Corporate Website
   style.css
===================================================== */

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

html{
    scroll-behavior:smooth;
    overflow-x:hidden;
}

body{

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

    color:#333;

    background:#ffffff;

    line-height:1.8;

    overflow-x:hidden;

    -webkit-text-size-adjust:100%;

}

img{

    max-width:100%;

    display:block;

}

a{

    color:inherit;

    text-decoration:none;

}

ul{

    list-style:none;

}

.container{

    width:min(1100px,92%);

    margin:auto;

}

/* ===========================================
Header
=========================================== */

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:80px;

    background:#ffffff;

    z-index:9999;

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

}

header .container{

    height:80px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}

.logo{

    display:flex;

    flex-direction:column;

    color:#173a73;

    line-height:1.1;

    font-size:34px;

    font-weight:900;

    letter-spacing:2px;

}

.logo span{

    margin-top:6px;

    font-size:12px;

    font-weight:500;

    color:#777;

    letter-spacing:1px;

}

/* Navigation */

#nav ul{

    display:flex;

    gap:40px;

}

#nav a{

    font-size:15px;

    font-weight:700;

    transition:.3s;

}

#nav a:hover{

    color:#b68a2c;

}
/* ===========================================
Hamburger
=========================================== */

.hamburger{

    display:none;

    width:32px;

    cursor:pointer;

}

.hamburger span{

    display:block;

    height:3px;

    background:#173a73;

    margin:6px 0;

    border-radius:10px;

    transition:.3s;

}

/* ===========================================
Hero
=========================================== */

.hero{

    position:relative;

    margin-top:80px;

    height:380px;

    overflow:hidden;

}

.hero-slider{

    position:absolute;

    inset:0;

}

.slide{

    position:absolute;

    inset:0;

    background-size:cover;

    background-position:center;

    opacity:0;

    transition:opacity 1.5s ease;

    transform:scale(1.03);

}

.slide:nth-child(1){

    background-image:url("images/hero1.png");

}

.slide:nth-child(2){

    background-image:url("images/hero2.jpeg");

}

.slide:nth-child(3){

    background-image:url("images/hero3.png");

}

.slide.active{

    opacity:1;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(0,0,0,.20),
        rgba(0,0,0,.35)
    );

}

.hero-content{

    position:relative;

    z-index:2;

    height:100%;

    display:flex;

    align-items:center;

}

.hero-text{

    color:#fff;

    max-width:600px;

}

.hero-text h1{

    font-size:42px;

    font-weight:900;

    margin-bottom:18px;

    text-shadow:0 2px 8px rgba(0,0,0,.4);

}

.hero-text h2{

    font-size:26px;

    line-height:1.6;

    font-weight:700;

    margin-bottom:25px;

}

.hero-message{

    font-size:16px;

    line-height:2;

    max-width:520px;

}

/* ===========================================
Notice
=========================================== */

.notice-section{

    padding:70px 0 30px;

}

.notice{

    background:#f4f7fb;

    border-left:5px solid #173a73;

    border-radius:12px;

    padding:35px;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.notice strong{

    display:block;

    font-size:24px;

    color:#173a73;

    margin-bottom:18px;

}

.notice p{

    margin-top:12px;

    line-height:2;

}
/* ===========================================
Section Title
=========================================== */

section{

    padding:80px 0;

}

.section-title{

    text-align:center;

    margin-bottom:60px;

}

.section-title h2{

    font-size:34px;

    color:#173a73;

    font-weight:900;

    margin-bottom:10px;

}

.section-title p{

    color:#888;

    letter-spacing:2px;

    font-size:14px;

    text-transform:uppercase;

}

/* ===========================================
Service
=========================================== */

.service-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:30px;

}

.service-card{

    background:#fff;

    border-radius:14px;

    padding:35px 28px;

    text-align:center;

    box-shadow:0 12px 30px rgba(0,0,0,.06);

    transition:.35s;

}

.service-card:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.10);

}

.service-icon{

    width:80px;

    height:80px;

    margin:0 auto 25px;

    border-radius:50%;

    background:#173a73;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:34px;

    transition:.3s;

}

.service-card:hover .service-icon{

    background:#b68a2c;

}

.service-card h3{

    color:#173a73;

    font-size:22px;

    margin-bottom:15px;

}

.service-card p{

    color:#666;

    line-height:1.9;

    font-size:15px;

}

/* ===========================================
Company
=========================================== */

.company{

    background:#f8fafc;

}

.company-table{

    width:100%;

    border-collapse:collapse;

    background:#fff;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.company-table th{

    width:220px;

    background:#173a73;

    color:#fff;

    text-align:left;

    padding:20px;

    font-weight:700;

    vertical-align:top;

}

.company-table td{

    padding:20px 24px;

    border-bottom:1px solid #ececec;

    line-height:1.9;

}

.company-table tr:last-child td{

    border-bottom:none;

}

/* ===========================================
Area
=========================================== */

.area-box{

    max-width:760px;

    margin:auto;

    background:#fff;

    padding:40px;

    border-radius:14px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

.area-text{

    font-size:26px;

    font-weight:700;

    color:#173a73;

    margin-bottom:15px;

}
/* ===========================================
Policy
=========================================== */

.policy{

    background:#ffffff;

}

.policy-box{

    max-width:900px;

    margin:auto;

    padding:45px;

    background:#f7f9fc;

    border-radius:14px;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

}

.policy-box p{

    margin-bottom:20px;

    line-height:2;

    color:#555;

}

.policy-box p:last-child{

    margin-bottom:0;

}

/* ===========================================
Footer
=========================================== */

footer{

    background:#173a73;

    color:#ffffff;

    margin-top:80px;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:50px;

    padding:60px 0;

}

.footer-company h3{

    font-size:30px;

    margin-bottom:15px;

}

.footer-company p{

    opacity:.85;

    line-height:2;

}

.footer-info h4,
.footer-contact h4{

    margin-bottom:18px;

    font-size:18px;

}

.footer-info ul{

    padding:0;

    margin:0;

}

.footer-info li{

    list-style:none;

    margin-bottom:10px;

    opacity:.9;

}

.footer-contact p{

    opacity:.9;

    line-height:1.9;

}

.copyright{

    text-align:center;

    padding:18px;

    border-top:1px solid rgba(255,255,255,.15);

    font-size:13px;

    opacity:.8;

}

/* ===========================================
Page Top
=========================================== */

#pagetop{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border-radius:50%;

    background:#173a73;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:18px;

    transition:.3s;

    box-shadow:0 8px 20px rgba(0,0,0,.2);

    z-index:999;

}

#pagetop:hover{

    background:#b68a2c;

}

/* ===========================================
Fade Animation
=========================================== */

.fade{

    opacity:0;

    transform:translateY(30px);

    transition:all .8s ease;

}

.fade.show{

    opacity:1;

    transform:translateY(0);

}

/* ===========================================
Responsive
=========================================== */

@media (max-width:768px){

    header{

        height:70px;

    }

    header .container{

        height:70px;

    }

    .logo{

        font-size:28px;

    }

    .logo span{

        display:none;

    }

    #nav{

        position:fixed;

        top:70px;

        right:-100%;

        width:260px;

        height:calc(100vh - 70px);

        background:#fff;

        transition:.3s;

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

        padding-top:40px;

    }

    #nav.active{

        right:0;

    }

    #nav ul{

        display:block;

    }

    #nav li{

        margin:25px;

    }

    .hamburger{

        display:block;

    }

    .hero{

        height:460px;

        margin-top:70px;

    }

    .hero-text{

        text-align:center;

        margin:auto;

    }

    .hero-text h1{

        font-size:34px;

    }

    .hero-text h2{

        font-size:22px;

    }

    .hero-message{

        font-size:15px;

    }

    .notice{

        padding:25px;

    }

    .service-grid{

        grid-template-columns:1fr;

    }

    .company-table th,
    .company-table td{

        display:block;

        width:100%;

    }

    .company-table th{

        border-bottom:none;

    }

    .company-table td{

        padding-top:10px;

    }

    .footer-grid{

        grid-template-columns:1fr;

        gap:35px;

    }

    #pagetop{

        width:45px;

        height:45px;

        right:18px;

        bottom:18px;

    }

}