@charset "UTF-8";

/*!
Theme Name: Showa Retoro Cocoon (暗室レトロ)
Description: Cocoonの機能を保ったまま、昭和レトロ・暗室ギャラリー風の落ち着いたトーンと個人サイトの遊び心を両立した子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら / NARISUKE
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.15.0
*/

:root {
  --retoro-bg-deep: #12100e;
  --retoro-bg-warm: #1a1613;
  --retoro-panel: #1f1b17;
  --retoro-panel-elevated: #27221d;
  --retoro-panel-soft: #231e1a;
  --retoro-text: #efeae2;
  --retoro-text-muted: #b8afa3;
  --retoro-amber: #d8a657;
  --retoro-amber-bright: #f2c478;
  --retoro-brass: #8f6f43;
  --retoro-brass-soft: #54422b;
  --retoro-crimson: #7a2e22;
  --retoro-nixie: #ffb347;
  --retoro-site-width: 1120px;
  --retoro-main-width: 780px;
  --retoro-sidebar-width: 310px;
}

body.retoro-cocoon {
  color: var(--retoro-text);
  cursor: auto;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: var(--retoro-bg-deep);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(216, 166, 87, 0.08) 0%, transparent 65%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    );
  background-attachment: fixed;
}

/* 記事本文は長文でも読みやすいゴシック＋適度な明朝見出しの組み合わせ */
.retoro-cocoon .entry-content,
.retoro-cocoon .sidebar,
.retoro-cocoon .navi {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.retoro-cocoon a {
  color: var(--retoro-amber);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.retoro-cocoon a:hover {
  color: var(--retoro-amber-bright);
  text-decoration: underline;
}

.retoro-cocoon .container,
.retoro-cocoon .header-container,
.retoro-cocoon .navi,
.retoro-cocoon .main,
.retoro-cocoon .sidebar,
.retoro-cocoon .footer {
  background: transparent;
}

.retoro-cocoon .header-container-in,
.retoro-cocoon .navi-in,
.retoro-cocoon .content-in,
.retoro-cocoon .footer-in,
.retoro-cocoon .wrap {
  width: min(var(--retoro-site-width), calc(100vw - 24px)) !important;
  max-width: var(--retoro-site-width) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.retoro-cocoon .header-container-in.hlt-top-menu {
  display: block !important;
}

.retoro-cocoon .header-container-in.hlt-top-menu .wrap,
.retoro-cocoon .header-container-in.hlt-top-menu .header,
.retoro-cocoon .header-container-in.hlt-top-menu .navi,
.retoro-cocoon .header-container-in .header,
.retoro-cocoon .header-container-in .navi {
  width: 100% !important;
  max-width: 100% !important;
}

.retoro-cocoon .header-container-in.hlt-top-menu .logo-text,
.retoro-cocoon .header-container-in.hlt-top-menu .logo-header {
  justify-content: center;
  min-height: 96px;
}

.retoro-cocoon .header-container-in.hlt-top-menu .tagline {
  display: block;
}

/* ヘッダー上部：落ち着いた昭和レトロ看板プレート */
.retoro-cocoon .header-container::before {
  content: var(--retoro-header-badge, "◆ 激渋なりさん（なりすけWEB）｜消えゆく昭和レトロ街歩き＆オールドカメラ探訪記 ◆");
  display: block;
  width: fit-content;
  margin: 12px auto 8px;
  padding: 3px 14px;
  color: var(--retoro-text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  border-bottom: 1px solid var(--retoro-brass-soft);
}

.retoro-cocoon .header-container-in.hlt-top-menu,
.retoro-cocoon .header-container-in.hlt-center-logo,
.retoro-cocoon .header-container-in {
  border: 3px double var(--retoro-brass);
  background: linear-gradient(180deg, #1d1814 0%, #15120f 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  border-radius: 4px;
}

.retoro-cocoon .site-name-text,
.retoro-cocoon .logo-text {
  color: #f7f1e5;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.retoro-cocoon .site-name-text::before,
.retoro-cocoon .logo-text::before {
  content: "◆ ";
  color: var(--retoro-amber);
  font-size: 0.8em;
}

.retoro-cocoon .site-name-text::after,
.retoro-cocoon .logo-text::after {
  content: " ◆";
  color: var(--retoro-amber);
  font-size: 0.8em;
}

.retoro-cocoon .tagline {
  color: var(--retoro-text-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* グローバルナビ */
.retoro-cocoon .navi-in > ul {
  border-top: 1px solid var(--retoro-brass-soft);
  background: #171310;
  justify-content: center;
}

.retoro-cocoon .navi-in > ul .sub-menu {
  border: 2px solid var(--retoro-brass);
  background: #1d1814 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.retoro-cocoon .navi-in > ul .sub-menu li {
  border-bottom: 1px solid var(--retoro-brass-soft);
  background: #1d1814;
}

.retoro-cocoon .navi-in > ul .sub-menu li:nth-child(even) {
  background: #231d18;
}

.retoro-cocoon .navi-in a {
  color: var(--retoro-text);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.retoro-cocoon .navi-in a:hover,
.retoro-cocoon .navi-in li:hover > a,
.retoro-cocoon .navi-in > ul .sub-menu a:hover {
  color: var(--retoro-amber-bright) !important;
  background: rgba(216, 166, 87, 0.14) !important;
  text-decoration: none;
}

/* メイン＆サイドバーのレイアウト */
.retoro-cocoon .content-in {
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 18px;
}

.retoro-cocoon .main,
.retoro-cocoon .sidebar {
  color: var(--retoro-text);
  background: var(--retoro-panel);
  border: 3px double var(--retoro-brass);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.retoro-cocoon .main {
  width: var(--retoro-main-width);
  padding: 28px 32px;
}

.retoro-cocoon .sidebar {
  width: var(--retoro-sidebar-width);
  padding: 18px 16px;
  font-size: 14px;
}

.retoro-cocoon.no-sidebar .content .main {
  width: 100%;
}

.retoro-cocoon.sidebar-left .content-in {
  flex-direction: row-reverse;
}

/* サイドバー上部：ニキシー管・昭和電光板風アクセスカウンター（点滅なし・渋い琥珀発光） */
.retoro-cocoon .sidebar::before {
  content: var(--retoro-access-count-sidebar, "あなたは 00000000 人目の訪問者です");
  display: block;
  margin: 0 0 18px;
  padding: 8px 10px;
  border: 2px inset var(--retoro-brass);
  border-radius: 3px;
  background: #0d0b09;
  color: var(--retoro-nixie);
  font-family: "Courier New", Consolas, monospace;
  font-size: 12.5px;
  font-weight: bold;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.06em;
  text-shadow: 0 0 6px rgba(255, 179, 71, 0.45);
}

/* 記事フッターのアクセスカウンター刻印 */
.retoro-cocoon .article::after {
  content: var(--retoro-access-count-footer, "ACCESS COUNTER 00000000 / Since 2026 / Produced by NARISUKE");
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  padding: 4px 12px;
  border: 1px solid var(--retoro-brass-soft);
  border-radius: 3px;
  background: #120f0d;
  color: var(--retoro-amber);
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* 見出しデザイン（純喫茶・レトロ雑誌風） */
.retoro-cocoon .entry-title,
.retoro-cocoon .archive-title,
.retoro-cocoon .article h1 {
  color: #faf6f0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.45;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--retoro-brass);
  padding-bottom: 0.45em;
  margin-bottom: 0.8em;
}

.retoro-cocoon .article h2 {
  padding: 0.55em 0.8em;
  margin-top: 2.2em;
  margin-bottom: 1em;
  border: 2px solid var(--retoro-brass);
  border-left: 6px solid var(--retoro-amber);
  border-radius: 3px;
  background: linear-gradient(90deg, #2a221b 0%, #211b16 100%);
  color: #faf6f0;
  font-size: 1.28em;
  line-height: 1.45;
}

.retoro-cocoon .article h2::before {
  content: "◆ ";
  color: var(--retoro-amber);
}

.retoro-cocoon .article h3 {
  padding: 0.4em 0.65em;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  border-left: 4px solid var(--retoro-amber);
  border-bottom: 1px solid var(--retoro-brass-soft);
  background: rgba(216, 166, 87, 0.06);
  color: #f5efe6;
  font-size: 1.12em;
}

/* 本文の読みやすさ最適化 */
.retoro-cocoon .entry-content,
.retoro-cocoon .article,
.retoro-cocoon .widget {
  color: var(--retoro-text);
}

.retoro-cocoon .entry-content p,
.retoro-cocoon .entry-content li,
.retoro-cocoon .entry-content td,
.retoro-cocoon .entry-content dd,
.retoro-cocoon .entry-content blockquote,
.retoro-cocoon .comment-content {
  line-height: 1.9;
  font-size: 16.5px;
}

/* 写真が暗室ギャラリーのように浮かび上がるフレーム効果 */
.retoro-cocoon .entry-content img,
.retoro-cocoon .eye-catch img {
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.retoro-cocoon .eye-catch {
  border: 1px solid var(--retoro-brass-soft);
  background: #14110e;
}

/* ボックス・カード類 */
.retoro-cocoon :where(
  .author-box,
  .comment-body,
  .comment-respond,
  .related-entry-card,
  .entry-card,
  .blogcard,
  .blank-box,
  .information-box,
  .question-box,
  .alert-box,
  .memo-box,
  .comment-box,
  .common-icon-box,
  .wp-block-table,
  .wp-block-quote,
  .search-box,
  .calendar_wrap,
  .ranking-item,
  .timeline-box,
  .profile-box
) {
  background: var(--retoro-panel-elevated);
  color: var(--retoro-text);
  border-color: var(--retoro-brass);
}

.retoro-cocoon .blank-box.bb-tab,
.retoro-cocoon .blank-box {
  border: 2px double var(--retoro-brass) !important;
  background: linear-gradient(180deg, #28221c 0%, #201b17 100%) !important;
  color: var(--retoro-text) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.retoro-cocoon .toc,
.retoro-cocoon .information-box,
.retoro-cocoon .question-box,
.retoro-cocoon .alert-box,
.retoro-cocoon .memo-box,
.retoro-cocoon .comment-box {
  border: 2px double var(--retoro-brass);
  border-radius: 4px;
  background: var(--retoro-panel-soft);
  color: var(--retoro-text);
}

.retoro-cocoon .toc-title,
.retoro-cocoon .sns-share-message,
.retoro-cocoon .sns-follow-message {
  color: var(--retoro-amber-bright);
  font-weight: bold;
}

/* 技術記事用コードブロック */
.retoro-cocoon pre,
.retoro-cocoon code,
.retoro-cocoon kbd,
.retoro-cocoon samp,
.retoro-cocoon .wp-block-code,
.retoro-cocoon .wp-block-code code,
.retoro-cocoon .wp-block-preformatted,
.retoro-cocoon .wp-block-preformatted pre,
.retoro-cocoon .entry-content pre,
.retoro-cocoon .entry-content code,
.retoro-cocoon .code-block,
.retoro-cocoon .hljs {
  background: #12100e !important;
  color: #efeae2 !important;
  border-color: var(--retoro-brass-soft) !important;
  text-shadow: none !important;
}

.retoro-cocoon pre,
.retoro-cocoon .wp-block-code,
.retoro-cocoon .wp-block-preformatted,
.retoro-cocoon .entry-content pre {
  border: 1px solid var(--retoro-brass);
  border-radius: 4px;
  padding: 1.1em;
  overflow-x: auto;
}

.retoro-cocoon code,
.retoro-cocoon kbd,
.retoro-cocoon samp {
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

/* テーブル */
.retoro-cocoon table,
.retoro-cocoon th,
.retoro-cocoon td {
  border-color: var(--retoro-brass-soft);
}

.retoro-cocoon th {
  background: #2c241d;
  color: var(--retoro-amber-bright);
}

.retoro-cocoon td {
  background: var(--retoro-panel-soft);
  color: var(--retoro-text);
}

/* 記事一覧カード・関連記事カード */
.retoro-cocoon .date-tags,
.retoro-cocoon .post-date,
.retoro-cocoon .post-update,
.retoro-cocoon .breadcrumb,
.retoro-cocoon .entry-card-snippet,
.retoro-cocoon .related-entry-card-snippet {
  color: var(--retoro-text-muted);
}

.retoro-cocoon .entry-card-wrap,
.retoro-cocoon .related-entry-card-wrap,
.retoro-cocoon .popular-entry-card,
.retoro-cocoon .widget-entry-card,
.retoro-cocoon .blogcard {
  border: 1px solid var(--retoro-brass-soft);
  border-radius: 4px;
  background: var(--retoro-panel-elevated);
  color: var(--retoro-text);
  margin-bottom: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.retoro-cocoon .entry-card-title,
.retoro-cocoon .related-entry-card-title,
.retoro-cocoon .widget-entry-card-title {
  color: #faf6f0;
}

.retoro-cocoon .entry-card-wrap:hover,
.retoro-cocoon .related-entry-card-wrap:hover,
.retoro-cocoon .popular-entry-card:hover,
.retoro-cocoon .widget-entry-card:hover {
  background: #2c251f;
  border-color: var(--retoro-amber);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

/* カテゴリラベル・タグ */
.retoro-cocoon .cat-label,
.retoro-cocoon .cat-link,
.retoro-cocoon .tag-link,
.retoro-cocoon .label,
.retoro-cocoon .badge {
  border: 1px solid var(--retoro-brass);
  background: var(--retoro-crimson);
  color: #faf6f0;
  font-weight: 600;
  border-radius: 2px;
}

/* サイドバーウィジェット */
.retoro-cocoon .widget-title,
.retoro-cocoon .sidebar h2,
.retoro-cocoon .sidebar h3 {
  padding: 7px 10px;
  border: 2px double var(--retoro-brass);
  border-radius: 3px;
  background: #16120f;
  color: var(--retoro-amber-bright);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-align: center;
}

.retoro-cocoon .widget-title::before,
.retoro-cocoon .sidebar h2::before,
.retoro-cocoon .sidebar h3::before {
  content: "◆ ";
  color: var(--retoro-amber);
}

.retoro-cocoon .widget-title::after,
.retoro-cocoon .sidebar h2::after,
.retoro-cocoon .sidebar h3::after {
  content: " ◆";
  color: var(--retoro-amber);
}

.retoro-cocoon .sidebar li,
.retoro-cocoon .sidebar .menu-item,
.retoro-cocoon .sidebar .cat-item {
  margin: 0;
  border-bottom: 1px solid var(--retoro-brass-soft);
  background: transparent;
}

.retoro-cocoon .sidebar li a,
.retoro-cocoon .sidebar .menu-item a,
.retoro-cocoon .sidebar .cat-item a {
  display: block;
  padding: 7px 6px;
  color: var(--retoro-text);
}

.retoro-cocoon .sidebar li a:hover,
.retoro-cocoon .sidebar .menu-item a:hover,
.retoro-cocoon .sidebar .cat-item a:hover {
  background: rgba(216, 166, 87, 0.12);
  color: var(--retoro-amber-bright);
  text-decoration: none;
}

.retoro-cocoon .sidebar li a::before,
.retoro-cocoon .sidebar .menu-item a::before,
.retoro-cocoon .sidebar .cat-item a::before {
  content: "▸ ";
  color: var(--retoro-amber);
}

/* 検索ボックス・フォーム・ボタン */
.retoro-cocoon .search-box {
  border: 1px solid var(--retoro-brass);
  background: #14110e;
  border-radius: 3px;
}

.retoro-cocoon .search-edit,
.retoro-cocoon input[type="text"],
.retoro-cocoon input[type="email"],
.retoro-cocoon input[type="url"],
.retoro-cocoon input[type="search"],
.retoro-cocoon textarea,
.retoro-cocoon select {
  border: 1px solid var(--retoro-brass);
  background: #14110e !important;
  color: var(--retoro-text) !important;
  border-radius: 3px;
}

.retoro-cocoon .search-submit,
.retoro-cocoon .pager-post-navi a,
.retoro-cocoon .pagination a,
.retoro-cocoon .pagination .current,
.retoro-cocoon .page-numbers,
.retoro-cocoon .pagination-next-link,
.retoro-cocoon .pager-links a,
.retoro-cocoon .pager-links span,
.retoro-cocoon .comment-reply-link,
.retoro-cocoon .submit,
.retoro-cocoon button,
.retoro-cocoon input[type="submit"],
.retoro-cocoon .go-to-top-button {
  border: 1px solid var(--retoro-brass);
  background: #28211b !important;
  color: var(--retoro-amber-bright) !important;
  font-weight: 600;
  border-radius: 3px;
}

.retoro-cocoon .search-submit:hover,
.retoro-cocoon .pager-post-navi a:hover,
.retoro-cocoon .pagination a:hover,
.retoro-cocoon .pagination-next-link:hover,
.retoro-cocoon .pager-links a:hover,
.retoro-cocoon .comment-reply-link:hover,
.retoro-cocoon .submit:hover,
.retoro-cocoon button:hover,
.retoro-cocoon input[type="submit"]:hover,
.retoro-cocoon .go-to-top-button:hover {
  background: var(--retoro-amber) !important;
  color: #16120f !important;
  text-decoration: none;
}

/* フッター */
.retoro-cocoon .footer {
  margin-top: 36px;
  border-top: 3px double var(--retoro-brass);
  background: #14110e;
  color: var(--retoro-text-muted);
}

/* スマホ・タブレット最適化（Instagramからの流入時にも見やすく） */
@media screen and (max-width: 834px) {
  .retoro-cocoon .content-in {
    display: block;
  }

  .retoro-cocoon .main,
  .retoro-cocoon .sidebar {
    width: auto;
    padding: 18px 14px;
    margin-bottom: 18px;
  }

  .retoro-cocoon .entry-content p,
  .retoro-cocoon .entry-content li {
    font-size: 16px;
    line-height: 1.85;
  }

  .retoro-cocoon .mobile-menu-buttons,
  .retoro-cocoon .mobile-menu-buttons .menu-button,
  .retoro-cocoon .navi-menu-content,
  .retoro-cocoon .menu-content,
  .retoro-cocoon .menu-drawer {
    background: #1a1613 !important;
    color: var(--retoro-amber-bright) !important;
    border-color: var(--retoro-brass-soft) !important;
  }

  .retoro-cocoon .mobile-menu-buttons a,
  .retoro-cocoon .mobile-menu-buttons button,
  .retoro-cocoon .mobile-menu-buttons .menu-button,
  .retoro-cocoon .navi-menu-content a,
  .retoro-cocoon .menu-content a,
  .retoro-cocoon .menu-drawer a {
    color: var(--retoro-amber-bright) !important;
  }
}
