/* =========================================================
   teachers.css — 講師の方へページ専用
   ========================================================= */

.teacher-page {
    background: #fff;
    color: #2c231f;
    line-height: 1.7;
}

.teacher-page * {
    box-sizing: border-box;
}

.teacher-container {
    width: min(1180px,calc(100% - 48px));
    margin-inline: auto;
}

.teacher-header {
    height: 72px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(55,35,25,.05);
}

.teacher-header-inner {
    width: min(1180px,calc(100% - 32px));
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.teacher-brand img {
    width: 148px;
    height: auto;
    display: block;
}

.teacher-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.teacher-nav a {
    position: relative;
    padding: 25px 0 22px;
}

.teacher-nav a:hover, .teacher-nav a.is-current {
    color: #ef4874;
}

.teacher-nav a.is-current:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 2px;
    background: #ef4874;
    border-radius: 2px;
}

.teacher-favorite {
    width: 62px;
    text-align: center;
    color: #ef4874;
    font-size: 27px;
    line-height: 1;
    flex: 0 0 auto;
}

.teacher-favorite small {
    display: block;
    color: #333;
    font-size: 9px;
    margin-top: 4px;
}

.teacher-menu {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
}

.teacher-breadcrumb-wrap {
    background: #faf9f8;
}

.teacher-breadcrumb {
    height: 34px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: #777;
}

.teacher-hero {
    position: relative;
    min-height: 355px;
    overflow: hidden;
    background: #fff;
}

.teacher-hero-photo {
    position: absolute;
    right: 0;
    top: 0;
    width: 53%;
    height: 100%;
    background-image: url("../images/hero-piano.jpg");
    background-size: cover;
    background-position: 72% center;
    filter: saturate(.8) brightness(1.07);
}

.teacher-hero-photo:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,.6) 13%,rgba(255,255,255,.03) 55%);
}

.teacher-hero-soft {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 35%,rgba(255,210,224,.34),transparent 42%),linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.96) 49%,rgba(255,255,255,0) 72%);
}

.teacher-hero-inner {
    position: relative;
    min-height: 355px;
    display: flex;
    align-items: center;
}

.teacher-hero-copy {
    width: 61%;
    padding: 30px 0 28px;
}

.teacher-kicker {
    margin: 0 0 4px;
    color: #f33f70;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .05em;
}

.teacher-hero h1 {
    font-family: "Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;
    font-size: 49px;
    line-height: 1.15;
    margin: 8px 0 15px;
    letter-spacing: .02em;
    font-weight: 900;
}

.teacher-hero h1 span {
    color: #f43d70;
    font-size: 1.22em;
}

.teacher-hero-lead {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.9;
    margin: 0 0 17px;
}

.teacher-hero-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.teacher-hero-pills span {
    border: 1.5px solid #ff5a82;
    color: #f43d70;
    padding: 6px 22px;
    border-radius: 25px;
    background: rgba(255,255,255,.87);
    font-size: 12px;
    font-weight: 800;
}

.teacher-hero-message {
    position: absolute;
    left: 52%;
    top: 86px;
    transform: rotate(-8deg);
    font-family: "Yu Mincho",serif;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 700;
    letter-spacing: .1em;
    text-align: center;
}

.teacher-free-badge {
    position: absolute;
    right: 150px;
    top: 45px;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    background: linear-gradient(145deg,#ff6a96,#f23a70);
    color: #fff;
    border: 6px solid #fff;
    box-shadow: 0 8px 25px rgba(237,63,111,.23);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
}

.teacher-free-badge small {
    font-size: 11px;
}

.teacher-free-badge strong {
    font-size: 36px;
    line-height: 1.1;
}

.teacher-free-badge span {
    font-size: 12px;
    font-weight: 700;
}

.teacher-merit {
    padding: 40px 0 40px;
    background: linear-gradient(180deg,#fff9fb 0%,#fff 100%);
}

.teacher-section-title {
    text-align: center;
    margin: 0 0 30px;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: .02em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.teacher-section-title span, .teacher-section-title b {
    color: #f33f70;
}

.teacher-section-title b {
    font-size: 52px;
    line-height: .7;
}

.teacher-section-title.dark span {
    color: inherit;
}

.teacher-merit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 20px;
}

.teacher-merit-card {
    min-height: 112px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(125,71,87,.08);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.teacher-merit-card h3 {
    color: #f43d70;
    font-size: 20px;
    margin: 0 0 4px;
}

.teacher-merit-card p {
    font-size: 16px;
    margin: 0;
    line-height: 1.75;
}

.teacher-merit-icon {
    width: 88px;
    min-width: 88px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4527d;
    font-weight: 900;
}

.yen-icon {
    width: 68px;
    min-width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f4527d;
    color: #fff;
    font-size: 44px;
    font-family: Arial;
}

.heart-icon {
    font-size: 68px;
    line-height: 1;
}

.screen-icon {
    font-size: 62px;
    line-height: 1;
}

.people-icon {
    position: relative;
    height: 72px;
}

.people-icon i {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #f15a84;
    border-radius: 50%;
}

.people-icon i:after {
    content: "";
    position: absolute;
    width: 44px;
    height: 24px;
    border-radius: 30px 30px 4px 4px;
    background: #f15a84;
    left: 50%;
    transform: translateX(-50%);
    top: 24px;
}

.people-icon i:nth-child(1) {
    left: 4px;
    top: 20px;
    transform: scale(.75);
}

.people-icon i:nth-child(2) {
    left: 29px;
    top: 8px;
}

.people-icon i:nth-child(3) {
    right: 2px;
    top: 20px;
    transform: scale(.75);
}

.teacher-steps {
    padding: 22px 0;
    background: #fff;
}

.teacher-step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.teacher-step-card {
    position: relative;
    min-height: 130px;
    border-radius: 14px;
    background: linear-gradient(135deg,#fff,#fff7f9);
    box-shadow: 0 6px 20px rgba(116,73,83,.08);
    padding: 16px 22px 16px 112px;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.teacher-step-num {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(145deg,#ff608a,#f43b6d);
    color: #fff;
    text-align: center;
    font-size: 23px;
    line-height: 1.05;
    padding-top: 10px;
    font-weight: 700;
}

.teacher-step-num small {
    display: block;
    font-size: 9px;
    margin-bottom: 2px;
}

.teacher-step-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.teacher-step-card h3 {
    color: #f43d70;
    margin: 0 0 4px;
    font-size: 20px;
}

.teacher-step-card p {
    font-size: 16px;
    margin: 0;
    line-height: 1.75;
}

.teacher-voices {
    padding: 18px 0 20px;
    background: linear-gradient(90deg,#fffaf7,#fff,#fffaf7);
}

.teacher-sub-title {
    text-align: center;
    color: #f33f70;
    font-size: 20px;
    margin: 0 0 14px;
}

.teacher-voice-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.teacher-voice-card {
    background: #fff;
    border: 1px solid #f5e6e1;
    border-radius: 13px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-height: 170px;
    box-shadow: 0 5px 18px rgba(110,74,64,.05);
}

.teacher-voice-card img {
    width: 90px;
    object-fit: contain;
    object-position: center bottom;
}

.teacher-voice-card p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 7px;
}

.teacher-voice-card small {
    font-size: 11px;
    font-weight: 700;
}

.teacher-bottom-cta {
    min-height: 150px;
    background: linear-gradient(180deg,#fff7f9,#fff2f5);
    overflow: hidden;
}

.teacher-bottom-inner {
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher-bottom-piano {
    position: absolute;
    left: -8px;
    bottom: -8px;
    width: 205px;
    height: 150px;
    object-fit: contain;
}

.teacher-bottom-copy {
    text-align: center;
    position: relative;
    z-index: 2;
}

.teacher-bottom-copy p {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 8px;
}

.teacher-bottom-copy p span {
    color: #f43d70;
}

.teacher-bottom-copy a {
    min-width: 430px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(135deg,#ff648d,#f43b6d);
    color: #fff;
    border-radius: 28px;
    padding: 13px 28px;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(244,59,109,.2);
}

.teacher-bottom-copy a b {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #f43d70;
    width: 26px;
    height: 26px;
}

.teacher-bottom-person {
    position: absolute;
    right: 0px;
    bottom: -12px;
    display: flex;
    align-items: center;
}

.teacher-bottom-person img {
    width: 185px;
    height: 150px;
    object-fit: contain;
}

.teacher-bottom-person p {
    position: absolute;
    right: 180px;
    top: 4px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ff8ca8;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 4px 14px rgba(104,64,77,.08);
}

/* ==================== レスポンシブ（メディアクエリ） ==================== */
@media (max-width: 1050px) {
    .teacher-header-cta {
        display: none;
    }

    .teacher-nav {
        gap: 17px;
    }

    .teacher-hero-message {
        display: none;
    }

    .teacher-free-badge {
        right: 10px;
    }

    .teacher-bottom-person {
        right: -60px;
    }

    .teacher-bottom-piano {
        left: -45px;
    }
}

@media (max-width: 820px) {
    .teacher-container {
        width: min(100% - 28px,720px);
    }

    .teacher-header-inner {
        width: calc(100% - 24px);
    }

    .teacher-nav {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 0 18px;
        box-shadow: 0 12px 20px rgba(0,0,0,.08);
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        border-top: 3px solid #df4973;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    }

    .teacher-nav.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity .25s ease, transform .25s ease;
    }

    .teacher-nav a {
        padding: 16px 4px;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .teacher-nav a:first-child {
        border-top: 1px solid var(--line);
    }

    .teacher-nav a.is-current:after {
        display: none;
    }

    .teacher-nav .nav-arrow {
        display: inline-block;
        font-size: 18px;
        color: #ccc;
        line-height: 1;
    }

    .teacher-nav .nav-more {
        display: block;
        border-bottom: 1px solid var(--line);
    }

    .teacher-nav .nav-more-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 4px;
        background: none;
        border: 0;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        color: inherit;
        cursor: pointer;
    }

    .teacher-nav .nav-more-toggle:hover {
        color: #ef4874;
    }

    .teacher-nav .nav-arrow-down {
        transform: rotate(90deg);
        transition: transform .2s ease;
    }

    .teacher-nav .nav-more.is-open .nav-arrow-down {
        transform: rotate(-90deg);
    }

    .teacher-nav .nav-more-panel {
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        background: #faf9f8;
        transition: max-height .25s ease;
    }

    .teacher-nav .nav-more.is-open .nav-more-panel {
        max-height: 300px;
    }

    .teacher-nav .nav-more-panel a {
        padding: 14px 12px;
        border-bottom: 1px solid var(--line);
        font-size: 12px;
        font-weight: 600;
        color: #666;
    }

    .teacher-nav .nav-more-panel a:last-child {
        border-bottom: 0;
    }

    .teacher-favorite {
        margin-left: auto;
    }

    .teacher-menu {
        display: block;
        margin-left: auto;
    }

    .teacher-hero {
        min-height: 510px;
    }

    .teacher-hero-photo {
        width: 100%;
        height: 250px;
        top: auto;
        bottom: 0;
        background-position: 72% 45%;
    }

    .teacher-hero-soft {
        background: linear-gradient(180deg,#fff 0%,#fff 52%,rgba(255,255,255,.15) 80%);
    }

    .teacher-hero-inner {
        min-height: 510px;
        align-items: flex-start;
    }

    .teacher-hero-copy {
        width: 100%;
        padding-top: 24px;
    }

    .teacher-kicker {
        font-size: 17px;
    }

    .teacher-hero h1 {
        font-size: 39px;
    }

    .teacher-hero-lead {
        font-size: 13px;
    }

    .teacher-free-badge {
        width: 112px;
        height: 112px;
        right: 8px;
        top: 265px;
    }

    .teacher-free-badge strong {
        font-size: 29px;
    }

    .teacher-merit-grid, .teacher-step-grid, .teacher-faq-grid {
        grid-template-columns: 1fr;
    }

    .teacher-voice-grid {
        grid-template-columns: 1fr;
    }

    .teacher-voice-card {
        min-height: 120px;
    }

    .teacher-bottom-piano {
        opacity: .25;
        left: -40px;
    }

    .teacher-bottom-person {
        opacity: .25;
        right: -60px;
    }

    .teacher-bottom-person p {
        display: none;
    }

    .teacher-bottom-copy a {
        min-width: 0;
        width: min(92vw,430px);
        font-size: 17px;
    }

    .teacher-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .teacher-footer-brand img {
        margin: auto;
    }

    .teacher-footer-links>div {
        justify-content: center;
    }

    .teacher-footer-social {
        text-align: center;
    }
}

@media (max-width: 640px) {
    /* MENUタップで開くメニューを画面下部に寄せて表示 */
    .teacher-menu {
        display: none;
    }

    .teacher-nav {
        position: fixed;
        top: auto;
        bottom: 58px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 58px);
        overflow-y: auto;
        z-index: 65;
        transform: translateY(16px);
    }

    .teacher-nav.is-open {
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .pc-only {
        display: none;
    }

    .teacher-free-badge {
        display: none;
    }

    .teacher-brand img {
        width: 130px;
    }

    .teacher-favorite {
        display: none;
    }

    .teacher-section-title {
        font-size: 21px;
    }

    .teacher-section-title b {
        font-size: 42px;
    }

    .teacher-hero-pills {
        gap: 7px;
    }

    .teacher-hero-pills span {
        padding: 5px 10px;
        font-size: 10px;
    }

    .teacher-merit-card {
        padding: 16px;
        gap: 12px;
    }

    .teacher-merit-icon {
        width: 58px;
        min-width: 58px;
    }

    .teacher-merit-card h3 {
        font-size: 14px;
    }

    .teacher-step-card {
        display: grid;
        grid-template-columns: 54px 1fr;
        column-gap: 14px;
        align-items: start;
        padding: 16px 20px;
        min-height: 0;
    }

    .teacher-step-num {
        position: static;
        grid-column: 1;
        grid-row: 1;
        width: 54px;
        height: 54px;
        font-size: 19px;
    }

    .teacher-step-card img {
        grid-column: 1;
        grid-row: 2;
        width: 44px;
        height: 44px;
        margin-top: 8px;
    }

    .teacher-step-card > div:last-child {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .teacher-faq-head a {
        display: none;
    }

    .teacher-bottom-inner {
        height: 140px;
    }

    .teacher-bottom-copy p {
        font-size: 11px;
    }

    .teacher-bottom-copy a {
        font-size: 15px;
        padding: 12px 18px;
    }
}
