/* Company Page Specific Styles */

/* Page Header */
.page-header {
    margin-top: 0;
    height: 450px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-content {
    position: absolute;
    top: 50%;
    left: 200px;
    transform: translateY(-50%);
    z-index: 2;
    text-align: left;
}

.page-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 700;
    color: #522601;
    margin: 0;
}

/* Philosophy Section */
.philosophy {
    position: relative;
    padding: 100px 0;
    /* ここに背景を直指定 */
    background-color: #FFF8F4;
    background-image: url("img/bg-philosophy.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;   /* ← 固定を明示的にオフ */
}


.philosophy-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

.philosophy-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 40px;
    font-weight: 700;
    color: #522601;
    line-height: 1.2;
    margin: 0 0 40px 0;
}

.philosophy-text {
    font-size: 24px;
    line-height: 1.87;
    color: #522601;
    margin: 0;
}

/* Message Section */
.message {
    background: #FFF8F4;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background-image: url('img/bg_texture.png');
    background-repeat: repeat; /* 背景画像を繰り返し表示 */
    background-size: auto; /* 元のサイズで繰り返し */
    background-position: top left;
}

.message-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg_texture.png');
    background-repeat: repeat; /* 背景画像を繰り返し表示 */
    background-size: auto; /* 元のサイズで繰り返し */
    background-position: top left;
}

.message-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    text-align: center; /* ボタンを真ん中配置 */
}

.message-wrapper {
    display: block; /* 縦積みを維持 */
}

.message-image {
    width: 100%;
    max-width: 600px;       /* PC時の最大幅を制限 */
    margin-left: 0;
    margin-right: auto;     /* 左寄せ */
}

.message-img {
    display: block;
    width: 100%;
    height: auto;            /* ← アスペクト比を保つ重要ポイント */
    object-fit: contain;      /* 画像の左右が切れないようにcontainに変更 */
    border-radius: 0;        /* 円形でなければ解除 */
}

.message-text {
    max-width: 583px;
    margin-left: auto;       /* 右寄せ */
    margin-right: 60px;
    text-align: left;
    color: #522601;
    font-size: 18px;
    line-height: 1.8;
}

/* レスポンシブ対応（900px以下） */
@media (max-width: 900px) {
    .message-image {
        max-width: 100%;     /* 90%から100%に変更して画像を大きく */
        margin: 0 auto;
    }

    .message-text {
        max-width: 90%;
        margin: 40px auto 0;
    }
}

/* より小さな画面での調整（768px以下） */
@media (max-width: 768px) {
    .message-image {
        max-width: 100%;     /* 画面幅いっぱいに表示 */
    }
}

.message-cta {
    background: linear-gradient(0deg, rgba(255, 5, 5, 1) 0%, rgba(247, 132, 0, 1) 100%);
    color: #F7F4F0;
    text-decoration: none;
    padding: 20px 30px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block; /* inline-flexからinline-blockに変更 */
    margin: 60px auto 0; /* autoで真ん中配置 */
    transition: transform 0.3s ease;
    text-align: center; /* 真ん中配置 */
}

.message-cta:hover {
    transform: translateY(-2px);
}

/* Company Info Section */
.company-info {
    background-image: url(img/bg-company.png);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.company-info-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.company-info-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-info-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.company-table-wrapper {
    background: rgba(255, 255, 255, 0.73);
    border-radius: 12px;
    padding: 32px 100px;
    margin-top: 60px;
    max-width: 991px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.table-label {
    width: 120px;
    font-size: 16px;
    font-weight: 500;
    color: #522601;
    line-height: 1.75;
}

.table-value {
    font-size: 16px;
    font-weight: 400;
    color: #522601;
    line-height: 1.75;
    padding-left: 20px;
}

/* Active Navigation */
.nav-link.active {
    color: #8F4100;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .philosophy-card {
        padding: 40px 30px;
    }
    
    .philosophy-title {
        font-size: 36px;
    }
    
    .philosophy-text {
        font-size: 20px;
    }
    
    .message-wrapper {
        gap: 40px;
    }
    
    .message-img {
        width: 400px;
        height: 400px;
    }
    
    .company-table-wrapper {
        padding: 24px 60px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 400px;
    }
    
    .page-header-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .philosophy-card {
        padding: 30px 20px;
    }
    
    .philosophy-title {
        text-align: left;
        font-size: 28px;
    }
    
    .philosophy-text {
        font-size: 18px;
    }
    
    .message-wrapper {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .message-img {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .message-text p {
        font-size: 16px;
    }
    
    .company-table-wrapper {
        padding: 20px 30px;
    }
    
    .table-label {
        width: 100px;
        font-size: 16px;
    }
    
    .table-value {
        font-size: 16px;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .philosophy-card {
        padding: 20px 15px;
    }
    
    .philosophy-title {
        font-size: 24px;
    }
    
    .philosophy-text {
        font-size: 16px;
    }
    
    .message-img {
        width: 250px;
        height: 250px;
    }
    
    .message-text p {
        font-size: 16px;
    }
    
    .company-table-wrapper {
        padding: 15px 20px;
    }
    
    .table-label {
        width: 80px;
        font-size: 16px;
    }
    
    .table-value {
        font-size: 16px;
        padding-left: 10px;
    }
    
    .company-table td {
        padding: 12px 0;
    }
}
