/* 会社概要ページのスタイル */
:root {
    --primary: #62A490;
    --dark: #29594F;
    --secondary: #9DC4B9;
    --light: #E5F1EE;
    --accent: #D4A574;
    --gray: #333333;
}

/* ホームに戻るボタン */
.back-to-home-container {
    text-align: center;
    margin: 80px 0 100px;
}

.back-to-home-button {
    display: inline-flex;
    align-items: center;
    color: var(--gray);
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.back-to-home-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.back-to-home-button:hover {
    color: var(--primary);
}

.back-to-home-button:hover::after {
    width: 100%;
    left: 0;
}

/* 矢印の左移動アニメーション */
.back-to-home-button i,
.back-to-home-button svg {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-to-home-button:hover i,
.back-to-home-button:hover svg {
    transform: translateX(-5px);
}

/* シンプルなページヘッダー - SVG背景が見えるように改良 */
.simple-page-header {
    position: relative;
    padding: 160px 0 80px;
    background-color: rgba(255, 255, 255, 0); /* 背景を透明に */
    text-align: center;
    overflow: hidden;
    margin-top: 0;
    border-bottom: 1px solid var(--light);
    z-index: 5; /* 上位レイヤーに */
}

.simple-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6));
    z-index: -1;
}

.page-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 48px; /* Services・Projectsと統一 */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.8);
    transition: transform 0.5s ease;
}

.simple-page-header:hover .page-title {
    transform: translateY(-5px);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--primary));
}

.header-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--primary);
    margin-top: 15px;
    letter-spacing: 2px;
    opacity: 0.8;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* セクション共通スタイル */
section {
    margin: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* 改良版 代表メッセージセクション */
.message-section {
    padding: 30px 0 80px; /* Projects・Servicesと統一 */
    background-color: white;
}

.message-content {
    max-width: 1100px;
    margin: 0 auto;
}

.message-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    justify-content: space-between;
}

.message-text-content {
    flex: 1;
    min-width: 380px;
}

.message-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.message-image {
    flex: 0 0 320px;
    overflow: hidden;
    position: relative;
}

.message-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.message-image:hover img {
    transform: scale(1.03);
}

.message-signature {
    margin-top: 30px;
    font-family: 'Noto Sans JP', sans-serif;
    font-style: italic;
    color: var(--dark);
    text-align: right;
    position: relative;
}

.message-signature::before {
    content: '';
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100px;
    height: 1px;
    background-color: var(--light);
}

/* 全幅写真セクション */
.fullwidth-image-section {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.05);
    z-index: 1;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(41, 89, 79, 0.8), rgba(41, 89, 79, 0.4));
    display: flex;
    align-items: center;
    z-index: 2;
}

.overlay-content {
    color: white;
    max-width: 600px;
}

.overlay-content h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.overlay-content p {
    font-size: 18px;
    line-height: 1.7;
}

/* 会社概要セクション */
.company-section {
    padding: 80px 0;
    background-color: white;
}

.company-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.company-content:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.company-flex-container {
    display: flex;
    gap: 40px;
}

.company-info {
    flex: 1.5;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.company-table tr:hover {
    background-color: rgba(229, 241, 238, 0.2);
}

.company-table th {
    width: 30%;
    padding: 20px;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    color: var(--dark);
    vertical-align: top;
}

.company-table td {
    width: 70%;
    padding: 20px;
    color: var(--gray);
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-list li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.7;
}

/* 所在地セクション */
.location-section {
    padding: 80px 0;
    background-color: white;
    margin-bottom: 0;
}

.location-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.location-info-simple {
    flex: 1;
    min-width: 300px;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.location-info-simple h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light);
}

.location-info-simple address {
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--gray);
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--dark);
}

.contact-details i,
.access-info i {
    color: var(--primary);
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.access-info h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.access-info h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    opacity: 0.5;
}

.access-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.map-container {
    flex: 2;
    min-height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

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

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

/* レスポンシブデザイン */
@media screen and (max-width: 992px) {
    .page-title {
        font-size: 44px;
    }
    
    .header-subtitle {
        font-size: 16px;
    }
    
    .company-flex-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .company-info, 
    .company-image {
        width: 100%;
    }
    
    .company-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .location-content {
        flex-direction: column;
    }
    
    .location-info-simple {
        width: 100%;
    }
    
    .map-container {
        width: 100%;
        min-height: 350px;
    }

    .message-inner {
        flex-direction: column-reverse;
        align-items: center;
        gap: 40px;
    }
    
    /* message-text-content の幅制限をタブレットで調整 */
    .message-text-content {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .message-image {
        max-width: 280px;
        margin: 0 auto;
    }

    .fullwidth-image-section {
        height: 400px;
    }

    .overlay-content h2 {
        font-size: 32px;
    }

    .overlay-content p {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .simple-page-header {
        padding: 130px 0 60px;
    }
    
    .page-title {
        font-size: 38px;
    }
    
    .header-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* message-text-content の幅制限をスマホで解除 */
    .message-text-content {
        min-width: unset !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    
    /* 文字サイズ調整 - index.phpと統一 */
    .message-text {
        font-size: 13px !important; /* 16px → 13px */
        line-height: 1.4 !important; /* 1.8 → 1.4 */
        letter-spacing: -0.2px !important; /* 文字間隔を詰める */
        word-spacing: -1px !important; /* 単語間隔も詰める */
    }
    
    .company-table td {
        font-size: 13px !important; /* 基本文字サイズ → 13px */
        line-height: 1.4 !important;
        letter-spacing: -0.2px !important;
    }
    
    .contact-details p,
    .access-info p {
        font-size: 13px !important; /* 基本文字サイズ → 13px */
        line-height: 1.4 !important;
        letter-spacing: -0.2px !important;
    }
    
    .service-list li {
        font-size: 13px !important; /* 基本文字サイズ → 13px */
        line-height: 1.4 !important;
        letter-spacing: -0.2px !important;
    }
    
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }
    
    .company-table th {
        padding-bottom: 0;
        background-color: rgba(229, 241, 238, 0.2);
    }

    .fullwidth-image-section {
        height: 350px;
    }

    .overlay-content h2 {
        font-size: 28px;
    }

    .overlay-content p {
        font-size: 13px !important; /* 15px → 13px */
        line-height: 1.4 !important;
        letter-spacing: -0.2px !important;
    }

    .message-text-content {
        text-align: center;
    }

    .message-signature {
        text-align: center;
    }

    .message-signature::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 576px) {
    .simple-page-header {
        padding: 120px 0 50px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .header-subtitle {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .location-info-simple {
        padding: 0;
    }

    .fullwidth-image-section {
        height: 300px;
    }

    .overlay-content h2 {
        font-size: 24px;
    }

    .overlay-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .message-image {
        max-width: 240px;
    }
}