/*
================================================================================
SENBI Holdings Co., Ltd. - 採用サイト
about.css - 会社紹介ページ専用スタイル

概要:
- 会社紹介ページのスタイル定義
- 代表あいさつ、会社概要、店舗紹介セクションのスタイル
- レスポンシブデザイン対応

作成日: 2025年
更新日: 2025年
================================================================================
*/

/* ========================================
   Aboutページ専用スタイル
======================================== */

/* ========================================
   Messageセクション
======================================== */
.message-section {
    /* padding: 27px 0; */
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.message-section-bg {
    /* background: #e74c3c; */
    color: black;
}

.message-header {
    background-image: url('../image/3-aboutsenbi-1.jpg'); /* 背景画像をimageフォルダから設定 */
    background-size: cover; /* 全体を覆うように表示 */
    background-position: center center; /* 中央に配置 */
    height: 400px; /* 必要に応じて高さを設定 */
    display: flex;
    align-items: flex-start; /* 上端に配置 */
    justify-content: flex-start; /* 左端に配置 */
    color: white;
    text-align: left; /*テキストを左寄せ*/
}

.message-header h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid white; /* 白い罫線を追加 */
    line-height: 0.8;            /* 高さを詰める */
}

.message-content {
    width: 100%; /* 親要素の幅を占める */
    max-width: 800px; /* 最大幅を800pxに制限 */
    margin: 0 auto; /* 中央寄せ */
    display: block;
    text-align: left;
    padding: 40px 20px;
}

.message-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Hotjoint Image セクション
======================================== */
.hotjoint-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.hotjoint-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.message-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
    color: black;
    padding-left: 20px;        /* 線とコンテンツの間隔 */
    border-left: 4px solid #e74c3c; /* 線の太さと色 */
}

.color-box {
    width: 200px;
    height: 150px;
    background-color: rgba(231, 76, 60, 0.8); /* 赤色で半透明 */
    z-index: 10; /* message-headerの上に表示 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 10px; /* 角を丸くする */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.message-description {
    /* width: 100%; 親要素の幅（1000px）に合わせる */
    max-width: 800px; /* message-sectionの幅と同じに設定 */
    margin: 0 auto 40px auto; /* message-section内で中央寄せ */
    text-align: left; /* テキストを左寄せ */
    padding: 0 50px; /* 左右に余白を追加して読みやすさを向上 */
    box-sizing: border-box; /* パディングを含めた幅計算 */
}

.message-description p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
}

.message-signature {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 右寄せ */
    gap: 8px; /* 行間の余白 */
  }
  
  .signature-line {
    display: flex;
    justify-content: flex-end; /* 各行も右寄せ */
    gap: 10px; /* 支店名・代表・名前の間の余白 */
    font-size: 14px;
    opacity: 0.9;
  }
  
/* ========================================
   会社概要セクション
======================================== */
.company-section {
    padding: 27px 0;
}

.company-section-bg {
    background: white;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.header-line {
    width: 60px;
    height: 4px;
    background: #e74c3c;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.header-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.company-info {
    margin: 0 auto;
}

.company-table {
    width: 60%;
    border-collapse: collapse;
    background: white;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
}

.company-table tr {
    border-bottom: 1px solid #eee;
}

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


.company-table td {
    padding: 20px;
    vertical-align: top;
}

.company-table td.label {
    width: 200px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
}

.company-table td.value {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   拠点一覧セクション
======================================== */
.branches-section {
    padding: 27px 0;
}

.branches-list {
    margin: 0 auto;
}

.branch-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: white;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.branch-image {
    flex-shrink: 0;
}

.branch-image img {
    width: 100px;
    height: 70px;
    object-fit: cover;
}

.branch-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.branch-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}


/* ========================================
   50年セクション
======================================== */
.fifty-years-section {
    padding: 33px 0;
    text-align: center;
}

.fifty-years-section-bg {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fifty-years-content h2 {
    font-size: 64px;
    font-weight: 900;
    color: #e74c3c;
    line-height: 1.2;
    letter-spacing: 2px;
}


/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 1024px) {
    .message-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .company-table td.label {
        width: 150px;
        font-size: 12px;
    }

    .company-table {
        display: block;
    }
    .company-table tr {
        display: block;
        margin-bottom: 15px;
        padding: 15px;
    }
    .company-table td {
        display: block;
        padding: 0;
    }
    
    .fifty-years-content h2 {
        font-size: 48px;
    }
}

/* ========================================
   レスポンシブデザイン - 768px以下（タブレット・モバイル）
======================================== */
@media (max-width: 768px) {
    /* Hotjoint Image - タブレット・モバイル */
    .message-header {
        background-size: cover;      /* containだと余白が出るので cover のほうが自然 */
        background-repeat: no-repeat;
        background-position: center top;
        height: 250px;               /* PC 400px → スマホ 250px */
      }

    .hotjoint-image {
        margin: 30px auto 0;
        padding: 0 15px;
    }
    
    .hotjoint-image img {
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .message-header h1 {
        font-size: 48px;
    }
    
    .message-text h2 {
        font-size: 28px;
    }
    
    .message-description p {
        font-size: 14px;
    }

    .message-content {
        text-align: left;
      }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .fifty-years-content h2 {
        font-size: 36px;
    }
    
    .company-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .company-table tr {
        display: block;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
        background: white !important;
        padding: 15px;
        white-space: normal;
    }
    
    .company-table td {
        display: block;
        padding: 8px 0;
        border: none;
    }
    
    .company-table td.label {
        width: auto;
        background: transparent;
        font-size: 12px;
        margin-bottom: 5px;
        border-right: none;
    }
    
    .company-table td.value {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .branch-item {
        flex-direction: column;
        text-align: center;
    }
    
    .branch-image img {
        width: 150px;
        height: 100px;
        margin: 0 auto;
    }
}

/* ========================================
   レスポンシブデザイン - 480px以下（スマートフォン）
======================================== */
@media (max-width: 480px) {
    /* Hotjoint Image - スマートフォン */
    .hotjoint-image {
        margin: 20px auto 0;
        padding: 0 10px;
    }
    
    .hotjoint-image img {
        border-radius: 4px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

    .message-section,
    .company-section,
    .branches-section {
        padding: 0;
    }
    
    .fifty-years-section {
        padding: 10px 0;
    }
    
    .message-header h1 {
        font-size: 36px;
    }
    
    .message-text h2 {
        font-size: 24px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-line {
        width: 40px;
        height: 3px;
    }
    
    .fifty-years-content h2 {
        font-size: 28px;
    }
    
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content,
.company-info,
.branch-item {
    animation: fadeInUp 0.8s ease-out;
}

.branch-info h3 {
    position: relative;       /* 擬似要素を使うために必要 */
    padding-bottom: 10px;     /* 線と文字の間のスペース */
}

.branch-info h3::after {
    content: "";              /* 擬似要素で線を作る */
    position: absolute;
    left: 0;                  /* 左端から */
    bottom: 0;                /* h3の下端に */
    width: 300px;             /* 線の長さを固定 */
    height: 2px;              /* 線の太さ */
    background-color: #000;   /* 線の色：黒 */
}

/* ========================================
   Key Visual
======================================== */
/* .key-visual {
    スタイルをここに追加
} */
