/* 何切るアプリのスタイル */

/* ヘッダーロゴ位置調整 */
#header .site-title {
    display: flex;
    align-items: center;
    margin: 0;
    height: 80px;
}

#header .site-title a {
    display: flex;
    align-items: center;
    height: 100%;
}

#header .site-title img {
    max-height: 50px;
    width: auto;
}

/* メインコンテナ */
.main-container {
    padding-top: 80px;
    min-height: calc(100vh - 400px);
}

.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1%;
}

.content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 1% 40px 1%;
}

/* 行とカラム（Bootstrapライクなグリッド） */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.offset-md-2 {
    margin-left: 16.666667%;
}

@media (max-width: 768px) {
    .col-md-12, .col-md-8, .col-md-6, .col-md-4, .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 5px;
    }

    .offset-md-2 {
        margin-left: 0;
    }

    .row {
        margin: 0 -5px;
    }

    /* タブレットサイズで牌を少し大きく */
    .tile-compact img {
        width: 30px;
    }

    .mb-4 {
        margin-bottom: 14px !important;
    }

    .card {
        margin-bottom: 14px;
    }
}

/* ページタイトル */
h1, h2, h3, h4, h5 {
    color: #1c734f;
    margin-bottom: 20px;
}

/* 投稿一覧のメインタイトル */
h1.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1c734f;
    border-bottom: 3px solid #1c734f;
    padding-bottom: 12px;
    margin-bottom: 24px;
    position: relative;
}

h1.page-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #58b953;
}

/* カード */
.card {
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
    overflow: hidden;
    min-height: 280px;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link .card {
    cursor: pointer;
}

.card.h-100 {
    height: 100%;
}

.card-header {
    background-color: #58b953;
    color: #ffffff;
    border-radius: 10px 10px 0 0;
    padding: 12px 20px;
    font-weight: 500;
}

.card-header h5 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 12px 15px 15px 15px;
    background-color: #fff;
}

.card-footer {
    background-color: #f7f7f7;
    border-top: 1px solid #d0d0d0;
    padding: 12px 20px;
    font-size: 0.875rem;
}

.card-title {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1c734f;
}

.card-link:hover .card-title {
    color: #155a3d;
}

.card-text {
    margin-bottom: 10px;
}

/* ボタン */
.btn-primary {
    background-color: #1c734f;
    border-color: #1c734f;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #155a3d;
    border-color: #155a3d;
}

.btn-secondary {
    background-color: #888;
    border-color: #888;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-secondary:hover {
    background-color: #666;
    border-color: #666;
}

.btn-outline-primary {
    color: #1c734f;
    border-color: #1c734f;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #1c734f;
    border-color: #1c734f;
    color: #fff;
}

/* バッジ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
}

.badge .material-icons {
    font-size: 0.875rem;
    vertical-align: middle;
}

.badge.bg-primary {
    background-color: #1c734f !important;
    color: #fff !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

.badge.me-2 {
    margin-right: 0.5rem;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    background-color: #1c734f;
    color: #ecf0f1;
    padding: 15px;
    text-align: left;
    border: 1px solid #d0d0d0;
}

td {
    padding: 15px;
    text-align: left;
    border: 1px solid #d0d0d0;
    background-color: #fff;
}

/* フォーム */
.form-control, .form-select, textarea, input[type="text"], input[type="number"] {
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus, .form-select:focus, textarea:focus, input[type="text"]:focus, input[type="number"]:focus {
    border-color: #1c734f;
    box-shadow: 0 0 0 0.2rem rgba(28, 115, 79, 0.25);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* チェックボックス */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.form-check label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

/* フォームラベル */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* フォームグループの整列 */
form .col-md-3 .mb-3,
form .col-md-4 .mb-3 {
    height: 100%;
}

/* Select要素の高さ統一 */
select.form-select {
    height: 42px;
}

/* 麻雀牌の表示 */
.mahjong-tile {
    width: 40px;
    height: auto;
    margin: 2px;
    vertical-align: middle;
}

.tile-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px;
    background: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    min-height: 60px;
    align-items: center;
    margin-bottom: 15px;
}

.tile-display img {
    width: 50px;
    height: auto;
}

/* リスト表示用の牌 */
.tile-compact {
    display: flex;
    flex-wrap: nowrap;
    gap: 0px;
    margin: 4px 0;
    overflow-x: auto;
    padding: 0;
}

.tile-compact::-webkit-scrollbar {
    height: 4px;
}

.tile-compact::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 2px;
}

.tile-compact img {
    width: 32px;
    height: auto;
    flex-shrink: 0;
}

.tile-section {
    margin-bottom: 8px;
}

.tile-section-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 2px;
}

/* 鳴きグループ */
.naki-group {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    margin-right: 10px;
}

.naki-group .badge {
    margin-right: 5px;
}

/* 牌選択UI */
.tile-selector {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #d0d0d0;
}

.tile-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.tile-palette .tile-btn {
    cursor: pointer;
    transition: transform 0.1s;
    width: 40px;
    height: auto;
    border: 2px solid transparent;
    border-radius: 3px;
}

.tile-palette .tile-btn:hover {
    transform: scale(1.1);
    border-color: #1c734f;
}

.selected-tiles {
    min-height: 100px;
    background: white;
    border: 2px dashed #1c734f;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.selected-tiles .tile {
    width: 50px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s;
}

.selected-tiles .tile:hover {
    opacity: 0.6;
}

/* コメント */
.comment {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 15px;
}

.comment:last-child {
    border-bottom: none !important;
}

/* 評価セクション */
.rating-section {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
}

.rating-btn {
    margin: 0 5px;
}

.rating-btn:disabled {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

/* お気に入りボタン */
.favorite-btn {
    transition: all 0.3s;
}

.favorite-btn:hover {
    transform: scale(1.05);
}

/* リストグループ */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    display: block;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 12px 16px 16px 16px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.list-group-item h5 {
    color: #1c734f;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.list-group-item-action {
    cursor: pointer;
}

/* ページネーション */
.pagination {
    margin-top: 30px;
    justify-content: center;
}

.page-link {
    color: #1c734f;
    border-color: #d0d0d0;
}

.page-link:hover {
    background-color: #1c734f;
    color: #fff;
    border-color: #1c734f;
}

.page-item.active .page-link {
    background-color: #1c734f;
    border-color: #1c734f;
}

/* アラート */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* メッセージラッパー */
.message-wrapper {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.message-wrapper ul {
    list-style: none;
    padding: 0;
}

.message-wrapper li {
    background-color: #28a745;
    color: #fff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.message-wrapper li.error {
    background-color: #dc3545;
}

.message-wrapper li.warning {
    background-color: #ffc107;
    color: #000;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .wrapper {
        width: 100%;
    }

    .content-wrapper {
        padding: 20px 2%;
    }

    .mahjong-tile {
        width: 30px;
    }

    .tile-display img {
        width: 35px;
    }

    .tile-compact img {
        width: 28px;
    }

    .tile-section {
        margin-bottom: 6px;
    }

    .tile-section-title {
        margin-bottom: 1px;
    }

    .tile-palette .tile-btn {
        width: 30px !important;
    }

    .selected-tiles .tile {
        width: 35px;
    }

    .message-wrapper {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .card-body {
        padding: 12px;
    }

    /* カード間の余白をスマホで小さく */
    .mb-4 {
        margin-bottom: 12px !important;
    }

    .card {
        margin-bottom: 12px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h1.page-title {
        font-size: 1.5rem;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    h1.page-title::after {
        width: 60px;
        height: 2px;
        bottom: -2px;
    }

    h2 {
        font-size: 1.3rem;
    }

    /* スマホでタイトルと新規投稿ボタンを縦に配置 */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .d-flex.justify-content-between.align-items-center .btn-primary {
        width: auto;
    }
}

/* Flexレイアウトヘルパー */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.flex-grow-1 {
    flex-grow: 1;
}

.text-end {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

.gap-2 {
    gap: 0.5rem;
}

/* 詳細画面専用スタイル */

/* ボタンにアイコン */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    padding: 8px 16px;
    white-space: nowrap;
}

.btn .material-icons {
    font-size: 18px;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

@media (max-width: 768px) {
    .btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .btn .material-icons {
        font-size: 16px;
    }
}

/* 情報表示用のスタイル */
.info-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.info-label {
    font-size: 0.85rem;
    color: #6c757d;
    min-width: 80px;
    font-weight: 500;
}

.author-info-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-icon-detail {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.author-icon-placeholder-detail {
    font-size: 28px;
    color: #adb5bd;
}

.info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 0 1 auto;
}

.info-value-large {
    font-size: 1.25rem;
    color: #1c734f;
    font-weight: 700;
}

.section-title {
    font-size: 1.1rem;
    color: #1c734f !important;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    background: transparent !important;
}

/* 局面情報セクション（中央揃え） */
.game-info-section {
    text-align: center;
}

.game-info-section .section-title {
    display: inline-block;
    text-align: center;
    width: auto;
    min-width: 200px;
}

/* PCではタイトルの下線を長く */
@media (min-width: 769px) {
    .game-info-section .section-title {
        min-width: 400px;
    }
}

.game-info-section .info-grid {
    justify-content: center;
}

.game-info-section .tile-display-detail {
    justify-content: center;
}

.game-info-section .rating-section {
    text-align: center;
}

.game-info-section .description-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.description-text {
    color: #495057;
    line-height: 1.6;
}

/* お気に入りボタン */
.btn-favorite {
    background-color: #ffeb3b;
    border-color: #ffeb3b;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 24px;
    transition: all 0.3s;
}

.btn-favorite:hover {
    background-color: #fdd835;
    border-color: #fdd835;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 216, 53, 0.4);
}

.btn-favorite .material-icons {
    font-size: 20px;
}

/* ゲスト用お気に入りボタン */
.favorite-wrapper {
    position: relative;
    display: inline-block;
}

.favorite-btn-guest {
    cursor: pointer;
}

/* ログイン案内吹き出し */
.login-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 280px;
}

.login-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-tooltip-content {
    padding: 20px;
    text-align: center;
}

.login-tooltip-content .material-icons {
    font-size: 36px;
    color: #1c734f;
    margin-bottom: 8px;
}

.login-tooltip-content p {
    margin: 0 0 16px 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-tooltip-login {
    display: inline-block;
    background-color: #1c734f;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(28, 115, 79, 0.2);
}

.btn-tooltip-login:hover {
    background-color: #155a3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 115, 79, 0.3);
    color: white;
    text-decoration: none;
}

.login-tooltip-arrow {
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
}

/* 牌表示（詳細画面） */
.tile-display-detail {
    display: flex;
    flex-wrap: nowrap;
    gap: 1px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    /* スクロールバーのスタイリング */
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #f8f9fa;
}

.tile-display-detail::-webkit-scrollbar {
    height: 6px;
}

.tile-display-detail::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.tile-display-detail::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.tile-display-detail::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.tile-display-detail img {
    width: 36px;
    height: auto;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 評価セクション */
.rating-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.rating-average {
    text-align: center;
    margin-bottom: 20px;
}

.rating-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffc107;
}

.rating-max {
    font-size: 1.2rem;
    color: #6c757d;
}

.rating-stars-display {
    margin-top: 8px;
}

.rating-stars-display .material-icons {
    font-size: 28px;
    color: #ffc107;
}

.rating-input {
    text-align: center;
}

.rating-prompt {
    font-weight: 500;
    margin-bottom: 12px;
    color: #495057;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.star-btn .material-icons {
    font-size: 36px;
    color: #dee2e6;
    transition: color 0.2s;
}

.star-btn:hover .material-icons {
    color: #ffc107;
    transform: scale(1.2);
}

.star-btn.active .material-icons {
    color: #ffc107;
}

/* コメント牌選択 */
.comment-tile-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 12px;
}

.comment-tile-option {
    width: 38px;
    height: auto;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.comment-tile-option:hover {
    border-color: #1c734f;
    transform: scale(1.05);
}

.comment-tile-option.selected {
    border-color: #1c734f;
    box-shadow: 0 0 0 2px #1c734f;
}

/* コメント内の選択済み牌 */
.comment-selected-tile {
    width: 42px;
    height: auto;
    vertical-align: middle;
    margin-left: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* カードヘッダー情報（左右配置） */
.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.game-info {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.author-info-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-icon-large {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
}

.author-icon-placeholder-large {
    font-size: 36px;
    color: #adb5bd;
    flex-shrink: 0;
}

.author-name-large {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

/* 旧スタイル（互換性のため残す） */
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #6c757d;
}

.post-info {
    white-space: nowrap;
}

.post-divider {
    color: #dee2e6;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

.author-icon-placeholder {
    font-size: 24px;
    color: #adb5bd;
}

.author-name {
    font-weight: 500;
    color: #495057;
}

/* ログイン案内カード */
.login-prompt-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(28, 115, 79, 0.1);
}

.login-prompt-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
}

.login-prompt-icon {
    flex-shrink: 0;
}

.login-prompt-icon .material-icons {
    font-size: 64px;
    color: #1c734f;
    opacity: 0.8;
}

.login-prompt-text {
    flex: 1;
}

.login-prompt-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1c734f;
    margin-bottom: 16px;
    margin-top: 0;
}

.login-prompt-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 0.95rem;
}

.feature-item .material-icons {
    font-size: 20px;
    color: #1c734f;
}

.login-prompt-action {
    flex-shrink: 0;
}

.btn-login {
    background-color: #1c734f;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(28, 115, 79, 0.2);
}

.btn-login:hover {
    background-color: #155a3d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 115, 79, 0.3);
    color: white;
    text-decoration: none;
}

/* スマホ対応（詳細画面） */
@media (max-width: 768px) {
    .tile-display-detail {
        padding: 8px;
        gap: 0px;
        margin-left: -5px;
        margin-right: -5px;
        border-radius: 6px;
    }

    .tile-display-detail img {
        width: 24px;
    }

    .rating-score {
        font-size: 2rem;
    }

    .star-btn .material-icons {
        font-size: 30px;
    }

    .comment-tile-option {
        width: 24px;
    }

    .comment-tile-selector {
        padding: 6px;
        gap: 1px;
    }

    .comment-selected-tile {
        width: 28px;
    }

    .info-value-large {
        font-size: 1.1rem;
    }

    .info-grid {
        gap: 8px 12px;
    }

    .login-prompt-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .login-prompt-icon .material-icons {
        font-size: 48px;
    }

    .login-prompt-text h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .login-prompt-features {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 280px;
        margin: 0 auto;
    }

    .feature-item {
        font-size: 0.9rem;
        justify-content: center;
    }

    .btn-login {
        width: 100%;
        max-width: 280px;
    }

    .login-tooltip {
        min-width: 260px;
        right: 50%;
        transform: translateX(50%) translateY(-10px);
    }

    .login-tooltip.show {
        transform: translateX(50%) translateY(0);
    }

    .login-tooltip-arrow {
        right: calc(50% - 8px);
    }

    .login-tooltip-content {
        padding: 16px;
    }

    .login-tooltip-content .material-icons {
        font-size: 28px;
    }

    .login-tooltip-content p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .post-meta {
        font-size: 0.8rem;
    }

    .author-icon, .author-icon-placeholder {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .game-info {
        font-size: 0.9rem;
    }

    .author-icon-large {
        width: 28px;
        height: 28px;
    }

    .author-icon-placeholder-large {
        font-size: 28px;
    }

    .author-name-large {
        font-size: 0.9rem;
    }

    .card-header-info {
        margin-bottom: 6px;
    }

    .author-icon-detail {
        width: 24px;
        height: 24px;
    }

    .author-icon-placeholder-detail {
        font-size: 24px;
    }
}

/* フィルターフォーム */
.filter-form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: flex-end;
}

.filter-item label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    white-space: nowrap;
}

.filter-item .form-select {
    min-width: 180px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.95rem;
    background-color: white;
}

.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
    height: 38px;
    padding: 0 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 0;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.radio-label span {
    font-size: 0.95rem;
    color: #495057;
}

@media (max-width: 768px) {
    .filter-form-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }

    .filter-item {
        width: 100%;
    }

    .filter-item .form-select {
        min-width: 100%;
        width: 100%;
    }

    .radio-group {
        justify-content: flex-start;
    }
}
