@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
*/

/* ==========================================================
   Go Abroad Guide Deutschland | Cocoon Child
   整理版 2026-10-10

   方針：
   - サイト共通の見た目はここで管理
   - 記事ごとの商品カード・比較表は記事固有のCSSを優先
   - Cocoon標準ボタンなど限定的な要素だけ !important を使用
   - 任意の記事内 HTML のリンク・表・リストを一括上書きしない
   ========================================================== */

/* 01. 基本色・サイト全体 */
body {
  background-color: #f6f5f2;
  color: #303336;
}

:where(#navi, .entry-content, .breadcrumb) a {
  transition: color .18s ease, background-color .18s ease,
              border-color .18s ease, opacity .18s ease;
}

.single-post .article,
.page .article {
  background: #fff;
  border: none;
  border-radius: 9px;
  box-shadow: none;
}

/* 02. トップページと記事の横幅 */
.home.page .entry-title,
.home.page .date-tags,
.home.page .post-date,
.home.page .post-update,
.home.page .author-info,
.home.page .sns-share,
.home.page .sns-follow {
  display: none;
}

.home.page #main {
  box-sizing: border-box;
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.single-post #main {
  box-sizing: border-box;
  width: 100%;
  max-width: 840px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

/* 03. ヘッダーメニュー（PCのみ境界線を追加） */
@media screen and (min-width: 769px) {
  #navi .navi-in > ul {
    display: flex;
    justify-content: center;
    gap: 0;
  }
  #navi .navi-in > ul > li {
    flex: 0 0 auto;
    width: auto;
    border-left: 1px solid #e6e0d7;
  }
  #navi .navi-in > ul > li:last-child {
    border-right: 1px solid #e6e0d7;
  }
  #navi .navi-in > ul > li > a {
    width: auto;
    min-width: 0;
    padding: 16px 28px;
    border-radius: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    transition: background-color .2s ease;
  }
  #navi .navi-in > ul > li > a:hover {
    background: #f3f1ed;
  }
}

/* 04. パンくず・日付・タイトル */
.breadcrumb {
  color: #8b9093;
  font-size: 12px;
}
.single-post .breadcrumb {
  margin-bottom: 20px;
}
.single-post .breadcrumb a {
  color: #858b8e;
  text-decoration: none;
}
.single-post .breadcrumb a:hover {
  color: #8f7434;
}

.date-tags, .post-date, .post-update {
  color: #929699;
  font-size: 12px;
}
.single-post .entry-title {
  margin-top: 0;
  margin-bottom: 10px;
  color: #303336;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
}
.single-post .date-tags {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 11px;
}
.single-post :where(.post-date, .post-update) {
  color: #95999b;
  font-size: 11px;
}
.single-post .date-tags :where(.fa, .fas, .far) {
  color: #aaa;
}

/* 05. 記事本文：一般的な段落だけを調整 */
.single-post .entry-content {
  color: #35383a;
  font-size: 16px;
  line-height: 1.75;
}
.single-post .entry-content > p,
.page .entry-content > p {
  margin-top: 0;
  margin-bottom: 1.2em;
  line-height: 1.75;
}

/* 本文中の通常テキストリンクだけに適用。
   独自デザインの .sim-btn / .fs-btn / .ga-button 等は触らない。 */
:where(.single-post, .page) .entry-content :where(p, li, td, figcaption) a:not([class]) {
  color: #466479;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:where(.single-post, .page) .entry-content :where(p, li, td, figcaption) a:not([class]):hover {
  color: #8f7434;
}

/* 06. 記事の見出し：本文直下の見出しのみ。
   商品カード内部の h3 などには適用しない。 */
:where(.single-post, .page) .entry-content > h2,
:where(.single-post, .page) .entry-content > article > h2 {
  margin-top: 2.8em;
  margin-bottom: 1.1em;
  padding: 0 0 10px !important;
  background: transparent !important;
  color: #303336 !important;
  border: 0 !important;
  border-bottom: 1px solid #dedbd4 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}
:where(.single-post, .page) .entry-content > h2::before,
:where(.single-post, .page) .entry-content > h2::after,
:where(.single-post, .page) .entry-content > article > h2::before,
:where(.single-post, .page) .entry-content > article > h2::after {
  display: none !important;
}
:where(.single-post, .page) .entry-content > h3,
:where(.single-post, .page) .entry-content > article > h3 {
  margin-top: 2.3em;
  margin-bottom: .9em;
  padding: 2px 0 2px 13px !important;
  background: transparent !important;
  color: #34383a !important;
  border: 0 !important;
  border-left: 3px solid #b39750 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}
:where(.single-post, .page) .entry-content > h4,
:where(.single-post, .page) .entry-content > article > h4 {
  margin-top: 2em;
  margin-bottom: .8em;
  padding: 0 !important;
  background: transparent !important;
  color: #464a4c !important;
  border: 0 !important;
  font-size: 17px;
  font-weight: 700;
}

/* 07. Gutenberg・Cocoonの標準ボタンに限定 */
:where(.single-post, .page) .entry-content .wp-block-button,
:where(.single-post, .page) .entry-content .btn-wrap {
  text-align: center;
  justify-content: center;
}
:where(.single-post, .page) .entry-content .wp-block-button__link,
:where(.single-post, .page) .entry-content .btn-wrap > a,
:where(.single-post, .page) .entry-content a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  margin-left: auto;
  margin-right: auto;
  padding: 11px 22px !important;
  background: #383c3e !important;
  color: #fff !important;
  border: 1px solid #383c3e !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  letter-spacing: .02em;
  text-decoration: none !important;
  transition: background-color .18s ease,
              border-color .18s ease, transform .18s ease;
}
:where(.single-post, .page) .entry-content .wp-block-button__link:hover,
:where(.single-post, .page) .entry-content .btn-wrap > a:hover,
:where(.single-post, .page) .entry-content a.btn:hover {
  background: #967832 !important;
  border-color: #967832 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
:where(.single-post, .page) .entry-content .btn-wrap a :where(.fa, .fas, .far) {
  margin-left: 7px;
}

/* 08. 検索・入力フォーム */
:where(.single-post, .page) .entry-content :where(input[type="text"], input[type="email"], input[type="search"], textarea, select),
.search-box :where(input[type="text"], input[type="search"]),
.wp-block-search__input {
  border: 1px solid #d8d5cf !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  background: #fff;
}
:where(.single-post, .page) .entry-content :where(input, textarea, select):focus-visible,
.search-box input:focus-visible {
  border-color: #a28b58 !important;
  outline: 2px solid #a28b58;
  outline-offset: 2px;
}
.search-submit,
.wp-block-search__button {
  padding: 9px 17px !important;
  background: #383c3e !important;
  color: #fff !important;
  border: 1px solid #383c3e !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 600;
}
.search-submit:hover,
.wp-block-search__button:hover {
  background: #967832 !important;
  border-color: #967832 !important;
}

/* 09. Cocoon標準の情報ボックスのみ */
:where(.single-post, .page) .entry-content :where(.blank-box, .information-box, .question-box, .alert-box, .memo-box, .comment-box) {
  border-radius: 7px;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.8;
}
:where(.single-post, .page) .entry-content :where(.information-box, .memo-box) {
  background: #f7f7f4 !important;
  border-color: #d9d8d1 !important;
}
:where(.single-post, .page) .entry-content .alert-box {
  background: #fff9ed !important;
  border-color: #e2ca8b !important;
}
:where(.single-post, .page) .entry-content .question-box {
  background: #f5f7f7 !important;
  border-color: #d6dcdd !important;
}

/* 10. 標準の表：Gutenberg / 本文直下のみ。
   記事個別の比較表（.sim-table-scroll 等）を上書きしない。 */
:where(.single-post, .page) .entry-content > table,
:where(.single-post, .page) .entry-content > figure.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dedbd4;
  font-size: 14px;
}
:where(.single-post, .page) .entry-content > table th,
:where(.single-post, .page) .entry-content > figure.wp-block-table table th {
  background: #f3f2ee;
  color: #373b3d;
  font-weight: 700;
}
:where(.single-post, .page) .entry-content > table :where(th, td),
:where(.single-post, .page) .entry-content > figure.wp-block-table table :where(th, td) {
  padding: 10px 12px;
  border: 1px solid #dedbd4;
  vertical-align: top;
}
:where(.single-post, .page) .entry-content > table tr:nth-child(even) td,
:where(.single-post, .page) .entry-content > figure.wp-block-table table tr:nth-child(even) td {
  background: #fbfbf9;
}

/* 11. 引用・目次・リスト・水平線 */
:where(.single-post, .page) .entry-content blockquote {
  margin: 1.8em 0;
  padding: 16px 20px;
  background: #f8f7f4 !important;
  color: #555b5e;
  border: 0 !important;
  border-left: 3px solid #b9a46a !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
:where(.single-post, .page) .entry-content blockquote::before,
:where(.single-post, .page) .entry-content blockquote::after {
  opacity: .15;
}
.single-post :where(.toc, #toc) {
  margin: 28px 0 36px;
  padding: 18px 20px;
  background: #faf9f6 !important;
  border: 1px solid #dedbd4 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.single-post .toc-title {
  margin-bottom: 10px;
  color: #3e4244;
  font-size: 15px;
  font-weight: 700;
}
.single-post .toc a {
  color: #535a5e;
  text-decoration: none;
}
.single-post .toc a:hover {color: #8f7434}

/* 本文直下の通常リストだけを調整（商品カード内部には触らない）。 */
.single-post .entry-content > :where(ul, ol) {
  margin-top: 1em;
  margin-bottom: 1.7em;
}
.single-post .entry-content > :where(ul, ol) > li {
  margin-bottom: .45em;
  line-height: 1.85;
}
:where(.single-post, .page) .entry-content > hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid #dedbd4;
}

/* 12. カテゴリー・アイキャッチ・PR表記など */
.single-post :where(.cat-link, .tag-link, .entry-category a, .entry-tags a) {
  padding: 3px 8px;
  background: #f1f0ec !important;
  color: #626769 !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-size: 11px;
  text-decoration: none !important;
}
.single-post :where(.cat-link, .tag-link, .entry-category a, .entry-tags a):hover {
  background: #e7e3d9 !important;
  color: #55492d !important;
}
.single-post .eye-catch-wrap {
  margin: 18px 0 28px;
}
.single-post .eye-catch-wrap img {border-radius: 7px}

.single-post .pr-label.pr-label-l,
.affiliate-notice {
  margin: 14px 0 24px;
  padding: 8px 12px !important;
  background: #faf9f6 !important;
  color: #777b7d !important;
  border: 1px solid #e3e0da !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  box-shadow: none !important;
}
.single-post .pr-label.pr-label-l {text-align: center !important}
.affiliate-notice p {margin: 0 !important}

/* 13. 関連記事・前後ナビ・SNS */
.single-post .pager-post-navi {
  margin-top: 50px;
  border-top: 1px solid #dedbd4;
}
.single-post .pager-post-navi a {
  background: transparent !important;
  box-shadow: none !important;
}
.single-post .pager-post-navi a:hover {
  background: #f7f6f2 !important;
}
.single-post .related-entry-card {
  border: 0 !important;
  box-shadow: none !important;
}
.single-post .related-entry-card:hover {background: #f8f7f4}
.single-post .sns-buttons a {
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* 14. タブレット・スマートフォン */
@media screen and (max-width: 1023px) {
  .single-post #main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
@media screen and (max-width: 768px) {
  .single-post .article {border-radius: 0}
  .single-post .entry-title {
    font-size: 24px;
    line-height: 1.5;
  }
  .single-post .entry-content {font-size: 15px}
  :where(.single-post, .page) .entry-content > h2,
  :where(.single-post, .page) .entry-content > article > h2 {
    margin-top: 2.4em;
    font-size: 22px;
  }
  :where(.single-post, .page) .entry-content > h3,
  :where(.single-post, .page) .entry-content > article > h3 {
    font-size: 18px;
  }
  :where(.single-post, .page) .entry-content :where(.wp-block-button__link, .btn-wrap > a, a.btn) {
    width: 100%;
    padding: 12px 16px !important;
  }
}
