/* --- 基本設定 --- */
:root {
    --primary-color: #C86748; /* 暖かみのあるオレンジ */
    --secondary-color: #FECA57; /* 明るいイエロー */
    --accent-color: #54a0ff; /* リンク用ブルー */
    --text-color: #2f3542;
    --bg-color: #fcfcfc;
    --white: #ffffff;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- レイアウトユーティリティ --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.header-nav a:hover {
    background-color: #fff4e0;
    color: var(--primary-color);
}

/* --- ヒーローセクション --- */
.hero {
    background: linear-gradient(135deg, #fffcf5 0%, #fff0d4 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin: 0;
    line-height: 1.3;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.hero p {
    font-size: 1.1rem;
    color: #57606f;
    max-width: 600px;
    margin-bottom: 20px;
}

.hero-image {
    width: 280px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(255, 159, 67, 0.2);
    border: 8px solid #2f3542;
    margin: 30px auto;
    background-color: #fff;
}

/* --- ボタンデザイン --- */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    height: 56px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 220px;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.btn-web {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-play {
    background-color: #2f3542;
    color: var(--white);
    border: 1px solid #2f3542;
}

.btn i {
    margin-right: 10px;
    font-size: 1.3rem;
}

/* --- 特徴セクション（横並びレイアウト） --- */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 80px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    opacity: 0.7;
}

/* 特徴アイテムのコンテナ */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 120px; /* 特徴ごとの間隔 */
}

/* 最後のアイテムはマージンなし */
.feature-item:last-child {
    margin-bottom: 0;
}

/* 偶数番目のアイテムは左右反転（ジグザグ表示） */
.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* 画像エリア */
.feature-img-box {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* 背景の装飾円 */
.feature-img-box::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background-color: #fff4e0;
    border-radius: 50%;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-screenshot {
    position: relative;
    z-index: 1;
    width: 220px; /* 少し大きめに表示 */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 4px solid #fff;
}

/* テキストエリア */
.feature-txt-box {
    flex: 1;
}

.feature-number {
    font-size: 4rem;
    font-weight: bold;
    color: #f1f2f6;
    line-height: 1;
    margin-bottom: -20px;
    margin-left: -10px;
    position: relative;
    z-index: -1;
}

.feature-txt-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.feature-txt-box p {
    font-size: 1.05rem;
    color: #57606f;
    line-height: 1.9;
}

/* --- フッター --- */
footer {
    background-color: #f1f2f6;
    color: var(--text-color);
    padding: 50px 0 30px;
    text-align: center;
    border-top: 1px solid #e1e1e1;
}

.footer-logo {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #57606f;
    font-size: 0.95rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.8rem;
    color: #a4b0be;
}

.mogumogu-title{
    font-family: "Kosugi Maru", sans-serif;
    font-weight: 500;
    font-style: normal;
}

/* --- レスポンシブ対応 (スマホ向け) --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 80%;
    }

    /* スマホでは縦並びに戻す */
    .feature-item {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 80px;
        text-align: center;
    }

    /* 偶数番目も縦並び（反転させない） */
    .feature-item:nth-child(even) {
        flex-direction: column;
    }

    .feature-txt-box h3 {
        font-size: 1.5rem;
    }
    
    /* スマホでは数字を少し控えめに */
    .feature-number {
        display: none; /* スマホでは数字を消してシンプルにするか、調整する */
    }
}

/* --- お知らせセクション --- */
#news {
    padding: 80px 0;
    background-color: #f8f9fa; /* 少し背景色をつける */
}

#news .container {
    max-width: 800px; /* お知らせセクションは少し幅を狭く */
}

#news h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

#news h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    opacity: 0.7;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.news-item {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: #fff;
}

.news-item:first-child {
    border-top: 1px solid #e9ecef;
}

.news-item a {
    display: flex;
    width: 100%;
    align-items: baseline;
    text-decoration: none;
    padding: 18px 15px;
}

.news-date {
    font-size: 0.9rem;
    color: #888;
    margin-right: 25px;
    min-width: 90px;
}

.news-title {
    font-size: 1.05rem;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

.more-news-link {
    text-align: right;
}

.more-news-link a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
    padding: 8px 0;
}

.more-news-link a:hover {
    opacity: 0.7;
}

/* === Post Page Styles === */
#post-main { padding: 60px 20px; }
.post-container { max-width: 800px; margin: 0 auto; padding: 40px 50px; background-color: var(--white); border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.05); }
.post-header h1 { font-size: 2.2rem; margin: 0 0 10px 0; line-height: 1.4; }
.post-meta { color: #888; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #e9ecef; }
.post-content { color: #343a40; line-height: 1.9; }
.post-content h1, .post-content h2, .post-content h3 { margin-top: 2em; margin-bottom: 1em; padding-bottom: 0.3em; border-bottom: 1px solid #e9ecef; font-weight: bold; }
.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content p { margin-bottom: 1.2em; }
.post-content a { color: var(--accent-color); text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 2em; }
.post-content blockquote { border-left: 4px solid #e9ecef; padding-left: 1em; margin-left: 0; color: #888; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.back-link { margin-top: 50px; text-align: center; }
.back-link a { color: var(--primary-color); font-weight: bold; padding: 10px 20px; border: 1px solid var(--primary-color); border-radius: 50px; transition: all 0.3s; }
.back-link a:hover { background-color: var(--primary-color); color: var(--white); }
@media (max-width: 600px) {
    .post-container { padding: 30px 25px; }
    .post-header h1 { font-size: 1.8rem; }
}

/* === News List Page Styles === */
#news-main { padding: 60px 20px; }
.news-container { max-width: 800px; margin: 0 auto; }
.page-title { text-align: center; font-size: 2rem; margin-bottom: 50px; color: var(--primary-color); position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.page-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 100%; height: 4px; background-color: var(--secondary-color); border-radius: 2px; opacity: 0.7; }
.news-list { background-color: var(--white); border-radius: 8px; box-shadow: 0 8px 25px rgba(0,0,0,0.05); overflow: hidden; }
.news-item:last-child { border-bottom: none; }
.news-item a { padding: 20px 25px; }
.back-to-top-link { text-align: center; margin-top: 40px; }
.back-to-top-link a { color: var(--primary-color); font-weight: bold; }
