/* =====================
   ベース設定
===================== */
body {
    font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.7;
}

a {
    color: #003366;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* =====================
   固定ヘッダー対策
===================== */
body .container {
    padding-top: 150px; /* ヘッダー高さ＋余白 */
}

@media(max-width:768px){
    body .container {
        padding-top: 130px; /* スマホは少し低め */
    }
}

/* =====================
   ヘッダー
===================== */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #003366;
    color: #fff;
    z-index: 999;
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* ロゴ */
.logo-img {
    height: 110px;   /* PCロゴ大きめ */
    width: auto;
    transition: all 0.3s ease;
}

/* ナビ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
}

/* お問い合わせボタン風 */
.contact-btn {
    background: #fff;
    color: #111 !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* =====================
   スクロールでヘッダー縮小
===================== */
.shrink .header-inner {
    padding: 10px 30px;
}
.shrink .logo-img {
    height: 70px;
}

/* =====================
   ハンバーガー
===================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ハンバーガー → × 変形 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px,-5px);
}

/* =====================
   スマホメニュー
===================== */
@media(max-width:768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100%;
        background: #003366;
        flex-direction: column;
        padding-top: 120px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    /* 背景暗転 */
    body.menu-open::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 900;
    }
}

/* =====================
   コンテナ
===================== */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* セクションタイトル */
.section-title, h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-left: 6px solid #003366;
    padding-left: 15px;
    color: #003366;
}

/* =====================
   カード
===================== */
.card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 25px;
}

/* サブタイトル */
.sub-title, h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #003366;
}

/* =====================
   フッター
===================== */
footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    font-size: 0.85rem;
    color: #555;
    background-color: #f9f9f9;
}

/* =====================
   スマホ一般
===================== */
@media(max-width:768px) {
    .header-inner {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-img {
        height: 70px;
    }
}

/* =====================
   フォーム
===================== */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: #003366;
    outline: none;
}

button {
    background-color: #003366;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #002244;
}