@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){
  /*必要ならばここにコードを書く*/
}

/*=============以下追加分==============*/

/* 導入文 */
.trip-intro{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}

/* 県名等タグ */
.trip-tags{
  margin: 6px 0 14px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

/* ===== 折りたたみ外枠 ===== */
.trip-toggle{
  position: absolute;
  left: -9999px;
}

.trip-wrap{
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 0;
  margin: 12px 0 18px;
  background: #fff;
}

/* 見出し */
.trip-heading{
  font-size: 14px;
  font-weight: 600;
  color: #7b746b;
  margin: 0 0 8px;

  padding: 8px 12px;
  background: #faf8f3;
  border-bottom: 1px solid #f2ede5;
}

/* 折りたたみ本体 */
.trip-box{
  position: relative;
  max-height: 10em;
  overflow: hidden;
  padding: 0px 14px 8px;
  font-size: 16px;
}

.trip-box::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3em;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 60%,
    #fff 100%
  );
}

.trip-toggle:checked ~ .trip-box{
  max-height: none;
}

.trip-toggle:checked ~ .trip-box::after{
  display: none;
}

/* 下端トグル */
.trip-footer-toggle{
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 6px 0 2px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.trip-footer-toggle:hover{
  color: #333;
  text-decoration: underline;
}

.trip-footer-toggle .open-text{
  display: inline;
}

.trip-footer-toggle .close-text{
  display: none;
}

.trip-toggle:checked ~ .trip-footer-toggle .open-text{
  display: none;
}

.trip-toggle:checked ~ .trip-footer-toggle .close-text{
  display: inline;
}

/* ===== 日付（旅程） ===== */
.trip-day{
  font-weight: 700;
  margin: 12px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.trip-day-title{
  font-size: 14px;
  color: #111;
}

.trip-day-date{
  font-size: 12px;
  color: #777;
  font-weight: 500;
  white-space: nowrap;
}

/* ===== タイムライン ===== */
.trip-row{
  display: grid;
  grid-template-columns: 64px 14px 1fr;
  column-gap: 10px;
  align-items: center;
}

.trip-time{
  font-size: 12px;
  color: #111;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  margin-left: 25px;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  line-height: 1.6;
  min-height: 18px;
}

.trip-rail{
  position: relative;
  min-height: 20px;
}

.trip-rail::before{
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 2px;
  background: #e6e6e6;
  transform: translateX(-50%);
  z-index: 1;
}

.trip-first .trip-rail::before{
  top: 50%;
}

.trip-last .trip-rail::before{
  bottom: 10px;
}

.trip-stop .trip-rail::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cfcfcf;
  transform: translateX(-50%);
  z-index: 2;
}

.trip-main{
  line-height: 1.8;
  min-width: 0;
}

.trip-move .trip-main{
  opacity: .9;
  padding: 4px 0 8px;
}

.trip-chip{
  display: inline-block;
  font-size: 12px;
  border: none;
  background: transparent;
  color: #777;
  padding: 0;
  margin-right: 8px;
  white-space: nowrap;
}

.trip-dur{
  font-size: 12px;
  color: #777;
  white-space: nowrap;
}

/* ===== 本文テンプレ ===== */
.day-section{
  margin: 18px 0 10px;
}

.day-title{
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid #e9e9e9;
}

.day-title-main{
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.day-title-date{
  font-size: 12px;
  font-weight: 500;
  color: #777;
  white-space: nowrap;
}

.spot-section{
  padding: 12px 0 14px;
  border-bottom: 1px dashed #e9e9e9;
}

.spot-title{
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px;
}

.spot-title::before{
  content: "●";
  font-size: 10px;
  margin-right: 8px;
  color: #c0c0c0;
  position: relative;
  top: -3px;
}

.spot-text{
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  margin: 0 0 10px;
  word-break: break-word;
}

/* ===== 写真 ===== */
.spot-photo{
  margin: 10px 0 2px;
}

.spot-photo img{
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 12px;
}

/* キャプション */
.spot-cap{
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}

/* 2列グリッド */
.photo-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0 2px;
}

.photo-grid a{
  border-radius: 12px;
  display: block;
  aspect-ratio: 4 / 3;
}

.photo-grid img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ===== ライトボックス ===== */
.lb-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 99999;
  display: none;
  touch-action: pan-y;
}

.lb-overlay.is-open{
  display: block;
}

.lb-inner{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 14px 22px;
  overflow: hidden;
  z-index: 1;
}

.lb-img{
  max-width: min(96vw, 1100px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.lb-top{
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  z-index: 3;
  pointer-events: auto;
}

.lb-close{
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
}

.lb-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 3;
  pointer-events: auto;
}

.lb-prev{
  left: 10px;
}

.lb-next{
  right: 10px;
}

.lb-count{
  font-size: 12px;
  color: #fff;
  opacity: .8;
}

.js-lb-gallery img{
  display: block;
  width: 100%;
  cursor: zoom-in;
}

/* ===== 店舗カード ===== */
.shop-card{
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #fff;
}

.shop-card-title{
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.5;
}

.shop-card-list{
  margin: 0;
  padding: 0;
  border: 1px solid #bfbfbf;
  background: #fff;
}

.shop-card-row{
  display: grid;
  grid-template-columns: 105px 1fr;
}

.shop-card-row + .shop-card-row{
  border-top: 1px solid #bfbfbf;
}

.shop-card-label,
.shop-card-value{
  padding: 6px 9px;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

.shop-card-label{
  background: #f5f5f5;
  color: #666;
  font-weight: 700;
  border-right: 1px solid #bfbfbf;
  white-space: nowrap;
}

.shop-card-value{
  background: #fff;
  color: #222;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.shop-link{
  color: #6a3fb5;
  text-decoration: underline;
  word-break: break-all;
}

.shop-link:hover{
  color: #4f2f8a;
}

.shop-link:visited{
  color: #6a3fb5;
}

@media (max-width: 480px){
  .shop-card{
    padding: 12px;
  }

  .shop-card-row{
    grid-template-columns: 88px 1fr;
  }

  .shop-card-label,
  .shop-card-value{
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.55;
  }
}

.shop-hours{
  display: grid;
  grid-template-columns: 50px 1fr;
  column-gap: 12px;
  row-gap: 2px;
}

.shop-hours-time{
  letter-spacing: 0.02em;
}

/* ===== 費用欄 ===== */
.cost-block{
  margin: 24px 0 14px;
}

.cost-box{
  border: 1px solid #eee7dd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.cost-day{
  padding: 8px 12px;
  background: #faf8f3;
  border-top: 1px solid #f2ede5;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  color: #7b746b;
}

.cost-box > .cost-day:first-child{
  border-top: none;
}

.cost-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 12px;
  align-items: start;
  padding: 4px 12px;
  border-top: 1px solid #f4efe8;
}

.cost-item{
  min-width: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #333;
  word-break: break-word;
}

.cost-yen{
  font-size: 14px;
  line-height: 1.85;
  color: #444;
  white-space: nowrap;
  text-align: right;
}

.cost-sum{
  margin-top: 6px;
  text-align: right;
  color: #444;
  line-height: 1.8;
}

.cost-sum-label{
  font-size: 12px;
  margin-right: 8px;
  color: #777;
}

.cost-sum-price{
  font-size: 20px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.cost-note{
  margin-top: 2px;
  text-align: right;
  font-size: 11px;
  line-height: 1.6;
  color: #999;
}

@media (max-width: 767px){
  .cost-row{
    column-gap: 10px;
    padding: 8px 10px;
  }

  .cost-day{
    padding: 7px 10px;
    font-size: 11px;
  }

  .cost-item,
  .cost-yen{
    font-size: 13px;
    line-height: 1.8;
  }

  .cost-sum-price{
    font-size: 18px;
  }
}

/* 旅程カード内を横スクロール */
.trip-box{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* 各行を折り返さない */
.trip-row{
  min-width: max-content;
}

.trip-main{
  white-space: nowrap;
}

/* 日付行も必要なら折り返さない */
.trip-day{
  min-width: max-content;
  flex-wrap: nowrap;
}
