/* Overall Reset */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif; /* Windows 11 (25H2) に馴染むフォント */
    background-color: #f0f8ff; /* Alice Blue */
    color: #333;
}

/* Header Section */
header {
    text-align: center;
    background-color: #87cefa;
    padding: 20px;
    border-bottom: 2px solid #4682b4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header p:first-child {
    font-size: 1.6em;
    font-weight: bold;
    margin: 0;
}

/* Counter & Stats */
#counter {
    font-size: 2.2em;
    margin: 10px 0;
    color: #2e8b57; /* Money color */
}

.center {
    text-align: center;
    margin: 5px 0;
}

/* Main Content Layout */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* General Buttons */
button {
    padding: 12px 24px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background-color: #ffa500;
    color: white;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #ff8c00;
}

button:active {
    transform: scale(0.98);
}

/* Purchase Sections Layout */
.right {
    text-align: right;
    clear: both; /* floatの干渉を防ぐ */
    margin-bottom: 10px;
}

h6.right, h6.left {
    margin: 20px 0 5px 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #4682b4;
}

p.right {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

/* Right-aligned Purchase Buttons */
button.right {
    float: right;
    background-color: #4caf50;
    padding: 10px 20px;
    margin-bottom: 20px;
}

button.right:hover {
    background-color: #45a049;
}

/* Reset Section Layout */
.left {
    text-align: left;
    clear: both;
}

button.left {
    float: left;
    background-color: #f44336; /* Reset is usually Red */
    padding: 10px 20px;
}

button.left:hover {
    background-color: #d32f2f;
}

/* clearfix to keep main height consistent */
main::after {
    content: "";
    display: table;
    clear: both;
}
/* --- Language Selection Screen Styles --- */

/* 言語選択のカードを横並びにするコンテナ */
.selection-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* カード同士の間隔 */
    margin-top: 60px;
    flex-wrap: wrap; /* 画面が狭い時に縦に並ぶようにする */
}

/* 言語カード本体 */
.lang-card {
    background: white;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

/* カードにマウスを乗せた時の動き */
.lang-card:hover {
    transform: translateY(-10px); /* 少し浮き上がる */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #87cefa;
}

.lang-card h2 {
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #4682b4;
    border-bottom: 2px solid #f0f8ff;
    padding-bottom: 10px;
}

/* 言語選択画面のボタン専用調整 */
.lang-card button {
    width: 100%;
    font-weight: bold;
    letter-spacing: 1px;
}