/* ベースコンテナ */
.new-mypage-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px 100px;
    font-family: "MS PMincho", "serif";
    color: #1f222e;
}

.support-navigation{
	margin-bottom:20px;
}

.btn-stone-support {
    display: inline-flex;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    transition: color 0.3s;
	font-size:1.4rem;
}

.btn-stone-support:hover {
    color: #eb1c24;
    border-color: #eb1c24;
}

/* ユーザーサマリーカード */
.user-summary-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* ランクに応じた細いアクセントラインを上部に追加 */
.user-summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(to right, #eb1c24, #f8f6f1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.rank-badge img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.member-type {
    font-size: 0.8rem;
    color: #eb1c24;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.member-tag {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.rank-circle-visual{
	font-size:2rem;
}

.member-tag.plus {
    color: #eb1c24; /* 有料会員はブランドカラーで誇らしく */
    font-weight: bold;
	font-size:1.2rem;
}

.user-name{
	font-size:1.6rem;
}
.user-id{
	font-size:1.2rem;
}

/* アップグレードボタンのスタイル */
.upgrade-container {
    margin-bottom: 8px;
}

.btn-upgrade {
    display: inline-block;
    font-size: 0.7rem;
    color: #eb1c24;
    text-decoration: none;
    border: 1px solid #eb1c24;
    padding: 2px 12px;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-upgrade:hover {
    background: #eb1c24;
    color: #fff;
    box-shadow: 0 4px 10px rgba(235, 28, 36, 0.2);
}


/* =============================================================================
   1. ベースレイアウト & コンテナ
   ============================================================================= */
body {
    background-color: #f8f6f1 !important; /* マイページ共通の生成り色 */
    margin: 0;
    padding: 0;
}

.new-mypage-container,
.article-list-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 15px 100px;
    font-family: "MS PMincho", "serif";
    color: #1f222e;
}

/* =============================================================================
   2. カテゴリーナビゲーション
   ============================================================================= */
.article-category-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.category-card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.category-card:active { transform: scale(0.95); }
.category-card .en { 
	display: block;
	font-size: 1.1rem;
	color: #eb1c24;
	font-weight: bold;
	letter-spacing: 0.1em;
}
.category-card .jp { 
	display: block; 
	font-size: 1.4rem;
	color: #1f222e;
	font-weight: bold;
	margin-top: 5px;
}

/* =============================================================================
   3. メイン記事カード（Edition / 総合一覧 用）
   ============================================================================= */
.article-list-area h3{
	font-size:1.6rem;	
}

.new-article-card, .article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.article-card a{
	text-decoration:none;
}

.new-article-card:active, .article-card:active {
    transform: scale(0.98);
}

.card-img-wrapper, .thumb-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img, .thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* カテゴリーバッジ */
.card-category, .thumb-wrapper .tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    background: #eb1c24;
    color: #fff;
    font-size: 1.6rem;
	font-weight:900;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.card-text-area, .content-body {
    padding: 20px;
}
.card-text-area h2, .content-body h3 {
    font-size: 1.4rem;
    line-height: 1.45;
    color: #1f222e;
    margin-bottom: 12px;
    font-weight: bold;
}

.card-date, .content-body .date {
    font-size: 1.1rem;
    color: #aaa;
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* =============================================================================
   4. リアクション & 報酬エリア（詳細ページ用）
   ============================================================================= */
.article-reaction-section {
    padding: 40px 20px;
    background: #fdfaf1;
    border-radius: 25px;
    margin: 40px 10px;
}

.reaction-header { text-align: center; margin-bottom: 25px; }
.bonus-badge {
    display: inline-block;
    background: #eb1c24;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.reaction-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.reaction-chip {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.reaction-chip.is-active {
    background: #eb1c24;
    color: #fff;
    border-color: #eb1c24;
    transform: scale(0.95);
}

/* 報酬獲得モーダル */
.reward-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reward-modal.is-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.reward-modal-content {
    background: linear-gradient(145deg, #1f222e, #2c3144);
    padding: 40px 60px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(247, 239, 138, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

#reward-amount {
    font-size: 3rem;
    font-weight: 900;
    color: #f7ef8a;
    text-shadow: 0 0 20px rgba(247, 239, 138, 0.5);
}

/* =============================================================================
   5. レコメンド / スリムカード（Trivia / 下部リスト 用）
   ============================================================================= */
.other-article-recommend {
    padding: 40px 15px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.recommend-title {
    font-size: 1.4rem;
    color: #1f222e;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.recommend-title::after {
    content: ''; position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%); width: 40px; height: 2px; background: #eb1c24;
}

.recommend-grid, .trivia-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommend-card, .trivia-card {
    display: flex;
    align-items: center;
    background: #fdfaf1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    padding: 10px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.recommend-card:active, .trivia-card:active {
    transform: scale(0.98);
    background: #f8f6f1;
}

.recommend-card .card-img, .trivia-card .card-img {
    width: 80px; height: 80px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden;
}

.recommend-card .card-img img, .trivia-card .card-img img {
    width: 100%; height: 100%; object-fit: cover;
}

.recommend-card .card-info, .trivia-card .card-info {
    padding-left: 15px; flex: 1;
}

.recommend-card .card-title, .trivia-card .card-title {
    font-size: 0.95rem; font-weight: bold; line-height: 1.4; color: #1f222e;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =============================================================================
   6. 広告 & その他
   ============================================================================= */
.article-list-ad {
    margin-bottom: 30px; padding: 20px;
    background: #fff; border-radius: 20px;
    border: 1px dashed #ddd; text-align: center;
}

.ad-label { font-size: 0.6rem; color: #ccc; margin-bottom: 10px; }

.btn-back-list {
    display: block; width: fit-content; margin: 30px auto 0;
    padding: 10px 30px; border: 1px solid #eb1c24;
    color: #eb1c24; border-radius: 25px;
    text-decoration: none; font-size: 0.9rem; font-weight: bold;
}

/* ==========================================================================
   記事詳細ページ (Magazine Content)
   ========================================================================== */

/* 1. ヒーローエリア（タイトル・アイキャッチ） */
.article-hero {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
}

.hero-title-area {
    padding: 30px 20px;
    background: #fff;
}

.hero-title-area h1 {
    font-size: 2.2rem;
    line-height: 1.4;
    color: #1f222e;
    font-weight: bold;
    margin: 0;
    word-break: break-all;
}

/* 2. 本文エリア */
.article-body-text {
    padding: 0 20px;
    line-height: 1.8;
    font-size: 1.6rem; /* 読みやすさを重視した少し大きめのサイズ */
    color: #333;
}

.text-block {
    margin-bottom: 40px;
}

.text-block h2{
	font-size:2rem;
	font-weight:900;
}
.text-block img{
	width:100%;
}
.text-block p {
    margin: 0;
}

/* 記事中広告 */
.article-mid-ad {
    margin: 40px -20px; /* 画面端まで広げる演出 */
    padding: 20px;
    background: #fdfaf1;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    text-align: center;
}

/* 3. リアクションセクション（評価） */
.article-reaction-section {
    padding: 50px 20px;
    background: #fff;
    border-radius: 30px;
    margin: 60px 10px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.reaction-card h3 {
    font-size: 1.6rem;
    color: #1f222e;
    margin-bottom: 25px;
    position: relative;
}

.reaction-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.reaction-chip {
    background: #f8f6f1;
    border: 1px solid #eee;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-chip:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reaction-chip.is-active {
    background: #eb1c24;
    color: #fff;
    border-color: #eb1c24;
    transform: scale(0.95);
}

.emoji {
    font-size: 1.8rem;
}

/* 4. 報酬獲得モーダル (giveStone演出用) */
.reward-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* クリックを邪魔しない */
}

.reward-modal.is-show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.reward-modal-content {
    background: rgba(31, 34, 46, 0.95);
    padding: 30px 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(247, 239, 138, 0.4);
    backdrop-filter: blur(10px);
}

.reward-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.reward-icon {
    font-size: 4rem;
    margin-bottom: 5px;
}

.reward-text-group {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

#reward-amount {
    font-size: 4.5rem;
    font-weight: 900;
    color: #f7ef8a;
    text-shadow: 0 0 20px rgba(247, 239, 138, 0.6);
    line-height: 1;
}

.reward-unit {
    color: #f7ef8a;
    font-size: 1.8rem;
    font-weight: bold;
}

.reward-caption {
    color: #fff;
    font-size: 1.4rem;
    margin-top: 10px;
}

/* 5. 下部レコメンドエリア */
.other-article-recommend {
    padding: 60px 20px;
    background: #fff;
    margin-top: 40px;
}

.recommend-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-weight: bold;
}

.recommend-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #eb1c24;
}

.recommend-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommend-card {
    display: flex;
    gap: 15px;
    background: #fdfaf1;
    padding: 12px;
    border-radius: 20px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s;
}

.recommend-card:hover {
    background: #f8f6f1;
    transform: translateX(5px);
}

.recommend-card .card-img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.recommend-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-card .card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recommend-card .card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1f222e;
    line-height: 1.5;
    margin-bottom: 8px;
}

.recommend-card .card-date {
    font-size: 1.1rem;
    color: #999;
}

/* モバイル調整 */
@media screen and (max-width: 480px) {
    .hero-title-area h1 { font-size: 1.8rem; }
    .article-body-text { font-size: 1.5rem; }
    #reward-amount { font-size: 3.5rem; }
}