@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/************************************
** Traveling Webcams 共通デザイン V1｜本番用
** 2026-11-13
** 通常の記事・固定ページに適用。
** .tw-page を含む完成済みトップページの本文は除外。
** ヘッダー、フッター、サイドバーは対象外。
************************************/

/* 01：ブランドの色・文字。本文領域だけに適用 */
#main .entry-content:not(:has(.tw-page)) {
  --tw-blue: #003d98;
  --tw-teal: #04a1a1;
  --tw-ink: #1f2d3d;
  --tw-border: #d9e2ec;
  box-sizing: border-box;
  width: 100%;
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
  color: var(--tw-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.76;
}

/* 02：本文段落・リスト。Cocoonの見出し以外の構造は維持 */
#main .entry-content:not(:has(.tw-page)) p,
#main .entry-content:not(:has(.tw-page)) li {
  line-height: 1.76;
}

/* 03：H2見出し */
#main .entry-content:not(:has(.tw-page)) h2 {
  color: #003d98;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 2em 0 0.7em;
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 700;
  line-height: 1.45;
}

/* 04：H3見出し */
#main .entry-content:not(:has(.tw-page)) h3 {
  color: #003d98;
  background: transparent;
  border: 0;
  border-left: 4px solid #04a1a1;
  border-radius: 0;
  box-shadow: none;
  padding: 5px 0 5px 14px;
  margin: 1.7em 0 0.65em;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

/* 05：H4見出し */
#main .entry-content:not(:has(.tw-page)) h4 {
  color: #003d98;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d9e2ec;
  border-radius: 0;
  box-shadow: none;
  padding: 5px 0 10px;
  margin: 1.5em 0 0.6em;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

/* 06：WordPress標準のボタンブロック */
#main .entry-content:not(:has(.tw-page)) .wp-block-button__link {
  display: inline-block;
  color: #fff;
  background: #003d98;
  border: 1px solid #003d98;
  border-radius: 12px;
  padding: 13px 25px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s ease;
}
#main .entry-content:not(:has(.tw-page)) .wp-block-button__link:hover,
#main .entry-content:not(:has(.tw-page)) .wp-block-button__link:focus-visible {
  color: #fff;
  background: #002c70;
}

/* 07：専用クラス tw-card を付けたグループのカード装飾。
   既存のすべてのグループには適用しません。 */
#main .entry-content:not(:has(.tw-page)) .tw-card {
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(18, 48, 78, 0.06);
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  #main .entry-content:not(:has(.tw-page)) h2 { font-size: 27px; }
  #main .entry-content:not(:has(.tw-page)) h3 { font-size: 20px; }
}

/*480px以下*/
@media screen and (max-width: 480px){
  #main .entry-content:not(:has(.tw-page)) h2 { font-size: 25px; }
  #main .entry-content:not(:has(.tw-page)) h3 { font-size: 19px; }
  #main .entry-content:not(:has(.tw-page)) h4 { font-size: 18px; }
  #main .entry-content:not(:has(.tw-page)) .tw-card { padding: 20px; }
}

/************************************
** 08：Traveling Webcams V3 共通ヘッダー（日本語先行）
** 2026-11-13
** Cocoon標準「トップメニュー（右寄せ）」を使用。
** V1本文CSS、フッター、LIVE地図には手を触れない。
** 言語切替・メニュー追加・独自JSは別工程。
************************************/

/* ヘッダー全体：白背景と控えめな区切り線 */
#header-container {
  background: #fff;
  border-bottom: 1px solid #d9e2ec;
  box-shadow: 0 1px 0 rgba(17, 41, 71, 0.03);
}

/* PC（Cocoonのモバイルメニュー移行境界より上） */
@media screen and (min-width: 1024px) {
  #header-container .header-container-in.hlt-top-menu {
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    min-height: 112px;
    margin: 0 auto;
    padding: 12px 24px;
    gap: 20px;
  }

  #header-container .header-container-in.hlt-top-menu #header {
    flex: 0 0 auto;
    min-width: 0;
  }

  #header-container .header-container-in.hlt-top-menu .logo-header {
    max-height: none;
  }

  #header-container .header-container-in.hlt-top-menu .logo-header img {
    display: block;
    width: 228px;
    max-width: 228px;
    max-height: none;
    height: auto;
    object-fit: contain;
  }

  #header-container .header-container-in.hlt-top-menu #navi {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
  }

  /* 既存メニューのリンクを保ったまま、余白と文字色だけ調整 */
  #header-container .header-container-in.hlt-top-menu #navi .navi-in > ul.menu-header > li {
    width: auto;
    min-width: 0;
  }

  #header-container .header-container-in.hlt-top-menu #navi .navi-in > ul.menu-header > li > a {
    padding: 0 13px;
    color: #234b78;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  #header-container .header-container-in.hlt-top-menu #navi .navi-in > ul.menu-header > li > a:hover,
  #header-container .header-container-in.hlt-top-menu #navi .navi-in > ul.menu-header > li > a:focus-visible,
  #header-container .header-container-in.hlt-top-menu #navi .navi-in > ul.menu-header > li.current-menu-item > a {
    color: #003d98;
    background: #f3f7fa;
    box-shadow: inset 0 -2px 0 #04a1a1;
  }
}

/* スマホ・タブレット：標準ヘッダーモバイルボタンを維持。
   V3デザインの配色を「白・青・淡いブルーグレー」に統一。
   ※Cocoonの表示/非表示・スライド移動・閉じる動作には触れない。 */
@media screen and (max-width: 1023px) {
  /* 前工程で解消した二重ロゴ下の余白を引き続き抑止 */
  #header-container .header-container-in.hlt-top-menu #header-in {
    min-height: 0;
    padding: 0;
  }

  /* ご希望によりターコイズの区切り線を完全撤去 */
  .mobile-header-menu-buttons {
    background: #fff;
    border-bottom: 0;
    box-shadow: 0 2px 10px rgba(17, 41, 71, 0.08);
  }

  /* 既存のメニュー/検索ボタンは残し、色だけをブランドに合わせる */
  .mobile-header-menu-buttons .navi-menu-button .menu-button-in,
  .mobile-header-menu-buttons .search-menu-button .menu-button-in {
    color: #003d98;
  }
  .mobile-header-menu-buttons .navi-menu-caption,
  .mobile-header-menu-buttons .search-menu-caption {
    color: #536b82;
    font-weight: 600;
  }

/* V3メニュー：Cocoon標準の開閉・リンク生成は維持し、見た目のみ調整。
   ナビ項目は WordPress「外観 > メニュー」で増減・並べ替え可能。 */
#navi-menu-content.navi-menu-content {
  box-sizing: border-box;
  width: min(320px, calc(100vw - 44px));
  max-width: 100%;
  padding: 0 16px 24px;
  background: #fff;
  box-shadow: 8px 0 30px rgba(17, 41, 71, 0.18);
}

/* PHPやHTMLを変更せず、Cocoonの閉じるボタンの手前に見出しを表示。 */
#navi-menu-content.navi-menu-content::before {
  content: "メニュー";
  display: block;
  box-sizing: border-box;
  height: 80px;
  padding: 26px 8px 19px;
  border-bottom: 1px solid #d9e2ec;
  color: #003d98;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
}
html:lang(en) #navi-menu-content.navi-menu-content::before {
  content: "Menu";
}

/* Cocoon標準の閉じるlabelを右上に重ねる（クリック処理は標準のまま）。 */
#navi-menu-content .navi-menu-close-button {
  position: absolute;
  top: 17px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #48627e;
  font-size: 23px;
  text-align: center;
  cursor: pointer;
}
#navi-menu-content .navi-menu-close-button:hover {
  background: #f3f7fa;
  color: #003d98;
}

/* V3デモ：項目の区切り線と、行全幅で揃うhover/focus背景。 */
#navi-menu-content ul.menu-drawer {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 8px 16px;
  list-style: none;
}
#navi-menu-content ul.menu-drawer > li:not(.tw-v3-lang-item) {
  display: block;
  box-sizing: border-box;
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e6edf3;
  border-radius: 0;
  background: transparent;
  list-style: none;
}
#navi-menu-content ul.menu-drawer > li:not(.tw-v3-lang-item) > a {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  float: none;
  width: 100%;
  max-width: none;
  min-height: 60px;
  margin: 0;
  padding: 15px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #234b78;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
#navi-menu-content ul.menu-drawer > li:not(.tw-v3-lang-item) > a:hover,
#navi-menu-content ul.menu-drawer > li:not(.tw-v3-lang-item) > a:focus-visible,
#navi-menu-content ul.menu-drawer > li.current-menu-item:not(.tw-v3-lang-item) > a,
#navi-menu-content ul.menu-drawer > li.current-menu-ancestor:not(.tw-v3-lang-item) > a {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: #f3f7fa;
  box-shadow: none;
  color: #003d98;
}
#navi-menu-content ul.menu-drawer > li:not(.tw-v3-lang-item) > a:focus-visible,
#navi-menu-content .navi-menu-close-button:focus-visible {
  outline: 2px solid #003d98;
  outline-offset: -2px;
}
/* サブメニューも独自のリンク先・階層関係を維持する。 */
#navi-menu-content ul.menu-drawer .sub-menu a {
  color: #234b78;
  box-shadow: none;
}
/* V3デモの「言語 / Language」エリア。メニュー項目数は固定しない。 */
#navi-menu-content ul.menu-drawer > li.tw-v3-lang-item {
  display: block;
  float: none;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid #e6edf3;
  background: transparent;
  list-style: none;
}
#navi-menu-content .tw-v3-lang {
  display: block;
  margin: 0;
}
#navi-menu-content .tw-v3-lang-heading {
  display: block;
  margin: 0 0 12px;
  color: #526b85;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
#navi-menu-content .tw-v3-lang-options {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  min-height: 37px;
  padding: 4px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #f2f6fa;
}
#navi-menu-content .tw-v3-lang-options > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
}
#navi-menu-content .tw-v3-lang-current {
  border-radius: 7px;
  background: #003d98;
  color: #fff;
  font-weight: 700;
}
#navi-menu-content .tw-v3-lang-pending {
  color: #677b90;
  cursor: default;
}
}

/* PCでは既存のWordPressナビ項目の最後にだけ言語UIを追加。 */
@media screen and (min-width: 1024px) {
  #header-container .header-container-in.hlt-top-menu #navi .navi-in > ul.menu-header > li.tw-v3-lang-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    max-width: none;
    margin-left: 12px;
    padding: 0;
    background: transparent;
  }
  #header-container .tw-v3-lang-heading { display: none; }
  #header-container .tw-v3-lang-options {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    box-sizing: border-box;
    padding: 3px;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    background: #f2f6fa;
  }
  #header-container .tw-v3-lang-options > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
  }
  #header-container .tw-v3-lang-current {
    border-radius: 7px;
    color: #fff;
    background: #003d98;
    font-weight: 700;
  }
  #header-container .tw-v3-lang-pending {
    color: #677b90;
    cursor: default;
  }
}
/* 表示のみ。英語の正規URLが決まるまで未実装の切替リンクを生成しない。 */

/************************************
** 09: Traveling Webcams V3 共通フッター
** 正式透過ロゴを濃紺へ直接配置 / 可変項目 / JA・EN表示UI
** Cocoon標準 #navi-footer / footer-bottom のみを装飾
** ENへの実リンクは正式URLが確定するまで無効（表示のみ）。
************************************/

body #footer.footer-container {
  box-sizing: border-box;
  background: #112947;
  color: #e7f1fb;
  border-top: 0;
  box-shadow: none;
}
body #footer #footer-in.footer-in {
  box-sizing: border-box;
  width: 100%;
  max-width: 1188px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3vw, 32px);
}
body #footer .footer-bottom {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(200px, 290px) minmax(0, 1fr);
  gap: 22px clamp(28px, 4vw, 58px);
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 44px 0 32px;
  border: 0;
  background: transparent;
}
body #footer .footer-bottom::after { display:none; }
body #footer .footer-bottom-logo {
  box-sizing: border-box;
  position: static;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}
body #footer .footer-bottom-logo .logo-footer {
  position: static;
  float: none;
  display: block;
  box-sizing: border-box;
  width: min(100%, 290px);
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}
/* 白・淡色の台は設けず、透過ロゴの形だけを背景に載せる。 */
body #footer .footer-bottom-logo .site-name {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  text-decoration: none;
}
body #footer .footer-bottom-logo .site-name:hover,
body #footer .footer-bottom-logo .site-name:focus-visible {
  background: transparent;
  box-shadow: none;
}
body #footer .footer-bottom-logo .site-name:focus-visible {
  outline: 2px solid #d9f5ff;
  outline-offset: 5px;
}
body #footer .footer-bottom-logo .site-logo-image {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  margin: 0;
  padding: 0;
  object-fit: contain;
  /* V3: 光彩・ぼかしなし。8方向の白い輪郭で文字の視認性を保つ。
     画像本体と元の透過領域は変更しない。 */
  filter: drop-shadow(1px 0 0 #ffffff)
          drop-shadow(-1px 0 0 #ffffff)
          drop-shadow(0 1px 0 #ffffff)
          drop-shadow(0 -1px 0 #ffffff)
          drop-shadow(1px 1px 0 #ffffff)
          drop-shadow(-1px -1px 0 #ffffff)
          drop-shadow(-1px 1px 0 #ffffff)
          drop-shadow(1px -1px 0 #ffffff);
}
body #footer .footer-bottom-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  float: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #e7f1fb;
  background: transparent;
  text-align: right;
}
body #footer #navi-footer.navi-footer,
body #footer .navi-footer-in {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}
/* 管理画面で項目を2件/6件/10件に増減しても、適切に折り返す。 */
body #footer .navi-footer-in > ul.menu-footer {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
body #footer .navi-footer-in > ul.menu-footer > li {
  box-sizing: border-box;
  display: block;
  float: none;
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
}
body #footer .navi-footer-in > ul.menu-footer > li > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  width: auto;
  min-height: 42px;
  margin: 0;
  padding: 7px 4px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #f5faff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}
body #footer .navi-footer-in > ul.menu-footer > li > a:hover,
body #footer .navi-footer-in > ul.menu-footer > li > a:focus-visible {
  color: #c2f5f0;
  border-bottom-color: #04a1a1;
  background: transparent;
  text-decoration: none;
}
body #footer .navi-footer-in > ul.menu-footer > li > a:focus-visible {
  outline: 2px solid #c2f5f0;
  outline-offset: 2px;
}
/* フッター言語UIはメニュー項目数に関係なく必ず別の最終行。 */
body #footer .navi-footer-in > ul.menu-footer > li.tw-v3-footer-lang-item {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(216, 235, 251, .22);
}
body #footer .tw-v3-footer-lang {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
  width: 100%;
  min-width: 0;
}
body #footer .tw-v3-footer-lang-heading {
  color: #c0d4e6;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
body #footer .tw-v3-footer-lang-options {
  box-sizing: border-box;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 4px;
  border: 1px solid #57718e;
  border-radius: 10px;
  background: #1b3a5c;
}
body #footer .tw-v3-footer-lang-options > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
body #footer .tw-v3-footer-lang-current {
  color: #003d98;
  background: #fff;
  font-weight: 700;
}
body #footer .tw-v3-footer-lang-pending {
  color: #b8c8da;
  cursor: default;
}
body #footer .copyright,
body #footer .source-org.copyright {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 13px 0 0;
  border-top: 1px solid #36516f;
  color: #c0d4e6;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-align: right;
}
body #footer .copyright a,
body #footer .footer-widgets a,
body #footer .footer-widgets-mobile a { color: #f5faff; }
body #footer .copyright a:hover { color: #c2f5f0; background: transparent; }
body #footer .footer-widgets,
body #footer .footer-widgets-mobile { color: #e7f1fb; }

/* V3 フッター微調整（2026-11-14）
   PC：言語ブロックの上下の横線を消す。
   スマホ：フッターのロゴのみ消す（ヘッダーのロゴには影響しない）。 */
@media screen and (min-width: 835px) {
  body #footer .navi-footer-in > ul.menu-footer > li.tw-v3-footer-lang-item {
    border-top: 0;
    padding-top: 0;
  }
  body #footer .copyright,
  body #footer .source-org.copyright {
    border-top: 0;
    padding-top: 0;
  }
}
@media screen and (max-width: 834px) {
  body #footer .footer-bottom-logo { display: none; }
  body #footer .footer-bottom { grid-template-columns: minmax(0, 1fr); }
}

/* ラベルが長くなりやすい英語版にも対応: PC幅が足りなければ縦配置。 */
@media screen and (max-width: 940px) {
  body #footer .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 34px 0 26px;
  }
  body #footer .footer-bottom-logo .logo-footer { width: min(100%, 270px); }
  body #footer .footer-bottom-content { text-align: left; }
  body #footer .navi-footer-in > ul.menu-footer { justify-content: flex-start; }
  body #footer .tw-v3-footer-lang { justify-content: flex-start; }
  body #footer .copyright,
  body #footer .source-org.copyright { text-align: left; }
}
@media screen and (max-width: 600px) {
  body #footer .footer-bottom {
    padding: 30px 0 26px;
    gap: 23px;
  }
  body #footer .navi-footer-in > ul.menu-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body #footer .navi-footer-in > ul.menu-footer > li:not(.tw-v3-footer-lang-item) {
    display: block;
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid rgba(216, 235, 251, .16);
  }
  body #footer .navi-footer-in > ul.menu-footer > li > a {
    display: flex;
    width: 100%;
    min-height: 46px;
    padding: 11px 2px;
    font-size: 13px;
  }
  body #footer .navi-footer-in > ul.menu-footer > li.tw-v3-footer-lang-item {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 0;
  }
  body #footer .tw-v3-footer-lang { gap: 10px 14px; }
  body #footer .copyright,
  body #footer .source-org.copyright { font-size: 11px; }
}
@media screen and (max-width: 360px) {
  body #footer #footer-in.footer-in { padding-inline: 16px; }
  body #footer .tw-v3-footer-lang { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  body #footer .navi-footer-in > ul.menu-footer > li > a { transition: none; }
}


/************************************
** 10: Traveling Webcams V3 ブログ本文・記事一覧・サイドバー
** 2026-11-14 / Cocoon Child / CSSのみ
** 既存ヘッダー・フッター・LIVE・camera投稿・管理画面は変更しない。
** 本文のH2-H4は既存V1（01〜07）を優先する。
************************************/

/* 01 共通の色。対象をブログ表示領域へ限定。 */
#main, #sidebar {
  --tw-v3-blue: #003d98;
  --tw-v3-teal: #04a1a1;
  --tw-v3-ink: #1f2d3d;
  --tw-v3-sub: #526b85;
  --tw-v3-line: #d9e2ec;
  --tw-v3-soft: #f2f7fa;
}

/* 02 投稿・通常固定ページ：タイトルと記事外側の部品。 */
body.single-post #main .entry-title,
body.page:not(.home) #main .entry-title {
  color: var(--tw-v3-blue);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 750;
  line-height: 1.48;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
body.single-post #main .breadcrumb,
body.page:not(.home) #main .breadcrumb,
body.single-post #main .post-meta,
body.page:not(.home) #main .post-meta {
  color: var(--tw-v3-sub);
}
body.single-post #main .eye-catch,
body.page:not(.home) #main .eye-catch {
  border-radius: 13px;
  overflow: hidden;
}
body.single-post #main .eye-catch img,
body.page:not(.home) #main .eye-catch img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 03 Cocoon目次：開閉動作・目次生成はそのままに装飾。 */
body.single-post #main .toc,
body.page:not(.home) #main .toc {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--tw-v3-line);
  border-radius: 13px;
  background: #fff;
  padding: 18px clamp(15px, 2.2vw, 24px);
  box-shadow: 0 5px 18px rgba(17,41,71,.035);
}
body.single-post #main .toc-title,
body.page:not(.home) #main .toc-title {
  color: var(--tw-v3-blue);
  font-weight: 700;
}
body.single-post #main .toc a,
body.page:not(.home) #main .toc a {
  color: #234b78;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.single-post #main .toc a:hover,
body.page:not(.home) #main .toc a:hover {
  color: var(--tw-v3-blue);
  text-decoration: underline;
}

/* 04 既存の引用文・ブロックに上書きしすぎない。 */
body.single-post #main .entry-content:not(:has(.tw-page)) blockquote,
body.page:not(.home) #main .entry-content:not(:has(.tw-page)) blockquote {
  border: 1px solid var(--tw-v3-line);
  border-left: 4px solid var(--tw-v3-teal);
  border-radius: 10px;
  background: #f6fafc;
  color: var(--tw-v3-ink);
  padding: 20px clamp(18px, 2.5vw, 25px);
}

/* 05 シェアボタン：公式サービス別配色は残し、角丸と間隔だけ統一。 */
body.single-post #main .sns-share .sns-button,
body.single-post #main .sns-share a.sns-button {
  box-sizing: border-box;
  border-radius: 9px;
  overflow: hidden;
  transition: opacity .16s ease, transform .16s ease;
}
@media (hover:hover) and (pointer:fine) {
  body.single-post #main .sns-share .sns-button:hover {
    opacity: .90;
    transform: translateY(-1px);
  }
}

/* 06 関連記事：Cocoonが生成するリンクと投稿データは維持。 */
body.single-post #main .related-entries-title,
body.single-post #main .comment-title {
  color: var(--tw-v3-blue);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--tw-v3-line);
  font-weight: 700;
  padding: 0 0 12px;
}
body.single-post #main .related-entry-card-wrap {
  box-sizing: border-box;
  border: 1px solid var(--tw-v3-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(17,41,71,.035);
  transition: border-color .16s ease;
}
body.single-post #main .related-entry-card-wrap:hover,
body.single-post #main .related-entry-card-wrap:focus-visible {
  border-color: #92bacd;
}
body.single-post #main .related-entry-card-title {
  color: var(--tw-v3-blue);
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* 07 記事一覧。Cocoonのリスト/カード切替・画像配置は変えない。 */
body:is(.home:not(.page), .blog, .archive, .search) #main .entry-card-wrap {
  box-sizing: border-box;
  border: 1px solid var(--tw-v3-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  padding: clamp(12px, 1.4vw, 18px);
  margin-bottom: 15px;
  box-shadow: 0 4px 18px rgba(17,41,71,.035);
  transition: border-color .16s ease, box-shadow .16s ease;
}
body:is(.home:not(.page), .blog, .archive, .search) #main .entry-card-wrap:hover,
body:is(.home:not(.page), .blog, .archive, .search) #main .entry-card-wrap:focus-visible {
  border-color: #9bc7d4;
  box-shadow: 0 6px 20px rgba(17,41,71,.075);
}
body:is(.home:not(.page), .blog, .archive, .search) #main .entry-card-title,
body:is(.home:not(.page), .blog, .archive, .search) #main .archive-title {
  color: var(--tw-v3-blue);
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body:is(.home:not(.page), .blog, .archive, .search) #main .entry-card-snippet {
  color: var(--tw-v3-ink);
  line-height: 1.7;
}
body:is(.home:not(.page), .blog, .archive, .search) #main .entry-card-thumb img {
  border-radius: 9px;
}
/* ページ送りは元のリンク先・件数に影響せず、色だけ統一。 */
#main .pagination .current,
#main .pagination .page-numbers.current {
  color: #fff;
  background: var(--tw-v3-blue);
  border-color: var(--tw-v3-blue);
  border-radius: 8px;
}
#main .pagination a,
#main .pagination .page-numbers {
  border-radius: 8px;
}

/* 08 サイドバー：全ウィジェットを同じ白いカードに。 */
#sidebar .widget.widget-sidebar {
  box-sizing: border-box;
  max-width: 100%;
  margin-bottom: 18px;
  padding: clamp(16px, 2vw, 20px);
  background: #fff;
  border: 1px solid #e7eef4;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(17,41,71,.045);
}
#sidebar .widget.widget-sidebar .widget-title {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid #e7eef5;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--tw-v3-blue);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.5;
}
#sidebar .widget.widget-sidebar .widget-title::before {
  content: "";
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 4px;
  width: 4px;
  height: 17px;
  border-radius: 3px;
  background: var(--tw-v3-teal);
}

/* 09 検索欄。Cocoon検索・WordPress検索ブロックに対応。 */
#sidebar .widget input[type="search"],
#sidebar .widget input[type="text"],
#sidebar .widget .wp-block-search__input {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--tw-v3-line);
  border-radius: 9px;
  background: #fff;
  color: var(--tw-v3-ink);
}
#sidebar .widget input[type="search"]:focus-visible,
#sidebar .widget input[type="text"]:focus-visible {
  outline: 2px solid var(--tw-v3-teal);
  outline-offset: 1px;
}
#sidebar .widget .wp-block-search__button,
#sidebar .widget input[type="submit"] {
  border: 1px solid var(--tw-v3-blue);
  border-radius: 9px;
  background: var(--tw-v3-blue);
  color: #fff;
  font-weight: 700;
}
#sidebar .widget .wp-block-search__button:hover,
#sidebar .widget input[type="submit"]:hover {
  background: #002f7c;
}

/* 10 カテゴリー・投稿・アーカイブ等の標準リスト。 */
#sidebar :is(.widget_categories,.widget_recent_entries,.widget_archive,.widget_pages,.widget_nav_menu,.widget_meta) ul,
#sidebar .widget .wp-block-categories-list,
#sidebar .widget .wp-block-latest-posts__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
#sidebar :is(.widget_categories,.widget_recent_entries,.widget_archive,.widget_pages,.widget_nav_menu,.widget_meta) ul > li,
#sidebar .widget .wp-block-categories-list > li,
#sidebar .widget .wp-block-latest-posts__list > li {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #edf3f7;
}
#sidebar :is(.widget_categories,.widget_recent_entries,.widget_archive,.widget_pages,.widget_nav_menu,.widget_meta) ul > li:last-child,
#sidebar .widget .wp-block-categories-list > li:last-child,
#sidebar .widget .wp-block-latest-posts__list > li:last-child {
  border-bottom: 0;
}
#sidebar :is(.widget_categories,.widget_recent_entries,.widget_archive,.widget_pages,.widget_nav_menu,.widget_meta) ul > li > a,
#sidebar .widget .wp-block-categories-list > li > a,
#sidebar .widget .wp-block-latest-posts__list > li > a {
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 11px 3px;
  color: #234b78;
  font-weight: 600;
  line-height: 1.65;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#sidebar :is(.widget_categories,.widget_recent_entries,.widget_archive,.widget_pages,.widget_nav_menu,.widget_meta) ul > li > a:hover,
#sidebar .widget .wp-block-categories-list > li > a:hover,
#sidebar .widget .wp-block-latest-posts__list > li > a:hover {
  color: var(--tw-v3-blue);
  background: var(--tw-v3-soft);
}

/* 11 Cocoonの人気/新着記事ウィジェットもデザインを合わせる。 */
#sidebar .widget-entry-cards .a-wrap {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  border-bottom: 1px solid #edf3f7;
  padding: 11px 3px;
  color: #234b78;
  text-decoration: none;
}
#sidebar .widget-entry-cards .a-wrap:hover {
  background: var(--tw-v3-soft);
}
#sidebar .widget-entry-card-title {
  color: #234b78;
  font-weight: 650;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#sidebar .widget-entry-cards .a-wrap:hover .widget-entry-card-title {
  color: var(--tw-v3-blue);
}

/* 12 スマホ：Cocoonの表示/非表示判断には干渉しない。 */
@media screen and (max-width: 834px) {
  body.single-post #main .entry-title,
  body.page:not(.home) #main .entry-title {
    font-size: clamp(25px, 6.7vw, 31px);
  }
  #sidebar .widget.widget-sidebar {
    padding: 16px;
  }
  body:is(.home:not(.page), .blog, .archive, .search) #main .entry-card-wrap {
    padding: 12px;
  }
}

/************************************
** 11：V3実機差分の最小修正（2026-11-14）
** 既存のV1/V3装飾は変更せず、Cocoon標準スタイルが
** 残っていた見出しと、記事一覧の重複ボタンだけを補正。
** 注意：ページ番号のリンクと記事の公開状態は変更しない。
************************************/

/* 11-1：記事本文のH1・H5・H6をV3の見出し体系へ。
   ※通常の記事は原則H2から構成することを推奨。H1はテスト表示用にも対応。
   V1のH2〜H4、および .tw-page を含むトップ本文には影響させない。 */
body:is(.single-post, .page:not(.home)) #main .entry-content:not(:has(.tw-page)) h1 {
  margin: 1.8em 0 .7em;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #003d98;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.45;
}
body:is(.single-post, .page:not(.home)) #main .entry-content:not(:has(.tw-page)) :is(h5, h6) {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #234b78;
  font-weight: 700;
  line-height: 1.6;
}
body:is(.single-post, .page:not(.home)) #main .entry-content:not(:has(.tw-page)) h5 {
  margin: 1.4em 0 .6em;
  font-size: 17px;
}
body:is(.single-post, .page:not(.home)) #main .entry-content:not(:has(.tw-page)) h6 {
  margin: 1.3em 0 .6em;
  font-size: 15px;
}

/* 11-2：従来型・ブロック型の両ウィジェット見出しへ共通装飾。
   WordPress「外観 ＞ ウィジェット」の項目数・順序は変えない。
   Cocoonの人気記事の青見出しも同一トーンを維持する。 */
#sidebar .widget :is(.widget-title, .widgettitle, .wp-block-heading) {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 2px solid #e7eef5;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #003d98;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
#sidebar .widget :is(.widget-title, .widgettitle, .wp-block-heading)::before {
  content: "";
  display: inline-block;
  flex: 0 0 4px;
  width: 4px;
  height: 17px;
  border-radius: 3px;
  background: #04a1a1;
}

/* 11-3：記事一覧に二重表示される「次のページ」大ボタンだけ非表示。
   下側の数字ページ送り .pagination は残す。記事本文内のページ分割は対象外。 */
body:is(.home:not(.page), .blog, .archive, .search) #main .pagination-next {
  display: none;
}

