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

/* yts：フォント（湯と社の場所のページ） */
@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

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

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

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

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

/* yts（湯と社の場所のページ） ここから。道具 _tools/build_wp.py が作る。手で直さない */
.article .yts {
  --sumi: #2b2a28;        /* 本文の字 */
  --usuzumi: #5d5a55;     /* 弱い字 */
  --kinari: #faf7f1;      /* 地の色 */
  --shiro: #ffffff;
  --sen: #e4ddd0;         /* 線 */
  --shu: #b3452c;         /* 朱（神社・お寺） */
  --yu: #2f6f7b;          /* 湯の色（温泉） */
  --credit: #767676;      /* 写真の出どころのリンク（薄いグレー。白地で読める下の限り） */
  --accent: var(--shu);
  color: var(--sumi);
  background: var(--kinari);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
  margin: 0 auto;
  max-width: 760px;
  padding: 0 18px 56px;
  box-sizing: border-box;
}
.article .yts.is-onsen { --accent: var(--yu); }
.article .yts *, .article .yts *::before, .article .yts *::after { box-sizing: border-box; }
.article .yts a { color: var(--accent); text-underline-offset: 3px; }
.article .yts img { max-width: 100%; height: auto; display: block; }

/* パンくず */
.article .yts-pan { font-size: 14px; color: var(--usuzumi); padding: 14px 0 6px; line-height: 1.6; }
.article .yts-pan a { color: var(--usuzumi); text-decoration: none; }
.article .yts-pan span[aria-hidden] { margin: 0 .35em; }

/* 題 */
.article .yts-kind { display: inline-block; font-size: 14px; font-weight: 700; color: var(--shiro); background: var(--accent); padding: 2px 12px; border-radius: 999px; letter-spacing: .08em; }
.article .yts h1 { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700; font-size: 30px; line-height: 1.45; margin: 10px 0 4px; letter-spacing: .04em; }
.article .yts-yomi { font-size: 16px; color: var(--usuzumi); margin: 0 0 12px; }
.article .yts-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.article .yts-tags li { font-size: 14px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 1px 12px; background: var(--shiro); }

/* 写真と、出どころ */
.article .yts-photo { margin: 0 -18px 6px; }
.article .yts-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* 昔の絵は、切らずに全体を見せる */
.article .yts-photo.is-art img { aspect-ratio: auto; object-fit: contain; background: #efe9dc; }
.article .yts-photo figcaption { font-size: 12px; line-height: 1.6; color: var(--credit); padding: 6px 18px 0; text-align: right; }
.article .yts-photo figcaption a { color: var(--credit); text-decoration: underline; text-decoration-color: #c9c9c9; }

/* まとめ */
.article .yts-lead { background: var(--shiro); border-left: 4px solid var(--accent); padding: 14px 16px; margin: 18px 0 26px; border-radius: 0 8px 8px 0; }
.article .yts-lead p { margin: 0; }

/* 見出し */
.article .yts h2 { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 23px; font-weight: 700; line-height: 1.5; margin: 44px 0 14px; padding: 0 0 8px; border-bottom: 2px solid var(--accent); letter-spacing: .05em; }
.article .yts h3 { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 24px 0 6px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article .yts p { margin: 0 0 14px; }

/* 基本の情報 */
.article .yts-info { margin: 0; background: var(--shiro); border: 1px solid var(--sen); border-radius: 8px; overflow: hidden; }
.article .yts-info div { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--sen); }
.article .yts-info div:first-child { border-top: 0; }
.article .yts-info dt { font-weight: 700; color: var(--accent); font-size: 16px; }
.article .yts-info dd { margin: 0; font-size: 16px; line-height: 1.75; }
.article .yts-note { font-size: 14px; color: var(--usuzumi); line-height: 1.7; margin: 8px 0 0; }

/* 近くの場所のカード */
.article .yts-near { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.article .yts-near li a { display: block; background: var(--shiro); border: 1px solid var(--sen); border-radius: 8px; padding: 12px 14px; text-decoration: none; color: var(--sumi); }
.article .yts-near li a b { color: var(--near, var(--yu)); font-size: 17px; }
.article .yts-near li a span { display: block; font-size: 15px; color: var(--usuzumi); line-height: 1.6; }
.article .yts-near.is-jisha { --near: var(--shu); }

/* PR の箱 */
.article .yts-pr { border: 1px solid var(--sen); background: var(--shiro); border-radius: 8px; padding: 14px 16px; margin: 14px 0 0; }
.article .yts-pr-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--usuzumi); border: 1px solid var(--usuzumi); border-radius: 3px; padding: 0 6px; line-height: 1.6; }
.article .yts-pr b { display: block; font-size: 18px; margin: 6px 0 2px; }
.article .yts-pr p { font-size: 15px; margin: 0 0 6px; line-height: 1.7; }

/* 出典 */
.article .yts-src { font-size: 14px; line-height: 1.75; color: var(--usuzumi); padding-left: 1.2em; margin: 0; }
.article .yts-src a { color: var(--usuzumi); word-break: break-all; }

/* トップページ（入口） */
.article .yts-catch { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 18px; color: var(--usuzumi); letter-spacing: .1em; margin: 0 0 14px; }
/* 今の気分は？（押すと開く） */
.article .yts-kibun { background: var(--shiro); border: 1px solid var(--sen); border-radius: 10px; margin: 0 0 10px; overflow: hidden; }
.article .yts-kibun summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; font-weight: 700; font-size: 18px; line-height: 1.6; }
.article .yts-kibun summary::-webkit-details-marker { display: none; }
.article .yts-kibun summary span { font-size: 14px; font-weight: 500; color: var(--usuzumi); white-space: nowrap; }
.article .yts-kibun summary span::after { content: "＋"; display: inline-block; margin-left: 10px; color: var(--accent); font-weight: 700; font-size: 18px; }
.article .yts-kibun[open] summary { border-bottom: 1px solid var(--sen); background: #f6efe4; }
.article .yts-kibun[open] summary span::after { content: "－"; }
.article .yts-kibun .yts-near { padding: 12px; }
/* カードの中の、種類の小さい札（温泉／神社）。温泉と神社がまざる一覧で使う */
.article .yts-near li.is-jisha { --near: var(--shu); }
.article .yts-near li a i { font-style: normal; display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.6; color: var(--shiro); background: var(--near, var(--yu)); border-radius: 999px; padding: 0 9px; margin-right: 8px; vertical-align: 2px; letter-spacing: .06em; }
/* 場所からさがす（大きい入口） */
.article .yts-doors { display: grid; gap: 12px; }
.article .yts .yts-door { display: block; text-decoration: none; color: var(--shiro); background: var(--yu); border-radius: 12px; padding: 18px 18px 16px; }
.article .yts .yts-door.is-jisha { background: var(--shu); }
.article .yts .yts-door.is-uranai { background: var(--sumi); }
.article .yts-door b { display: block; font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 24px; line-height: 1.5; letter-spacing: .06em; }
.article .yts-door span { display: block; font-size: 15px; line-height: 1.7; margin: 4px 0 10px; }
.article .yts-door small { display: inline-block; font-size: 14px; font-weight: 700; color: var(--sumi); background: var(--shiro); border-radius: 999px; padding: 1px 12px; }
.article .yts-door small::after { content: " →"; }
/* これから ふえるもの */
.article .yts-soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.article .yts-soon li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px dashed #cfc6b6; border-radius: 8px; padding: 9px 14px; font-size: 16px; line-height: 1.6; color: var(--usuzumi); }
.article .yts-soon li span { font-size: 13px; white-space: nowrap; }
/* やくそく */
.article .yts-yakusoku { margin: 0 0 14px; padding-left: 1.3em; font-size: 16px; line-height: 1.8; }
.article .yts-yakusoku li { margin: 0 0 6px; }

/* うらない（/uranai/） */
.article .yts-u-form { background: var(--shiro); border: 1px solid var(--sen); border-radius: 12px; padding: 16px 16px 12px; margin: 0 0 20px; }
.article .yts-u-label { font-weight: 700; font-size: 16px; margin: 0 0 6px; }
.article .yts-u-row { display: flex; gap: 8px; margin: 0 0 14px; }
.article .yts-u-row select { flex: 1; min-width: 0; font: inherit; font-size: 17px; line-height: 1.4; padding: 10px 8px; border: 1px solid #cfc6b6; border-radius: 8px; background: #fff; color: var(--sumi); }
.article .yts .yts-u-go { display: block; width: 100%; font: inherit; font-size: 19px; font-weight: 700; letter-spacing: .2em; color: var(--shiro); background: var(--shu); border: 0; border-radius: 999px; padding: 13px 16px; cursor: pointer; }
.article .yts-u-msg { color: var(--shu); font-size: 15px; margin: 10px 0 0; min-height: 1.2em; }
.article .yts-u-big { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 28px; line-height: 1.5; letter-spacing: .08em; margin: 0 0 6px; }
.article .yts-u-big b { border-bottom: 3px solid var(--accent); padding-bottom: 2px; }
.article .yts-near li a .yts-u-why { font-size: 13px; color: var(--near, var(--yu)); margin-top: 4px; }
.article .yts-u-how { padding-left: 1.4em; margin: 0 0 14px; font-size: 16px; line-height: 1.8; }
.article .yts-u-how li { margin: 0 0 4px; }
.article .yts-info dd small { color: var(--usuzumi); font-size: 13px; }

/* 試作のしるし（本番には出さない） */
.article .yts-mock { font-size: 13px; background: #fff6d6; border: 1px dashed #c9a400; color: #6b5700; padding: 6px 10px; border-radius: 6px; margin: 10px 0; line-height: 1.6; }

@media (min-width: 700px) {
.article .yts { font-size: 18px; padding: 0 28px 72px; }
.article .yts h1 { font-size: 38px; }
.article .yts h2 { font-size: 26px; }
.article .yts-photo { margin: 0 0 6px; }
.article .yts-photo img { border-radius: 10px; }
.article .yts-photo figcaption { padding: 6px 0 0; }
.article .yts-near { grid-template-columns: 1fr 1fr; }
.article .yts-doors { grid-template-columns: 1fr 1fr; }
}

/* ここから下は、Cocoon の中で、試作と同じ見た目にするための細工 */
.article .yts { background: transparent; padding: 0; max-width: none; margin: 0; }
.article .yts h2 { background: none; border: 0; border-bottom: 2px solid var(--accent); border-radius: 0; padding: 0 0 8px; margin: 44px 0 14px; font-size: 23px; }
.article .yts h3 { background: none; border: 0; border-left: 4px solid var(--accent); border-radius: 0; padding: 0 0 0 12px; margin: 24px 0 6px; font-size: 18px; }
.article .yts ul, .article .yts ol, .article .yts dl { padding-left: 0; margin-left: 0; }
.article .yts ul.yts-src { padding-left: 1.2em; }
.article .yts ul.yts-yakusoku { padding-left: 1.3em; }
.article .yts ol.yts-u-how { padding-left: 1.4em; }
.article .yts dd { margin-left: 0; }
.article .yts figure { margin-left: 0; margin-right: 0; }
.article .yts .yts-photo { margin: 0 0 6px; }
.article .yts .yts-photo img { border-radius: 10px; }
.article .yts .yts-photo figcaption { padding: 6px 0 0; }
.article .yts .yts-lead { background: var(--kinari); }
.article .yts .yts-kind { margin-top: 4px; }
.article .yts a { text-decoration: underline; }
.article .yts .yts-near li a, .article .yts .yts-pan a { text-decoration: none; }
/* 固定ページでは、日付と書いた人を出さない（場所のページなので） */
body.page .date-tags, body.page .footer-meta { display: none; }
/* 題（h1）は、Cocoon が出す。試作の .yts h1 と同じ大きさにする（Cocoon のスマホの指定は 20px・左右に 16px のあき） */
body.page .entry-title { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700; letter-spacing: .04em; line-height: 1.45; font-size: 30px; padding: 0; margin: 10px 0 8px; }
@media (min-width: 700px) {
  .article .yts h2 { font-size: 26px; }
  body.page .entry-title { font-size: 38px; }
}
/* yts ここまで */
