/*!
Theme Name: jigohyouka
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: jigohyouka
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

*/


/*------------------------------ 
content (main)
---------------------------- */
.main-container {
    max-width: 1230px;
    padding: 50px 15px;
    margin: 0 auto;
    column-gap: 30px;
}

.content-with-sidebar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
}

/* 該当のクラスよりも下に書くこと */
@media (max-width: 960px) {
    .content-with-sidebar {
        flex-direction: column;
    }
}

/* 埋め込みのyoutube動画の位置調整 */
.wp-block-embed {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /* youtube埋め込み用 */
    /* aspect-ratio: 16 / 9; */
}

.wp-block-embed-x {
    min-height: 400px;
    background: #f3f3f3;
    border-radius: 8px;
}

.wp-block-embed-twitter{
    min-height: 400px;
    background: #f3f3f3;
    border-radius: 8px;
}

.wp-element-caption,
.wp-caption-text {
    margin-top: .5rem;
    font-size: .875rem;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

/* ----------------------------
    サイトToPボタン
--------------------------------- */
.back-to-top {
    background-color: #ddd;
    padding: 0 3px 0 3px;
    opacity: 0;
    position: fixed;
    bottom: 10px;
    right: 30px;
    transition: .3s;
}

.back-to-top.is-visible {
    opacity: 1;
}

/*------------------------------ 
ベーススタイル
---------------------------- */
body {
    background-color: #f0f0f0;
    color: #222;
    line-height: 1.5;
    font-family: 'Dela Gothic One', 'Shippori Mincho B1', serif;
}

a {
    color: #222;
    text-decoration: none;
}

a:hover {
    color: #0069ff;
}

img {
    max-width: 100%;
    vertical-align: top;
}

.my-page p {
    margin-bottom: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
    margin: 2em 0 1em;
    font-weight: bold;
}

h1 { font-size: 2.0rem; }
h2 { font-size: 1.7rem; border-bottom: 2px solid #333; padding-bottom: 0.3em; }
h3 { font-size: 1.4rem; border-bottom: 1px solid #ddd; padding-bottom: 0.2em; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1.0rem; color: #666; }

/* 「.contentの中にある ul か ol」という意味 */
.content :is(ul, ol) {
    margin: 1.5em 0;
    padding-left: 2.5em;
    line-height: 1.5;
}

.content li {
    margin-bottom: 0.8em; /* 項目ごとの隙間 */
    color: #333;          /* 文字色を少し柔らかく */
}

/* --- 4. 引用 (Quotes) --- */
blockquote {
    margin: 2em 0;
    padding: 1em 1.5em;
    background: #f9f9f9;
    border-left: 5px solid #ccc;
    color: #555;
}

blockquote cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.9rem;
    color: #888;
    text-align: right;
}

/* 短い引用 */
q {
    font-style: italic;
    color: #666;
}

/* --- 5. テーブル (Tables) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

thead th {
    background-color: #f2f2f2;
}

tbody th {
    background-color: #fafafa;
}

/* --- 6. コード・整形済みテキスト (Code) --- */
/* 文章中のコード */
code, kbd, var {
    font-family: monospace;
    background: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* キーボード入力 */
kbd {
    background: #333;
    color: #fff;
    box-shadow: 0 2px 0 #000;
}

/* コードブロック */
pre {
    background: #2d2d2d;
    color: #ccc;
    padding: 1.5em;
    overflow: auto;
    border-radius: 5px;
    line-height: 1.5;
    margin: 2em 0;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* --- 7. インライン要素 (Inline) --- */
strong {
    font-weight: bold;
}

em {
    font-style: italic;
    color: #e67e22; /* 少し色を変えると目立ちます */
}

del {
    color: #999;
    text-decoration: line-through;
}

ins {
    background-color: #fff9c4;
    text-decoration: none;
    border-bottom: 1px solid #fbc02d;
}

abbr[title] {
    cursor: help;
    border-bottom: 1px dotted #333;
}

sub, sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

/* 住所 */
address {
    font-style: normal;
    background: #fdfdfd;
    padding: 1em;
    border: 1px solid #eee;
    margin: 1.5em 0;
}

/* 回り込みを解除する設定（記事の最後などで崩れないように） */
p::after {
    content: "";
    display: block;
    clear: both;
}

/* --- キャプション（枠）の設定 --- */
.wp-caption {
    max-width: 100%; /* キャプション枠も突き抜け防止 */
    background: #f3f3f3;
    padding: 5px;
    border: 1px solid #ddd;
    text-align: center;
    margin-bottom: 1.5em;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0;
}

/* =========================
   コメント一覧
========================= */

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* コメント1件 */

.comment {
    margin-bottom: 20px;
}

/* コメント本体 */

.comment-body {
    padding: 12px 0;
}

/* =========================
   ヘッダー
========================= */

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* アバター */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ユーザー名 */

.comment-author .fn {
    font-weight: 700;
    font-style: normal;
}

.comment-author .says {
    display: none;
}

/* 投稿日時 */

.comment-metadata {
    font-size: 12px;
    color: #777;
}

.comment-metadata a {
    color: #777;
    text-decoration: none;
}

/* =========================
   コメント本文
========================= */

.comment-content {
    margin-left: 50px;
    margin-top: 6px;
}

.comment-content p {
    margin: 0;
    line-height: 1.7;

    /* 長文対策 */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* =========================
   返信リンク
========================= */

.reply {
    margin-left: 50px;
    margin-top: 8px;
}

.reply a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.reply a:hover {
    text-decoration: underline;
}

/* =========================
   返信コメント
========================= */

.depth-2,
.depth-3,
.depth-4,
.depth-5 {
    margin-left: 20px;
    padding-left: 14px;
    border-left: 2px solid #e5e7eb;
}

/* =========================
   コメント数タイトル
========================= */

.comments-title {
    font-size: 24px;
    margin-bottom: 24px;
}

/* =========================
   コメントフォーム
========================= */

.comment-respond {
    margin-top: 40px;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    resize: vertical;
    box-sizing: border-box;
}

.comment-form input[type="submit"] {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    opacity: 0.9;
}