/* ========== コンテンツページ専用スタイル ========== */

.content-body {
    background: #0e0e0e;
}

img {
  max-width: 100% !important; /* 親要素の幅を超えない */
  height: auto;    /* 比率を維持 */
}


/* ========== メイン ========== */
.content-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 24px 120px;
}

/* ========== 記事 ========== */
.content-article {
    position: relative;
}

/* ========== ヘッダー ========== */
.content-header {
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid #222;
}

.content-eyebrow {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 3px;
    color: #888;
    margin: 0 0 16px;
}

.content-title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 900;
    color: #eeeeee;
    letter-spacing: 2px;
    margin: 0 0 16px;
    line-height: 1.2;
}

.content-date {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    color: #777;
    margin: 0;
}

/* ========== 本文 ========== */
.content-body-text {
    color: #999;
    font-size: 1.1rem;
    line-height: 1.9;
}

.content-body-text h2 {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    margin: 48px 0 16px;
    padding-left: 12px;
    border-left: 3px solid #444;
}

.content-body-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    letter-spacing: 1px;
    margin: 32px 0 12px;
    font-family: monospace;
    text-transform: uppercase;
}

.content-body-text p {
    margin: 0 0 20px;
    color: #ddd;
}

.content-body-text a {
    color: #00ffcc;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,255,204,0.3);
    transition: border-color 0.2s, color 0.2s;
}
.content-body-text a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.content-body-text ul,
.content-body-text ol {
    padding-left: 20px;
    margin: 0 0 20px;
    color: #888;
}

.content-body-text li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.content-body-text strong {
    color: #ccc;
    font-weight: 700;
}

.content-body-text hr {
    border: none;
    border-top: 1px dashed #333;
    margin: 40px 0;
}

/* テーブル（特定商取引法など） */
.content-body-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.content-body-text th,
.content-body-text td {
    padding: 12px 16px;
    border-bottom: 1px solid #222;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}

.content-body-text th {
    color: #555;
    font-weight: normal;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    width: 35%;
    white-space: nowrap;
}

.content-body-text td {
    color: #888;
}

/* ========== ドネーションページ用 ========== */
.donation-block {
    display: block;
    margin: 32px 0;
    padding: 24px;
    border: 1px solid #222;
    border-radius: 12px;
    background: #1a1a1a;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}
.donation-block:hover {
    border-color: #00ffcc;
    background: #1a2a28;
}
.donation-block-label {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 8px;
}
.donation-block-name {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}
.donation-block-desc {
    font-size: 13px;
    color: #666;
}

/* ========== コンタクトフォーム用 ========== */
.content-body-text input[type="text"],
.content-body-text input[type="email"],
.content-body-text textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ccc;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.content-body-text input:focus,
.content-body-text textarea:focus {
    outline: none;
    border-color: #00ffcc;
}
.content-body-text input[type="submit"] {
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 10px 32px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: monospace;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
    width: auto;
}
.content-body-text input[type="submit"]:hover {
    background: #00ffcc;
    color: #111;
}

/* ========== スマホ ========== */
@media (max-width: 599px) {
    .content-main {
        padding: 88px 16px 100px;
    }
    .content-body-text th {
        width: 40%;
        font-size: 10px;
    }
}

/* ========== Contact Form 7 スタイル上書き ========== */

/* フィールドのラップ */
.cf7-field {
    margin-bottom: 48px;
}

/* ラベル */
.wpcf7 label,
.cf7-field label {
    display: block;
    font-size: 14px;
    font-family: monospace;
    letter-spacing: 2px;
    color: #ccc;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.required {
    color: #00ffcc;
    margin-left: 3px;
}

/* 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ccc;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: #00ffcc;
}

.wpcf7 textarea {
    min-height: 160px;
    resize: vertical;
}

/* セレクト */
.wpcf7 select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 10px 36px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    width: auto;
    appearance: none;
    -webkit-appearance: none;
}

.wpcf7 input[type="submit"]:hover {
    background: #00ffcc;
    color: #111;
}

/* 送信中・完了メッセージ */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
    letter-spacing: 1px;
    border: none !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background: rgba(0, 255, 204, 0.08);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.3) !important;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng {
    background: rgba(255, 69, 0, 0.08);
    color: #ff6b4a;
    border: 1px solid rgba(255, 69, 0, 0.3) !important;
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
    font-size: 11px;
    font-family: monospace;
    color: #ff6b4a;
    margin-top: 4px;
    display: block;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #ff6b4a;
}


/* ========== コンテンツページ専用スタイル ========== */

.content-body {
    background: #0e0e0e;
}

/* ========== メイン ========== */
.content-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 24px 120px;
}

/* ========== 記事 ========== */
.content-article {
    position: relative;
}

/* ========== ヘッダー ========== */
.content-header {
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid #222;
}

.content-eyebrow {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 3px;
    color: #888;
    margin: 0 0 16px;
}

.content-title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 900;
    color: #eeeeee;
    letter-spacing: 2px;
    margin: 0 0 16px;
    line-height: 1.2;
}

.content-date {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    color: #777;
    margin: 0;
}

/* ========== 本文 ========== */
.content-body-text {
    color: #999;
    font-size: 15px;
    line-height: 1.9;
}

.content-body-text h2 {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    margin: 48px 0 16px;
    padding-left: 12px;
    border-left: 3px solid #444;
}

.content-body-text h3 {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    letter-spacing: 1px;
    margin: 32px 0 12px;
    font-family: monospace;
    text-transform: uppercase;
}

.content-body-text p {
    margin: 0 0 20px;
    color: #ddd;
}

.content-body-text a {
    color: #00ffcc;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,255,204,0.3);
    transition: border-color 0.2s, color 0.2s;
}
.content-body-text a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.content-body-text ul,
.content-body-text ol {
    padding-left: 20px;
    margin: 0 0 20px;
    color: #888;
}

.content-body-text li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.content-body-text strong {
    color: #ccc;
    font-weight: 700;
}

.content-body-text hr {
    border: none;
    border-top: 1px dashed #333;
    margin: 40px 0;
}

/* テーブル（特定商取引法など） */
.content-body-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.content-body-text th,
.content-body-text td {
    padding: 12px 16px;
    border-bottom: 1px solid #222;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}

.content-body-text th {
    color: #555;
    font-weight: normal;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 1px;
    width: 35%;
    white-space: nowrap;
}

.content-body-text td {
    color: #888;
}

/* ========== ドネーションページ用 ========== */
.donation-block {
    display: block;
    margin: 32px 0;
    padding: 24px;
    border: 1px solid #222;
    border-radius: 12px;
    background: #1a1a1a;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}
.donation-block:hover {
    border-color: #00ffcc;
    background: #1a2a28;
}
.donation-block-label {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 8px;
}
.donation-block-name {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}
.donation-block-desc {
    font-size: 13px;
    color: #666;
}

/* ========== コンタクトフォーム用 ========== */
.content-body-text input[type="text"],
.content-body-text input[type="email"],
.content-body-text textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ccc;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.content-body-text input:focus,
.content-body-text textarea:focus {
    outline: none;
    border-color: #00ffcc;
}
.content-body-text input[type="submit"] {
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 10px 32px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-family: monospace;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
    width: auto;
}
.content-body-text input[type="submit"]:hover {
    background: #00ffcc;
    color: #111;
}

/* ========== スマホ ========== */
@media (max-width: 599px) {
    .content-main {
        padding: 88px 16px 100px;
    }
    .content-body-text th {
        width: 40%;
        font-size: 10px;
    }
}

/* ========== Contact Form 7 スタイル上書き ========== */

/* フィールドのラップ */
.cf7-field {
    margin-bottom: 48px;
}

/* ラベル */
.wpcf7 label,
.cf7-field label {
    display: block;
    font-size: 14px;
    font-family: monospace;
    letter-spacing: 2px;
    color: #ccc;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.required {
    color: #00ffcc;
    margin-left: 3px;
}

/* 入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ccc;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: #00ffcc;
}

.wpcf7 textarea {
    min-height: 160px;
    resize: vertical;
}

/* セレクト */
.wpcf7 select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 10px 36px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-family: monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    width: auto;
    appearance: none;
    -webkit-appearance: none;
}

.wpcf7 input[type="submit"]:hover {
    background: #00ffcc;
    color: #111;
}

/* 送信中・完了メッセージ */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
    letter-spacing: 1px;
    border: none !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background: rgba(0, 255, 204, 0.08);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.3) !important;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng {
    background: rgba(255, 69, 0, 0.08);
    color: #ff6b4a;
    border: 1px solid rgba(255, 69, 0, 0.3) !important;
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
    font-size: 11px;
    font-family: monospace;
    color: #ff6b4a;
    margin-top: 4px;
    display: block;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #ff6b4a;
}


/* ========== single.php 2カラム ========== */
.single-main {
    padding-top: 80px;
    padding-bottom: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.single-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}
.single-content {
    min-width: 0;
}

/* ========== サイドバー ========== */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.sidebar-block {
    padding: 20px;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    background: #111;
}
.sidebar-label {
    font-size: 9px;
    font-family: monospace;
    letter-spacing: 3px;
    color: #444;
    margin: 0 0 14px;
    text-transform: uppercase;
}

/* 追従バナー */
.sidebar-sticky {
    position: sticky;
    top: 76px;
}
.sidebar-banner-slot {
    margin-bottom: 12px;
    text-align: center;
}
.sidebar-banner-slot:last-child { margin-bottom: 0; }

/* カテゴリーリスト */
.sidebar-cat-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    color: #777;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #1a1a1a;
    transition: color 0.2s;
}
.sidebar-cat-link:hover { color: #fff; }
.sidebar-cat-count {
    font-size: 10px;
    font-family: monospace;
    color: #333;
}

/* 新着記事 */
.sidebar-recent-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-recent-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    transition: opacity 0.2s;
}
.sidebar-recent-link:hover { opacity: 0.7; }
.sidebar-recent-date {
    font-size: 10px;
    font-family: monospace;
    color: #333;
    letter-spacing: 1px;
}
.sidebar-recent-title {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

/* シェアボタン */
.sidebar-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sidebar-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #666;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sidebar-share-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ギャラリーに戻るリンク */
.gallery-back-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    font-family: monospace;
    letter-spacing: 1px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.gallery-back-link:hover { color: #00ffcc; }

/* カテゴリータグ */
.content-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.content-cat-tag {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 1px;
    padding: 3px 10px;
    border: 1px solid #333;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.content-cat-tag:hover { color: #fff; border-color: #fff; }

/* 前後記事ナビ */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px dashed #2a2a2a;
}
.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    max-width: 45%;
}
.post-nav-item.next { text-align: right; margin-left: auto; }
.post-nav-label {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    color: #555;
}
.post-nav-title {
    font-size: 13px;
    color: #aaa;
    transition: color 0.2s;
}
.post-nav-item:hover .post-nav-title { color: #fff; }

/* ========== category.php ========== */
.cat-post-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cat-post-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
    text-decoration: none;
    transition: opacity 0.2s;
    align-items: start;
}
.cat-post-item:hover { opacity: 0.7; }
.cat-post-thumb {
    width: 160px; height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
    flex-shrink: 0;
}
.cat-post-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cat-post-thumb-placeholder {
    width: 100%; height: 100%;
    background: #1e1e1e;
}
.cat-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.cat-post-date {
    font-size: 10px;
    font-family: monospace;
    color: #777;
    letter-spacing: 1px;
}
.cat-post-title {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    margin: 0;
    line-height: 1.4;
}
.cat-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.cat-pagination a,
.cat-pagination span {
    font-size: 12px;
    font-family: monospace;
    color: #666;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
}
.cat-pagination a:hover { color: #fff; border-color: #fff; }
.cat-pagination .current { color: #00ffcc; border-color: #00ffcc; }

.sidebar-sublabel {
    font-size: 9px;
    font-family: monospace;
    letter-spacing: 2px;
    color: #333;
    margin: 0 0 8px;
    text-transform: uppercase;
}

/* ========== スマホ（1カラム） ========== */
@media (max-width: 767px) {
    .single-wrapper {
        grid-template-columns: 1fr;
    }
    .single-sidebar {
        order: 2; /* スマホではサイドバーを下に */
    }
    .sidebar-sticky {
        position: static;
    }
    .single-main {
        padding-left: 12px;
        padding-right: 12px;
    }
}
