@charset 'UTF-8';
/* Kousha (School List) Styles - Based on /sample/index.html */

.ib {
    display: inline-block;
}

/* Show sidebar on mobile */
@media (max-width: 767px) {
    .side,
    .col-xs-12.col-sm-3.col-sm-pull-9.side {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

.kousha.koushalist,
.kousha-single {
    background: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.kousha.koushalist *,
.kousha-single * {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* Content area background */
.tomas-content-column {
    background: #fff;
}

/* Utility Classes - Scoped to kousha */
.kousha .hidden {
    display: none !important;
}

.kousha .md\:hidden {
    display: block;
}

@media (min-width: 768px) {
    .kousha .md\:hidden {
        display: none !important;
    }
    .kousha .hidden.md\:flex {
        display: flex !important;
    }
    .kousha .hidden.md\:grid {
        display: grid !important;
    }
}

@media (max-width: 767px) {
    .kousha .hidden.md\:flex {
        display: none !important;
    }
    .kousha .hidden.md\:grid {
        display: none !important;
    }
}

.kousha .flex {
    display: flex;
}

.kousha .flex-col {
    flex-direction: column;
}

.kousha .gap-3 {
    gap: 0.75rem;
}

.kousha .mb-6 {
    margin-bottom: 1.5rem;
}

.kousha .w-full {
    width: 100%;
}

.kousha .h-12 {
    height: 3rem;
}

.kousha .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.kousha .text-base {
    font-size: 1rem;
}

.kousha .bg-white {
    background-color: #fff;
}

.kousha .border {
    border-width: 1px;
}

.kousha .border-gray-300 {
    border-color: #d1d5db;
}

.kousha .rounded {
    border-radius: 0.25rem;
}

.kousha .rounded-xl {
    border-radius: 0.75rem;
}

.kousha .grid {
    display: grid;
}

.kousha .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.kousha .gap-2 {
    gap: 0.5rem;
}

.kousha .items-center {
    align-items: center;
}

.kousha .justify-center {
    justify-content: center;
}

.kousha .gap-1\.5 {
    gap: 0.375rem;
}

.kousha .py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.kousha .px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.kousha .text-sm {
    font-size: 0.875rem;
}

.kousha .text-xs {
    font-size: 0.75rem;
}

.kousha .font-bold {
    font-weight: 700;
}

.kousha .text-gray-700 {
    color: #374151;
}

.kousha .text-gray-500 {
    color: #6b7280;
}

.kousha .text-stone-500 {
    color: #78716c;
}

.kousha .w-6 {
    width: 1.5rem;
}

.kousha .h-6 {
    height: 1.5rem;
}

.kousha .block {
    display: block;
}

.kousha .text-center {
    text-align: center;
}

.kousha .bg-stone-700 {
    background-color: #44403c;
}

.kousha .bg-stone-700:hover {
    background-color: #292524;
}

.kousha .text-white {
    color: #fff;
}

.kousha .border-gray-300:hover {
    border-color: #78716c;
}

.kousha .relative {
    position: relative;
}

.kousha .pl-10 {
    padding-left: 2.5rem;
}

.kousha .pr-10 {
    padding-right: 2.5rem;
}

.kousha .absolute {
    position: absolute;
}

.kousha .left-3 {
    left: 0.75rem;
}

.kousha .right-3 {
    right: 0.75rem;
}

.kousha .top-1\/2 {
    top: 50%;
}

.kousha .-translate-y-1\/2 {
    transform: translateY(-50%);
}

.kousha .w-5 {
    width: 1.25rem;
}

.kousha .h-5 {
    height: 1.25rem;
}

.kousha .text-gray-400 {
    color: #9ca3af;
}

.kousha .pointer-events-none {
    pointer-events: none;
}

.kousha .min-w-\[180px\] {
    min-width: 180px;
}

.kousha .appearance-none {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.kousha .focus\:outline-none:focus {
    outline: none;
}

.kousha .focus\:border-\[\#b7212b\]:focus {
    border-color: #b7212b;
}

/* Title Section */
.kousha-title-section {
    border-bottom: 4px solid #b7212b;
    text-align: center;
    padding: 0.1rem 1rem;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.kousha-title {
    margin-bottom: 13px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.025em;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .kousha-title {
        font-size: 1.875rem;
    }
}

.kousha-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .kousha-subtitle {
        font-size: 1.5rem;
    }
}

.kousha-subtitle .count {
    color: #b7212b;
}

/* Search Section */
.kousha-search-section {
    padding: 1rem 1.5rem;
}

.search-form-desktop {
    display: none;
}

@media (min-width: 768px) {
    .search-form-desktop {
        display: flex !important;
        gap: 0.5rem;
        max-width: 48rem;
        margin-bottom: 1.5rem;
    }
}

.search-form-desktop .relative {
    position: relative;
}

.search-form-desktop select {
    height: 3rem;
    padding-left: 1rem;
    padding-right: 2.5rem;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    min-width: 180px;
    color: #374151;
    appearance: none;
    cursor: pointer;
}

.search-form-desktop input[type="text"] {
    flex: 1;
    height: 3rem;
    padding: 0 1rem;
    font-size: 1rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
}

.search-form-desktop button {
    height: 3rem;
    padding: 0.5rem 1.5rem;
    background: #b7212b;
    color: #fff;
    font-weight: 400;
    font-size: 1rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-form-desktop button:hover {
    background: #c4000f;
}

/* Search Method Buttons */
.search-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.method-btn:hover {
    background: linear-gradient(to bottom, #b7212b, #c4000f);
    border-color: #b7212b;
}

.method-btn svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: #b7212b;
    transition: stroke 0.3s;
}

.method-btn:hover svg {
    stroke: #fff;
}

.method-btn span {
    font-weight: 700;
    color: #374151;
    transition: color 0.3s;
}

.method-btn:hover span {
    color: #fff;
}

/* Brand Filter */
.brand-filter-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
}

.filter-buttons-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    height: 2rem;
    border-radius: 0.375rem;
    gap: 0.375rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(216, 219, 222, 1);
    background: #fff;
    color: #374151;
    cursor: default;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #b7212b;
    color: #fff;
    border-color: rgba(216, 219, 222, 1);
}

.filter-btn.active {
    background: #e5e7eb;
    color: #374151;
    border-color: rgba(216, 219, 222, 1);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    cursor: default;
}

.filter-btn span {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.75;
}

/* School List Header */
.school-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.school-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    border-left: 4px solid #b7212b;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.school-count {
    color: #6b7280;
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.5rem;
}

.school-count .count-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b7212b;
}

/* Pagination Info */
.pagination-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.pagination-range {
    font-size: 0.875rem;
    color: #6b7280;
    padding: 5px 0 6px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-page {
    font-size: 0.875rem;
    color: #4b5563;
    padding: 0 0.5rem;
}

.pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    height: 2rem;
    border-radius: 0.375rem;
    gap: 0.375rem;
    padding: 0 0.75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-next:hover {
    background: #f9fafb;
}

/* School Grid */
.school-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .school-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .school-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* School Card */
.school-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.school-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: #fff8f8;
    border-color: #b7212b;
}

.school-image {
    position: relative;
    width: 100%;
    height: 10rem;
    overflow: hidden;
}

.school-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.school-image img.noimg {
    width: 70%;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
}

.school-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #b7212b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
}

.school-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.school-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    text-overflow: ellipsis;
}

.school-content a {
    text-decoration: none;
}

.school-content a:hover .school-name {
    color: #b7212b;
}

/* School name turns red on card hover */
.school-card:hover .school-name {
    color: #b7212b;
}

.school-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
    flex: 1;
}

.school-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.school-info-item svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.school-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-detail {
    flex: 1;
    text-align: center;
    padding: 0.625rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
}

.btn-detail:hover {
    border-color: #b7212b;
    color: #b7212b;
}

.btn-contact {
    flex: 1;
    text-align: center;
    padding: 0.625rem 0.5rem;
    background: #b7212b;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-contact:hover {
    background: #c4000f;
    color: #fff;
}

@media (max-width: 767px) {
    .kousha-title {
        font-size: 1.5rem;
    }

    .kousha-subtitle {
        font-size: 1.25rem;
    }

    .search-methods-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .method-btn {
        padding: 1rem 0.25rem;
        font-size: 0.875rem;
    }

    .method-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Single School Page Styles */
.kousha-single {
    padding: 2rem;
}

.kousha-single h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.kousha-single h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 3px solid #b7212b;
    padding-bottom: 0.5rem;
}

.kousha-single h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.kousha-single section {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.kousha-single .school-header {
    border-left: 4px solid #b7212b;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.kousha-single .school-station {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1rem;
}

.kousha-single .school-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.kousha-single .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #b7212b;
    color: #fff;
    font-size: 0.875rem;
    border-radius: 1rem;
}

.kousha-single .school-image {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.kousha-single .info-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .kousha-single .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kousha-single .info-item {
    padding: 1rem;
    border-left: 4px solid #b7212b;
    background: #f9fafb;
}

.kousha-single .info-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.kousha-single .info-content {
    color: #666;
    line-height: 1.6;
}

.kousha-single .info-content a {
    color: #b7212b;
    text-decoration: none;
}

.kousha-single .info-content a:hover {
    text-decoration: underline;
}

.kousha-single .gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .kousha-single .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .kousha-single .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.kousha-single .gallery-item {
    background: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.kousha-single .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.kousha-single .gallery-caption {
    padding: 1rem;
}

.kousha-single .gallery-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kousha-single .gallery-description {
    font-size: 0.875rem;
    color: #666;
}

.kousha-single .map-container {
    z-index: 1;
    width: 100%;
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.kousha-single .map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Single school page - subtitle before h1 */
section.bg-white p.text-sm.font-medium {
    color: #b7212b;
}

.bg-white .mb-8 > p.text-sm:first-child {
    color: #b7212b;
}

/* Exam type badges */
.exam-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #E5E5E5;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #57534e;
}

.exam-badge-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

/* Exam type colors */
.exam-color-elementary {
    background-color: #079FD1;
}

.exam-color-junior {
    background-color: #4EA836;
}

.exam-color-senior {
    background-color: #D44E80;
}

.exam-color-medical {
    background-color: #1A3B6A;
}

.exam-color-internal {
    background-color: #9333EA;
}

/* School Image Carousel */
.school-carousel-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.school-carousel {
    margin: 0;
    overflow: hidden;
}

.school-carousel .slick-list {
    overflow: hidden;
}

.school-carousel .slick-track {
    display: flex;
    align-items: flex-start;
}

.carousel-slide {
    padding: 0 12px;
    outline: none;
    width: 500px !important;
}

.carousel-image {
    width: 500px;
    max-width: 100%;
    height: 235px;
    background: #F5F5F5;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

.carousel-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
}

.carousel-caption {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    line-height: 1.4;
}

/* Slick carousel arrows */
.school-carousel .slick-prev,
.school-carousel .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.school-carousel .slick-prev:hover,
.school-carousel .slick-next:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%) scale(1.05);
}

.school-carousel .slick-prev {
    left: 16px;
}

.school-carousel .slick-next {
    right: 16px;
}

.school-carousel .slick-prev:before,
.school-carousel .slick-next:before {
    content: none;
    display: none;
}

.school-carousel .slick-prev svg,
.school-carousel .slick-next svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.school-carousel .slick-prev:hover svg,
.school-carousel .slick-next:hover svg {
    stroke: #000000;
}

/* Slick carousel dots */
.school-carousel .slick-dots {
    position: static;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.school-carousel .slick-dots li {
    display: block;
    margin: 0;
    width: auto;
    height: auto;
}

.school-carousel .slick-dots li button {
    width: 12px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: #D6D3D1;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s;
}

.school-carousel .slick-dots li button:before {
    display: none;
}

.school-carousel .slick-dots li.slick-active button {
    width: 24px;
    background: #57534e;
    border-radius: 3px;
}

.school-carousel .slick-dots li button:hover {
    background: #A8A29E;
}

@media (max-width: 767px) {
    .school-carousel {
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }

    .school-carousel {
        width: 100%;
        max-width: 100vw;
        overflow: inherit;
    }

    .school-carousel .slick-list {
        overflow: visible !important;
        margin: 0;
        padding: 0 20px !important;
    }

    .school-carousel .slick-track {
        display: flex !important;
        align-items: flex-start !important;
    }

    .slick-slide {
        display: flex !important;
        justify-content: center;
        align-items: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .slick-slide:not(:last-child) {
        margin-right: 15px !important;
    }

    .carousel-slide {
        width: calc(100vw - 55px) !important;
        max-width: calc(100vw - 55px) !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .slick-slide > div {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .carousel-image {
        width: 100%;
        aspect-ratio: 3 / 2;
        height: auto;
    }

    .carousel-image img {
        object-position: center top !important;
    }

    .school-carousel .slick-prev {
        left: 8px;
        width: 32px;
        height: 32px;
        z-index: 20;
    }

    .school-carousel .slick-next {
        right: 8px;
        width: 32px;
        height: 32px;
        z-index: 20;
    }

    /* 上部CTAボタンの調整 */
    .cta-buttons-container .cta-primary {
        padding-left: 0.75rem !important;
        padding-right: 2.75rem !important;
        font-size: 1rem !important;
    }

    .cta-buttons-container .cta-primary .cta-arrow {
        right: 0.5rem !important;
    }

    .cta-buttons-container .cta-primary .cta-icon {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }

    .cta-secondary-group .cta-secondary {
        font-size: 1rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        flex: inherit;
    }

    /* 「まずはお気軽にご相談ください」欄の余白調整 */
    #access + section.pb-12 > div > div[style*="border"] {
        padding: 24px 16px !important;
    }

    /* 「まずはお気軽にご相談ください」欄内のCTAボタン調整 */
    #access + section.pb-12 .contact-cta-primary {
        font-size: 16px !important;
    }

    #access + section.pb-12 .contact-cta-primary svg {
        width: 1rem !important;
        height: 1rem !important;
    }

    #access + section.pb-12 .contact-cta-request {
        font-size: 1rem !important;
    }

    /* 電話番号エリアの調整 */
    #access + section.pb-12 .border-stone-300 {
        padding: 0 !important;
        gap: 0 !important;
    }

    #access + section.pb-12 .border-stone-300 > div.flex.flex-col {
        padding: 16px 20px !important;
        width: 100%;
    }

    #access + section.pb-12 .border-stone-300 .sm\:hidden {
        margin: 0 20px 0 20px !important;
        width: calc(100% - 40px) !important;
    }

    /* 対応コースを3列3段に */
    .courses-section {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* 特徴・設備を4列3段に */
    .features-section {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* 合格実績のタブをwrapに */
    .results-tab {
        flex-wrap: wrap;
    }

    section[id="testimonials"] + section .flex.justify-center {
        flex-wrap: wrap !important;
    }

    /* 時間割テーブルのスクロール設定 */
    .schedule-wysiwyg .schedule-text {
        margin-bottom: 16px;
    }

    .schedule-wysiwyg .schedule-content {
    }

    .schedule-wysiwyg .schedule-content table {
        margin-bottom: 10px;
        table-layout: fixed !important;
    }

    .schedule-wysiwyg .schedule-content table td,
    .schedule-wysiwyg .schedule-content table th {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .schedule-wysiwyg .schedule-content table td:first-child,
    .schedule-wysiwyg .schedule-content table th:first-child {
        width: 21% !important;
    }

    .schedule-wysiwyg .schedule-content table td:not(:first-child),
    .schedule-wysiwyg .schedule-content table th:not(:first-child) {
        width: auto !important;
    }

    .schedule-wysiwyg .schedule-content table td .time-display {
        line-height: 1.5;
    }

    /* Firefox用 */
    .schedule-wysiwyg .schedule-content {
        scrollbar-width: thin;
        scrollbar-color: #b7212b #f5f5f5;
    }

    /* スマホ専用CTAボタン */
    .mobile-cta-phone {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        background-color: #b7212b;
        color: white;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s;
        box-shadow: 0 4px 12px rgba(183, 33, 43, 0.25);
    }

    .mobile-cta-phone:hover {
        background-color: #a01e26;
        box-shadow: 0 6px 16px rgba(183, 33, 43, 0.35);
    }

    .mobile-cta-contact {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
        background-color: white;
        color: #44403b;
        border: 2px solid #d6d3cf;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.3s;
    }

    .mobile-cta-contact:hover {
        background-color: #f9f9f9;
        border-color: #b7212b;
    }

    /* 資料請求・お問い合わせボタンの高さ調整 */
    .cta-image-card {
        height: 224px !important;
    }

    .cta-image-card .cta-card-bg {
        height: 224px !important;
    }

    .cta-image-card .absolute.inset-0 {
        padding: 2rem 1.5rem !important;
    }

    /* 見学・無料体験授業のタイトルフォントサイズ */
    .cta-trial-link h3,
    .cta-trial-link .text-xl {
        font-size: 16px !important;
    }

    /* 対応コース・特徴設備の間隔調整 */
    .courses-section {
        gap: 0.75rem !important;
    }

    .features-section {
        gap: 0.5rem !important;
    }

    /* タブナビゲーションの折り返し */
    section .flex.justify-center.gap-3 {
        flex-wrap: wrap;
    }

    /* 時間割テーブルを固定幅に */
    .schedule-wysiwyg .schedule-content table {
    }

    /* footerの上に余白追加 */
    footer {
        margin-top: 50px !important;
    }
}

.school-carousel .slick-prev:before,
.school-carousel .slick-next:before {
    font-size: 18px;
}

.school-carousel .slick-prev:hover,
.school-carousel .slick-next:hover {
    transform: translateY(-50%) scale(1.08);
}

/* CTA Buttons */
.cta-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 575px;
    margin: 0 auto;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
}

.cta-primary {
    background-color: rgb(183, 33, 43) !important;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    gap: 0.75rem;
}

/* 上部のCTAボタン専用スタイル */
.cta-buttons-container .cta-primary {
    width: 100%;
    max-width: 575px;
    height: 64px;
    font-size: 1.125rem;
    margin: 0 auto 10px;
}

.cta-primary:hover {
    background-color: #cc0010 !important;
}

.cta-primary .cta-icon {
    width: 24px;
    height: 24px;
}

.cta-primary .cta-arrow {
    width: 24px;
    height: 24px;
    position: absolute;
    right: 1rem;
}

.cta-secondary-group {
    display: none;
    gap: 0.75rem;
    width: 100%;
    max-width: 575px;
    margin: 0 auto;
}

.cta-secondary {
    flex: 1;
    height: 48px;
    background-color: #fff;
    border: 1px solid #d1d5db;
    color: #57534e;
    font-weight: 500;
    font-size: 16px;
    gap: 0.5rem;
}

.cta-secondary:hover {
    background-color: #fafaf9;
}

.cta-request-materials:hover {
    background-color: #e7e5e4 !important;
}

.cta-secondary .cta-icon-small {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .cta-primary {
        height: 72px;
        font-size: 1.25rem;
    }

    .cta-secondary-group {
        display: flex;
        flex-direction: row;
    }
}

/* Contact Section CTA Buttons */
.contact-cta-primary {
    background-color: rgb(183, 33, 43) !important;
    color: #fff;
}

.contact-cta-primary:hover {
    background-color: #cc0010 !important;
}

.contact-cta-request:hover {
    background-color: #e7e5e4 !important;
}

/* TOMAS Features Section */
.tomas-features-section {
    background: #fff;
    padding: 40px 30px;
    margin-top: 0;
    margin-bottom: 3rem;
    border-top: 1px solid #e5e7eb;
}

.features-content {
    font-size: 15px;
    line-height: 1.8;
    color: #464344;
    padding: 24px;
    background-color: #fafafa;
}

.features-content p {
    margin-bottom: 1em;
}

.features-content ul,
.features-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

/* Location Links Section */
.location-links-section {
    background: #fff;
    padding: 0 30px 40px 30px;
    margin-top: 0;
}

.location-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.location-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 28px 0 12px;
    background: #fff;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    color: #3E3F46;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.location-link-text {
    margin-right: 0;
}

.location-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    position: absolute;
    right: 8px;
}

.location-link:hover {
    color: #b7212b;
    border-color: #b7212b;
}

.location-link:hover svg {
    stroke: #b7212b;
}

@media (max-width: 767px) {
    .tomas-features-section,
    .location-links-section {
        padding: 30px 20px;
    }

    .location-links-grid {
        gap: 10px;
    }

    .location-link {
        font-size: 14px;
        padding: 0 24px 0 6px;
    }

    .location-link svg {
        right: 6px;
    }
}

/* Prefecture Selection Modal */
.prefecture-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prefecture-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.prefecture-modal-content {
    position: relative;
    width: 90%;
    max-width: 675px;
    background: #fff;
    border-radius: 0;
    overflow: visible;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.prefecture-modal-header {
    background-color: #b7212b;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prefecture-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 400;
}

.prefecture-modal-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    width: 28px;
    height: 28px;
}

.prefecture-modal-close:hover {
    opacity: 0.8;
}

.prefecture-modal-close svg {
    width: 20px;
    height: 20px;
}

.prefecture-modal-body {
    padding: 28px 20px 24px;
}

.prefecture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.prefecture-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.prefecture-item:hover {
    border-color: #b7212b;
    background-color: #fef2f2;
}

.prefecture-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9375rem;
}

.prefecture-count {
    color: #6b7280;
    font-size: 0.8125rem;
}

.prefecture-modal-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.8125rem;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
    .prefecture-modal-content {
        width: 95%;
        max-width: 400px;
    }

    .prefecture-modal-header {
        padding: 14px 16px;
    }

    .prefecture-modal-header h3 {
        font-size: 1rem;
    }

    .prefecture-modal-body {
        padding: 20px 16px 18px;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .prefecture-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .prefecture-item {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    .prefecture-name {
        font-size: 0.875rem;
    }

    .prefecture-count {
        font-size: 0.75rem;
    }

    .prefecture-modal-note {
        font-size: 0.75rem;
        padding-top: 12px;
    }

    /* スマホ表示で.cta-secondary-groupを表示、縦並び */
    .cta-secondary-group {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .cta-secondary {
        height: 64px !important;
    }

    .cta-buttons-container {
        gap: 0;
    }

    .cta-buttons-container .cta-primary {
        margin-bottom: 0 !important;
    }

    /* アクセス画像に左右10pxの余白 */
    #access .aspect-\[4\/3\] {
        margin-left: 10px;
        margin-right: 10px;
    }

    /* 「まずはお気軽にご相談ください」枠の上余白を縮める */
    #access + section.pb-12 {
        padding-top: 1rem !important;
        padding-bottom: 2rem !important;
    }
}

/* PC時は電話番号リンクのタップを無効化 */
@media (min-width: 768px) {
    section.pb-12 a[href^="tel:"] {
        pointer-events: none;
        cursor: default;
    }
}

/* Access Section */
#access header h2,
#access h2 {
    color: #b7212b !important;
}

#access header .inline-flex,
#access .text-\[\#b7212b\] {
    color: #b7212b !important;
}

#access header h2.text-stone-800,
#access h3 {
    color: rgba(40, 37, 37, 1) !important;
}

#access header p,
#access p.text-sm,
#access p.text-stone-500,
#access .text-stone-500 {
    color: rgba(120, 117, 114, 1) !important;
}

#access svg {
    color: #b7212b;
    stroke: #b7212b;
}

#access .text-stone-600 svg,
#access header svg {
    color: #b7212b;
    stroke: #b7212b;
}

/* Neighbourhood Link (アクセス・避難情報) */
.neighbourhood-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.neighbourhood-link:hover {
    background-color: #fafaf9;
    border-color: #d6d3d1;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.neighbourhood-link-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #292524;
    font-weight: 500;
    font-size: 0.9375rem;
}

.neighbourhood-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #57534e;
}

.neighbourhood-arrow {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #a8a29e;
    margin-left: auto;
}

@media (max-width: 1023px) {
    .neighbourhood-arrow {
        display: block;
    }
}

/* バナーホバー効果 */
.banner-item a img {
    transition: opacity 0.3s ease;
    border-radius: 0 !important;
}

.banner-item a:hover img {
    opacity: 0.8;
}

.banner-item img {
    border-radius: 0 !important;
}

/* バナーPC/SP表示切り替え */
/* 768px以上: PC画像を表示、SP画像を非表示 */
@media (min-width: 768px) {
    .banner-link-pc,
    .banner-img-pc {
        display: block;
    }

    .banner-link-sp,
    .banner-img-sp {
        display: none;
    }
}

/* 767px以下: SP画像を表示、PC画像を非表示 */
@media (max-width: 767px) {
    .banner-link-pc,
    .banner-img-pc {
        display: none;
    }

    .banner-link-sp,
    .banner-img-sp {
        display: block;
    }
}

/* セクションタイトル（左バー付き） */
.section-title-with-bar {
    position: relative;
    padding-left: 16px;
    font-size: 20px;
    font-weight: 700;
    color: #292524;
    line-height: 1.4;
}

.section-title-with-bar:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: #b7212b;
    border-radius: 9999px;
}

/* 対応コース・特徴設備 共通 */
.course-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    background-color: white;
}

/* 対応コース */
.courses-section .course-item {
    min-height: 100px;
}

.courses-section .course-item:has(.course-subtext) {
    min-height: 112px;
}

.courses-section .course-name {
    font-size: 14px;
    font-weight: 400;
    color: #292524;
    line-height: 1.4;
}

.course-subtext {
    font-size: 12px;
    color: #a8a29e;
    font-weight: 400;
}

/* 特徴・設備 */
.features-section .course-item {
    min-height: 90px;
}

.features-section .course-name {
    font-size: 12px;
    font-weight: 400;
    color: #292524;
    line-height: 1.4;
}

/* インタビューアイテム（高さ揃え） */
.interview-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.interview-item > a,
.interview-item > .interview-text-banner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.interview-item img {
    width: 100%;
    height: auto;
}

/* インタビューテキストバナー */
.interview-text-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgb(253, 241, 243);
    border: 1px solid rgb(183, 33, 43);
    border-radius: 0;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    height: 100%;
}

a.interview-text-banner:hover {
    background-color: rgb(248, 225, 230);
}

.interview-text-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.interview-text-content > div {
    flex-grow: 1;
    line-height: 1.3;
}

.interview-text-content-no-link {
    display: block;
}

.interview-special-title {
    font-size: 13px;
    font-weight: 400;
    color: rgb(51, 51, 51);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.interview-text-body {
    color: rgb(183, 33, 43);
    font-size: 18px;
    line-height: 1.2;
}

/* 時間割セクション */
.schedule-wysiwyg .schedule-content {
    color: #57534e;
}

.schedule-wysiwyg .schedule-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-wysiwyg .schedule-content li {
    line-height: 1.5;
}

.schedule-wysiwyg .schedule-content p {
    margin: 0;
    line-height: 1.5;
}

.schedule-wysiwyg .schedule-content strong,
.schedule-wysiwyg .schedule-content b {
    font-weight: 500;
    color: #b7212b;
}

.schedule-wysiwyg .schedule-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
}

.schedule-wysiwyg .schedule-content th {
    background-color: rgb(183, 33, 43);
    color: white;
    border: 1px solid #e5e7eb;
    padding: 10px 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}

.schedule-wysiwyg .schedule-content th:first-child {
    border-top-left-radius: 10px;
}

.schedule-wysiwyg .schedule-content th:last-child {
    border-top-right-radius: 10px;
}

.schedule-wysiwyg .schedule-content td {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    color: rgb(70, 67, 68);
    font-weight: 500;
    line-height: 24px;
}

.schedule-wysiwyg .schedule-content td:first-child {
    background-color: rgb(243, 244, 246);
}

/* S-gen等の時間表示 */
.schedule-wysiwyg .schedule-content td small,
.schedule-wysiwyg .schedule-content td .time,
.schedule-wysiwyg .schedule-content td .time-display,
.time-display {
    display: block;
    color: rgb(106, 114, 130) !important;
    font-size: 12px !important;
    margin-top: 4px;
}

/* 昼休み */
.schedule-wysiwyg .schedule-content tr.lunch-break td,
.schedule-wysiwyg .schedule-content table tr.lunch-break td {
    background-color: rgb(248, 233, 234) !important;
    height: 39px !important;
    min-height: 39px !important;
}

/* ◯×記号（HTMLでspan.circle、span.crossクラスを使用） */
.schedule-wysiwyg .schedule-content td .circle,
.schedule-wysiwyg .schedule-content table td .circle,
.schedule-wysiwyg .schedule-content td span.circle {
    color: rgb(183, 33, 43) !important;
    font-weight: bold !important;
}

.schedule-wysiwyg .schedule-content td .cross,
.schedule-wysiwyg .schedule-content table td .cross,
.schedule-wysiwyg .schedule-content td span.cross {
    color: rgb(153, 161, 175) !important;
}

/* 追加の高詳細度セレクタ */
span.circle {
    color: rgb(183, 33, 43) !important;
    font-weight: bold !important;
}

span.cross {
    color: rgb(153, 161, 175) !important;
}

/* 最終行の角丸 */
.schedule-wysiwyg .schedule-content tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.schedule-wysiwyg .schedule-content tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/* アクセスセクションのアイコン円 */
#access .rounded-full {
    min-width: 40px !important;
    min-height: 40px !important;
    flex-shrink: 0 !important;
}

/* アクセスセクションの下余白 */
#access {
    padding-bottom: 48px !important;
}

/* 合格実績サブタイトル */
.results-subtitle {
    color: #57534e;
    font-size: 16px;
}

/* 合格実績注釈 */
.results-disclaimer {
    color: #807a72;
    text-align: center;
}

/* 合格実績タブ */
.results-tab {
    background-color: rgb(255, 255, 255);
    border: 1px solid #e7e5e4;
    color: #57534e;
}

.results-tab:hover:not(.active) {
    background-color: #f5f5f4;
}

.results-tab.active {
    color: white;
    border-color: transparent;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;
}

/* 合格実績パネル */
.results-panel {
    display: none;
}

.results-panel-box {
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.results-school-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.results-school-list:last-child {
    margin-bottom: 0;
}

.results-school-name {
    display: inline-block;
    color: #44403b;
    font-size: 14px;
    background-color: #fafaf9;
    border: 1px solid #f5f5f4;
    border-radius: 8px;
    padding: 6px 12px;
    line-height: 1.4;
}

.results-panel.active {
    display: block;
}

/* 試験タイプ別テキスト */
.exam-type-text {
    color: #807a72;
}

/* VOICEセクション */
.voice-exam-badge {
    background-color: #f5f5f4;
    border-radius: 4px;
}

.voice-success-label {
    background-color: #f5f5f4;
}

.voice-alma-mater {
    color: #807a72;
}

.voice-schools-list {
    color: #44403b;
}

/* よくある質問セクション */
.faq-accordion {
    margin: 0 auto;
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
    cursor: pointer;
    user-select: none;
    background-color: #fafaf9;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f5f4;
}

.faq-question:focus {
    outline: none;
}

.faq-icon {
    transform: rotate(0deg);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    overflow: hidden;
    padding-top: 1.25rem;
}

.faq-item.active .faq-answer {
    display: block !important;
}

.faq-q-label,
.faq-a-label {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-q-label {
    background-color: rgb(183, 33, 43);
    color: #FFF;
}

.faq-a-label {
    background-color: #e7e5e4;
    color: #292524;
}

.faq-answer {
    color: rgb(87, 83, 79);
}

.faq-answer p {
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: rgb(87, 83, 79);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer p:first-child {
    margin-top: 0;
}

/* FAQ回答内の不要なボックススタイルを削除 */
.faq-answer div,
.faq-answer p {
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.faq-answer div {
    padding: 0 !important;
    margin: 0 !important;
}

/* 空のpタグや余分な余白を削除 */
.faq-answer p:empty,
.faq-answer div:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.faq-answer br + br {
    display: none;
}

/* 余分な改行を制御 */
.faq-answer br:first-child,
.faq-answer br:last-child {
    display: none;
}

/* コンテンツの余白を正規化 */
.faq-answer > div:first-child {
    margin-top: 0 !important;
}

.faq-answer > div:last-child {
    margin-bottom: 0 !important;
}

/* FAQ内のTailwindクラスによる余分なpaddingを削除 */
.faq-answer *,
.faq-answer [class*="py-"],
.faq-answer [class*="md:py-"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 768px) {
    .faq-answer *,
    .faq-answer [class*="md:py-"] {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* 下部CTA - 見学・体験授業 */
.cta-trial-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: none;
    transition: all 0.5s;
}

.cta-trial-link:hover {
    box-shadow: none;
}

.cta-trial-link .cta-trial-bg {
    transition: transform 0.7s ease-out;
    background-size: cover !important;
    background-position: center !important;
}

.cta-trial-link:hover .cta-trial-bg {
    transform: scale(1.05);
}

.cta-trial-link .cta-button-bg {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.cta-trial-link:hover .cta-button-bg {
    background-color: rgba(255, 255, 255, 0.2);
}

.cta-trial-link .cta-arrow-icon {
    transition: transform 0.3s;
}

.cta-trial-link:hover .cta-arrow-icon {
    transform: translateX(0.25rem);
}

/* CTAカード - 資料請求・お問い合わせ（背景画像版） */
.cta-image-card {
    text-decoration: none;
    position: relative;
    box-shadow: none;
}

.cta-image-card:hover {
    box-shadow: none;
}

.cta-image-card .cta-card-bg {
    transition: transform 0.7s ease-out;
    background-size: cover !important;
    background-position: center !important;
}

.cta-image-card:hover .cta-card-bg {
    transform: scale(1.05);
}

.cta-image-card .cta-card-action {
    transition: all 0.3s;
}

.cta-image-card:hover .cta-card-action {
    background-color: rgba(255, 255, 255, 0.2);
}

.cta-image-card:hover .cta-card-action svg {
    transform: translateX(0.25rem);
}

/* CTA カードの矢印ホバー効果 */
.cta-image-card span svg {
    transition: transform 0.3s ease;
}

.cta-image-card:hover span svg {
    transform: translateX(4px);
}

/* ページネーション */
.pagination {
    margin-top: 2rem !important;
    min-height: 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.pagination * {
    box-sizing: border-box !important;
}

.pagination ul.page-numbers {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pagination ul.page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
}

.pagination a.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    background-color: #f5f5f5 !important;
    background-image: none !important;
    color: #666666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.pagination span.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 4px !important;
    background-color: #f5f5f5 !important;
    background-image: none !important;
    color: #666666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus,
.pagination a.page-numbers:active {
    background-color: #e5e7eb !important;
    background-image: none !important;
    color: #333333 !important;
    box-shadow: none !important;
    outline: none !important;
}

.pagination span.page-numbers.current,
.pagination span.page-numbers.current:hover,
.pagination span.page-numbers.current:focus,
.pagination span.page-numbers.current:active {
    background-color: #b7212b !important;
    background-image: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    outline: none !important;
}

.pagination span.page-numbers.dots,
.pagination span.page-numbers.dots:hover,
.pagination span.page-numbers.dots:focus,
.pagination span.page-numbers.dots:active {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    color: #666666 !important;
    box-shadow: none !important;
    outline: none !important;
}

.pagination-range-bottom {
    margin-top: 1rem !important;
    text-align: center !important;
    color: #666666 !important;
    font-size: 14px !important;
}

/* タブレット表示 (1023px以下) */
@media (max-width: 1023px) {
    .sidebar-wrapper {
        display: none !important;
    }

    .tomas-content-column {
        width: 100% !important;
        flex: none !important;
    }
}

/* Prefecture/Line Modal Styles */
.prefecture-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.prefecture-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.prefecture-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 675px;
    height: auto;
    max-height: 860px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.prefecture-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    background-color: #b7212b;
    border-bottom: none;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.prefecture-modal-header h3 {
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    flex: 1;
    text-align: left;
    padding-left: 12px;
    white-space: nowrap;
}

.prefecture-modal-back,
.prefecture-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.prefecture-modal-back:hover,
.prefecture-modal-close:hover {
    background-color: #8b1621;
}

.prefecture-modal-back {
    margin-right: auto;
    margin-left: 6px;
}

.prefecture-modal-close {
    margin-left: auto;
    margin-right: 6px;
}

.prefecture-modal-back svg,
.prefecture-modal-close svg {
    color: #ffffff;
}

.prefecture-modal-back svg {
    margin: 0 auto;
}

.prefecture-modal-body {
    padding: 24px;
    padding-bottom: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    /* Firefox scrollbar */
    scrollbar-width: thin !important;
    scrollbar-color: #b7212b #f5e5e7 !important;
}

/* Custom scrollbar for Chrome/Safari/Edge */
.prefecture-modal.prefecture-modal .prefecture-modal-body::-webkit-scrollbar {
    width: 8px !important;
}

.prefecture-modal.prefecture-modal .prefecture-modal-body::-webkit-scrollbar-track {
    background-color: #f5e5e7 !important;
    border-radius: 4px !important;
}

.prefecture-modal.prefecture-modal .prefecture-modal-body::-webkit-scrollbar-thumb {
    background-color: #b7212b !important;
    border-radius: 4px !important;
}

.prefecture-modal.prefecture-modal .prefecture-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #8b1621 !important;
}

.prefecture-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .prefecture-grid {
        gap: 16px;
    }
}

.prefecture-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    gap: 4px;
}

/* Level 1: Prefecture buttons */
.prefecture-item-level1 {
    height: 90px;
}

.prefecture-item-level1 .prefecture-count {
    color: #b7212b;
}

/* Level 2: City/Line buttons */
.prefecture-item-level2 {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.prefecture-item-level2 .prefecture-name {
    text-align: left;
}

.prefecture-item-level2 .prefecture-count {
    text-align: right;
}

/* Line group buttons - horizontal layout with icon */
.prefecture-item-line-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

.prefecture-item-line-group .prefecture-name {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.prefecture-item-line-group .prefecture-name svg {
    width: 20px;
    height: 20px;
    color: #b7212b;
    stroke: #b7212b;
    flex-shrink: 0;
    transition: all 0.2s;
}

.prefecture-item-line-group:hover .prefecture-name svg {
    color: #ffffff;
    stroke: #ffffff;
}

.prefecture-item-line-group .prefecture-count {
    text-align: right;
}

/* Line group list vertical layout */
#line-group-list {
    grid-template-columns: 1fr !important;
}

/* Line list vertical layout */
#line-list {
    grid-template-columns: 1fr !important;
}

.prefecture-item:hover {
    background: #b7212b;
    border-color: #b7212b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(183, 33, 43, 0.2);
}

.prefecture-item:hover .prefecture-name {
    color: #ffffff;
}

.prefecture-item:hover .prefecture-count {
    color: #ffffff;
}

.prefecture-name {
    font-size: 15px;
    font-weight: 500;
    color: #292524;
    transition: color 0.2s;
    text-align: center;
}

.prefecture-count {
    font-size: 13px;
    color: #999999;
    font-weight: normal;
    transition: color 0.2s;
    text-align: center;
}

.prefecture-modal-note {
    padding: 16px 24px;
    text-align: center;
    font-size: 13px;
    color: #666;
    background-color: #fafafa;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0 0 12px 12px;
}

/* Search button cursor */
.method-btn,
.flex.flex-col.items-center.justify-center {
    cursor: pointer;
}

/* Filter button active state */
.filter-btn {
    cursor: pointer;
}

.filter-btn.active {
    cursor: default;
}

/* School prefix (catchphrase) */
.school-prefix {
    color: #b7212b;
    font-size: 14px;
}

/* School access text */
.school-access-text {
    color: #706D6A;
    font-size: 14px;
}
