/* ===== PAGE-SPECIFIC STYLES FOR U-EXAM.HTML ===== */
/* Common styles are in common.css */


/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgb(31, 119, 252) 0%,rgb(0, 142, 243) 50%, rgb(31, 119, 252));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 160px;
    z-index: 100;
}

.hero-dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.hero-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* Shapes Container */
.shapes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

/* Animated Lines */
.animated-line {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.line-top-to-bottom {
    width: 3px;
    height: 250px;
    top: -250px;
    background: linear-gradient(to bottom, transparent, rgba(0, 163, 244, 0.8), rgba(66, 176, 255, 0.9), rgba(0, 163, 244, 0.8), transparent);
}

.line-left-to-right {
    width: 250px;
    height: 3px;
    left: -250px;
    background: linear-gradient(to right, transparent, rgba(0, 163, 244, 0.8), rgba(66, 176, 255, 0.9), rgba(0, 163, 244, 0.8), transparent);
}

.line-bottom-to-top {
    width: 3px;
    height: 250px;
    bottom: -250px;
    background: linear-gradient(to top, transparent, rgba(0, 163, 244, 0.8), rgba(66, 176, 255, 0.9), rgba(0, 163, 244, 0.8), transparent);
}

.line-right-to-left {
    width: 250px;
    height: 3px;
    right: -250px;
    background: linear-gradient(to left, transparent, rgba(0, 163, 244, 0.8), rgba(66, 176, 255, 0.9), rgba(0, 163, 244, 0.8), transparent);
}

.line-1 { left: 10%; }
.line-2 { top: 15%; }
.line-3 { right: 20%; }
.line-4 { bottom: 25%; }
.line-5 { left: 35%; }
.line-6 { top: 45%; }
.line-7 { right: 55%; }
.line-8 { bottom: 60%; }
.line-9 { left: 70%; }
.line-10 { top: 75%; }
.line-11 { right: 80%; }
.line-12 { bottom: 85%; }

@keyframes moveTopToBottom {
    0% {
        top: -250px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

@keyframes moveLeftToRight {
    0% {
        left: -250px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        left: 100vw;
        opacity: 0;
    }
}

@keyframes moveBottomToTop {
    0% {
        bottom: -250px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
    }
}

@keyframes moveRightToLeft {
    0% {
        right: -250px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        right: 100vw;
        opacity: 0;
    }
}

/* Hero Text Container */
.hero-text-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 60px;
    margin: 0 auto;
    height: 100%;
}

.hero-text-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex: 1;
    align-self: center;
}

.hero-image-right {
    flex: 1;
    align-self: flex-end;
    height: 100%;
}

.hero-svg-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: auto;
    z-index: 2;
}

.hero-svg-image {
    position: relative;
    width: auto;
    height: 340px;
    max-width: 255px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(30px) !important;
    animation: fadeInUp 0.8s ease-out forwards;
    bottom: 0;
    flex-shrink: 0;
}

/* Gradually reduce hero illustration size as viewport width decreases */
@media (max-width: 1600px) {
    .hero-svg-image {
        height: 320px;
        max-width: 230px;
    }
}

@media (max-width: 1400px) {
    .hero-svg-image {
        height: 300px;
        max-width: 210px;
    }
}


@media (max-width: 1280px) {
    .hero-svg-image {
        height: 280px;
        max-width: 195px;
    }
}

@media (max-width: 1200px) {
    .hero-svg-image {
        height: 260px;
        max-width: 185px;
    }
}

.hero-svg-1 {
    margin-left: 0;
    animation-delay: 0.1s;
    transform: translate(-30px, 30px) !important;
}

.hero-svg-2 {
    margin-left: -40px;
    animation-delay: 0.3s;
    transform: translate(30px, 30px) !important;
}

@media screen and (max-width: 768px) {
    .hero-svg-2 {
        transform: translate(0, 30px) !important;
    }
}

.hero-svg-3 {
    margin-left: -40px;
    animation-delay: 0.5s;
}

.hero-svg-4 {
    margin-left: -40px;
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-right-image-img {
    max-width: 100%;
    height: auto;
    width: 450px;
    object-fit: contain;
    animation: pulseScaleLarge 5s ease-in-out infinite;
}

@keyframes pulseScaleLarge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.hero-title-left {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin: 0;
    letter-spacing: 0.15em;
    text-align: left;
    width: auto;
    color: #1565C0;
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    text-shadow: 0 2px 10px rgba(0, 163, 244, 0.1);
}

.hero-title-main {
    display: inline-block;
    color: #ffffff;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.15em;
    margin: 0;
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    text-shadow: 0 2px 10px rgba(0, 163, 244, 0.1);
}

/* Hide br tag on PC and tablet */
.hero-title-main br {
    display: none;
}

/* Slightly shrink title and illustrations around 1315px width */
@media (max-width: 1315px) {
    .hero-title-main {
        font-size: 50px;
    }
    
    .hero-svg-image {
        height: 290px;
        max-width: 205px;
    }
}


.hero-subtitle {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 20px 0 0 0;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    text-shadow: 0 2px 10px rgba(0, 163, 244, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    font-size: 48px;
    color: #00A3F4;
    line-height: 1;
    animation: scrollBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.7;
    }
}

/* ===== TEACHERS INTRODUCTION SECTION ===== */
.teachers-intro-section {
    position: relative;
    width: 100%;
    padding: 120px 40px;
    box-sizing: border-box;
}

.teachers-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.teachers-intro-content {
    text-align: center;
}

.teachers-intro-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.teachers-title-bg {
    position: relative;
    font-size: 120px;
    font-weight: 700;
    color: #bbd4ff4f;
    line-height: 1;
    letter-spacing: 0.05em;
    font-family: DINNextLTPro-UltraLight, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.teachers-title-bg.visible {
    opacity: 1;
    transform: translateY(0);
}

.teachers-intro-text {
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin: 0;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
}

.teachers-intro-text strong {
    font-size: 1.15em;
    font-weight: 700;
    color: #1bb8ce;
}

/* ===== TEACHERS SECTION ===== */
.teachers-section {
    position: relative;
    width: 100%;
    padding: 0 40px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.teachers-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 30px;
    padding: 60px;
    box-sizing: border-box;
}

.teachers-top {
    margin-bottom: 60px;
}

.teachers-title-bg {
    font-size: 42px;
    font-weight: 700;
    color: #1bb8ce;
    line-height: 1.4;
    letter-spacing: 0.08em;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    text-align: left;
    pointer-events: none;
    white-space: nowrap;
}

/* Teachers Grid Layout */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    padding: 40px 0;
}

.teacher-grid-item {
    display: flex;
    justify-content: center;
}

.teacher-grid-item .teacher-card {
    width: 100%;
}

@media (max-width: 1200px) {
    .teachers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px 0;
}
}

@media (max-width: 580px) {
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px 0;
    }
    
    .teacher-card {
        width: 100%;
        max-width: 100%;
    }
    
    .teachers-container {
        padding: 0 15px;
    }
}

.teacher-card {
    position: relative;
    background: transparent;
    border-radius: 16px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.teacher-card:hover {
    box-shadow: 0 2px 8px rgba(176, 212, 255, 0.3);
}



.teacher-image-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: transparent;
    padding: 0;
    margin-bottom: 12px;
    box-shadow: none;
    z-index: 1;
}

.teacher-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.teacher-subject {
    margin: 0 0 12px 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.teacher-subject-item {
    font-size: 10px;
    font-weight: 400;
    color: #333333;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 4px 10px;
    display: inline-block;
}

.teacher-name-jp-hiragana {
    position: relative;
    font-size: 10px;
    font-weight: 400;
    color: #999999;
    margin: 0 0 2px 0;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.2;
}

.teacher-name-jp {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
}


.teacher-name-en {
    position: relative;
    font-size: 10px;
    font-weight: 400;
    color: #999999;
    margin: 0 0 12px 0;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
}

.teacher-tag {
    display: inline-block;
    background: #e0e0e0;
    color: #333333;
    font-size: 10px;
    font-weight: 400;
    padding: 5px 5px;
    border-radius: 20px;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    text-align: center;
    box-sizing: border-box;
    flex: 0 0 60px;
    max-width: 60px;
    min-width: 60px;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.teacher-tag-wide {
    flex: 0 0 70px;
    max-width: 70px;
    min-width: 70px;
    white-space: normal;
    line-height: 1.2;
}

.teacher-tag-singleline {
    -webkit-line-clamp: 1;
    white-space: nowrap;
}

.teacher-tag-multiline {
    -webkit-line-clamp: 2;
}

.teacher-reference-books {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
}

.teacher-reference-book-tag {
    display: inline-block;
    background: #f5f5f5;
    color: #666666;
    font-size: 9px;
    font-weight: 400;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #d0d0d0;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    text-align: center;
    box-sizing: border-box;
    flex: 0 0 calc(40% - 8px);
    max-width: calc(40% - 8px);
    line-height: 1.2;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.teacher-reference-book-tag-singleline {
    -webkit-line-clamp: 1;
    white-space: nowrap;
}

.teacher-reference-book-tag-multiline {
    -webkit-line-clamp: 2;
}

/* ===== BOOKS INTRODUCTION SECTION ===== */
.books-intro-section {
    position: relative;
    width: 100%;
    padding: 120px 40px;
    box-sizing: border-box;
}

.books-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.books-intro-content {
    text-align: center;
}

.books-intro-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.books-title-bg {
    position: relative;
    font-size: 42px;
    font-weight: 700;
    color: #1bb8ce;
    line-height: 1.4;
    letter-spacing: 0.08em;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.books-title-bg.visible {
    opacity: 1;
    transform: translateY(0);
}

.books-release-date-note {
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    margin: 8px 0 0 0;
    text-align: center;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
}

.books-intro-text {
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin: 0;
    font-family: 'I-OTFゴシックオールドPro M{pm}', '游ゴシック Medium', '游ゴシック Medium', 'Yu Gothic Medium', '游ゴシック体', YuGothic, 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
}

.books-intro-text strong {
    font-size: 1.15em;
    font-weight: 700;
    color: #1bb8ce;
}

/* ===== BOOKS SECTION ===== */
.books-section {
    position: relative;
    width: 100%;
    padding: 0 40px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.books-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 30px;
    padding: 60px;
    box-sizing: border-box;
}

/* ===== DOTS BACKGROUND ===== */
.teachers-dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.teachers-dot {
    position: absolute;
    width: 1px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* ===== ANIMATED LINES ===== */
.animated-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.line {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
}

/* Horizontal lines */
.line-horizontal {
    width: 100%;
    height: 1px;
}

.line-horizontal.line-1 {
    top: 15%;
    animation: moveHorizontal1 6s ease-in-out infinite;
}

.line-horizontal.line-2 {
    top: 50%;
    animation: moveHorizontal2 8s ease-in-out infinite;
}

.line-horizontal.line-3 {
    top: 85%;
    animation: moveHorizontal3 7s ease-in-out infinite;
}

/* Vertical lines */
.line-vertical {
    width: 1px;
    height: 100%;
}

.line-vertical.line-4 {
    left: 15%;
    animation: moveVertical1 7s ease-in-out infinite;
}

.line-vertical.line-5 {
    left: 50%;
    animation: moveVertical2 9s ease-in-out infinite;
}

.line-vertical.line-6 {
    left: 85%;
    animation: moveVertical3 8s ease-in-out infinite;
}

@keyframes moveHorizontal1 {
    0%, 100% {
        transform: translateX(-100%);
}
    50% {
        transform: translateX(100%);
}
}

@keyframes moveHorizontal2 {
    0%, 100% {
        transform: translateX(100%);
}
    50% {
        transform: translateX(-100%);
    }
}

@keyframes moveHorizontal3 {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
}
}

@keyframes moveVertical1 {
    0%, 100% {
        transform: translateY(-100%);
}
    50% {
        transform: translateY(100%);
}
}

@keyframes moveVertical2 {
    0%, 100% {
        transform: translateY(100%);
    }
    50% {
        transform: translateY(-100%);
    }
}

@keyframes moveVertical3 {
    0%, 100% {
        transform: translateY(-100%);
}
    50% {
        transform: translateY(100%);
    }
}

/* Books Grid Layout */
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 80px;
    width: 100%;
    padding: 40px 0;
}

.book-grid-item {
    display: flex;
    justify-content: center;
}

.book-grid-item .book-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.book-grid-item .book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px;
}
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 55px;
        padding: 20px 0;
    }
}

@media (max-width: 580px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 15px 0;
    }
}

.book-image-wrapper {
    width: 100%;
    height: auto;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.book-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    object-fit: cover;
}

/* Footer and Sidebar styles are in common.css */
/* News Section styles are in common.css */

/* ===== RESPONSIVE ===== */
/* 1103px以下: SVG を下、テキストを中央に配置（これより小さい幅でもレイアウトは維持） */
@media (max-width: 1103px) {
    .hero-section {
        height: 100vh;
        padding-top: 80px;
    }
    
    .hero-image-right {
        display: none;
    }
    
    .hero-text-container {
        width: 100%;
        max-width: 100%;
        padding: 0 40px;
        justify-content: center;
        align-items: center;
    }
    
    .hero-text-left {
        align-items: center;
        margin-bottom: 25%;
    }
    
    .hero-title-left {
        text-align: center;
        width: 100%;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-svg-container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0 10px;
        box-sizing: border-box;
        transform: none;
    }
    
    .hero-svg-image {
        position: relative;
        margin-left: -20px;
    }
    
    .hero-svg-image:first-child {
        margin-left: 0;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 0 20px;
        height: 80px;
        top: 20px;
    }
    
    .header-container {
        height: 80px;
        padding: 0 20px;
    }
    
    /* hero-section の高さやテキスト配置は 1103px 以下の設定を維持 */
    .logo-image {
        height: 60px;
        max-width: 240px;
    }
    
    /* Mobile menu toggle styles are in common.css */
    
    .header-right {
        display: none;
    }
    
    .hero-text-container {
        padding: 0 40px;
        justify-content: flex-start;
    }
    
    .hero-text-left {
        align-items: center;
    }
    
    .hero-title-left {
        text-align: left;
        width: auto;
    }
    
    .hero-title-main {
        font-size: 60px;
        letter-spacing: 0.12em;
    }
    
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 0.02em;
    }
    
    .hero-svg-image {
        height: 280px;
        max-width: 200px;
    }

    
    .hero-svg-3 {
        margin-left: -30px;
    }
    
    .hero-svg-4 {
        margin-left: -30px;
    }
    
    .hero-right-image-img {
        width: 300px;
    }
    
    .teachers-section {
        padding: 0 30px 60px;
    }
    
    .books-section {
        padding: 0 30px 60px;
    }
    
    .teachers-title-bg {
        font-size: 40px;
    }
    
    .teacher-image-wrapper {
        width: 140px;
        height: 140px;
        aspect-ratio: 1 / 1;
    }
    
    .teacher-subject-item {
        font-size: 9px;
        padding: 3px 10px;
    }
    
    .books-title-bg {
        font-size: 40px;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 75px;
        margin-bottom: 60px;
    }
    
    /* Footer responsive styles are in common.css */
    /* News Section responsive styles are in common.css */
}

/* Additional breakpoint for gradual size reduction */
@media (max-width: 900px) {
    .hero-svg-image {
        height: 190px;
        max-width: 150px;
    }
    

}

@media (max-width: 768px) {
    .hero-text-container {
        padding: 0 20px;
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-text-left {
        align-items: center;
        margin-bottom: 30%;
    }
    
    .hero-title-left {
        text-align: center;
        width: 100%;
    }
    
    .hero-title-main {
        font-size: 40px;
        letter-spacing: 0.1em;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 13px;
        letter-spacing: 0.015em;
        margin: 15px 0 0 0;
    }
    
    .scroll-arrow {
        font-size: 40px;
    }
    
    .hero-image-right {
        display: none;
    }
    
    .hero-text-container {
        padding: 0 15px 0 20px;
    }
    
    .hero-svg-container {
        padding-right: 5px;
    }
    
    .hero-svg-image {
        position: relative;
        height: 240px;
        max-width: 170px;
        margin-left: -25px;
    }
    
    .hero-svg-image:first-child {
        margin-left: 0;
    }
    
    .hero-svg-2 {
        margin-left: -25px;
    }
    
    .hero-svg-3 {
        margin-left: -25px;
    }
    
    .hero-svg-4 {
        margin-left: -25px;
    }

    .hero-right-image-img {
        width: 250px;
        max-width: 80%;
    }
    
    .teachers-intro-section {
        padding: 80px 30px;
    }

    .sp-none {
        display: none;
    }
    
    .teachers-intro-text {
        font-size: 14px;
    }
    
    .books-intro-section {
        padding: 80px 30px;
    }
    
    .books-title-bg {
        font-size: 40px;
    }
    
    .books-intro-text {
        font-size: 14px;
    }
    .hero-image-right {
        display: none;
    }
    .teachers-section {
        padding: 0 30px 50px;
    }
    
    .books-section {
        padding: 0 30px 50px;
    }
    
    .teacher-image-wrapper {
        width: 120px;
        height: 120px;
        aspect-ratio: 1 / 1;
    }
    
    .teacher-subject-item {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .books-title-bg {
        font-size: 40px;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        margin-bottom: 50px;
    }
    
    /* Footer responsive styles are in common.css */
    /* News Section responsive styles are in common.css */
}

@media (max-width: 580px) {
    .header {
        padding: 0 15px;
        height: 70px;
        top: 15px;
    }
    
    .header-container {
        height: 70px;
        padding: 0 15px;
    }
    
    .hero-section {
        padding-top: 70px;
        height: 100vh;
    }
    
    .logo-image {
        height: 40px;
        max-width: 160px;
    }
    
    .hero-text-container {
        padding: 0 20px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-text-left {
        align-items: center;
    }
    
    .hero-title-left {
        text-align: center;
        width: 100%;
    }
    
    .hero-title-main {
        font-size: 32px;
        letter-spacing: 0.08em;
        text-align: center;
        line-height: 1.4;
    }

    
    .hero-svg-container {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        padding: 0 2px;
        box-sizing: border-box;
        gap: 0;
        transform: none;
    }
    
    .hero-svg-image {
        position: relative;
        height: 140px;
        width: auto;
        max-width: calc(25% - 2px);
        min-width: 0;
        flex: 1 1 calc(25% - 2px);
        margin-left: 0;
        object-fit: contain;
        display: block;
    }
    
    .hero-svg-image:first-child {
        margin-left: 0;
    }
    
    .hero-svg-1 {
        height: 135px;
        right: auto;
    }
    
    .hero-svg-2 {
        right: auto;
        height: 140px;
    }
    
    .hero-svg-3 {
        right: auto;
        height: 130px;
    }
    
    .hero-svg-4 {
        right: auto;
        height: 140px;
    }
    
    /* Show br tag on mobile */
    .hero-title-main br {
        display: block;
    }
    
    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 0.015em;
        margin: 15px 0 0 0;
        text-align: center;
    }
    
    .scroll-indicator {
        bottom: 25px;
    }
    
    .scroll-arrow {
        font-size: 36px;
    }
    
    .teachers-intro-section {
        padding: 60px 20px;
    }
    

    
    .teachers-intro-text {
        font-size: 13px;
    }
    
    .teachers-intro-text br {
        display: none;
    }
    
    .books-intro-section {
        padding: 60px 20px;
    }
    
    
    .books-intro-text {
        font-size: 13px;
    }
    
    .books-intro-text br {
        display: none;
    }
    
    .teachers-section {
        padding: 0 20px 40px;
    }
    
    .books-section {
        padding: 0 20px 40px;
    }
    
    .teachers-title-bg {
        font-size: 28px;
    }
    
    .teachers-container {
        padding: 0;
        border: none;
        background: transparent;
        border-radius: 0;
    }
    
    .books-container {
        padding: 0;
        border: none;
        background: transparent;
        border-radius: 0;
    }
    
    .teacher-card {
        box-shadow: none;
    }
    
    .teachers-swiper .swiper-slide-active .teacher-card {
        box-shadow: none;
    }
    
    .teacher-image-wrapper {
        width: 150px;
        height: 150px;
        aspect-ratio: 1 / 1;
    }
    
    .teacher-subject-item {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    .teacher-name-jp-hiragana {
        font-size: 9px;
    }
    
    .teacher-name-jp {
        font-size: 18px;
    }
    
    .teacher-name-en {
        font-size: 9px;
        color: #999999;
    }
    
    .teacher-tag {
        font-size: 10px;
        padding: 5px 5px;
        flex: 0 0 60px;
        max-width: 60px;
        min-width: 60px;
        display: inline-block;
        white-space: nowrap;
    }
    
    .teacher-tag-wide {
        flex: 0 0 70px;
        max-width: 70px;
        min-width: 70px;
    }
    
    .teacher-tag-singleline {
        -webkit-line-clamp: 1;
        white-space: nowrap;
    }
    
    .teacher-tag-multiline {
        -webkit-line-clamp: 2;
    }
    
    .teacher-reference-books {
        gap: 6px;
        margin-top: 6px;
    }
    
    .teacher-reference-book-tag {
        font-size: 9px;
        padding: 1.5px 5px;
        flex: 0 0 calc(33.333% - 4px);
        max-width: calc(33.333% - 4px);
        display: inline-block;
        line-height: 1.2;
    }
    
    .teacher-reference-book-tag-singleline {
        -webkit-line-clamp: 1;
        white-space: nowrap;
    }
    
    .teacher-reference-book-tag-multiline {
        -webkit-line-clamp: 2;
    }
    
    .teacher-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        margin-top: 10px;
    }
    
    .books-title-bg {
        font-size: 28px;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 55px;
        margin-bottom: 50px;
    }
    
    .book-card {
        max-width: 100%;
    }
    
    .book-image-wrapper {
        max-width: 100%;
    }
    
    .book-image {
        max-width: 100%;
    }
    
    
    /* News Section responsive styles are in common.css */
}
