/* リセット＆ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
    background-color: #f8fafc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ヘッダー - 青色背景 */
header {
    background-color: #2a5c91;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.logo small {
    font-size: 0.7em;
    display: block;
    font-weight: normal;
    margin-top: 3px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* ヘッダー右側の固定相談ボタン */
.header-contact {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.header-phone {
    color: white;
    font-weight: bold;
    margin-right: 15px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-cta-button {
    display: inline-flex;
    align-items: center;
    background-color: #e67e22;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin-left: 15px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.header-cta-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.header-contact-button {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin-left: 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    white-space: nowrap;
}

.header-contact-button:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.header-contact-button i {
    margin-right: 5px;
    font-size: 1rem;
}

/* ページヒーローセクション（共通スタイル） */
.page-hero {
    background-color: #f8fafc;
    padding: 50px 0 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.page-hero .container {
    text-align: center;
}

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2a5c91;
}

a { color:#0000FF; text-decoration:none; }

/* モバイル用相談ボタン */
.contact-buttons-mobile {
    display: none;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2a5c91;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 200px;
}

.cta-button:hover {
    background-color: #1e4a7a;
    transform: translateY(-2px);
}

.cta-button i {
    margin-right: 8px;
}

.line-button {
    background-color: #06C755;
}

.phone-button {
    background-color: #e67e22;
}

/* サービスセクション */
.services-section {
    padding: 40px 0 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #2a5c91;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2a5c91;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-img {
    height: 180px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin-bottom: 12px;
    color: #2a5c91;
    font-size: 1.2rem;
}

.service-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ページリンクセクション（共通スタイル） */
.page-link-section {
    text-align: center;
    padding: 40px 0;
    background-color: #f1f5f9;
}

.page-link-section h2 {
    font-size: 1.5rem;
    color: #2a5c91;
    margin-bottom: 20px;
}

.page-link-section a {
    display: inline-block;
    background-color: #2a5c91;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.page-link-section a:hover {
    background-color: #1e4a7a;
    transform: translateY(-2px);
}

/* SNSリンク */
.sns-links {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.sns-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.twitter {
    background-color: #1DA1F2;
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        top: 45%;
        opacity: 0;
    }
    to {
        top: 50%;
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close:hover {
    color: #e67e22;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2a5c91;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2a5c91;
    outline: none;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: #2a5c91;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #1e4a7a;
    transform: translateY(-2px);
}

/* フッター */
footer {
    background-color: #2a5c91;
    color: white;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: rgba(255,255,255,0.3);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-column p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .header-contact {
        display: none;
    }
    
    .contact-buttons-mobile {
        display: flex;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 10px;
        white-space: normal;
    }
    
    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        width: 100%;
    }
    
    nav ul li {
        margin: 0 10px 5px 0;
    }
    
    .page-hero {
        padding: 40px 0 20px;
    }
    
    .page-hero h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .contact-buttons-mobile {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    .modal-content {
        top: 20px;
        transform: none;
        margin: 20px auto;
        padding: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
}