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

/* ==================================================
   Growth Note Brand
   Color: Yellow #F6B93B / Black #222 / White #FFF
================================================== */

:root {
  --gn-yellow: #F6B93B;
  --gn-black: #222222;
  --gn-text: #333333;
  --gn-muted: #6b7280;
  --gn-border: #e9e9e9;
  --gn-bg: #f5f6f7;
  --gn-white: #ffffff;
  --gn-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* ==================================================
   Base
================================================== */

body {
  background: var(--gn-bg);
  color: var(--gn-text);
}

a {
  transition: color .2s ease, opacity .2s ease;
}

/* ==================================================
   Header
================================================== */

.header {
  background: var(--gn-white);
  border-bottom: 1px solid var(--gn-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container,
.navi-in {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.header-container {
  padding: 14px 20px;
}

.site-name-text {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navi a {
  color: var(--gn-black);
  font-size: 15px;
  font-weight: 600;
}

.navi a:hover {
  color: var(--gn-yellow);
}

/* ==================================================
   Desktop Layout
================================================== */

@media screen and (min-width: 1024px) {
  #content.content {
    width: 94%;
    max-width: 1280px;
    margin: 28px auto;
    padding: 0;
  }

  #content .content-in {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 28px;
    align-items: flex-start;
  }

  #main.main {
    width: calc(100% - 348px);
    max-width: none;
    margin: 0;
    padding: 24px;
    background: var(--gn-white);
    border-radius: 12px;
  }

  #sidebar.sidebar {
    width: 320px;
    min-width: 320px;
    margin: 0;
    padding: 0;
  }
}

/* ==================================================
   Article List Cards
================================================== */

.entry-card-wrap.a-wrap {
  display: block;
  margin-bottom: 24px;
  padding: 0;
  overflow: hidden;
  background: var(--gn-white);
  border: 1px solid var(--gn-border);
  border-radius: 14px;
  box-shadow: var(--gn-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.entry-card-wrap.a-wrap:hover {
  transform: translateY(-3px);
  border-color: var(--gn-yellow);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.entry-card-wrap.a-wrap:hover img {
  transform: none;
}

.entry-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 16px;
}

.entry-card-thumb {
  float: none;
  flex: 0 0 230px;
  width: 230px;
  min-width: 230px;
  margin: 0;
}

.entry-card-thumb img {
  display: block;
  width: 230px;
  height: 130px;
  object-fit: cover;
  border-radius: 9px;
}

.entry-card-content {
  float: none;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.entry-card-title,
.related-entry-card-title {
  margin: 0 0 8px;
  color: var(--gn-black);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.entry-card-snippet {
  margin: 0 0 10px;
  color: var(--gn-muted);
  font-size: 14px;
  line-height: 1.75;
}

.entry-card-meta,
.post-date {
  margin-top: 8px;
  color: #999999;
  font-size: 12px;
}

.cat-label {
  padding: 4px 10px;
  color: var(--gn-black);
  background: var(--gn-yellow);
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* ==================================================
   Sidebar
================================================== */

.sidebar .widget {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--gn-white);
  border: 1px solid var(--gn-border);
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
}

.sidebar .widget-title,
.sidebar h3 {
  margin: 0 0 16px;
  padding: 0 0 10px;
  color: var(--gn-black);
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--gn-yellow);
  border-radius: 0;
  font-size: 18px;
  font-weight: 700;
}

.author-box .author-thumb img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
}

.author-box .author-content {
  font-size: 14px;
  line-height: 1.75;
}

/* ==================================================
   Article Body
================================================== */

.entry-content {
  font-size: 17px;
  line-height: 2;
}

.entry-content p {
  margin-bottom: 1.6em;
}

.entry-content h2 {
  margin-top: 56px;
  margin-bottom: 26px;
  padding: 12px 18px;
  color: var(--gn-black);
  background: transparent;
  border-left: 7px solid var(--gn-yellow);
  border-bottom: 2px solid #ececec;
  border-radius: 0;
  font-size: 28px;
  font-weight: 700;
}

.entry-content h3 {
  margin-top: 36px;
  margin-bottom: 18px;
  padding: 12px 16px;
  color: var(--gn-black);
  background: #fffaf0;
  border-left: 5px solid var(--gn-yellow);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
}

.entry-content h4 {
  position: relative;
  margin-top: 28px;
  padding-left: 17px;
  font-size: 19px;
  font-weight: 700;
}

.entry-content h4::before {
  position: absolute;
  top: .25em;
  left: 0;
  width: 5px;
  height: 1.2em;
  content: "";
  background: var(--gn-yellow);
  border-radius: 999px;
}

.entry-content img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.entry-content a {
  color: #0B63CE;
  text-decoration: none;
}

.entry-content a:hover {
  color: #d89000;
}

/* ==================================================
   Table
================================================== */

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.entry-content th {
  padding: 12px;
  color: var(--gn-black);
  background: var(--gn-yellow);
  font-weight: 700;
}

.entry-content td {
  padding: 12px;
  border: 1px solid #eeeeee;
}

.entry-content tr:nth-child(even) {
  background: #fafafa;
}

/* ==================================================
   Table of Contents
================================================== */

.toc {
  padding: 20px;
  background: var(--gn-white);
  border: 2px solid var(--gn-yellow);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.toc-title {
  padding: 11px;
  color: var(--gn-white);
  background: var(--gn-black);
  border-radius: 7px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

/* ==================================================
   Quote / Button
================================================== */

blockquote {
  padding: 18px;
  background: #fffaf0;
  border-left: 6px solid var(--gn-yellow);
  border-radius: 8px;
}

.wp-block-button__link,
a.btn {
  padding: 13px 26px;
  color: var(--gn-black);
  background: var(--gn-yellow);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(246, 185, 59, 0.30);
  transition: transform .2s ease, box-shadow .2s ease;
}

.wp-block-button__link:hover,
a.btn:hover {
  color: var(--gn-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 185, 59, 0.40);
}

/* ==================================================
   Tablet
================================================== */

@media screen and (min-width: 768px) and (max-width: 1023px) {
  #content.content {
    width: 94%;
    margin: 22px auto;
  }

  #main.main {
    padding: 20px;
  }

  .entry-card-thumb {
    flex-basis: 210px;
    width: 210px;
    min-width: 210px;
  }

  .entry-card-thumb img {
    width: 210px;
    height: 118px;
  }
}

/* ==================================================
   Mobile
================================================== */

@media screen and (max-width: 767px) {
  #content.content {
    width: 100%;
    margin: 0;
    padding: 10px;
  }

  #main.main {
    width: 100%;
    padding: 14px;
  }

  .entry-card-wrap.a-wrap {
    margin-bottom: 18px;
  }

  .entry-card {
    display: block;
    padding: 12px;
  }

  .entry-card-thumb {
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
  }

  .entry-card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .entry-card-content {
    width: 100%;
    padding: 0;
  }

  .entry-card-title,
  .related-entry-card-title {
    font-size: 17px;
  }

  .entry-card-snippet {
    font-size: 13px;
  }

  .entry-content {
    font-size: 16px;
    line-height: 1.9;
  }

  .entry-content h2 {
    margin-top: 42px;
    padding: 10px 14px;
    font-size: 24px;
  }

  .entry-content h3 {
    font-size: 20px;
  }

  .sidebar .widget {
    padding: 16px;
  }
}
/* ==========================================
   Growth Note 一覧サイズ微調整
========================================== */

@media screen and (min-width: 1024px) {

  #content.content {
    width: 96%;
    max-width: 1380px;
  }

  #main.main {
    width: calc(100% - 358px);
    padding: 26px;
  }

  #sidebar.sidebar {
    width: 330px;
    min-width: 330px;
  }

  .entry-card {
    gap: 24px;
    padding: 18px;
  }

  .entry-card-thumb {
    flex-basis: 260px;
    width: 260px;
    min-width: 260px;
  }

  .entry-card-thumb img {
    width: 260px;
    height: 146px;
  }

  .entry-card-title {
    font-size: 19px;
  }

  .entry-card-snippet {
    font-size: 14px;
    line-height: 1.8;
  }
}
/* ==========================================
   Growth Note Search Box
========================================== */

.search-edit {
    height: 46px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    transition: .25s;
}

.search-edit:focus {
    border-color: #F6B93B;
    box-shadow: 0 0 0 3px rgba(246,185,59,.2);
    outline: none;
}

.search-submit {
    border-radius: 8px;
}
/* ==========================================
   Popular Posts
========================================== */

.popular-entry-card{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.popular-entry-card-thumb{
    width:95px;
    min-width:95px;
}

.popular-entry-card-thumb img{
    width:95px;
    height:54px;
    object-fit:cover;
    border-radius:6px;
}

.popular-entry-card-title{
    font-size:13px;
    line-height:1.5;
    font-weight:600;
}

.popular-entry-card:last-child{
    margin-bottom:0;
}
.site-name-text{
    font-size:34px;
    font-weight:700;
}
.header-container{
    padding:22px 20px;
}
/* ==================================================
   Growth Note｜ホテル予約CTA 完全版
   ブランドカラー：#F6B93B
================================================== */

/* CTA全体 */
.gn-hotel-cta {
  width: 100%;
  margin: 24px auto 12px;
  padding: 0;
  text-align: center;
  background: transparent !important;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

/* Agodaメインボタン */
.gn-hotel-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 520px;
  min-height: 54px;
  padding: 14px 24px;

  background: #F6B93B;
  color: #111111 !important;

  border: 1.5px solid #111111;
  border-radius: 6px;
  box-shadow: 0 4px 0 #D99A16;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;

  box-sizing: border-box;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

/* マウスを乗せたとき */
.gn-hotel-cta > a:hover {
  background: #FFD05A;
  color: #111111 !important;
  text-decoration: none !important;
  transform: translateY(2px);
  box-shadow: 0 2px 0 #D99A16;
}

/* キーボード操作時 */
.gn-hotel-cta > a:focus-visible {
  outline: 3px solid rgba(246, 185, 59, 0.4);
  outline-offset: 3px;
}

/* クリック時 */
.gn-hotel-cta > a:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* Booking.comなどの補助リンク */
.gn-hotel-sub-link {
  margin: 10px auto 28px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.gn-hotel-sub-link a {
  color: #555555;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gn-hotel-sub-link a:hover {
  color: #111111;
}

/* スマホ表示 */
@media screen and (max-width: 600px) {
  .gn-hotel-cta {
    margin: 20px auto 10px;
  }

  .gn-hotel-cta > a {
    max-width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 5px;
  }

  .gn-hotel-sub-link {
    margin-bottom: 24px;
    font-size: 13px;
  }
}
/* ホテルCTA周辺のグレー背景を強制的に消す */
.entry-content .gn-hotel-cta {
  width: 100%;
  margin: 24px auto 12px;
  padding: 0 !important;
  text-align: center;
  background: #ffffff !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* カスタムHTMLの親ブロックに背景がある場合 */
.entry-content .wp-block-html:has(.gn-hotel-cta) {
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}