:root {
    --main-color: #003366;
}

/* 全体設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding-top: 60px; /* 固定ヘッダーの高さ分 */
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
    align-items: center;
    justify-content: space-between;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none; /* 全幅にする */
    width: auto; /* 全幅にする */
    padding: 5px 3%; /* 左右の余白を調整 */
}

header .logo h1 {
    margin: 0;
    font-size: 24px;
    color: var(--main-color); /* プライマリーカラー：紺色 */
}

header .logo a {
    text-decoration: none;
    color: inherit; /* 親要素の文字色を継承 */
}


header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin: 10px;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px;
}

header nav ul li a:hover {
    color: #FFF;
    background-color: var(--main-color) ;
}

header .contact-info {
    display: flex;
    align-items: center;
}


header .phone-number  {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    background-color: var(--main-color);
    padding: 20px 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 5px;
}

header .contact-info .phone-number:hover {
    background-color: #83ca23;
}

.cta-button {
    font-size: 1.2em; 
    font-weight: bold; 
    display: inline-block;
    background-color: #f6d719;
    color: #000;
    padding: 20px 15px;
    text-decoration: none;
    border-radius: 0; /* 角張デザイン */
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #83ca23;
    color: #FFF;
}

/* 最終CTAセクション */
.final-cta {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    position: relative;
}
.final-cta.lazyloaded {
    background-image: url('../image/final_cta_banner.png');
}

.final-cta .overlay {
    background-color: rgba(0, 0, 0, 0.2); /* オーバーレイ */
}

.final-cta .overlay h3 {
    font-size: 30px;
    margin-bottom: 40px;
}

/* 各セクションの見出し下のスタイル */
.section-divider {
    width: 100px; /* 線の長さ */
    height: 5px; /* 線の太さ */
    background-color: #f6d719; /* 黄色 */
    margin: 5px auto; /* 中央揃え */
}

.section-english-title {
    color: #fe9a41; /* 灰色 */
    font-size: 18px; /* フォントサイズ */
    text-align: center;
    margin-top: 5px;
    margin-bottom: 30px;
    font-weight: 800;
}

/* お申込みフォームセクション */
.contact-form {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.contact-form h2 {
    font-size: 32px;
    color: var(--main-color);
    text-align: center;
    margin: 0px;
}

.contact-form h3 {
    font-size: 32px;
    color: var(--main-color);
    margin: 0px;
    text-align: center;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

.contact-form .required {
    color: #d9534f;
    margin-left: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: calc(100% - 22px); /* Padding and border */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0; /* 角張デザイン */
    font-size: 16px;
}

.contact-form .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.contact-form #document_download_options .radio-group {
    flex-direction: column;
    align-items: flex-start;
}

.contact-form .checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-form .checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
}

.contact-form .checkbox-item label {
    margin-bottom: 0;
}

.contact-form .radio-group input[type="radio"],
.contact-form .radio-group input[type="checkbox"] {
    display: inline-block; /* インラインブロック要素にする */
    vertical-align: middle; /* チェックボックスとテキストを垂直方向に中央揃え */
}

.contact-form .radio-group label {
    display: inline-block; /* ラベルもインラインブロック要素にする */
    vertical-align: middle;
}

.contact-form .checkbox-group {
    display: flex;
    align-items: center;
}

.contact-form .checkbox-group label {
    margin-bottom: 0;
}

.contact-form button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 0; /* 角張デザイン */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #002244;
}

@media (max-width: 768px) {
    .contact-form .container {
        width: 95%;
    }

    .contact-form .radio-group label{
        font-size: 14px;
    }
}

/* フッター */
footer {
    background-color: var(--main-color); /* 暗い背景色 */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer .footer-logo h3 {
    margin: 0;
    font-size: 24px;
    margin-bottom: 20px;
}

footer .footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

footer .footer-nav ul li {
    margin: 0 15px;
    font-size: 14px;
}

footer .footer-nav ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

footer .footer-nav ul li a:hover {
    color: #ccc;
}

footer .copyright {
    font-size: 14px;
    color: #ccc;
}

/* レスポンシブデザイン */
/* ハンバーガーメニュー */
.hamburger {
    display: none; /* デスクトップでは非表示 */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* ヘッダーより前面に */
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--main-color);
    transition: all 0.3s ease-in-out;
}

.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    body {
        padding-top: 80px; /* 固定ヘッダーの高さ分を調整 */
    }

    header {
        padding: 10px 0;
    }

    header .container {
        flex-direction: row; /* モバイルでも横並び */
        justify-content: space-between; /* 要素を左右に配置 */
        align-items: center;
        padding: 5px 3%;
    }

    header .logo {
        flex-grow: 1; /* ロゴが残りのスペースを占める */
    }

    header .logo h1 {
    font-size: 14px;
    }

    header nav {
        display: none; /* ハンバーガーメニューで制御するため非表示に */
        position: fixed;
        top: 40px; /* ヘッダーの高さ分 */
        width: 100%;
        height: calc(100% - 40px); /* 残りの高さ */
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999; /* ヘッダーの下 */
        overflow-y: auto; /* コンテンツが多い場合にスクロール可能に */
    }

    header nav.is-active {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 0;
    }

    header nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    header nav ul li a {
        font-size: 1.2rem;
        padding: 10px;
        display: block;
    }

    header .contact-info {
        display: none; /* ハンバーガーメニューで制御するため非表示に */
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    header .contact-info.is-active {
        display: flex;
    }

    header .contact-info .phone-number,
    .cta-button {
        width: calc(100% - 30px); /* 左右のパディング分を考慮 */
        text-align: center;
        margin: 10px auto; /* 中央揃え */
    }

    .hamburger {
        display: flex; /* モバイルで表示 */
    }

    .final-cta .overlay h3 {
        font-size: 28px;
    }

    .contact-form form {
        padding: 20px;
    }

    footer .footer-logo h3 {
        font-size:18px;
    }
}
