@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* H2 共通 */
h2 {
    color: #333;
    font-weight: 700;
    background: none;
    border: none;
    border-bottom: 3px solid #1C68B7;
    margin: 50px 0 30px;
}

/* H3 共通 */
h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    border-left: 5px solid #1C68B7;
    padding-left: 12px;
    margin: 35px 0 20px;
}

/* H4 共通 */
h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin: 25px 0 15px;
}

/* ==========================
   学科・コース一覧
========================== */

.course-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.course-table th {
    background: #4b6cb7;
    color: #fff;
    padding: 12px;
    text-align: left;
}

.course-table td {
    border: 1px solid #ddd;
    padding: 12px;
}

.course-table td.center {
    text-align: center;
    width: 120px;
    font-weight: bold;
}

.course-table tr:nth-child(even) {
    background: #f8f8f8;
}

/* ==========================
   評定基準
========================== */

.criteria-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 30px;
}

.criteria-table th {
    background: #f4f6fb;
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.criteria-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.criteria-table td:first-child {
    font-weight: bold;
    background: #fafafa;
    width: 90px;
}

/* ======================================
   高校ヘッダー
====================================== */

.school-header {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: none;
}

.school-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    height: 1px;
    background: #e5e5e5;
}

@media (max-width:834px) {
    .school-header::after {
        left: -16px;
        right: -16px;
    }
}

@media (min-width:835px) {
    .school-header::after {
        left: -30px;
        right: -30px;
    }
}

.school-title {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
}

.school-kana {
    margin: -4px 0 0px;
    color: #777;
    font-size: 14px;
    letter-spacing: 1px;
}

.school-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: #666;
    font-size: 15px;
}

@media (max-width:768px) {

    .school-title {
        font-size: 32px;
    }

    .school-kana {
        font-size: 13px;
    }

    .school-meta {
        font-size: 14px;
        line-height: 2;
    }

}

@media (max-width:834px) {

    .single-highschool .main {
        padding-top: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 32px !important;
        padding-left: 16px !important;
    }

}

.school-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 15px;
}

.gender {
    background: #f57c00;
    color: #fff;
}

.school-meta i {
    color: #888;
    margin-right: 4px;
    font-size: 13px;
}

.school-info {
    margin: 24px 0 32px;
}

.school-address {
    margin: 0 0 16px;
    color: #555;
    line-height: 1.7;
}

.school-address i {
    color: #888;
    margin-right: 6px;
}

.official-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 40px;
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transition: .2s;
    font-size: 14px;
}

.official-btn:hover {
    background: #fff;
    border-color: #c5c5c5;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

.official-btn .external-icon {
    font-size: 12px;
    color: #888;
}

.course-table {
    margin-top: 60px;
    margin-bottom: 60px;
}

.course-table th,
.criteria-table th {
    background: #6b7280;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.course-table th:last-child,
.course-table td:last-child {
    text-align: center;
}

.course-table td,
.criteria-table td {
    font-size: 16px;
}

/*====================================
高校検索フォーム
====================================*/

.highschool-search {
    background: #f39800;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.highschool-search-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 35px;
    margin: 30px 0;
}

.highschool-form-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.highschool-form-group label {
    width: 160px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: bold;
}

.highschool-form-group input,
.highschool-form-group select {
    flex: 1;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.highschool-search-submit {
    text-align: center;
    margin-top: 35px;
}

.highschool-search-button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 60px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
}

.highschool-search-button:hover {
    background: #1d4ed8;
}

/* スマホ */

@media(max-width:768px) {

    .highschool-form-group {
        display: block;
    }

    .highschool-form-group label {
        display: block;
        width: auto;
        margin-bottom: 8px;
    }

}

/*====================================
高校一覧
====================================*/

.related-school {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

.related-school:last-child {
    border-bottom: none;
}

/* 学校名 */

.related-school-name {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 0px;
}

.related-school-name:hover {
    color: #f57c00;
}

/* 偏差値 */

.school-deviation {
    margin-bottom: 4px;
    font-size: 15px;
}

.school-deviation strong {
    color: #f57c00;
    font-size: 15px;
}

/* 下の情報 */

.related-school-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 15px;
}

/* タグ */

.tag-gender {
    display: inline-block;
    padding: 5px 10px;
    background: #f57c00;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}

/* 市町村 */

.school-city {
    color: #666;
    font-size: 15px;
}

.school-city .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* スマホ */

@media (max-width:768px) {

    .related-school {
        padding: 18px 0;
    }

    .related-school-name {
        font-size: 20px;
    }

    .school-deviation {
        font-size: 15px;
    }

    .school-deviation strong {
        font-size: 15px;
    }

}

.highschool-search {
    background: #f39800;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.highschool-search-form {
    background: #fff;
    border-radius: 10px;
    padding: 35px;
}

.highschool-search {
    background: #f39800;
    padding: 16px;
    border-radius: 10px;
    margin: 30px 0;
}

.highschool-search-form {
    background: #fff;
    border-radius: 10px;
    padding: 30px 35px;
}

.highschool-search-button {
    background: #f39800;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 60px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.highschool-search-button:hover {
    background: #e68a00;
}

/* 共通バッジ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

/* 公立 */
.badge.category.public {
    background: #1C68B7;
    color: #fff;
}

/* 私立 */
.badge.category.private {
    background: #4169e1;
}

/*
.school-meta .badge.category.public {
    background: #1C68B7 !important;
    color: #fff;
}*/
/*
.school-meta .badge.category.private {
    background: #0000cd !important;
    color: #fff;
}*/

.tag-gender {
    display: inline-block;
    padding: 5px 10px;
    background: #6B7280;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    border-radius: 4px;
}

.badge.gender {
    color: #fff;
}

.badge.gender.coed {
    background: #6B7280;
}

.badge.gender.boys {
    background: #1565C0;
}

.badge.gender.girls {
    background: #D81B60;
}

/* ページネーション */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    /* min-widthではなくwidth */
    height: 42px;

    margin: 0 2px;
    padding: 0;

    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.pagination .current {
    background: #1C68B7;
    color: #fff;
    border-color: #1C68B7;
}

.pagination a:hover {
    background: #EAF3FC;
    border-color: #1C68B7;
}

.pagination .page-numbers {
    display: inline-flex !important;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

@media (max-width:768px) {

    .pagination .page-numbers {

        width: 34px;
        height: 34px;
        margin: 0 1px;
        font-size: 13px;

    }

}

/* 偏差値ボタン */
.deviation-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.deviation-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;

    background: #fff;
    border: 1px solid #d9dee5;
    border-radius: 8px;

    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;

    transition: .2s;
}

.deviation-buttons a:hover {
    background: #1C68B7;
    color: #fff;
    border-color: #1C68B7;
}

@media (max-width:768px) {

    .deviation-buttons {
        grid-template-columns: 1fr;
    }

}

/* 学区一覧 */
.district-list {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.district-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;

    padding: 18px 20px;

    text-decoration: none;
    color: #333;

    border-bottom: 1px solid #eee;

    transition: .2s;
}

.district-row:last-child {
    border-bottom: none;
}

.district-row:hover {
    background: #f8fbff;
}

.district-name {

    color: #1C68B7;
    font-weight: 700;
    font-size: 18px;
}

.district-city {

    line-height: 1.8;
}

.school-type-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/*公立・私立から探す*/

.school-type-button {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 18px;

    border: 1px solid #d9dee5;
    border-radius: 8px;

    background: #fff;

    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;

    transition: .2s;
}

.school-type-button:hover {
    color: #fff;
}

.school-type-button.public:hover {
    background: #1C68B7;
    border-color: #1C68B7;
}

.school-type-button.private:hover {
    background: #2F855A;
    border-color: #2F855A;
}

@media(max-width:768px) {

    .school-type-buttons {
        grid-template-columns: 1fr;
    }

}

/*高校名から探す*/
.school-search-form {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.school-search-input {
    flex: 1;
    height: 52px;
    padding: 0 16px;

    border: 1px solid #d9dee5;
    border-radius: 8px;

    font-size: 16px;
}

.school-search-button {
    width: 180px;

    border: none;
    border-radius: 8px;

    background: #1C68B7;
    color: #fff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}

.school-search-button:hover {
    background: #16589b;
}

@media (max-width:768px) {

    .school-search-form {
        flex-direction: column;
    }

    .school-search-button {
        width: 100%;
        height: 52px;
    }

}

/* ========================================
   市町村・路線検索
======================================== */

.search-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.search-category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
    background: #fff;
    border: 2px solid #1C68B7;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.25s;
}

.search-category-card:hover {
    background: #1C68B7;
    transform: translateY(-3px);
}

.search-category-icon {
    font-size: 30px;
    color: #1C68B7;
    margin-bottom: 12px;
    transition: 0.25s;
}

.search-category-title {
    font-size: 24px;
    font-weight: 700;
    color: #1C68B7;
    line-height: 1.2;
    transition: 0.25s;
}

.search-category-subtitle {
    font-size: 16px;
    color: #1C68B7;
    transition: 0.25s;
}

.search-category-card:hover .search-category-icon,
.search-category-card:hover .search-category-title,
.search-category-card:hover .search-category-subtitle {
    color: #fff;
}

/* ===========================
   スマホ
=========================== */

@media (max-width:768px) {

    .search-category-grid {
        gap: 12px;
    }

    .search-category-card {
        padding: 18px 10px;
    }

    .search-category-icon {
        font-size: 24px;
    }

    .search-category-title {
        font-size: 18px;
    }

    .search-category-subtitle {
        font-size: 14px;
    }

}

.search-title,
.school-search-title {
    color: #333;
    /*padding: 8px 16px;*/
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    border: none;
    margin: 0;
}

@media (min-width:769px) {

    .search-category-card {
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        padding: 18px 24px;
        height: 80px;
    }

    .search-category-icon {
        margin: 0;
        font-size: 30px;
    }

}

.search-category {
    margin-bottom: 50px;
}

/* ========================================
   市町村一覧
======================================== */

.city-list-section {
    margin-top: 40px;
}

.city-group {
    margin-bottom: 26px;
}

.city-group-title {
    font: size 12px;
    font-weight: 700;
    margin-bottom: 10px;
    border-bottom: 1px dashed #d1d5db;
}

.city-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
}

.city-list li {
    margin: 0;
}

.city-item {
    display: inline-block;
    color: #1f3a5f;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.8;
}

.city-item:hover {
    color: #1f5fbf;
    text-decoration: underline;
}

@media(max-width:768px) {

    .city-list {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ========================================
   高校検索
======================================== */

.search-container {
    max-width: 1100px;
    margin: 0 auto;
}

.search-condition {
    margin: 40px 0;
}

.search-condition-box {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.search-result {
    margin-top: 40px;
}

.search-result-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.school-card {
    margin-bottom: 20px;
    border-bottom: #ccc dashed 1px;
    padding-bottom: 30px;
}


.school-card-link {
    text-decoration: none;
}

.school-card-link:hover {
    text-decoration: none;
}

.school-card-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    border: none;
    padding: 0;
}

.school-card-title a {
    color: #222;
    text-decoration: none;
}

.school-card-title a:hover {
    color: #2f5fb3;
}

.school-card-course {
    font-size: 16px;
    padding-bottom: 4px;
    color: #333;
}

.deviation-number {
    color: #f39800;
    font-weight: 700;
    font-size: 1.05em;
}

/* ==========================
   検索ページ ページネーション
========================== */

.search-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.search-pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
    white-space: nowrap;
}

.search-pagination a:hover {
    background: #2f5fb3;
    border-color: #2f5fb3;
    color: #fff;
}

.search-pagination a.current {
    background: #2f5fb3;
    border-color: #2f5fb3;
    color: #fff;
}

.search-pagination .prev,
.search-pagination .next {
    width: auto;
    min-width: 44px;
    padding: 0 14px;
}

.search-result-info {
    margin: 10px 0 25px;
    color: #666;
    font-size: .95rem;
}

.search-pagination .current {
    pointer-events: none;
    cursor: default;
}

@media (max-width:767px) {

    .search-pagination .prev,
    .search-pagination .next {
        font-size: 0;
        min-width: 40px;
        padding: 0;
    }

    .search-pagination .prev::before {
        content: "‹";
        font-size: 20px;
    }

    .search-pagination .next::before {
        content: "›";
        font-size: 20px;
    }

}

/*サイドバー*/
.site-sidebar .school-search-button {
    width: 100%;
}

.site-sidebar {
    background: #fff;
    padding: 24px;
}

.site-sidebar .school-search-input {
    margin-bottom: 16px;
}

.site-sidebar .school-search-button {
    width: 100%;
    padding: 10px 0;
}

.sidebar-menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar-menu li::before {
    content: "▶";
    color: #2f5fb3;
    font-size: 12px;
    margin-right: 8px;
}

.kana-group {
    margin-top: 40px;
}

.kana-title {
    font-size: 24px;
    border-bottom: 2px solid #2f5fb3;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.school-name-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
}

.school-name-list li {
    margin-bottom: 10px;
}

.school-name-list a {
    text-decoration: none;
}

.school-name-list a:hover {
    text-decoration: underline;
}

@media (max-width:768px) {

    .school-name-list {

        columns: 1;

    }

}


/* 検索ページのみ */
@media (min-width:769px) {

    .search-page-form .school-search-widget form {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .search-page-form .school-search-input {
        flex: 1;
        margin-bottom: 0;
    }

    .search-page-form .school-search-button {
        width: 140px;
        padding: 12px 20px;
        flex-shrink: 0;
    }

}

/* スマホのみ */
@media (max-width: 768px) {

    .school-search-button {
        margin-top: 12px;
    }

}

/* スマホではサイドバー非表示 */
@media (max-width: 768px) {

    .site-sidebar {
        display: none;
    }

}

/* 検索結果ページのタイトル */
.search-page .page-title {
    font-size: 2rem;
    line-height: 1.3;
}

@media (max-width:768px) {

    .search-page .page-title {
        font-size: 1.8rem;
    }

}

.tsuite {
    padding-top: 30px;
}

/* PC */
.footer-search {
    display: flex;
}

/* スマホ */
@media (max-width: 768px) {
    .footer-search {
        display: none;
    }
}

/* ======================================
   スマホ検索パネル
====================================== */

#mobile-search-panel {
    display: none;
}

#sidebar-toggle {
    display: none;
}

#sidebar-overlay {
    display: none;
}

@media (max-width:768px) {

    /* ハンバーガー */
    #sidebar-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 8px;
        background: #1f5fbf;
        color: #fff;
        font-size: 26px;
        z-index: 10001;
        cursor: pointer;
    }

    /* 背景 */
    #sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        display: none;
        z-index: 9998;
    }

    #sidebar-overlay.show {
        display: block;
    }

    /* 検索パネル */
    #mobile-search-panel {

        display: block;

        position: fixed;

        top: 0;
        right: -340px;

        width: 320px;
        max-width: 90vw;
        height: 100vh;

        background: #fff;

        overflow-y: auto;

        transition: right .3s ease;

        z-index: 9999;

        box-shadow: -5px 0 20px rgba(0, 0, 0, .15);

        padding: 20px;

    }

    #mobile-search-panel.open {

        right: 0;

    }

}

h3.school-search-widget-title,.sidebar-menu h3 {
    background-color: #fff;
    padding: 0px 10px;
}

/* スマホではPCサイドバーを非表示 */
@media (max-width:768px){

    #sidebar{
        display:none;
    }

}

#mobile-search-panel .school-search-widget-button{
    width:100%;
}

#mobile-search-panel .school-search-widget-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

/* PCサイドバー */
#sidebar form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

#sidebar .school-search-input{
    width:100%;
}

#sidebar .school-search-button{
    width:100%;
    height:48px;
}

#mobile-search-panel form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

#mobile-search-panel .school-search-button{
    width:100%;
}