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

/* ================================================================
   Hameln — ゆるく生きてくビジネスマンへ
   ひとことメモの壁。正は D:/Project_Schole/hameln/theme.css (ここへ貼る)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&family=Zen+Kurenaido&display=swap');

:root {
  --hw-paper: #f4f1ea;
  --hw-card: #fffdf8;
  --hw-ink: #2b2a27;
  --hw-mute: #8a857a;
  --hw-line: #e3ddd0;
  --hw: #c9a86a; /* 大項目の色。ページごとに上書き */
  --hw-head: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  --hw-hand: 'Zen Kurenaido', 'Zen Maru Gothic', sans-serif;
}
body.page-id-167 { --hw: #c9a86a; } /* ビジネスマナー */
body.page-id-169 { --hw: #6a9fc9; } /* 文章の書き方 */
body.page-id-170 { --hw: #c96a8a; } /* アピアランス */
body.page-id-171 { --hw: #6ab08a; } /* 言葉づかい */
body.page-id-172 { --hw: #8a7ac9; } /* 冠婚葬祭 */
body.page-id-173 { --hw: #e08a4a; } /* 話のネタ */

body { background: var(--hw-paper); color: var(--hw-ink); }

/* ---- ヘッダー ---- */
#header-container, #header { background: transparent; }
.header-container-in { padding: 26px 0 0; }
.logo-header, .logo-header .site-name { text-align: center; }
.site-name-text, #header .site-name-text, .site-name a { font-family: var(--hw-hand) !important; font-size: 46px; letter-spacing: .06em; color: var(--hw-ink) !important; line-height: 1.1; }
.tagline { font-family: var(--hw-head); font-weight: 500; font-size: 13px; color: var(--hw-mute) !important; letter-spacing: .18em; margin: 6px 0 0; }
#header-container .header-container-in { color: var(--hw-ink); }
.logo-header { padding: 0; }

/* ---- グローバルナビ: タブ ---- */
#navi { background: transparent !important; border-bottom: 2px solid var(--hw-ink); margin-top: 16px; }
.navi-in > ul { display: flex; justify-content: center; flex-wrap: nowrap; }
.navi-in > ul > li { height: auto; line-height: 1; width: auto !important; min-width: 0 !important; flex: none; }
.navi-in > ul > li > a { font-family: var(--hw-head); font-weight: 700; font-size: 14px; color: var(--hw-mute) !important; padding: 12px 14px; height: auto; line-height: 1; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.navi-in > ul > li > a:hover, .navi-in > ul > li.current-menu-item > a, .navi-in > ul > li.current_page_item > a { color: var(--hw-ink) !important; background: transparent !important; border-bottom-color: var(--hw); }
.navi-in > ul .sub-caption { display: none; }
.navi-in > ul .caption-wrap, .navi-in > ul .item-label { display: inline; }

/* ---- 本文エリア: 1カラム・紙 ---- */
.wrap { max-width: 760px; }
.main { background: transparent; border: 0; padding: 20px 0 60px; }
.article { background: transparent; }
.entry-title { font-family: var(--hw-head); font-weight: 900; font-size: 26px; color: var(--hw-ink); position: relative; padding-left: 16px; }
.entry-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 6px; border-radius: 3px; background: var(--hw); }
.entry-content { margin-top: 10px; }
.date-tags, .author-info, .sns-share, .sns-follow, .breadcrumb, .footer-meta, .page-navi, .ad-area, .pr-label { display: none !important; }
#sidebar { display: none; }
.content { max-width: 100%; }

/* ---- メモの壁 ---- */
.hw-wall { max-width: 100%; font-size: 16px; line-height: 1.6; }
.hw-lead { color: var(--hw-mute); font-size: 14px; margin: 0 0 16px 16px; }
.hw-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.hw-filter input { flex: 1 1 200px; padding: 9px 12px; border: 1px solid var(--hw-line); border-radius: 8px; font-size: 15px; background: #fff; }
.hw-filter input:focus { outline: 2px solid var(--hw); border-color: transparent; }
.hw-tag { border: 1px solid var(--hw-line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: #5c574d; font-family: var(--hw-head); font-weight: 500; }
.hw-tag.on { background: var(--hw-ink); color: #fff; border-color: var(--hw-ink); }
.hw-tip { display: block; background: var(--hw-card); border: 1px solid var(--hw-line); border-left: 5px solid var(--hw); border-radius: 8px; margin: 0 0 10px; box-shadow: 0 1px 2px rgba(60, 50, 30, .06); }
.hw-tip summary { list-style: none; cursor: pointer; padding: 14px 16px; font-family: var(--hw-head); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hw-tip summary::-webkit-details-marker { display: none; }
.hw-tip summary::after { content: "＋"; color: #b8b2a5; font-weight: 500; flex: none; }
.hw-tip[open] summary::after { content: "－"; }
.hw-tip[open] { box-shadow: 0 6px 18px rgba(60, 50, 30, .10); }
.hw-more { margin: 0 16px; padding: 10px 0 12px; border-top: 1px dashed var(--hw-line); font-family: var(--hw-hand); font-size: 18px; color: #3f3b34; }
.hw-tags { padding: 0 16px 10px; font-size: 12px; color: #a8a295; }
.hw-tags span { margin-right: 8px; }
.hw-none { color: var(--hw-mute); display: none; }


/* ================================================================
   住人 (水墨画の野菜)。画像は hameln/chars.py が切り出して upload したもの
   ================================================================ */
body.page-id-167 { --hw-char: url(https://hameln-works.com/wp-content/uploads/2026/10/hw-retasu.png); }   /* マナー: おつかレタス */
body.page-id-169 { --hw-char: url(https://hameln-works.com/wp-content/uploads/2026/10/hw-negi.png); }     /* 文章: ごめんネギ */
body.page-id-170 { --hw-char: url(https://hameln-works.com/wp-content/uploads/2026/10/hw-kabu.png); }     /* アピアランス: あったかぶ */
body.page-id-171 { --hw-char: url(https://hameln-works.com/wp-content/uploads/2026/10/hw-nasu.png); }     /* 言葉づかい: 知らんがナス */
body.page-id-172 { --hw-char: url(https://hameln-works.com/wp-content/uploads/2026/10/hw-shouga.png); }   /* 冠婚葬祭: しょうがないね (よろこんぶは未発売+慶事限定なので使わない) */
body.page-id-173 { --hw-char: url(https://hameln-works.com/wp-content/uploads/2026/10/hw-kabocha.png); }  /* 話のネタ: ほんまかぼちゃ */

/* 紙の目 */
body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ヘッダー: 看板の横に寝そべりゴーヤ。右肩に朱印 */
.logo-header { position: relative; display: inline-block; padding: 0 70px 0 120px !important; }
.logo-header::before { content: ""; position: absolute; left: 0; bottom: 4px; width: 110px; height: 56px; background: url(https://hameln-works.com/wp-content/uploads/2026/10/hw-goyalie.png) no-repeat center bottom / contain; }
.logo-header::after { content: "ゆる"; position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 2px solid #c8463a; border-radius: 6px; color: #c8463a; font-family: var(--hw-head); font-weight: 900; font-size: 15px; line-height: 44px; text-align: center; transform: rotate(8deg); opacity: .8; letter-spacing: .05em; }
#header .site-name { text-align: center; }

/* 見出しの右にそのページの住人 */
.entry-title { padding-right: 96px; min-height: 64px; }
.entry-title::after { content: ""; position: absolute; right: 8px; bottom: -8px; width: 72px; height: 104px; background: var(--hw-char) no-repeat center bottom / contain; }

/* もうひとこと: 住人がしゃべる吹き出し */
.hw-more { position: relative; margin: 0 16px 0 16px; padding: 10px 0 12px 56px; min-height: 48px; }
.hw-more::before { content: ""; position: absolute; left: 0; top: 10px; width: 44px; height: 44px; background: var(--hw-char) no-repeat center top / contain; }

/* モバイル下部: 中身のないサイドバーボタンは出さない */
.mobile-menu-buttons .sidebar-menu-button { display: none !important; }
.hw-none { padding-left: 56px; min-height: 60px; background: url(https://hameln-works.com/wp-content/uploads/2026/10/hw-nasu.png) no-repeat left center / 48px; }

@media screen and (max-width: 834px) {
  .logo-header { padding: 0 56px 0 92px !important; }
  .logo-header::before { width: 86px; height: 44px; }
  .logo-header::after { width: 38px; height: 38px; line-height: 38px; font-size: 13px; }
  .entry-title { padding-right: 84px; }
  .entry-title::after { width: 62px; height: 90px; }
}


/* 節見出し (話のネタ の 時事/うんちく) */
.entry-content .hw-sec, .hw-sec { font-family: var(--hw-head); font-weight: 900; font-size: 18px; margin: 26px 0 6px; padding: 0 0 0 12px; border: 0; border-left: 4px solid var(--hw); color: var(--hw-ink) !important; background: transparent !important; border-radius: 0; line-height: 1.4; }
.hw-sec:first-child { margin-top: 0; }
.hw-sec-note { font-size: 13px; color: var(--hw-mute); margin: 0 0 12px 16px; }

/* ---- トップ: 6つの入口 ---- */
.hw-top-lead { font-family: var(--hw-head); font-weight: 700; font-size: 18px; line-height: 1.8; color: var(--hw-ink); margin: 4px 0 22px 4px; }
.hw-doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hw-door { position: relative; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--hw-card); border: 1px solid var(--hw-line); border-left: 6px solid var(--hw); border-radius: 10px; padding: 14px 14px 14px 12px; text-decoration: none !important; color: var(--hw-ink) !important; box-shadow: 0 1px 2px rgba(60,50,30,.06); transition: transform .12s, box-shadow .12s; }
.hw-door:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60,50,30,.12); }
.hw-door img { grid-row: 1 / 3; width: 76px; height: 96px; object-fit: contain; object-position: bottom; }
.hw-door-t { font-family: var(--hw-head); font-weight: 900; font-size: 19px; }
.hw-door-s { font-family: var(--hw-hand); font-size: 15px; color: #5c574d; line-height: 1.4; }
.hw-door-n { position: absolute; right: 12px; top: 10px; font-size: 11px; color: #b8b2a5; font-family: var(--hw-head); }
.hw-top-note { margin: 28px 4px 0; font-size: 13px; color: var(--hw-mute); }
body.page-id-225 .entry-title { display: none; }
@media screen and (max-width: 834px) {
  .hw-doors { grid-template-columns: 1fr; }
  .hw-door { grid-template-columns: 64px 1fr; }
  .hw-door img { width: 64px; height: 84px; }
}

/* ---- フッター ---- */
#footer { background: transparent; color: var(--hw-mute); border-top: 1px solid var(--hw-line); margin-top: 20px; }
#footer a { color: var(--hw-mute); }
.footer-bottom { font-size: 12px; }
.go-to-top-button { background: var(--hw-ink); color: #fff; border-radius: 50%; }

/* ---- モバイル ---- */
@media screen and (max-width: 834px) {
  .site-name-text { font-size: 38px; }
  .navi-in > ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 8px; -webkit-overflow-scrolling: touch; }
  .navi-in > ul > li > a { white-space: nowrap; padding: 12px 10px; font-size: 13px; }
  .main { padding: 14px 12px 60px; }
  .entry-title { font-size: 22px; }
  .mobile-menu-buttons { background: var(--hw-card); border-top: 1px solid var(--hw-line); }
  .mobile-menu-buttons .menu-button > a { color: var(--hw-ink); }
}
@media screen and (max-width: 480px) {
  .site-name-text { font-size: 34px; }
}

/* ---- 末尾: LINE スタンプ紹介 (控えめに) ---- */
.hw-stamp { max-width: 720px; margin: 44px auto 0; padding: 18px 16px 14px; border-top: 1px dashed var(--hw-line); }
.hw-stamp-lead { font-family: var(--hw-hand); font-size: 15px; color: var(--hw-mute); margin: 0 0 12px 2px; }
.hw-stamp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-stamp-item { display: grid; grid-template-columns: 40px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 6px 12px 6px 8px; background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 999px; text-decoration: none !important; color: var(--hw-ink) !important; font-size: 13px; line-height: 1.25; transition: transform .12s, box-shadow .12s; }
.hw-stamp-item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(60,50,30,.12); }
.hw-stamp-item img { grid-row: 1 / 3; width: 40px; height: 44px; object-fit: contain; object-position: bottom; }
.hw-stamp-item b { font-family: var(--hw-head); font-weight: 700; }
.hw-stamp-item i { font-style: normal; font-size: 11px; color: var(--hw-mute); }
.hw-stamp-item.is-mine { border-color: var(--hw); box-shadow: inset 0 0 0 1px var(--hw); }
.hw-stamp-item.is-mine b::after { content: " ←このページの住人"; font-size: 10px; color: var(--hw); font-weight: 400; }

/* ---- フッター: 白字が紙の上で読めなかったので墨色に ---- */
#footer { background: #e9e5dc !important; color: var(--hw-ink) !important; border-top: 2px solid var(--hw-ink); margin-top: 32px; }
#footer .footer-in, #footer .footer-bottom, #footer .footer-top { color: var(--hw-ink) !important; }
#footer .footer-site-name, #footer .footer-site-name a, #footer .site-name-text, #footer .site-name a { font-family: var(--hw-hand) !important; color: var(--hw-ink) !important; font-size: 26px; }
#footer a, #footer .navi-footer-in a, #footer .menu-item a { color: var(--hw-ink) !important; font-family: var(--hw-head); font-weight: 700; font-size: 14px; }
#footer a:hover { color: var(--hw) !important; }
#footer .copyright, #footer .footer-bottom-logo, #footer .copyright a { color: var(--hw-mute) !important; font-size: 12px; }
