/* ===================================
   school.css — 学校・自治体のみなさまへ
   =================================== */

@font-face {
    font-family: 'hanatotyoutyou';
    src: url('../fonts/花とちょうちょ.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* ① HERO */
.sch-hero {
    position: relative;
    background: linear-gradient(135deg, #516881 0%, #30b9bf 100%);
    padding: 110px 24px 90px;
    text-align: center;
    overflow: hidden;
}

.sch-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/common/3.jpg') center / cover no-repeat;
    opacity: 0.12;
}

.sch-hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.sch-hero-en {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.65);
    margin-bottom: 18px;
}

.sch-hero-title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 22px;
}

.sch-hero-lead {
    font-size: 15px;
    color: rgba(255,255,255,0.88);
    line-height: 1.95;
}

/* ① MESSAGE */
.sch-message {
    background-color: #fff;
    padding: 80px 24px 70px;
}

.sch-message-inner {
    max-width: 820px;
    margin: 0 auto;
}

.sch-message-body {
    margin-top: 44px;
    background: #f5fbff;
    border-left: 5px solid #30b9bf;
    border-radius: 0 16px 16px 0;
    padding: 36px 44px;
}

.sch-message-text {
    font-family: 'hanatotyoutyou', sans-serif;
    font-size: 17px;
    line-height: 2.3;
    color: #444;
    margin: 0 0 20px;
}

.sch-message-text:last-of-type {
    margin-bottom: 0;
}

.sch-message-sign {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dceef7;
    font-size: 14px;
    font-weight: 700;
    color: #516881;
    text-align: right;
}

/* セクション共通 */
.cases-appeal-sub {
    font-size: 16px;
    color: #516881;
    margin: 8px 0 0;
    text-align: center;
}

/* ② STRENGTHS */
.sch-strengths {
    background-color: #9fd9f6;
    padding: 80px 24px 70px;
}

.sch-strengths-inner {
    max-width: 940px;
    margin: 0 auto;
}

.sch-strength-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 44px;
}

/* 新リストデザイン */
.sch-strength-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 44px;
}

.sch-str-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(81,104,129,0.2);
}

.sch-str-item:first-child {
    border-top: 1px solid rgba(81,104,129,0.2);
}

.sch-str-num {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    min-width: 64px;
    text-align: center;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    padding-top: 4px;
    opacity: 0.6;
}

.sch-str-body {
    flex: 1;
}

.sch-str-title {
    font-size: 20px;
    font-weight: bold;
    color: #1e3a5a;
    margin: 0 0 8px;
}

.sch-str-text {
    font-size: 14px;
    color: #516881;
    line-height: 1.85;
    margin: 0;
}

.sch-strength-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 26px 14px 22px;
    text-align: center;
    border: 1px solid #dceef7;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sch-strength-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(81,104,129,0.13);
    opacity: 1;
}

.sch-strength-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #9fd9f6;
    margin-bottom: 12px;
}

.sch-strength-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.55;
}

.sch-strength-more {
    display: block;
    margin-top: 36px;
    text-align: center;
}

.sch-strength-more a {
    display: inline-block;
    font-size: 15px;
    font-weight: bold;
    padding: 12px 28px;
    border: 2px solid #516881;
    border-radius: 8px;
    color: #516881;
    background-color: #f7fbfe;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.sch-strength-more a:hover {
    background-color: #516881;
    color: #fff;
}

/* ③ CASES */
.sch-cases {
    background-color: #fff;
    padding: 80px 24px 70px;
}

.sch-cases-inner {
    max-width: 940px;
    margin: 0 auto;
}

.sch-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.sch-case-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0eef7;
    box-shadow: 0 4px 16px rgba(81,104,129,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sch-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(81,104,129,0.13);
}

.sch-case-head {
    padding: 14px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.sch-case-body {
    padding: 22px 20px 24px;
}

.sch-case-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.sch-case-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.55;
    margin-bottom: 10px;
}

.sch-case-text {
    font-size: 13px;
    color: #666;
    line-height: 1.75;
}

.sch-cases-more {
    text-align: center;
    margin-top: 36px;
}

.sch-past-municipalities {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #e0eef7;
}

.sch-past-title {
    font-size: 15px;
    font-weight: 700;
    color: #516881;
    text-align: center;
    margin-bottom: 24px;
}

.sch-past-table {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 14px;
}

.sch-past-table tbody tr {
    border-bottom: 1px solid #e0eef7;
}

.sch-past-table tbody tr:first-child {
    border-top: 1px solid #e0eef7;
}

.sch-past-table th {
    width: 130px;
    padding: 12px 16px;
    background: #f0f8ff;
    color: #516881;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.sch-past-table td {
    padding: 12px 16px;
    color: #444;
    line-height: 1.6;
}

.sch-cases-more a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #516881;
    text-decoration: none;
    border-bottom: 1.5px solid #516881;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.sch-cases-more a:hover { opacity: 0.7; }

/* ④ FLOW */
.sch-flow {
    background-color: #9fd9f6;
    padding: 80px 24px 70px;
}

.sch-flow-inner {
    max-width: 940px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sch-flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.sch-flow-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 14px rgba(81,104,129,0.08);
}

.sch-flow-step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.sch-flow-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #9fd9f6;
    margin-bottom: 10px;
}

.sch-flow-icon {
    width: 56px;
    height: 56px;
    background: rgba(159,217,246,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.sch-flow-body {
    padding-top: 4px;
}

.sch-flow-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.45;
}

.sch-flow-text {
    font-size: 13px;
    color: #666;
    line-height: 1.75;
}

.sch-flow-arrow {
    font-size: 18px;
    color: #9fd9f6;
    margin: 6px 0;
    transform: rotate(90deg);
    display: block;
}

/* フロー新デザイン（cases.html流用） */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 48px;
    width: 100%;
    max-width: 640px;
    background-color: #fff;
    border-radius: 16px;
    padding: 8px 36px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    position: relative;
}

.flow-step:not(:last-child) {
    margin-bottom: 28px;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    width: 14px;
    height: 14px;
    border-right: 3px solid #fe4c7f;
    border-bottom: 3px solid #fe4c7f;
    transform: translateX(-50%) rotate(45deg);
    z-index: 1;
}

.flow-step-num {
    font-size: 22px;
    font-weight: bold;
    color: #fe4c7f;
    font-family: 'Roboto', sans-serif;
    line-height: 1;
    min-width: 36px;
    padding-top: 2px;
}

.flow-step-body {
    flex: 1;
}

.flow-step-title {
    font-size: 15px;
    font-weight: bold;
    color: #1e3a5a;
    margin: 0 0 6px;
    line-height: 1.4;
}

.flow-step-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* CTA */
.sch-cta {
    background-color: #fff;
    padding: 80px 24px 90px;
    text-align: center;
}

.sch-cta-inner {
    max-width: 640px;
    margin: 0 auto;
}

.sch-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 24px 0 16px;
}

.sch-cta-text {
    font-size: 15px;
    color: #555;
    line-height: 1.95;
    margin-bottom: 40px;
}

.sch-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sch-cta-btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #30b9bf;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.sch-cta-btn--primary:hover {
    background-color: #259aa0;
    opacity: 1;
}

.sch-cta-btn--secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    color: #516881;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 34px;
    border-radius: 30px;
    border: 2px solid #516881;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.sch-cta-btn--secondary:hover {
    background-color: #516881;
    color: #fff;
    opacity: 1;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 860px) {
    .sch-strength-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sch-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sch-flow-step {
        padding: 20px 20px;
    }
}

@media (max-width: 560px) {
    .sch-hero-title { font-size: 26px; }
    .sch-strength-grid { grid-template-columns: repeat(2, 1fr); }
    .sch-cases-grid { grid-template-columns: 1fr; }
    .sch-message-body { padding: 24px 20px; }
    .sch-cta-btns { flex-direction: column; align-items: center; }
}
