/* ================================================
   Single School Page Styles
   ================================================ */

/* カスタムカラー変数 */
:root {
    --main-color: #5D020A;
    --accent-color: #F8F9FA;
    --text-color: #1A1E22;
    --gray-text: #6B7280;
    --border-color: #E5E7EB;
    --bg-light-gray: #F9FAFB;
    --yellow-cta: #FBBF24;
    --slate-navy: #303D49;
}

/* ================================================
   Hero Section
   ================================================ */
.school-hero-section {
    background: linear-gradient(to right, #F3F4F6, #E5E7EB);
    padding: 4rem 0;
    color: var(--text-color);
}

.school-hero-section__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.school-hero-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .school-hero-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.school-hero-section__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.school-hero-section__thumbnail {
    margin-bottom: 0.5rem;
}

.school-hero-section__thumbnail-img {
    height: 5.6rem;
    width: auto;
    max-width: 360px;
    object-fit: contain;
}

.school-hero-section__title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 767px) {
    .school-hero-section__title {
        font-size: 1.75rem;
    }
}

.school-hero-section__catchphrase {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
}

.school-hero-section__rating {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.school-hero-section__stars {
    color: #FBBF24;
    font-size: 1.5rem;
}

.school-hero-section__rating-text {
    margin-left: 0.5rem;
    font-size: 1.125rem;
}

.school-hero-section__cta-box {
    background-color: rgba(93, 2, 10, 0.9);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.school-hero-section__cta-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: white;
}

.school-hero-section__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.school-hero-section__cta-primary,
.school-hero-section__cta-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.school-hero-section__cta-primary {
    background-color: #FBBF24;
    color: #1A1E22;
}

.school-hero-section__cta-primary:hover {
    background-color: #F59E0B;
}

.school-hero-section__cta-secondary {
    background-color: white;
    color: #1A1E22;
}

.school-hero-section__cta-secondary:hover {
    background-color: #E5E7EB;
}

/* ================================================
   Tab Navigation
   ================================================ */
.school-tab-nav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.school-tab-nav__inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.school-tab-nav__list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.school-tab-nav__list::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .school-tab-nav__list {
        gap: 2rem;
    }
}

.school-tab-nav__link {
    padding: 1rem 0.5rem;
    border-bottom: 2px solid transparent;
    font-weight: 700;
    color: var(--gray-text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.school-tab-nav__link:hover {
    color: #374151;
    border-bottom-color: #D1D5DB;
}

.school-tab-nav__link--active {
    color: var(--slate-navy);
    border-bottom-color: var(--slate-navy);
}

/* ================================================
   Content Wrapper
   ================================================ */
.school-content-wrapper {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1rem;
}

/* ================================================
   Overview Section
   ================================================ */

/* 投稿本文コンテンツ（Gutenbergブロック対応） */
.school-overview-section__content {
    max-width: 56rem;
    margin: 0 auto 3rem;
    line-height: 1.8;
    color: var(--text-color);
}

.school-overview-section__content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--main-color);
    color: var(--text-color);
}

.school-overview-section__content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--text-color);
}

.school-overview-section__content p {
    margin-bottom: 1.25rem;
}

.school-overview-section__content ul,
.school-overview-section__content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 0.5rem;
}

.school-overview-section__content li {
    margin-bottom: 0.5rem;
}

.school-overview-section__content ul li {
    list-style: disc;
}

.school-overview-section__content ol li {
    list-style: decimal;
}

/* テーブルスタイル */
.school-overview-section__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.school-overview-section__content table th,
.school-overview-section__content table td {
    padding: 1rem;
    text-align: left;
}

.school-overview-section__content table th {
    background-color: var(--bg-light-gray);
    font-weight: 700;
    width: 30%;
}

.school-overview-section__content table tr {
    border-bottom: 1px solid var(--border-color);
}

.school-overview-section__content table tr:last-child {
    border-bottom: none;
}

/* ブロッククォート */
.school-overview-section__content blockquote {
    border-left: 4px solid var(--main-color);
    background-color: var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

/* 強調テキスト */
.school-overview-section__content strong {
    font-weight: 700;
    color: var(--text-color);
}

/* リンク */
.school-overview-section__content a {
    color: var(--main-color);
    text-decoration: underline;
}

.school-overview-section__content a:hover {
    text-decoration: none;
}

/* --- 旧テンプレート用（後方互換性） --- */
.school-overview-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .school-overview-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.school-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* 特徴リスト */
.school-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.school-feature-item {
    display: flex;
    align-items: flex-start;
}

.school-feature-item__icon {
    width: 2rem;
    height: 2rem;
    color: var(--main-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.school-feature-item__content {
    flex: 1;
}

.school-feature-item__title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.school-feature-item__description {
    color: var(--gray-text);
    line-height: 1.6;
}

/* 基本情報表 */
.school-info-table {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.school-info-table table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.school-info-table th,
.school-info-table td {
    padding: 1rem;
}

.school-info-table th {
    background-color: var(--bg-light-gray);
    font-weight: 700;
    width: 33.333%;
}

.school-info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.school-info-table tr:last-child {
    border-bottom: none;
}

/* 詳細説明 */
.school-overview-section__description {
    margin-top: 4rem;
}

.school-overview-section__description-content {
    line-height: 1.8;
    color: var(--text-color);
}

/* ================================================
   CTA Block
   ================================================ */
.school-cta-block {
    margin-top: 4rem;
    padding: 3rem 0;
    background-color: var(--accent-color);
    border-radius: 0.5rem;
}

.school-cta-block__inner {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.school-cta-block__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-color);
}

.school-cta-block__description {
    margin-top: 1rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.school-cta-block__buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .school-cta-block__buttons {
        flex-direction: row;
    }
}

.school-cta-block__btn-primary,
.school-cta-block__btn-secondary {
    padding: 0.75rem 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.school-cta-block__btn-primary {
    background-color: var(--main-color);
    color: white;
    border: none;
}

.school-cta-block__btn-primary:hover {
    background-color: #4a0208;
}

.school-cta-block__btn-secondary {
    background-color: white;
    border: 1px solid var(--main-color);
    color: var(--main-color);
}

.school-cta-block__btn-secondary:hover {
    background-color: var(--bg-light-gray);
}

/* ================================================
   Reviews Section
   ================================================ */
.school-reviews-section {
    padding-bottom: 4rem;
}

.school-reviews-section__title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.school-reviews-section__subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

/* 総合評価ブロック */
.school-reviews-summary {
    margin-bottom: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.school-reviews-summary__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .school-reviews-summary__grid {
        grid-template-columns: 1fr 2fr;
    }
}

.school-reviews-summary__overall {
    text-align: center;
}

.school-reviews-summary__label {
    font-size: 1.125rem;
    color: var(--text-color);
}

.school-reviews-summary__rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--main-color);
    margin: 0.5rem 0;
}

.school-reviews-summary__stars {
    display: flex;
    justify-content: center;
    color: #FBBF24;
    font-size: 1.5rem;
}

.school-reviews-summary__count {
    color: var(--gray-text);
    margin-top: 0.5rem;
}

/* 星の分布バー */
.school-reviews-summary__distribution {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.school-reviews-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.school-reviews-bar__label {
    width: 3rem;
    flex-shrink: 0;
}

.school-reviews-bar__track {
    width: 100%;
    background-color: #E5E7EB;
    border-radius: 9999px;
    height: 1rem;
    overflow: hidden;
}

.school-reviews-bar__fill {
    background-color: #FBBF24;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.school-reviews-bar__percentage {
    width: 3rem;
    text-align: right;
    flex-shrink: 0;
}

/* レビュー一覧 */
.school-reviews-list-section {
    margin-bottom: 3rem;
}

.school-reviews-list-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.school-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* レビューカード（吹き出し風） */
.school-review-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

/* 吹き出しの三角形 */
.school-review-card::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: white;
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.school-review-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.school-review-card__stars {
    color: #FBBF24;
    font-size: 1.125rem;
}

.school-review-card__title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-color);
    margin: 0;
}

.school-review-card__content {
    color: #374151;
    line-height: 1.7;
    margin: 1rem 0;
}

.school-review-card__meta {
    text-align: right;
    font-size: 0.875rem;
    color: var(--gray-text);
    margin-top: 1rem;
}

/* レビュー投稿CTA */
.school-reviews-cta {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--accent-color);
    border-radius: 0.5rem;
}

.school-reviews-cta__inner {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.school-reviews-cta__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.school-reviews-cta__description {
    margin-top: 0.5rem;
    color: var(--gray-text);
}

.school-reviews-cta__button {
    margin-top: 1.5rem;
    background-color: var(--main-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.school-reviews-cta__button:hover {
    background-color: #4a0208;
}

.school-reviews-cta__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================================
   Interview Section - List View
   ================================================ */
.school-interviews-list-section {
    padding-bottom: 4rem;
}

.school-interviews-list-section__title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.school-interviews-list-section__subtitle {
    text-align: center;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

/* Grid */
.school-interviews-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .school-interviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .school-interviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.school-interview-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.school-interview-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.school-interview-card__photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.school-interview-card__photo--placeholder {
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.school-interview-card__body {
    padding: 1.5rem;
}

.school-interview-card__category {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.school-interview-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.school-interview-card__name {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.school-interview-card__details {
    font-size: 0.875rem;
    color: var(--gray-text);
}

/* Empty State */
.school-interviews-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.school-interviews-empty__message {
    font-size: 1.125rem;
    color: var(--gray-text);
}

/* ================================================
   Interview Modal
   ================================================ */
.school-interview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.school-interview-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

.school-interview-modal__container {
    position: relative;
    width: 100%;
    max-width: 56rem;
    max-height: 90vh;
    margin: 5vh auto;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.school-interview-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.school-interview-modal__close:hover {
    background-color: #f3f4f6;
}

.school-interview-modal__content-wrapper {
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal Header */
.school-interview-modal-header {
    background-color: var(--accent-color);
    padding: 3rem 2rem;
    text-align: center;
}

.school-interview-modal-category {
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.school-interview-modal-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0.5rem 0 2rem;
}

@media (max-width: 767px) {
    .school-interview-modal-title {
        font-size: 1.5rem;
    }
}

.school-interview-modal-photo {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.school-interview-modal-photo--placeholder {
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.school-interview-modal-name {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-color);
}

.school-interview-modal-meta {
    color: var(--gray-text);
    margin-top: 0.25rem;
}

/* Modal Body */
.school-interview-modal-body {
    padding: 3rem 2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.school-interview-modal-body p {
    margin-bottom: 1.5rem;
}

.school-interview-modal-body strong {
    font-weight: 700;
    margin-top: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.school-interview-modal-body blockquote {
    border-left: 4px solid var(--slate-navy);
    background-color: var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.school-interview-modal-body blockquote p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Old Interview Section Styles (keep for backward compatibility) */
.school-interview-section {
    padding-bottom: 4rem;
}

/* Hero */
.school-interview-hero {
    background-color: var(--accent-color);
}

.school-interview-hero__inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

.school-interview-hero__category {
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.school-interview-hero__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
    line-height: 1.3;
    color: var(--text-color);
}

@media (max-width: 767px) {
    .school-interview-hero__title {
        font-size: 1.75rem;
    }
}

.school-interview-hero__photo {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    margin: 2rem auto 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.school-interview-hero__photo--placeholder {
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.school-interview-hero__name {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-color);
}

.school-interview-hero__meta {
    color: var(--gray-text);
    margin-top: 0.25rem;
}

/* Content */
.school-interview-content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.school-interview-article {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-color);
}

.school-interview-article p {
    margin-bottom: 1.5rem;
}

.school-interview-question {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.school-interview-quote,
.school-interview-article blockquote {
    border-left: 4px solid var(--slate-navy);
    background-color: var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.school-interview-quote p,
.school-interview-article blockquote p {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* 関連インタビュー */
.school-interview-related {
    margin-top: 4rem;
}

.school-interview-related__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
}

.school-interview-related__slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.school-interview-related__slider::-webkit-scrollbar {
    display: none;
}

.school-interview-related__card {
    flex-shrink: 0;
    width: 20rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s;
}

.school-interview-related__card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.school-interview-related__image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
}

.school-interview-related__image--placeholder {
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.school-interview-related__body {
    padding: 1rem;
}

.school-interview-related__card-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.4;
}

/* ================================================
   Courses Section
   ================================================ */
.school-courses-section {
    padding-bottom: 4rem;
}

.school-courses-content {
    line-height: 1.8;
    max-width: 56rem;
    margin: 0 auto;
}

/* コース見出し（h2） */
.school-courses-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--main-color);
    color: var(--text-color);
}

.school-courses-content h2:first-child {
    margin-top: 0;
}

/* コース名（h3） */
.school-courses-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--main-color);
    margin: 1.5rem 0 0.75rem;
}

/* 段落 */
.school-courses-content p {
    margin: 0.5rem 0 1rem;
    color: var(--text-color);
}

/* リスト */
.school-courses-content ul,
.school-courses-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 0.5rem;
}

.school-courses-content li {
    margin-bottom: 0.5rem;
}

/* セパレーター */
.school-courses-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* テーブル */
.school-courses-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.school-courses-content table thead tr {
    background-color: var(--main-color);
    color: white;
}

.school-courses-content table th {
    padding: 1rem;
    font-weight: 700;
    text-align: left;
}

.school-courses-content table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.school-courses-content table tbody tr:nth-child(even) {
    background-color: var(--bg-light-gray);
}

.school-courses-content table tbody tr:hover {
    background-color: #F3F4F6;
}

/* figureのマージンリセット */
.school-courses-content figure {
    margin: 1.5rem 0;
}

/* Course Page Specific Styles */
.course-page-wrapper {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.course-page-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1A1E22;
}

.course-summary {
    background-color: #F8F9FA;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
}

.course-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.course-summary-item-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #5D020A;
    margin: 0;
}

.course-summary-item-label {
    color: #6B7280;
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
}

.course-list {
    margin-bottom: 2rem;
}

.course-list-inner {
    display: flex;
    flex-direction: column;
}

.course-card {
    background-color: white;
    padding: 40px 20px 1px 20px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
}

.course-card-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1A1E22;
}

.course-card-content p {
    color: #6B7280;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.course-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.course-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.course-tag-blue {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.course-tag-green {
    background-color: #D1FAE5;
    color: #065F46;
}

.course-tag-purple {
    background-color: #EDE9FE;
    color: #5B21B6;
}

.course-tag-yellow {
    background-color: #FEF3C7;
    color: #92400E;
}

.course-card-price {
    text-align: right;
    border-left: 1px solid #E5E7EB;
    padding-left: 2rem;
}

.course-card-duration {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0 0 0.5rem 0;
}

.course-card-amount {
    font-size: 1.875rem;
    font-weight: 700;
    color: #5D020A;
    margin: 0;
}

.course-comparison {
    margin-bottom: 2rem;
}

.course-comparison-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1A1E22;
}

.course-comparison-wrapper {
    overflow-x: auto;
}

.course-comparison-table {
    width: 100%;
    min-width: 600px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    border-collapse: collapse;
    text-align: center;
}

.course-comparison-table thead tr {
    background-color: #F8F9FA;
}

.course-comparison-table th,
.course-comparison-table td {
    padding: 1rem;
}

.course-comparison-table th {
    font-weight: 700;
}

.course-comparison-table tbody tr {
    border-top: 1px solid #E5E7EB;
}

.course-comparison-table tbody tr:nth-child(even) {
    background-color: #F9FAFB;
}

.course-comparison-table .row-label {
    font-weight: 700;
    text-align: left;
}

.course-comparison-available {
    color: #10B981;
    font-size: 2rem;
}

.course-comparison-unavailable {
    color: #9CA3AF;
    font-size: 2rem;
}

.course-cta {
    text-align: center;
    padding: 2rem;
    background-color: #5D020A;
    border-radius: 0.5rem;
    color: white;
}

.course-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.course-cta-text {
    margin: 0.5rem 0 1.5rem 0;
}

.course-cta-button {
    display: inline-block;
    background-color: white;
    color: #5D020A;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    text-decoration: none;
}

.course-cta-button:hover {
    background-color: #F3F4F6;
}

@media (max-width: 768px) {
    .course-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .course-card {
        grid-template-columns: 1fr;
    }
    
    .course-card-price {
        border-left: none;
        border-top: 1px solid #E5E7EB;
        padding-left: 0;
        padding-top: 1rem;
        text-align: center;
    }
    
    .course-page-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .course-page-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

/* Tailwind-like utility classes for courses page */
.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.bg-accent {
    background-color: var(--accent-color);
}

.bg-main {
    background-color: var(--main-color);
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #F9FAFB;
}

.text-\[\\#5D020A\],
.text-main {
    color: var(--main-color);
}

.text-white {
    color: white;
}

.text-gray-600 {
    color: var(--gray-text);
}

.text-green-500 {
    color: #10B981;
}

.text-gray-400 {
    color: #9CA3AF;
}

.text-blue-800 {
    color: #1E40AF;
}

.text-green-800 {
    color: #065F46;
}

.text-purple-800 {
    color: #5B21B6;
}

.text-yellow-800 {
    color: #92400E;
}

.bg-blue-100 {
    background-color: #DBEAFE;
}

.bg-green-100 {
    background-color: #D1FAE5;
}

.bg-purple-100 {
    background-color: #EDE9FE;
}

.bg-yellow-100 {
    background-color: #FEF3C7;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.border {
    border-width: 1px;
    border-color: var(--border-color);
}

.border-t {
    border-top-width: 1px;
    border-color: var(--border-color);
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.overflow-x-auto {
    overflow-x: auto;
}

.w-full {
    width: 100%;
}

.min-w-max {
    min-width: max-content;
}

.hover\\:bg-gray-200:hover {
    background-color: #E5E7EB;
}

@media (min-width: 768px) {
    .md\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .md\\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .md\\:text-right {
        text-align: right;
    }
}

/* Empty State */
.school-courses-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.school-courses-empty__message {
    font-size: 1.125rem;
    color: var(--gray-text);
}

/* ================================================
   FAQ Section
   ================================================ */
.school-faq-section {
    padding-bottom: 4rem;
}

.school-faq-content {
    line-height: 1.8;
    max-width: 56rem;
    margin: 0 auto;
}

/* FAQ見出しスタイル（h2） */
.school-faq-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--main-color);
    color: var(--text-color);
}

/* FAQ質問（h3） */
.school-faq-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    padding: 1.25rem 1.5rem;
    padding-left: 3.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Qラベル */
.school-faq-content h3::before {
    content: 'Q';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--main-color);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* FAQ回答（h3の直後の段落） */
.school-faq-content h3 + p {
    font-size: 1rem;
    color: var(--gray-text);
    margin: 0;
    padding: 1.25rem 1.5rem;
    padding-left: 3.5rem;
    background-color: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    line-height: 1.7;
}

/* Aラベル */
.school-faq-content h3 + p::before {
    content: 'A';
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    width: 1.75rem;
    height: 1.75rem;
    background-color: #6B7280;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* FAQ Page Specific Styles */
.faq-page-wrapper {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.faq-hero {
    background-color: var(--accent-color);
    padding: 3rem 0;
}

.faq-hero-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.faq-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--main-color);
    margin: 0 0 1rem 0;
}

.faq-hero-description {
    margin: 1rem auto 0;
    max-width: 48rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.faq-list {
    margin-bottom: 3rem;
}

.faq-list-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.faq-item[open] {
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s;
    color: var(--main-color);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 1rem;
    color: var(--gray-text);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--accent-color);
    border-radius: 0.5rem;
}

.faq-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.faq-cta-text {
    margin: 0.5rem 0 1.5rem 0;
    color: var(--gray-text);
}

.faq-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.faq-cta-button-primary {
    background-color: var(--main-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.faq-cta-button-primary:hover {
    background-color: #4a0208;
}

.faq-cta-button-secondary {
    background-color: white;
    color: var(--main-color);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: 1px solid var(--main-color);
}

.faq-cta-button-secondary:hover {
    background-color: #F3F4F6;
}

/* Empty State */
.school-faq-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.school-faq-empty__message {
    font-size: 1.125rem;
    color: var(--gray-text);
}

@media (min-width: 640px) {
    .faq-cta-buttons {
        flex-direction: row;
    }
}

/* ================================================
   Review Form Section
   ================================================ */
.school-review-form-section {
    margin-top: 3rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.school-review-form-section__inner {
    padding: 2rem;
}

.school-review-form-section__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.school-review-form-section__description {
    color: var(--gray-text);
    margin: 0 0 2rem 0;
}

/* Form Styles */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-form__label {
    font-weight: 700;
    color: var(--text-color);
}

.review-form__required {
    color: #EF4444;
}

.review-form__input,
.review-form__textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.review-form__input:focus,
.review-form__textarea:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(93, 2, 10, 0.1);
}

.review-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.review-form__hint {
    font-size: 0.875rem;
    color: var(--gray-text);
    margin: 0;
}

/* Star Rating */
.review-form__stars {
    display: flex;
    justify-content: flex-start;
    gap: 0.25rem;
}

.review-form__star-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-form__star-label {
    font-size: 2rem;
    color: #D1D5DB;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
}

.review-form__star-label:hover {
    transform: scale(1.1);
}

.review-form__star-label.active {
    color: #FBBF24;
}

/* Notice */
.review-form__notice {
    background-color: var(--bg-light-gray);
    padding: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-text);
}

.review-form__notice p {
    margin: 0;
}

.review-form__notice p + p {
    margin-top: 0.25rem;
}

/* Submit Button */
.review-form__submit {
    background-color: var(--main-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.review-form__submit:hover:not(:disabled) {
    background-color: #4a0208;
}

.review-form__submit:active:not(:disabled) {
    transform: scale(0.98);
}

.review-form__submit:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
}

/* Messages */
.review-form__message {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.review-form__message--success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.review-form__message--error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

/* ================================================
   Utilities
   ================================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

