:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --text-color: #333333;
    --background-color: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0 !important;
}

a{
    text-decoration:none;
}

footer p{
    padding-bottom: 0;
    margin-bottom: 0 !important;
  }

/* Navbar Styles */
.navbar {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-icon {
    color: var(--primary-color);
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.login-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background-color: var(--secondary-color);
}

.login-icon {
    stroke: currentColor;
}

.mobile-login {
    display: none;
}

/* Add dropdown menu styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f7fafc;
    color: #0066cc;
}

@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0;
        margin-left: 1rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
    }
    .mobile-login {
        display: flex;
        padding:0.75rem 2rem;
        font-size:1rem;
    }
    .mobile-login .login-icon {
        width:20px;
        height:20px;
    }
}
/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background-color: #030303;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(3, 3, 3, 0.5), rgba(3, 3, 3, 0.5)),
                      url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.background-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(to right, rgba(0, 102, 204, 0.15), transparent);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(2px);
}

.shape-1 {
    width: 600px;
    height: 140px;
    left: -10%;
    top: 15%;
    transform: rotate(12deg);
}

.shape-2 {
    width: 500px;
    height: 120px;
    right: -5%;
    top: 70%;
    transform: rotate(-15deg);
}

.shape-3 {
    width: 300px;
    height: 80px;
    left: 5%;
    bottom: 5%;
    transform: rotate(-8deg);
}

.shape-4 {
    width: 200px;
    height: 60px;
    right: 15%;
    top: 10%;
    transform: rotate(20deg);
}

.shape-5 {
    width: 150px;
    height: 40px;
    left: 20%;
    top: 5%;
    transform: rotate(-25deg);
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0, 102, 204, 0.05), transparent, rgba(51, 153, 255, 0.05));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.title-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.circle-icon {
    color: #3399ff;
}

.title-badge span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.02em;
}

.text-gradient-1 {
    background: linear-gradient(to bottom, white, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-2 {
    background: linear-gradient(
        45deg,
        #5FB5E6 0%,
        #7CC7F5 30%,
        #FFFFFF 50%,
        #1E88C3 70%,
        #3B3B8C 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.text-gradient-2::after {
    content: '新しいスタンダード';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(
        45deg,
        #5FB5E6 0%,
        #7CC7F5 30%,
        #FFFFFF 50%,
        #1E88C3 70%,
        #3B3B8C 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(8px);
    opacity: 0.5;
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.top-cta-wrapper {
    display: flex;
    justify-content: center;
}

.top-cta-btn {
    background-color: var(--primary-light);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* 下線を消す */
}

.top-cta-btn:hover {
    background-color: var(--secondary-color);
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 3, 3, 0.7), transparent, rgba(3, 3, 3, 0.7));
    pointer-events: none;
}

/* index Courses Section */
.top-courses {
    padding: 5rem 2rem;
    background-color: #f8f9fa;
}

.top-section-title {
    text-align: center;
    font-family: 'Zen Old Mincho', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.top-section-subtitle {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 300;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 1rem;
}

.top-section-subtitle::before,
.top-section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: #ccc;
}

.top-section-subtitle::before {
    right: 100%;
}

.top-section-subtitle::after {
    left: 100%;
}

.top-section-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.top-course-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.top-card {
    background-color: white;
    padding: 2rem 1.5rem;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-card:hover {
    transform: translateY(-10px);
}

.top-card-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.05);
    width: 100px;
    height: 100px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.top-card h3 {
    
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.top-card p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem; /* 少し小さめに */
}

.top-course-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
    width: 100%;
}

.top-course-features li {
    margin-bottom: 0.3rem;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.9rem;
}

.top-course-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.top-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.top-period {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.top-card-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.top-card-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.top-btn-icon {
    stroke: currentColor;
}
.top-card-btn1 {
    text-decoration: none;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem; /* 13px → 約14.4px */
}

.top-card-btn1:hover {
    background-color: var(--primary-color);
    color: white;
}

.top-btn-icon1 {
    stroke: currentColor;
}


/* Index CTA Section Styles */
.top-cta-section {
    padding: 4rem 2rem;
   /* background: linear-gradient(135deg, #f0f9ff 0%, #e6f6ff 100%);*/
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.top-cta-container {
    max-width: 1200px;
    margin: 0 auto;
}

.top-cta-content {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08);
}

.top-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.top-cta-badge svg {
    color: #0066cc;
}

.top-cta-content h2 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-family: 'Zen Old Mincho', serif;
}

.top-cta-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.top-cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.top-cta-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2d3748;
    font-size: 1rem;
}

.top-cta-features .top-feature svg {
    color: #0066cc;
}

.top-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.top-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #80CBC4 0%, #1cd4c5 100%);
    color: white;
    text-decoration: none;
    border-radius: 1px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.top-rimary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

@media (max-width: 768px) {
    .top-cta-section {
        padding: 4rem 1rem;
    }

    .top-cta-content {
        padding: 2rem;
    }

    .top-cta-content h2 {
        font-size: 1.5rem;
    }

    .top-cta-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .top-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .top-primary-btn {
        justify-content: center;
    }
}


/* Footer Styles */
.footer {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    padding:3rem 1rem 0rem 3rem;
    color: var(--text-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo .book-icon {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.footer-logo .site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

.footer-section-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap; /* スマホで折り返しもOKにするなら */
  }

  .footer-section-group .footer-section {
    flex: 1;
    min-width: 150px;
  }
/* Steps Section Styles */
.steps-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.steps-header {
    margin-bottom: 2rem;
}

.steps-header h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-family: 'Zen Old Mincho', serif;
}

.steps-header p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
}

.step-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: #80CBC4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 1rem auto 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 0px;
    color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    font-size: 1.25rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.step-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.steps-cta {
    margin-top: 3rem;
}

.steps-cta .primary-btn {
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

@media (max-width: 768px) {
    .steps-section {
        padding: 4rem 1rem;
    }

    .steps-header h2 {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 240px; /* お好みで 220px, 200px などもOK */
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        background: white;
        position: absolute;
        top: 100%;
        right: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link:hover {
        background-color: rgba(0, 102, 204, 0.15);
        color: #004d99;
    }
    .desktop-login {
        display: none;
    }

    .mobile-login {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .top-section-title {
        font-size: 2rem;
    }

    .top-section-description {
        font-size: 1rem;
        
        padding: 0 1rem;
    }

    .shape-1 {
        left: -20%;
    }

    .shape-2 {
        right: -15%;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    
    .about-header {
        padding: 3rem 1rem;
    }

    .about-header h1 {
        font-size: 1.8rem;
    }

    .about-content {
        padding: 2rem 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }


    .test-sections,
    .tips-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }


    .section-card,
    .tip-card {
        padding: 1.5rem;
    }

    .content-section p {
        font-size: 0.95rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .action-btn {

        justify-content: center;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-bottom {
        padding-top: 1rem;
    }
    .footer-section-group.mobile-inline {
        flex-direction: row;
        display: flex;
        gap: 1rem;
        justify-content: left;
      }
    
      .footer-section-group.mobile-inline .footer-section {
        flex: 1;
        min-width: 140px;
        align-items: left;
      }

      .footer-links {
        text-align: left;
        padding-left: 0;
        list-style: none;
      }
      .footer-section-group h3{
        text-align: left;
      }
      .hero {
        padding-top: 0; /* ナビの分を除く */
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
      }
    
      .hero-content {
    
        padding-top: 130px; /* 上方向の余白を減らす */
      }
}





/* Base Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --text-color: #333333;
    --background-color: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* About GAB Page Styles */
.about-gab {
    padding-top: 80px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.about-header {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f7ff 100%);
    padding: 3rem 2rem;
    text-align: center;
}

.about-header h1 {
   font-family: 'Zen Old Mincho', serif;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.about-header .subtitle {

    font-size: 1rem;
    color: #666;
    letter-spacing: 0.1em;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}


/*.about-content-section h2 {
   font-family:'Zen Old Mincho', serif;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}
*/

.about-content-section h2 {
    font-family:  'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
 }
 
 .about-content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
 }

.about-content-section p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-test-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-section-card {
    background: white;
    padding: 2rem;
    border-radius: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.about-section-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-section-card ul {
    list-style: none;
    padding: 0;
}

.about-section-card ul li {
    color: #444;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-section-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}


.about-tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-tip-card {
    background: white;
    padding: 2rem;
    border-radius: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.about-tip-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-tip-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-tip-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.about-action-section {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f7ff 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0px;
    margin-top: 4rem;
}

.about-action-section h2 {
    margin-bottom: 1rem;
}

.about-action-section p {
    margin-bottom: 2rem;
}

.about-action-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.about-action-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.about-action-icon {
    stroke: currentColor;
}

.about-mock-exam {
    background-color: #2c5282;
}

.about-mock-exam:hover {
    background-color: #1a365d;
}

.about-training {
    background-color: #2f855a;
}

.about-training:hover {
    background-color: #22543d;
}


/* Modern Action Link Styles */
.about-action-link {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-tips-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.03em;
}

.about-tips-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.about-tips-link:hover {
    background: #0052a3;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.about-tips-link:hover::before {
    transform: translateX(100%);
}

.about-tips-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.about-tips-link:hover svg {
    transform: translateX(4px);
}

/* Modern decorative elements */


.about-action-link::before {
    left: 30%;
    top: 50%;
}

.about-action-link::after {
    right: 30%;
    top: 50%;
}

.about-action-link:hover::before {
    left: 25%;
    opacity: 0.5;
}

.about-action-link:hover::after {
    right: 25%;
    opacity: 0.5;
}

/* Responsive styles */
@media (max-width: 768px) {
    .about-tips-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .about-tips-link svg {
        width: 18px;
        height: 18px;
    }

    .about-action-link::before,
    .about-ction-link::after {
        width: 30px;
    }
}
/* Test Comparison Section */
.about-test-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-comparison-card {
    background: white;
    padding: 2rem;
    border-radius: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.about-comparison-card:hover {
    transform: translateY(-5px);
}

.about-comparison-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 102, 204, 0.1);
}

.about-test-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-detail-item h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-detail-item p {
    color: #666;
    margin: 0;
}

.about-detail-item ul {
    list-style: none;
    padding: 0;
}

.about-detail-item ul li {
    color: #666;
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.about-detail-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 0%;
}


/* Tips Page Specific Styles */
.tips-page {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    min-height: 100vh;
    font-family: 'Noto Sans JP', sans-serif;
}

.tips-container1 {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
}

.tips-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tips-header h1 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-family: 'Zen Old Mincho', serif;
}

.tips-header p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.tips-section {
    margin-bottom: 3rem;
}

.tips-section h2 {
    font-size: 1.4rem;
    color: #2c5282;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tips-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #2c5282, #0066cc);
    border-radius: 0px;
}

.tips-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 0.95rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.tips-list li {
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.tips-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 0%;
    background: #0066cc;
}

.tips-box {
    background: #f8fafc;
    border-radius: 0px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.tips-box h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-box h3 svg {
    color: #0066cc;
}

.summary-section {
    background: #ebf8ff;
    border-radius: 0px;
    padding: 2rem;
    margin-top: 3rem;
}

.summary-section h2 {
    color: #2c5282;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.summary-content {
    color: #2d3748;
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .tips-container1 {
        padding: 1.5rem;
    }

    .tips-header h1 {
        font-size: 1.3rem;
    }

    .tips-section h2 {
        font-size: 1.2rem;
    }

    .tips-content {
        font-size: 0.9rem;
    }

    .tips-box {
        padding: 1.25rem;
    }
}




/*mockexam explain Base Styles */
:root {
    --primary-color: #0066cc;
    --primary-dark: #2c5282;
    --primary-light: #4299e1;
    --primary-gradient: linear-gradient(135deg, #2c5282 0%, #0066cc 100%);
    --secondary-gradient: linear-gradient(135deg, #ebf8ff 0%, #e6f6ff 100%);
    --button-gradient: linear-gradient(135deg, #2c5282 0%, #0066cc 100%);
    --button-hover-gradient: linear-gradient(135deg, #0066cc 0%, #2c5282 100%);
    --text-color: #2d3748;
    --text-light: #4a5568;
    --background-color: #ffffff;
    --card-shadow: 0 8px 20px rgba(44, 82, 130, 0.1);
    --button-shadow: 0 4px 15px rgba(44, 82, 130, 0.2);
}

.abtm-mock-exam-page {
    min-height: 100vh;
    padding: 80px 20px 40px;
    background: var(--secondary-gradient);
}

.abtm-mock-exam-container {
    max-width: 800px;
    margin: 0 auto;
}

.abtm-mock-exam-header {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 4rem;
    border-radius: 2px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.abtm-mock-exam-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.abtm-mock-exam-header h1 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    font-family: 'Zen Old Mincho', serif;
}

.abtm-mock-exam-header p {
    color: var(--text-light);
    font-size:15px;
    line-height: 1.8;
}


.abtm-exam-info-card {
    background: white;
    border-radius: 0px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}


.abtm-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.abtm-info-icon {
    background: var(--primary-gradient);
    padding: 10px;
    border-radius: 10px;
    color: white;
}

.abtm-info-header h2 {
    font-size: 18px;
    color: var(--primary-dark);
    margin: 0;
}

.abtm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.abtm-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}



.abtm-info-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.abtm-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.abtm-exam-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top:2rem;
}

.abtm-feature-item {
    background: white;
    border-radius: 0px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}


.abtm-feature-icon {
    background: var(--primary-gradient);
    padding: 12px;
    border-radius: 12px;
    color: white;
    margin-bottom: 1.2rem;
    
}

.abtm-feature-item h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}

.abtm-feature-item p {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.6;
}

.abtm-exam-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.abtm-start-exam-btn, .abtm-register-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.abtm-start-exam-btn {
    background: var(--button-gradient);
    color: white;
    box-shadow: var(--button-shadow);
}

.abtm-register-btn {
    background: white;
    color: var(--primary-dark);
    border: 2px solid #e2e8f0;
    box-shadow: var(--card-shadow);
}

.abtm-start-exam-btn:hover, .abtm-register-btn:hover {
    transform: translateY(-3px);
}

.abtm-start-exam-btn:hover {
    background: var(--button-hover-gradient);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.3);
}

.abtm-register-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.abtm-btn-icon{
    transition: transform 0.3s ease;
}

.abtm-start-exam-btn:hover .abtm-btn-icon, .abtm-register-btn:hover .abtm-btn-icon {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .abtm-mock-exam-header h1 {
        font-size: 1.8rem;
    }
    .abtm-mock-exam-header {
       
        padding: 2rem;
    
    }
    .abtm-info-grid {
        grid-template-columns: 1fr;
    }

    .abtm-exam-features,.course-container {
        grid-template-columns: 1fr;
    }

    .abtm-exam-actions {
        flex-direction: column;
    }


}

/* Training Page Styles */
.abtt-training-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.abtt-training-header {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.abtt-training-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.abtt-training-header h1 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    color:white;

}

.abtt-training-header .abtt-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    opacity: 0.9;
    position: relative;
}

.abtt-course-intro {
    text-align: center;
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.abtt-training-courses {
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.abtt-course-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.abtt-course-card {
    background: white;
    padding: 1.75rem;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.abtt-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.abtt-course-card.nonverbal::before {
    background: linear-gradient(to right, #0066cc, #0099ff);
}

.abtt-course-card.verbal::before {
    background: linear-gradient(to right, #0099ff, #00ccff);
}

.abtt-course-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.abtt-course-icon svg {
    color: #0066cc;
}

.abtt-course-card h2 {
    font-size: 1.3rem;
    color: #484849;
    margin-bottom: 0.4rem;
}

.abtt-course-subtitle {
    color: #0066cc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.abtt-course-description {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.abtt-duration {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 0px;
    font-size: 0.8rem;
    color: #0066cc;
}

.abtt-course-features {
    display: grid;
    margin-bottom: 1.25rem;
}

.abtt-feature {
    background: rgba(0, 102, 204, 0.05);
    padding: 1rem;
    margin-bottom:5px;
    border-radius: 0px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.abtt-feature h3 {
    color: #0066cc;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.abtt-feature p {
    color: #4A5568;
    font-size: 0.85rem;
    line-height: 1.5;
    padding:1px;
}

.abtt-price-tag {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0066cc;
}

.abtt-start-course-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    justify-content: center;
}

.abtt-start-course-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.abtt-start-course-btn svg {
    transition: transform 0.3s ease;
}

.abtt-start-course-btn:hover svg {
    transform: translateX(4px);
}

/* Add responsive styles for training page */
@media (max-width: 768px) {
    .abtt-course-container {
        grid-template-columns: 1fr;
    }

    .abtt-training-header h1 {
        font-size: 1.8rem;
    }

    .abtt-training-courses {
        padding: 2rem 1rem;
    }


    .abtt-course-description {
        font-size: 0.85rem;
    }

    .abtt-feature {
        padding: 0.875rem;
    }

    .abtt-feature h3 {
        font-size: 0.95rem;
    }

    .abtt-feature p {
        font-size: 0.8rem;
    }


}
/* FAQ Page Styles */
.faq-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.faq-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.faq-header h1 {
    font-family: 'Zen Old Mincho', serif;
    font-size: 2rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.faq-header .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.faq-categories {
    display: grid;
    gap: 2rem;
}

.faq-category {
    background: white;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-header {
    background: #2d3748;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.faq-list {
    padding: 0.5rem;
}

.faq-item {
    margin: 0.5rem 0;
    background: #f8fafc;
    border-radius: 0px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    background: #f1f5f9;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    color: #1a202c;
    font-size: 0.95rem;
    font-weight: 500;
}

.question-icon {
    color: #2c5282;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 1rem 1rem 2.75rem;
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.6;
}


/* Contact Page Styles */
.contact-page {
    min-height: 100vh;
    padding: 80px 16px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.contact-form-group {
    display: grid;
    gap: 0.5rem;
}

.contact-form-group label {
    font-size: 0.9rem;
    color: #2d3748;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-required {
    color: #0066cc;
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    background: rgba(0, 102, 204, 0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #2d3748;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0066cc;
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.contact-submit-btn:hover {
    background: #0052a3;
}

.contact-submit-btn svg {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .contact-container {
        padding: 1.5rem;
    }

    .contact-header h1 {
        font-size: 1.5rem;
    }
}


/* ver2 Login Page Styles */
.v2-login-page {
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f6ff 100%);
    position: relative;
    overflow: hidden;
}

.v2-login-page::before,
.v2-login-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 153, 255, 0.05) 100%);
    z-index: 0;
}

.v2-login-page::before {
    top: -100px;
    right: -100px;
}

.v2-login-page::after {
    bottom: -100px;
    left: -100px;
}

.v2-login-container {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.v2-login-form-container {
    text-align: center;
}

.v2-login-form-container h1 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.v2-login-form-container h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #0066cc, #0099ff);
    border-radius: 2px;
}

.v2-login-description {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.v2-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.v2-form-group {
    text-align: left;
}

.v2-form-group label {
    display: block;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.v2-input-with-icon {
    position: relative;
    width: 100%; /* これ追加 */
}

.v2-input-with-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    transition: color 0.3s ease;
}

.v2-input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem; /* ←paddingだけ調整 */
    box-sizing: border-box; /* ここが超大事！必ず追加！！ */
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.v2-input-with-icon input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: white;
}

.v2-input-with-icon input:focus + svg {
    color: #0066cc;
}

.v2-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.v2-remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.v2-forgot-password {
    font-size: 0.9rem;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.v2-forgot-password:hover {
    color: #0052a3;
    text-decoration: underline;
}

.v2-login-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.v2-login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

.v2-login-submit-btn:active {
    transform: translateY(0);
}

/* ver2 Register Section Styles */
.v2-register-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    text-align: center;
    position: relative;
}

.v2-register-section::before {
    content: 'or';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.v2-register-section h2 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.v2-register-section p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.v2-register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v2-register-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #0066cc;
    border-radius: 12px;
    color: #0066cc;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v2-register-submit-btn:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.v2-register-submit-btn:active {
    transform: translateY(0);
}

.v2-register-submit-btn svg {
    transition: transform 0.3s ease;
}

.v2-register-submit-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .v2-login-container {
        padding: 1rem;
    }

    .v2-form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}



/* Common Styles for Legal Pages */
.legal-page,
.policy-page {
    min-height: 100vh;
    padding: 80px 16px 32px;
    background: #fff;
}

.legal-container,
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-container h1,
.policy-container h1 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Legal Page Specific Styles */
.legal-table {
    display: grid;
    gap: 1.5rem;
}

.legal-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-header {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95rem;
}

.legal-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 0.95rem;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.legal-content ul li {
    margin-bottom: 0.75rem;
}

/* Privacy Policy Specific Styles */
.policy-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 700;
}

.policy-section p {
    color: #4a5568;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.policy-section ul li {
    color: #4a5568;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.policy-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2d3748;
}

.contact-info {
    margin-top: 1rem;
    padding: 1rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
}

.policy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: right;
    color: #718096;
    font-size: 0.9rem;
}

.policy-footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container,
    .policy-container {
        padding: 1rem;
    }

    .legal-container h1,
    .policy-container h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .legal-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-bottom: 1rem;
    }

    .policy-section h2 {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .legal-page,
    .policy-page {
        padding: 0;
    }

    .legal-container,
    .policy-container {
        max-width: 100%;
    }

    .legal-row,
    .policy-section {
        page-break-inside: avoid;
    }

    
}

/* Login and Register Page Styles */
.login-page,
.register-page {
    min-height: 100vh;
    padding-top: 40px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container,
.register-container {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
    width: 100%;
    max-width: 800px;
    margin: 1.5rem;
    overflow: hidden;
}

.login-illustration,
.register-illustration {
    flex: 1;
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.study-illustration {
    width: 100%;
    max-width: 300px;
    opacity: 0.9;
}

.login-form-container,
.register-form-container {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.login-form-container h1,
.register-form-container h1 {
    font-size: 1.5rem;
    color: #1565C0;
    margin-bottom: 0.5rem;
}

.login-description,
.register-description {
    color: #546E7A;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.8125rem;
    color: #455A64;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    color: #90A4AE;
    width: 18px;
    height: 18px;
}

.input-with-icon input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.input-with-icon input::placeholder {
    color: #B0BEC5;
    font-size: 0.8125rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #455A64;
}

.remember-me input[type="checkbox"] {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 3px;
    border: 1px solid #B0BEC5;
    cursor: pointer;
}

.forgot-password {
    color: #1E88E5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.8125rem;
}

.forgot-password:hover {
    color: #1565C0;
}

.login-submit-btn,
.register-submit-btn {
    background: linear-gradient(135deg, #80CBC4 0%, #20cebf 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.login-submit-btn:hover,
.register-submit-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #0D47A1 100%);
    transform: translateY(-1px);
}

.login-submit-btn:active,
.register-submit-btn:active {
    transform: translateY(0);
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #455A64;
}

.register-link a,
.login-link a {
    color: #1E88E5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-link a:hover,
.login-link a:hover {
    color: #1565C0;
}
@media (max-width: 768px) {
    .login-container {
      flex-direction: column;
    }
  
    .login-illustration {
      display: none;
    }
  
    .login-form-container {
      width: 100%;
      padding: 2rem 1.5rem;
    }
  }
  @media (max-width: 768px) {
    html, body {
      overflow-x: hidden; /* 横スクロール防止 */
    }
  
    .login-container {
      flex-direction: column;
      width: 100%;
      margin: 0 1rem; /* 左右に少し余白 */
      box-sizing: border-box;
    }
  
    .login-form-container {
      width: 100%;
      padding: 1.5rem;
      box-sizing: border-box;
    }
  
    .login-form-container input,
    .login-form-container button {
      width: 100%; /* フル幅にしてはみ出さないように */
    }
  
    .input-with-icon input {
      padding-left: 2.5rem;
      box-sizing: border-box;
    }
  }
  

/* Mypage Styles */
.mypage {
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.mypage-container {
    max-width: 1000px;
    margin: 0 auto;
}

.mypage-header {
    background: white;
    border-radius: 2px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.header-main-mypage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mypage-header h1 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0;
}


.mypage-header-links {
    display: flex;
    align-items: center;
}

.mypage-header-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.mypage-header-link:hover {
    background: #f8fafc;
    color: #2d3748;
}

.mypage-header-link svg {
    color: #64748b;
}

.mypage-header-link:hover svg {
    color: #2d3748;
}

.mypage-account-text {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.mypage-header-nav {
    display: flex;
    gap: 2rem;
}

.mypage-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #64748b;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.mypage-nav-item.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

.mypage-nav-item:hover:not(.active) {
    color: #2d3748;
}


.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
        padding: 0.25rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #f1f5f9;
    color: #ef4444;
        color: #000030;
    border-color: #ef4444;
        border-color: #ccccee;
}

.logout-btn:hover svg {
    color: #ef4444;
            color: #000030;
}

.mypage-header-nav {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}


.mypage-content {
    background: white;
    border-radius: 2px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.content-section-mypage {
    margin-bottom: 3rem;
}

.content-section-mypage h2 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.mypage-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.mypage-product-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.mypage-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.mypage-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    margin:0 auto 1.5rem;
    position:relative;

}

.mypage-card-icon svg {
    color: #0066cc;
}

.mypage-product-card h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.mypage-product-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mypage-card-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 1rem;
}

.mypage-card-price .period {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: normal;
}

.mypage-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.75rem;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.mypage-card-btn:hover {
    background: #0052a3;
}

.mypage-card-btn svg {
    transition: transform 0.3s ease;
}

.mypage-card-btn:hover svg {
    transform: translateX(4px);
}




.mypage-card-btn2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.5rem;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mypage-card-btn2:hover {
    background: #0052a3;
}

.mypage-card-btn2 svg {
    transition: transform 0.3s ease;
}

.mypage-card-btn2:hover svg {
    transform: translateX(4px);
}








.mypage-history-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mypage-history-link:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.mypage-history-link svg {
    color: #475569;
}
/* Responsive Design */
@media (max-width: 768px) {
    .mypage {
        padding: 84px 12px 20px; /* ← ナビ80px＋余裕4px */
    }

    .mypage-header-main {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .mypage-user-info {
        width: 100%;
        justify-content: center;
    }

    .mypage-header-nav {
        flex-wrap: nowrap; /* 折り返さない */
        justify-content: space-between; /* 3つを横にバランスよく配置 */
        gap: 0.5rem;
    }

    .mypage-nav-item {
        flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;
    padding: 0.25rem;
    }
    .mypage-nav-item svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0; /* アイコンが潰れないように */
      }
    
    .mypage-product-cards {
        grid-template-columns: 1fr;
    }
    .mypage-container {
        max-width: 100%;
        padding: 0 ; /* 必要に応じて内側余白を調整 */
      }
}


/* Add new styles for settings page */
.mypage-settings-form {
    max-width: 600px;
    margin-bottom: 2rem;
}

.mypage-form-group {
    margin-bottom: 1.5rem;
}

.mypage-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
}

.mypage-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.mypage-input-with-icon svg {
    position: absolute;
    left: 1rem;
    color: #64748b;
}

.mypage-input-with-icon input {
    width: 50%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.3s ease;
}

.mypage-input-with-icon input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.mypage-settings-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 50%;
    padding: 0.75rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mypage-settings-submit-btn:hover {
    background: #0052a3;
}

.mypage-settings-submit-btn svg {
    transition: transform 0.3s ease;
}

.mypage-settings-submit-btn:hover svg {
    transform: translateX(4px);
}

/* Purchase History Styles */
.mypage-purchase-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mypage-history-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mypage-history-item:hover {
    background: #f1f5f9;
}

.mypage-history-date {
    min-width: 120px;
    color: #64748b;
    font-size: 0.9rem;
}

.mypage-history-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mypage-history-title {
    color: #2d3748;
    font-weight: 500;
}

.mypage-history-price {
    color: #0066cc;
    font-weight: 600;
}

.mypage-history-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.mypage-history-status.mypage-completed {
    background: #dcfce7;
    color: #166534;
}

/* Responsive styles for settings page */
@media (max-width: 768px) {
    .mypage-settings-form {
        padding: 0;
    }

    .mypage-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .mypage-history-date {
        min-width: auto;
    }

    .mypage-history-details {
        width: 100%;
    }
}




/*mypage Ranking Page Specific Styles */
.mypage-ranking-section {
    max-width: 800px;
    margin: 0 auto;
}

.mypage-ranking-list {
    margin-top: 2rem;
}

.mypage-ranking-item {
    display: flex;
    align-items: center;
 
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 3px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.mypage-ranking-item:hover {
    transform: translateX(4px);
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.mypage-ranking-item.first {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: #FFD700;
}

.mypage-ranking-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
    border-color: #C0C0C0;
}

.mypage-ranking-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.05) 100%);
    border-color: #CD7F32;
}

.mypage-rank-badge {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    min-width: 60px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mypage-ranking-item:nth-child(2) .rank-badge {
    color: #666;
}

.mypage-ranking-item:nth-child(3) .rank-badge {
    color: #8B4513;
}

.mypage-crown {
    animation: float 3s ease-in-out infinite;
}

.mypage-crown svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.mypage-user-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mypage-user-details {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mypage-username {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 500;
}

.mypage-score {
    font-size: 1.1rem;
    font-weight: 600;
}

.mypage-ranking-item.first .mypage-score {
    color: #FFD700;
}

.mypage-ranking-item:nth-child(2) .mypage-score {
    color: #666;
}

.mypage-ranking-item:nth-child(3) .mypage-score {
    color: #8B4513;
}

.mypage-ranking-item:not(.first):not(:nth-child(2)):not(:nth-child(3)) .mypage-score {
    color: #0066cc;
}

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

@media (max-width: 768px) {
    .mypage-ranking-item {
        padding: 1rem;
    }

    .mypage-rank-badge {
        font-size: 1rem;
        min-width: 50px;
    }

    .mypage-user-details {
        gap: 1rem;
    }

    .mypage-username {
        font-size: 0.95rem;
    }

    .mypage-score {
        font-size: 0.95rem;
    }
}

/* mypage Add exam history styles */
.mypage-exam-history-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mypage-exam-history-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.mypage-exam-history-item:hover {
    background: #f1f5f9;
}

.mypage-exam-date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.mypage-exam-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mypage-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.mypage-score-item.total {
    background: #f0f9ff;
}

.mypage-score-label {
    color: #64748b;
    font-size: 0.9rem;
}

.mypage-score-value {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
}

.mypage-score-item.total .mypage-score-value {
    color: #0066cc;
}

.mypage-score-rank {
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .mypage-exam-scores {
        grid-template-columns: 1fr;
    }

    .mypage-exam-history-item {
        padding: 1rem;
    }

    .mypage-score-item {
        padding: 0.75rem;
    }

    .mypage-score-value {
        font-size: 1.25rem;
    }
}


/* Mock Exam Payment Page Styles */
.mock-exam-payment {
    min-height: 100vh;
    padding: 60px 16px 32px;
    background: linear-gradient(135deg, #ebf8ff 0%, #e6f6ff 100%);
}

.mock-exam-payment .m-payment-container {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.08);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.mock-exam-payment .m-payment-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mock-exam-payment .m-payment-header h1 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.mock-exam-payment .m-payment-header p {
    color: #64748b;
    font-size: 0.9rem;
}

.mock-exam-payment .m-product-details {
    text-align: center;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.mock-exam-payment .m-product-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: #0066cc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mock-exam-payment .m-product-details h2 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.mock-exam-payment .m-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.25rem;
}

.mock-exam-payment .m-validity {
    color: #64748b;
    font-size: 0.85rem;
}

.mock-exam-payment .m-payment-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.mock-exam-payment .m-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #4a5568;
}

.mock-exam-payment .m-summary-row.total {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    color: #2d3748;
    font-size: 1rem;
}

.mock-exam-payment .m-start-exam-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    
    padding: 0.875rem;
    background: linear-gradient(135deg, #2c5282 0%, #0066cc 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.2);
}

.mock-exam-payment .m-start-exam-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
    background: linear-gradient(135deg, #0066cc 0%, #2c5282 100%);
}

.mock-exam-payment .m-payment-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.mock-exam-payment .m-security-info {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #f0f9ff;
    border-radius: 16px;
    color: #0066cc;
    font-size: 0.8rem;
}

.m-start-exam-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    text-decoration: none;
}
@media (max-width: 480px) {
    .mock-exam-payment .m-payment-container {
        padding: 1rem;
    }

    .mock-exam-payment .m-payment-header h1 {
        font-size: 1.2rem;
    }

    .mock-exam-payment .m-product-details {
        padding: 1rem;
    }

    .mock-exam-payment .m-price {
        font-size: 1.6rem;
    }
}


/* Exam Start Page Styles */
.exam-start-page {
    min-height: 100vh;
    padding-top: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.exam-start-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    margin: 2rem;
    text-align: center;
}

.exam-start-container h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-family: 'Zen Old Mincho', serif;
}

.exam-start-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
   
}



.exam-start-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    
}


.exam-start-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-left:100px;
    padding-right:100px;
}

.exam-start-info-label {
    font-size: 0.875rem;
    color: #666;
}

.exam-start-info-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.exam-start-start-exam-btn {
    display: flex;                    /* 横並びにする */
    align-items: center;              /* 縦方向中央揃え */
    justify-content: center;          /* 横方向中央揃え（あれば） */
    gap: 0.5rem;                      /* アイコンとテキストの間隔 */
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.exam-start-start-exam-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.exam-start-start-exam-btn:active {
    transform: translateY(0);
}

.exam-start-start-icon {
    transition: transform 0.3s ease;
}

.exam-start-start-exam-btn:hover .start-icon {
    transform: translateX(4px);
}


.exam-start2-warning {
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 0;
}

.exam-start2-warning p {
    color: #9a3412;
    font-size: 0.8rem;
    margin: 0;
}

/* Exam Question Page Styles */
.exam-question-page {
    min-height: 100vh;
    padding: 80px 20px 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exam-header {
    max-width: 1200px;
    margin: 0 auto;
    width: 75%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}



.e-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
}

.e-timer-icon {
    color: #0066cc;
}

.e-time-remaining {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #0066cc;
}

.e-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    max-width: 300px;
    margin-left: 2rem;
}

.e-question-progress {
    font-size: 0.875rem;
    color: #666;
}

.e-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.e-progress-fill {
    height: 100%;
    background: #0066cc;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.e-question-container {
    max-width: 1000px;
    margin: 0 auto;
   
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.e-question-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.e-question-type {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.e-question-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.e-reading-passage {
    background: #fcfcfc;
    border: 1px solid #eeeeee;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.e-reading-passage p {
    margin-bottom: 1rem;
}

.e-reading-passage p:last-child {
    margin-bottom: 0;
}

.e-questions-group {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.e-sub-question {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.e-sub-question p {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.e-answer-options {
    display: grid;
    gap: 0.75rem;
}

.e-answer-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.e-answer-option:hover {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.02);
}

.e-answer-option input[type="radio"] {
    margin-top: 0.25rem;
}

.e-option-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.e-exam-footer {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
}
.e-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.e-nav-btn.e-prev-btn {
    background: #f8fafc;
}

.e-nav-btn.e-next-btn {
    background: #0066cc;
    color: white;
    border: none;
}

.e-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.e-nav-btn.e-prev-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.e-nav-btn.e-next-btn:hover {
    background: #0052a3;
}

.e-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
@media (max-width: 768px) {
    .e-exam-question-page {
        padding: 60px 16px 16px;
        gap: 1.5rem;
    }

    .e-exam-header {
        padding: 0.75rem;
        width:90%;
    }

    .e-progress {
        margin-left: 1rem;
    }

    .e-question-container {
        padding: 1rem;
    }

    .e-reading-passage {
        padding: 1.25rem;
    }

    .e-sub-question {
        padding: 1.25rem;
    }

    .e-answer-option {
        padding: 0.625rem 0.875rem;
    }

    .e-nav-btn {
        padding: 0.625rem 1rem;
    }
}
/* KEISUU Exam Question Page Styles */

.ek-question-container {
    max-width: 1200px;
    margin: 0 auto;
    
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.ek-question-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ek-question-type {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.ek-question-text {
    display: flex;
    flex-direction: column;
  
}

.ek-content-wrapper {
    display: flex;
    display: flex;
    gap: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.ek-graph-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ek-graph-section {
    flex: 1;
    min-width: 0;
}

.ek-questions-section {
    flex: 1.3 ;
    min-width: 0;
}

.ek-questions-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ek-sub-question {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.ek-sub-question p {
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 0rem;
    line-height: 1.6;
    margin-bottom:0.5rem;
}

.ek-answer-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.ek-answer-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ek-answer-option:hover {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.02);
}

.ek-answer-option input[type="radio"] {
    margin: 0;
}

.ek-option-text {
    font-size: 0.9rem;
    color: #2d3748;
}
@media (max-width: 1024px) {
    .ek-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .ek-graph-section,
    .ek-questions-section {
        width: 100%;
      
    }

}

@media (max-width: 768px) {
    .ek-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    .ek-graph-section,.ek-questions-section {
        min-width: 0 !important;
    }

    .ek-exam-question-page {
        padding: 60px 8px 8px;
    }

    .exam-header {
        padding: 0.75rem;
    }

    .question-container {
        padding: 1rem;
    }

    .ek-content-wrapper {
        gap: 1.5rem;
    }

   

    
    .ek-sub-question {
        padding: 1rem;
   
    }

    .ek-answer-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .ek-answer-option {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .ek-option-text {
        font-size: 0.8rem;
    }
}

/*KEISUU Training Course Page Styles */
.gab-training-course {
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f6ff 100%);
}

.gab-training-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08);
}

.gab-training-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.gab-training-header::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #0066cc, #0099ff);
    border-radius: 2px;
}

.gab-training-header h1 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
 }

.gab-training-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.gab-training-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.gab-mode-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.gab-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.12);
    border-color: #0066cc;
}

.gab-mode-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f6ff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.gab-mode-card:hover .gab-mode-icon {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
}

.gab-mode-icon svg {
    color: #0066cc;
    transition: all 0.3s ease;
}

.gab-mode-card:hover .gab-mode-icon svg {
    color: white;
}

.gab-mode-card h2 {
    font-size: 1.4rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.gab-mode-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.gab-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.gab-mode-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

.gab-sections-grid {
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}

.gab-section-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    padding: 1rem 1.5rem;
    align-items: center;
    text-decoration: none;
    color: #1a365d;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.gab-section-row:hover:not(.header) {
    background: white;
    transform: translateX(4px);
}

.gab-section-row.header {
    background: #f1f5f9;
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gab-section-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0066cc;
}

.gab-section-status {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: white;
    color: #64748b;
}

.gab-section-status.completed {
    background: #dcfce7;
    color: #166534;
}

.gab-section-status.in-progress {
    background: #fff7ed;
    color: #9a3412;
}

@media (max-width: 768px) {
    .gab-training-course {
        padding: 60px 16px;
    }

    .gab-training-wrapper {
        padding: 1.5rem;
        margin-top:1rem;
    }

    .gab-training-header {
        margin-bottom: 3rem;
    }

    .gab-training-header h1 {
        font-size: 1.2rem;
    }
    .gab-training-header p {
        font-size: 1rem;
    }

    .gab-training-modes {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gab-mode-card {
        padding: 1.5rem;
    }

    .gab-mode-icon {
        width: 48px;
        height: 48px;
    }

    .gab-mode-card h2 {
        font-size: 1.2rem;
    }

    .gab-sections-grid {
        font-size: 0.9rem;
    }

    .gab-section-row {
        grid-template-columns: 1fr 100px;
        padding: 0.75rem 1rem;
    }
    .gab-section-number {
        font-size: 1rem;
    }

    .gab-section-status {
        font-size: 0.8rem;
        text-align: center;/* スマホでも右寄せに */
    }
}

/*Gengo Training Course Page Styles */
.v-gab-training-course {
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f6ff 100%);
}

.v-gab-training-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08);
}

.v-gab-training-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.v-gab-training-header::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #0066cc, #0099ff);
    border-radius: 2px;
}

.v-gab-training-header h1 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
 }

.v-gab-training-description {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.v-gab-training-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.v-gab-mode-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin:0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    width:80%;
}

/*
.v-gab-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.12);
    border-color: #0066cc;
}*/

.v-gab-mode-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f6ff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.v-gab-mode-card:hover .v-gab-mode-icon {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
}

.v-gab-mode-icon svg {
    color: #0066cc;
    transition: all 0.3s ease;
}

.v-gab-mode-card:hover .v-gab-mode-icon svg {
    color: white;
}

.v-gab-mode-card h2 {
    font-size: 1.4rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.v-gab-mode-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.v-gab-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.v-gab-mode-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

.v-gab-sections-grid {
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}

.v-gab-section-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    padding: 1rem 1.5rem;
    align-items: center;
    text-decoration: none;
    color: #1a365d;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.v-gab-section-row:hover:not(.header) {
    background: white;
    transform: translateX(4px);
}

.v-gab-section-row.header {
    background: #f1f5f9;
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.v-gab-section-number {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0066cc;
}

.v-gab-section-status {
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: white;
    color: #64748b;
}

.v-gab-section-status.v-completed {
    background: #dcfce7;
    color: #166534;
}

.v-gab-section-status.v-in-progress {
    background: #fff7ed;
    color: #9a3412;
}
@media (max-width: 768px) {
    .v-gab-training-course {
        padding: 60px 16px;
    }

    .v-gab-training-wrapper {
        padding: 1rem;
        margin-top:1rem;
    }

    .v-gab-training-header {
        margin-bottom: 3rem;
    }

    .v-gab-training-header h1 {
        font-size: 1.2rem;
    }
    .v-gab-training-header p {
        font-size: 1rem;
    }

    .v-gab-training-modes {
        gap: 2rem;
        display:flex;
        flex-direction:column;
    }

    .v-gab-mode-card {
        padding: 1rem;
        width:90%;
   
    }

    .v-gab-mode-icon {
        width: 48px;
        height: 48px;
    }

    .v-gab-mode-card h2 {
        font-size: 1.2rem;
    }

    .v-gab-sections-grid {
        font-size: 0.9rem;
    }

    .v-gab-section-row {
        grid-template-columns: 1fr 100px;
        padding: 0.75rem 1rem;
    }
    .v-gab-section-number {
        font-size: 1rem;
    }

    .v-gab-section-status {
        font-size: 0.8rem;
        text-align: center;/* スマホでも右寄せに */
    }
}
/* Verbal Question Page Styles */

.content-wrapper-v {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.graph-section-v {
    flex: 1.2;
    min-width: 0;
}

.questions-section-v {
    flex: 0.8;
    min-width: 300px;
}

.reading-passage-v {
    background: #fcfcfc;
    border: 1px solid #eeeeee;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    font-size: 1rem;
    color: #2d3748;
}

.reading-passage-v p {
    margin-bottom: 1rem;
}

.sub-question-v {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
}

.sub-question-v p {
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 選択肢を縦並びに */
.answer-options-v {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option-v {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option-v:hover {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.02);
    transform: translateX(4px);
}

.answer-option-v input[type="radio"] {
    margin-top: 0.25rem;
}

.option-text-v {
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.5;
}

/* フィードバックスタイル */
.answer-feedback-v {
    margin-top: 1.5rem;
}

.feedback-content-v {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feedback-content-v.correct {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.feedback-content-v.incorrect {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.feedback-header-v {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* 解説スタイル */
.explanation-v {
    margin-top: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.explanation-toggle-v {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explanation-toggle-v:hover {
    background: rgba(0, 102, 204, 0.05);
}

.explanation-content-v {
    padding: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.explanation-content-v p {
    margin-bottom: 1rem;
}

/* 確認ボタン */
.check-answer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.check-answer-btn:hover {
    background: #0052a3;
}

.check-answer-btn:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
}
/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .content-wrapper-v {
        flex-direction: column;
    }

    .graph-section-v,
    .questions-section-v {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .exam-header {
        width: 90%;
    }

    .reading-passage {
        padding: 1.5rem;
        font-size: 0.95rem;
    }

    .sub-question {
        padding: 1.25rem;
    }

    .answer-option {
        padding: 0.875rem;
    }

    .nav-btn {
        padding: 0.875rem 1.5rem;
    }
}














































/* mock result Page Styles */
.mock-result-page {
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f6ff 100%);
    position: relative;
    overflow: hidden;
}

.mock-result-page::before,
.rmock-esult-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.1), rgba(0, 153, 255, 0.1));
    z-index: 0;
}

.mock-result-page::before {
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.mock-result-page::after {
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.mock-result-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.mock-result-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.mock-result-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #0066cc, #0099ff);
    border-radius: 2px;
}

.mock-result-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1a365d, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.moock-completion-date {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.mock-score-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.mock-score-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 102, 204, 0.1);
}



.mock-score-card h2 {
    font-size: 1.25rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.mock-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 
        0 8px 16px rgba(0, 102, 204, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.mock-score-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.mock-score-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.mock-score-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
}

.mock-rank-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.mock-rank-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

.mock-rank-total {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.mock-score-card.total {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f6ff 100%);
    border: 2px solid #0066cc;
}

.mock-action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 4rem;
}

.mock-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mock-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.mock-action-btn:hover::before {
    transform: translateX(100%);
}

.mock-action-btn.retry {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.mock-action-btn.train {
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.mock-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

.mock-ranking-section {
    margin-top: 4rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
}

.mock-ranking-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1a365d, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mock-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mock-ranking-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mock-ranking-item:hover {
    transform: translateX(8px);
    background: #f0f9ff;
}

.mock-ranking-item.first {
    background: linear-gradient(135deg, #fff7e6 0%, #fffbf2 100%);
    border: 1px solid #ffd700;
}

.mock-ranking-item.second {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #c0c0c0;
}

.mock-ranking-item.third {
    background: linear-gradient(135deg, #fff5f2 0%, #fff8f5 100%);
    border: 1px solid #cd7f32;
}

.mock-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a365d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mock-ranking-item.first .rank {
    color: #ffd700;
    background: #fff7e6;
}

.mock-ranking-item.second .rank {
    color: #808080;
    background: #f8fafc;
}

.mock-ranking-item.third .rank {
    color: #cd7f32;
    background: #fff5f2;
}

.mock-user-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-username {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
}

.mock-user-scores {
    display: flex;
    gap: 1.5rem;
}


.mock-total-score {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0066cc;
}


.total-score::before {
    position: absolute;
    top: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
    white-space: nowrap;
}



.total-score::before {
    content: '総合';
}

.crown {
    font-size: 1.5rem;
    color: #ffd700;
}

@media (max-width: 768px) {
    .mock-result-container {
        padding: 1rem;
    }

    .mock-result-header h1 {
        font-size: 2rem;
    }

    .mock-score-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mock-action-buttons {
        flex-direction: column;
        margin-top: 2rem;
    }

    .mock-action-btn {
   
        justify-content: center;
        padding: 1rem;
    }

    .mock-ranking-section {
        padding: 0.5rem;
        margin-top: 2rem;
    }

    .mock-ranking-item {
        padding: 1rem;
        gap: 1rem;
    }

    .mock-user-scores {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }


    .mock-total-score {
        font-size: 1rem;
    }


    .mock-total-score::before {
        position: static;
        transform: none;
        margin-right: 0.5rem;
    }
}



/* Exam Question Page Styles */
.exam-question-page {
    min-height: 100vh;
    padding: 80px 20px 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap:1rem;
}

.exam-header {
    max-width: 1200px;
    margin: 0 auto;
    width: 75%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.exam-header2 {
    position: fixed;
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    max-width: 1200px;
    margin: 0 auto;
    width: 75%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
}

.timer-icon {
    color: #0066cc;
}

.time-remaining {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #0066cc;
}

.progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    max-width: 300px;
    margin-left: 2rem;
}

.question-progress {
    font-size: 0.875rem;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0066cc;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.question-container {
    max-width: 1200px;
    margin: 0 auto;
    
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.question-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-type {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.question-text {
    display: flex;
    flex-direction: column;
  
}

.content-wrapper {
    display: flex;
    display: flex;
    gap: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.graph-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.graph-section {
    flex: 1;
    min-width: 0;
}

.questions-section {
    flex: 1.3 ;
    min-width: 0;
}

.data-table-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.data-table th {
    background: #f8fafc;
    color: #2d3748;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.85rem;
}

.data-table td {
    color: #4a5568;
    font-size: 0.85rem;
}

.data-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.questions-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sub-question {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.sub-question p {
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.answer-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.answer-option:hover {
    border-color: #0066cc;
    background: rgba(0, 102, 204, 0.02);
}

.answer-option input[type="radio"] {
    margin: 0;
}

.option-text {
    font-size: 0.9rem;
    color: #2d3748;
}

.exam-footer {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-btn.prev-btn {
    background: #f8fafc;
}

.nav-btn.next-btn {
    background: #0066cc;
    color: white;
    border: none;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn.prev-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.nav-btn.next-btn:hover {
    background: #0052a3;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Answer Feedback Styles */
.answer-feedback {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.feedback-content {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feedback-content.correct {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.feedback-content.incorrect {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feedback-content.correct .feedback-header {
    color: #166534;
}

.feedback-content.incorrect .feedback-header {
    color: #991b1b;
}

.feedback-icon {
    width: 24px;
    height: 24px;
}

.feedback-content.correct .feedback-icon {
    color: #166534;
}

.feedback-content.incorrect .feedback-icon {
    color: #991b1b;
}

/* Explanation Styles */
.explanation {
    margin-top: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.explanation-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explanation-toggle:hover {
    background: rgba(0, 102, 204, 0.05);
}

.toggle-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.explanation-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.explanation-toggle h4 {
    font-size: 1.1rem;
    color: #1a365d;
    margin: 0;
}

.explanation-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.explanation-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.explanation-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.explanation-content li {
    color: #4a5568;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.explanation-content li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #0066cc;
}

/* Check Answer Button Styles */
.check-answer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1.5rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.check-answer-btn:hover {
    background: #0052a3;
}

.check-answer-btn:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
}

/* Correct Answer Highlight */
.answer-option.correct-answer {
    background: #dcfce7;
    border-color: #86efac;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .graph-section,
    .questions-section {
        width: 100%;
      
    }

    .data-table-container {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    .graph-section,.questions-section {
        min-width: 0 !important;
    }

    

    .exam-header {
        padding: 0.75rem;
    }

    .question-container {
        margin-top: 32px; /* ← ちょうど良い距離に調整 */
        padding:1rem;
    }

    .content-wrapper {
        gap: 1.5rem;
    }

    .data-table-container {
        padding: 0.5rem;
        margin: 0;
        width: 100%;
    }

    .data-table {
        font-size: 0.7rem;
        width: 100%;
    }

    .data-table th,
    .data-table td {
        padding: 0.25rem;
    }

    .data-table th {
        font-size: 0.7rem;
    }

    .data-table td {
        font-size: 0.7rem;
    }

    .sub-question {
        padding: 1rem;
        width:100%;
    }

    .answer-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .answer-option {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .option-text {
        font-size: 0.8rem;
    }

    .nav-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/*固定に*/
.exam-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 1rem;  /* ← 左右均等に */
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    box-sizing: border-box;  /* ← 重要！パディング込みでwidthを扱う */
  }
  
  .exam-question-page {
    padding-bottom: 120px; /* フッターの高さに合わせて余裕をとる */
  }
  @media (max-width: 768px) {
    .exam-footer {
      justify-content: center;
      flex-wrap: wrap;
      padding: 1rem 1rem;   /* 左右のpaddingを均等に明示 */
      max-width: 100%;
    }
  
    .nav-btn {
      flex: 0 0 auto;
      min-width: 130px;
      max-width: 45%;
      justify-content: center;
    }
  }




/*loading*/
  .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }



















  

  
  /*メンテナンス*/
.maintenance-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.maintenance-container {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.maintenance-container::before,
.maintenance-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 153, 255, 0.05) 100%);
    z-index: -1;
}

.maintenance-container::before {
    top: -150px;
    right: -150px;
}

.maintenance-container::after {
    bottom: -150px;
    left: -150px;
}


.maintenance-h1 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.maintenance-h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #0066cc, #0099ff);
    border-radius: 2px;
}

.maintenance-message {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.maintenance-details {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.maintenance-time,
.maintenance-info {
    margin-bottom: 1.5rem;
}

.maintenance-time:last-child,
.maintenance-info:last-child {
    margin-bottom: 0;
}

.maintenance-h2 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.maintenance-details p {
    color: #4a5568;
    margin: 0;
}

.maintenance-contact-info {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.maintenance-contact-info p {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.maintenance-contact-info a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.maintenance-contact-info a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.maintenance-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #2d3748;
    font-weight: 500;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.maintenance-pulse {
    width: 12px;
    height: 12px;
    background: #0066cc;
    border-radius: 50%;
}


@media (max-width: 768px) {
    .maintenance-container {
        padding: 2rem;
    }

    .maintenance-h1 {
        font-size: 1.5rem;
    }

    .maintenance-message {
        font-size: 1rem;
    }
}

/*マイページのフッター*/
.mypage-footer {
    background-color: #f8f9fa;
    padding: 0rem 1rem 0rem;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color:#64748b;
    border-top: 1px solid #e2e8f0;
    
}

.mypage-footer-bottom {
    margin-top: 1rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Purchase Page Specific Styles */
.purchase-content {
    background: linear-gradient(135deg, #f0faf9 0%, #e6f7ff 100%) !important;
    backdrop-filter: blur(10px);
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.product-card {
    background: #ffffff;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #80CBC4, #1cd4c5, #4FC3F7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #94a3b8;
    background: #ffffff;
}

.product-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 6px 6px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin: 0 1.8rem 0.8rem;
    font-weight: 600;
}

.card-price {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(to right, #1cd4c5, #4FC3F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 1.8rem 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.card-price::before {
    content: '¥';
    font-size: 1.1rem;
    opacity: 0.8;
}

.purchase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: calc(100% - 3.6rem);
    margin: 0 1.8rem 1.8rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, #80CBC4, #1cd4c5, #4FC3F7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%);
    transition: left 0.5s ease;
}

.purchase-btn:hover {
    background: linear-gradient(135deg, #1cd4c5, #4FC3F7, #80CBC4);
}

.purchase-btn:hover::before {
    left: 100%;
}

.purchase-btn svg {
    transition: transform 0.3s ease;
}

.purchase-btn:hover svg {
    transform: translateX(4px);
}
.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .product-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .product-cards {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 0;
    }

    .card-image {
        height: 180px;
    }

    .product-card h3 {
        font-size: 1.2rem;
        margin: 0 1.5rem 0.8rem;
    }

    .card-price {
        font-size: 1.4rem;
        margin: 0 1.5rem 1.2rem;
    }

    .purchase-btn {
        width: calc(100% - 3rem);
        margin: 0 1.5rem 1.5rem;
    }
}



/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 0;
    width: 90%;
    max-width: 400px;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(28, 212, 197, 0.1);
    position: relative;
    overflow: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, rgb(28, 212, 197), rgb(79, 195, 247));
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(to right, rgb(28, 212, 197), rgb(79, 195, 247));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    padding: 0;
    border: none;
}

.modal-close {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: rgb(28, 212, 197);
    transform: rotate(90deg);
}

.modal-content {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: white;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modal-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-content p:last-child {
    margin-bottom: 0;
    color: #ef4444;
    font-size: 0.85rem;
    padding: 0.75rem;
    background: #fef2f2;
    border-radius: 0;
    border: 1px solid #fee2e2;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background: linear-gradient(to right, rgb(28, 212, 197), rgb(79, 195, 247));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(28, 212, 197, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%);
    transition: left 0.5s ease;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(28, 212, 197, 0.3);
}

.modal-btn.primary:hover::before {
    left: 100%;
}

.modal-btn.secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.modal-btn.secondary:hover {
    background: #f8fafc;
    color: rgb(28, 212, 197);
    border-color: rgb(28, 212, 197);
    transform: translateY(-2px);
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .modal {
        padding: 1.5rem;
        width: 85%;
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-content {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .modal-content p {
        font-size: 0.9rem;
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .modal-btn {
    
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .modal-close {
        padding: 0.375rem;
    }

    .modal-close svg {
        width: 20px;
        height: 20px;
    }
}

/* Small Mobile Styles */
@media (max-width: 360px) {
    .modal {
        padding: 1.25rem;
        width: 90%;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-content {
        padding: 0.875rem;
    }

    .modal-content p {
        font-size: 0.85rem;
    }

    .modal-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
}



/* Purchase complete */
.complete-page {
    min-height: 100vh;
    padding: 60px 20px;
    background: #f0faf9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.complete-container {
    background: white;
    padding: 3rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(28, 212, 197, 0.1);
    position: relative;
    overflow: hidden;
}

.complete-content {
    position: relative;
    z-index: 1;
}

.complete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #1cd4c5 0%, #4FC3F7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(28, 212, 197, 0.2);
    animation: iconPop 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.complete-icon svg {
    color: white;
    animation: checkmark 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes iconPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.complete-header {
    margin-bottom: 2rem;
}

.complete-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.complete-message {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.complete-actions {
    display: flex;
    justify-content: center;
}

.complete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #1cd4c5 0%, #4FC3F7 100%);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(28, 212, 197, 0.2);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.complete-btn:hover {
    background: linear-gradient(135deg, #19bfb1 0%, #47b0df 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(28, 212, 197, 0.3);
}

.complete-btn svg {
    transition: transform 0.3s ease;
}

.complete-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .complete-container {
        padding: 2rem;
    }

    .complete-header h1 {
        font-size: 1.5rem;
    }

    .complete-btn {
        padding: 0.875rem 2rem;
    }
}



.hidden{

    display: none;


}












/* Reset and base styles for exam result detail page */
.result-detail-main {
    min-height: 100vh;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    font-family: 'Noto Sans JP', sans-serif;
}

.result-detail-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.result-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.result-detail-title {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.result-detail-date {
    color: #64748b;
    font-size: 1rem;
}

.result-detail-section {
    margin-bottom: 3rem;
}

.result-detail-section:last-child {
    margin-bottom: 0;
}

.result-detail-section-header {
    margin-bottom: 2rem;
}

.result-detail-section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.result-detail-section-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0;
    font-weight: 600;
}

.result-detail-section-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.result-detail-score-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
}

.result-detail-score-total {
    font-size: 1rem;
    color: #64748b;
}

.result-detail-filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-detail-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-detail-filter-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.result-detail-filter-btn.result-detail-active {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

/* 間違えた問題だけ見るボタンの色 */
.result-detail-filter-btn[data-filter="incorrect"] {
    border-color: #ef4444;
    color: #ef4444;
}

.result-detail-filter-btn[data-filter="incorrect"]:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.result-detail-filter-btn[data-filter="incorrect"].result-detail-active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.result-detail-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.result-detail-question-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    min-height: 60px;
}

.result-detail-question-item.result-detail-correct {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.result-detail-question-item.result-detail-incorrect {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.result-detail-question-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
}

.result-detail-status-icon {
    width: 18px;
    height: 18px;
}

.result-detail-correct-icon {
    color: #166534;
}

.result-detail-incorrect-icon {
    color: #991b1b;
}

.result-detail-back-to-result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.result-detail-back-to-result:hover {
    background: #f1f5f9;
    color: #0066cc;
}

/* Responsive design */
@media (max-width: 768px) {
    .result-detail-main {
        padding: 60px 16px 32px;
    }

    .result-detail-container {
        padding: 1.5rem;
    }

    .result-detail-title {
        font-size: 1.6rem;
    }

    .result-detail-section-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .result-detail-filter-buttons {
        width: 100%;
    }

    .result-detail-filter-btn {
        flex: 1;
        text-align: center;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .result-detail-questions-grid {
        grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
        gap: 0.5rem;
    }

    .result-detail-question-item {
        padding: 0.5rem 0.25rem;
        min-height: 50px;
    }

    .result-detail-question-number {
        font-size: 0.8rem;
    }

    .result-detail-status-icon {
        width: 16px;
        height: 16px;
    }

    .result-detail-score-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .result-detail-filter-buttons {
        flex-direction: column;
    }

    .result-detail-filter-btn {
        width: 100%;
    }

    .result-detail-questions-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 0.4rem;
    }

    .result-detail-question-item {
        padding: 0.4rem 0.2rem;
        min-height: 45px;
    }

    .result-detail-question-number {
        font-size: 0.75rem;
    }

    .result-detail-status-icon {
        width: 14px;
        height: 14px;
    }
}




/* Showcase Section Styles */
.gab-showcase-section {
    padding: 60px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding-left: 60px;
    padding-right: 60px;
}

.gab-showcase-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #1D74F5, #4A90E2);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(40px);
}

.gab-showcase-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #1D74F5, #00C4FF);
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(30px);
}

.gab-showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.gab-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.gab-showcase-text {
    position: relative;
}

.gab-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(29, 116, 245, 0.1), rgba(74, 144, 226, 0.1));
    color: #1D74F5;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(29, 116, 245, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(29, 116, 245, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto 1.5rem 0;
    width: fit-content;
}

.gab-showcase-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 116, 245, 0.2);
}

.gab-showcase-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Zen Old Mincho', serif;
    background: linear-gradient(135deg, #1a365d 0%, #1D74F5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.gab-showcase-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1D74F5, #4A90E2);
    border-radius: 2px;
}

.gab-showcase-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.gab-showcase-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.gab-showcase-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(29, 116, 245, 0.08) 0%, rgba(74, 144, 226, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(29, 116, 245, 0.15);
    box-shadow: 0 4px 12px rgba(29, 116, 245, 0.12);
}

.gab-showcase-feature svg {
    color: white;
    flex-shrink: 0;
    padding: 0.375rem;
    background: linear-gradient(135deg, #1D74F5 0%, #4A90E2 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(29, 116, 245, 0.2);
    width: 30px;
    height: 30px;
    transition: all 0.2s ease;
}

.gab-showcase-feature svg:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(29, 116, 245, 0.3);
}

.gab-showcase-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.gab-showcase-feature p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
    margin: 0;
}

/* Image Showcase */
.gab-showcase-image {
    position: relative;
}

.gab-image-container {
    position: relative;
    background: transparent;
}

.gab-showcase-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: white;
    display: block;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .gab-showcase-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gab-showcase-text h2 {
        font-size: 1.8rem;
    }
    
    .gab-showcase-img {
        height: auto;
        min-height: 240px;
    }
    
    .gab-showcase-features {
        gap: 0.875rem;
    }
    
    .gab-showcase-feature {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .gab-showcase-section {
        padding: 40px 16px 20px;
    }
    
    .gab-showcase-text {
        text-align: center;
    }
    
    .gab-showcase-badge {
        margin: 0 auto 2rem auto;
        display: flex;
    }
    
    .gab-showcase-content {
        gap: 25px;
    }
    
    .gab-showcase-text h2 {
        font-size: 1.6rem;
    }
    
    .gab-showcase-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .gab-showcase-img {
        height: auto;
        min-height: 250px;
        max-height: 400px;
        object-fit: contain;
    }
    
    .gab-showcase-features {
        gap: 0.75rem;
        text-align: left;
    }
    
    .gab-showcase-feature {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .gab-showcase-feature h4 {
        font-size: 1rem;
        text-align: left;
    }
    
    .gab-showcase-feature p {
        font-size: 0.9rem;
        text-align: left;
    }
}
















/* 2026/1 追加分 */







/*purchase*/
/* Purchase Page Specific Styles */
.pur-purchase-content {

    backdrop-filter: blur(10px);
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.pur-product-card {
    background: #f8fafc;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pur-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #80CBC4, #1cd4c5, #4FC3F7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pur-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #94a3b8;
    background: #ffffff;
}

.pur-product-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 2px 2px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pur-product-card:hover .card-image img {
    transform: scale(1.05);
}

.pur-product-card h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0 1.8rem 0.8rem;
    font-weight: 600;
}

.pur-card-price {
    font-size: 1.2rem;
    font-weight: 400;
    -webkit-background-clip: text;
    margin: 0 1.8rem 1.2rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}


.pur-purchase-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: calc(100% - 3.6rem);
    margin: 0 1.8rem 1.8rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, #80CBC4, #1cd4c5, #4FC3F7);
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%);
    transition: left 0.5s ease;
}

.purchase-btn:hover {
    background: linear-gradient(135deg, #1cd4c5, #4FC3F7, #80CBC4);
}

.pur-purchase-btn:hover::before {
    left: 100%;
}

.pur-purchase-btn svg {
    transition: transform 0.3s ease;
}

.pur-purchase-btn:hover svg {
    transform: translateX(4px);
}
.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .product-cards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .product-cards {
        grid-template-columns: 1fr;
    }

    .pur-product-card {
        padding: 0;
    }

    .card-image {
        height: 180px;
    }

    .pur-product-card h3 {
        font-size: 1.2rem;
        margin: 0 1.5rem 0.8rem;
    }

    .pur-card-price {
        font-size: 1.4rem;
        margin: 0 1.5rem 1.2rem;
    }

    .pur-purchase-btn {
        width: calc(100% - 3rem);
        margin: 0 1.5rem 1.5rem;
    }
}


/* mypage202512.html専用のスタイル */

/* カードのborder-radiusを0に変更 */
.mypage-product-card {
    border-radius: 0;
    border-top: 1.5px solid;
    border-image: linear-gradient(to right, #0099ff, #00ccff) 1;
}

/* ボタンの背景グラデーションを変更 */
.mypage-card-btn {
    background: linear-gradient(135deg, #1D74F5 0%, #4A90E2 100%);
    border-radius: 2px;
}

.mypage-card-btn:hover {
    background: linear-gradient(135deg, #1557C7 0%, #3A7BC4 100%);
}

/* 模擬試験ボタンのみ白背景+青ボーダースタイルに変更 */
.mp-mock-exam-btn {
    background: #ffffff;
    border: 2px solid #0066cc;
    color: #0066cc;
    margin-top: 0.75rem;
}

.mp-mock-exam-btn:hover {
    background: #E6F0FF;
    border-color: #0052a3;
    color: #0052a3;
}

/* 模擬試験ボタンの矢印の色も青に */
.mp-mock-exam-btn svg {
    fill: #0066cc;
}

.mp-mock-exam-btn:hover svg {
    fill: #0052a3;
}

/* 履歴リンクのスタイルを明るく、枠なしに変更 */
.mypage-history-link {
    color: #1D74F5;
    border: none;
    background: #f0f7ff;
}

.mypage-history-link:hover {
    color: #1557C7;
    background: #e3f2ff;
}

.mypage-history-link svg {
    color: #1D74F5;
}

/* カード詳細説明のスタイル */
.mypage-card-detail {
    background: rgba(0, 102, 204, 0.02);
    border: 1px solid rgba(0, 102, 204, 0.1);
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #4A5568;
    line-height: 1.5;
}

/* カード内のh3を太字に（このページのみ） */
.mypage-product-card h3 {
    font-weight: bold;
}

/* カードヘッダー（タイトルとタグを横並びに） */
.mypage-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.mypage-card-header h3 {
    margin: 0;
}

/* PC受験推奨タグのスタイル */
.recommendation-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: #1565c0;
    background-color: #E3F2FD;
    border: 1px solid #64B5F6;
    border-radius: 10px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* セクション説明文 */
.mp-section-description {
    color: #718096;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* サンプル問題セクション */
.mp-sample-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mp-sample-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mp-sample-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #0099ff, #00ccff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mp-sample-btn:hover::before {
    transform: scaleX(1);
}

.mp-sample-btn:hover {
    border-color: #0099ff;
    box-shadow: 0 4px 12px rgba(0, 153, 255, 0.15);
    transform: translateY(-2px);
}

.mp-sample-btn-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.mp-sample-btn-icon svg {
    color: #1D74F5;
    width: 24px;
    height: 24px;
}

.mp-sample-btn-content {
    flex: 1;
}

.mp-sample-btn-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: bold;
    color: #2D3748;
}

.mp-sample-btn-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #718096;
}

.mp-sample-btn-arrow {
    flex-shrink: 0;
    color: #1D74F5;
    transition: transform 0.3s ease;
}

.mp-sample-btn:hover .mp-sample-btn-arrow {
    transform: translateX(5px);
}

/* GAB対策TIPSセクション */
.mp-tips-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.mp-tip-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.mp-tip-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mp-tip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-tip-content {
    padding: 1.25rem 1.5rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mp-tip-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    font-weight: bold;
    color: #1D74F5;
    line-height: 1.4;
}

.mp-tip-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #4A5568;
    line-height: 1.7;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .mp-sample-buttons {
        grid-template-columns: 1fr;
    }

    .mp-tip-item {
        grid-template-columns: 1fr;
    }

    .mp-tip-image {
        height: 160px;
    }

    .mp-tip-content {
        padding: 1rem;
    }

    .mp-sample-btn {
        padding: 1rem;
    }
}

/* マイページサンプル問題ページ専用スタイル - プレフィックス: msg- */

.msg-back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.msg-back-link:hover {
    color: #1D74F5;
    background: rgba(29, 116, 245, 0.05);
}

.msg-exam-page {
    min-height: 100vh;
    padding: 80px 20px 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-exam-header {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.msg-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.msg-timer-icon {
    color: #1D74F5;
}

.msg-time-remaining {
    font-family: 'Montserrat', sans-serif;
}

.msg-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex: 1;
    margin-left: 2rem;
}

.msg-question-progress {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.msg-progress-bar {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.msg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1D74F5 0%, #4A90E2 100%);
    transition: width 0.3s ease;
}

.msg-question-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.msg-question-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.msg-question-type {
    display: inline-block;
    background: #F0F9FF;
    color: #0284C7;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.msg-question-text > p {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.msg-content-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.msg-graph-section {
    flex: 1.2;
    min-width: 0;
}

.msg-questions-section {
    flex: 0.8;
    min-width: 300px;
}

.msg-reading-passage {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    font-size: 1rem;
    color: #2d3748;
    border: 1px solid #e2e8f0;
}

.msg-keisu .msg-graph-section {
    flex: 1;
    min-width: 0;
}

.msg-keisu .msg-questions-section {
    flex: 1;
    min-width: 300px;
}

.msg-keisu .msg-reading-passage {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.msg-reading-passage p {
    margin-bottom: 1.5rem;
}

.msg-reading-passage p:last-child {
    margin-bottom: 0;
}

.msg-questions-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.msg-sub-question {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
}

.msg-sub-question > p {
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.msg-answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-keisu .msg-answer-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.msg-keisu .msg-answer-options .msg-answer-option:nth-child(4),
.msg-keisu .msg-answer-options .msg-answer-option:nth-child(5) {
    grid-column: span 1;
}

.msg-answer-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.msg-answer-option:hover {
    border-color: #1D74F5;
    background: rgba(29, 116, 245, 0.02);
    transform: translateX(4px);
}

.msg-answer-option input[type="radio"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.msg-answer-option input[type="radio"]:disabled {
    cursor: not-allowed;
}

.msg-option-text {
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.5;
    flex: 1;
}

.msg-answer-option.msg-correct-answer {
    border-color: #48BB78;
    background: rgba(72, 187, 120, 0.05);
}

.msg-answer-feedback {
    margin-top: 1.5rem;
    animation: msg-slideIn 0.3s ease;
}

@keyframes msg-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-feedback-content {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.msg-feedback-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.msg-feedback-header.msg-correct {
    color: #22543D;
}

.msg-feedback-header.msg-incorrect {
    color: #742A2A;
}

.msg-feedback-content:has(.msg-correct) {
    background: #dcfce7;
    border: 2px solid #86efac;
}

.msg-feedback-content:has(.msg-incorrect) {
    background: #fee2e2;
    border: 2px solid #fca5a5;
}

.msg-feedback-icon {
    flex-shrink: 0;
}

.msg-feedback-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.msg-feedback-content:has(.msg-correct) p {
    color: #276749;
}

.msg-feedback-content:has(.msg-incorrect) p {
    color: #9B2C2C;
}

.msg-explanation {
    margin-top: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.msg-explanation-toggle {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msg-explanation-toggle:hover {
    background: rgba(29, 116, 245, 0.05);
}

.msg-explanation-toggle.msg-active {
    background: rgba(29, 116, 245, 0.05);
}

.msg-toggle-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.msg-toggle-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #1a365d;
    font-weight: 600;
}

.msg-toggle-icon {
    color: #1D74F5;
    transition: transform 0.3s ease;
}

.msg-explanation-toggle.msg-active .msg-toggle-icon {
    transform: rotate(180deg);
}

.msg-explanation-content {
    padding: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.msg-explanation-content p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.msg-explanation-content p:last-child {
    margin-bottom: 0;
}

.msg-check-answer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.msg-check-answer-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.msg-check-answer-btn:disabled {
    background: #e2e8f0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.msg-exam-footer {
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.msg-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2d3748;
}

.msg-nav-btn:hover:not(:disabled) {
    border-color: #1D74F5;
    color: #1D74F5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(29, 116, 245, 0.2);
}

.msg-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.msg-home-btn {
    background: rgba(0, 102, 204, 0.05);
    color: #0066cc;
    border-color: rgba(0, 102, 204, 0.2);
}

.msg-home-btn:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.3);
    color: #0066cc;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .msg-content-wrapper {
        flex-direction: column;
    }

    .msg-graph-section,
    .msg-questions-section {
        width: 100%;
        min-width: 0;
    }

    .msg-keisu .msg-answer-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .msg-exam-footer {
        flex-wrap: wrap;
    }

    .msg-home-btn {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .msg-exam-page {
        padding: 70px 10px 20px;
    }

    .msg-exam-header {
        width: 95%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .msg-progress {
        width: 100%;
        margin-left: 0;
        align-items: stretch;
    }

    .msg-progress-bar {
        max-width: none;
    }

    .msg-question-container {
        width: 95%;
    }

    .msg-question-section {
        padding: 1.5rem;
    }

    .msg-question-type {
        margin-top: 0.5rem;
    }

    .msg-reading-passage {
        padding: 1.5rem;
        font-size: 0.95rem;
    }

    .msg-sub-question {
        padding: 1.25rem;
    }

    .msg-keisu .msg-answer-options {
        grid-template-columns: 1fr;
    }

    .msg-answer-option {
        padding: 0.875rem;
    }

    .msg-nav-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .msg-exam-footer {
        width: 95%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .msg-prev-btn,
    .msg-next-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }

    .msg-home-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .msg-exam-page {
        padding: 60px 5px 15px;
    }

    .msg-question-section {
        padding: 1rem;
    }

    .msg-reading-passage {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .msg-sub-question {
        padding: 1rem;
    }

    .msg-keisu .msg-answer-options {
        grid-template-columns: 1fr;
    }

    .msg-answer-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .msg-option-text {
        font-size: 0.85rem;
    }

    .msg-check-answer-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .msg-back-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
}

