body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #4d4d4d;
    overflow-x: hidden;
    height: 100svh;
}

/* heder */
header {
    height: 600px;
}


.header-bc {
    height: 600px;
    background-size: cover;
    background-position: bottom;
    color: #ffffff;
}

.header-title {
    position: absolute;
    bottom: 50px;
    right: 50px;
}

.header-title br {
    display: none;
}

.header-back-color {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

/* --------------- */

.div_admane_async_1747889127227622925 img {
    width: 500px;
}

main {
    padding: 20px 20px 0 20px;
    max-width: 960px;
    margin: auto;
    position: relative;
    z-index: 10;
}

.hero {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    box-sizing: border-box;
}

.diagnosis-btn {
    background: #ff9900;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-secondary,
.btn-primary {
    padding: 8px 24px;
    border-radius: 6px;
}

.btn-primary {
    background-color: #039BE5;
    border: 1px solid rgba(3, 155, 229, 0.8);
    color: white;
}

.btn-secondary {
    background-color: #bebebe;
    border: 1px solid rgba(190, 190, 190, 0.8);
    opacity: 0;
}


#diagnosis {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.diagnosis-bc {
    display: none;
    width: 100%;
    height: 100svh;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.4);
}

.comonn-h2 {
    position: relative;
    font-weight: bold;
    padding: 5px 0;
    border-bottom: 3px solid #d5d5d5;
    /* 全体のグレー線 */
    margin-bottom: 10px;
}


.comonn-h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 30%;
    height: 3px;
    background-color: #0a65ec;
}

.comonn-h3 {
    position: relative;
    font-weight: bold;
    padding: 5px 0;
    border-bottom: 3px solid #d5d5d5;
    /* 全体のグレー線 */
    margin-bottom: 10px;
}


.comonn-h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 30%;
    height: 3px;
    background-color: #0a65ec;
}

.comonn-h4 {
    position: relative;
    font-weight: bold;
    padding: 5px 0;
    border-bottom: 3px solid #d5d5d5;
    /* 全体のグレー線 */
    margin-bottom: 10px;
}

.comonn-h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 30%;
    height: 3px;
    background-color: #0a65ec;
}

.rhombus {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    background-color: black;
    transform: rotate(45deg);
    margin-right: 0.5em;
}

.structure_item,
.point_item,
.question_item {
    display: inline;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 0;
    font-weight: bold;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.structure_item {
    background: linear-gradient(to bottom, transparent 60%, #77bcff 40%);
}

.point_item {
    background: linear-gradient(to bottom, transparent 60%, #FFD54F 40%);
}

.question_item {
    background: linear-gradient(to bottom, transparent 60%, #81C784 40%);
}


.categories,
.ranking,
.columns {
    margin-bottom: 40px;
}

.ranking div {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ranking .ranking-item:hover,
.footer-nav li:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.ranking-item::before {
    content: "🏆 ";
}

/* モバイル対応 */
@media (max-width: 480px) {
    .ranking h2.comonn-h2 {
        font-size: 1.3rem;
    }

    .ranking-item {
        font-size: 1rem;
    }
}


/* カテゴリー */
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.category-item {
    min-width: 0;
    padding: 10px 14px;
    border-radius: 6px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    font-weight: bold;
    border-radius: 5px;
    min-width: max-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.category-item:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.category-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

/* カラー指定 */
.category-dot.student {
    background-color: #4FC3F7;
}

.category-dot.travel {
    background-color: #81C784;
}

.category-dot.return {
    background-color: #FFD54F;
}

.category-dot.beginner {
    background-color: #BA68C8;
}

.category-dot.housewife {
    background-color: #FF8A65;
}

.category-dot.easy {
    background-color: #90A4AE;
}

.category-dot.loan,
.category-dot.credit {
    background-color: #3666e9;
}

/* --------------- */


.ranking-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}


ul {
    padding-left: 20px;
}

details {
    background: #fff;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    padding: 0;
    margin: 0;
}
.breadcrumb li {
    margin-right: 5px;
}
.breadcrumb li::after {
    content: "›";
    margin-left: 5px;
    color: #999;
}
.breadcrumb li:last-child::after {
    content: "";
    margin: 0;
}
.breadcrumb a {
    text-decoration: none;
    color: #0073aa;
}
.breadcrumb a:hover {
    text-decoration: underline;
}



@media (min-width: 768px) {
    .card-list {
        flex-direction: row;
    }

    .card {
        flex: 1;
    }
}

.btn {
    display: inline-block;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

/* yajirushi */
.greaterthan {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 2px solid black;
    border-right: 2px solid black;
    line-height: 12px;
}

.y-up {
    transform: rotate(135deg);
    margin-left: 15px;
    margin-right: 20px;
    margin-bottom: 3px;
    position: absolute;
    right: 5px;
    top: 5px;
}

.y-down {
    transform: rotate(-45deg);
    margin-left: 15px;
    margin-right: 20px;
    margin-top: 8px;
    position: absolute;
    right: 5px;
    top: 5px;
}

.footer-nav .footer-nav {
    border-left: 1px solid #ffffff;
    padding-left: 8px;
    padding-right: 8px;
}


@media (min-width: 768px) {
    .card-list {
        flex-direction: row;
    }

    .card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    main {
        background-color: #ffffff;
    }

    .header-bc {
        /* position: fixed;
        top: 0;
        left: 0; */
        width: 100%;
        height: 500px;
        background-size: cover;
        background-position: center;
        z-index: -1;
    }

    .header-title {
        max-width: 400px;
        text-align: left;
        word-break: break-word;
        right: 5px;
        bottom: 5px;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .header-title br {
        display: block;
    }

    h2 {
        font-size: 19px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    p {
        font-size: 13px;
    }

    .category-item {
        font-size: 14px;
    }

    .hero {
        padding: 20px;
    }

    main {
        padding: 20px 10px 0 10px;
    }

    header {
        height: 500px;
    }
    
}