/* ベースリセット */
:root {
    --pink: #ff4081;
    --black: #222;
    --gray: #f4f4f4;
    --white: #fff;
    --max-width: 1100px; /* ★ここが重要：全体の幅を制限 */
}
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--black);
    margin: 0;
    background: var(--white);
    padding-bottom: 80px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; vertical-align: bottom; }

/* ★共通コンテナ（幅制限の中央寄せ） */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ヘッダー */
.header {
    border-bottom: 1px solid #eee;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-inner {
    position: relative;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1px;
}
.logo-accent { color: var(--pink); }
.menu-icon, .search-icon {
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    width: 30px;
    text-align: center;
}

/* ナビゲーション */
.header-nav {
    border-top: 1px solid #f9f9f9;
}
.header-nav ul {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}
.header-nav li { margin: 0 15px; }
.header-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
    transition: 0.3s;
}
.header-nav a:hover { color: var(--pink); }

/* スマホ用メニュー制御 */
@media (max-width: 768px) {
    .header-nav {
        display: none; /* デフォルトで隠す */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    .header-nav.open {
        display: block; /* openクラスがついたら表示 */
    }
    .header-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .header-nav li { margin: 10px 0; }
}

/* メインコンテンツ */
.main-wrapper {
    padding-top: 30px;
}

/* ★PICK UP画像（高さ制限） */
.main-feature { margin-bottom: 50px; }
.feature-img {
    position: relative;
    max-height: 500px; /* ★高さを制限 */
    overflow: hidden;
    border-radius: 8px; /* 角を少し丸める */
}
.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 比率を保ってトリミング */
    display: block;
}
.feature-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--pink);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 12px;
}
.feature-title {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 20px 0 0 0;
    text-align: center;
}

/* セクション見出し */
.section-header {
    text-align: center;
    margin: 60px 0 30px;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 2px solid var(--black); /* CanCamっぽい下線 */
    display: inline-block;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.section-header h3 {
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 2px;
}
.section-header span {
    font-size: 0.8rem;
    color: var(--pink);
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* ★記事グリッド（PCは4列、スマホは2列） */
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ★PCで4列 */
    gap: 25px 20px;
}
.article-card { display: block; }
.article-thumb {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.article-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: 0.3s;
}
.article-card:hover .article-thumb img {
    transform: scale(1.05); /* ホバーで少し拡大 */
}
.cat-tag {
    position: absolute;
    bottom: 0; left: 0;
    background: var(--black);
    color: white;
    font-size: 0.6rem;
    padding: 4px 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}
.article-title {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
    color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホで2列 */
    }
    .feature-img { max-height: 300px; } /* スマホでのメイン画像高さ */
}

/* ランキング（リストデザイン強化） */
.ranking-wrapper {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
}
.ranking-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}
.ranking-item:last-child { border-bottom: none; }
.rank-num {
    background: #ddd;
    color: white;
    width: 24px; height: 24px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    margin-right: 15px;
    margin-top: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}
.rank-num.first { background: #e6c84c; } /* 1位は金色 */
.rank-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}
.ranking-item:hover .rank-text {
    color: var(--pink);
    text-decoration: underline;
}

/* 応募セクション（LP部分） */
.entry-section {
    background: #f9f9f9;
    padding: 60px 0;
    margin-top: 80px;
}
.entry-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--black);
}
.entry-desc {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 40px;
    color: #666;
}
.merit-box {
    background: white;
    padding: 25px;
    border: 2px solid var(--pink);
    border-radius: 8px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.merit-box ul li {
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 1rem;
}

/* フォーム */
.entry-form {
    max-width: 600px;
    margin: 0 auto;
}
.entry-form input, .entry-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    background: white;
}
.file-area {
    background: white;
    padding: 20px;
    border: 2px dashed #ccc;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}
.file-area:hover { background: #fdfdfd; border-color: #999; }
.checkbox-area {
    font-size: 0.9rem;
    margin-bottom: 30px;
    text-align: center;
}
.submit-btn {
    width: 100%;
    background: var(--pink);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 64, 129, 0.4);
    transition: 0.3s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.6);
}

/* フッター */
.footer {
    background: var(--pink);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 0;
}
.logo.white { font-size: 2.2rem; color: white; font-weight: 900; }
.sub-link { font-size: 0.8rem; margin-top: 20px; opacity: 0.8; }
.sub-link a { text-decoration: underline; }

/* フローティングボタン */
.float-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 350px;
    background: var(--pink);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 64, 129, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: 0.3s;
}
.float-btn:hover {
    transform: translateX(-50%) translateY(-2px);
}

/* --------------------------------------------------
   記事ページ用スタイル (ここから下を追加)
-------------------------------------------------- */
.article-header {
    text-align: center;
    padding: 40px 0 30px;
    max-width: 800px;
    margin: 0 auto;
}
.article-cat {
    background: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}
.article-h1 {
    font-size: 1.6rem;
    margin-top: 25px;
    line-height: 1.5;
    font-weight: bold;
}
.article-date {
    color: #888;
    font-size: 0.85rem;
    margin-top: 15px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}
.article-body {
    line-height: 1.9;
    font-size: 1rem;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #444;
}
.article-body h2 {
    border-bottom: 2px solid var(--pink);
    padding-bottom: 10px;
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: bold;
}
.article-body p {
    margin-bottom: 30px;
}
.article-body img {
    border-radius: 8px;
    margin: 30px 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.back-link {
    text-align: center;
    margin: 60px 0;
    border-top: 1px solid #eee;
    padding-top: 40px;
}
.back-btn {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 12px 40px;
    border-radius: 50px;
    color: #666;
    font-size: 0.9rem;
    transition: 0.3s;
}
.back-btn:hover {
    background: #f9f9f9;
    color: var(--pink);
    border-color: var(--pink);
}

/* --------------------------------------------------
   記事クオリティアップ用装飾
-------------------------------------------------- */
/* 蛍光ペン風マーカー */
.marker {
    background: linear-gradient(transparent 60%, #ffeaa7 60%);
    font-weight: bold;
}

/* ポイント枠（まとめ） */
.check-point {
    background: #f9f9f9;
    border: 2px solid #eee;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    position: relative;
}
.check-point::before {
    content: 'CHECK';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--pink);
    color: white;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
}
.check-point ul {
    margin: 0;
    padding-left: 20px;
}
.check-point li {
    margin-bottom: 10px;
    list-style-type: disc; /* 黒丸 */
}

/* 見出しの装飾強化 */
.article-body h2 {
    border-left: 5px solid var(--pink);
    border-bottom: none;
    padding-left: 15px;
    background: #fafafa;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* --------------------------------------------------
   記事下CTAボタンのズレ修正（スマホ対応）
-------------------------------------------------- */
.entry-section .submit-btn {
    display: block !important;
    width: 100% !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}