/* ============================================================
   /admission/flow/ 専用スタイルシート
   GUIDE BOOK「通信制高校の仕組み 入学から卒業まで」準拠
   ============================================================ */

.fl-page {
    --fl-orange: #f39800;
    --fl-orange2: #f59d2c;
    --fl-gold: #e6b422;
    --fl-navy: #1d3e7c;
    --fl-green: #28a785;
    --fl-emerald: #1bb186;
    --fl-pale: #fff3b3;
    --fl-soft: #fdfbef;
    --fl-mint: #eef8f4;
    --fl-ink: #333333;
    color: var(--fl-ink);
}

.fl-page img {
    max-width: 100%;
    height: auto;
}

.fl-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ 見出し（テンプレート装飾を無効化） ============ */
.fl-page h2,
.fl-page h3 {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    text-decoration: none !important;
    padding: 0 !important;
}

.fl-page h2::before,
.fl-page h2::after,
.fl-page h3::before,
.fl-page h3::after {
    content: none !important;
    display: none !important;
}

.fl-page .fl-heading {
    margin: 0;
    color: var(--fl-ink) !important;
    font-size: clamp(1.6rem, 2.9vw, 2.2rem);
    font-weight: 900;
    line-height: 1.35;
}

.fl-heading__sub {
    margin: 6px 0 0;
    color: var(--fl-orange) !important;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 900;
    line-height: 1.5;
}

.fl-page .fl-subheading {
    margin: 22px 0 26px;
    color: var(--fl-ink) !important;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 900;
    line-height: 1.4;
}

.fl-copy {
    margin: 18px 0 0;
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 2;
}

/* ============ セクション ============ */
.fl-section {
    padding: 56px 0;
}

.fl-section--soft {
    background: var(--fl-soft);
}

.fl-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: end;
    margin-bottom: 40px;
}

.fl-head__lead {
    margin: 0;
    color: #4a4a4a;
    font-size: 0.93rem;
    line-height: 2;
}

/* ============ フロー ============ */
.fl-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 34px;
}

.fl-step {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.fl-step__side {
    display: flex;
    justify-content: flex-start;
}

.fl-step__ball {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 104px;
    height: 104px;
    border: 3px solid var(--fl-orange);
    border-radius: 50%;
    background: #ffffff;
    color: var(--fl-orange);
    text-align: center;
}

.fl-step__ball--plain {
    border-color: var(--fl-orange2);
}

.fl-step__ball-no {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.fl-step__ball-label {
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.25;
}

.fl-step__body {
    min-width: 0;
}

.fl-step__title {
    margin: 0 0 18px;
    color: var(--fl-ink) !important;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 900;
    line-height: 1.45;
}

/* STEP1: 新入学/転入学/編入学 */
.fl-entries {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.fl-entry {
    padding: 20px 22px;
    background: #ffffff;
    border: 2px solid #f2e3c8;
    border-radius: 14px;
}

.fl-entry__name {
    margin: 0 0 12px;
    color: var(--fl-ink);
    font-size: 1.08rem;
    font-weight: 900;
}

.fl-entry__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.fl-entry__list li {
    position: relative;
    padding-left: 20px;
    color: #4a4a4a;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.8;
}

.fl-entry__list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--fl-orange);
    font-size: 0.8rem;
    line-height: 2.1;
}

/* STEP4: ダブルスクール（ゴールド枠） */
.fl-double {
    padding: 26px;
    border: 2px solid var(--fl-gold);
    border-radius: 16px;
    background: #fffdf5;
}

.fl-double__lead {
    margin: 0 0 26px;
    color: #4a4a4a;
    font-size: 0.92rem;
    line-height: 2;
}

.fl-double__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: center;
}

.fl-double__col {
    padding: 22px;
    background: #ffffff;
    border-radius: 14px;
    text-align: center;
}

.fl-double__catch {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.7;
}

.fl-double__catch--orange,
.fl-double__catch--orange2 {
    color: var(--fl-orange);
}

.fl-double__catch--red {
    color: #e60012;
    font-size: 1.05rem;
}

.fl-double__name {
    margin: 12px 0 16px;
    color: var(--fl-ink);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.5;
}

.fl-double__emblem {
    margin: 0;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.fl-double__emblem img {
    display: block;
    width: 100%;
    height: auto;
}

.fl-double__plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--fl-orange);
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
}

.fl-double__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    text-align: left;
}

.fl-double__list li {
    position: relative;
    padding-left: 20px;
    color: #4a4a4a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.8;
}

.fl-double__list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--fl-orange);
    font-size: 0.8rem;
    line-height: 2.1;
}

/* ============ 卒業要件 ============ */
.fl-requirement {
    margin-top: 34px;
    padding: 34px 22px;
    background: var(--fl-pale);
    border-radius: 18px;
}

.fl-requirement__tab {
    display: table;
    margin: 0 auto 26px;
    padding: 10px 46px;
    border-radius: 999px;
    background: var(--fl-orange2);
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.fl-requirement__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
    justify-items: center;
}

.fl-require-card {
    width: 100%;
    max-width: 320px;
    padding: 20px 18px;
    background: #ffffff;
    border-radius: 12px;
    text-align: center;
}

.fl-require-card__label {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #c9c9c9;
    color: var(--fl-green);
    font-size: 1rem;
    font-weight: 900;
}

.fl-require-card__value {
    margin: 0;
    color: var(--fl-ink);
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.6;
}

.fl-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fl-orange);
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

/* 下向き三角 */
.fl-arrow-down {
    width: 0;
    height: 0;
    margin: 34px auto 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 22px solid var(--fl-orange2);
}

.fl-page .fl-subheading {
    text-align: center;
}

/* ============ 単位取得の条件 ============ */
.fl-conditions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

.fl-conditions__cards {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.fl-condition-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    margin: 0;
    padding: 18px;
    background: #ffffff;
    border-radius: 12px;
    color: var(--fl-ink);
    font-size: 1.02rem;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fl-conditions__notes {
    display: grid;
    gap: 18px;
}

.fl-condition-note {
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 12px;
}

.fl-condition-note__name {
    margin: 0 0 8px;
    color: var(--fl-green);
    font-size: 0.98rem;
    font-weight: 900;
}

.fl-condition-note__text {
    margin: 0;
    color: #4a4a4a;
    font-size: 0.9rem;
    line-height: 1.95;
}

/* ============ 進路相談サポート ============ */
.fl-career {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    margin-top: 48px;
}

.fl-career__photo {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
}

.fl-career__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.fl-career__catch {
    margin: 0 0 6px;
    color: var(--fl-orange2);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 900;
}

.fl-career__title {
    margin: 0;
    color: var(--fl-ink) !important;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 900;
    line-height: 1.4;
}

.fl-career .fl-copy {
    margin-top: 14px;
}

/* ============ それぞれの夢や目標に向かって ============ */
.fl-dream {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 30px;
}

.fl-dream__ball {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border: 2px solid #e5a835;
    border-radius: 50%;
    background: #fee693;
    color: var(--fl-ink);
    font-size: 1rem;
    font-weight: 900;
}

.fl-photo-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.fl-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
}

.fl-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============ オープンスクール ============ */
.fl-openschool {
    margin-top: 46px;
    padding: 34px 24px;
    background: var(--fl-mint);
    border-radius: 18px;
}

.fl-openschool__catch {
    margin: 0 0 8px;
    color: var(--fl-emerald);
    font-size: clamp(1rem, 1.8vw, 1.28rem);
    font-weight: 900;
    line-height: 1.6;
}

.fl-openschool__title {
    margin: 0 0 24px;
    color: var(--fl-ink) !important;
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
    font-weight: 900;
    line-height: 1.45;
}

.fl-openschool__photos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.fl-apply {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-top: 26px;
}

.fl-apply__title {
    margin: 0;
    color: var(--fl-ink);
    font-size: 0.98rem;
    font-weight: 900;
    text-align: center;
}

.fl-apply__url {
    color: var(--fl-ink);
    font-size: 0.95rem;
    font-weight: 800;
    word-break: break-all;
    text-decoration: underline;
}

.fl-apply__qr {
    margin: 0;
    width: 150px;
}

.fl-apply__qr img {
    display: block;
    width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
}

/* ============ レスポンシブ ============ */
@media (min-width: 768px) {
    .fl-entries {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fl-head {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 40px;
    }

    .fl-photo-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fl-openschool__photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fl-requirement__cards {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
        justify-items: stretch;
    }

    .fl-condition-card {
        max-width: none;
    }
}

@media (min-width: 900px) {
    .fl-step {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 30px;
        align-items: start;
    }

    .fl-double__body {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 26px;
    }

    .fl-conditions {
        grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
        gap: 40px;
    }

    .fl-career {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 36px;
    }

    .fl-dream {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 24px;
        align-items: center;
    }
}

@media (max-width: 899px) {
    .fl-section {
        padding: 44px 0;
    }
}
