@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* 記事一覧: スマホ・タブレットは大きな画像を上、PCは小さなサムネを左 */
@media screen and (min-width: 1024px) {
  .ect-big-card-wrap .entry-card-thumb { float: left; width: 220px; margin: 0 20px 0 0; }
  .ect-big-card-wrap .entry-card-thumb-image { width: 220px; height: 150px; object-fit: cover; }
  .ect-big-card-wrap .entry-card-content { margin-left: 240px; }
  .ect-big-card-wrap .entry-card::after { content: ""; display: block; clear: both; }
}


/* LINE公式CTA(記事本文の下・サイドバー) */
.line-cta { display: flex; gap: 16px; align-items: center; margin: 2em 0; padding: 16px; border: 2px solid #06c755; border-radius: 10px; background: #f4fdf7; }
.line-cta-img { flex: 0 0 200px; }
.line-cta-img img { width: 100%; height: auto; border-radius: 6px; display: block; }
.line-cta-body { flex: 1; }
.line-cta-title { font-weight: bold; font-size: 1.15em; margin: 0 0 .4em; }
.line-cta-list { margin: 0 0 .8em; padding-left: 1.2em; font-size: .95em; }
.line-cta-btn { margin: 0; text-align: center; }
.line-cta-btn a { display: block; background: #06c755; color: #fff !important; font-weight: bold; padding: .8em 1em; border-radius: 999px; text-decoration: none; }
.line-cta-btn a:hover { opacity: .85; }
@media screen and (max-width: 600px) {
  .line-cta { flex-direction: column; }
  .line-cta-img { flex-basis: auto; width: 100%; max-width: 320px; }
}

/* スマホ下部の固定バナー(LINE公式): 丸ゴシック・アイコンは左のみ */
.sg-line-banner { display: none; }
@media screen and (max-width: 767px) {
  .sg-line-banner { display: block; position: fixed; left: 0; right: 0; bottom: var(--sg-bottom-bar, 50px); z-index: 9998; background: #00b51c; }
  .sg-line-banner-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff !important; text-decoration: none; font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif; font-weight: 800; line-height: 1.3; text-align: center; font-size: clamp(14px, 4.4vw, 22px); }
  .sg-line-banner-link img { flex: 0 0 auto; width: clamp(40px, 12vw, 56px); height: auto; }
  .sg-line-banner-text { flex: 1 1 auto; }
  .sg-line-banner-close { position: absolute; right: 0; top: -26px; width: 28px; height: 26px; padding: 0; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 20px; line-height: 26px; cursor: pointer; }
}


/* トップのヘッダー画像: 全体が切れずに見えるように(スマホは縦長の別画像) */
#appeal { height: auto !important; min-height: 0 !important; aspect-ratio: 1935 / 723; background-size: cover !important; background-position: center !important; }
@media screen and (max-width: 767px) {
  #appeal { aspect-ratio: 4 / 3; background-image: url(/wp-content/uploads/2026/09/IMG_4623.jpg) !important; }
}


/* 旧Easy Table of Contentsが本文に残した目次は隠し、Cocoonの目次だけを表示 */
.entry-content #ez-toc-container { display: none !important; }


/* スマホ・タブレットのヘッダーメニュー(文字が切れる)は隠し、下部の「メニュー」ボタンから開く */
@media screen and (max-width: 1023px) {
  #navi { display: none; }
}

/* 2026-11-19 動画特設ページ(ID 5801): YouTube登録バナー(赤)、目次を出さない */
.sg-line-banner.sg-yt-banner { background: #e60000; }
.sg-yt-icon { flex: 0 0 auto; width: 52px; height: 52px; }
.page-id-5801 .toc, .page-id-5801 #toc_container, .page-id-5801 .ez-toc-container, .page-id-5801 #ez-toc-container { display: none !important; }

/* 2026-11-19 旧Easy TOCが記事本文に残した目次は隠す(CocoonのTOCを使う) */
#ez-toc-container, .ez-toc-container { display: none !important; }

/* 2026-11-19 トップ画像(アピールエリア)をページの一番上に出す(ヘッダー・メニューは画像の下) */
.front-top-page #container { display: flex; flex-direction: column; }
.front-top-page #appeal { order: -1; }

/* 2026-11-19 トップビュー(案C): 写真の上に見出しと3つの入口 */
.front-top-page .appeal { height: auto; min-height: 540px; padding: 0; background-size: cover; background-position: center 35%; position: relative; }
.front-top-page .appeal::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,16,12,.86) 0%, rgba(8,16,12,.45) 42%, rgba(8,16,12,0) 72%); }
.front-top-page .appeal-in { position: relative; height: auto; min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end; }
.sg-hero { color: #fff; padding: 36px 16px 30px; }
.sg-hero-kicker { font-size: 13px; letter-spacing: .14em; font-weight: 700; margin: 0 0 8px; color: #ffe6b0; }
.sg-hero-title { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900; font-size: 46px; line-height: 1.3; margin: 0 0 20px; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.sg-hero-enter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sg-hero-enter a { display: block; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.5); background: rgba(10,18,14,.5); border-radius: 10px; padding: 12px 14px; }
.sg-hero-enter a:hover { background: rgba(10,18,14,.7); }
.sg-hero-enter small { display: block; font-size: 11px; color: #ffe6b0; letter-spacing: .06em; }
.sg-hero-enter b { font-size: 15px; }
.sg-hero-enter a.line { background: #06c755; border-color: #06c755; }
.sg-hero-enter a.line small { color: #e8fff1; }
@media screen and (max-width: 640px) {
  .front-top-page .appeal, .front-top-page .appeal-in { min-height: 470px; }
  .sg-hero { padding: 22px 12px 16px; }
  .sg-hero-title { font-size: 26px; }
  .sg-hero-enter { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sg-hero-enter a { padding: 9px 12px; }
}

/* sg-hero-fix: Cocoonの既定の高さ・余白を打ち消し、見出しと入口を写真の下端に寄せる */
.front-top-page #appeal { height: auto !important; min-height: 540px; }
.front-top-page #appeal-in { padding: 0 !important; }
@media screen and (max-width: 640px) { .front-top-page #appeal { min-height: 470px; } }

/* sg-hero-fix2: 旧トップ画像(1935x723)用の指定(#appeal の縦横比・高さ0)を打ち消す */
.front-top-page #appeal { aspect-ratio: auto !important; min-height: 540px !important; background-position: center 35% !important; }
@media screen and (max-width: 640px) { .front-top-page #appeal { min-height: 470px !important; } }

/* sg-hero-fix3: 人物の顔が切れないよう、PCは高さと位置を調整。スマホは上に写真・下に文字の2段にする */
.front-top-page #appeal { min-height: 600px !important; background-position: center 30% !important; }
.front-top-page #appeal-in { min-height: 600px; }
@media screen and (max-width: 640px) {
  .front-top-page #appeal { min-height: 660px !important; background-size: auto 420px !important; background-position: center top !important; background-repeat: no-repeat !important; background-color: #0b1511 !important; }
  .front-top-page #appeal-in { min-height: 660px; }
  .front-top-page .appeal::before { background: linear-gradient(0deg, #0b1511 0%, #0b1511 42%, rgba(11,21,17,0) 66%); }
}

/* sg-hero-fix4: スマホ用の旧画像(IMG_4623)の指定を打ち消し、PC・スマホとも同じ写真にする */
.front-top-page #appeal { background-image: url(https://sugitaya.net/wp-content/uploads/2026/11/sugitaya-hero-tour.jpg) !important; }

/* sg-hero-fix5: 広い画面では高さを画面幅に合わせ、写真の人物が切れにくいようにする */
@media screen and (min-width: 641px) {
  .front-top-page #appeal { min-height: clamp(560px, 46vw, 860px) !important; background-position: center 32% !important; }
  .front-top-page #appeal-in { min-height: clamp(560px, 46vw, 860px); }
}

/* sg-hero-fix6: ツアー写真(上半分が空)用。PCは見出しと入口を空の部分(上)に置き、人物が隠れないようにする */
@media screen and (min-width: 641px) {
  .front-top-page #appeal { min-height: clamp(560px, 52vw, 980px) !important; background-position: center 24% !important; }
  .front-top-page #appeal-in { min-height: clamp(560px, 52vw, 980px); justify-content: flex-start; }
  .front-top-page .appeal::before { background: linear-gradient(180deg, rgba(5,22,48,.62) 0%, rgba(5,22,48,.3) 34%, rgba(5,22,48,0) 55%); }
  .sg-hero { padding-top: 72px; }
}

/* sg-green: 全体の基調を緑にそろえる(2026-11-19)。トップ見出しの小見出し・入口の小文字を、暖色から薄い緑へ */
.sg-hero-kicker, .sg-hero-enter small { color: #c9f0d6; }
.sg-hero-enter a { border-color: rgba(201,240,214,.6); }

/* sg-banner-bottom: スマホ下部メニューを廃止(ヘッダー側へ移動)したので、固定バナーを画面の最下部に固定する */
.sg-line-banner { bottom: 0 !important; padding-bottom: env(safe-area-inset-bottom, 0px); }

/* sg-gototop: 固定バナーの上に「ページ上部へ」ボタンが重ならないよう持ち上げる */
@media screen and (max-width: 767px) { #go-to-top { bottom: 84px !important; } }

/* sg-green-revert: 全体の緑は戻し、リンクだけ緑(Cocoon設定)。トップの小文字は元の暖色へ */
.sg-hero-kicker, .sg-hero-enter small { color: #ffe6b0; }
.sg-hero-enter a { border-color: rgba(255,255,255,.5); }
.sg-hero-enter a.line small { color: #e8fff1; }

/* sg-close-left: 固定バナーの✕を左上に寄せ、右下の「ページ上部へ」ボタンと重ならないようにする */
@media screen and (max-width: 767px) { .sg-line-banner-close { left: 0 !important; right: auto !important; } }
