/*
Theme Name: こんぶ・かつおぶしプロジェクト
Theme URI: https://konbukatsuobushi.com/
Description: こんぶ・かつおぶしプロジェクト専用テーマ。トップの見出し・説明文・会話は「外観 → カスタマイズ」から編集できます。
Version: 1.0.22
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: konbu-katsuobushi
*/

/* ==========================================================
   こんぶ・かつおぶしプロジェクト 共通スタイル
   色を変えたいときは :root の値だけ変えればサイト全体に反映されます
   ========================================================== */
:root {
  --washi: #f6f1e7;        /* 和紙の地色(背景) */
  --washi-deep: #ece4d4;   /* 少し濃い和紙 */
  --sumi: #2a2622;         /* 墨(文字) */
  --sumi-soft: #5c554d;    /* 薄墨(補足文字) */
  --konbu: #3d4a3a;        /* 昆布(深い緑) */
  --katsuo: #b5763a;       /* 鰹節(琥珀) */
  --line: #d8ccb6;         /* 罫線 */
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--serif);
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--washi);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; min-height: 68px; padding-top: 10px; padding-bottom: 10px; gap: 4px 24px;
}
.logo {
  text-decoration: none; font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--konbu) 50%, var(--katsuo) 50%);
  flex-shrink: 0;
}
/* ロゴの文字は「ソザイイネ！」の後でだけ折り返す */
.logo-text > span { display: inline-block; }
/* 「ソザイイネ！」を大きく、ポップな字体で */
.logo-text > span:first-child {
  font-family: "Mochiy Pop One", var(--sans); font-weight: 400;
  font-size: 1.45rem; letter-spacing: 0.04em; margin-right: 0.4em; vertical-align: -0.12em;
}
.nav { display: flex; gap: 28px; font-family: var(--sans); font-size: 0.88rem; }
.nav a { text-decoration: none; color: var(--sumi-soft); white-space: nowrap; }
/* メニュー: 短い言葉(nav-main)+小さな説明(nav-sub) */
.nav { gap: 36px; align-items: flex-start; }
.nav a { display: flex; flex-direction: column; line-height: 1.5; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-main { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--sumi); letter-spacing: 0.1em; }
.nav-sub { font-size: 0.68rem; color: var(--sumi-soft); margin-top: 2px; letter-spacing: 0.02em; }
.nav a:hover .nav-main { color: var(--katsuo); }
.nav a[aria-current="page"] { border-bottom-color: var(--katsuo); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--sumi); }

/* ---------- トップの大見出し ---------- */
.hero { padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero-eyebrow { font-family: var(--sans); font-size: 0.8rem; color: var(--katsuo); letter-spacing: 0.2em; margin: 0 0 20px; }
.hero h1 { font-size: clamp(1.6rem, 5vw, 3.2rem); line-height: 1.5; margin: 0 0 28px; font-weight: 600; }
.hero p { max-width: 34em; color: var(--sumi-soft); margin: 0; }
.hero-tate {
  writing-mode: vertical-rl; font-size: 1.5rem; letter-spacing: 0.25em;
  color: var(--konbu); border-left: 1px solid var(--line); padding-left: 32px; line-height: 1.9;
}

/* ---------- セクション ---------- */
.section { padding: 80px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; gap: 16px; }
.section-head h2 { font-size: 1.5rem; margin: 0; font-weight: 600; }
.section-head a { font-family: var(--sans); font-size: 0.85rem; color: var(--sumi-soft); }

/* ---------- 記事カード ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 32px; }
.card { text-decoration: none; display: block; }
.card-thumb {
  aspect-ratio: 4 / 3; background: var(--washi-deep); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--konbu); margin-bottom: 16px;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-meta { font-family: var(--sans); font-size: 0.78rem; color: var(--sumi-soft); display: flex; gap: 12px; }
.card-cat { color: var(--katsuo); }
.card h3 { font-size: 1.15rem; line-height: 1.6; margin: 6px 0 8px; font-weight: 600; }
.card p { font-size: 0.9rem; color: var(--sumi-soft); margin: 0; line-height: 1.8; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 記事ページ ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.article-meta { font-family: var(--sans); font-size: 0.82rem; color: var(--sumi-soft); display: flex; gap: 14px; margin-bottom: 12px; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.5; margin: 0 0 16px; font-weight: 600; }
.article-lead { color: var(--sumi-soft); font-size: 1.05rem; margin: 0 0 40px; }
.article-eyecatch { margin: 0 0 48px; }
.article-eyecatch .placeholder {
  aspect-ratio: 16 / 9; background: var(--washi-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: var(--konbu);
}
.article h2 { font-size: 1.35rem; margin: 56px 0 16px; padding-left: 14px; border-left: 3px solid var(--katsuo); line-height: 1.6; }
.article p { margin: 0 0 1.6em; }
.article figure { margin: 40px 0; }
.article figcaption { font-family: var(--sans); font-size: 0.8rem; color: var(--sumi-soft); margin-top: 8px; }
.article blockquote { margin: 32px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--line); color: var(--sumi-soft); }
.note-box { background: var(--washi-deep); padding: 20px 24px; font-size: 0.92rem; margin: 32px 0; }
.back-link { display: inline-block; margin-top: 48px; font-family: var(--sans); font-size: 0.88rem; color: var(--sumi-soft); }

/* ---------- このプロジェクトについて ---------- */
.about { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.about h1 { font-size: 2rem; margin: 0 0 40px; font-weight: 600; }
.about h2 { font-size: 1.3rem; margin: 48px 0 12px; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-family: var(--sans); font-size: 0.8rem; color: var(--sumi-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- スマホ表示 ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 24px; font-size: 0.8rem; }
  .nav-sub { display: none; }
  .nav-main { font-size: 0.95rem; }
  .logo { white-space: normal; }
  .logo-text { font-size: 0.82rem; line-height: 1.5; }
  .hero { padding: 56px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-tate { display: none; }
  .section { padding: 56px 0; }
  .article, .about { padding: 48px 16px 72px; }
}

/* ---------- トップの会話(吹き出し) ---------- */
.talk-section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.talk { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.talk-row { display: flex; align-items: flex-start; gap: 16px; }
.talk-right { flex-direction: row-reverse; }
.talk-avatar {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: var(--chara, var(--konbu)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; position: relative;
}
/* 絵の拡大率と中心位置は人物ごとに --zoom / --focus で調整できます */
.talk-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff;
  transform: scale(var(--zoom, 1.05)); transform-origin: var(--focus, 50% 42%);
}
.talk-avatar:has(img) { border: 1px solid var(--line); }
.talk-body { max-width: 560px; }
.talk-right .talk-body { text-align: right; }
.talk-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.talk-name small { font-family: var(--sans); font-weight: 400; font-size: 0.75rem; color: var(--sumi-soft); margin-left: 8px; }
.talk-bubble {
  position: relative; margin: 0; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 20px; line-height: 1.9; font-size: 0.98rem;
  display: inline-block;
}
/* 吹き出しのしっぽ */
.talk-bubble::before, .talk-bubble::after {
  content: ""; position: absolute; top: 18px; border: 8px solid transparent;
}
.talk-left .talk-bubble::before { left: -17px; border-right-color: var(--line); }
.talk-left .talk-bubble::after  { left: -15px; border-right-color: #fff; }
.talk-right .talk-bubble::before { right: -17px; border-left-color: var(--line); }
.talk-right .talk-bubble::after  { right: -15px; border-left-color: #fff; }
/* 人物ごとの色(絵が入るまでの仮の丸) */
.chara-bill     { --chara: #6b7f8e; }
.chara-makoto   { --chara: var(--konbu); --focus: 50% 52%; } /* 帽子の分、顔の位置が低め */
.chara-nancy    { --chara: #a2747a; }
.chara-natsuko  { --chara: var(--katsuo); }
.chara-fuyuhiko { --chara: #5a5470; }
.talk-right .talk-bubble { background: #f0f2ea; }
.talk-right .talk-bubble::after { border-left-color: #f0f2ea; }
/* 全員 */
.talk-all { text-align: center; margin-top: 16px; }
.talk-all .talk-bubble {
  font-size: 1.6rem; font-weight: 600; padding: 70px 64px;
  color: var(--sumi); border: none; border-radius: 0;
  transform: rotate(-1.5deg);
  /* トゲの吹き出し(先が尖り、間が丸くくぼむ)。形は下のSVGで描画 */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 190' preserveAspectRatio='none'%3E%3Cpath d='M150.0 3.0 Q170.1 31.8 206.3 10.0 Q207.2 41.5 253.9 29.9 Q235.6 59.2 285.8 59.8 Q250.9 82.4 297.0 95.0 Q250.9 107.6 285.8 130.2 Q235.6 130.8 253.9 160.1 Q207.2 148.5 206.3 180.0 Q170.1 158.2 150.0 187.0 Q129.9 158.2 93.7 180.0 Q92.8 148.5 46.1 160.1 Q64.4 130.8 14.2 130.2 Q49.1 107.6 3.0 95.0 Q49.1 82.4 14.2 59.8 Q64.4 59.2 46.1 29.9 Q92.8 41.5 93.7 10.0 Q129.9 31.8 150.0 3.0Z' fill='white' stroke='%232a2622' stroke-width='1.5' stroke-linejoin='miter' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.talk-all .talk-bubble::before, .talk-all .talk-bubble::after { content: none; }
@media (max-width: 720px) {
  .talk-section { padding: 56px 0; }
  .talk-avatar { width: 68px; height: 68px; font-size: 1.2rem; }
  .talk-row { gap: 12px; }
  .talk-bubble { font-size: 0.92rem; padding: 12px 16px; }
  .talk-all .talk-bubble { font-size: 1.3rem; }
}


/* ---------- 3つのテーマページの見出し ---------- */
.page-head { margin-bottom: 48px; }
.page-eyebrow { font-family: var(--sans); font-size: 0.85rem; color: var(--katsuo); letter-spacing: 0.3em; margin: 0 0 8px; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.6; margin: 0; font-weight: 600; }

/* ---------- WordPress用の追加 ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.article .wp-block-image, .article figure { margin: 40px 0; }
.article img { height: auto; }
.article ul, .article ol { margin: 0 0 1.6em; padding-left: 1.5em; }
.pagination { margin-top: 56px; display: flex; gap: 12px; justify-content: center; font-family: var(--sans); font-size: 0.9rem; }
.pagination .page-numbers { padding: 4px 10px; text-decoration: none; color: var(--sumi-soft); }
.pagination .current { color: var(--sumi); border-bottom: 2px solid var(--katsuo); }
.about-body > *:first-child { margin-top: 0; }
/* ログイン中に出る管理バーの下にヘッダーを固定 */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- 和紙のテクスチャー(色は --washi のまま、繊維と紙の粒を重ねる) ---------- */
:root { --washi-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.25 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23n)'/%3E%3Cpath d='M162 75Q187 79 210 87' stroke='%23a8946c' stroke-opacity='0.14' stroke-width='0.37' fill='none'/%3E%3Cpath d='M217 35Q226 40 222 58' stroke='%23a8946c' stroke-opacity='0.16' stroke-width='0.87' fill='none'/%3E%3Cpath d='M289 198Q327 199 352 208' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.52' fill='none'/%3E%3Cpath d='M408 90Q396 112 389 132' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.46' fill='none'/%3E%3Cpath d='M340 214Q335 227 331 247' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='0.48' fill='none'/%3E%3Cpath d='M287 263Q264 294 248 307' stroke='%23a8946c' stroke-opacity='0.13' stroke-width='0.77' fill='none'/%3E%3Cpath d='M76 244Q75 255 65 263' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='0.73' fill='none'/%3E%3Cpath d='M297 290Q287 299 262 309' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.74' fill='none'/%3E%3Cpath d='M324 497Q339 522 359 541' stroke='%23a8946c' stroke-opacity='0.14' stroke-width='0.44' fill='none'/%3E%3Cpath d='M59 29Q79 38 109 51' stroke='%23ffffff' stroke-opacity='0.09' stroke-width='0.6' fill='none'/%3E%3Cpath d='M275 442Q245 452 223 465' stroke='%23a8946c' stroke-opacity='0.19' stroke-width='0.88' fill='none'/%3E%3Cpath d='M75 88Q86 100 98 108' stroke='%23a8946c' stroke-opacity='0.08' stroke-width='0.58' fill='none'/%3E%3Cpath d='M185 283Q167 311 149 335' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.84' fill='none'/%3E%3Cpath d='M390 437Q397 456 409 490' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.39' fill='none'/%3E%3Cpath d='M104 81Q113 78 139 87' stroke='%23a8946c' stroke-opacity='0.12' stroke-width='0.36' fill='none'/%3E%3Cpath d='M437 307Q444 314 456 326' stroke='%23a8946c' stroke-opacity='0.18' stroke-width='0.9' fill='none'/%3E%3Cpath d='M233 242Q241 241 256 249' stroke='%23ffffff' stroke-opacity='0.1' stroke-width='0.36' fill='none'/%3E%3Cpath d='M475 264Q465 278 472 290' stroke='%23ffffff' stroke-opacity='0.18' stroke-width='0.73' fill='none'/%3E%3Cpath d='M131 183Q121 197 110 201' stroke='%23a8946c' stroke-opacity='0.11' stroke-width='0.8' fill='none'/%3E%3Cpath d='M492 426Q473 437 445 457' stroke='%23a8946c' stroke-opacity='0.12' stroke-width='0.37' fill='none'/%3E%3Cpath d='M14 140Q13 152 -4 166' stroke='%23ffffff' stroke-opacity='0.2' stroke-width='0.88' fill='none'/%3E%3Cpath d='M182 110Q189 121 207 128' stroke='%23ffffff' stroke-opacity='0.18' stroke-width='0.61' fill='none'/%3E%3Cpath d='M326 400Q328 415 315 421' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='0.45' fill='none'/%3E%3Cpath d='M395 166Q365 167 339 171' stroke='%23ffffff' stroke-opacity='0.17' stroke-width='0.44' fill='none'/%3E%3Cpath d='M64 76Q32 99 14 110' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='0.54' fill='none'/%3E%3Cpath d='M274 65Q267 67 254 67' stroke='%23ffffff' stroke-opacity='0.13' stroke-width='0.83' fill='none'/%3E%3Cpath d='M413 106Q418 120 432 130' stroke='%23a8946c' stroke-opacity='0.13' stroke-width='0.42' fill='none'/%3E%3Cpath d='M455 177Q457 195 444 216' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='0.64' fill='none'/%3E%3Cpath d='M262 9Q270 26 295 31' stroke='%23a8946c' stroke-opacity='0.14' stroke-width='0.75' fill='none'/%3E%3Cpath d='M278 163Q280 177 271 206' stroke='%23a8946c' stroke-opacity='0.11' stroke-width='0.5' fill='none'/%3E%3Cpath d='M386 254Q377 268 353 285' stroke='%23a8946c' stroke-opacity='0.14' stroke-width='0.63' fill='none'/%3E%3Cpath d='M346 226Q356 252 349 270' stroke='%23ffffff' stroke-opacity='0.19' stroke-width='0.49' fill='none'/%3E%3Cpath d='M280 472Q299 483 332 496' stroke='%23a8946c' stroke-opacity='0.11' stroke-width='0.39' fill='none'/%3E%3Cpath d='M335 392Q365 409 388 420' stroke='%23a8946c' stroke-opacity='0.19' stroke-width='0.88' fill='none'/%3E%3Cpath d='M110 476Q119 501 111 514' stroke='%23a8946c' stroke-opacity='0.13' stroke-width='0.63' fill='none'/%3E%3Cpath d='M170 98Q150 112 147 124' stroke='%23a8946c' stroke-opacity='0.08' stroke-width='0.53' fill='none'/%3E%3Cpath d='M312 256Q306 265 289 257' stroke='%23a8946c' stroke-opacity='0.11' stroke-width='0.37' fill='none'/%3E%3Cpath d='M389 135Q400 153 396 160' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.86' fill='none'/%3E%3Cpath d='M285 350Q301 351 309 355' stroke='%23a8946c' stroke-opacity='0.19' stroke-width='0.7' fill='none'/%3E%3Cpath d='M401 42Q436 47 458 54' stroke='%23a8946c' stroke-opacity='0.15' stroke-width='0.86' fill='none'/%3E%3Cpath d='M134 65Q143 73 166 94' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.52' fill='none'/%3E%3Cpath d='M153 380Q147 394 152 413' stroke='%23a8946c' stroke-opacity='0.11' stroke-width='0.36' fill='none'/%3E%3Cpath d='M367 276Q375 283 369 304' stroke='%23ffffff' stroke-opacity='0.13' stroke-width='0.62' fill='none'/%3E%3Cpath d='M417 197Q414 211 394 232' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='0.7' fill='none'/%3E%3Cpath d='M202 174Q205 183 223 183' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.4' fill='none'/%3E%3Cpath d='M421 435Q432 451 452 474' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.6' fill='none'/%3E%3Cpath d='M132 481Q122 521 122 544' stroke='%23a8946c' stroke-opacity='0.12' stroke-width='0.35' fill='none'/%3E%3Cpath d='M191 237Q208 241 225 262' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.57' fill='none'/%3E%3Cpath d='M21 11Q35 23 46 34' stroke='%23ffffff' stroke-opacity='0.16' stroke-width='0.74' fill='none'/%3E%3Cpath d='M440 195Q416 200 405 196' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.81' fill='none'/%3E%3Cpath d='M446 314Q417 329 402 343' stroke='%23a8946c' stroke-opacity='0.18' stroke-width='0.79' fill='none'/%3E%3Cpath d='M413 292Q400 312 380 343' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.55' fill='none'/%3E%3Cpath d='M52 418Q46 442 35 459' stroke='%23a8946c' stroke-opacity='0.08' stroke-width='0.79' fill='none'/%3E%3Cpath d='M374 251Q356 275 353 290' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.5' fill='none'/%3E%3Cpath d='M365 103Q338 103 312 107' stroke='%23a8946c' stroke-opacity='0.16' stroke-width='0.77' fill='none'/%3E%3Cpath d='M308 321Q315 331 329 332' stroke='%23a8946c' stroke-opacity='0.15' stroke-width='0.36' fill='none'/%3E%3Cpath d='M30 134Q19 151 2 176' stroke='%23a8946c' stroke-opacity='0.14' stroke-width='0.61' fill='none'/%3E%3Cpath d='M59 447Q53 439 30 449' stroke='%23a8946c' stroke-opacity='0.18' stroke-width='0.88' fill='none'/%3E%3Cpath d='M225 134Q205 138 196 139' stroke='%23a8946c' stroke-opacity='0.14' stroke-width='0.87' fill='none'/%3E%3Cpath d='M66 410Q50 413 26 425' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='0.36' fill='none'/%3E%3Cpath d='M2 246Q7 259 25 279' stroke='%23a8946c' stroke-opacity='0.18' stroke-width='0.35' fill='none'/%3E%3Cpath d='M375 420Q367 430 351 425' stroke='%23a8946c' stroke-opacity='0.12' stroke-width='0.57' fill='none'/%3E%3Cpath d='M499 295Q499 304 508 330' stroke='%23a8946c' stroke-opacity='0.18' stroke-width='0.51' fill='none'/%3E%3Cpath d='M468 125Q462 138 467 157' stroke='%23ffffff' stroke-opacity='0.19' stroke-width='0.8' fill='none'/%3E%3Cpath d='M315 457Q315 479 306 518' stroke='%23ffffff' stroke-opacity='0.13' stroke-width='0.76' fill='none'/%3E%3Cpath d='M322 143Q305 145 301 148' stroke='%23a8946c' stroke-opacity='0.12' stroke-width='0.76' fill='none'/%3E%3Cpath d='M488 130Q504 148 517 170' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.46' fill='none'/%3E%3Cpath d='M453 249Q448 252 424 257' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.4' fill='none'/%3E%3Cpath d='M171 46Q183 64 192 68' stroke='%23ffffff' stroke-opacity='0.13' stroke-width='0.58' fill='none'/%3E%3Cpath d='M262 188Q275 200 297 195' stroke='%23a8946c' stroke-opacity='0.14' stroke-width='0.7' fill='none'/%3E%3Cpath d='M431 108Q441 118 454 131' stroke='%23ffffff' stroke-opacity='0.18' stroke-width='0.83' fill='none'/%3E%3Cpath d='M11 16Q-14 26 -38 33' stroke='%23a8946c' stroke-opacity='0.13' stroke-width='0.86' fill='none'/%3E%3Cpath d='M413 428Q428 444 458 473' stroke='%23a8946c' stroke-opacity='0.16' stroke-width='0.87' fill='none'/%3E%3Cpath d='M361 324Q365 342 368 378' stroke='%23ffffff' stroke-opacity='0.11' stroke-width='0.86' fill='none'/%3E%3Cpath d='M323 152Q334 165 341 170' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.64' fill='none'/%3E%3Cpath d='M291 194Q278 205 282 223' stroke='%23a8946c' stroke-opacity='0.2' stroke-width='0.7' fill='none'/%3E%3Cpath d='M442 238Q461 252 464 259' stroke='%23a8946c' stroke-opacity='0.08' stroke-width='0.62' fill='none'/%3E%3Cpath d='M337 210Q337 219 321 237' stroke='%23a8946c' stroke-opacity='0.12' stroke-width='0.58' fill='none'/%3E%3Cpath d='M341 99Q322 114 303 140' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='0.8' fill='none'/%3E%3Cpath d='M115 111Q140 132 148 154' stroke='%23a8946c' stroke-opacity='0.11' stroke-width='0.58' fill='none'/%3E%3Cpath d='M333 474Q332 495 341 499' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.38' fill='none'/%3E%3Cpath d='M197 449Q186 479 157 494' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.86' fill='none'/%3E%3Cpath d='M373 16Q380 36 392 62' stroke='%23a8946c' stroke-opacity='0.08' stroke-width='0.5' fill='none'/%3E%3Cpath d='M176 478Q158 477 150 481' stroke='%23ffffff' stroke-opacity='0.18' stroke-width='0.59' fill='none'/%3E%3Cpath d='M25 237Q1 239 -11 246' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='0.58' fill='none'/%3E%3Cpath d='M406 383Q409 392 428 386' stroke='%23a8946c' stroke-opacity='0.17' stroke-width='0.84' fill='none'/%3E%3Cpath d='M170 136Q154 169 147 195' stroke='%23a8946c' stroke-opacity='0.11' stroke-width='0.35' fill='none'/%3E%3Cpath d='M378 458Q345 458 330 467' stroke='%23a8946c' stroke-opacity='0.19' stroke-width='0.87' fill='none'/%3E%3Cpath d='M193 126Q201 139 194 165' stroke='%23ffffff' stroke-opacity='0.17' stroke-width='0.8' fill='none'/%3E%3Cpath d='M386 304Q393 323 405 333' stroke='%23a8946c' stroke-opacity='0.1' stroke-width='0.76' fill='none'/%3E%3Cpath d='M124 32Q119 52 120 54' stroke='%23ffffff' stroke-opacity='0.2' stroke-width='0.5' fill='none'/%3E%3Cpath d='M42 48Q28 60 16 82' stroke='%23a8946c' stroke-opacity='0.15' stroke-width='0.72' fill='none'/%3E%3Cpath d='M374 423Q403 429 420 442' stroke='%23a8946c' stroke-opacity='0.12' stroke-width='0.76' fill='none'/%3E%3Cpath d='M100 124Q120 132 127 138' stroke='%23a8946c' stroke-opacity='0.13' stroke-width='0.9' fill='none'/%3E%3Cpath d='M254 116Q249 134 228 166' stroke='%23a8946c' stroke-opacity='0.18' stroke-width='0.81' fill='none'/%3E%3Cpath d='M457 20Q467 35 488 32' stroke='%23a8946c' stroke-opacity='0.19' stroke-width='0.55' fill='none'/%3E%3Cpath d='M433 225Q429 228 409 245' stroke='%23a8946c' stroke-opacity='0.15' stroke-width='0.47' fill='none'/%3E%3Cpath d='M184 71Q196 84 205 92' stroke='%23a8946c' stroke-opacity='0.08' stroke-width='0.53' fill='none'/%3E%3Cpath d='M339 93Q358 104 366 113' stroke='%23a8946c' stroke-opacity='0.09' stroke-width='0.57' fill='none'/%3E%3Cpath d='M275 320Q289 324 296 331' stroke='%23a8946c' stroke-opacity='0.12' stroke-width='0.87' fill='none'/%3E%3C/svg%3E"); }
body, .site-header {
  background-color: var(--washi);
  background-image: var(--washi-texture);
  background-attachment: fixed;
}

/* ---------- note / Instagram へのリンク(フッター) ---------- */
.site-footer .wrap { align-items: center; }
.sns { display: flex; gap: 24px; flex-wrap: wrap; }
.sns a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--sumi); }
.sns a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.sns-note { display: block; height: 12px; width: auto; } /* note の公式ロゴ */

/* ---------- メニューを白いボタンに(案B・手描き風の歪な枠) ---------- */
.nav { gap: 12px; align-items: stretch; }
.nav a {
  background: var(--btn, #fff); border: none; /* 枠線なし。色はボタンごと(--btn) */
  padding: 12px 32px; transition: background .2s, border-color .2s;
}
/* 雲のようにふわっとした不揃いな丸い形(1つずつ形を変える) */
.nav a:nth-child(1) { border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%; transform: rotate(-0.8deg); }
.nav a:nth-child(2) { border-radius: 55% 45% 58% 42% / 44% 58% 42% 56%; transform: rotate(0.6deg); }
.nav a:nth-child(3) { border-radius: 42% 58% 48% 52% / 56% 42% 58% 44%; transform: rotate(-0.4deg); }
.nav a:hover { filter: brightness(0.96); }
.nav a:hover .nav-main { color: var(--sumi); }
/* ボタンごとの色(淡い色)と、今開いているページの色(少し濃い色) */
.nav a:nth-child(1) { --btn: #e4ebd9; --btn-on: #c9d8b8; } /* 知る: 若草 */
.nav a:nth-child(2) { --btn: #f5e4cb; --btn-on: #ecc999; } /* 見つける: 鰹節 */
.nav a:nth-child(3) { --btn: #e0e5ef; --btn-on: #c3cde0; } /* 動く: 淡い藍 */
.nav a[aria-current="page"] { background: var(--btn-on); }
@media (max-width: 720px) {
  .nav { gap: 8px; }
  .nav a { padding: 6px 16px; }
}

/* ---------- メニューをタイトルの右に並べる ---------- */
@media (min-width: 721px) {
  .site-header .wrap { flex-wrap: nowrap; }
  /* タイトルは「ソザイイネ！」と残りの2行にして横幅を節約 */
  .logo-text > span { display: block; }
  .logo-text > span:first-child { margin-right: 0; }
}
/* 中くらいの画面幅: メニューの小さな説明を省いて横に収める */
@media (min-width: 721px) and (max-width: 1099px) {
  .nav-sub { display: none; }
  .nav a { padding: 8px 24px; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .site-header .wrap { gap: 4px 16px; }
  .nav { gap: 6px; }
  .nav a { padding: 8px 18px; }
}

/* ---------- スマホ: メニューのボタンを大きく、高さを出す ---------- */
@media (max-width: 720px) {
  .nav { width: 100%; gap: 10px; margin-top: 6px; }
  .nav a { flex: 1; align-items: center; justify-content: center; padding: 16px 8px; }
  .nav-main { font-size: 1.15rem; }
}

/* ---------- タイトル下(ヘッダー下)の線をなくす ---------- */
.site-header { border-bottom: none; }

/* ---------- 説明文付きボタン(広い画面)のとき、ページ上端からボタンまでを広めに ---------- */
@media (min-width: 1100px) {
  .site-header .wrap { padding-top: 22px; padding-bottom: 14px; }
}

/* ---------- 「見つける」(説明文付き・広い画面): 横幅を文字に合わせ、形を整える ---------- */
@media (min-width: 1100px) {
  .nav a:nth-child(2) {
    padding: 14px 30px;
    border-radius: 92px 70px 84px 76px / 48px 40px 46px 42px; /* なめらかな川石のような形 */
    transform: rotate(0.8deg);
  }
}

/* ---------- スクロールして内容と重なるときだけ、タイトル下の線を出す ---------- */
.site-header { border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
