/* 全体のレイアウト */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0f1923;
    /* VALORANTの暗い背景 */
    color: #ffffff;
    /* 明るいテキスト */
}

/* ヘッダー */
header {
    background-color: #1e1e1e;
    padding: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    /* 横幅を常に100%に */
}

header h1 {
    margin: 0;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
}

/* ナビゲーション */
nav {
    margin: 0;
    padding: 0;
    background-color: #333333;
    width: 100%;
    /* 横幅を常に100%に */
    box-sizing: border-box;
    /* パディングやマージンを含めた計算を有効に */
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-evenly;
    /* 均等配置 */
    align-items: center;
    width: 100%;
}

.main-menu>li {
    position: relative;
    flex-grow: 1;
    /* 項目を均等に伸ばす */
    text-align: center;
}

.main-menu a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 0;
    background-color: #444444;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    width: 100%;
    /* リンクを項目の横幅全体に広げる */
}

.main-menu a:hover {
    background-color: #ff4655;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444444;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: max-content;
    /* メニュー幅をコンテンツに合わせる */
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #ff4655;
}

/* ドロップダウンの表示切替 */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* 全体のコンテナ */
.agents-container {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    grid-template-columns: repeat(2, 1fr);
    /* 2列に変更 */
    gap: 20px;
    margin: 20px;
}

/* エージェントカード */
.agent-card {
    background-color: #1f2326;
    /* 暗い灰色でカード背景 */
    border: 1px solid #2c2f33;
    /* カードの境界線 */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /*transition: transform 0.3s, box-shadow 0.3s;*/
}

.agent-card a {
    color: #f2f2f2;
    text-decoration: none;
}

.agent-card a:hover {
    text-decoration: underline;
    color: #ff4655;
}




.agent-card h3 {
    font-size: 2.5em;
}

.agent-card h4 {
    font-size: 1.3em;
    color: #ff4655;
}

.agent-card p {
    font-size: 1.5em;
}

/*.agent-card:hover {
    transform: scale(1.05);
    /* ホバー時に拡大 */
/*box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);*/
/*}*/

.beginner-rating h4 {
    font-size: 1.5em;
}

/* エージェントの画像 */
.agent-image {
    width: 50%;
    /* 幅を最大化 */
    border-radius: 10px;
    margin-bottom: 10px;
    /*border: 2px solid #ff4655;*/
    /* 赤い枠線 */
}

/* スキルセクション */
.skills-section {
    margin-top: 15px;
}

.skills-section h4 {
    font-size: 1.5em;
}

.skills-section a {
    color: #f2f2f2;
    text-decoration: none;
}

.skills-section a:hover {
    text-decoration: underline;
    color: #ff4655;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* スキルのカード */
.skill {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #2c2f33;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #444;
}

.skill-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 5px;
    border: 2px solid #ff4655;
    /* 赤い枠線 */
}

.skill-text h5 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: #ff4655;
    /* 赤い文字 */
}

.skill-text h6 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #dcdcdc;
    margin-top: 15px;
    margin-bottom: 15px;
}

.skill-text p {
    margin: 0;
    font-size: 1.3em;
    line-height: 1.4;
    color: #dcdcdc;
    /* 薄い灰色 */
}

/* 星アイコンのデザイン */
.rating-stars {
    font-size: 24px;
    color: #ff4655;
    /* 塗られた星の色 */
    display: flex;
    justify-content: center;
    gap: 5px;
    /* 星の間隔 */
}

.star {
    color: #444;
    /* 空の星の色 */
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1em;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* 塗りつぶされた星 */
.star.filled {
    color: #ff4655;
}

/* 半分塗られた星 */
.star.half-filled::before {
    content: '★';
    color: #ff4655;
    position: absolute;
    width: 50%;
    overflow: hidden;
    top: 0;
    left: 0;
}
