/* ====================================================== */
/* ============= GLOBAL STYLES & RESETS ============= */
/* ====================================================== */
:root {
/* Thiết lập màu sắc và font chữ cơ bản */
--text-color: #463636;
--primary-color: #0075c1;
--accent-color: #ff5555;
--link-color: #2323ff;
--bg-main: #ffffff;
--font-main: "M PLUS Rounded 1c", sans-serif;
}

.gakuryoku-img[alt] {
  font-size: 1vw !important;
}

.gakuryoku-html, .gakuryoku-body {
margin: 0;
padding: 0;
width: 100%;
font-family: var(--font-main);
color: var(--text-color);
background-color: var(--bg-main);
text-align: center;
-webkit-font-smoothing: antialiased;
overflow-wrap: break-word;
overflow: auto;
background-repeat: no-repeat;
background-position: center top;
background-attachment: scroll;
}


.gakuryoku-body img {
border: 0;
line-height: 0;
max-width: 100%;
height: auto;
display: block;
}

.gakuryoku-body a {
color: var(--link-color);
text-decoration: none;
}
.gakuryoku-body a:hover {
text-decoration: underline;
}

.text-red {
color: var(--accent-color);
}
/* ====================================================== */
/* ============= PC STYLES (pc-only) ============= */
/* ====================================================== */

.gakuryoku-body {
  background-image: url('/new_chu1/gakuryoku/images/BG.png');
  background-size: 100% 100%;
  background-attachment: scroll;
}
.pc-only {
display: block;
}

.pc-only .content-wrapper {
width: 90%;
max-width: 1200px;
padding-bottom: clamp(30px, 5vw, 60px);
margin: 1vw auto;
height: auto;
min-height: 100vh;
overflow: hidden;
}

.pc-only .main-content {
width: 90%;
text-align: center;
margin: clamp(25px, 3vw, 55px) auto;
font-size: 3.7vw;
max-width: 65vw;

}
.pc-only .main-content p,
.pc-only .main-content h1,
.pc-only .main-content h2,
.pc-only .main-content h3,
.pc-only .main-content h4 {
text-align: center;
}
.pc-only .main-content p {
text-align: justify;
}

/* --- BANNER PC --- */
.pc-only .banner {
background-color: #229bda;
padding: 2vw 7vw;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
box-sizing: border-box;


}
.pc-only .tagline {
background-color: white;
color: #229bda;
padding: 1vw 4vw;
border-radius: 10px;
font-size: 1.4vw;
font-weight: bold;
margin-bottom: clamp(2px, 1.5vw, 5px);
}
.pc-only .main-heading {
color: white;
font-size: 3vw;
margin: 0;
font-weight: bold;
}

/* --- TEXT & HEADINGS PC --- */
.pc-only .text-block {
width: 90%;
font-weight: bold;
line-height: 1.7;
font-size: 1.5vw;
max-width: 52vw;
line-height: 1.8;
font-weight: bold;
text-align: justify;
display: block;
margin-top: 4vw;
margin-bottom:4vw;
}
.pc-only .sub-heading {
font-size: clamp(1.5rem, 4vw, 1.7rem);
font-weight: bold;
margin: clamp(15px, 3vw, 55px) auto 0 auto;
text-align: justify;
line-height: 1.7;
display: block;
text-align: center;
}
.pc-only .emphasis-heading {
font-size: clamp(2rem, 6vw, 2.5rem);
font-weight: bold;
margin: 0 auto clamp(20px, 3vw, 20px) auto;
text-align: center;
}
.pc-only .chart-title {
color: var(--primary-color);
font-size: clamp(1.5rem, 4vw, 1.7rem);
font-weight: bold;
margin: clamp(30px, 4vw, 50px) auto clamp(15px, 2vw, 25px) auto;
text-align: center;
}
.pc-only .section-header {
background-color: var(--primary-color);
color: #fff;
font-weight: bold;
padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 30px);
font-size: clamp(1.3rem, 3.5vw, 1.5rem);
margin: clamp(40px, 6vw, 60px) auto 0 auto;
box-sizing: border-box;
width: 90%;
max-width: 60vw;
text-align: center;
}
.pc-only .section-header.multi-line {
line-height: 1.5;
}
.pc-only .caption-text {
width: 90%;
max-width: 560px;
margin: clamp(10px, 1.5vw, 20px) auto;
font-size: clamp(0.58rem, 2vw, 0.65rem);
font-weight: bold;
text-align: justify;
}
.pc-only .caption-text.note {
margin-top: clamp(20px, 3vw, 40px);
}
.pc-only .caption-text.small {
font-size: clamp(0.58rem, 2vw, 0.65rem);
max-width: 52vw;
}
.pc-only .caption-text a {
word-break: break-all;
}

/* --- IMAGES PC --- */
.pc-only .content-image {
margin: clamp(5px, 2vw, 10px) auto;
width: 90%;
max-width: 65vw;
}
.pc-only .content-image.wide {
margin: clamp(30px, 5vw, 50px) auto;
max-width: 52vw;
}
.pc-only .content-image.chart {
margin: clamp(30px, 5vw, 50px) auto;
max-width: 52vw;
}

/* --- CTA BUTTON PC --- */
.pc-only .japanese-cta-button {
background-color: #13cf5e;
color: white;
max-width: 50vw;
border: 2px solid #434343;
border-radius: 60px;
padding: clamp(10px, 1.5vw, 15px) clamp(1px, 1vw, 2px);
font-weight: 400;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
margin: clamp(15px, 1vw, 5px) auto;
}
.pc-only .japanese-cta-button:hover {
background-color: #13cf5eb6;
text-decoration: none;
}
.pc-only .button-text {
color: white;
text-decoration: none;
font-size: clamp(1rem, 2vw, 1.2rem);
font-weight: bold;
}
.pc-only .arrow-icon {
width: clamp(18px, 1.2vw, 26px);
height: clamp(18px, 1.2vw, 26px);
transform: translateY(2px)
}

/* --- FRAME CONTAINER PC --- */
.pc-only .frame-container {
background-image: url('/new_chu1/gakuryoku/images/frame01.jpg');
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: clamp(20px, 1.2vw, 30px) auto;
padding: clamp(20px, 5vw, 50px);
box-sizing: border-box;
width: 100%;
max-width: 52vw;
}
.pc-only .frame-container p {
font-weight: bold;
margin: clamp(7px, 1vw, 14px) 0;
}
.pc-only .frame-text-large {
font-size: clamp(1.6rem, 1vw, 2rem);
text-align: center;
line-height: 1;
}
.pc-only .frame-text-highlight {
font-size: clamp(1.6rem, 1vw, 2rem);
line-height: 1;
}
.pc-only .frame-text-small {
font-size: clamp(1.2rem, 1vw, 1.5rem);
text-align: center;
line-height: 1.5;
}
.pc-only .highlight {
background-image: linear-gradient(to top, #FFF076, #FFF076);
background-repeat: no-repeat;
background-position: 0 100%;
background-size: 100% 40%;
padding: 0 5px;
}
.pc-only .toggle-checkbox {
  display: none;
}

.pc-only .toggle-label {
  cursor: pointer;
  user-select: none;
}

/* Ẩn nội dung ban đầu */
.pc-only .collapsible-content {
  display: none;
}

/* Đổi dấu */
.pc-only .toggle-label .toggle-icon::before {
  content: "＋"; /* Hiển thị dấu + */
}

/* Khi checkbox được chọn, ẩn dấu + và hiện dấu - */
.pc-only .toggle-checkbox:checked + .toggle-label .toggle-icon::before {
  content: "ー"; /* Chuyển sang dấu - */
}

/* Hiển thị nội dung khi checkbox được chọn */
.pc-only .toggle-checkbox:checked ~ .collapsible-content {
  display: block;
}
  /* Hiển thị nội dung khi có class 'open' */
/* ====================================================== */
/* ============= MOBILE STYLES (sp-only) ============= */
/* ====================================================== */
.sp-only {
display: none;
}

@media screen and (max-width: 768px) {
.pc-only { display: none; }
.sp-only { display: block; }
    
/* Thay đổi background cho mobile */
.gakuryoku-body {
  background-image: url('/new_chu1/gakuryoku/images/sp/bg.png');
  background-size: 100% 100%;
  background-attachment: scroll;
}
    
.sp-only .content-wrapper {
  width: 90%;
  max-width: 700px;
  padding-bottom: clamp(30vw, 1.2vw, 40vw);
  margin: 2vw auto;
  height: auto;
  min-height: 100vh;
  overflow: hidden;

}

/* Component Styles */
.sp-only .main-content {
  margin: clamp(25px, 3vw, 55px) auto;
  text-align: center;
  font-size: 3.7vw;
  max-width: 65vw;

}
.sp-only .main-content p,
.sp-only .main-content h1,
.sp-only .main-content h2,
.sp-only .main-content h3,
.sp-only .main-content h4 {
  text-align: center;
}
.sp-only .main-content p {
  text-align: justify;
}

/* Banner */
.sp-only .banner {
  background-color: #229bda;
  padding: 10vw 12vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.sp-only .tagline {
  background-color: white;
  color: #229bda;
  padding: 2vw 3vw;
  border-radius: 10px;
  font-size: 4vw;
  font-weight: bold;
  max-width: 900px;
  white-space: nowrap;
}
.sp-only .main-heading {
  color: white;
  font-size: 7vw;
  margin: 1vw;
  font-weight: bold;
  white-space: nowrap;
}

/* Text & Headings */
.sp-only .text-block {
  font-size: 3.7vw;
  max-width: 65vw;
  line-height: 1.5;
  font-weight: bold;
  text-align: justify;
  display: block;
  margin-top: 5vw;
  margin-bottom:5vw;
  
}
.sp-only .sub-heading {
  font-size: 3.7vw;
  font-weight: bold;
  margin-top:1vw;
  margin-bottom:1vw;
  text-align: justify;
  line-height: 1.5;
  display: block;
  text-align: center;
  max-width: 65vw;

}
.sp-only .emphasis-heading {
  font-size: 5vw;
  font-weight: bold;
  margin-top:1vw;
  margin-bottom:10vw;
  text-align: center;
  max-width: 65vw;

}
.sp-only .chart-title {
  color: var(--primary-color);
  font-size: 3.7vw;
  font-weight: bold;
  margin-top:1vw;
  margin-bottom:10vw;
  text-align: center;
}
.sp-only .section-header {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: bold;
  padding: clamp(10px, 2vw, 15px) clamp(20px, 1.5vw, 30px);
  font-size: min(1000px,calc(5vw - 3px));
  margin-top:1vw;
  margin-bottom:10vw;
  box-sizing: border-box;
  width: 85%;
  max-width: 500px;
  text-align: center;
}
.sp-only .section-header.multi-line {
  line-height: 1.5;
  max-width: 75vw;

}
.sp-only .caption-text {
  width: 90%;
  font-size: 1.5vw;
  max-width: 65vw;
  margin-top:1vw;
  margin-bottom:10vw;
  font-weight: bold;
  text-align: justify;

}
.sp-only .caption-text.note {
  font-size: 1.5vw;
  max-width: 65vw;
  margin-top:1vw;
  margin-bottom:10vw;
}
.sp-only .caption-text.small {
  font-size: 1.5vw;
  max-width: 70vw;
  margin-top:1vw;
  margin-bottom:10vw;
}
.sp-only .caption-text a {
  word-break: break-all;
}

/* Images */
.sp-only .content-image {
  margin-top:1vw;
  margin-bottom:10vw;
  width: 90%;
  max-width: 1000vw;
}
.sp-only .content-image.wide {
  margin-top:1vw;
  margin-bottom:10vw;
  width: 80%;
  max-width: min(83.3333333333vw, 600px);


}
.sp-only .content-image.chart {
  margin-top:4vw;
  margin-bottom:4vw;
  width: 80%;
  max-width: min(83.3333333333vw, 600px);
  height: auto;
  object-fit: contain;
}

/* CTA Button */
.sp-only .japanese-cta-button {
  background-color: #13cf5e;
  color: white;
  max-width: 450px;
  border: 2px solid #434343;
  border-radius: 60px;
  padding: min(600px,calc(2vw - 3px)) min(600px,calc(8vw - 3px));
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  margin-top:1vw;
  margin-bottom:10vw;
}
.sp-only .japanese-cta-button:hover {
  background-color: #13cf5eb6;
  text-decoration: none;
}
.sp-only .button-text {
  color: white;
  text-decoration: none;
  font-size: min(800px,calc(4vw - 3px)) ;
  font-weight: bold;
  text-align: center;
}
.sp-only .arrow-icon {
  width: min(800px,calc(6vw - 3px)) ;
  height: min(800px,calc(6vw - 3px)) ;
  transform: translateY(1px)
}

/* Frame Container */
.sp-only .frame-container {
  background-image: url('/new_chu1/gakuryoku/images/sp/flame01.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: min(800px,calc(10vw - 3px))  auto;
  padding: min(800px,calc(10vw - 3px)) ;
  box-sizing: border-box;
  width: 100%;
  max-width: 75vw;
}
.sp-only .frame-container p {
  font-weight: bold;
  margin-top:1vw;
  margin-bottom:1vw;
}
.sp-only .frame-text-large {
  font-size: 5vw ;
  text-align: center;
  line-height: 1.5;
}
.sp-only .frame-text-highlight {
  font-size: 5vw;
  text-align: center;
  line-height: 1.5;
}
.sp-only .frame-text-small {
  font-size: 3.8vw;
  text-align: center;
  line-height: 1.5;
}
.sp-only .highlight {
  background-image: linear-gradient(to top, #FFF076, #FFF076);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 40%;
  padding: 0 5px;
}
.sp-only .toggle-btn {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 5px;
  color: green;
}

.sp-only .collapsible-content {
  display: none;
}

.sp-only .caption-text.note.small.main-content {
  font-size: 2vw;
  line-height: 1.5;
  color: #463636;
}
 .sp-only .toggle-label {
    cursor: pointer;
    user-select: none;
  }
  
  /* Ẩn nội dung ban đầu */
  .sp-only .collapsible-content {
    display: none;
  }
  
  /* Đổi dấu */
  .sp-only .toggle-label .toggle-icon::before {
    content: "＋"; /* Hiển thị dấu + */
  }
  
  /* Khi checkbox được chọn, ẩn dấu + và hiện dấu - */
  .sp-only .toggle-checkbox:checked + .toggle-label .toggle-icon::before {
    content: "ー"; /* Chuyển sang dấu - */
  }
  
  /* Hiển thị nội dung khi checkbox được chọn */
  .sp-only .toggle-checkbox:checked ~ .collapsible-content {
    display: block;
  }

}