/* たとエール 2026リニューアル */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; color: #222; background: #faf7f2; line-height: 1.7; }
a { color: #c2570b; }
.site-header { background: #fff; border-bottom: 3px solid #f0a13c; }
.header-inner { max-width: 880px; margin: 0 auto; padding: 14px 16px; }
.header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.header-brand { flex: 1 1 auto; }
.header-account { flex: 0 0 auto; text-align: right; }
.header-account .head-user { margin: 0 0 6px; }
.site-title { font-size: 28px; font-weight: bold; color: #c2570b; text-decoration: none; }
.site-logo { height: 44px; width: auto; display: block; }
.tatoe-btn-row { text-align: right; margin: 2px 0 14px; }
.meta .author, .score .author { float: right; margin-left: 12px; }
.a-score { text-align: right; }
.site-tagline { font-size: 13px; color: #666; }
.site-nav { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 15px; }
.site-nav a { text-decoration: none; font-weight: bold; }
.head-user { font-size: 13px; color: #555; margin-top: 6px; }
#main { max-width: 880px; margin: 0 auto; padding: 20px 16px 40px; }
.site-footer { text-align: center; color: #888; font-size: 13px; padding: 24px 0 32px; }
.flash { max-width: 880px; margin: 14px auto 0; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.flash-ok { background: #e6f4e6; border: 1px solid #7cb87c; }
.flash-ng { background: #fdecec; border: 1px solid #d98c8c; }
h2 { font-size: 22px; border-left: 6px solid #f0a13c; padding-left: 10px; margin: 28px 0 12px; }
h3 { font-size: 17px; margin: 20px 0 8px; }
.card { background: #fff; border: 1px solid #e3d9c8; border-radius: 8px; padding: 14px 16px; margin: 10px 0; }
.card .meta { font-size: 12px; color: #777; }
.card .text { white-space: pre-wrap; word-break: break-word; margin: 6px 0; }
.cate { display: inline-block; background: #fdf0da; border: 1px solid #f0a13c; color: #8a4d08; border-radius: 10px; padding: 0 8px; font-size: 12px; margin-right: 6px; }
.score { font-size: 13px; color: #555; }
.score .up { color: #1a8a1a; font-weight: bold; }
.score .down { color: #b03a3a; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.admin-nav a { padding: 6px 14px; border: 1px solid #d9c08f; border-radius: 999px; background: #fff; color: #944006; text-decoration: none; font-size: 14px; }
.admin-nav a.admin-nav-active { background: linear-gradient(#f68b1e, #e06f00); color: #fff; border-color: #e06f00; font-weight: bold; }
.field { margin: 12px 0; }
.field label { display: block; font-weight: bold; font-size: 14px; margin-bottom: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select, .field textarea { width: 100%; max-width: 560px; padding: 9px; border: 1px solid #bbb; border-radius: 6px; font-size: 15px; background: #fff; }
.field textarea { min-height: 110px; }
.btn { display: inline-block; background: #e8760d; color: #fff; border: none; border-radius: 6px; padding: 10px 22px; font-size: 15px; font-weight: bold; cursor: pointer; text-decoration: none; }
.btn-sub { background: #fff; color: #c2570b; border: 1px solid #e8760d; }
.btn-small { padding: 5px 12px; font-size: 13px; }
table.rank { width: 100%; border-collapse: collapse; background: #fff; }
table.rank th, table.rank td { border: 1px solid #e3d9c8; padding: 8px 10px; text-align: left; font-size: 14px; }
table.rank th { background: #fdf0da; }
.rank-num { font-weight: bold; color: #c2570b; width: 44px; text-align: center; }
.eval-form { display: inline-block; margin-right: 8px; }
.pan { font-size: 13px; color: #777; margin-bottom: 10px; }
.notice { background: #fff8e8; border: 1px solid #f0a13c; border-radius: 8px; padding: 12px 16px; }
.ad-slot { margin: 20px 0 4px; text-align: center; }
.ad-footer { max-width: 880px; margin: 24px auto 0; padding: 0 8px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ad-footer .ad-slot { margin: 0; }
.btn-danger { background: #c0392b; }
.withdraw-zone { margin-top: 40px; border-top: 1px solid #ddd; padding-top: 16px; }
/* 文字サイズ切替（ヘッダー右下） */
.fs-row { display: flex; justify-content: flex-end; margin-top: 6px; }
.fs-box { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #555; font-weight: normal; }
.fs-btn { border: 1px solid #c9b896; background: #fff; color: #555; border-radius: 4px; padding: 2px 10px; font-size: 13px; cursor: pointer; }
html.fs-s .fs-btn[data-fs="s"], html.fs-m .fs-btn[data-fs="m"], html.fs-l .fs-btn[data-fs="l"] { background: #e8760d; border-color: #e8760d; color: #fff; font-weight: bold; }
html.fs-l body { font-size: 18px; }
html.fs-l h2 { font-size: 25px; }
html.fs-l h3 { font-size: 20px; }
html.fs-l .site-nav { font-size: 17px; }
html.fs-l .card .meta { font-size: 14px; }
html.fs-l .cate { font-size: 14px; }
html.fs-l .score { font-size: 15px; }
html.fs-l .field label { font-size: 16px; }
html.fs-l .field input[type="text"], html.fs-l .field input[type="email"], html.fs-l .field input[type="password"], html.fs-l .field select, html.fs-l .field textarea { font-size: 17px; }
html.fs-l .btn { font-size: 17px; }
html.fs-l .btn-small { font-size: 15px; }
html.fs-l table.rank th, html.fs-l table.rank td { font-size: 16px; }
html.fs-l .pan, html.fs-l .head-user, html.fs-l .site-tagline, html.fs-l .site-footer, html.fs-l .fs-box { font-size: 15px; }
html.fs-l .flash { font-size: 16px; }
html.fs-l .fs-btn { font-size: 15px; }
html.fs-s body { font-size: 14px; }
html.fs-s h2 { font-size: 19px; }
html.fs-s h3 { font-size: 15px; }
html.fs-s .site-nav { font-size: 13px; }
html.fs-s .card .meta { font-size: 11px; }
html.fs-s .cate { font-size: 11px; }
html.fs-s .score { font-size: 12px; }
html.fs-s .field label { font-size: 12px; }
html.fs-s .field input[type="text"], html.fs-s .field input[type="email"], html.fs-s .field input[type="password"], html.fs-s .field select, html.fs-s .field textarea { font-size: 13px; }
html.fs-s .btn { font-size: 13px; }
html.fs-s .btn-small { font-size: 12px; }
html.fs-s table.rank th, html.fs-s table.rank td { font-size: 12px; }
html.fs-s .pan, html.fs-s .head-user, html.fs-s .site-tagline, html.fs-s .site-footer, html.fs-s .fs-box { font-size: 12px; }
html.fs-s .flash { font-size: 12px; }
html.fs-s .fs-btn { font-size: 12px; }

/* スマホ対応（画面幅640px以下） */
@media (max-width: 640px) {
    .header-inner { padding: 10px 12px; }
    .header-top { flex-direction: column; gap: 8px; }
    .header-account { text-align: left; }
    .site-logo { height: 36px; }
    .site-tagline { font-size: 12px; }
    .site-nav { gap: 10px 14px; font-size: 14px; }
    .fs-box { margin-left: 0; flex-basis: 100%; justify-content: flex-end; }
    #main { padding: 14px 12px 32px; }
    .flash { margin: 12px 12px 0; }
    h2 { font-size: 20px; margin: 22px 0 10px; }
    .card { padding: 12px; }
    .meta .author, .score .author { float: none; display: block; margin: 0 0 2px; }
    .a-score { text-align: left; }
    /* 表は横スクロールで表示 */
    table.rank { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.rank th, table.rank td { white-space: nowrap; padding: 7px 8px; }
    table.rank td:nth-child(2) { white-space: normal; min-width: 120px; }
    /* 入力欄は16pxにしてiPhoneの自動ズームを防ぐ */
    .field input[type="text"], .field input[type="email"], .field input[type="password"], .field select, .field textarea,
    html.fs-s .field input[type="text"], html.fs-s .field input[type="email"], html.fs-s .field input[type="password"], html.fs-s .field select, html.fs-s .field textarea { font-size: 16px; max-width: 100%; }
    .btn { padding: 12px 22px; }
    .btn-small { padding: 8px 12px; }
    .eval-form { margin-bottom: 6px; }
    .ad-slot { overflow: hidden; }
    .ad-slot img, .ad-slot iframe, .ad-slot ins { max-width: 100%; }
    .pan { font-size: 12px; }
}

/* mixi風テーマ（2026-11-30）：温かいオレンジ基調・丸みのある部品・黄色味の背景。
   レイアウトや文言は独自のまま、雰囲気だけ寄せている */
body { background: #fcf4e0; color: #0d0d0d; }
a { color: #944006; }
.card .meta { color: #454545; }
.score { color: #2e2e2e; }
.score .up { color: #146c14; }
.score .down { color: #9c2f2f; }
.pan { color: #454545; }
.site-tagline { color: #4d4d4d; }
.head-user { color: #3d3d3d; }
.rank-num { color: #944006; }
.site-header { border-bottom: 3px solid #ffd9a0; }
.site-nav { background: linear-gradient(#f68b1e, #e06f00); border-radius: 12px; padding: 10px 16px; box-shadow: 0 2px 4px rgba(190, 120, 20, .18); align-items: center; }
.site-nav a { color: #fff; text-shadow: 0 1px 1px rgba(160, 90, 0, .35); background: linear-gradient(#ffb84d, #f68b1e); border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 6px 16px; box-shadow: 0 2px 0 rgba(146, 78, 0, .45); }
.site-nav a:hover { text-decoration: none; filter: brightness(1.07); }
.site-nav a:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(146, 78, 0, .45); }
.site-nav a.nav-active { background: linear-gradient(#e06f00, #c75f00); box-shadow: inset 0 2px 4px rgba(120, 60, 0, .55); }
.site-nav .fs-box { color: #fff; }
.site-nav .fs-btn { background: transparent; border: 1px solid rgba(255, 255, 255, .85); color: #fff; border-radius: 999px; }
html.fs-s .site-nav .fs-btn[data-fs="s"], html.fs-m .site-nav .fs-btn[data-fs="m"], html.fs-l .site-nav .fs-btn[data-fs="l"] { background: #fff; border-color: #fff; color: #d96a00; }
h2 { background: linear-gradient(#f68b1e, #e06f00); color: #fff; border-left: none; border-radius: 10px; padding: 8px 14px; font-size: 20px; box-shadow: 0 2px 3px rgba(190, 120, 20, .15); text-shadow: 0 1px 1px rgba(140, 75, 0, .35); }
h3 { color: #9a4f04; border-bottom: 2px dotted #f0c078; padding-bottom: 4px; }
.card { border-radius: 14px; border-color: #eed9ae; box-shadow: 0 1px 4px rgba(190, 130, 40, .10); }
.a-sep { border: none; border-top: 3px dotted #e8a54b; margin: 22px 12px; }
.card { position: relative; }
.admin-del { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; }
.admin-del .btn { padding: 2px 10px; font-size: 12px; }
.btn { background: linear-gradient(#f68b1e, #e06f00); border-radius: 999px; box-shadow: 0 2px 0 #a85400; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #a85400; }
.btn-sub { background: #fff; border: 2px solid #e06f00; box-shadow: none; color: #c26100; }
.btn-danger { background: linear-gradient(#d9534f, #c0392b); box-shadow: 0 2px 0 #8e2a20; }
.cate { border-radius: 999px; background: #fff3d6; color: #7a3f04; }
table.rank th { background: #ffe9bf; }
table.rank tr:hover td { background: #fffaf0; }
.notice { border-radius: 12px; background: #fff6da; }
.flash { border-radius: 10px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select, .field textarea { border-radius: 10px; border-color: #d9c08f; }
.field input[type="text"]:focus, .field input[type="email"]:focus, .field input[type="password"]:focus, .field select:focus, .field textarea:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); outline: none; }
.site-footer { background: #fdf0da; border-top: 3px solid #f0a13c; color: #6e5626; margin-top: 24px; }
.site-footer a { color: #9a4f04; }
@media (max-width: 640px) {
    .site-nav { padding: 8px 12px; border-radius: 10px; }
    h2 { padding: 7px 12px; }
}
/* ボタン内では改行しない／管理画面の表はコンパクト表示 */
.btn { white-space: nowrap; }
table.admin-table th, table.admin-table td { white-space: nowrap; padding: 5px 8px; font-size: 13px; }
table.admin-table td form { display: inline-block; margin: 0 2px 2px 0; vertical-align: middle; }
table.admin-table input[type="text"] { font-size: 13px; }
/* NGパターン管理：入力欄をセルの幅いっぱいにし、操作列はボタン幅に固定 */
table.ng-table { table-layout: fixed; width: 100%; }
table.ng-table th.ng-op, table.ng-table td.ng-op { width: 76px; }
table.admin-table td form.ng-edit { display: flex; align-items: center; gap: 6px; margin: 0; }
table.ng-table td form.ng-edit input[type="text"] { flex: 1; min-width: 0; width: 100%; }
.eval-form.ng-add { display: flex; align-items: center; gap: 8px; margin-right: 0; }
.eval-form.ng-add input[type="text"] { flex: 1; min-width: 0; }
/* カテゴリ管理：名前欄を広く、表示順・数値・操作の各列は必要な幅に固定 */
table.cate-table { table-layout: fixed; width: 100%; }
table.cate-table th.c-sort { width: 150px; }
table.cate-table th.c-num, table.cate-table td.c-num { width: 56px; text-align: center; }
table.cate-table th.c-op { width: 76px; }
table.admin-table td form.cate-edit { display: flex; align-items: center; gap: 6px; margin: 0; }
table.cate-table td form.cate-edit input[type="text"] { flex: 1; min-width: 0; width: 100%; }
table.admin-table td form.cate-sort { display: flex; align-items: center; gap: 6px; margin: 0; }
.eval-form.cate-add { display: flex; align-items: center; gap: 8px; margin-right: 0; }
.eval-form.cate-add input[type="text"] { flex: 1; min-width: 0; }
/* 会員管理：各列の幅を固定して、表全体を本文の幅（枠内）に収める */
table.member-table { table-layout: fixed; width: 100%; }
table.member-table th.m-id { width: 36px; }
table.member-table th.m-mail { width: 160px; }
table.member-table th.m-login, table.member-table td.m-login { width: 56px; text-align: center; }
table.member-table th.m-date { width: 92px; }
table.member-table th.m-num, table.member-table td.m-num { width: 38px; text-align: center; }
table.member-table th.m-good, table.member-table td.m-good { width: 56px; text-align: center; }
table.member-table th.m-state, table.member-table td.m-state { width: 46px; text-align: center; }
table.member-table th.m-op { width: 136px; }
table.member-table td.m-name { white-space: normal; }
table.member-table td.m-mail { white-space: normal; word-break: break-all; }
table.member-table td.m-date { white-space: normal; }
table.member-table td.m-op { white-space: normal; }
table.member-table td.m-op .btn { font-size: 12px; padding: 3px 7px; }
.lv-badge { display: inline-block; background: #fdf0da; border: 1px solid #d9c08f; color: #944006; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
@media (max-width: 900px) {
    table.admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* フッター：左にリンク、右端にコピーライト */
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; text-align: left; padding-left: 16px; padding-right: 16px; max-width: 880px; margin-left: auto; margin-right: auto; }
.foot-links a { margin-right: 18px; }
.foot-copy { margin-left: auto; }
@media (max-width: 640px) {
    .site-footer { justify-content: center; text-align: center; }
    .foot-copy { margin-left: 0; }
}
/* 質問一覧の絞り込みフォーム：並び順は右端へ */
.q-filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.q-filter-right { margin-left: auto; }
/* メッセージ */
.msg-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #d43d2a; color: #fff; font-size: 11px; font-weight: bold; text-align: center; }
.msg-row { display: flex; margin: 8px 0; }
.msg-bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid #e3d3ac; }
.msg-mine { justify-content: flex-end; }
.msg-mine .msg-bubble { background: #ffe9c4; border-color: #e8a54b; }
.msg-meta { font-size: 11px; color: #454545; margin-top: 2px; }
.msg-del { margin-top: 6px; }
.conv-del { margin-top: 8px; }
.msg-unread { color: #d43d2a; font-weight: bold; font-size: 12px; }
/* 一覧のページ送り */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.pager a, .pager-cur { padding: 5px 12px; border: 1px solid #d9c08f; border-radius: 999px; background: #fff; color: #944006; text-decoration: none; font-size: 14px; }
.pager-cur { background: linear-gradient(#f68b1e, #e06f00); color: #fff; border-color: #e06f00; font-weight: bold; }
