/* かぼちゃ太郎Life：パンプキン・ポップ。色は :root の変数で決める（design/candidates.html の A 案） */
:root {
  --bg: #fff4d6;
  --dots: #f7c948;
  --paper: #ffffff;
  --ink: #2b1d0e;
  --muted: #6d5a43;
  --main: #ff8a1f;          /* かぼちゃ色（飛行機の胴体） */
  --accent: #ff5d8f;        /* ピンク（尾翼・マフラー・カテゴリ） */
  --accent2: #3cc6c0;       /* 水色（つばさ） */
  --header: #ffb627;
  --line: 3px solid var(--ink);
  --radius: 18px;
  --shadow: 6px 6px 0 var(--ink);
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --title-font: "Mochiy Pop One", "M PLUS Rounded 1c", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) radial-gradient(var(--dots) 1.6px, transparent 1.7px) 0 0 / 22px 22px; color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* かわいいカーソル（パソコンだけ。スマホには出ない）：ふだんは かぼちゃ色の矢印、リンクやボタンの上では かぼちゃ太郎の顔（頭のとんがりの先で指す） */
html { cursor: url(/img/cursor.svg) 3 3, url(/img/cursor.png) 3 3, auto; }
a, button, summary, label, select, [role="button"], .menu-btn { cursor: url(/img/cursor-pointer.svg) 16 2, url(/img/cursor-pointer.png) 16 2, pointer; }
input, textarea { cursor: text; }
a { color: #c2410c; }
a:hover { color: var(--accent); }

/* ---- ヘッダー（サイト名の横に、かぼちゃ太郎の飛行機が着地する） ---- */
.site-header { background: var(--header); text-align: center; border-bottom: var(--line); position: relative; }
.site-tagline { margin: 0; padding: 18px 16px 0; font-size: 13px; font-weight: 800; }
.title-row { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 18px; padding: 0 16px; }
.landing-pad { width: clamp(110px, 17vw, 170px); aspect-ratio: 200 / 144; position: relative; flex: none; }
.landing-pad .plane { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.landed .landing-pad .plane { opacity: 1; animation: bob 2.8s ease-in-out infinite; }
.landed .title-row { animation: pop .5s ease-out; }
.site-title { font-family: var(--title-font); font-size: clamp(32px, 6.5vw, 56px); line-height: 1.2; letter-spacing: .02em; }
.site-title a { color: #fff; text-decoration: none; -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.gnav { background: var(--ink); }
.gnav-main, .gnav-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.gnav-main { padding: 10px 10px 8px; }
.gnav .gnav-main a { font-size: 15px; }
.gnav-sub { padding: 6px 10px; background: #43301a; border-top: 2px solid #5a4225; }   /* 下の段：お知らせ・note・プロフィール・お問い合わせ */
.gnav .gnav-sub a { font-size: 12px; padding: 2px 14px; color: #f3dfb4; }
.gnav a { color: var(--bg); text-decoration: none; font-weight: 800; font-size: 14px; padding: 6px 16px; border-radius: 999px; }
.gnav a:hover { background: var(--main); color: #fff; }
.menu-btn { display: none; }

/* 飛んでいる飛行機と、うしろに出る煙 */
.flyer { position: fixed; left: 0; top: 0; width: clamp(110px, 17vw, 170px); aspect-ratio: 200 / 144; z-index: 60; pointer-events: none; will-change: transform; }
.prop { transform-origin: 186px 62px; animation: spin .12s linear infinite; }
.scarf { transform-origin: 74px 48px; animation: flap .3s ease-in-out infinite alternate; }
.trail { position: fixed; z-index: 59; pointer-events: none; width: 10px; height: 10px; border-radius: 50%; background: var(--main); opacity: .7; animation: puff 1s ease-out forwards; }
@keyframes spin { to { transform: scaleY(-1); } }
@keyframes flap { to { transform: rotate(-12deg); } }
@keyframes puff { to { transform: scale(2.2); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes pop { 40% { transform: scale(1.05); } }

/* ---- 2段組み ---- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 32px 16px 56px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.main { min-width: 0; }

/* ---- 記事カード ---- */
.list-title { font-family: var(--title-font); font-weight: 400; font-size: 24px; margin: 0 0 20px; display: flex; align-items: center; gap: 10px; }
.list-title::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--main); box-shadow: 8px 0 0 var(--accent); margin-right: 8px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.subcats a, .chip { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; border: 2px solid var(--ink); }
.subcats a:hover, .chip:hover { background: var(--main); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 9px 9px 0 var(--ink); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent2); border-bottom: var(--line); }
.card-thumb img, .card-thumb .noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cat { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 0 12px; border-radius: 999px; border: 2px solid var(--ink); }
.card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 16px; font-weight: 800; line-height: 1.55; margin: 0 0 6px; }
.card-summary { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-date { margin: auto 0 0; padding-top: 8px; font-size: 12px; color: var(--muted); }
.cards-small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.cards-small .card-title { font-size: 14px; }
.cards-small .card-summary { display: none; }
.draft-mark { font-style: normal; font-size: 12px; background: #c0392b; color: #fff; padding: 1px 6px; border-radius: 4px; vertical-align: middle; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px 0 0; }
.pager a, .pager span { min-width: 42px; padding: 6px 12px; text-align: center; border-radius: 999px; background: var(--paper); border: var(--line); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; color: var(--ink); font-weight: 800; }
.pager a:hover { background: var(--header); }
.pager .current { background: var(--main); color: #fff; }

/* ---- お知らせ ---- */
.news-box { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 20px 8px; margin: 0 0 40px; }
.news-box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -20px 4px; padding: 10px 20px; background: var(--header); border-bottom: var(--line); border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0; }
.news-box-head h2 { margin: 0; font-family: var(--title-font); font-weight: 400; font-size: 18px; }
.news-box-head h2::before { content: "📣 "; }
.news-box-head a { font-size: 13px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.news-box-head a:hover { color: var(--accent); }
.news-box { padding-top: 0; }
.news-box-full { padding-top: 4px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li + li { border-top: 2px dotted #e8d6b0; }
.news-list a { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 12px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.news-list a:hover .news-title { color: var(--accent); }
.news-list time { font-size: 13px; color: var(--muted); font-weight: 800; }
.news-title { font-weight: 800; line-height: 1.55; }
.news-kind { display: inline-block; min-width: 92px; text-align: center; padding: 0 10px; font-size: 12px; font-weight: 800; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.news-info { background: var(--header); }
.news-works { background: var(--accent); color: #fff; }
.news-media { background: var(--accent2); color: #fff; }
.news-event { background: var(--main); color: #fff; }
.news-pin { display: inline-block; margin-right: 6px; padding: 0 8px; font-size: 11px; color: #fff; background: var(--ink); border-radius: 4px; vertical-align: 2px; }
.news-link a { display: inline-block; margin-top: 1em; padding: 10px 28px; background: var(--main); color: #fff; border: var(--line); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font-weight: 800; }
.news-link a:hover { background: var(--accent); color: #fff; }
.back-link { margin: 20px 0 0; font-weight: 800; }
.back-link a { color: var(--ink); }

/* ---- 記事 ---- */
.post { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px clamp(16px, 4vw, 44px) 40px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.post-title { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; line-height: 1.5; margin: 0 0 10px; }
.post-date { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.eyecatch { margin: 0 0 28px; }
.eyecatch img { width: 100%; border-radius: 12px; border: var(--line); display: block; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.4em; }
.post-body h2 { font-size: 20px; font-weight: 800; line-height: 1.5; margin: 2.4em 0 1em; padding: 10px 16px; background: var(--header); border: var(--line); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.post-body h3 { font-size: 18px; font-weight: 800; margin: 2em 0 .8em; padding: 0 0 4px 12px; border-left: 6px solid var(--main); border-bottom: 3px dotted var(--main); }
.post-body h4 { font-size: 16px; font-weight: 800; margin: 1.6em 0 .6em; }
.post-body h4::before { content: "● "; color: var(--accent); }
.post-body figure { margin: 1.6em 0; text-align: center; }
.post-body figure img { border-radius: 10px; }
.post-body figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.post-body .img-row { display: flex; gap: 10px; }
.post-body .img-row figure { flex: 1; margin: 1em 0; }
.post-body blockquote { margin: 1.6em 0; padding: 14px 18px; background: #fff8e6; border: 2px dashed var(--main); border-radius: 12px; color: #4d3a22; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.post-body li::marker { color: var(--main); font-weight: 800; }
.post-body strong { background: linear-gradient(transparent 62%, #ffe08a 62%); }
.post-body hr { border: 0; border-top: 3px dotted var(--main); margin: 2.4em 0; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.post-body th, .post-body td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; }
.post-body th { background: var(--header); }
.table-scroll, .raw-html .wp-block-table { overflow-x: auto; }
.raw-html { margin: 1.4em 0; text-align: center; overflow-x: auto; }
.raw-html iframe { max-width: 100%; }
.raw-html iframe[src*="google.com/maps"] { width: 100%; aspect-ratio: 4 / 3; height: auto; border: var(--line) !important; border-radius: 12px; }
.raw-html .wp-block-button__link { display: inline-block; padding: 10px 28px; background: var(--main); color: #fff; border: var(--line); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font-weight: 800; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

.toc { margin: 0 0 2em; padding: 14px 20px; border: var(--line); border-radius: 14px; background: #fffaf0; }
.toc summary { font-family: var(--title-font); cursor: pointer; }
.toc ol { margin: 8px 0 0; padding-left: 1.4em; font-size: 14px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* 吹き出し */
.balloon { display: flex; gap: 14px; align-items: flex-start; margin: 1.6em 0; }
.balloon-r { flex-direction: row-reverse; }
.balloon-who { flex: 0 0 72px; text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); line-height: 1.4; }
.balloon-who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: var(--line); background: #fff; display: block; margin: 0 auto 4px; }
.balloon-body { position: relative; flex: 1; min-width: 0; padding: 12px 18px; border-radius: 16px; background: #fff; border: var(--line); box-shadow: 4px 4px 0 var(--ink); }
.balloon-body p:last-child { margin-bottom: 0; }
.balloon-yellow .balloon-body { background: #fff3c4; }
.balloon-red .balloon-body { background: #ffe1ea; }

.link-card { display: flex; gap: 14px; align-items: center; margin: 1.6em 0; padding: 12px; border: var(--line); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; background: #fff; }
.link-card img { width: 140px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; flex: none; }
.link-card b { display: block; line-height: 1.5; }
.link-card small { color: var(--muted); }
.link-card:hover { background: #fff8e6; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2em 0 0; font-size: 13px; color: var(--muted); font-weight: 800; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.post-nav a { display: block; padding: 12px 16px; background: var(--paper); border: var(--line); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; line-height: 1.5; }
.post-nav a:hover { background: #fff8e6; }
.post-nav small { display: block; color: var(--accent); font-size: 11px; }
.post-nav .newer { text-align: right; }
.related h2 { font-family: var(--title-font); font-weight: 400; font-size: 20px; margin: 36px 0 16px; }

/* ---- サイドバー ---- */
.sidebar { display: grid; gap: 24px; }
.widget { background: var(--paper); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; font-size: 14px; overflow: hidden; }
.widget h2 { font-family: var(--title-font); font-weight: 400; font-size: 16px; margin: -18px -18px 14px; padding: 8px 18px; background: var(--main); color: #fff; border-bottom: var(--line); }
.profile { text-align: center; }
.profile p { text-align: left; margin: 0 0 .6em; font-size: 13px; }
.profile .profile-name { text-align: center; font-family: var(--title-font); font-size: 17px; }
.profile .profile-name a { color: var(--ink); text-decoration: none; }
.profile-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: var(--line); }
.side-list, .side-cats { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 8px 0; border-bottom: 2px dotted #e8d6b0; line-height: 1.5; }
.side-list a, .side-cats a { color: var(--ink); text-decoration: none; font-weight: 800; }
.side-list a:hover, .side-cats a:hover { color: var(--accent); }
.side-cats li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 2px dotted #e8d6b0; }
.side-cats span { min-width: 26px; text-align: center; background: var(--header); border: 2px solid var(--ink); border-radius: 999px; font-size: 11px; font-weight: 800; }

/* ---- お問い合わせ ---- */
.contact { display: grid; gap: 14px; max-width: 560px; }
.contact label { display: grid; gap: 4px; font-size: 14px; font-weight: 800; }
.contact input, .contact textarea { font: inherit; font-weight: 500; padding: 10px 12px; border: var(--line); border-radius: 10px; background: #fff; }
.contact button { justify-self: start; font: inherit; font-weight: 800; padding: 10px 32px; border: var(--line); border-radius: 999px; background: var(--main); color: #fff; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.contact button:disabled { opacity: .6; }
.contact .hp { position: absolute; left: -9999px; }
.note { padding: 14px 18px; background: #fff3c4; border: 2px dashed var(--main); border-radius: 12px; }

/* ---- フッター ---- */
.site-footer { background: var(--ink); color: var(--bg); text-align: center; padding: 30px 16px; font-size: 13px; font-weight: 800; border-top: var(--line); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--header); }
.fnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 12px; }
.copy { margin: 0; opacity: .7; font-family: var(--title-font); font-weight: 400; }

/* ---- 小さい画面 ---- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .site-tagline { padding-top: 12px; font-size: 11px; }
  .title-row { flex-direction: column; gap: 0; margin-bottom: 14px; }
  .site-title { font-size: 30px; }
  .landing-pad { width: 110px; }
  /* 右下についてくるメニューのボタン（ハンバーガー） */
  .menu-btn { display: grid; place-items: center; position: fixed; z-index: 70; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    width: 58px; height: 58px; padding: 0; border: var(--line); border-radius: 50%; background: var(--main); box-shadow: 4px 4px 0 var(--ink); cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: transform .15s; }
  .menu-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
  .bars { position: relative; width: 24px; height: 18px; }
  .bars i { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 3px; background: #fff; transition: transform .25s, opacity .2s, top .25s; }
  .bars i:nth-child(1) { top: 0; }
  .bars i:nth-child(2) { top: 7.5px; }
  .bars i:nth-child(3) { top: 15px; }
  .menu-open .bars i:nth-child(1) { top: 7.5px; transform: rotate(45deg); }
  .menu-open .bars i:nth-child(2) { opacity: 0; }
  .menu-open .bars i:nth-child(3) { top: 7.5px; transform: rotate(-45deg); }
  .menu-open .menu-btn { background: var(--accent); }
  /* ボタンの上に、ふきだしのように開くメニュー */
  .gnav { position: fixed; z-index: 69; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); width: min(260px, calc(100vw - 32px));
    flex-direction: column; gap: 0; padding: 8px; border: var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--main);
    transform-origin: 90% 100%; transform: scale(.6) translateY(20px); opacity: 0; visibility: hidden; transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), opacity .15s, visibility 0s .22s; }
  .gnav.open { transform: none; opacity: 1; visibility: visible; transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), opacity .15s; }
  .gnav-main, .gnav-sub { display: flex; flex-direction: column; gap: 2px; padding: 0; background: none; border: 0; }
  .gnav-sub { margin-top: 6px; padding-top: 6px; border-top: 2px dotted #5a4225; }
  .gnav a, .gnav .gnav-main a { padding: 10px 16px; font-size: 15px; text-align: left; border-radius: 12px; }
  .gnav .gnav-sub a { font-size: 13px; padding: 7px 16px; }
  .gnav a + a { margin-top: 2px; }
  .menu-open .site-header::after { content: ""; position: fixed; inset: 0; z-index: 68; background: rgba(43, 29, 14, .35); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .wrap { padding: 22px 14px 44px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .news-box { padding: 0 16px 6px; }
  .news-box-head { margin: 0 -16px 4px; padding: 10px 16px; }
  .news-list a { grid-template-columns: auto 1fr; }
  .news-kind { min-width: 0; justify-self: start; }
  .news-title { grid-column: 1 / -1; }
  .cards-small { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .cards-small .card-body { padding: 10px 12px 12px; }
  .post { padding: 22px 16px 28px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .newer { text-align: left; }
  .link-card img { width: 96px; }
  .balloon-who { flex-basis: 56px; }
  .balloon-who img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .flyer, .trail { display: none; }
  .landed .landing-pad .plane, .landed .title-row, .prop, .scarf { animation: none; }
  .gnav, .bars i { transition: none; }
}
