.hero {
    background: url('./images/planePC1.jpeg') center/cover no-repeat;
  }

/* -------card------- */
#popularPlan{
    border-left: 6px solid #ec8a00;
}

.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px 20px 20px 20px;
    margin: 25px 0px 20px 0px;
    background-color: #fff;
    cursor: pointer;
    overflow: hidden;
    max-height: 112px;
    transition: max-height 0.3s ease;
    /* バッジやボタンの位置調整に必要 */
    position: relative;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.5rem;
    color: #006699;
    margin-bottom: 5px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    /* 動的サイズ調整 */
    white-space: nowrap;
    /* 改行しない */
    overflow: hidden;
    /* はみ出したら省略記号（...） */
    text-overflow: ellipsis;
}

.card h4 {
    font-size: 1.1rem;
    color: #444;
    margin: 10px 0 15px;
    font-weight: 500;
}

.card h5 {
    font-size: 1rem;
    margin: 20px 0 10px;
    color: #333;
    font-weight: 600;
    border-left: 4px solid #007acc;
    padding-left: 8px;
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* サービス・価格表示（外側のli） */
.card>ul>li {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding-left: 0.5em;
    border-left: 4px solid #007acc;
    margin-bottom: 1em;
}

/* 補足説明（ネストされたli） */
.card ul ul li {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
    line-height: 1.6;
    margin: 0.5em 0 0.5em 0;
    padding-left: 1em;
    border-left: 2px dotted #ccc;
}

/* ネストリストの点を消して代わりに控えめデザイン */
.card ul ul {
    list-style-type: none;
    padding-left: 1em;
}


.card strong {
    color: #e67e22;
    font-weight: bold;
}

.expand-hint {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.expand-hint-br {
    display: inline-block;
}

.card.expanded {
    max-height: 3000px;
}

.badge {
    position: absolute;
    top: 73px;
    right: 10px;
    background: #ff5e00;
    color: white;
    font-weight: bold;
    font-size: 0.85em;
    padding: 6px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform: rotate(-5deg);
}

.card-container-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 3列に固定 */
    gap: 20px;
    justify-content: center;
}

.card-container-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3列に固定 */
    gap: 20px;
    justify-content: center;
}

/* -------問合せボタン------- */
/*カードが閉じているときは表示しない*/
.contact-button {
    display: none;
}

.card.expanded .contact-button {
    display: block;
}




/* 1025px以上（PC） */
@media screen and (min-width: 1025px) {
    .expand-hint {
        display: none;
    }

    .expand-hint-br {
        display: none;
    }
}

/* 1024以下（スマホ、タブレット） */
@media (max-width: 1024px) {
    .card-container-2 {
        grid-template-columns: 1fr;
        /* スマホでは1列 */
    }

    .card-container-3 {
        grid-template-columns: 1fr;
        /* スマホでは1列 */
    }

    /* バッジの位置 */
    .badge {
        padding: 4px 8px;
        top: 10px;
        right: 6px;
    }

    /* クリックしたら詳細表示される感を出すメッセージ */
    .expand-hint {
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.9);
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.9em;
        font-weight: bold;
        color: #888;
    }

    .card {
        margin: 0px 0px 20px 0px;
        max-height: 129px;
    }

    /* expanded がついているときは非表示 */
    .card.expanded .expand-hint {
        display: none;
    }

    .card.expanded .expand-hint-br {
        display: none;
    }
}

/* 768以下（スマホ） */
@media (max-width: 600px) {

    /* バッジの大きさ */
    .badge {
        font-size: 0.7em;
    }

    h2 {
        font-size: 1.6rem;
    }
}