/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', 'メイリオ', sans-serif;
    line-height: 1.7;
    color: #333333;
    background-color: #ffffff;
    font-size: 16px;
}

/* CSS変数 */
:root {
    --primary-blue: #1E5BA8;
    --dark-blue: #0B3D91;
    --light-blue: #87CEEB;
    --sky-blue: #50C8EA;
    --text-gray: #333333;
    --text-light: #666666;
    --bg-light: #F5F5F5;
    --bg-gray: #E8E8E8;
    --white: #FFFFFF;
    --footer-gray: #4A4A4A;
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

/* リンク基本設定 */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* ========== ヘッダー ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-blue);
}

.nav-desktop {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-desktop a {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--primary-blue);
}

.nav-desktop a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 16px;
}

.cta-button {
    background: var(--primary-blue);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--dark-blue);
    color: white;
}

.menu-button {
    display: none;
}

/* ========== メインコンテンツ ========== */
.main-content {
    margin-top: 113px;
}

@media screen and (max-width: 768px) {
.main-content {
    margin-top: 50px;
}
}

/* ========== ヒーローセクション（トップページ） ========== */
.hero-section {
    height: 500px;
    background-image: url('../img/hero-main.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========== ページヒーロー（下層ページ） ========== */
.page-hero {
    height: 300px;
    background-image: url('../img/hero-sub-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 91, 168, 0.7);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    letter-spacing: 0.1em;
}

/* ========== セクション共通 ========== */
.section {
    padding: 80px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== サービスカード（トップページ） ========== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card-image {
    height: 250px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 30px;
}

.service-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-card-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 500;
    position: relative;
}

.service-link::after {
    content: ' >>';
}

/* ========== 下層ページレイアウト ========== */
.content-section {
    padding: 60px 0;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2カラムレイアウト */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.column-content h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.column-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.column-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.column-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 情報カード */
.info-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.info-card h4 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.info-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.info-card li::before {
    /*content: '・';*/
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

/* グリッドレイアウト */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.grid-item {
    text-align: center;
    padding: 20px;
}

.grid-item-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.grid-item h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.grid-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 工事内容アイテム */
.work-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.work-item {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.work-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-item-icon {
    width: 60px;
    height: 60px;
    margin: -40px auto 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    border: 4px solid white;
}

.work-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.work-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* フロー */
.flow-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.flow-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.flow-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--primary-blue);
    opacity: 0.3;
}

.flow-number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 30px;
}

.flow-content h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.flow-content p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* CTA セクション */
.cta-section {
    background: var(--primary-blue);
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-text h2 {
    color: white;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.cta-text p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

/* CTAボックス */
.cta-box {
    background: var(--primary-blue);
    color: white;
    padding: 60px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.cta-box h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.cta-box .cta-button {
    background: white;
    color: var(--primary-blue);
    padding: 12px 40px;
    font-size: 1rem;
}

.cta-box .cta-button:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

/* ========== 理由ページ ========== */
.reason-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

/*.reason-block.reverse {
    direction: rtl;
}*/

.reason-block.reverse > * {
    direction: ltr;
}

.reason-image:hover img {
    transform: scale(1.05);
}

/* 2番目のセクション（集中施工）の画像を左側に配置 */
.bg-light .reason-block:not(.reverse) {
    grid-template-columns: 1fr 1fr;
    direction: ltr;
}

.bg-light .reason-block:not(.reverse) .reason-content {
    order: 2;
}

.bg-light .reason-block:not(.reverse) .reason-images {
    order: 1;
}

.reason-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.reason-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.reason-tags {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.reason-tags .tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.reverse .reason-tags .tag {
    background-color: #fff;
}

.license-image {
    margin: 40px auto;
    max-width: 420px;
}

.footer {
    background: var(--footer-gray);
    padding: 60px 0 30px;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-nav h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

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

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: white;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.social-links h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    margin-right: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 1;
    color: white;
}

.social-link i {
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== ボタンスタイル ========== */
.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--dark-blue);
    color: white;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 40px;
    border: 2px solid var(--primary-blue);
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #FFF;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* ========== レスポンシブ ========== */
@media screen and (max-width: 1024px) {
    .two-column {
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 768px) {
    /* ヘッダー */
    .nav-desktop,
    .contact-info {
        display: none;
    }
    
    .menu-button {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--primary-blue);
    }
    
    /* ヒーロー */
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-hero {
        height: 200px;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    /* セクション */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* グリッド */
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    /* 工事内容 */
    .work-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 工事の流れ */
    .work-flow-table {
        flex-direction: column;
        gap: 30px;
    }
    
    .work-flow-table::before {
        left: 40px;
        top: 40px;
        bottom: 40px;
        right: auto;
        width: 2px;
        height: auto;
    }
    
    .work-flow-item {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    
    .work-flow-number {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* 理由ブロック */
    .reason-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .reason-block.reverse {
        direction: ltr;
    }
    
    /* スマホでは2番目のセクションも通常の順番に戻す */
    .bg-light .reason-block:not(.reverse) .reason-content {
        order: 1;
    }
    
    .bg-light .reason-block:not(.reverse) .reason-images {
        order: 2;
    }
    
    .reason-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .reason-tags {
        justify-content: center;
    }
    
    .reason-images {
        flex-direction: column;
        gap: 20px;
    }
    
    .reason-image {
        box-shadow: 10px 10px 0px var(--primary-blue);
    }
}

@media screen and (max-width: 480px) {
    /* 基本 */
    body {
        font-size: 14px;
    }
    
    /* ヘッダー */
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 30px;
    }
    
    /* ヒーロー */
    .hero-section {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* セクション */
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    /* ボタン */
    .cta-button,
    .btn-primary,
    .btn-outline {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
    
    /* フッター */
    .footer {
        padding: 40px 0 20px;
    }
}

/* ========== アニメーション ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ユーティリティクラス ========== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-blue);
}

.text-white {
    color: white;
}

.bg-light {
    background: var(--bg-light);
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

/* ========== トップページ専用スタイル ========== */

/* CSS変数の追加（トップページ用） */
:root {
    --s-color-75b9e8f9: #1a1a1aff;
    --s-color-3a8fb323: #113d82ff;
    --s-color-52bce2ff: #c5dfedff;
    --s-color-65a94fa8: #4d4d4dff;
    --s-color-d588bf69: #ffffffff;
    --s-color-5db30159: #f0f5fcff;
    --s-font-b19e7218: 'Noto Sans JP';
    --s-font-228d765e: Futura, 'Arial', sans-serif;
}

/* トップページのヒーローセクション（既存の.hero-sectionを上書き） */
body.home .hero-section {
    height: calc(100vh - 113px);
    background-image: url('../img/s-1920x1200_v-frms_webp_4624c84b-cc89-4ee3-8130-932f472b319d.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

body.home .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
}

body.home .hero-content {
    position: relative;
    z-index: 1;
    padding-left: 80px;
    color: var(--s-color-3a8fb323);
    max-width: 610px;
}

body.home .hero-title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 20px;
}

body.home .hero-title h2 {
    margin: 5px 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 2;
    color: var(--s-color-3a8fb323);
}

body.home .hero-title strong {
    background: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    padding: 5px 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

body.home .hero-description {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
}

/* サービスカード */
.services-section {
    padding: 80px 0;
}

.service-card {
    position: relative;
    background: #ffffff;
    border: 3px solid var(--s-color-3a8fb323);
    border-left: none;
    height: 550px;
    width: 90%;
    margin: 0 auto;
    padding: 0 0 120px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    z-index: 1;
}

.service-card.right {
    background: var(--s-color-3a8fb323);
    border-right: none;
    border-left: 3px solid var(--s-color-3a8fb323);
    align-items: flex-end;
    padding: 0 80px 120px 0;
    margin-left: auto;
}

.service-image {
    position: absolute;
    right: -146px;
    bottom: -31px;
    width: 760px;
    height: auto;
    z-index: 0;
}

.service-card.right .service-image {
    left: -143px;
    right: auto;
}

.service-badge {
    font-family: var(--s-font-228d765e);
    font-size: 11rem;
    font-weight: 500;
    line-height: 1.2;
    color: rgb(197, 223, 237);
}

.service-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
}

.service-card.right .service-content {
    align-items: flex-end;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s-color-3a8fb323);
    line-height: 1.4;
}

.service-card.right .service-title {
    color: #ffffff;
    text-align: right;
}

.service-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #333333;
}

.service-card.right .service-description {
    color: #ffffff;
    text-align: right;
}

.service-link {
    border: 1px solid var(--s-color-3a8fb323);
    border-radius: 128px;
    color: var(--s-color-3a8fb323);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
    padding: 8px 20px;
    text-decoration: none;
    text-align: center;
    width: fit-content;
    display: inline-block;
    transition: all 0.3s;
}

.service-card.right .service-link {
    background: rgb(255, 255, 255);
    color: var(--s-color-3a8fb323);
    border-color: rgb(255, 255, 255);
}

.service-link:hover {
    background: var(--s-color-3a8fb323);
    color: white;
}

.service-card.right .service-link:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* カードセクション */
.cards-section {
    padding: 80px 0 0 0;
}

.cards-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.card-row.reverse {
    flex-direction: row-reverse;
}

.card-image {
    width: 49%;
    height: auto;
    box-shadow: 15px 15px 0px var(--s-color-3a8fb323);
}

.card-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s-color-3a8fb323);
}

.card-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--s-color-75b9e8f9);
}

.card-link {
    border: 1px solid var(--s-color-3a8fb323);
    color: var(--s-color-3a8fb323);
    padding: 8px 20px;
    border-radius: 128px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s;
}

.card-link.primary {
    background: var(--s-color-3a8fb323);
    color: #ffffff;
    border-color: var(--s-color-3a8fb323);
}

.card-link:hover {
    background: var(--s-color-3a8fb323);
    color: white;
}

.card-link.primary:hover {
    background: #0d2f66;
    border-color: #0d2f66;
}

/* レスポンシブ */
@media screen and (max-width: 840px) {
    .hero-content {
        padding-left: 0;
        text-align: center;
        width: 85%;
        margin: 0 auto;
    }

    .hero-title h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .service-card.right {
        height: 425px;
        padding: 0 30px 100px 30px;
        align-items: center;
        text-align: center;
    }

    .service-image {
        width: 55%;
        right: -22px;
        bottom: -20px;
    }

    .service-card.right .service-image {
        left: -83px;
    }

    .service-content {
        width: auto;
        text-align: center;
    }

    .service-card.right .service-title,
    .service-card.right .service-description {
        text-align: center;
    }

    .service-badge {
        font-size: 6rem;
    }

    .cards-container {
        width: 85%;
    }

    .card-row {
        flex-direction: column;
        gap: 40px;
    }

    .card-row.reverse {
        flex-direction: column;
    }

    .card-image {
        width: 90%;
        box-shadow: 10px 10px 0px var(--s-color-3a8fb323);
    }

    .card-content {
        width: 100%;
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 540px) {
    .hero-content {
        width: 90%;
    }

    .hero-title h2 {
        font-size: 2rem;
        margin: 5px 0;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .service-card,
    .service-card.right {
        height: auto;
        padding: 0 20px 80px 20px;
        width: 90%;
    }

    .service-image {
        width: 55%;
        right: -22px;
        bottom: -20px;
    }

    .service-card.right .service-image {
        left: -55px;
    }

    .service-badge {
        font-size: 4rem;
    }

    .service-title {
        font-size: 1.4rem;
    }

    .service-link {
        font-size: 0.9rem;
        padding: 5px 15px;
    }

    .cards-container {
        width: 90%;
        gap: 80px;
    }

    .card-content {
        gap: 15px;
    }

    .card-link {
        font-size: 0.9rem;
        padding: 5px 15px;
    }
}

/* ========== お客様の声用スタイル ========== */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.example-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 200px;
}

.before-after > div {
    position: relative;
    overflow: hidden;
}

.before-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.label.after {
    background: #4CAF50;
}

.example-info {
    padding: 25px;
}

.example-info h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.example-link {
    color: var(--primary-blue);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.example-link:hover {
    gap: 10px;
}

/* 詳細ページ用 */
.case-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.case-item {
    background: white;
    border-radius: 10px;
    padding: 40px 40px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.case-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
}

.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 2rem;
}

.ba-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ba-box img {
    width: 100%;
    height: auto;
    display: block;
}

.ba-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
}

.ba-label.after {
    background: #4CAF50;
}

/* スタッフ紹介用スタイル */
.staff-grid {
    display: grid;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.staff-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-photo {
    width: 280px;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-name {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.staff-role {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.info-section {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.info-section:first-child {
    border-top: none;
    padding-top: 0;
}

.info-title {
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.simple-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.simple-staff-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.simple-staff-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.simple-staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* お問い合わせフォーム */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.form-label {
    display: block;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1rem;
}

.required {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: normal;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.submit-button {
    background: var(--primary-blue);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    background: var(--dark-blue);
}

.company-info-section {
    margin-top: 60px;
    padding: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 10px;
    text-align: center;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.company-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.company-item i {
    font-size: 1.2rem;
}

/* お客様の声カード */
.voice-grid {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.voice-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.rating i {
    color: #FFD700;
    font-size: 1.2rem;
}

.voice-comment {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.voice-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.author-name {
    font-weight: 500;
    color: var(--primary-blue);
}

.satisfaction {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.satisfaction strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* 戻るリンク */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 40px;
    transition: gap 0.3s;
}

.back-link:hover {
    gap: 15px;
}

/* フローチャート（工事の流れ） */
.work-flow-table {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-bottom: 40px;
    position: relative;
}

.work-flow-table::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--primary-blue);
    opacity: 0.3;
}

.work-flow-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.work-flow-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.work-flow-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.work-flow-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========== スタッフ紹介ページ専用スタイル ========== */

/* 上位3名のスタッフカード */
.staff-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
}

.staff-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: calc(33.333% - 14px);
    min-width: 300px;
}

.staff-photo-box {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.staff-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-name-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.staff-detail {
    padding: 30px;
}

.detail-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.detail-text:last-child {
    margin-bottom: 0;
}

/* 下部3名のシンプルグリッド */
.staff-grid-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.staff-simple {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.staff-simple .staff-photo-box {
    height: 350px;
}

.staff-simple .staff-detail {
    padding: 20px;
}

.staff-simple .detail-title {
    font-size: 13px;
}

.staff-simple .detail-text {
    font-size: 13px;
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .staff-card {
        width: calc(50% - 10px);
    }
    
    .staff-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* スマートフォン対応 */
@media (max-width: 768px) {
    .staff-list {
        flex-direction: column;
    }
    
    .staff-card {
        width: 100%;
    }
    
    .staff-grid-simple {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .staff-photo-box {
        height: 250px;
    }
    
    .staff-simple .staff-photo-box {
        height: 300px;
    }
    
    .staff-detail {
        padding: 20px;
    }
    
    .staff-name-label {
        font-size: 16px;
        padding: 12px;
    }
}

/* ========== よくある質問ページ専用スタイル ========== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(30, 91, 168, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: rgba(30, 91, 168, 0.05);
}

.faq-q {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.faq-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

.faq-arrow {
    color: var(--primary-blue);
    margin-left: 10px;
    font-size: 20px;
}

.faq-arrow i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.answer-wrapper {
    padding: 20px 25px;
    display: flex;
    align-items: flex-start;
}

.faq-a {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.answer-wrapper p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    flex: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .faq-container {
        padding: 0 10px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-q {
        font-size: 16px;
    }
    
    .faq-text {
        font-size: 14px;
    }
    
    .answer-wrapper {
        padding: 15px 20px;
    }
    
    .answer-wrapper p {
        font-size: 14px;
    }
}

/* ========== 利用規約ページ専用スタイル ========== */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.privacy-content h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-blue);
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.policy-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.policy-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.policy-section li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 5px;
}

/* ========== お問い合わせ完了ページ専用スタイル ========== */
.complete-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.complete-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 30px;
}

.complete-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.complete-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.complete-message p {
    margin-bottom: 10px;
}

.complete-note {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: left;
}

.complete-note p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
}

.complete-note p:last-child {
    margin-bottom: 0;
}

.complete-contact {
    margin-bottom: 40px;
}

.contact-label {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 10px;
}

.contact-phone {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-phone i {
    color: var(--primary-blue);
    margin-right: 10px;
}

.contact-phone a {
    color: var(--primary-blue);
    text-decoration: none;
}

.contact-phone a:hover {
    text-decoration: underline;
}

.contact-hours {
    font-size: 0.95rem;
    color: #666;
}

.complete-actions {
    margin-top: 40px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .privacy-content {
        padding: 30px 20px;
    }

    .privacy-content h2 {
        font-size: 1.5rem;
    }

    .policy-section h3 {
        font-size: 1.1rem;
    }
    
    .complete-box {
        padding: 40px 20px;
    }

    .complete-icon {
        font-size: 60px;
    }

    .complete-title {
        font-size: 1.5rem;
    }

    .complete-message {
        font-size: 1rem;
    }

    .contact-phone {
        font-size: 1.5rem;
    }
}

/* ========== アラート・エラー表示 ========== */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #fee;
    border-color: #fcc;
    color: #c33;
}

.alert-error ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error li {
    line-height: 1.6;
}

/* ========== PC表示のフッター重なり修正 ========== */

/* メインコンテンツの下部余白を確保 */
.main-content {
    min-height: calc(100vh - 70px); /* ヘッダー高さを引く */
    /*padding-bottom: 60px;  フッターとの間隔を確保 */
}

/* 各ページの最後のセクションに余白を追加 */
/*.content-section:last-of-type {
    padding-bottom: 80px;
}*/

/* カードセクション（トップページ）の下部余白 */
.cards-section {
    padding-bottom: 80px;
}

/* CTAボックスがページ最後の要素の場合 */
/*.cta-box:last-child {
    margin-bottom: 80px;
}*/

/* フッターの上部マージンを確保 */
.footer {
    /*margin-top: 80px;*/
    clear: both;
    position: relative;
}

/* フッター内のレイアウト調整 */
.footer-content {
    padding-bottom: 30px;
}

/* フッター情報の間隔調整 */
.footer-info {
    margin-bottom: 20px;
}

.footer-nav {
    margin-bottom: 20px;
}

.social-links {
    margin-bottom: 20px;
}

/* PC画面（1024px以上）での調整 */
@media screen and (min-width: 1024px) {
    /* フッターコンテンツの最大幅と中央寄せ */
    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px 30px;
    }
    
    /* グリッドレイアウトの調整 */
    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 60px;
    }
}

/* タブレット対応 */
@media screen and (max-width: 1023px) and (min-width: 768px) {
    .footer {
        margin-top: 60px;
    }
    
    .main-content {
        padding-bottom: 40px;
    }
}

/* ========== モバイル最適化追加スタイル ========== */

/* iPhone対応（430px以下） */
@media screen and (max-width: 430px) {

section#staff .card-row:nth-of-type(1) {
    flex-direction: column-reverse;
}

    /* ヘッダーの調整 */
    .header {
        padding: 10px 0;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo {
        height: 30px;
        width: 180px;
        background-size: contain;
    }
    
    .menu-button {
        font-size: 20px;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* トップページヒーローセクション */
    body.home .hero-section {
        height: 100vh;
        min-height: 600px;
    }
    
    body.home .hero-content {
        padding: 0 20px;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    body.home .hero-title {
        margin-bottom: 30px;
    }
    
    body.home .hero-title h2 {
        font-size: 1.5rem;
        line-height: 1.6;
        margin: 10px 0;
    }
    
    body.home .hero-title strong {
        display: inline-block;
        padding: 8px 12px;
        margin: 2px;
    }
    
    body.home .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 15px;
    }
    
    /* トップページサービスカード */
    .services-section {
        padding: 50px 0;
    }
    
    .service-card,
    .service-card.right {
        width: 95%;
        height: auto;
        min-height: 400px;
        padding: 30px 20px 100px 20px;
        margin-bottom: 30px;
    }
    
    .service-image {
        width: 250px;
        right: -20px;
        bottom: -10px;
    }
    
    .service-card.right .service-image {
        left: -20px;
    }
    
    .service-badge {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .service-content {
        width: 100%;
        align-items: center;
        text-align: center;
        z-index: 1;
        position: relative;
    }
    
    .service-card.right .service-content {
        align-items: center;
    }
    
    .service-title {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .service-card.right .service-title {
        text-align: center;
    }
    
    .service-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .service-card.right .service-description {
        text-align: center;
    }
    
    .service-link {
        font-size: 0.9rem;
        padding: 8px 20px;
        background: #fff;
    }
    
    /* CTAセクション */
    .cta-section {
        padding: 40px 0;
        margin: 40px 0;
    }
    
    .cta-content {
        width: 90%;
        padding: 0;
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cta-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .cta-btn {
        font-size: 0.9rem;
        padding: 10px 30px;
    }
    
    /* カードセクション */
    .cards-section {
        padding: 50px 0 0 0;
    }
    
    .cards-container {
        width: 90%;
        gap: 50px;
    }
    
    .card-image {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    /* フッター */
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-info h3 {
        font-size: 1.1rem;
    }
    
    .footer-info p {
        font-size: 0.85rem;
    }
    
    .footer-nav a {
        font-size: 0.85rem;
    }
    
    /* 下層ページヒーロー */
    .page-hero {
        height: 200px;
    }
    
    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    /* セクション共通 */
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .section-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    /* コンテンツセクション */
    .content-section {
        padding: 30px 0;
    }
    
    .content-container {
        padding: 0 15px;
    }
    
    /* フォーム関連 */
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control {
        font-size: 16px; /* iOSのズーム防止 */
        padding: 12px;
    }
    
    .submit-button {
        font-size: 0.9rem;
        padding: 12px 40px;
    }
    
    /* ボタン共通 */
    .btn-primary,
    .btn-outline {
        font-size: 0.9rem;
        padding: 10px 30px;
    }
    
    /* CTAボックス */
    .cta-box {
        padding: 40px 20px;
        margin-top: 40px;
    }
    
    .cta-box h3 {
        font-size: 1.3rem;
    }
    
    .cta-box p {
        font-size: 0.9rem;
    }
    
    /* グリッドレイアウト */
    .work-items,
    .grid-layout,
    .example-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* スタッフカード */
    .staff-card {
        min-width: 280px;
    }
    
    .staff-photo-box {
        height: 300px;
    }
    
    .staff-detail {
        padding: 20px 15px;
    }
    
    .detail-title {
        font-size: 13px;
    }
    
    .detail-text {
        font-size: 13px;
    }
}

/* 極小画面対応（375px以下） */
@media screen and (max-width: 375px) {
    body.home .hero-title h2 {
        font-size: 1.2rem;
    }
    
    .service-image {
        width: 200px;
    }
    
    .service-badge {
        font-size: 2.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
}

/* ========== デザイン修正用追加CSS ========== */

/* 実績カード全体をクリック可能に */
a.example-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.example-card:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* 理由ページの画像サイズと影の調整 */
.reason-images {
    display: flex;
    gap: 10px;
    position: relative;
}

.reason-image {
    flex: 1;
    overflow: hidden;
    border-radius: 1px;
    box-shadow: 5px 5px 0px var(--primary-blue);
    position: relative;
    transform: rotate(-2deg);
    height: fit-content;
}

.reason-image:last-child {
    transform: rotate(2deg);
    margin-top: 30px;
}

.reason-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* 2番目のセクション（左側に画像）専用 */
.bg-light .reason-block:not(.reverse) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bg-light .reason-block:not(.reverse) .reason-images {
    order: 1;
}

.bg-light .reason-block:not(.reverse) .reason-content {
    order: 2;
}

/* PCトップページヘッダーのキャッチコピー幅調整 */
@media screen and (min-width: 1024px) {
    body.home .hero-content {
        max-width: 800px;
        padding-left: 80px;
    }
    
    body.home .hero-title h2 {
        max-width: 700px;
    }
}

/* 文字化け対策（Font Awesomeアイコンの確実な表示） */
.fa-diamond::before,
.fa-gem::before {
    content: "\f3a5";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* 対象エリアページの文字化け修正 */
.diamond-icon::before {
    content: "◆";
    font-style: normal;
    color: var(--primary-blue);
    margin-right: 5px;
}

/* レスポンシブでの理由ページ画像調整 */
@media screen and (max-width: 768px) {
    .reason-images {
        flex-direction: column;
        gap: 20px;
    }
    
    .reason-image {
        transform: none !important;
        margin-top: 0 !important;
        box-shadow: 10px 10px 0px var(--primary-blue);
    }
    
    /* モバイルでは順番を通常に戻す */
    .bg-light .reason-block:not(.reverse) {
        grid-template-columns: 1fr;
    }
    
    .bg-light .reason-block:not(.reverse) .reason-images {
        order: 2;
    }
    
    .bg-light .reason-block:not(.reverse) .reason-content {
        order: 1;
    }
}

/* ========== BEFORE/AFTER画像の高さ調整 ========== */

/* 詳細ページのBEFORE/AFTER画像 */
.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch; /* 高さを揃える */
}

.ba-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: #f5f5f5; /* 画像が小さい場合の背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* JavaScriptで高さが設定されるまでの初期値 */
    min-height: 250px;
}

.ba-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をボックスに合わせてトリミング */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* 画像読み込み中のローディング表示（オプション） */
.ba-box.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #ddd;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .before-after-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ba-box {
        min-height: 200px;
    }
}

.policy-section .contact-info {
    display: block;
}




/* ========== reason-blockのレイアウト修正 ========== */

/* 基本のreason-block設定 */
.reason-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

/* reverseクラスは不要なdirectionを削除 */
.reason-block.reverse {
    direction: ltr !important; /* rtlを上書き */
}

.reason-block.reverse > * {
    direction: ltr !important;
}

/* PC表示 */
@media screen and (min-width: 769px) {
    /* 通常のreason-block（画像が左） */
    .reason-block .reason-images {
        order: 1;
    }
    
    .reason-block .reason-content {
        order: 2;
    }
    
    /* reverseクラス（画像が右） */
    .reason-block.reverse .reason-images {
        order: 2;
    }
    
    .reason-block.reverse .reason-content {
        order: 1;
    }
    
    /* bg-lightセクション（画像が左） */
    .bg-light .reason-block:not(.reverse) .reason-images {
        order: 1;
    }
    
    .bg-light .reason-block:not(.reverse) .reason-content {
        order: 2;
    }
}

/* モバイル表示 */
@media screen and (max-width: 768px) {
    .reason-block,
    .reason-block.reverse,
    .bg-light .reason-block:not(.reverse) {
        grid-template-columns: 1fr !important;
        gap: 30px;
        direction: ltr !important; /* 念のため明示 */
    }
    
    /* モバイルではすべて同じ順番（コンテンツが上、画像が下） */
    .reason-block .reason-content,
    .reason-block.reverse .reason-content,
    .bg-light .reason-block:not(.reverse) .reason-content {
        order: 1 !important;
    }
    
    .reason-block .reason-images,
    .reason-block.reverse .reason-images,
    .bg-light .reason-block:not(.reverse) .reason-images {
        order: 2 !important;
    }
    
}

/* ========== 会社概要ページ専用スタイル ========== */

/* ビジョンセクション */
.vision-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 10px;
}

.vision-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 700;
}

.vision-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* 代表あいさつセクション */
.president-section {
    max-width: 1000px;
    margin: 0 auto 80px;
}

.president-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-start;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 写真なしの場合のレイアウト */
.president-content.no-image {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.president-message p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.president-sign {
    margin-top: 40px;
    text-align: right;
}

.president-content.no-image .president-sign {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.about .company-name {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.president-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.president-image {
    text-align: center;
}

.president-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 会社概要テーブル */
.about .company-info-section {
    max-width: 800px;
    margin: 0 auto 60px;
}

.company-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.company-table th,
.company-table td {
    padding: 20px 30px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    background: #f8f9fa;
    color: var(--primary-blue);
    font-weight: bold;
    width: 30%;
}

.company-table td {
    color: #555;
}

/* 事務所写真セクション */
.office-section {
    max-width: 1000px;
    margin: 0 auto 80px;
    text-align: center;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.office-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
.office-images {
    max-height: 325px;
}
}

.office-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 325px;
    object-fit: cover;
}

.office-image:hover {
    transform: scale(1.02);
}

/* グループ会社セクション */
.group-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 10px;
}

.group-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: left;
}

.group-companies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.group-company-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.group-company-card:hover {
    transform: translateY(-5px);
}

.group-company-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.group-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.group-company-card h4 {
    padding: 20px;
    font-size: 1.1rem;
    color: var(--primary-blue);
    text-align: center;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .president-content {
        padding: 40px 30px;
    }
    
    .group-companies {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vision-section {
        padding: 40px 20px;
        margin-bottom: 60px;
    }
    
    .vision-title {
        font-size: 1.5rem;
    }
    
    .president-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .president-sign {
        text-align: center;
        margin-top: 30px;
    }
    
    .president-image {
        order: -1; /* 画像を上に */
    }
    
    .company-table th,
    .company-table td {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .company-table th {
        width: 35%;
    }
    
    .office-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .group-section {
        padding: 40px 20px;
    }
    
    .group-companies {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    
    .vision-title {
        font-size: 1.3rem;
    }
    
    .vision-text {
        font-size: 1rem;
    }
    
    .president-message p {
        font-size: 0.95rem;
    }
    
    .subsection-title {
        font-size: 1.3rem;
    }
}

.company-info-section h2.section-title {
    color: #fff;
}