/* ヒーローエリア */
.hero {
    background-color: #EEEDFE;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(83, 74, 183, 0.08);
}

.hero::after {
    content: "";
    position: absolute;
    right: 60px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(83, 74, 183, 0.05);
}

.hero-catch {
    font-size: 2rem;
    font-weight: 700;
    color: #26215C;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.hero-sub {
    font-size: 1rem;
    color: #534AB7;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
}

/* ヒーロー内検索ボックス */
.hero-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 500px;
    z-index: 1;
    gap: 0.5rem;
}

.hero-search input {
    flex: 1;
    height: 42px;
    border: 1.5px solid #AFA9EC;
    border-radius: 999px;
    padding: 0 1.25rem;
    font-size: 0.95rem;
    outline: none;
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.hero-search input:focus {
    border-color: #534AB7;
}

.hero-search-btn {
    height: 42px;
    padding: 0 1.25rem;
    background-color: #534AB7;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-search-btn svg {
    stroke: #fff;
}

.hero-search-btn:hover {
    background-color: #3C3489;
}

@media (max-width: 768px) {
    .hero-search {
        max-width: 100%;
    }

    .hero-search input {
        min-width: 0;
    }

    .hero-search-btn span {
        display: none;
    }

    .hero-search-btn {
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .top-hamburger-hidden {
        display: none !important;
    }
}
.top-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* 科目グリッド */
.subject-section {
    margin-bottom: 2.5rem;
}

.subject-group {
    margin-bottom: 1.5rem;
}

.subject-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #534AB7;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-left: 3px solid #534AB7;
    padding-left: 0.6rem;
    margin-bottom: 0.75rem;
}

.subject-group {
    margin-bottom: 1.5rem;
}

.subject-group-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #534AB7;
    letter-spacing: 0.05em;
    padding-left: 0.6rem;
    border-left: 3px solid #534AB7;
    margin-bottom: 0.75rem;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

@media (max-width: 600px) {
    .subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 科目カード */
.subject-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.subject-card[onclick]:hover {
    border-color: #AFA9EC;
    box-shadow: 0 2px 8px rgba(83, 74, 183, 0.1);
}

.subject-card.disabled {
    opacity: 0.5;
    cursor: default;
}

/* 科目アイコン */
.subject-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.subject-icon--pink   { background-color: #FBEAF0; color: #72243E; }
.subject-icon--blue   { background-color: #EEEDFE; color: #3C3489; }
.subject-icon--teal   { background-color: #E1F5EE; color: #085041; }
.subject-icon--amber  { background-color: #FAEEDA; color: #633806; }
.subject-icon--purple { background-color: #EEEDFE; color: #3C3489; }
.subject-icon--coral  { background-color: #FAECE7; color: #712B13; }
.subject-icon--sm     { font-size: 0.7rem; }

.subject-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.subject-status {
    font-size: 0.75rem;
    color: #aaa;
    margin: 0;
}

.subject-status--open {
    color: #534AB7;
    font-weight: 500;
}

/* 使い方ガイド */
.guide-section {
    margin-bottom: 2.5rem;
}

.guide {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .guide {
        grid-template-columns: 1fr;
    }
}

.guide-step {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #534AB7;
    margin: 0;
}

.guide-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.guide-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Leadusについて */
.about-section {
    margin-bottom: 2rem;
}

.about-title {
    text-transform: none;
}

.about {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
}

.about p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.9;
    margin: 0 0 1rem;
}

.about p:last-child {
    margin: 0;
}

.about a {
    color: #534AB7;
    text-decoration: none;
}

.about a:hover {
    text-decoration: underline;
}