/* ================================
   Base Styles
   ================================ */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #F8FAFB;
    background-image:
        linear-gradient(rgba(45,181,83,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45,181,83,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}

::selection {
    background-color: rgba(45,181,83,0.2);
    color: #1E293B;
}

/* ================================
   UI Components
   ================================ */
.block-ui {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-radius: 6px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.block-ui-green {
    background-color: #1E293B;
    border: none;
    box-shadow: none;
    color: #E8EDF2;
    border-radius: 0;
}

/* Buttons */
.btn-mc {
    display: inline-block;
    background: linear-gradient(135deg, #1A8A3E 0%, #0B7DC2 100%);
    color: #ffffff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(45,181,83,0.25);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-mc::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}
.btn-mc:hover {
    box-shadow: 0 6px 25px rgba(45,181,83,0.35);
    transform: translateY(-2px);
}
.btn-mc:hover::before {
    left: 100%;
}
.btn-mc:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(45,181,83,0.2);
}

.btn-mc-accent {
    background: linear-gradient(135deg, #1A8A3E 0%, #0B7DC2 100%);
    box-shadow: 0 4px 15px rgba(14,165,233,0.25);
}
.btn-mc-accent:hover {
    box-shadow: 0 6px 25px rgba(14,165,233,0.35);
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmerEffect 3s infinite;
    pointer-events: none;
}
@keyframes shimmerEffect {
    0% { left: -100%; }
    15% { left: 100%; }
    100% { left: 100%; }
}

/* YouTube Aspect Ratio */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}
.aspect-w-16 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

/* ================================
   Article Body Styles
   ================================ */
.article-body section {
    margin-bottom: 4rem;
}
.article-body p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: #475569;
}
.article-body p:last-child {
    margin-bottom: 0;
}

/* Article links */
.article-body a {
    color: #2DB553;
    text-decoration: none;
    transition: color 0.2s ease;
}
.article-body a:hover {
    color: #24944A;
    text-decoration: underline;
}
.article-body a.btn-mc {
    color: #ffffff;
}
.article-body a.btn-mc:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    padding: 1rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #2DB553, #0EA5E9, #8B5CF6) 1;
    background-image: url('assets/images/minecraft_images/minecraft_image_3.webp');
    background-size: cover;
    background-position: center top;
}
@media (min-width: 768px) {
    .hero-section { padding: 3rem; }
}
.hero-section .hero-bar {
    display: none;
}

/* Gradient overlay: transparent at top, fades to fully white above the paragraph area */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.0)  0%,
        rgba(255,255,255,0.0) 35%,
        rgba(255,255,255,0.7) 55%,
        rgba(255,255,255,1.0) 68%
    );
    pointer-events: none;
    z-index: 0;
}

/* Lift all hero content above the overlay */
.hero-section > *:not(.hero-overlay) {
    position: relative;
    z-index: 1;
}

/* Paragraph panel: transparent — sits on the white gradient area */
.hero-section > div:last-child {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.hero-section h1 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 16rem;
    color: #1E293B;
    word-break: break-word;
    text-shadow: 0 0 16px rgba(255,255,255,1), 0 0 8px rgba(255,255,255,0.95), 0 2px 4px rgba(255,255,255,0.9);
}
.hero-title-line {
    display: block;
}
@media (min-width: 768px) {
    .hero-section h1 { font-size: 2rem; margin-bottom: 12rem; }
}
@media (min-width: 1024px) {
    .hero-section h1 { font-size: 2.5rem; }
    .hero-title-line { display: inline-block; }
}

/* Section Headings */
.article-body h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    border-left: 4px solid;
    border-image: linear-gradient(to bottom, #2DB553, #0EA5E9) 1;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: #1E293B;
}

/* Content Boxes */
.content-box {
    padding: 1.75rem;
}
@media (min-width: 768px) { .content-box { padding: 2rem; } }
.content-box.space-y > * + * {
    margin-top: 1.75rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.feature-card .number-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #2DB553, #24944A);
    color: #ffffff;
    border-radius: 6px;
    border: none;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(45,181,83,0.25);
}
.feature-card h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #1E293B;
}
.feature-card p {
    font-size: 0.875rem;
    text-align: left;
    color: #64748B;
}

/* Inner Boxes */
.inner-box {
    background-color: #F8FAFB;
    padding: 1.25rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
}
.inner-box.gray {
    background-color: #F1F5F9;
    border-color: #E2E8F0;
}
.inner-box h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #2DB553;
}
.inner-box.border-red-500 h3 {
    color: #EF4444;
}
.inner-box p {
    font-size: 0.875rem;
    color: #64748B;
}

/* ================================
   Accordion / Drawer Styles
   ================================ */
.drawer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer {
    background-color: #ffffff;
}
.drawer > summary {
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: transparent;
    border-bottom: 1px solid transparent;
    list-style: none;
    color: #1E293B;
    transition: background 0.2s ease;
}
.drawer > summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) {
    .drawer > summary {
        font-size: 1.125rem;
        padding: 1.25rem 1.5rem;
        align-items: center;
    }
}
.drawer > summary:hover {
    background: #F8FAFB;
}
.drawer[open] > summary {
    border-bottom-color: #E2E8F0;
}

.drawer > summary .drawer-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-right: 1rem;
}
@media (min-width: 768px) {
    .drawer > summary .drawer-title-wrap { align-items: center; }
}

/* Reset summary h3 */
.drawer > summary h3 {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    margin: 0;
    padding: 0;
    border: none;
}

.drawer svg.icon-main {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
@media (min-width: 768px) { .drawer svg.icon-main { margin-top: 0; } }

.drawer svg.icon-arrow {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #94A3B8;
}
@media (min-width: 768px) { .drawer svg.icon-arrow { margin-top: 0; } }
.drawer[open] svg.icon-arrow {
    transform: rotate(180deg);
    color: #2DB553;
}

.drawer-body {
    padding: 1.25rem;
    border-top: 1px solid #E2E8F0;
    color: #475569;
}
@media (min-width: 768px) { .drawer-body { padding: 1.5rem; } }
.drawer-body > div { margin-bottom: 1.25rem; }
.drawer-body > div:last-child { margin-bottom: 0; }

.drawer-body h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #1E293B;
}
.drawer-body h4.green-line {
    color: #2DB553;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 0.25rem;
    font-size: 1rem;
}
.drawer-body h4.red-text {
    color: #EF4444;
    font-size: 1rem;
}
.drawer-body p {
    font-size: 0.875rem;
    color: #64748B;
}

/* Link Box */
.link-box {
    background-color: #EFF6FF;
    padding: 1rem;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
}
.link-box span {
    font-weight: 700;
    color: #1D4ED8;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}
.link-box a {
    color: #2563EB;
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    text-decoration: none;
    transition: color 0.2s ease;
}
.link-box a:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

/* ================================
   eスピ! Recommended Section
   ================================ */
.esp-wrapper {
    background: linear-gradient(135deg, rgba(45,181,83,0.03) 0%, rgba(14,165,233,0.03) 100%);
    border: 1px solid rgba(45,181,83,0.25);
    position: relative;
    overflow: hidden;
}
.esp-ribbon {
    background: linear-gradient(90deg, #2DB553, #0EA5E9);
    color: #ffffff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(45,181,83,0.2);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}
.esp-content {
    padding: 1.75rem;
}
@media (min-width: 768px) { .esp-content { padding: 2.5rem; } }

.esp-content h2 {
    border-left: none;
    border-image: none;
    padding-left: 0;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1E293B;
}
@media (min-width: 768px) { .esp-content h2 { font-size: 1.875rem; } }
.esp-content h2 span {
    color: #2DB553;
    font-size: 1.875rem;
    display: block;
    margin-top: 0.5rem;
}
@media (min-width: 768px) {
    .esp-content h2 span {
        font-size: 2.25rem;
        display: inline-block;
        margin-top: 0;
        margin-left: 0.5rem;
    }
}
.esp-content > p {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #475569;
}

.esp-reasons {
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.esp-reasons h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(45,181,83,0.3);
    padding-bottom: 0.5rem;
    color: #1E293B;
}
.esp-reasons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .esp-reasons ul { grid-template-columns: repeat(3, 1fr); } }
.esp-reasons li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(45,181,83,0.05), rgba(14,165,233,0.05));
    border: 1px solid rgba(45,181,83,0.15);
    border-radius: 8px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}
.esp-reasons li:hover {
    border-color: rgba(45,181,83,0.3);
    box-shadow: 0 4px 16px rgba(45,181,83,0.1);
    transform: translateY(-2px);
}
.esp-reasons li:last-child { margin-bottom: 0; }
.esp-reasons li svg {
    width: 2.5rem;
    height: 2.5rem;
    color: #2DB553;
    flex-shrink: 0;
    margin-bottom: 1rem;
}
.esp-reasons li strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1E293B;
    font-size: 1rem;
}
.esp-reasons li span {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.5;
}

.cta-area { text-align: center; }
.cta-area p {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #1E293B;
}
@media (min-width: 768px) { .cta-area p { font-size: 1.125rem; } }

/* ================================
   FAQ Section
   ================================ */
.faq-drawer .faq-q {
    color: #2DB553;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
@media (min-width: 768px) { .faq-drawer .faq-q { font-size: 1.5rem; margin-top: 0; } }

.faq-drawer .drawer-body {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.faq-drawer .faq-a {
    color: #0EA5E9;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
@media (min-width: 768px) { .faq-drawer .faq-a { font-size: 1.5rem; margin-top: 0; } }

/* ================================
   Summary Section
   ================================ */
.summary-section {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(45,181,83,0.03), rgba(14,165,233,0.03));
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #2DB553, #0EA5E9, #8B5CF6) 1;
}
@media (min-width: 768px) { .summary-section { padding: 2.5rem; } }
.summary-section h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    border: none;
    border-image: none;
    padding: 0;
    color: #1E293B;
}

/* Mobile Padding Adjustments */
@media (max-width: 767px) {
    .content-box { padding: 1rem; }
    .feature-card { padding: 1rem; }
    .esp-content { padding: 1rem; }
    .summary-section { padding: 1rem; }
}

/* CTA Section Mobile Redesign */
@media (max-width: 767px) {
    .esp-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    .esp-content h2 span {
        font-size: 1.5rem;
        display: inline;
        margin-left: 0.25rem;
    }
    .esp-content > p {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
    .esp-reasons {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    .esp-reasons h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .esp-reasons ul { gap: 1rem; }
    .esp-reasons li {
        padding: 1.25rem;
        margin-bottom: 0;
    }
    .esp-reasons li svg {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.75rem;
    }
    .esp-reasons li strong {
        font-size: 0.9375rem;
    }
    .esp-reasons li span {
        font-size: 0.8rem;
    }
    .cta-area {
        background: linear-gradient(135deg, rgba(45,181,83,0.06), rgba(14,165,233,0.06));
        border-radius: 6px;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    .cta-area p {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }
    .cta-area .btn-mc {
        display: block;
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1rem;
        white-space: nowrap;
    }
}

/* Accordion Label */
.accordion-label {
    background: linear-gradient(135deg, #2DB553, #0EA5E9);
    color: #ffffff;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(45,181,83,0.25);
    white-space: nowrap;
}
@media (min-width: 768px) {
    .accordion-label {
        display: inline-block;
        font-size: 1.25rem;
    }
}

/* ================================
   Parallax Background Layer
   ================================ */
.mc-parallax-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mc-bg-item {
    position: absolute;
    opacity: 0.13;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    will-change: transform;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

/* Ensure main content renders above parallax layer */
main, footer {
    position: relative;
    z-index: 1;
}

/* ================================
   Section Feature Images
   ================================ */
.section-feature-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

@media (min-width: 768px) {
    .section-feature-img { height: 260px; }
}

@media (min-width: 1024px) {
    .section-feature-img { height: 300px; }
}

/* ---- School Cards (7選セクション) ---- */
.school-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.school-card--top {
    border: 2px solid #2DB553;
    background: linear-gradient(135deg, rgba(45, 181, 83, 0.03), rgba(14, 165, 233, 0.03));
}

.school-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.school-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, #2DB553, #0EA5E9);
    color: white;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 6px;
    flex-shrink: 0;
    letter-spacing: 0;
}

.school-badge--top {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.school-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    font-family: 'Zen Maru Gothic', sans-serif;
    margin: 0;
}

.school-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.school-table th,
.school-table td {
    padding: 0.625rem 1rem;
    border: 1px solid #E2E8F0;
    text-align: left;
    vertical-align: middle;
    line-height: 1.5;
}

.school-table th {
    background: #F1F5F9;
    font-weight: 700;
    color: #1E293B;
    width: 35%;
}

.school-table td {
    background: #ffffff;
    color: #1E293B;
}

.school-note {
    font-size: 0.8125rem;
    color: #64748B;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #F8FAFB;
    border-left: 3px solid #E2E8F0;
    border-radius: 0 4px 4px 0;
    line-height: 1.6;
}

/* ---- School CTA Buttons — sinking press effect ---- */
.btn-school {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #2DB553, #0EA5E9);
    color: #ffffff !important;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none !important;
    /* Hard bottom edge = button "raised" above surface */
    box-shadow: 0 5px 0 #1a6b30, 0 8px 15px rgba(45,181,83,0.20);
    transform: translateY(0);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-top: 1rem;
    letter-spacing: 0.02em;
}
.btn-school:hover {
    /* Bottom shadow collapses + button drops 5px = sinks into surface */
    transform: translateY(5px);
    box-shadow: 0 0 0 #1a6b30, 0 3px 8px rgba(45,181,83,0.12);
    color: #ffffff !important;
    text-decoration: none !important;
}
.btn-school:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #1a6b30;
}

/* eスピ！ #1 — amber/red matches the ★ No.1 badge */
.btn-school--top {
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    box-shadow: 0 5px 0 #b45309, 0 8px 15px rgba(245,158,11,0.20);
}
.btn-school--top:hover {
    box-shadow: 0 0 0 #b45309, 0 3px 8px rgba(245,158,11,0.12);
}
.btn-school--top:active {
    box-shadow: 0 0 0 #b45309;
}
/* ---- School Images ---- */
.school-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
