body {
  font-family: sans-serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #0b1644;
  background-color: #f4f4f4;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* layout */
header {
  padding: 20px;
  margin: 0 auto;
  max-width: 940px;
}

header img {
  max-width: 400px;
}

.wrapper {
  background-color: #fff;
  margin: 0 auto;
  max-width: 940px;
}

.inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* color */
:root {
  --primary-color: #0B1644;
  --secondary-color: #f6c643;
  --accent-color: #EB6921;
}

.header1 {
  font-size: 1.8em;
  font-weight: bold;
  font-family: serif;
  text-align: center;
  margin-top: 2rem;
}

.header2 {
  padding: 0.5rem;
  margin: 3rem 0 2rem 0;
  font-size: 1.3em;
  color: #fff;
  font-weight: bold;
  background-color: var(--primary-color);
}

.header3 {
  padding: 0.5rem;
  margin: 7rem 0 2rem 0;
  font-size: 1.2em;
  color: #fff;
  font-weight: bold;
  background-color: var(--primary-color);
  text-align: center;
}

.header4 {
  padding: 0.5rem;
  margin: 7rem 0 2rem 0;
  font-size: 1.2em;
  color: #fff;
  font-weight: bold;
  background-color: var(--accent-color);
  text-align: center;
}

.impact {
  color: var(--accent-color);
  font-weight: bold;
}

.impact2 {
  font-weight: bold;
}

.impact3 {
  font-style: normal;
  color: var(--accent-color);
  font-weight: bold;
  display: block;
  margin-bottom: 1rem;
}

.impact4 {
  color: var(--accent-color);
  font-weight: bold;
}

/* lead picture */
.lead-pic {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lead-pic img {
  height: 400px;
  width: 100%;
  object-fit: cover;
}

.lead-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  font-size: 1.5em;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
}

/* popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.popup-overlay.show {
  display: flex;
  opacity: 1;
}

.popup-content {
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  min-width: 320px;
  max-width: 90%;
  width: 80%;

  max-height: 80vh;
  text-align: left;
  transform: scale(0.95);
  transition: transform 0.3s ease-in-out;
}

.popup-overlay.show .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.popup-close:hover {
  color: #333;
}

#popupMenuTitle {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6em;
  color: #333;
  font-weight: bold;
}

#popupMenuBody {
  overflow-y: auto;
  max-height: 60vh;
}

#popupMenuBody p {
  margin-bottom: 10px;
  font-size: 1em;
  color: #555;
  line-height: 1.7;
}

#hidden-popup-contents {
  display: none;
}

.menu-title {
  cursor: pointer;
}

.menu-title:hover {
  color: #007bff;
  text-decoration: underline;
}

/* enrollment */
.enrollment-set-pic {
  padding: 1.5rem;
  background-color: var(--primary-color);
}

.enrollment-set-container {
  padding: 1.5rem;
  background-color: var(--primary-color);
}

/* Support Menu */
.support-menu-title {
  font-size: 1.5em;
  font-weight: bold;
}

.support-menu-content {
  padding: 20px;
  margin: 20px;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.support-menu-content p {
  margin-bottom: 1em;
  overflow: hidden;
}

.support-menu-content p:last-child {
  margin-bottom: 0;
}

.support-menu-image {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  max-width: 40%;
  border: 1px solid #eee;
  padding: 4px;
  background: #f9f9f9;
}

.support-menu-fullwidth-image {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1.5rem;
  display: block;
  float: none;
  margin-left: 0;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

table thead th {
  background-color: #d8d8d8;
  font-weight: bold;
  text-align: center;
}

table thead th img {
  max-width: 80px;
}

table thead th:first-child {
  text-align: left;
}

table tbody td {
  background-color: #ffffff;
}

table tbody td.menu-title {
  background-color: #fff7eb;
  font-weight: 500;
}

.tbmark {
  text-align: center;
  color: #f6c643;
  font-size: 1.4em;
}


/* slider common */
.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-button.left {
  left: 0;
}

.slider-button.right {
  right: 0;
}

.slider-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


/* slider (support menu) */
.slide-menu-title {
  height: 3.5rem;
  text-align: center;
  line-height: 1.2rem;
  overflow: hidden;
}

.slide-menu-image {
  height: 200px;
  overflow: hidden;
  text-align: center;
  margin-bottom: 10px;
}

.slide-menu-image img {
  height: 200px;
  object-fit: cover;
}

.slide-menu-text {
  padding-bottom: 2rem;
  font-size: 90%;
  height: auto;
}

/* slider (hou to practice) */
.slide-practice-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.slide-practice-item {
  background-image: url("../images/lp_common/how_to_practice_bg.png");
  background-size: 100% 100%;
  background-position: center;
  padding: 10px 30px 40px 10px;
}

.slide-practice-subtitle {
  color: var(--primary-color);
  font-size: 90%;
  line-height: 1.3;
}

.slide-practice-title {
  color: var(--primary-color);
  line-height: 1.3;
}

.slide-practice-text {
  margin-top: 10px;
  font-size: 70%;
  line-height: 1.5;
}

/* voice */
.slide-voice-image {
  float: right;
  width: 40%;
  max-width: 250px;
  margin-left: 20px;
  padding-top: 20px;
}

.slide-voice-title {
  color: var(--primary-color);
  line-height: 1.3;
  font-family: serif;
  font-size: 1.5em;
  font-weight: bold;
}

.slide-voice-body {
  padding: 20px 20px 40px 20px;
}

/* present */
.present-container {
  margin-bottom: 3rem;

}

.present-subtitle {
  color: var(--primary-color);
  font-size: 90%;
  line-height: 1.3;
}

.present-title {
  color: var(--primary-color);
  line-height: 1.3;
  font-family: serif;
  font-size: 1.5em;
  font-weight: bold;
}


/* profile */
.profile-name {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  font-family: serif;
}

.profile-title {
  color: var(--primary-color);
}

.profile-img {
  float: right;
  width: 50%;
  max-width: 250px;
  margin-left: 20px;
}

.profile-sign {
  text-align: right;
}

.profile-sign img {
  max-width: 250px;
  height: auto;
}

/* QA */
.qa-type {
  font-size: 1.2em;
  margin-top: 1.5rem;
}

.qa-item .accordion-trigger {
  font-weight: normal;
  justify-content: flex-start;
  cursor: pointer;
}

.qa-item .accordion-content {
  margin-bottom: 2rem;
}

.qa-item .accordion-content p {
  line-height: 1.7;
  font-size: 0.9em;
  margin-left: 30px;
  margin-bottom: 0.1rem;
  margin-top: 0.1rem;
  color: var(--text-light);
}

.qa-item .accordion-content p.text-header {
  margin-top: 0;
  margin-bottom: 0.3rem;
  color: var(--text-light);
  font-weight: bold;
}

/* course selection */
.course-selection-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;

  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 2rem;
}

.course-item {
  flex: 1 1 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0 20px;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-item.frame2 {
  border-top: 6px solid #930006;
}

.course-item.frame1 {
  border-top: 6px solid #feda3d;
}

.course-item.frame0 {
  border-top: 6px solid #222222;
}

.course-item img:first-of-type {
  max-width: 55%;
  height: auto;
  margin: 1rem auto 2rem auto;
}

.course-item .price {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.course-item .pay {
  font-size: 1em;
  color: #555;
  margin-bottom: 1rem;
}

.course-item a .enroll {
  display: inline-block;
  max-width: 85%;
  height: auto;
  margin-top: auto;
  padding-top: 1rem;
  transition: opacity 0.2s ease-in-out;
}

.course-item a:hover .enroll {
  opacity: 0.8;
}

.footer-top {
  background-color: #f8f8f8;
  padding-top: 2rem;
  text-align: center;
}

.footer-top-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-logo {
  max-width: 400px;
  height: auto;
  margin-top: 15px;
  margin-bottom: 2em;
}

.footer-nav {
  margin-bottom: 2em;
}

.footer-nav a {
  text-decoration: none;
  color: #333;
  font-weight: normal;
  margin: 0 0.5em;
  display: inline-block;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #007bff;
  text-decoration: underline;
}

.footer-nav .separator {
  margin: 0 0.2em;
  color: #aaa;
  display: inline-block;
}

.footer-bottom-image {
  width: 100%;
  height: auto;
  display: block;
}

footer {
  background-color: #333;
  color: #ccc;
  padding: 2rem 20px;
  text-align: center;
  font-size: 0.85em;
  line-height: 1.6;
}

footer p {
  margin-bottom: 0.8em;
}

footer p:last-child {
  margin-bottom: 0;
}

footer .copyright {
  margin-top: 1.5em;
  font-size: 0.9em;
}

/* smartphone styles */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  ul {
    padding-left: 20px;
  }

  .header3 {
    margin: 4rem 0 1rem 0;
  }

  .header4 {
    margin: 4rem 0 1rem 0;
  }

  .inner {
    padding: 0 10px;
  }

  #popupMenuTitle {
    font-size: 1.2em;
    line-height: 1.2;
  }

  .slide-practice-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .enrollment-set-container {
    padding: 0.1rem;
  }

  .support-menu-content {
    padding: 10px;
    margin: 10px;
  }

  .lead-text {
    font-size: 1.1em;
    padding: 10px;
  }

  table thead th img {
    max-width: 45px;
  }

  table td {
    font-size: 13px;
  }

  .accordion-trigger {
    flex-direction: column;
    align-items: flex-start;
  }

  .accordion-trigger::before {
    right: 10px;
  }

  .support-menu-image {
    float: none;
    margin: 0 auto 10px auto;
    max-width: 100%;
    width: 100%;
  }

  .course-selection-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .course-item {
    flex: none;
    width: 80%;
    max-width: 400px;
  }

  .course-item img {
    max-width: 100vw;
    width: 50%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 1rem auto 2rem auto;
  }

  .course-item .price {
    font-size: 1.4em;
  }

  .course-item a .enroll {
    max-width: 75%;
  }

  .footer-nav a {
    margin: 0.3em 0.5em;
  }

  .footer-nav .separator {
    display: none;
  }

  .slide-voice-title {
    font-size: 1em;
  }

  .slide-voice-body {
    line-height: 1.2;
  }

  .present-title {
    font-size: 1.2em;
  }

  .profile-name {
    font-size: 1.2em;
  }
}