@charset "UTF-8";
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-brand:        #eb6e8b;
    --color-brand-light:  #f9d4df;
    --color-brand-pale:   #fef5f7;

    --color-infant1-main: #E87A90;
    --color-infant1-bg:   #F4F8FD;

    /*
    --color-infant3-main: #7CA1D2;
    --color-infant3-bg:   #F4F8FD;
    */

    --color-nursery-main: #ECA361;
    --color-nursery-bg:   #FDF8F3;
    --color-bunka-main:   #6CB98E;
    --color-bunka-bg:     #F0F8F4;

    --color-text:         #4a3f39;
    --color-text-sub:     #9a8880;
    --color-bg:           #faf9f8;
    --color-card:         #ffffff;

    --font-body:          'Noto Sans JP', sans-serif;
    --font-heading:       'Zen Maru Gothic', sans-serif;

    --radius-card:        18px;
    --radius-pill:        999px;
    --shadow:             0 4px 20px rgba(74,63,57,0.09);
    --shadow-hover:       0 10px 36px rgba(74,63,57,0.15);

    --gap: 16px;
}

/* ===== BASE ===== */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
}

/* ===== HERO ===== */
.dec-01 {
    background-image: url('img/img-bg01.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: 600px;
    width: 100%;
    position: relative;
}
@media screen and (max-width:767px) {
    .dec-01 {
        background-image: url('img/img-bg-sp.png');
    }
}
.dec-02 {
    background: #fff;
    padding: 10px 20px;
}
@media screen and (max-width:767px) {
    .dec-02 {
        text-align: center;
    }
}

@media screen and (max-width:767px) {
    .dec-03 {
        display: none;
    }
}
.dec-04 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.dec-04 img {
    width: 400px;
}
@media (max-width: 1200px) {
    .dec-04 img {
        width: calc(400 / 1200 * 100vw);
    }
}
.dec-05 {
    position: absolute;
    top: 60%;
    left: 80%;
    transform: translate(-50%, -50%);
}
.dec-05 img {
    width: 250px;
}
@media (max-width: 1200px) {
    .dec-05 img {
        width: calc(250 / 1200 * 100vw);
    }
}
.dec-06 {
    display: none;
}
@media screen and (max-width:767px) {
    .dec-06 {
        margin-top: 3.5rem;
        padding-top: 1.5rem;
        display: block;
        text-align: center;

    }
}

/* ===== NAV TAGS ===== */
.dept-nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 48px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 2px solid var(--btn-color);
    color: var(--btn-color);
    border-radius: var(--radius-pill);
    padding: 9px 22px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}
.tag-btn::before { content: '▼'; font-size: 0.6em; opacity: 0.7; }

.btn-infant1 { --btn-color: var(--color-infant1-main); }
.btn-infant3 { --btn-color: var(--color-infant3-main); }
.btn-nursery { --btn-color: var(--color-nursery-main); }
.btn-bunka   { --btn-color: var(--color-bunka-main); }

/* ===== MAIN WRAPPER ===== */
.page-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ===== SECTION ===== */
.dept-section {
    scroll-margin-top: 32px;
    margin-bottom: 72px;
}

/* テーマ設定 */
.theme-infant1 { --dept-main: var(--color-infant1-main); --dept-bg: var(--color-infant1-bg); }
.theme-infant3 { --dept-main: var(--color-infant3-main); --dept-bg: var(--color-infant3-bg); }
.theme-nursery { --dept-main: var(--color-nursery-main); --dept-bg: var(--color-nursery-bg); }
.theme-bunka   { --dept-main: var(--color-bunka-main);   --dept-bg: var(--color-bunka-bg); }

/* セクションヘッダー */
.dept-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.dept-header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--dept-main), transparent);
    border-radius: 2px;
}
.dept-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dept-main);
    white-space: nowrap;
    vertical-align: middle;

}
.dept-title-dot {
    width: 10px; height: 10px;
    background: var(--dept-main);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== GRID : PC=4col / SP=2col ===== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* PC: 4カラム */
    gap: var(--gap);
}

@media (max-width: 1024px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);  /* タブレット: 2カラム */
    }
}

@media (max-width: 600px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);  /* モバイル: 2カラム */
        gap: 10px;
    }
}

/* ===== CARD ===== */
.teacher-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--dept-main);
}

/* 写真エリア */
.card-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: var(--dept-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-sub);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったまま、枠内に全体を収める */
}

/* カード本体 */
.card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 学科バッジ */
.dept-badge {
    display: inline-block;
    background: var(--dept-main);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
    align-self: flex-start;
}

/* 先生名 */
.teacher-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    border-bottom: 2px dotted #7CA1D2;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.teacher-name .role {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-sub);
    margin-left: 6px;
}

/* ラベル */
.card-label {
    color: var(--dept-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    margin-top: 12px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-label::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--dept-main);
    border-radius: 50%;
}

/* 担当授業 */
.class-list {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}
.class-list li {
    font-size: 0.82rem;
    padding: 1px 0 1px 12px;
    position: relative;
    color: var(--color-text);
}
.class-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--dept-main);
}

/* 先生情報 */
.personal-info {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--color-text);
}
.personal-info strong {
    color: var(--color-text-sub);
    font-weight: 500;
}

/* メッセージ吹き出し */
.message-box {
    position: relative;
    background: var(--dept-bg);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.75;
    margin-top: 14px;
    color: var(--color-text);
}
.message-box::before {
    content: '';
    position: absolute;
    top: -10px; left: 20px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 10px solid var(--dept-bg);
}

/* ===== モバイル追加調整 ===== */
@media (max-width: 600px) {
    .hero { min-height: 56vh; }
    .logo { font-size: 1.2rem; }
    .hero-chip { display: none; }
    .hero-title { font-size: 1.8rem; }

    .page-main { padding: 0 12px 60px; }
    .dept-nav { padding: 24px 12px 36px; gap: 8px; }
    .tag-btn { font-size: 0.78rem; padding: 7px 14px; }

    .card-body { padding: 10px 12px 14px; }
    .teacher-name { font-size: 1.05rem; }
    .dept-title { font-size: 1rem; }
}

