@charset "UTF-8";

/* ==================================================
   ページヘッダー (下層共通化を想定)
================================================== */
.c-page-header {
    text-align: center;
    padding: 120px 0 60px;
    background-color: #f9f9f9;
    margin-bottom: 60px;
}
.c-page-header__en {
    display: block;
    font-family: var(--font-serif);
    font-size: 16px;
    color: #f8b500;
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.c-page-header__ja {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--color-main);
    letter-spacing: 0.05em;
    margin: 0;
}

/* ==================================================
   汎用見出し (縦棒)
================================================== */
.c-title-line {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-main);
    border-left: 6px solid #f8b500;
    padding-left: 15px;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* ==================================================
   汎用テーブル (表組)
================================================== */
.c-table-wrap {
    border-top: 2px solid var(--color-main);
}
.c-table {
    width: 100%;
    border-collapse: collapse;
}
.c-table th,
.c-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
    line-height: 1.8;
}
.c-table th {
    width: 25%;
    color: var(--color-main);
    font-weight: bold;
    background-color: #fcfcfc;
}
.c-table td {
    width: 75%;
}

/* ==================================================
   レイアウト: 2カラム装飾エリア (コンテンツ1,2用)
================================================== */
.p-about-lead-sec {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* ★修正: PC版で背景を画像より高く表示するため、上下に余白を設ける */
    padding: 80px 0; 
    margin-bottom: 20px;
}
.p-about-lead__inner {
    display: flex;
    align-items: center;
    gap: 6%;
    position: relative;
    z-index: 2;
}
/* 左右逆転用 */
.p-about-lead__inner--reverse {
    flex-direction: row-reverse;
}
.p-about-lead__text {
    width: 47%;
}
.p-about-lead__desc {
    font-size: 15px;
    line-height: 1.8;
}
.p-about-lead__img {
    width: 47%;
}
.p-about-lead__img img {
    width: 100%;
    aspect-ratio: 2 / 1; 
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 背景のキーカラー装飾 */
.p-about-lead__bg {
    position: absolute;
    /* ★修正: セクションのパディングを含む最上部?最下部まで100%埋め尽くす */
    top: 0;
    bottom: 0;
    width: 45%;
    background-color: var(--color-main);
    z-index: 1;
}
.p-about-lead__bg--right {
    right: 0;
}
.p-about-lead__bg--left {
    left: 0;
}

/* 黒枠リスト (事業所一覧) */
.p-about-bases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}
.p-about-bases li {
    font-size: 13px;
    font-weight: bold;
    padding: 8px 15px;
    border: 1px solid #333;
    border-radius: 4px;
}

.u-mt-30 { margin-top: 30px !important; }
.u-mt-100 { margin-top: 100px !important; }

/* ==================================================
   スマホ用レスポンシブ (max-width: 768px)
================================================== */
@media screen and (max-width: 768px) {
    .c-page-header {
        padding: 100px 0 40px;
        margin-bottom: 40px;
    }
    .c-page-header__ja {
        font-size: 24px;
    }
    .c-title-line {
        font-size: 22px;
    }

    /* ★修正: SP版でのセクションパディング調整 */
    .p-about-lead-sec {
        padding: 40px 0 20px;
    }

    .p-about-lead__inner,
    .p-about-lead__inner--reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    /* HTML構造に依存せずCSSで順番を固定 */
    .p-about-lead__inner { display: flex; flex-direction: column; }
    .p-about-lead__text { display: contents; }
    .p-about-lead__img { order: 1; width: 100%; position: relative; z-index: 2; margin-bottom: 15px; }
    .c-title-line { order: 2; width: 100%; box-sizing: border-box; margin-bottom: 15px; }
    .p-about-lead__desc { order: 3; width: 100%; box-sizing: border-box; }
    .p-about-bases, .u-mt-30 { order: 4; width: 100%; box-sizing: border-box; margin-top: 15px !important; }

    /* ★修正: 背景を画像の上部のみに敷き、下部をはみ出させる (タイトルには絶対重ならない) */
    .p-about-lead__bg {
        top: 0;
        bottom: auto;
        /* セクション上部余白(40px) ＋ 画像の半分強(30vw) をカバー */
        height: calc(40px + 30vw); 
        width: 85%;
    }
    .p-about-lead__bg--right { right: 0; left: auto; }
    .p-about-lead__bg--left { left: 0; right: auto; }

    .u-mt-100 { margin-top: 60px !important; }

    /* テーブルを縦積みに変更 */
    .c-table th,
    .c-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    .c-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .c-table td {
        padding-top: 5px;
        margin-bottom: 10px;
    }
}