/* ==============================================
   COMPANY.CSS - 会社概要セクションスタイル
   ============================================== */

/* ===== 会社概要セクションのスタイル ===== */
.company-section {
    padding: 4rem 2rem 6rem 2rem;
    background: linear-gradient(135deg, #f5f0e8 0%, #faf7f2 100%);
    text-align: center;
}

.company-overview {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.company-section .company-image-container {
    flex: 0 0 auto ;
    max-width: 800px ;
    width: 100% ;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-section .company-image-container:hover {
    transform: translateY(-2px);
}

.company-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.company-section .company-image-container:hover .company-image {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.company-info {
    flex: 1;
    text-align: left;
    min-width: 0; /* フレックスアイテムが縮むように設定 */
}

.company-name {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-family: 'Sawarabi Gothic', sans-serif;
}

.company-details p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.company-more-btn-container {
    margin-top: 2rem;
}

.company-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0077BE, #48CAE4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
}

.company-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 190, 0.4);
}

.company-more-btn svg {
    transition: transform 0.3s ease;
}

.company-more-btn:hover svg {
    transform: translateX(2px);
}

/* ===== 会社詳細モーダルのスタイル ===== */
.detail-column-company {
    background: #fafbfc;
    position: relative;
    overflow: hidden;
}

.detail-column-company::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at center, rgba(0, 119, 190, 0.03) 0%, transparent 70%);
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 0;
}

.detail-column-company::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(72, 202, 228, 0.04) 0%, transparent 60%);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.detail-column-company .detail-content {
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.detail-column-company h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    position: relative;
    padding: 0;
    font-family: 'Sawarabi Gothic', sans-serif;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.detail-column-company h3::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: #0077BE;
    border-radius: 0;
}

/* 社長メッセージ */
.president-message {
    margin-bottom: 5rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    border-left: 4px solid #0077BE;
    padding-left: 2rem;
}

.president-message::before {
    display: none;
}

.president-message h3 {
    background: transparent;
    box-shadow: none;
    margin-bottom: 2.5rem;
    color: #0077BE;
    font-weight: 700;
    text-align: left;
    padding: 0;
    font-size: 1.6rem;
    line-height: 1.4;
}

.president-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 1rem;
}

.president-content {
    position: relative;
    z-index: 2;
}

.president-content p {
    margin-bottom: 1.8rem;
    line-height: 1.9;
    color: #2d3748;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.president-content p:last-of-type:not(.president-signature) {
    margin-bottom: 3rem;
}

.president-photos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.president-photos::before {
    display: none; /* ボーダーを削除 */
}

.president-photo {
    width: 350px; /* 幅を350pxに設定 */
    max-width: 350px; /* 最大幅の制限 */
    height: auto; /* 縦横比を保持 */
    object-fit: cover;
    object-position: center;
    border-radius: 8px; /* 円形から角丸長方形に変更 */
    box-shadow: 0 4px 20px rgba(0, 119, 190, 0.15);
    transition: all 0.3s ease;
    filter: grayscale(0%) contrast(1.05);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.6); /* ボーダーを細く */
}

.president-photo::before {
    display: none; /* グラデーション効果を削除 */
}

.president-photo:hover {
    transform: translateY(-2px); /* 縦方向の軽い移動に変更 */
    box-shadow: 0 8px 30px rgba(0, 119, 190, 0.25);
    filter: grayscale(0%) contrast(1.1);
}

.president-signature {
    text-align: right;
    font-weight: 500;
    color: #2d3748;
    margin-top: 2rem;
    font-size: 1rem;
    position: relative;
    padding-right: 0;
    font-style: normal;
    letter-spacing: 0.05em;
}

.president-signature::before {
    display: none;
}

/* 社是・経営理念 */
.company-philosophy {
    margin-bottom: 5rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-left: 4px solid #0077BE;
    padding-left: 2rem;
}

.shaze-section {
    background: rgba(248, 250, 252, 0.6);
    border-radius: 0;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-left: none;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.shaze-section::before {
    content: 'CORPORATE PRINCIPLE';
    position: absolute;
    top: 0.5rem;
    left: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shaze-section h4 {
    font-size: 3rem;
    font-weight: 300;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Times New Roman', serif;
    letter-spacing: -0.02em;
}

.shaze-section h4:first-of-type {
    font-size: 4rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    margin-bottom: 2rem;
}

.philosophy-content {
    background: transparent;
    border-radius: 0;
    padding: 2rem 0;
    border-left: none;
    margin-top: 2rem;
}

/* 会社詳細モーダル内での表示確保 */
.detail-column-company .philosophy-content {
    opacity: 1 !important;
    width: 100% !important;
    flex-shrink: initial !important;
}

.philosophy-content::before {
    content: 'MANAGEMENT PHILOSOPHY';
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}

.philosophy-content {
    text-align: left;
}

.philosophy-content p {
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 1.45rem; /* 1.208rem × 1.20 = 1.45rem */
    letter-spacing: 0.01em;
    position: relative;
    padding-left: 0;
}

/* 理念番号のスタイリング */
.philosophy-content p {
    display: flex;
    align-items: center; /* 中央揃えに変更 */
    gap: 1.5rem;
    text-align: left;
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: rgba(248, 250, 252, 0.8); /* マット背景 */
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: visible;
    min-height: 80px; /* 最小高さを設定 */
}

/* 本文エリアの左寄せ確保 */
.philosophy-content p {
    justify-content: flex-start; /* Flexbox要素全体を左寄せ */
}

/* 本文テキスト部分（理念番号バッジ以外）の左寄せ */
.philosophy-content p {
    flex-grow: 1;
    text-align: left !important; /* 確実な左寄せ */
}

/* 理念番号バッジ後の本文エリア調整 */
.philosophy-content p::after {
    content: none;
}

.philosophy-content p::before {
    content: attr(data-number);
    display: inline-block;
    background: linear-gradient(135deg, #0077BE 0%, #48CAE4 100%);
    color: white;
    font-weight: 600;
    font-size: 1.2rem; /* 0.8rem × 1.5 = 1.2rem */
    padding: 0.45rem 1.2rem; /* 0.3rem × 1.5 = 0.45rem, 0.8rem × 1.5 = 1.2rem */
    border-radius: 30px; /* 20px × 1.5 = 30px */
    letter-spacing: 0.05em;
    box-shadow: 0 3px 12px rgba(0, 119, 190, 0.2); /* 2px × 1.5 = 3px, 8px × 1.5 = 12px */
    min-width: 90px; /* 60px × 1.5 = 90px */
    text-align: center;
    flex-shrink: 0;
    margin-top: 0; /* 中央揃えのためマージンを削除 */
    align-self: center; /* バッジ自体も中央揃え */
}

.philosophy-content p:nth-child(1)::before {
    content: '理念.1';
}

.philosophy-content p:nth-child(2)::before {
    content: '理念.2';
}

.philosophy-content p:nth-child(3)::before {
    content: '理念.3';
}

/* 沿革 */
.company-history {
    margin-bottom: 5rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-left: 4px solid #0077BE;
    padding-left: 2rem;
    position: relative;
}

.company-history::before {
    content: 'COMPANY HISTORY';
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.history-timeline {
    margin-top: 2rem;
    position: relative;
    padding-left: 0;
}

.history-timeline::before {
    display: none;
}

.history-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    margin-left: 0;
    transition: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding-bottom: 2rem;
}

.history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.history-item::before {
    display: none;
}

.history-item:hover {
    transform: none;
    box-shadow: none;
}

.history-year {
    font-weight: 600;
    color: #0077BE;
    min-width: auto;
    margin-right: 0;
    font-size: 0.95rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-align: right;
    padding-right: 1rem;
    border-right: 2px solid rgba(0, 119, 190, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0.2rem;
}

.history-content {
    flex: 1;
    color: #2d3748;
    line-height: 1.8;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

/* 会社情報テーブル */
.company-info-detail {
    margin-bottom: 5rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-left: 4px solid #0077BE;
    padding-left: 2rem;
    position: relative;
}

.company-info-detail::before {
    content: 'COMPANY INFORMATION';
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.company-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.company-info-table td {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    transition: none;
    background: transparent;
}

.company-info-table tr:hover td {
    background-color: transparent;
}

.company-info-table td:first-child {
    background: transparent;
    font-weight: 500;
    color: #0077BE;
    width: 140px;
    border-right: none;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    vertical-align: top;
    padding-right: 2rem;
}

.company-info-table td:last-child {
    color: #2d3748;
    font-weight: 400;
    line-height: 1.7;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.company-info-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

/* 店舗情報 */
.office-info {
    margin-bottom: 4rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border-left: 4px solid #0077BE;
    padding-left: 2rem;
    position: relative;
}

.office-info::before {
    content: 'OFFICE LOCATIONS';
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.office-areas {
    margin-top: 2rem;
}

.office-area {
    margin-bottom: 3rem;
}

.office-area h4 {
    font-size: 1.32rem; /* 1.2rem × 1.1 = 1.32rem（10％拡大） */
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    font-family: 'Sawarabi Gothic', sans-serif;
    font-weight: 600;
    position: relative;
    letter-spacing: -0.01em;
}

.office-area h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 2px;
    background: #0077BE;
}

.office-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.office-item {
    background: rgba(248, 250, 252, 0.3);
    padding: 1.5rem 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.office-item:last-child {
    border-bottom: none;
}

.office-item:hover {
    transform: none;
    box-shadow: none;
}

.office-name {
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
    background: #1e3a8a; /* デフォルト紺色の背景 */
    padding: 0.6rem 1rem;
    border-radius: 4px;
    display: block; /* inline-blockからblockに変更して幅を100%に */
    width: 100%; /* 親要素の幅まで拡張 */
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

/* 関東エリア - メインブランドカラーの深い紺色 */
.office-area:nth-child(1) .office-name {
    background: #0077BE; /* サイトのメインブルー */
    box-shadow: 0 2px 8px rgba(0, 119, 190, 0.25);
}

/* 関西エリア - 濃い藍色 */
.office-area:nth-child(2) .office-name {
    background: #1e40af; /* 深い藍色 */
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

/* 中国エリア - ダークネイビー */
.office-area:nth-child(3) .office-name {
    background: #1e3a8a; /* ダークネイビー */
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

/* 九州エリア - 深いスレートブルー */
.office-area:nth-child(4) .office-name {
    background: #1e293b; /* 深いスレートブルー */
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.25);
}

.office-address {
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ==============================================
   レスポンシブ対応 - タブレット・モバイル
   ============================================== */

@media (max-width: 1023px) {
    .company-overview {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .company-info {
        text-align: center;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    /* 社長メッセージのモバイル対応 */
    .president-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .president-photos {
        flex-direction: row;
        justify-content: center;
        height: auto;
    }
    
    .president-photo {
        width: 280px; /* モバイルでの幅調整 */
        max-width: 100%; /* レスポンシブ対応 */
        height: auto; /* 縦横比を保持 */
    }
    
    .president-message {
        padding: 2rem 1.5rem;
    }
    
    .president-message::before {
        font-size: 4rem;
        top: -5px;
        left: 15px;
    }
    
    /* 沿革のモバイル対応 */
    .history-timeline {
        padding-left: 1.5rem;
    }
    
    .history-timeline::before {
        left: 10px;
    }
    
    .history-item {
        flex-direction: column;
        margin-left: 0.5rem;
        padding: 1.2rem;
    }
    
    .history-item::before {
        left: -2rem;
    }
    
    .history-year {
        margin-bottom: 0.8rem;
        margin-right: 0;
        min-width: auto;
    }
    
    /* テーブルのモバイル対応 */
    .company-info-table {
        font-size: 0.9rem;
    }
    
    .company-info-table td {
        padding: 1rem;
    }
    
    .company-info-table td:first-child {
        width: 100px;
        font-size: 0.85rem;
    }
    
    .office-list {
        grid-template-columns: 1fr;
    }
    
    .office-item {
        padding: 1.5rem;
    }
    
    .company-section {
        padding: 3rem 1rem 4rem 1rem;
    }
    
    .company-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .detail-column-company .detail-content {
        padding: 2rem 1.5rem;
    }
    
    .detail-column-company h3 {
        font-size: 1.5rem;
        padding: 0.8rem 0 1.2rem 0;
    }
    
    /* カードのモバイル調整 */
    .president-message,
    .company-philosophy,
    .company-history,
    .company-info-detail,
    .office-info {
        margin-bottom: 3rem;
        padding: 2rem 1.5rem;
    }
} 