/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding: 0 15%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
    color: #0c1f3a; /* 濃紺色に変更 */
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #c8b45a; /* 金色に変更 */
}

.btn {
    display: inline-block;
    background-color: #0c1f3a; /* 濃紺色に変更 */
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #183456; /* 少し明るい紺色 */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(12, 31, 58, 0.3);
}

.section-padding {
    padding: 80px 0;
}

/* ヘッダー */
header {
    background-color: #0c1f3a; /* 濃紺色に変更 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px;
    padding: 0 15%;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    color: #c8b45a; /* 金色に変更 */
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    display: none; /* ロゴ画像を使用するため、テキストは非表示 */
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.nav-menu li {
    margin-left: 30px;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu li:last-child {
    margin-left: 35px;
}

.nav-menu a {
    color: #ffffff; /* 白色に変更 */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0 5px;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu a:hover {
    color: #c8b45a; /* ホバー時は金色に */
}

.contact-btn {
    background: linear-gradient(135deg, #c8b45a, #a39043); /* 金色のグラデーション */
    color: #0c1f3a !important; /* 紺色のテキスト */
    padding: 10px 20px !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600 !important;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    line-height: normal;
    height: auto;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(200, 180, 90, 0.3);
    border: none;
    position: relative;
    text-shadow: none;
    opacity: 0.9;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #d9c56b, #b9a154);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(200, 180, 90, 0.4);
    color: #0c1f3a !important;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(12, 31, 58, 0.3), rgba(12, 31, 58, 0.8)), url('hero-image.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* サービスセクション */
.services {
    background-color: white;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #0c1f3a; /* 濃紺色に変更 */
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
}

/* 特徴セクション */
.features {
    background-color: #f0f5f9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    background-color: #0c1f3a; /* 濃紺色に変更 */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0c1f3a; /* 濃紺色に変更 */
}

.feature-text p {
    color: #666;
}

/* お客様の声セクション */
.testimonials {
    background-color: white;
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: bold;
    color: #0c1f3a; /* 濃紺色に変更 */
    font-size: 18px;
}

.testimonial-author span {
    display: block;
    font-size: 14px;
    color: #777;
    font-weight: normal;
    margin-top: 5px;
}

/* 保険会社セクション */
.insurance-companies {
    background-color: #f0f5f9;
    text-align: center;
}

.company-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.company-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
    max-width: 150px;
}

.company-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* FAQ セクション */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: #e9f0f7;
}

.faq-answer {
    padding: 20px;
    background-color: white;
    display: none;
}

.faq-question.active + .faq-answer {
    display: block;
}

/* 社長メッセージセクション */
.ceo-message {
    background-color: #f0f5f9;
    padding: 80px 0;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.profile-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.ceo-profile {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.ceo-photo-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* アスペクト比を1:1（正方形）に設定 */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.ceo-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が枠内に収まるようにトリミング */
    object-position: center top; /* 上部を中心に表示 */
}

.ceo-info {
    padding: 20px;
    background-color: white;
    border-top: 3px solid #0c1f3a; /* 濃紺色に変更 */
}

.ceo-info h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ceo-info h3 {
    font-size: 20px;
    color: #0c1f3a; /* 濃紺色に変更 */
    margin-bottom: 0;
}

.message-text {
    flex: 1;
}

.message-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.message-body:before {
    content: """;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 60px;
    color: #e1e8f0;
    font-family: serif;
    line-height: 1;
}

.ceo-name {
    font-weight: bold;
    text-align: right;
    margin-top: 15px;
    font-size: 16px;
}

/* お問い合わせセクション */
.contact {
    background: #0c1f3a; /* 濃紺色に変更 */
    color: white;
    text-align: center;
    padding: 60px 0; /* パディングを調整 */
    opacity: 0.9;
}

.contact .section-title {
    color: white;
    margin-bottom: 30px; /* マージンを縮小 */
}

.contact .section-title:after {
    background-color: #c8b45a; /* 金色に変更 */
}

.contact-info {
    max-width: 600px; /* 最大幅を設定 */
    margin: 0 auto 20px; /* 下部マージンを縮小 */
}

.contact-method {
    padding: 0 20px;
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px; /* マージンを縮小 */
}

.contact-method h3 {
    margin-bottom: 10px; /* マージンを縮小 */
    font-size: 22px;
}

.contact-method p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 5px; /* マージンを縮小 */
}

.google-form-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c8b45a, #a39043); /* 金色のグラデーション */
    color: #0c1f3a; /* 紺色のテキスト */
    padding: 15px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    margin-top: 10px; /* マージンを縮小 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.google-form-btn:hover {
    background: linear-gradient(135deg, #d9c56b, #b9a154);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* フッター */
footer {
    background-color: #0c1f3a; /* 濃紺色に変更 */
    color: white;
    padding: 70px 0 20px;
    text-align: center; /* フッターを中央寄せに */
}

/* フッターのロゴスタイル */
.footer-logo {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo-image {
    height: 60px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: center; /* 中央寄せに変更 */
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column {
    flex: 0 1 250px; /* 幅を固定し、伸縮しないように設定 */
    text-align: center; /* 中央寄せに変更 */
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%; /* 中央寄せに変更 */
    transform: translateX(-50%); /* 中央寄せに変更 */
    width: 50px;
    height: 2px;
    background-color: #c8b45a; /* 金色に変更 */
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #c8b45a; /* ホバー時は金色に */
}

.footer-mini-links a {
    color: white !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* レスポンシブ設定 */
@media (max-width: 992px) {
    body {
        padding: 0 5%;
    }
    
    header {
        padding: 0 5%;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .message-content {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-image {
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .nav-menu {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
    }
    
    .nav-menu li {
        margin: 5px 10px;
        height: auto;
    }
    
    .nav-menu li:last-child {
        margin: 15px 0 5px;
        height: auto;
    }
    
    .contact-btn {
        padding: 10px 25px;
        font-size: 15px;
        width: auto;
    }
    
    header {
        height: auto;
        position: relative;
    }
    
    .hero {
        padding: 80px 0;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-column {
        flex: 1 0 100%; /* モバイルでは100%幅に */
    }
    
    .footer-logo-image {
        height: 50px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0;
    }
    
    header {
        padding: 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .profile-image {
        max-width: 240px;
    }
    
    .message-text {
        text-align: center;
    }
    
    .google-form-btn {
        width: 90%;
        padding: 15px 20px;
    }
    
    .ceo-name {
        text-align: center;
    }
    
    .message-body:before {
        font-size: 40px;
    }
    
    .logo-image {
        height: 40px;
    }
}