/* ========================================
   用語辞典 FV
======================================== */

#dictionaryfv {
    width: 100%;
    margin: 0 0 35px;
    padding: 20px;
    box-sizing: border-box;
    background:
        linear-gradient(
            135deg,
            #f5f9ff 0%,
            #ffffff 50%,
            #fffaf0 100%
        );
}

.dictionaryfv-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}


/* ----------------------------------------
   タイトル
---------------------------------------- */

.dictionaryfv-heading {
    text-align: center;
    margin-bottom: 18px;
}

.dictionaryfv-subtitle {
    margin: 0 0 5px;
    color: #004bc9;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.12em;
}

.dictionaryfv-title {
    margin: 0;
    color: #222;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: bold;
    line-height: 1.3;
}


/* ----------------------------------------
   説明文
---------------------------------------- */

.dictionaryfv-description {
    max-width: 850px;
    margin: 0 auto 22px;
    text-align: center;
    color: #333;
    font-size: 16px;
    line-height: 1.9;
}

.dictionaryfv-description p {
    margin: 0 0 5px;
}

.marker {
    background:
        linear-gradient(
            transparent 72%,
            #ffd700 72%
        );
}


/* ----------------------------------------
   CTA
---------------------------------------- */

.dictionaryfv-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    max-width: 850px;
    margin: 0 auto 24px;
}

.dictionarycta {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 90px;

    padding: 15px 45px 15px 20px;

    box-sizing: border-box;

    border-radius: 8px;

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.dictionarycta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .15);
    opacity: .92;
}


/* 入稿ガイド */

.dictionarycta-guide {
    color: #004bc9;
    background: #fff;
    border: 2px solid #004bc9;
}


/* 商品 */

.dictionarycta-product {
    color: #fff !important;
    background: #0202e5;
    2px solid #7577ff
}


/* CTA補助テキスト */

.dictionarycta-label {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
}

.dictionarycta-text {
    display: block;

    font-size: clamp(14px, 2vw, 17px);
    font-weight: bold;
    line-height: 1.5;
}

.dictionarycta-arrow {
    position: absolute;

    top: 50%;
    right: 18px;

    font-size: 22px;

    transform: translateY(-50%);
}


/* ----------------------------------------
   ランキング
---------------------------------------- */

.dictionaryranking {
    max-width: 850px;

    margin: 0 auto 25px;
    padding: 14px 20px;

    box-sizing: border-box;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;
}

.dictionaryranking-title {
    margin: 0 0 8px;

    color: #555;

    font-size: 14px;
    font-weight: bold;

    text-align: center;
}

.dictionaryranking-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dictionaryranking-link {
    display: flex;

    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #004bc9;

    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;

    text-align: center;
    text-decoration: underline;
}

.dictionaryranking-link:hover {
    color: #3498db;
}

.dictionaryranking-link img {
    flex-shrink: 0;
    width: 18px;
    height: auto;
    transform: rotate(70deg);
}

.dictionaryranking-badge {
    display: inline-block;

    flex-shrink: 0;

    padding: 2px 7px;

    border-radius: 3px;

    color: #fff;
    background: #e60012;

    font-size: 10px;
    line-height: 1.4;

    text-decoration: none;
}


/* ----------------------------------------
   頭文字検索
---------------------------------------- */

.dictionaryindex {
    padding-top: 20px;

    border-top: 1px solid #ddd;
}

.dictionaryindex-title {
    margin: 0 0 14px;

    color: #333;

    font-size: 14px;
    font-weight: bold;

    text-align: center;
}

.dictionaryindex nav {
    width: 100%;
}

.dictionaryindex-list {
    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 8px;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}

.dictionaryindex-list li {
    width: auto;
    min-width: 0;

    margin: 0;
    padding: 0;

    display: block;
}

.dictionaryindex-list a {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 58px;

    padding: 8px 4px;

    box-sizing: border-box;

    border: 1px solid #d8d8d8;
    border-radius: 5px;

    color: #333;
    background: #fff;

    font-size: 12px;
    line-height: 1.3;

    text-align: center;
    text-decoration: none;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.dictionaryindex-list a span {
    display: block;

    margin-bottom: 2px;

    color: #004bc9;

    font-size: 17px;
    font-weight: bold;
}

.dictionaryindex-list a:hover {
    color: #004bc9;
    border-color: #004bc9;
    background: #f4f8ff;
}


/* ========================================
   Tablet
======================================== */

@media screen and (max-width: 767px) {

    #dictionaryfv {
        padding: 18px 15px;
        margin-bottom: 25px;
    }

    .dictionaryfv-description {
        font-size: 15px;
        text-align: left;
        line-height: 1.8;
    }

    .dictionaryfv-cta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dictionarycta {
        min-height: 78px;
    }

    .dictionaryindex-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


/* ========================================
   Smartphone
======================================== */

@media screen and (max-width: 480px) {

    #dictionaryfv {
        padding: 15px 10px;
    }

    .dictionaryfv-title {
        font-size: 25px;
    }

    .dictionaryfv-description {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .dictionarycta {
        min-height: 72px;

        padding:
            12px
            38px
            12px
            15px;
    }

    .dictionarycta-text {
        font-size: 14px;
    }

    .dictionaryranking {
        padding: 12px;
    }

    .dictionaryranking-link {
        justify-content: flex-start;

        font-size: 14px;

        text-align: left;
    }

    .dictionaryindex-title {
        font-size: 13px;
    }

    .dictionaryindex-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 6px;
    }

    .dictionaryindex-list a {
        min-height: 54px;

        padding: 6px 2px;

        font-size: 10px;
    }

    .dictionaryindex-list a span {
        font-size: 15px;
    }

}
