/* ==========================================================================
   page-service.css — サービスページ専用スタイル
   コンテナ: max-width 980px / padding 0 30px (PC) 0 32px (Tablet) 0 16px (SP)
   ========================================================================== */

/* ------------------------------------------------------------------
   共通: セクション内コンテナ
   ------------------------------------------------------------------ */
.ps-service__inner,
.ps-education__inner,
.ps-promotion__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 64px 30px;
    box-sizing: border-box;
}

/* ------------------------------------------------------------------
   共通: セクション見出しブロック
   ------------------------------------------------------------------ */
.ps-section-header {
    margin-bottom: 48px;
    text-align: center;
}

.ps-section-header__en {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C0401A;
    margin: 0 0 4px;
}

.ps-section-header__ja {
    font-size: 36px;
    font-weight: 700;
    color: #C0401A;
    line-height: 1.2;
    margin: 0 0 20px;
}

.ps-section-header__lead {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin: 0;
}

/* ------------------------------------------------------------------
   共通: タグ（科目バッジ）
   ------------------------------------------------------------------ */
.ps-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #C0401A;
    background: rgba(192, 64, 26, 0.08);
    border: 1px solid rgba(192, 64, 26, 0.25);
    border-radius: 3px;
    padding: 2px 8px;
    line-height: 1.6;
}

/* ==========================================================================
   1. Service（概要）セクション
   ========================================================================== */
.ps-service {
    background-color: #f8f6f4;
    border-bottom: 1px solid #e8e8e8;
}

/* ヒーロー見出し */
.ps-service__header {
    text-align: center;
    margin-bottom: 48px;
}

.ps-service__heading {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.05;
    color: #C0401A;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.ps-service__lead {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 2カラムカード */
.ps-service__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ps-service__card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}


.ps-service__card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f0ec;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ps-service__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-service__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
    gap: 12px;
}

.ps-service__card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C0401A;
}

.ps-service__card-heading {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.ps-service__card-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0;
    flex: 1;
}

.ps-service__card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 22px;
    background-color: #C0401A;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.ps-service__card-btn:hover {
    background-color: #a8360d;
}

.ps-service__card-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

/* ==========================================================================
   2. デザイン教育事業
   ========================================================================== */
.ps-education {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

/* 3カラムカード */
.ps-education__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.ps-education__card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ps-education__card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f6f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.ps-education__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-education__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 24px;
    gap: 10px;
}

.ps-education__card-heading {
    font-size: 18px;
    font-weight: 700;
    color: #C0401A;
    margin: 0;
    line-height: 1.3;
}

.ps-education__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ps-education__card-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ps-education__card-badges img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.ps-education__card-text {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 0;
    flex: 1;
}

.ps-education__card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 9px 20px;
    background-color: #C0401A;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.ps-education__card-btn:hover {
    background-color: #a8360d;
}

.ps-education__card-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   DTh検 ボックス
   ------------------------------------------------------------------ */
.ps-dth-box {
    background: #fff7f4;
    border: 2px solid #f0c9b8;
    border-radius: 12px;
    padding: 40px;
    box-sizing: border-box;
}

.ps-dth-box__heading {
    font-size: 24px;
    font-weight: 700;
    color: #C0401A;
    margin: 0 0 28px;
}

.ps-dth-box__inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ps-dth-box__text-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ps-dth-box__text-area p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.ps-dth-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 22px;
    background-color: #C0401A;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.ps-dth-box__btn:hover {
    background-color: #a8360d;
}

.ps-dth-box__btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

.ps-dth-box__img-area {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ps-dth-box__badges {
    display: flex;
    gap: 12px;
}

.ps-dth-box__badges img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.ps-dth-box__illust {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==========================================================================
   3. デザイン啓発事業
   ========================================================================== */
.ps-promotion {
    background: #f8f6f4;
}

/* ------------------------------------------------------------------
   タブナビ
   ------------------------------------------------------------------ */
.ps-tabs {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.ps-tabs__nav {
    display: flex;
}

.ps-tabs__btn {
    flex: 1;
    padding: 14px 12px;
    background: #e0e0e0;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.4;
}


.ps-tabs__btn.is-active {
    background: #C0401A;
    color: #fff;
}

/* ------------------------------------------------------------------
   タブパネル
   ------------------------------------------------------------------ */
.ps-tabs__body {
    background: #fff;
}

.ps-tabs__panel {
    padding: 40px 40px 48px;
    box-sizing: border-box;
}

.ps-tabs__panel[hidden] {
    display: none;
}

.ps-tabs__lead {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.85;
    color: #333;
    margin: 0 0 32px;
}

.ps-tabs__case {
    margin-bottom: 40px;
}

.ps-tabs__case:last-child {
    margin-bottom: 0;
}

.ps-tabs__case-name {
    font-size: 20px;
    font-weight: 700;
    color: #8B0000;
    margin: 0 0 12px;
}

.ps-tabs__case-img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 0 10px;
    border-radius: 6px;
}

.ps-tabs__case-link {
    font-size: 13px;
    max-width: 600px;
    margin: 0 0 16px;
}

.ps-tabs__case-link a {
    color: #2F6FAD;
    text-decoration: underline;
}

.ps-tabs__case-text {
    font-size: 15px;
    line-height: 1.85;
    color: #444;
    margin: 0;
}

.ps-tabs__case-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 22px;
    background-color: #C0401A;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ps-tabs__case-btn:hover {
    background-color: #a8360d;
}

.ps-tabs__case-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
}

/* ==========================================================================
   レスポンシブ: タブレット（〜1024px）
   ========================================================================== */
@media (max-width: 1024px) {
    .ps-service__inner,
    .ps-education__inner,
    .ps-promotion__inner {
        padding: 56px 32px;
    }
}

/* ==========================================================================
   レスポンシブ: モバイル（〜768px）
   ========================================================================== */
@media (max-width: 768px) {

    /* インナー */
    .ps-service__inner,
    .ps-education__inner,
    .ps-promotion__inner {
        padding: 48px 16px;
    }

    /* セクション見出し */
    .ps-section-header {
        margin-bottom: 32px;
    }

    .ps-section-header__ja {
        font-size: 26px;
    }

    .ps-section-header__lead {
        font-size: 14px;
    }

    /* ── Service ヒーロー */
    .ps-service__heading {
        font-size: 42px;
    }

    .ps-service__cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ps-service__card-img-wrap {
        aspect-ratio: 16 / 8;
    }

    /* ── 教育カード: 1カラム */
    .ps-education__cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ps-education__card-img-wrap {
        aspect-ratio: 2 / 1;
        padding: 20px;
    }

    .ps-education__card-heading {
        font-size: 17px;
    }

    /* DTh検ボックス */
    .ps-dth-box {
        padding: 24px 20px;
    }

    .ps-dth-box__inner {
        flex-direction: column;
        gap: 24px;
    }

    .ps-dth-box__img-area {
        width: 100%;
        align-items: center;
    }

    .ps-dth-box__illust {
        max-width: 200px;
    }

    /* ── タブ */
    .ps-tabs__nav {
        flex-wrap: wrap;
    }

    .ps-tabs__btn {
        flex: 0 0 50%;
        font-size: 13px;
        padding: 12px 8px;
    }

    .ps-tabs__panel {
        padding: 28px 20px 36px;
    }

    .ps-tabs__lead {
        font-size: 14px;
    }

    .ps-tabs__case-name {
        font-size: 17px;
    }

    .ps-tabs__case-text {
        font-size: 14px;
    }
}
