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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロール防止 */
}

body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333333;
    background: #FFFFFF;
}

a {
    color: #0a4c8c;
    text-decoration: none;
}

a:hover {
    color: #06345a;
}

/* Header */
/* ========== グローバルナビ ========== */

/* PC表示は今のまま */
header {
    background: #000;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* スマホ用に必要 */
}

/* ハンバーガーボタン（PCでは非表示） */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

nav a {
  color:#fff;
  font-weight:bold;
  transition:.2s;
}

nav a i {
    margin-left:1rem;
    font-size: 1.1rem;
}

/* スマホ時のナビ（アイコン大きめに） */
@media (max-width: 768px) {
    nav a {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }
    nav a i {
        font-size: 1.2rem;
    }
}


/* スマホ表示の nav を一旦非表示 */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background: #000;
        width: 100%;
        padding: 1rem 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }

    nav a {
        display: block;
        padding: 0.8rem 1.5rem;
        border-top: 1px solid #222;
    }

    /* ハンバーガー表示ON */
    .nav-toggle {
        display: block;
    }

    /* メニュー展開時 */
    nav.open {
        display: flex;
    }
}


header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

nav a:hover {
    color:#ddd;
    text-decoration: underline;
}

/* Hero（画面横幅いっぱい） */
.hero {
    position: relative;
    width: 100%;
    max-width: none; /* セクション制限を解除 */
    padding: 0;
    margin: 0;
    height: 400px;
    background: url('hero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1rem;
    max-width: 600px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ────────────────────────────
   ヒーロー直下の h2 / p デザイン（兄弟セレクタ）
──────────────────────────── */

/* ヒーローのすぐ下の h2 */
.hero + h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0a4c8c;
    margin-top: 2.5rem;
    margin-bottom: 0.7rem;
    letter-spacing: 0.04em;
    position: relative;
}

/* h2 下の装飾ライン */
.hero + h2::after {
    content: "";
    width: 70px;
    height: 4px;
    background: #0a4c8c;
    display: block;
    margin: 0.6rem auto 0;
    border-radius: 3px;
}

/* h2 の次の p（説明文） */
.hero + h2 + p {
    text-align: center;
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.85;
    max-width: 850px;
    margin: 0.5rem auto 3rem;
    padding: 0 1.2rem; /* スマホで左右に余白ができて読みやすくなる */
}


/* Sections（中央揃え＋最大幅） */
section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* 初期状態：フェードイン＆少し下にずらす */
.service {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

/* ホバー時に浮き上がる */
/*
.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
*/

/* スクロールでアクティブ */
.service.active {
    opacity: 1;
    transform: translateY(0);
}

.service h3 {
    color: #0a4c8c;
    margin-bottom: 0.5rem;
}

.service p {
    font-size: 0.95rem;
}
.service i {
    color: #0a4c8c;   /* 青のワンポイント */
    margin-bottom: 0.8rem;
}

.service h3 {
    color: #0a4c8c;
    margin-bottom: 0.5rem;
}


/* CTA */
section.cta {
  margin-left:0;
  margin-right:0;
  max-width:none;
}
.cta {
    background: #0a4c8c;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
}

.cta a {
    background: #fff;
    color: #0a4c8c;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.2s;
}

.cta a:hover {
    background: #e0e0e0;
}

/* Company */
.company p {
    margin-bottom: 0.8rem;
}

.company h2 {
    color: #0a4c8c;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 2rem;
    background: #000000;
    color: #fff;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    .hero h2 {
        font-size: 1.5rem;
    }
}
