/* 全体のスタイル調整 */
body {
    font-family: 'Yu Gothic', 'YuGothic', sans-serif;
    background-color: #2c3e50;
}

/* パネルのスタイル */
.panel {
    background-color: #34495e;
    border-radius: 15px;
    padding: 5px;
    max-width: 100%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@media screen and (min-width: 800px) {
    /* PC　★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

    #txt名前 {
        width: 800px;
        max-width: 90%;
        font-size: 2em;
        padding: 10px;
    }

    /* ボタンのスタイル */
    #btn名前決定 {
        width: 500px;
        max-width: 80%;
        height: 90px;
        font-size: 2.7em;
        padding: 15px 30px;
        border-radius: 5px;
    }

    /* タイトルのスタイル */
    .panel-title {
        font-size: 3.3em;
        font-weight: bold;
        margin-bottom: 5px;
        border-bottom: 3px solid #3498db;
        padding-bottom: 1px;
        text-align: center;
    }

    /* 内容の区分け */
    .panel-content {
        display: flex;
        justify-content: space-between;
        gap: 15px;
    }

    .operator-info {
        background-color: #2c3e50;
        border-radius: 10px;
        margin: 0 auto;
        width: 50%;
        font-size: 2em;
        padding-top: 1px;
        padding-bottom: 1px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .ability-measurement {
        background-color: #2c3e50;
        padding: 10px;
        border-radius: 10px;
        margin: 0 auto;
        width: 50%;
        font-size: 1.1em;
        text-align: center;
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .info-grid {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1px 10px;
        align-items: center;
        background-color: rgba(52, 73, 94, 0.7);
        border-radius: 10px;
        padding: 15px;
        margin-top: 5px;
        padding-top: 2px;
        padding-bottom: 10px;
        line-height: 1.7;
    }

    .ability-measurement h1 {
        font-size: 1.9em;
        text-align: center;
        margin-bottom: 8px;
    }

    /* 能力グリッドのスタイル */
    .abilities-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3列に変更 */
        gap: 10px;
        font-size: 1.5em;
    }

    /* アイコンのスタイル */
    .class-icon,
    .friend-icon,
    .skill-icon {
        max-width: 65px;
        max-height: 65px;
        min-width: 65px;
        min-height: 65px;
    }

    /* ボタンコンテナのスタイル */
    .button-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    /* ボタンのスタイル */
    .display-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        background-color: #3498db;
        color: #ffffff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 2em;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* ホバー効果 */
    .display-button:hover {
        filter: brightness(110%);
        top: -2px;
        box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
    }

    /* クリック効果 */
    .display-button:active {
        top: 6px;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
        filter: brightness(90%);
        transform: scale(0.90);
    }

    /* ボタンアイコンのスタイル */
    .button-icon {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    .profile-text-area {
        width: 90%;
        line-height: 1.2;
        /* さらに狭い行間 */
    }

}

@media screen and (max-width: 799px) {
    /* スマホ　★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

    #txt名前 {
        max-width: 95%;
        font-size: 1.7em;
        padding: 7px;
    }

    /* ボタンのスタイル */
    #btn名前決定 {
        width: 300px;
        max-width: 80%;
        height: 80px;
        font-size: 2em;
        padding: 1px 3px;
        border-radius: 5px;
    }

    /* タイトルのスタイル */
    .panel-title {
        font-size: 2em;
        font-weight: bold;
        margin-bottom: 5px;
        border-bottom: 3px solid #3498db;
        padding-bottom: 1px;
        text-align: center;
    }

    /* 内容の区分け */
    .panel-content {
        justify-content: space-between;
        gap: 30px;
    }

    .operator-info {
        background-color: #2c3e50;
        border-radius: 10px;
        margin: 0 auto;
        width: 100%;
        font-size: 1.1em;
        padding-top: 1px;
        padding-bottom: 1px;
        padding-left: 5px;
        padding-right: 5px;
        line-height: 1.7;
    }
    
        .info-grid {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 1px 10px;
            align-items: center;
            background-color: rgba(52, 73, 94, 0.7);
            border-radius: 10px;
            padding: 15px;
            margin-top: 5px;
            padding-top: 2px;
            padding-bottom: 10px;
            line-height: 1.7;
        }

    .ability-measurement {
        background-color: #2c3e50;
        padding: 10px;
        border-radius: 10px;
        margin: 0 auto;
        width: 100%;
        text-align: center;
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .ability-measurement h1 {
        text-align: center;
        margin-bottom: 5px;
    }

    /* 能力グリッドのスタイル */
    .abilities-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3列に変更 */
        gap: 10px;
        font-size: 1em;
    }

    /* アイコンのスタイル */
    .class-icon,
    .friend-icon,
    .skill-icon {
        max-width: 45px;
        max-height: 45px;
        min-width: 45px;
        min-height: 45px;
    }

    /* ボタンコンテナのスタイル */
    .button-container {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-top: 5px;
    }

    /* ボタンのスタイル */
    .display-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 10px;
        background-color: #3498db;
        color: #ffffff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* クリック効果 */
    .display-button:active {
        top: 6px;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
        filter: brightness(90%);
        transform: scale(0.90);
    }

    /* ボタンアイコンのスタイル */
    .button-icon {
        width: 24px;
        height: 24px;
        margin-right: 2px;
    }

    .profile-text-area {
        width: 100%;
        line-height: 1.2;
        /* さらに狭い行間 */
    }

}
/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
.ability {
    background-color: #2980b9;
    padding: 4px 8px;
    /* パディングを縮小 */
    border-radius: 6px;
    /* 角丸を少し小さく */
    transition: background-color 0.3s ease;
    text-align: center;
    line-height: 1.2;
    /* 行の高さを縮小 */
    display: flex;
    flex-direction: column;
    /* 縦方向に並べる */
    justify-content: center;
    /* 中央揃え */
}

.ability-name {
    font-weight: bold;
    display: inline;
}

.ability:hover {
    background-color: #3498db;
}

/* 星のスタイル */
#stars {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    /* フォントサイズを大きく */
}

.yellow-star {
    color: #f1c40f;
    margin-left: 5px;
    font-size: 1.1em;
    letter-spacing: -2px;
}

.star-rating {
    font-size: 1.2em;
    letter-spacing: -3px;
    transform: skew(-10deg);
    display: inline-block;
}

.info-label {
    text-align: right;
    color: #6ec5ff;
    font-weight: bold;
}

.skill-label {
    color: #ffffc9;
    /* 薄い黄色 */
}

.info-value {
    text-align: left;
    color: #ecf0f1;
    font-size: 1em;
    padding-bottom: 1px;
}

/* アイコンのスタイル */
.class-icon,
.friend-icon,
.skill-icon {
    vertical-align: middle;
    margin-right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #1a3447;
    border-radius: 5px;
}

.class-icon {
    background-color: #333333;
    /* 背景色を設定 */
}


/* 仲良しアイコンを丸くする */
.friend-icon {
    border-radius: 30%;
    /* 角の丸みを調整 (0%が完全な四角形、50%が円形) */
    overflow: hidden;
}

/* スキル名に下線を追加 */
#skill1,
#skill2,
#skill3 {
    font-weight: bold;
    border-bottom: 2px solid #3498db;
    padding-bottom: 1px;
    transition: all 0.3s ease;
}

#skill1:hover,
#skill2:hover,
#skill3:hover {
    background-color: rgba(52, 152, 219, 0.2);
    border-radius: 5px;
}

#txt名前 {
    background-color: white;
    color: black;
    border: 2px solid #3498db;
    border-radius: 5px;
}

#txt名前:focus {
    outline: none;
    border-color: #2980b9;
}

/* ボタンのスタイル */
#btn名前決定 {
    background-color: yellow;
    color: #2c3e50;
    border: none;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 0 5px 0 #e6a147;
    border: 4px solid black;
    /* 影を追加してボタンを立体的に */
    position: relative;
    top: 0;
    /* 初期位置 */
}

#btn名前決定:active {
    box-shadow: 0 2px 0 #d35400;
    /* クリック時に影を小さく */
    top: 3px;
    /* クリック時にボタンを少し下げる */
}