/* ===================================================
   株式会社MSC ホームページ
   style.css Ver.1.0
=================================================== */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;

    font-size:16px;

    line-height:1.8;

    color:#333;

    background:#ffffff;

}

img{

    max-width:100%;

    height:auto;

    display:block;

}

a{

    color:#0033A0;

    text-decoration:none;

    transition:.3s;

}

a:hover{

    color:#0059d6;

}

.container{

    width:90%;

    max-width:1200px;

    margin:auto;

}

section{

    padding:80px 0;

}

h1{

    font-size:48px;

    line-height:1.4;

    margin-bottom:25px;

}

h2{

    font-size:34px;

    color:#0033A0;

    text-align:center;

    margin-bottom:40px;

}

h3{

    font-size:24px;

    margin-bottom:15px;

}

p{

    margin-bottom:20px;

}

.center{

    text-align:center;

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

header{

    width:100%;

    background:#ffffff;

    position:sticky;

    top:0;

    z-index:999;

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

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:15px 0;

}

.logo img{

    height:70px;

}

nav ul{

    list-style:none;

    display:flex;

    gap:35px;

}

nav a{

    font-weight:bold;

    font-size:15px;

}

nav a:hover{

    color:#0059d6;

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

.hero{

    background:
    linear-gradient(
    rgba(0,0,0,.45),
    rgba(0,0,0,.45)),
    url("../images/hero.png");

    background-size:cover;

    background-position:center;

    color:#ffffff;

}

.hero-overlay{

    padding:140px 0 140px 70px;

}

.hero h1{

    color:#ffffff;

}

.hero-sub{

    margin-top:25px;

    font-size:1.2rem;

    line-height:2;

    color:#ffffff;

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

    max-width:700px;

}

.hero p{

    font-size:20px;

    max-width:700px;

    margin-bottom:40px;

}
/* =======================================
   Button
======================================= */

.btn{

    display:inline-block;

    background:#0033A0;

    color:#ffffff;

    padding:15px 35px;

    border-radius:30px;

    font-weight:bold;

    transition:.3s;

    box-shadow:0 8px 20px rgba(0,51,160,.25);
}

.btn:hover{

    background:#0059d6;

    color:#ffffff;

    transform:translateY(-3px);

    box-shadow:0 12px 25px rgba(0,51,160,.35);
}
/* =======================================
   About
======================================= */

.about{

    background:#ffffff;

}

.about p{

    max-width:900px;

    margin:0 auto 20px;

    text-align:center;

    font-size:17px;

    line-height:2;

}


/* =======================================
   Services
======================================= */

.services{

    background:#f8f9fb;

}

.cards{

    display:grid;

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

    gap:30px;

    margin-top:50px;

    margin-bottom:50px;

}

.card{

    background:#ffffff;

    border-radius:10px;

    overflow:hidden;

    box-shadow:0 5px 15px rgba(0,0,0,.08);

    transition:.3s;

    min-height:470px;

}

.card:hover{

    transform:translateY(-6px);

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

}

.card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.card h3{

    padding:20px 20px 10px;

    color:#0033A0;

}

.card p{

    padding:0 20px 25px;

    line-height:1.8;

}
/* =======================================
   Contact
======================================= */

.contact{

    background:#ffffff;

    text-align:center;

}

.contact p{

    max-width:700px;

    margin:0 auto 35px;

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

footer{

    background:#0033A0;

    color:#ffffff;

    margin-top:80px;

}

.footer-content{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:50px;

    padding:50px 0;

}

.footer-logo img{

    max-width:220px;

}

.footer-info p{

    margin-bottom:10px;

}

.footer-info a{

    color:#ffffff;

}

.footer-info a:hover{

    text-decoration:underline;

}

.copyright{

    text-align:center;

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

    padding:20px;

    font-size:14px;

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

@media (max-width:768px){

header .container{

    flex-direction:column;

}

nav ul{

    flex-direction:column;

    gap:15px;

    margin-top:20px;

    text-align:center;

}

.hero-overlay{

    padding:90px 0;

}

.hero h1{

    font-size:34px;

}

.hero p{

    font-size:17px;

}

.cards{

    grid-template-columns:1fr;

}

.footer-content{

    flex-direction:column;

    text-align:center;

}

.footer-logo{

    margin:0 auto;

}

}
/* =======================================
   Page Title
======================================= */

.page-title{

    background:#0033A0;

    color:#ffffff;

    text-align:center;

    padding:70px 0;

}

.page-title h1{

    color:#ffffff;

    margin-bottom:10px;

}

.page-title p{

    opacity:.9;

    letter-spacing:2px;

}


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

.company-table{

    width:100%;

    border-collapse:collapse;

    margin-top:40px;

}

.company-table th{

    width:220px;

    background:#f5f7fb;

    color:#0033A0;

    text-align:left;

    padding:18px;

    border:1px solid #ddd;

}

.company-table td{

    padding:18px;

    border:1px solid #ddd;

    background:#ffffff;

}
/* =======================================
   Access
======================================= */

.access{

    background:#f8f9fb;

}

.access-text{

    text-align:center;

    margin-bottom:30px;

}

.map{

    border-radius:10px;

    overflow:hidden;

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

}
/* =======================================
   Contact Form
======================================= */

.contact-form{

    max-width:800px;

    margin:40px auto 0;

}

.form-group{

    margin-bottom:25px;

}

.form-group label{

    display:block;

    font-weight:bold;

    margin-bottom:8px;

}

.required{

    color:#d60000;

}

.contact-form input,

.contact-form textarea{

    width:100%;

    padding:14px;

    border:1px solid #cccccc;

    border-radius:6px;

    font-size:16px;

    font-family:inherit;

}

.contact-form textarea{

    resize:vertical;

}

.contact-form input:focus,

.contact-form textarea:focus{

    outline:none;

    border-color:#0033A0;

    box-shadow:0 0 5px rgba(0,51,160,.2);

}
/* =======================================
   Mobile
======================================= */

@media (max-width:768px){

.company-table th,

.company-table td{

    display:block;

    width:100%;

}

.company-table th{

    border-bottom:none;

}

}
/* =======================================
   Header Active
======================================= */

header{

    transition:all .3s;

}

header.scrolled{

    padding:0;

    background:rgba(255,255,255,.97);

}

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

.fade-up{

    opacity:0;

    transform:translateY(30px);

    transition:all .8s;

}

.fade-up.show{

    opacity:1;

    transform:translateY(0);

}