: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;
    }
}
/* Second Opening Page Specific Styles */

/* Hero Section */
.second-opening-hero {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.second-opening-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 20, 50, 0.6); /* 紺色ベースのオーバーレイ */
    z-index: 1;
}

.second-opening-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.second-opening-hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.second-opening-hero .sub-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
    color: #ffd700; /* ゴールドっぽいアクセント */
    font-weight: 700;
}

/* Common Section Styles */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #003366; /* プライマリーカラー */
}

/* Worries Section */
.worries-section {
    background-color: #f4f7f9;
    padding: 80px 0;
}

.worries-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.worries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.worry-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px; /* 角張ったデザインという要件だが、若干のRは許容範囲か、あるいは0にするか。要件は「角丸ではなく角張デザイン」なので0に近づける */
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #da532c; /* 警告色 */
}

.worry-card h4 {
    font-size: 1.2rem;
    color: #da532c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.worry-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Solution Section */
.solution-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.solution-highlight {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 40px;
}

.solution-box {
    background-color: #003366;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 2px;
}

.solution-box h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
    display: inline-block;
}

.solution-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    text-align: left;
}

.solution-feature {
    flex: 1 1 250px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 2px;
}

.solution-feature h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-subtext {
    margin-top: 40px;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Merits Section */
.merits-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.merits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.merit-item {
    background: #fff;
    padding: 25px;
    border-left: 5px solid #003366;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.merit-item:hover {
    transform: translateY(-5px);
}

.merit-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.merit-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #e6e6e6;
    line-height: 1;
}

.merit-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #003366;
}

.merit-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    padding-left: 5px;
}

/* Voice Section */
.voices-section {
    padding: 80px 0;
    background-color: #fff;
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.voice-card {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 2px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.voice-content {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    padding-left: 20px;
}

.voice-content::before {
    content: '"';
    font-size: 3rem;
    color: #ddd;
    position: absolute;
    left: -5px;
    top: -15px;
    font-family: serif;
}

.voice-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.voice-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ccc;
}

.voice-info {
    font-size: 0.85rem;
}

.voice-info strong {
    display: block;
    color: #003366;
    margin-bottom: 2px;
}

.voice-info span {
    color: #666;
    font-size: 0.8rem;
}

/* Package Section */
.package-section {
    padding: 80px 0;
    background-color: #f0f4f8;
}

.package-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.package-intro {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #003366;
    font-weight: 700;
}

.package-list {
    margin-bottom: 40px;
}

.package-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.package-item:last-child {
    border-bottom: none;
}

.package-term {
    flex: 0 0 200px;
    font-weight: 700;
    color: #003366;
    padding-right: 20px;
}

.package-desc {
    flex: 1;
    color: #444;
}

.package-price-box {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.package-price-box p {
    font-size: 1.2rem;
    margin: 0;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
}

/* CTA Section */
.cta-section-bottom {
    padding: 100px 0;
    background-image: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('../image/hero_section.jpg'); /* 仮画像 */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.cta-list {
    text-align: left;
    display: inline-block;
    margin-bottom: 40px;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.3);
}

.cta-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-list i {
    color: #ffd700;
}

.cta-button-large {
    display: inline-block;
    background: #ffd700;
    color: #003366;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    background: #ffec8b;
}

.closing-message {
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

.closing-message h3 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 20px;
}

.closing-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 768px) {
    .second-opening-hero {
        height: auto;
        padding: 80px 20px;
    }
    
    .second-opening-hero h2 {
        font-size: 2rem;
    }
    
    .package-item {
        flex-direction: column;
    }
    
    .package-term {
        flex: auto;
        margin-bottom: 5px;
    }
}
