@charset "UTF-8";

/* 色を変えたいときは、まず下の色変数を変更してください。 */
:root {
  --navy: #102f43;
  --navy-deep: #081d2a;
  --sea: #187a8d;
  --gold: #c69a45;
  --paper: #fffdf8;
  --mist: #edf3f4;
  --ink: #24323a;
  --muted: #66777f;
  --line: #d8e1e2;
  --shadow: 0 12px 32px rgba(12, 43, 58, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(rgba(237, 243, 244, 0.93), rgba(247, 245, 238, 0.96)), repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(16, 47, 67, 0.04) 24px);
  font-family: "Noto Sans JP", "Noto Sans", system-ui, sans-serif;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--sea); text-decoration-color: rgba(24, 122, 141, 0.32); text-underline-offset: 0.2em; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
a:visited { color: #536b78; }
a:hover { color: #a16e17; }
a:focus-visible { outline: 3px solid #f0c76f; outline-offset: 3px; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--navy-deep); transform: translateY(-150%); }
.skip-link:focus { color: #fff; transform: translateY(0); }

/* ヘッダー：元の大海戦画像を利用しています。 */
.site-hero { position: relative; min-height: clamp(300px, 42vw, 520px); display: grid; place-items: end start; overflow: hidden; color: #fff; background: var(--navy-deep); }
.site-hero-image, .site-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-hero-image { object-fit: cover; object-position: center 42%; }
.site-hero-shade { background: linear-gradient(90deg, rgba(5, 22, 33, .88) 0%, rgba(5, 22, 33, .44) 54%, rgba(5, 22, 33, .08) 100%), linear-gradient(0deg, rgba(5, 22, 33, .62) 0%, transparent 62%); }
.site-hero-content { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; padding: clamp(32px, 6vw, 76px) clamp(20px, 5vw, 64px); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.site-kicker, .journal-kicker { margin: 0 0 8px; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: .75rem; font-weight: 700; letter-spacing: .22em; }
.site-title { max-width: 800px; margin: 0; font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2rem, 5vw, 4rem); font-weight: 600; letter-spacing: .02em; line-height: 1.22; }
.site-title a, .site-title a:visited { color: #fff; text-decoration: none; }
.site-title a:hover { color: #f6d895; }
.sub-site-title { max-width: 640px; margin: 14px 0 0; color: rgba(255, 255, 255, .88); font-size: clamp(.9rem, 2vw, 1.06rem); }

/* 2列レイアウト。画面上は記事を左、サイドバーを右にします。 */
.container { width: min(1180px, calc(100% - 40px)); margin: clamp(28px, 5vw, 64px) auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(24px, 4vw, 52px); align-items: start; }
main { grid-column: 1; grid-row: 1; min-width: 0; }
aside { grid-column: 2; grid-row: 1; min-width: 0; }
.journal-heading { margin: 0 0 24px; }
.journal-heading .journal-title { margin: 0; color: var(--navy); font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 600; }

/* 記事カード */
.entry-card { position: relative; margin: 0 0 32px; padding: clamp(24px, 4vw, 46px); background: var(--paper); border: 1px solid rgba(16, 47, 67, .1); border-radius: 5px; box-shadow: var(--shadow); }
.entry-card::before { content: ""; position: absolute; top: 0; left: clamp(24px, 4vw, 46px); width: 76px; height: 4px; background: var(--gold); }
.entry-date { display: block; margin: 0 0 12px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: .82rem; font-weight: 700; letter-spacing: .08em; }
.entry-title { margin: 0 0 28px; color: var(--navy); font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.35rem, 2.8vw, 2rem); font-weight: 600; line-height: 1.45; }
.entry-title a, .entry-title a:visited { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--sea); }
.entry-body { font-size: 1rem; line-height: 1.9; }
.entry-body p { margin: 0 0 1.4em; }
.entry-body h2, .entry-body h3, .entry-body h4 { margin: 2em 0 .8em; color: var(--navy); line-height: 1.45; }
.entry-body h2 { padding-bottom: .5em; border-bottom: 2px solid var(--gold); font-size: 1.45rem; }
.entry-body h3 { padding-left: .75em; border-left: 4px solid var(--sea); font-size: 1.22rem; }
.entry-body img:not(.emoji) { display: block; margin: 24px auto; border-radius: 3px; box-shadow: 0 6px 22px rgba(12, 43, 58, .14); }
.entry-body iframe { display: block; width: 100%; max-width: 100%; margin: 24px auto; aspect-ratio: 16 / 9; height: auto; border: 0; }
.entry-body ul, .entry-body ol { padding-left: 1.5em; }
blockquote { margin: 1.8em 0; padding: 18px 22px; color: #4c5d64; background: var(--mist); border-left: 5px solid var(--gold); }
blockquote p:last-child { margin-bottom: 0; }
.ranking-banner { display: inline-block; margin-top: 12px; }
.ranking-banner img { margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tags:not(:has(.tag)) { display: none; }
.tag { font-size: .9rem; }
.tag a { display: inline-block; margin: 0; padding: 3px 9px; color: #52676f; background: var(--mist); border-radius: 999px; text-decoration: none; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0 12px; margin: 0; color: var(--muted); font-size: .85rem; }
.read-more { margin: 1rem 0 0; text-align: right; }
.read-more a, .read-more a:visited { display: inline-block; padding: 9px 16px; color: #fff; background: var(--navy); border-radius: 3px; font-size: .9rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.read-more a:hover { color: #fff; background: var(--sea); }
img.emoji { display: inline; margin: 0 1px; padding: 0; vertical-align: middle; background: transparent; border: 0; box-shadow: none; }
/* 要約はFC2が入れた改行を活かし、行数を抑えてカードの高さを揃えます。 */
.entry-summary { margin-top: 1rem; line-height: 1.8; font-size: .95rem; color: #444; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.entry-more {
  margin-top: 1.5rem;
}

/* サイドバー */
.sidebar-card { margin: 0 0 18px; padding: 22px; background: rgba(255, 253, 248, .86); border: 1px solid rgba(16, 47, 67, .1); border-top: 3px solid var(--navy); border-radius: 4px; box-shadow: 0 8px 24px rgba(12, 43, 58, .06); }
.sidebar-heading, .sidebar_title { margin: 0 0 16px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: .93rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-card p, .sidebar-card li, .sidebar_contents { font-size: .9rem; line-height: 1.75; }
.sidebar-card ul { margin: 0; padding: 0; list-style: none; }
.sidebar-card li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.sidebar-card li:last-child { padding-bottom: 0; border-bottom: 0; }
.sidebar-card li a { font-weight: 500; text-decoration: none; }
.profile-body { font-size: .9rem; line-height: 1.75; }
.profile-image { display: block; width: 100%; max-width: 180px; margin: 4px auto 14px; border: 5px solid #fff; box-shadow: 0 4px 14px rgba(12, 43, 58, .14); }
.profile-body img[width="20"] { width: 20px; margin-right: 4px; vertical-align: middle; }
.profile-youtube {
  margin-top: 1rem;
}
.profile-youtube a {
  display: block;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  transition: 0.2s;
}
.profile-youtube a:hover {
  transform: translateY(-1px);
  opacity: 0.75;
}

/* ページ移動・コメント・フォーム */
.pageselect { margin: 30px 0; display: flex; justify-content: center; gap: 12px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.pageselect a { display: inline-block; padding: 10px 18px; color: #fff; background: var(--navy); border-radius: 3px; text-decoration: none; }
div.comment { margin: 24px 0; padding: clamp(20px, 4vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); }
.entry_title h3 { margin: 0 0 12px; color: var(--navy); }
.entry_title .comment-name { font-size: 1rem; }
.commentbody { font-size: .94rem; }
.entry_state { color: var(--muted); font-size: .9rem; }
input, textarea { max-width: 100%; padding: 9px 10px; color: var(--ink); background: #fff; border: 1px solid #b8c6ca; border-radius: 3px; font: inherit; }
textarea { width: 100%; }
input.serb { margin-top: 10px; padding: 9px 18px; color: #fff; background: var(--navy); border-color: var(--navy); font-weight: 700; cursor: pointer; }
fieldset { min-width: 0; border: 0; padding: 0; }

footer { padding: 34px 20px; color: rgba(255, 255, 255, .7); background: var(--navy-deep); font-size: .75rem; line-height: 1.65; text-align: center; }
footer p { margin: 4px 0; }
footer a, footer a:visited { color: #d9bb7a; }

/* タブレット */
@media (max-width: 820px) {
  .container { width: min(100% - 28px, 720px); grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  main, aside { grid-column: 1; }
  main { grid-row: 1; }
  aside { grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sidebar-card { margin: 0; }
  .profile-card { grid-row: span 2; }
}

/* スマートフォン */
@media (max-width: 560px) {
  .site-hero { min-height: 310px; }
  .site-hero-shade { background: linear-gradient(0deg, rgba(5, 22, 33, .9) 0%, rgba(5, 22, 33, .25) 100%); }
  .site-hero-content { padding: 28px 20px; }
  .container { width: min(100% - 20px, 520px); }
  .entry-card { margin-bottom: 20px; padding: 25px 20px; }
  .entry-card::before { left: 20px; }
  .entry-body { font-size: .95rem; line-height: 1.85; }
  aside { display: block; }
  .sidebar-card { margin-bottom: 14px; }
  .profile-image { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 明示した動作用プラグインだけを非表示。見出しや説明があれば表示します。 */
.plugin-description:empty, .plugin-card .sidebar-heading:empty { display: none; }
.sidebar-content, .plugin-content { min-width: 0; font-size: .9rem; line-height: 1.75; }
.sidebar-content iframe, .plugin-content iframe { width: 100%; max-width: 100%; }
.site-archives summary { cursor: pointer; color: var(--sea); padding: 8px 0; }
.site-archives details + details { border-top: 1px solid var(--line); }
.site-archives ul { padding-left: 12px; }
.site-tags { overflow-wrap: anywhere; }
.site-tags a { display: inline-block; margin: 3px; padding: 3px 9px; color: #52676f; background: var(--mist); border-radius: 999px; text-decoration: none; }
#LC_LNK .child_name, #LC_LNK .parent { overflow-wrap: anywhere; }
#LC_LNK .indent { white-space: normal; }
.subscription-preview { min-height: 40px; display: grid; place-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--mist); }
.pictlayer-dialog { max-width: 96vw; max-height: 96vh; padding: 12px; border: 0; border-radius: 5px; background: var(--navy-deep); color: white; }
.pictlayer-dialog::backdrop { background: rgb(0 0 0 / .8); }
.pictlayer-dialog img { display: block; width: auto; height: auto; max-width: calc(96vw - 24px); max-height: calc(96vh - 80px); object-fit: contain; }
.pictlayer-close { display: block; margin: 0 0 10px auto; padding: 6px 12px; cursor: pointer; }

/* 読む・探す・投稿する導線 */
.site-hero-compact { min-height: 180px; }
.site-hero-compact .site-hero-content { padding-top: 24px; padding-bottom: 24px; }
.site-hero-compact .site-title { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.site-hero-compact .site-kicker { display: none; }
.reading-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 24px; }
.reading-nav a, .entry-meta a, .tag a, .site-tags a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px; }
.reading-nav a { border-bottom: 1px solid var(--line); }
.empty-results { padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
#main-content:has(> .entry-card) > .empty-results { display: none; }
/* 全記事一覧は記事カードと同じ紙面に載せます。幅が足りなければ自動で1列に戻ります。 */
.titlelist { margin: 0; padding: clamp(24px, 4vw, 46px); list-style: none; background: var(--paper); border: 1px solid rgba(16, 47, 67, .1); border-radius: 5px; box-shadow: var(--shadow); columns: 320px 2; column-gap: clamp(24px, 4vw, 46px); }
.titlelist li { padding: 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.titlelist a { display: block; min-height: 44px; padding: 10px 0; font-weight: 500; text-decoration: none; }
.pageselect { flex-wrap: wrap; }
.pageselect:not(:has(a)) { display: none; }
.entry-navigation a { flex: 1 1 180px; overflow-wrap: anywhere; }
.sidebar-card li a { display: inline-block; padding: 6px 0; }
.sidebar-heading { letter-spacing: .04em; }
:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }
#main-content, #categories, #comment { scroll-margin-top: 16px; }
#main-content:focus, #categories:focus, #comment:focus { outline: 2px solid var(--sea); outline-offset: 6px; }
.commentbody label { display: inline-block; margin-top: 12px; }
.field-help { margin: 6px 0 12px; font-size: .9rem; color: var(--muted); }
.checkbox-label { display: inline-flex !important; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.checkbox-label input { width: 20px; height: 20px; flex: 0 0 auto; }
input.serb { min-height: 44px; white-space: normal; max-width: 100%; }
input[name="edit[delete]"] { background: var(--paper); color: #8b2828; border-color: #8b2828; }
#LC_LNK .parent { min-height: 44px; }
@media (max-width: 560px) {
  .site-hero-compact { min-height: 150px; }
  .entry-meta { text-align: left; }
  .reading-nav { gap: 8px; }
}

/* 本体へ統合したリンク集 */

#LC_LNK .parent { padding: 0; border: 0; background: none; font: inherit; text-align: inherit; cursor: pointer; color: var(--sea, #187a8d); text-decoration: underline; text-underline-offset: .2em; }
#LC_LNK .parent:focus-visible { outline: 3px solid #f0c76f; outline-offset: 3px; }
#LC_LNK .boxed { background: #fff; border: 1px solid #666; font-size: 70%; margin-right: 2px; color: #333; }
#LC_LNK .lc-link-tooltip { position: absolute; z-index: 10; padding: 4px; border: 1px solid gray; color: #666; background: #f0f0f0; white-space: pre-line; }
#LC_LNK .lc-link-credit { display: block; text-align: right; font-size: .75rem; }


/* ジャンルランキング：本番変数の確認中はプラグイン枠に表示 */

    .plugin-ranking .down {
        background: url(https://static.fc2.com/image/genre/icon.png) no-repeat 0 -885px;
        padding: 3px 0px 3px 20px;
        font-weight: bold;
    }

    .plugin-ranking .stay {
        background: url(https://static.fc2.com/image/genre/icon.png) no-repeat 0 -1098px;
        padding: 3px 0px 3px 20px;
        font-weight: bold;
    }

    .plugin-ranking .up {
        background: url(https://static.fc2.com/image/genre/icon.png) no-repeat 0 -1310px;
        padding: 3px 0px 3px 20px;
        font-weight: bold;
    }


/* 本体サイドバーの配置とFC2更新通知の外枠 */
.sidebar-content { text-align: left; }
.subscription_button_container { min-height: 40px; }
.subscription_button { display: block; width: 100%; max-width: 100%; height: 40px; border: 0; overflow: hidden; }

/* サイドバーの情報量を抑え、必要な項目は展開して読めるようにします。 */
.profile-access { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sidebar-date { display: block; color: var(--muted); }
.comment-author { display: block; font-weight: 500; }
.sidebar-card a.comment-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; padding: 0; white-space: normal; }
.sidebar-more summary { min-height: 44px; padding: 10px 0; color: var(--sea); cursor: pointer; font-size: .9rem; }
.sidebar-more[open] { margin-top: 6px; }
.categories-card li a, .site-archives li a { display: flex; align-items: center; min-height: 44px; padding: 0; }

/* 一覧の階層を明確にし、記事の補助情報は一つのまとまりにします。 */
.category-heading .journal-title { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.entry-card-summary .entry-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 22px; }
.entry-details { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.entry-details .tag { font-size: .8rem; }
.entry-details .entry-meta a { padding: 6px 0; }
.back-to-top, .back-to-top:visited { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: #fff; text-underline-offset: .2em; }

/* 検索と関連記事は本文付近に配置し、サイドバーを増やしません。 */
.blog-search { margin: 0 0 24px; max-width: 34rem; }
.blog-search label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.search-controls { display: flex; gap: 8px; }
.search-controls input { flex: 1; min-width: 0; width: 100%; }
.search-controls button { flex: 0 0 auto; padding: 8px 16px; border: 0; border-radius: 3px; color: white; background: var(--navy); font: inherit; cursor: pointer; }
.search-controls input, .search-controls button { min-height: 44px; }
.related-entries { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.related-entries h2 { margin: 0 0 8px; font-size: 1rem; }
.related-entries ul { margin: 0; padding: 0; list-style: none; }
.related-entries a { display: inline-flex; align-items: center; min-height: 44px; }
.related-entries li:nth-child(n+4), .related-entries:not(:has(li)) { display: none; }
.categories-card a[aria-current="location"] { background: var(--mist); font-weight: 700; border-radius: 3px; flex-wrap: wrap; gap: 4px 8px; }
.current-category-label { font-size: .75rem; color: var(--navy); white-space: nowrap; }
