/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
  --color-orange: #f7931e;
  --color-green:#3bb797;
  --color-grayBorder:#e6e6e6;
}
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}
ul,li{
    list-style: none;
    margin:0;
    padding:0;
}

section{
    padding:80px 0;
}
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}
img{
    max-width: 100%;
}
a{
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}
a:hover {
    transform: translateY(-3px);
}
.text-center{
    text-align: center;
}
.d-flex{
    display: flex;
}
.p-relative{
    position:relative;
}
.p-absolute{
    position:absolute;
}
.ttl-h2{
    display: flex;
    align-items: flex-end;
    margin-bottom: 36px;
    
}
.ttl-h2 .ttl-en{
    font-size:50px;
    line-height: 3.5rem;
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
    paint-order: stroke;
    color:#FFF;
    background: url(../img/line_ttl.png) no-repeat left bottom;
    background-size: 149px;
    padding-bottom: 16px;
}
.ttl-h2 .ttl-jp{
    font-size:16px;
    margin-left:16px;
    padding-bottom: 16px;
}
.ttl-h2-center{
    text-align: center;
    flex-direction: column;
    align-items: center;
}
.ttl-h2-center .ttl-en{
    background: url(../img/line_ttl.png) no-repeat center bottom;
    background-size: 120px;
    margin-bottom:20px;
}
.ttl-h2-center .ttl-jp{
    font-size:20px;
}

@media (max-width: 780px) {
    
    section{
        padding:40px 0;
    }
    .container {
        padding: 0 15px;
    }
    .ttl-h2{
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }
    .ttl-h2 .ttl-en{
        order:1;
        font-size: 30px;
        background-size: 80px;
        padding-bottom: 8px;
        line-height: 2rem;
    }
    .ttl-h2 .ttl-jp{
        order:0;
        margin:0px;
        padding:0px;
    }
    .ttl-h2-center{
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    .ttl-h2-center .ttl-en{
        order: 0;
        margin-bottom: 10px;
    }
    .ttl-h2-center .ttl-jp{
        margin:auto;
    }
}

@media (min-width: 781px) {
    .SP{
        display: none;
    }
}
@media (min-width: 1025px) {
    .TAB{
        display: none;
    }
}
@media (max-width: 480px) {
    .ttl-h2 .ttl-jp{
        font-size: 14px;
    }
}
.animation-overlay {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ef834a;
    z-index: 200;
}

/* opening (背景は持たない) */
/* .opening-animation {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000; 
  background: transparent;
  pointer-events: none;
}

.animation-content {
  position: relative;
  z-index: 3001;
  color: white;
} */

.opening-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    background: transparent;
    pointer-events: none;
}
.animation-content {
  position: relative;
  z-index: 3001;
  color: white;
   display: flex;
    flex-direction: column;
    align-items: center;
}





.vertical-text { margin-bottom: 30px; writing-mode: vertical-rl; }
.text-line { font-size: 2rem; font-weight: bold; margin:0 20px; opacity:0;
            visibility: hidden;
            transform: translateY(0);
            animation: slideIn 0.6s ease-out forwards; }
.text-line:nth-child(1){ animation-delay:0.5s; }
.text-line:nth-child(2){ animation-delay:1.0s; margin-top:40px; }
.text-line:nth-child(3){ animation-delay:1.5s; margin-top:120px; }

.animation-logo { margin-top:80px; text-align:center; opacity:0;
                 transform:scale(0.7); animation:logoAppear 0.8s ease-out 2.3s forwards; }
.logo-image{ width:60px; height:auto; }

.main-content {
  position: fixed;
  inset: 0;
  transform-origin: center center;
  transform: scale(0.1);
  opacity: 0;
  z-index: 2000; 
  will-change: transform, opacity;
}

.main-content.start-expand {
  animation: expandFromCenterFull 1.2s ease-out forwards;
}
.main-content.fixed-bg{
    position:fixed!important;
    z-index: -1;
}

/* keyframes（従来通り） */
@keyframes slideIn {
  0% { opacity:0; transform:translateY(-30px);visibility: visible; }
  100% { opacity:1; transform:translateY(0);visibility: visible; }
}
@keyframes logoAppear {
  0% { opacity:0; transform:scale(0.7); }
  100% { opacity:1; transform:scale(1); }
}
@keyframes expandFromCenterFull {
  0% { opacity:0; transform:scale(0.1); }
  50% { opacity:1; transform:scale(0.6); }
  100% { opacity:1; transform:scale(1); }
}
@keyframes fadeOrangeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
.fade-out {
    animation: fadeOrangeOut 0.8s ease forwards; /* forwards でアニメ後も反映 */
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .text-line {
        font-size: 2rem;
    }
    
    .logo-image {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .text-line {
        font-size: 1.5rem;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
}
/* Header */
.header {
    padding: 15px 30px;
    
    position: sticky;
    top: 0;
    z-index: 2100;
    background-color: rgba(255, 255, 255, 0.8);

}
.top-header{
    opacity: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 80px 0 20px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    position: relative;
    gap: 16px;
    align-items: center;
}
.logo .logo-icon {
    width: 48px;
    margin-top: 12px;
}
.logo h1 {
    font-family: 'Noto Serif JP',serif;
    font-size: 24px;
    line-height: 100%;
    font-weight: 600;
    color:#333;
}
.logo h1 span {
    display: block;
    font-size: 16px;
}
.red-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    top: 5px;
    right: 5px;
}

.school-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.school-corporation {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    margin: 0;
}

.school-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-nav {
    display: flex;
    gap: 30px;
}

.top-nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.top-nav a:hover {
    color: #ff6b35;
}

.bottom-nav {
    display: flex;
    gap: 30px;
}

.bottom-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bottom-nav a:hover {
    color: #ff6b35;
}

.menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 2000;
    position: absolute;
    right: 30px;
}

.menu-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-orange);
    text-transform: uppercase;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger span {
    width: 40px;
    height: 1px;
    margin-bottom: 6px;
    background: var(--color-orange);
    transition: all 0.3s ease;
}
.menu-button.active .hamburger span:first-child{
    transform: rotate(27deg) translate(2px, 5px);
}
.menu-button.active .hamburger span:last-child{
    transform: rotate(154deg) translate(-2px, 2px);
}
.menu-button.active .hamburger span:nth-child(2){
    display:none;
}

/* Accordion Menu */
.accordion-menu {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: calc(var(--vh) * 100);
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.accordion-menu.active {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
    text-transform: uppercase;
}

.menu-content {
    padding: 80px 60px 50px;
}

.main-menu {
    list-style: none;
    margin-bottom: 30px;
}

.menu-item .ac-menu,.menu-item > a{
    padding: 8px 0;
    font-weight: 600;
    cursor: pointer;
    position:relative;
}
.menu-item .ac-menu::before{
    content:'＋';
    border:1px solid #333333;
    width:24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    margin:auto;
    font-weight: bold;
}
.menu-item .ac-menu.active::before{
    content:'ー';
}
.menu-item-content{
    display: none;
    padding: 0 0 8px 16px;
}
.menu-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 20px 0;
}

.sub-links {
    margin-bottom: 30px;
}

.link-group {
    margin-bottom: 25px;
}

.link-group ul {
    list-style: none;
    display: flex;
    flex-wrap:wrap;
    gap: 0 16px;
}

.link-group li {
    margin-bottom: 8px;
    flex: 0 0 30%;
}

.link-group a {
    font-size: 13px;
    transition: color 0.3s ease;
}

.menu-social 
{
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-social h4 {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ff6b35;
}

.social-icon {
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.cta-btn {
    width:30%;
}

.arrow {
    font-size: 16px;
    font-weight: bold;
}
@media (max-width:900px) {
    .nav-section{
        display: none;
    }
}
@media (max-width: 768px) {
    .header{
        background: none;
        position: fixed;
        z-index: 3000;
        width: 100%;
        padding: 0;
        border-top: 8px #FFF solid;
    }
    .logo .logo-icon {
        width: 24px;
    }
    .logo h1{
        font-size:16px;
    }
    .logo h1 span{
        font-size:10px;
    }
    .menu-button {
        background: #FFF;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        border: 1px solid orange;
        padding: 5px 0;
        right: 8px;
    }
    .menu-text{
        font-size: 10px;
    }
    .hamburger span{
        width: 32px;
        margin-bottom: 3px;
    }
    .menu-content{
        padding: 60px 24px 20px;
    }
    .link-group li{
        flex: 0 0 46%;
    }
}
/* Hero Section */
.hero-section {
    position: relative;
    height: calc(100vh - 112px);
    overflow: hidden;
    padding:0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-image video {
    width: 100%;
    height: calc(var(--vh) * 100);
    object-fit: cover;
}
.hero-card-wrap{
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    position:relative;
    height: calc(100vh - 130px);

}
.hero-card {
    margin: 40px 40px 40px 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px;
    border-radius: 15px;
    max-width: 340px;
    overflow: hidden;
    z-index: 2001;
    opacity: 0;
    position: relative;
}

.card-image {
    margin:auto;
}
.hero-card::before {
    position: absolute;
    content: 'check';
    transform: rotate(-40deg);
    left: 6px;
    top: 12px;
    z-index: 2;
    color: #FFF;
}
.hero-card::after {
    content: '';
    background: var(--color-orange);
    width: 70px;
    height: 150px;
    position: absolute;
    top: -60px;
    left: -30px;
    transform: rotate(48deg);
    z-index: 1;
}
.hero-card-ttl{
    text-align: center;
    color:var(--color-orange);
    margin-bottom:8px;
    font-weight: bold;
}
.hero-card-close {
    cursor: pointer;
    color: #b3b3b3;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    right: 5%;
    top: 5%;
}
.sp-fixed-navi{
    position:fixed;
    bottom:0;
    width: 100%;
    background:#FFF;
    z-index: 100;
    background:url(../img/bg_sp_navi.png)no-repeat;
    background-size:100% 100%;
}
.sp-fixed-navi ul{
    display: flex;
}
.sp-fixed-navi li{
    flex: 1;
    text-align: center;
    border-image: linear-gradient(to right, #7f7fff, #7fff7f);
}
.sp-fixed-navi li a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:8px 0;
    font-size:12px;
}
.sp-fixed-navi li a span{
    display: flex;
    height: 23px;
    justify-content: center;
    align-items: center;
}
/* Section Titles */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b35;
    border-radius: 2px;
}

@media (max-width: 780px) {
    .logo-section {
        border-bottom-right-radius: 20px;
        padding: 0 20px 4px;
        background:#FFF;
        margin-top:-2px;
    }
    .navbar{
        padding:0;
    }
    .hero-card{
        max-width: 60%;
        border-radius: 15px;
        right: 0;
        margin:0;
    }
} 

/* Topics & News Section */
.btn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 40px;
}

.btn-item a{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    background:#FFF url(../img/icon_arrow.png) no-repeat 96% center;
    padding: 30px 30px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    border: 2px solid #cccccc;
    background-size: 40px;
    font-weight: 600;
}
.btn-info-list .btn-item a{
    background:#FFF url(../img/icon_arrow_p.png) no-repeat 96% center;
    background-size: 40px;
    text-align: left;
}
.btn-item a:hover {
    transform: translateY(-3px);
}

.topics-news-section {
    position:relative;
    background:#FFF;
    padding:0;
}
.topics-btn .btn-grid{
   grid-template-columns:repeat(2,1fr);
}
.topics-news-wrap{
    padding: 50px 0 100px;
    display: flex;
    align-items: flex-start;
    background: url(../img/bg-topicsnews.png);
}

.content-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-left: 10%;
    width: 100%;
}

.left-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.right-space {
    width: 30%;
}

.topics-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border:1px solid var(--color-grayBorder);
    position:relative;
}
.topics-section.topics-top{
    
}
.topics-news-ttl{
    border-bottom:2px solid #fbd398;
    font-weight: bold;
    margin-bottom:24px;
}

.topics-section .section-title::after {
    display: none;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}
.school-life-topics{
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.topic-card {
    background: white;
    transition: transform 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
}

.topic-card .card-image {
    position: relative;
    aspect-ratio: 176 / 117;
}
.topic-card .card-image img{
    aspect-ratio: 176 / 117;
    object-fit: cover;
    width: 100%;
    border-radius: 16px;
}
.date-overlay {
    position: absolute;
    top: -15px;
    left: -15px;
    background: url(../img/icon_flower.png) no-repeat;
    background-size: contain;
    color: white;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.year-month {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 5px;
}
.year-month span{
    position:absolute;
}
.month {
    font-size: 20px;
    left: 10%;
    top: 25%;
}
.month:after{
    position: absolute;
    content: '';
    border-right: 1px solid #FFF;
    height: 50px;
    width: 2px;
    transform: rotate(25deg);
    right: -4px;
    top: 15%;
}
.year {
    font-size: 12px;
    top: 25%;
}
.day {
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    bottom:25%;
    right: 20%;
}
.card-content {
    padding: 16px 0;
}
.topics-tag-wrap{
    display: flex;
    margin-bottom:10px;
    align-items: center;
}
.topic-tag {
    background: var(--color-green);
    color: white;
    padding: 0px 20px;
    border-radius: 50px;
    font-weight: 600;
    margin-right:8px;
}

.card-date {
    font-weight:bold;
}

.card-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.topics-section .more-button,.news-section .more-button{
    position:absolute;
    bottom:-4%;
    right:5%;
}
.note_examinee{
    position: -webkit-sticky;
    position: sticky;
    right: 0;
    top: 128px;
    z-index: 3;
    background: #FFF;
    border-radius: 8px;
    box-shadow: 1px 2px 3px #b9b9b9;
    padding: 20px;
    overflow: hidden;
    margin-left: auto;
    width: 340px;
    margin-right: 40px;
}
.note_examinee-ttl{
    text-align: center;
    color:var(--color-green);
    font-weight: bold;
    margin-bottom:8px;
}
.note_examinee::before {
    position: absolute;
    content: 'check';
    transform: rotate(-40deg);
    left: 6px;
    top: 12px;
    z-index: 2;
    color: #FFF;
}
.note_examinee::after {
    content: '';
    background: var(--color-green);
    width: 70px;
    height: 150px;
    position: absolute;
    top: -60px;
    left: -30px;
    transform: rotate(48deg);
    z-index: 1;
}
.note_examinee_list{
    display: flex;
    gap:8px;
}
@media(max-width:1600px){
    .content-layout {
        margin-left: 5%;
    }
}
@media(max-width:1200px){
    .content-layout {
        margin-left: 20px;
        width: calc(100% - 20px);
    }
}
@media (max-width: 768px) {
    .hero-section{
        height: calc(var(--vh) * 100);
    }
    .content-layout {
        margin: 0;
        width: 100%;
    }
    .btn-grid {
        gap: 12px;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .topics-news-section .container{
        overflow: hidden;
    }
    .topics-news-ttl{
        margin: 20px;
    }
    .topics-news-wrap{
        display: block;
        overflow: hidden;
    }
    .topics-grid{
        display: block;
        padding: 20px 20px 0 0;
        overflow: hidden;
    }
    .topics-section .topic-card{
        margin: 0 20px;
    }
    .topics-grid .slick-list{
        overflow: visible;
    }
    .topics-section .more-button, .news-section .more-button{
        position:relative;
        text-align: center;
        right: 0;
    }
    .topic-tag{
        font-size:14px;
    }
    .topics-sp-more .more-button{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 250px;
    }
}
/* News Section */
.news-section {
    background: white;
    padding: 40px 40px 0px 40px;
    border-radius: 20px;
    border: 1px solid var(--color-grayBorder);
    position: relative;
    margin: 20px 0 0 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #fbd398;
    padding-bottom: 8px;
}

.news-section .news-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-align: left;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    color: #666;
    border: none;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.filter-btn.active {
    background: var(--color-green);
    color: white;
}

.filter-btn:hover {
    background: var(--color-green);
    color: white;
}

.news-list {
    margin-bottom: 30px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}
.news-info{
    display:flex;
}
.news-date {
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
}

.news-tag {
    border: 1px solid #fbd398;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.news-text {
    font-size: 14px;
    flex: 1;
    line-height: 1.4;
}
@media (max-width: 1024px) {
    .btn-item a{
        padding: 32px 10px;
    }
    .topics-section{
        padding: 20px;
    }
    .topics-grid{
        gap: 20px;
    }
    .date-overlay{
        width: 80px;
        height: 80px;
    }
    .month{
        font-size:16px;
    }
    .day{
        font-size: 26px;
    }
    
}
@media (max-width: 768px) {
    .left-content{
        width: 100%;
    }
    .left-content .ttl-h2{
        margin-left: 16px;
    }
    .btn-grid{
        gap: 12px;
    }
    .topics-btn .btn-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .btn-item a{
        text-align: left;
        padding: 16px 12px;
        background-size: 22px;
    }
    .note_examinee{
        margin: 16px 0 0 0;
        width: 60%;
        margin: 16px 0 0 0;
        max-width: 386px;
    }
    .topics-btn {
        margin: 0 16px;
    }
    .topics-section{
        padding:0;
        margin-left:16px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .news-section {
        padding: 20px;
        margin: 0 16px 0 0;
    }
    .news-section {
        padding: 20px;
        margin: 0 16px;
    }
    .news-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        border:none;
    }
    .news-section .news-header h2 {
        font-size: 24px;
        border-bottom: 2px solid #fbd398;
        width: 100%;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .news-date {
        min-width: auto;
    }
    .news-tag {
        min-width: auto;
        margin-left: 8px;
    }
    
}

@media (max-width: 480px) {
    .news-section .news-header h2 {
        font-size: 20px;
    }
    .topics-news-section .btn-item a{
        font-size: 11px;
    }
    .filter-btn {
        padding: 3px 12px;
        font-size: 12px;
    }
    .news-item {
        padding: 12px 0;
    }
    .news-date {
        font-size: 12px;
    }
    .news-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    .news-text {
        font-size: 13px;
    }
}

/* Schedule Section */
.schedule-section {
    position:relative;
    padding: 80px 0;
    background:#FFF;
}


@media (max-width: 768px) {
    .schedule-section .btn-grid{
        grid-template-columns: repeat(1, 1fr);
        padding: 40px 40px 0;
    }
}
/* Course Section */
.course-section {
    background:#FFF;
    padding: 80px 0;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.course-title-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.course-subtitle {
    font-size: 18px;
    color: #ccc;
    font-weight: 400;
    margin: 0;
}

.course-content-area {
    border-radius: 20px;
    position: relative;
}

.course-text-content {
    position:absolute;
    bottom:16%;
    left:5%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width:36%;
    background-color: #ffffff;
    padding: 20px;
    opacity: 0.9;
}

.course-subtitle-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.course-content-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.course-description {
    font-size: 16px;
    line-height: 1.8;
}

.course-image-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.panels {
    position: relative;
}

.panels__sticky {
    position: sticky;
    top: 0;
    height: calc(var(--vh) * 100);
    overflow: hidden;
}
.panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    will-change: transform, opacity;
    background: url(../img/bg-topicsnews.png);
}
.panel .course-text-content {
    opacity: 0.8 !important;
    visibility: visible !important;
    transform: none !important;
}


@media (max-width: 768px) {
    .course-section {
        padding: 40px 0 0;
    }
}
/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cta-item {
    text-align: center;
}

.brochure-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.brochure-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.book-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

/* Social Section */
.social-section {
    padding: 80px 0;
    overflow: hidden;
    background:#FFF;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.social-item{
    margin-top:40px;
}
.social-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.video-thumbnails {
    margin: 0 8px;
}

.thumbnail {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.social-content .club-icon a{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    flex-shrink: 0;
}
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.instagram-post {
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Admission Section */
.admission-section{
    background:#FFF;
}
.admission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}
.admission-item{
    border-radius: 30px;
}
.admission-item a{
    text-align: center;
    height: 500px;
    padding-top:80px;
    font-weight: bold;
}
.admission-ttl{
    font-size:50px;
    font-weight: bold;
    margin-bottom:16px;
}
.admission-entry{
    background:url(../img/bg_admission_entry.png)no-repeat;
    background-size:cover;
}
.admission-paper{
    background:url(../img/bg_admission_paper.png)no-repeat;
    background-size:cover;
    border:1px solid var(--color-grayBorder);
}
.admission{
    margin-top: 120px;
    color: #ffffff;
}
@media (max-width: 1024px) {
    .admission-ttl{
        font-size:40px;
    }
    .admission-item a{
        height: 380px;
    }
}
@media (max-width: 768px) {
    .social-section{
        padding: 0;
    }
    .accordion-menu {
        width: 100%;
        right: -100%;
    }
    .cta-grid {
        grid-template-columns: 1fr;
        gap:20px;
    }
    .admission-item a{
        height: 400px;
    }
    .admission-ttl{
        font-size: 32px;
    }
}
@media (max-width: 480px) {
    .admission-grid{
        grid-template-columns: 1fr;
        gap:20px;
    }
}

/* Feature Section */
.feature-section {
    padding: 160px 0;
    background: url(../img/bg_features.png)no-repeat;
    background-size:cover;
    background-attachment: fixed;
}

.feature-content {
    display: flex;
    flex-direction: column;
    background: #FFF;
    position:relative;
    border-radius: 2000px;
    padding: 100px 30px 200px;
}
.feature-section .ttl-h2{
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.feature-section .ttl-h2 .ttl-en{
    background: url(../img/line_ttl.png) no-repeat center bottom;
    margin-bottom: 24px;
}
.feature-section .ttl-h2 .ttl-jp{
    margin-left:0;
    font-size:24px;
}
.feature-panels {
    display: flex;
    justify-content: center;
    gap: 40px;
}
.feature-panel {
    overflow: hidden;
    width:260px;
}
.top-panels .feature-panel:nth-child(1),.top-panels .feature-panel:nth-child(3) {
    margin-top:40px;
}
.bottom-panels .feature-panel:nth-child(2){
    margin-top:60px;
}
.panel-image {
    height: 260px;
    overflow: hidden;
    text-align: center;
}
.panel-content {
    padding: 16px 0 0 0;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.panel-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 768px) {
    .course-image img{
        height: 85vh;
        object-fit: cover;
        border-radius: 26px;
    }
    .course-text-content{
        gap: 10px;
        width: 80%;
        left: 16%;
        padding: 2px;
    }
}
.feature-section {
    background: url(../img/bg_features-sp.png)no-repeat;
}
/* Video Section */
.video-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 80%;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
}

.video-placeholder {
    position: relative;
}
.video-placeholder video{
    width: 100%;
    object-fit: cover;
    height: 350px;
}
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
}

/* Responsive Design for Feature Section */
@media (max-width: 768px) {
    .feature-section{
        padding: 100px 0;
    }
    .feature-content{
        padding: 120px 30px 100px;
    }
    .feature-section .ttl-h2 .ttl-en{
        margin-bottom: 0;
    }
    .feature-panels {
        flex-direction: column;
        gap: 20px;
    }
    .feature-panel{
        width:80%;
        margin:auto;
    }
    .panel-title{
        font-size: 16px;
    }
    .video-container {
        width: 100%;
        margin:20px 0;
        height: 278px;
    }
    .feature-hero {
        height: 300px;
    }
    .feature-hero .hero-title {
        font-size: 36px;
    }
    .feature-hero .hero-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .feature-content{
        padding: 120px 20px 100px;
    }
    .feature-hero {
        height: 250px;
    }
    
    .feature-hero .hero-title {
        font-size: 28px;
    }
    
    .feature-hero .hero-subtitle {
        font-size: 14px;
    }
    
    .video-container {
        height: 250px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
} 

@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .course-main-title {
        font-size: 36px;
    }
    
    .course-content-area {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .course-content-title {
        font-size: 28px;
    }
    
    .student-image {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .course-main-title {
        font-size: 28px;
    }
    .course-content-title {
        font-size: 24px;
    }
    
    .student-image {
        height: 300px;
    }
    
    .line-segment {
        width: 30px;
        height: 3px;
    }
} 

/* Club Activities Section */
.club-activities-section {
    padding: 80px 0;
    background: #fbd398;
    overflow: hidden;
}

/* 流れるアイコンの行 */
.club-icons-row {
    display: flex;
    align-items: center;
}
.club-icons-row__list{
    display: flex;
    width: 100%;
}
.top-row {
    margin-bottom:40px;
}
.top-row .club-icons-row__list{
    animation: slideLeft 40s linear infinite;
}
.bottom-row {
    margin-top:40px;
}
.bottom-row .club-icons-row__list{
    animation: slideRight 40s linear infinite;
}
.club-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: calc(100vw / 8);
}

.icon-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.club-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    position:relative;
}
.club-name::before,.club-name::after {
    content: '';
    border-left: 1px solid #333;
    width: 1px;
    height: 90%;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}
.club-name::before {
    transform: rotate(337deg);
    left: -16px;
}
.club-name::after {
    transform: rotate(20deg);
    right: -16px;
}

.club-text-box {
    background: white;
    padding: 40px 80px;
    border-radius: 20px;
    position: relative;
    z-index: 10;
}
.club-text-wrap{
    display:flex;
    align-items: flex-end;
    justify-content: space-between;
}
.club-title {
    font-size: 24px;
    font-weight: 700;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.club-text {
    font-size: 30px;
    font-weight: 600;
    margin: 5px 0;
    line-height: 1.4;
}

/* アニメーション */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 1025px) {
    .club-icon {
        width: calc(100vw / 5);
    }
}
@media (max-width: 768px) {
    .club-icons-row {
        gap: 20px;
    }
    .club-icon {
        min-width: 110px;
        margin:0 16px;
        width: calc(100vw / 4);
    }
    .icon-image {
        width: 110px;
        height: 110px;
    }
    .club-text-box {
        padding: 30px 40px;
        max-width: 600px;
    }
    
    .club-title {
        font-size: 20px;
    }
    .club-text-wrap{
        flex-direction: column;
        align-items: flex-start;
    }
    .club-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .club-icons-row {
        gap: 15px;
    }
    .club-icon {
        min-width: 80px;
        margin:0 8px;
        width: calc(100vw / 4);
    }
    .icon-image {
        width: 80px;
        height: 80px;
    }
    .club-name {
        font-size: 12px;
    }
    .club-text-box {
        padding: 20px 30px;
    }
    .club-title {
        font-size: 18px;
    }  
    .club-text {
        font-size: 14px;
    }
} 

/* School Life Section */
.school-life-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background:#FFF;
}
.school-life-bg{
    background:url(../img/bg_schoollife.png);
}

.background-text {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 0;
    overflow: hidden;
}

.flowing-text {
    display: flex;
    white-space: nowrap;
    animation: flowText 120s linear infinite;
    font-size: 120px;
    font-weight: 900;
}
.flowing-text img{
    margin:0 16px;
}
@keyframes flowText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.life-students-img {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
}

.student-item {
    display: flex;
    align-items: center;
}
.student-text,.student-photo{
    opacity:0;
}
.is-active .student-text,.is-active .student-photo{
    animation: bounceIn 0.8s ease forwards;
}
.student-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.is-active .student-text{
    animation-delay: 0.5s;
}
.student-text p{
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 700;
}
.center-group {
    justify-self: center;
    position:relative;
    z-index: 1;
}
.school-life-section .more-button{
    text-align: center;
}
.top-left .student-text {
    margin-top:80px;
}
.top-center .student-text {
    margin-top:-80px;
    margin-left:-40px;
}
.top-right .student-text {
    margin-top:-40px;
}
.bottom-left .student-text {
    text-align: center;
}
.bottom-center .student-text {
    margin-top:-20px;
}
.bottom-right .student-text {
    margin-top:-80px;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
    opacity: 0;
    -webkit-transform: scale(0) rotateY(20deg);
    transform: scale(0) rotateY(20deg);
    }
    40% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    50% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
    70% {
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
    80% {
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }
    90% {
        -webkit-transform: scale(0.98) rotateY(0);
        transform: scale(0.98) rotateY(0);
    }

    100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .school-life-section{
        padding:40px 0;
    }
    .life-students-img{
        height: 25vh;
        margin-bottom: 0;
    }
    .life-students-bottom{
        height: 30vh;
    }
    .student-item{
        position: absolute;
    }
    .flowing-text img{
        height: 80px;
        width: auto;
        max-width: inherit;
    }
    .top-left {
        left: 0;
        top: 0;
    }
    .top-left .student-text{
        margin-top: 0;
        margin-bottom: 60px;
    }
    .top-center {
        left: 10%;
        bottom: 0;
    }
    .top-center .student-text{
        margin-top: 0;
        margin-left: -40px;
    }
    .top-right {
        right: 0;
        top: 10%;
    }
    .top-right .student-text{
        margin-top: 30px;
    }
    .bottom-left{
        left: -30px;
    }
    .bottom-left .student-text {
        text-align: left;
        margin: 100px 0 0 -30px;
    }
    .bottom-center {
        left:30%;
    }
    .bottom-center .student-photo {
        width: 100px;
    }
    .bottom-right{
        right:0;
        top: 5%;
    }
    .bottom-right .student-photo {
        order: 1;
        width: 145px;
    }
    .bottom-right .student-text {
        margin-top: 140px;
    }
    .flowing-text {
        font-size: 80px;
    }
    
    .students-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .student-photo {
        width: 150px;
        height: 120px;
    }
    
    .student-text p {
        font-size: 14px;
    }
    
    .school-life-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .flowing-text img{
        height: 40px;
    }
    .student-photo {
        width: 120px;
        height: 100px;
    }
    .student-text p {
        font-size: 10px;
        margin-right: -80px;
    }
    .school-life-title {
        font-size: 24px;
    }
    .top-right{
        right: -20px;
        top: 20%;
    }
    .top-right .student-photo{
        width: 100px;
    }
    .top-center .student-text{
        margin-left: 0px;
    }
    .top-center{

    }
} 
@media (max-width: 390px) {
    .life-students-img{
        height: 30vh;
    }
    .life-students-bottom{
        height: 35vh;
    }
}
/* Career Information Section */
.career-information-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background:#FFF;
}

.career-header {
    position: relative;
    margin-bottom: 60px;
}

.career-info-cont{
    position:relative;
    z-index: 1;
}

.career-fixed-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position:relative;
    z-index: 4;
}
.career-student-img{
    display:flex;
    align-items: flex-end;
}
.career-student-img span{
    
    text-align: right;
}
.career-text-box {
    background: white;
    border:1px solid var(--color-grayBorder);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    flex:0 0 45%;
    margin-bottom:30px;
}

.career-text-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}
.career-text-content {
    color: #666;
    line-height: 1.8;
}
.career-slide-container{
    position:absolute;
    z-index: 0;
    top:0;
    bottom:0;
    margin:auto;
    height: 308px;
}
.career-slide-container .top-row{
    display:flex;
}
.career-slide-container .club-icons-row__list{
    gap:0;
    margin-right: 0;
}

.career-information-section .more-button {
    text-align: center;
    position:relative;
    z-index: 1;
    margin-top: 20px;
}
.career-section-bg span{
    position:absolute;
    z-index: 0;
}
.career-section-bg span:first-child{
    left: -150px;
    top: 8%;
}
.career-section-bg span:nth-child(2){
    right: -8px;
    top: 40%;
}
.career-section-bg span:last-child{
    left: 8px;
    bottom: 0;
}
.career-section-bg span:last-child img {
    width: 300px;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .career-information-section{
        padding:40px 0;
    }
    .career-slide-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .career-fixed-content{
        flex-direction: column;
        align-items: flex-start;
    }
    .career-student-img{
        align-items: flex-end;
        justify-content: flex-end;
    }
    .career-student-img span{
        margin-bottom: 8px;
        text-align: right;
        font-size: 12px;
    }
    .career-student-img img {
        width: 100px;
    }
    .career-info-2 .career-fixed-content{
        align-items: flex-end;
    }
    .career-text-box{
        padding: 20px;
        order:1;
    }
    .career-info-2 .career-student-img img{
        margin-right: -30px;
    }
    .career-slide-container{
        top: 10%;
        bottom: auto;
    }
    .career-section-bg span:first-child{
        width: 280px;
    }
    .career-section-bg span:nth-child(2){
        top: 50%;
        width: 200px;
    }
    .career-section-bg span:last-child{
        bottom: 25%;
        width: 200px;
    }
}

@media (max-width: 480px) {
    .career-slide-container {
        padding: 15px;
    }
    .career-slide {
        padding: 0 5px;
    }
    
    .career-image {
        height: 250px;
    }
    
    .career-title {
        font-size: 24px;
    }
    
    .career-text-title {
        font-size: 18px;
    }
    
    .career-text-content {
        font-size: 13px;
    }
}

/* 学校案内セクション */
.school-guide-section {
    padding: 80px 0 0;
    background-color: #ffffff;
}

.school-guide-grid {
    display: flex;
}
.guide-col{
    flex:0 0 33.333%;
}
.guide-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 186px;
}

.guide-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 220px;
    flex:0 0 50%;
}
.image-item{
    overflow: hidden;
}
.guide-item.image-item img{
    height: 220px;
    width:100%;
    object-fit: cover;
}
.guide-item.orange-bg {
    background-color: #faf0e6;
}
.guide-item.yellow-bg {
    background-color: rgba(248,207,80,0.5);;
}

.guide-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.scroll-icon {
    position: absolute;
    bottom: -15px;
    right: 0;
    left:0;
    margin:auto;
    width: 30px;
    height: 30px;
    z-index: 5;
    color: #FFA500;
}
.guide-col:nth-child(2) .scroll-icon{
    top:-15px;
    bottom: auto;
}

/* レスポンシブデザイン */
@media (min-width: 1600px) {
    .guide-item,.guide-item.image-item img {
        height: 300px;
    }
}
@media (max-width: 1024px) {
    .guide-item,.guide-item.image-item img{
        height:180px;
    }
    .guide-item .more-button{
        width:80%;
    }
}
@media (max-width: 768px) {
    .school-guide-section .container{
        padding:0;
    }
    .school-guide-header{
        padding:0 15px;
    }
    .school-corporation-title {
        font-size: 36px;
    }
    
    .guide-item {
        height: 150px;
    }
    .guide-item.image-item img{
        height: 150px;
        object-fit: cover;
        width: auto;
        vertical-align: bottom;
    }
    .guide-item h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .school-guide-grid{
        flex-direction: column;
    } 
    .guide-col{
        display: flex;
    }
    .school-corporation-title {
        font-size: 28px;
    }
    .school-subtitle {
        font-size: 16px;
    } 
    .guide-item h3 {
        font-size: 16px;
    }
    .more-button {
        padding: 10px 20px;
        font-size: 12px;
    }
    .scroll-icon{
        right:-15px;
        left:auto;
        top:0;
        bottom:0;
        transform:rotate(90deg);
    }
    .guide-col:nth-child(2) .scroll-icon{
        left: -15px;
        right: auto;
        top: 0;
        bottom: 0;
    }
}

/* 学校案内セクション下フッター */
.school-footer {
    background-color: #f7faff;
    padding: 60px 0 40px;
    margin-top: 0;
}

.school-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.school-details p {
    margin-bottom: 5px;
    line-height: 1.5;
}

.footer-cta-buttons {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0;
}

.footer-cta-button {
    
    background: url(../img/bg_button.png) no-repeat;
    background-size: 100% 100%;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    border-radius: 8px;
    flex: 0 0 22%;
    text-align: center;
}

footer-.cta-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.footer-cta-button .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.footer-cta-button:hover .arrow {
    transform: translateX(3px);
}

.main-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #FFA500;
}

.separator-line {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

.utility-nav {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.utility-nav a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.utility-nav a:hover {
    color: #FFA500;
}

/* コピーライト */
.copyright-section {
    text-align: center;
    margin-top: 20px;
}

.copyright-section p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .school-footer {
        padding: 40px 0 80px;
    }
    .school-info .school-logo{
        width: 240px;
    }
    .school-footer-content {
        gap: 30px;
    }
    
    .footer-cta-buttons {
        gap: 10px;
    }
    .footer-cta-button{
        font-size: 12px;
        flex: 0 0 30%;
        border-radius: 4px;
        padding: 12px 0;
    }
    .main-nav {
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 13px;
    }
    
    .utility-nav {
        gap: 20px;
    }
    
    .utility-nav a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .school-footer {
        padding: 30px 0 80px;
    }
    
    .school-footer-content {
        gap: 25px;
    }
    
    .school-details h3 {
        font-size: 20px;
    }
    
    .school-details h4 {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .main-nav {
        gap: 8px 20px;
        align-items: center;
    }
    .main-nav a {
        font-size: 12px;
    }
    
    .utility-nav {
        gap: 10px;
        align-items: center;
    }
    
    .utility-nav a {
        font-size: 11px;
    }
} 

.sub-main-section{
    position:relative;
    padding:0;
    height:calc(77vh - 100px);
    overflow: hidden;
}
.sub-main-title{
    position:absolute;
    background:url(../img/bg_subtitle.png) no-repeat;
    background-size:cover;
    bottom:-1px;
    width:100%;
    height: 26vh;
}
.sub-main-title h1{
    font-size:36px;
    position: absolute;
    bottom: 5%;
    left: 3%;
}
.sub-main-image {
    height: 100%;
}
.sub-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 8px;
}

.breadcrumbs{
    margin-top:20px;
}
.breadcrumbs ul,.breadcrumbs ul li{
    display: flex;
    flex-wrap:wrap;
}
.breadcrumbs ul li:not(:last-child):after{
    content: '\FF1E'; /* '＞' のUnicode表現 */
    margin:0 8px;
}
.text-cont-ttl-h3{
    font-size:30px;
    /* margin-bottom:10px; */
}
.text-cont-ttl-h3:not(:has(+ h4)){
    margin-bottom:20px;
}
.text-cont-ttl-h4{
    font-size: 26px;
    margin-bottom:20px;
}
.bg-card-color{
    position:relative;
    z-index: 2;
}
.bg-card-color:before{
    position:absolute;
    content:'';
    width:100%;
    height:100%;
    border-radius: 8px;
    background:#e5f8ff;
    z-index: -1;
    transform: rotate(6deg);
}
.school-life-imgslide img{
    width: 100%;
}
@media (max-width: 1024px) {
    .sub-main-section{
        height: calc(40vh - 100px);
    }
    .sub-main-title{
        height: 10vh;
    }
    .sub-main-title h1{
        font-size: 26px;
    }
}
@media (max-width: 768px)and (max-height: 800px) {
    .breadcrumbs{
        font-size:12px;
    }
    .sub-main-section{
        height: 40vh;
    }
    .sub-main-title h1 {
        font-size: 16pxpx;
    }
    .text-cont-ttl-h3{
        font-size: 20px;
    }
    .text-cont-ttl-h4{
        font-size: 17px;
        margin-bottom:10px;
    }
    .department-msg-text p{
        font-size: 16px;
        line-height: 2rem;
    }
     


}
@media (max-width: 768px)and (max-height: 800px) {
    .breadcrumbs{
        font-size:12px;
    }
    .sub-main-section{
        height: 40vh;
    }
    .sub-main-title h1 {
        font-size: 16pxpx;
    }
    .text-cont-ttl-h3{
        font-size: 20px;
    }
    .text-cont-ttl-h4{
        font-size: 17px;
        margin-bottom:10px;
    }
    .department-msg-text p{
        font-size: 16px;
        line-height: 2rem;
    }
     


}

@media (max-width: 380px) {
    .sub-main-title h1{
        font-size: 16px;
    }
}


@media (max-width: 780px) {

    /* 自動スライドのアニメーションを全停止 */
    .career-slide-container,
    .career-slide-container * {
        animation: none !important;
        transform: none !important;
    }

    /* 横スクロールできるコンテナにする */
    .top-row {
        display: flex !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 10px 0;
    }

    /* 各画像 */
    .club-icons-row__list {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px;
    }

    .club-icons-row__list img {
        flex: 0 0 auto;
        width: 170px; /* スマホ用でちょうど良いサイズに調整可能 */
        height: auto;
        scroll-snap-align: start;
    }

    /* 横スクロールバーを非表示（好みに応じて） */
    .top-row::-webkit-scrollbar {
        display: none;
    }
}
@media (max-width: 780px) {
    .PC{
        display: none!important;
    }
}

/* メインビジュアルスライダー */
.hero-section {
  
  
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: -1;
  overflow: hidden;
}


/* スライド全体 */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 各スライド */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroFadeZoom 20s infinite;
  
}

/* 画像共通 */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

/* スライド遅延（5枚） */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }

/* フェード＋ズーム */
@keyframes heroFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  10% {
    opacity: 1;
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
  60% {
    opacity: 0;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
  }
}

/* SP対応 */
@media (max-width: 768px) {
  .hero-section {
    height: calc(var(--vh) * 100);
  }
  .hero-card-wrap{
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    position:relative;
    height: calc(100vh - -300px);
}
}

/* =========================
   縦幅が低いPC用（1024×600など）
========================= */

/* PCナビを非表示 */
body.low-height-pc .nav-section.PC {
  display: none !important;
}

/* ハンバーガーメニューを表示 */
body.low-height-pc .menu-button {
  display: flex !important;
}

/* アコーディオンメニューを有効化 */
body.low-height-pc .accordion-menu {
  display: block;
}

/* メインビジュアルの崩れ防止 */
body.low-height-pc .hero-section {
  height: auto;
  min-height: 600px;
}

body.low-height-pc .main-content {
  position: relative;
  transform: none;
  opacity: 1;
}

/* ===== 低縦幅PC対策 ===== */

.low-height-pc .hero-section {
  height: 100vh;
  min-height: 500px;
}

.low-height-pc .hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.low-height-pc .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 1 !important;
  animation: none !important;
}

.low-height-pc .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.low-height-pc .main-content.fixed-bg {
  position: relative !important;
  z-index: 1 !important;
}



@media (min-width: 768px) and (max-height: 800px) {
    .header {
        padding: 7px 30px;
        background-color: rgba(255, 255, 255, 0.8);
    }
    .animation-content{
        margin-top: 50px;
        font-size: 30px;
    }
    .school-motto-ttl p {
    font-size: 50px;
}
.sub-main-section {
    position: relative;
    padding: 0;
    height: 100%;
    overflow: hidden;
}
    .sub-main-title {
        height: 23vh;
    }
    .sub-main-image {
    height: auto;
}
.sub-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 8px;
}
.hero-card-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    position: relative;
    height: calc(100vh - 56px);
}
.btn-grid{
        gap: 12px;
        grid-template-columns: repeat(1, 1fr);
    }
    .topics-btn .btn-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .btn-item a{
        text-align: left;
        padding: 16px 12px;
        background-size: 22px;
    }
     .container {
        padding: 0 15px;
    }
    .btn-info-list .btn-item a{
    background:#FFF url(../img/icon_arrow_p.png) no-repeat 96% center;
    background-size: 40px;
    text-align: left;
}
.footer-cta-buttons {
        gap: 10px;
         white-space: nowrap;
    }
}
