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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* 宿泊予約CTA */
.hotel-affiliate-cta {
  position: relative;
  margin: 2.5rem 0 2.25rem;
  padding: 0 1.5rem 1.5rem;
  border: 2px solid #298c60;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f2f9f6 100%);
  box-shadow: 0 8px 24px rgba(41, 140, 96, 0.14);
}

.hotel-affiliate-cta__title {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: calc(100% + 0.5rem);
  padding: 0.48rem 1rem 0.48rem 2.15rem;
  border-radius: 6px 6px 6px 0;
  background: #298c60;
  box-shadow: 0 5px 14px rgba(41, 140, 96, 0.24);
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: left;
}

/* Cocoon の .article p より詳細度を上げて余白と左寄せを確定させる */
.hotel-affiliate-cta > .hotel-affiliate-cta__title {
  margin: -1.05rem 0 1.05rem -0.25rem;
  text-align: left;
}

.hotel-affiliate-cta__title::before {
  position: absolute;
  top: calc(0.48rem + 0.7em);
  left: 0.85rem;
  width: 0;
  height: 0;
  border-top: 6px solid #fff;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: "";
  transform: translateY(-50%);
}

.hotel-affiliate-cta__note {
  margin-top: 0;
  color: #53635c;
  font-size: 0.875rem;
}

.hotel-affiliate-buttons {
  margin-top: 1.25rem;
  margin-bottom: 0;
  gap: 1rem;
}

.hotel-affiliate-buttons > .wp-block-column {
  display: flex;
}

.hotel-affiliate-button {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
}

.hotel-affiliate-button > a {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 7px 15px rgba(41, 140, 96, 0.24);
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  vertical-align: middle;
}

.hotel-affiliate-button > a::before {
  position: absolute;
  top: -180px;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: #fff;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: rotate(45deg);
  animation: hotel-affiliate-button-shine 3s ease-in-out infinite;
}

.hotel-affiliate-button > a:hover,
.hotel-affiliate-button > a:focus {
  box-shadow: 0 9px 19px rgba(41, 140, 96, 0.3);
  filter: brightness(0.97);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.hotel-affiliate-button--rakuten > a {
  background: linear-gradient(135deg, #247a54 0%, #1f6f4b 100%);
}

.hotel-affiliate-button--jalan > a {
  background: linear-gradient(135deg, #c45100 0%, #a84308 100%);
  box-shadow: 0 7px 15px rgba(196, 81, 0, 0.24);
}

.hotel-affiliate-button--jalan > a:hover,
.hotel-affiliate-button--jalan > a:focus {
  box-shadow: 0 9px 19px rgba(196, 81, 0, 0.3);
}

.hotel-affiliate-code-placeholder {
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px dashed #66a98b;
  border-radius: 12px;
  background: #f2f9f6;
  color: #365548;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

@keyframes hotel-affiliate-button-shine {
  0% {
    opacity: 0;
    transform: scale(0) rotate(45deg);
  }

  80% {
    opacity: 0.5;
    transform: scale(0) rotate(45deg);
  }

  81% {
    opacity: 1;
    transform: scale(4) rotate(45deg);
  }

  100% {
    opacity: 0;
    transform: scale(50) rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotel-affiliate-button > a {
    transition: none;
  }

  .hotel-affiliate-button > a::before {
    animation: none;
  }
}

/* ============================================================
   トップページ調整案 2026-09-08
   - ヘッダーは詳細ページのCocoon共通デザインを踏襲
   - ブランドグリーンは実測値 #298c60 に統一
   - トップ本文は余白と写真を生かす編集レイアウト
   ============================================================ */
:root {
  --travel-green: #298c60;
  --travel-green-dark: #1f6f4b;
  --travel-green-line: #009250;
  --travel-yellow: #edad0b;
  --travel-paper: #f7f4ed;
  --travel-surface: #fffdf8;
  --travel-ink: #18322c;
  --travel-muted: #596963;
  --travel-line: #d9d4c8;
}

/* トップだけでヘッダー寸法を変えず、詳細ページと同じCocoon設定へ戻す */
body.home #header-container {
  border-bottom: 0;
  background: #fff;
}

body.home #header-in {
  padding-top: 0;
  padding-bottom: 0;
}

body.home .site-description {
  margin-bottom: initial;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

body.home .logo-image {
  max-height: none;
  width: auto;
}

body.home #navi {
  background-color: var(--travel-green);
}

body.home #navi .navi-in > ul:first-of-type {
  width: auto;
  max-width: none;
  margin: 0;
}

body.home #navi .navi-in > ul:first-of-type > li {
  flex: none;
  min-width: auto;
}

body.home #navi .navi-in > ul:first-of-type > li > a {
  min-height: 60px;
  padding: 0;
  color: #fff;
  font-size: 16px;
  font-weight: inherit;
  letter-spacing: normal;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

body.home #navi .navi-in > ul:first-of-type > li > a:hover,
body.home #navi .navi-in > ul:first-of-type > li > a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* 本文全体 */
body.home {
  background: var(--travel-paper);
  color: var(--travel-ink);
}

body.home #main {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.home #main #post-940 {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.home #post-940 .date-tags {
  display: none;
}

body.home #post-940 .entry-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 3rem) clamp(0.9rem, 2.4vw, 2.25rem) clamp(3rem, 6vw, 6rem);
}

/* ヒーロー：暗い全面オーバーレイをやめ、見出しと写真を分ける */
body.home #post-940 .entry-content > .wp-block-cover:first-child {
  display: grid;
  grid-template-columns: minmax(390px, 0.9fr) minmax(480px, 1.1fr);
  min-height: clamp(440px, 34vw, 510px);
  align-items: stretch;
  gap: clamp(2.25rem, 4vw, 4rem);
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  isolation: auto;
}

body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-cover__image-background {
  position: relative;
  inset: auto;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.98) brightness(1.04);
  transform: none;
}

body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-cover__background {
  display: none;
}

body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: inherit;
  align-items: center;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-heading {
  max-width: 9.5em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--travel-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(2.3rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.4;
  text-align: left;
  text-shadow: none;
}

body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-heading::before {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--travel-green);
  content: "—  車なしで行ける、日本の旅";
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* ヒーロー直下の案内文 */
body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph {
  max-width: 720px;
  margin: clamp(2.4rem, 5vw, 4.5rem) auto clamp(4rem, 8vw, 7rem);
  color: var(--travel-muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 2;
  text-align: center;
}

/* 見出し：Cocoonの緑と黄を引き継ぎつつ装飾を抑える */
body.home #post-940 .entry-content > h2.wp-block-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: clamp(4rem, 7vw, 6.5rem) 0 clamp(1.4rem, 2.6vw, 2rem);
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  color: var(--travel-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(1.55rem, 2.35vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.4;
}

body.home #post-940 .entry-content > h2.wp-block-heading::before {
  display: block;
  flex: 0 0 auto;
  width: 4px;
  height: 1.65em;
  border-radius: 0;
  background: linear-gradient(180deg, var(--travel-yellow) 0 32%, var(--travel-green-line) 32% 100%);
  content: "";
}

body.home #post-940 .entry-content > h2.wp-block-heading::after {
  display: block;
  flex: 1 1 auto;
  height: 1px;
  margin-left: 0.25rem;
  background: var(--travel-line);
  content: "";
}

/* 記事カード：均一な浮遊カード感を抑え、写真と文字を素直に見せる */
body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin: 0;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard > br {
  display: none;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard > .blogcard-wrap {
  display: block;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--travel-line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--travel-surface);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:hover,
body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:focus {
  border-color: var(--travel-green);
  box-shadow: 0 12px 26px rgba(31, 111, 75, 0.1);
  transform: translateY(-2px);
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard {
  display: grid;
  grid-template-columns: minmax(140px, 38%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  height: 100%;
  min-height: 188px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-thumbnail {
  grid-row: 1 / 3;
  width: auto;
  height: 100%;
  margin: 0;
  float: none;
  overflow: hidden;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:hover .blogcard-thumbnail img,
body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:focus .blogcard-thumbnail img {
  transform: scale(1.025);
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-content {
  min-width: 0;
  width: auto;
  margin: 0;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.45rem) 0;
  float: none;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-title {
  width: auto;
  overflow: hidden;
  color: var(--travel-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.58;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-snippet {
  display: -webkit-box;
  margin-top: 0.6rem;
  overflow: hidden;
  color: var(--travel-muted);
  font-size: 0.8rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-footer {
  display: flex;
  grid-column: 2;
  width: auto;
  align-items: center;
  min-height: 2.65rem;
  margin: 0;
  padding: 0.25rem clamp(1rem, 2vw, 1.45rem) 0.8rem;
  float: none;
  clear: none;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-site {
  display: none;
}

body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-date {
  margin-left: auto;
  color: #6d8178;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* 最初のセクションの先頭記事だけを特集枠として大きく見せる */
body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type {
  grid-column: span 2;
}

body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard {
  grid-template-columns: minmax(260px, 46%) minmax(0, 1fr);
  min-height: 252px;
}

body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard-thumbnail img {
  min-height: 252px;
}

body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard-title {
  font-size: clamp(1.08rem, 1.8vw, 1.4rem);
}

body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard-snippet {
  font-size: 0.88rem;
  -webkit-line-clamp: 3;
}

body.home #post-940 a:focus-visible {
  outline-color: var(--travel-yellow);
}

@media screen and (max-width: 1023px) {
  body.home #post-940 .entry-content > .wp-block-cover:first-child {
    grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
    gap: 2.25rem;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-heading {
    font-size: clamp(2.2rem, 4.5vw, 2.9rem);
  }
}

@media screen and (max-width: 834px) {
  body.home #post-940 .entry-content {
    padding-top: 2.5rem;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0.75rem;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-cover__image-background {
    order: 2;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container {
    order: 1;
    width: 100%;
    min-height: 0;
    padding: 1.5rem 0 2rem;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-heading {
    max-width: 10em;
    font-size: clamp(2.25rem, 7vw, 3.15rem);
  }

  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard {
    grid-template-columns: 1fr;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type {
    grid-column: auto;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard,
  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard {
    grid-template-columns: minmax(145px, 37%) minmax(0, 1fr);
    min-height: 174px;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard-thumbnail img,
  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-thumbnail img {
    min-height: 174px;
  }
}

@media screen and (max-width: 480px) {
  body.home #post-940 .entry-content {
    padding: 1.6rem 0.85rem 4rem;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container {
    padding: 1rem 0 1.5rem;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-heading {
    max-width: 100%;
    font-size: clamp(1.65rem, 8.2vw, 2.05rem);
    line-height: 1.5;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child .wp-block-heading::before {
    margin-bottom: 0.75rem;
    font-size: 0.65rem;
  }

  body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph {
    margin: 1.8rem auto 4rem;
    font-size: 0.95rem;
    line-height: 1.9;
    text-align: left;
  }

  body.home #post-940 .entry-content > h2.wp-block-heading {
    font-size: 1.38rem;
  }

  body.home #post-940 .entry-content > h2.wp-block-heading::after {
    display: none;
  }

  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard,
  body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 144px;
  }

  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-thumbnail img,
  body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard-thumbnail img {
    min-height: 144px;
  }

  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-content {
    padding: 0.8rem 0.8rem 0;
  }

  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-title,
  body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard-title {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-snippet,
  body.home #post-940 .entry-content > .wp-block-cover:first-child + .wp-block-paragraph + h2 + .wp-block-cocoon-blocks-blogcard > .blogcard-wrap:first-of-type .blogcard-snippet {
    display: none;
  }

  body.home #post-940 .entry-content > .wp-block-cocoon-blocks-blogcard .blogcard-footer {
    min-height: 1.8rem;
    padding: 0.1rem 0.8rem 0.55rem;
  }
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  .hotel-affiliate-cta {
    margin-top: 2.25rem;
    padding: 0 0.875rem 1.125rem;
    border-radius: 13px;
  }

  .hotel-affiliate-cta > .hotel-affiliate-cta__title {
    margin: -1rem 0 0.9rem -0.225rem;
  }

  .hotel-affiliate-cta__title {
    max-width: calc(100% + 0.45rem);
    padding: 0.45rem 0.85rem 0.45rem 2rem;
    font-size: 0.9rem;
  }

  .hotel-affiliate-cta__title::before {
    top: calc(0.45rem + 0.7em);
    left: 0.8rem;
  }

  .hotel-affiliate-buttons {
    gap: 0.75rem;
  }

  .hotel-affiliate-button > a {
    min-height: 54px;
  }
}
