@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が決まるまで未実装の切替リンクを生成しない。 */
