/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
    color: #333;
    padding: 20px;
    box-sizing: border-box;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    /* Standardized to 800px for better readability on desktop */
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    /* Default alignment */
}

/* Typography */
h1 {
    font-size: 28px;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    padding-left: 20px;
    list-style-type: disc;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* Navigation Buttons (Home Page) */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.nav-button {
    display: block;
    padding: 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.nav-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Footer Navigation */
.footer-nav {
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.footer-nav a {
    margin: 0 10px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .navigation-grid {
        grid-template-columns: 1fr;
    }
}

/* Common Components */
.phrase-box {
    background-color: #f8f9fa;
    border-left: 5px solid #007bff;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.phrase-box .en {
    font-weight: bold;
    color: #333;
}

.phrase-box .ja {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.game-link-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.game-link-button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Header */
.header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 a {
    color: #007bff;
    text-decoration: none;
    font-size: 24px;
}

/* Product Recommendation */
.product-recommendation {
    margin-top: 40px;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.product-recommendation::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #ff9900;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.product-recommendation h4 {
    margin-top: 0;
    color: #007bff;
}

.product-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-image-link {
    display: block;
    width: 120px;
    height: auto;
}

.product-image-link img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.product-description {
    flex: 1;
}

/* Amazon Button */
.amazon-button {
    display: inline-block;
    background-color: #ff9900;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.amazon-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Share Section */
.share-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.share-button {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.share-button:hover {
    opacity: 0.8;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-facebook {
    background-color: #4267B2;
}

.share-line {
    background-color: #00B900;
}