/* --- 基本設定 --- */
:root {
    --primary-color: #81d4fa; /* 淡い水色 - sleepy noon のイメージ */
    --secondary-color: #4fc3f7; /* やや濃い水色 */
    --accent-color: #ffcc80; /* アクセント - 暖色系 (オレンジ) */
    --text-color: #37474f; /* 濃いグレー */
    --light-text-color: #ffffff;
    --bg-color: #ffffff;
    --light-bg-color: #f5fcff; /* ごく淡い水色 */
    --border-color: #e0e0e0;

    --font-primary: 'Poppins', 'Noto Sans JP', sans-serif;
    --font-secondary: 'Noto Sans JP', sans-serif;

    --container-width: 1140px;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* スムーズスクロール */
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.8em;
    color: var(--text-color);
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; color: var(--secondary-color); }
h3 { font-size: 1.5rem; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- ヘッダー --- */
.site-header {
    position: fixed; /* または absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9); /* 半透明 */
    backdrop-filter: blur(10px); /* 背景ぼかし */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* スクロール時にヘッダー背景を不透明にする (JSでクラス .scrolled を付与想定) */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 1);
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.logo:hover {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}
.main-nav li {
    margin-left: 30px;
}
.main-nav a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav a:hover::after {
    width: 100%;
}

/* --- ヒーローセクション --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 90vh; /* 画面の高さいっぱい近く */
    padding: 100px 20px; /* 上下に余裕を持たせる */
    background-image: linear-gradient(rgba(224, 247, 250, 0.7), rgba(179, 229, 252, 0.7));
    background-size: cover;
    background-position: center;
    color: var(--text-color); /* グラデーションを考慮して濃いめのテキスト色 */
    margin-top: var(--header-height); /* ヘッダーの高さ分下げる */
}

.hero-content h1 {
    margin-bottom: 0.5em;
    color: #0277bd; /* 少し濃い青 */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    max-width: 600px; /* 長すぎないように */
    margin-left: auto;
    margin-right: auto;
}

/* --- ボタン --- */
.cta-button, .link-button, .store-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px; /* 丸みのあるボタン */
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-color);
}
.cta-button:hover {
    background-color: #ffb74d; /* 少し濃いオレンジ */
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.link-button {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}
.link-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}

/* --- セクション共通 --- */
.section {
    padding: 80px 0;
}
.section:nth-child(odd) { /* セクションごとに背景色を交互に変える */
    background-color: var(--light-bg-color);
}
.section h2 {
    text-align: center;
    margin-bottom: 1em;
}
.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #546e7a; /* やや薄いグレー */
}

/* --- ゲームセクション --- */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* レスポンシブなグリッド */
    gap: 40px;
}

.game-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.game-card img {
    width: 100%;
    aspect-ratio: 16 / 10; /* 画像の縦横比を固定 */
    object-fit: cover;
}

.game-card-content {
    padding: 25px;
}
.game-card h3 {
    margin-bottom: 0.5em;
}
.game-card p {
    font-size: 0.95rem;
    color: #546e7a;
    margin-bottom: 1.5em;
}

.store-links {
    display: flex;
    flex-wrap: wrap; /* スマホで改行 */
    gap: 10px; /* ボタン間の隙間 */
}
.store-button {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}
.store-button.appstore {
    background-color: #000;
    color: #fff;
    border-color: #000;
}
.store-button.googleplay {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc; /* ロゴの色に合わせても良い */
}
.store-button:hover {
    opacity: 0.8;
}
.store-button.disabled {
    background-color: #e0e0e0;
    color: #9e9e9e;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

/* --- Aboutセクション --- */
.section-about .container {
    max-width: 800px; /* Aboutセクションは少し幅を狭く */
    text-align: center;
}
.section-about .link-button {
    margin-top: 20px;
}

/* --- Contactセクション --- */
.section-contact .container {
     max-width: 800px;
    text-align: center;
}
.section-contact h2 {
    /* 既存のスタイル適用 */
}
.section-contact p { /* 説明文 */
    margin-bottom: 1em;
}
.email-address { /* メールアドレス部分 */
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 10px;
    word-break: break-all; /* 長いアドレスがはみ出ないように */
}
.email-address a {
    color: var(--secondary-color);
}
.email-address a:hover {
    color: var(--primary-color);
}


/* --- フッター --- */
.site-footer {
    background-color: #e1f5fe; /* ヘッダーより少し濃い淡い青 */
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #455a64; /* やや濃いグレー */
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}
.footer-nav li {
    display: inline-block;
    margin: 0 15px;
}
.footer-nav a {
    color: #455a64;
}
.footer-nav a:hover {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 10px;
    font-size: 0.85rem;
}


/* --- ハンバーガーメニュー (スマホ用) --- */
.menu-toggle {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
    z-index: 1001; /* ドロワーより手前 */
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none; /* PCでは非表示 */
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    padding-top: 30px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}
.mobile-nav.is-open {
    transform: translateX(0);
    display: block;
}
.mobile-nav ul {
    list-style: none;
}
.mobile-nav li {
    text-align: center;
    margin-bottom: 20px;
}
.mobile-nav a {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 10px 20px;
    display: block;
}
.mobile-nav a:hover {
    color: var(--primary-color);
}

/* メニューオープン時のトグルボタンのスタイル */
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    .main-nav {
        display: none; /* PC用ナビを非表示 */
    }
    .menu-toggle {
        display: block; /* ハンバーガーメニューを表示 */
    }
    .hero {
        min-height: 70vh;
        padding: 80px 20px;
        margin-top: var(--header-height);
    }
    h1 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .game-list { gap: 30px; }
    .footer-nav li { margin: 0 10px; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .hero-content p { font-size: 1rem; }
    .store-links { justify-content: center; } /* ストアボタンを中央寄せ */
}

/* --- プライバシーポリシー等、下層ページのスタイル調整 (大幅変更・追加) --- */
.subpage-header {
    /* スクロールしても常に不透明にする場合 */
    background-color: #fff;
    position: relative; /* fixed解除 (任意) - 解除した場合、下の main に padding-top 不要 */
    /* fixed のままにする場合は .site-header と同じでOK */
}

.subpage-main {
    padding-top: 40px; /* ヘッダーがrelativeの場合 */
    /* padding-top: calc(var(--header-height) + 40px); ヘッダーがfixedの場合 */
    padding-bottom: 80px;
    background-color: var(--bg-color);
}

.subpage-main h2 {
    text-align: center;
    margin-bottom: 2em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block; /* 中央寄せのために必要 */
}
/* h2を中央寄せするための親要素の調整 (mainタグにtext-align:centerを追加しても良い) */
.subpage-main { text-align: center; }
.subpage-main > *:not(h2) { text-align: left; } /* h2以外は左寄せに戻す */
.subpage-main .container { text-align: left; } /* containerの中身も左寄せ */


.subpage-main h3 {
    font-size: 1.4rem;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.subpage-main p,
.subpage-main li,
.subpage-main dd {
    margin-bottom: 1em;
    line-height: 1.8;
    color: #424242; /* 少し濃いめのグレー */
}

.subpage-main ul, .subpage-main ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.subpage-main ul ul, .subpage-main ol ol { /* 入れ子のリスト */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.subpage-main strong { /* ポリシー等の強調 */
    font-weight: bold;
}

.date-info { /* 制定日などの情報 */
    text-align: right;
    font-size: 0.9rem;
    color: #757575;
    margin-bottom: 0.5em;
}

.important-notice { /* 注意書き */
    background-color: #fffde7; /* 薄い黄色 */
    border-left: 4px solid #ffc107; /* 黄色 */
    padding: 1em 1.5em;
    margin: 2em 0;
    font-size: 0.95rem;
}
.important-notice strong {
    color: #ef6c00; /* オレンジ */
}

hr.section-divider { /* セクション区切り線 */
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5em 0;
}

/* --- about.html 専用スタイル --- */
.about-page-content h2 { /* Aboutページのタイトル */
     border-bottom: none; /* 下線不要 */
     margin-bottom: 1.5em;
}

.about-card {
    background-color: var(--light-bg-color); /* 淡い背景色 */
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto; /* 中央寄せ */
}

.about-studio-name { /* スタジオ名 */
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 0.8em;
}

.about-description { /* 説明文 */
    text-align: center;
    font-size: 1.05rem;
    color: #546e7a;
    margin-bottom: 2em;
}

.about-details dt {
    font-weight: bold;
    color: var(--text-color);
    margin-top: 1.2em;
    font-size: 1rem;
}
.about-details dd {
    margin-left: 0; /* dtの下に表示 */
    margin-bottom: 1em;
    font-size: 1rem;
}
.about-details a {
    color: var(--secondary-color);
}
.contact-note { /* メール注釈 */
    font-size: 0.85rem;
    color: #757575;
    margin-top: -0.5em;
}