/* / TOP */

.top-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.top-fv-swiper {
    width: 100%;
}

.top-fv img {
    display: block;
    width: 100%;
    height: auto;
}

.top-console {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.top-console__button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    border: 1px solid var(--color-brand-border-subtle);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-brand-primary-dark);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.top-console__button img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.top-service-links {
    display: grid;
    gap: 12px;
}

.top-service-links__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--color-brand-border-subtle);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    text-decoration: none;
}

.top-service-links__item b {
    color: var(--color-brand-primary-dark);
}

.top-service-links__item span {
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
}

.top-cta {
    margin-block: 24px;
}

@media (max-width: 767px) {
    .top-cta {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* No.1 セクション（旧サイト top/css/style.css の no1-section を踏襲） */
.no1-section {
    background-image: url("/assets/images/top/green_backgrandimg.webp");
    background-position: center;
    background-size: cover;
    padding: 5% 4% 4% 4%;
}

.no1-section a {
    text-decoration: none;
}

.no1-section p {
    margin: 0;
}

.no1-section__inner {
    display: flex;
}

.no1-section__feature {
    width: 75%;
}

.no1-section__text {
    color: #fff;
    text-align: center;
}

.no1-section__text--bottom {
    font-size: 1.2rem;
    font-weight: 500;
}

.no1-section__reaf-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: -16px;
}

.no1-section__reaf-img {
    width: 25%;
    transform: rotate(9deg);
}

.no1-section__reaf-img:last-child {
    transform: rotate(-9deg);
}

.no1-section__reaf-text {
    font-weight: bold;
    font-size: clamp(4rem, 0.293rem + 15.82vw, 7.875rem);
    width: 60%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: transparent;
    background: linear-gradient(
        135deg,
        #fff8dc 0%,
        #f7e199 2.5%,
        #d4af37 13.5%,
        #b8860b 21.3%,
        #d4af37 37.5%,
        #f7e199 47.5%,
        #fff8dc 50%,
        #f7e199 52.5%,
        #d4af37 63.5%,
        #b8860b 71.3%,
        #d4af37 87.5%,
        #f7e199 97.5%,
        #fff8dc 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
}

.no1-section__reaf-num {
    display: inline-block;
    font-size: clamp(4.5rem, -2.256rem + 28.83vw, 11.563rem);
    padding-bottom: 5%;
}

.no1-section__char {
    width: 25%;
}

.no1-section__medal-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 5%;
}

.no1-section__medal {
    width: 38%;
    position: relative;
}

.no1-section__medal-img {
    width: 100%;
}

.no1-section__medal-note {
    position: absolute;
    bottom: 18%;
    right: 8%;
    color: #fff;
    font-size: 4.5px;
}

.no1-section__caution-text {
    color: #fff;
    font-size: 4.5px;
}

.top-voice-cards {
    display: grid;
    gap: 16px;
}

.top-dictionary-list {
    display: grid;
    gap: 12px;
}

.top-dictionary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--color-brand-border-subtle);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text-primary);
    text-decoration: none;
}

.top-dictionary-item img {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.top-dictionary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

.top-dictionary-category {
    color: var(--color-brand-primary-dark);
}

.top-dictionary-item h3 {
    margin: 6px 0 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.top-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.top-news-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.top-news-list time {
    flex: 0 0 auto;
    color: var(--color-text-muted);
}

.top-faq-block {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.top-section-more {
    margin: 0;
}

@media (min-width: 768px) {
    .no1-section {
        padding: 5% 4% 0 4%;
    }

    .no1-section__inner {
        max-width: 1030px;
        margin: 0 auto;
        box-sizing: border-box;
        gap: 20px;
    }

    .no1-section__feature {
        width: 60%;
        padding-bottom: 20px;
    }

    .no1-section__text {
        font-size: 20px;
    }

    .no1-section__text--bottom {
        font-size: 24px;
    }

    .no1-section__reaf-wrapper {
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .no1-section__reaf-text {
        font-size: clamp(7.375rem, 0.215rem + 14.92vw, 10.75rem);
        line-height: 1;
    }

    .no1-section__reaf-num {
        font-size: clamp(8.125rem, 1.23rem + 14.36vw, 11.375rem);
        padding: 0;
    }

    .no1-section__reaf-img {
        width: 15%;
    }

    .no1-section__medal-wrapper {
        justify-content: flex-end;
    }

    .no1-section__medal {
        width: 150px;
    }

    .no1-section__medal-note {
        bottom: 14%;
        right: -3%;
        font-size: 11.5px;
    }

    .no1-section__char {
        overflow: hidden;
        position: relative;
        width: calc(40% - 20px);
    }

    .no1-section__char-img {
        position: absolute;
        top: 0;
        left: 12px;
        max-width: 250px;
        /* reset.css の max-block-size: 100% を解除。旧サイト同様、縦は overflow で切る */
        max-block-size: none;
    }

    .no1-section__caution-text {
        font-size: 10.5px;
    }

    .top-voice-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .top-service-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .top-dictionary-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 991px) {
    .no1-section__medal-wrapper {
        margin-bottom: 0;
    }

    .no1-section__char-img {
        bottom: -475px;
        left: 110px;
    }
}
