/*
Theme Name: Nyaohtech
Theme URI: https://nyaohtech.raindrop.jp/
Author: nyaohtech
Description: nyaohtech のコーポレートサイト用テーマ。製品を登録するとメガメニューと製品一覧に自動で並びます。
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: nyaohtech
*/

:root {
  --peach: #FED6B4; --rose: #F3A8BE; --sky: #A8D2EE;
  --ink: #333; --muted: #666; --line: #ddd; --band: #f0f0f0;
  --brand: linear-gradient(120deg, var(--peach), var(--rose) 52%, var(--sky));
  --w: 1100px; --wc: 960px; --hh: 66px;
  --font: Lato, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  /* VK Blocks のボタンなどが参照する色(以前のテーマと同じピンク) */
  --vk-color-primary: #ff93b6; --vk-color-primary-dark: #cc7692; --vk-color-primary-vivid: #ffa2c8; --vk-color-text-body: #333;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 15px/1.9 var(--font); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }
.container { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--wc); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- ボタン ---------- */
.btn, .wp-block-button__link {
  display: inline-block; cursor: pointer; text-decoration: none; font: inherit; font-size: 14px;
  padding: 8px 30px; border-radius: 4px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .15s, color .15s;
}
.btn:hover, .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #000; }
.btn--rose { background: var(--rose); border-color: var(--rose); color: #333; }
.btn--rose:hover { background: #ec8fab; border-color: #ec8fab; color: #333; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hh); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; }
.gnav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.gnav > ul > li > a, .gnav .mega-toggle-wrap > a {
  display: flex; align-items: center; height: var(--hh); padding: 0 14px; font-size: 13px; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.gnav > ul > li:hover > a, .gnav > ul > li.current-menu-item > a, .gnav > ul > li.current-menu-ancestor > a,
.gnav > ul > li.current_page_item > a { border-bottom-color: var(--rose); }
.gnav > ul > li.has-mega { display: flex; align-items: center; }
.mega-toggle { width: 28px; height: var(--hh); margin-left: -8px; border: 0; background: transparent; cursor: pointer; color: inherit; }
.mega-toggle::before { content: ""; display: block; width: 7px; height: 7px; margin: 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.has-mega.is-open .mega-toggle::before { transform: rotate(225deg); }

/* ---------- メガメニュー ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(0,0,0,.08); visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .16s, transform .16s, visibility 0s .16s; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega {
  visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: 1fr 240px; gap: 32px; max-width: var(--w); margin: 0 auto; padding: 24px 20px 26px; }
.mega__title { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.mega__item { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 6px; text-decoration: none; }
.mega__item:hover, .mega__item:focus-visible { background: #fdf2f6; }
.mega__icon { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--brand); display: grid; place-items: center; font-weight: 700; }
.mega__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega__name { display: block; font-weight: 700; font-size: 14px; line-height: 1.5; }
.mega__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.6; color: var(--muted); }
.badge { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; vertical-align: 1px; }
.mega__side { border-left: 1px solid var(--line); padding-left: 28px; }
.mega__side ul { list-style: none; margin: 0; padding: 0; }
.mega__side a { display: block; padding: 6px 0; font-size: 14px; text-decoration: none; }
.mega__side a::after { content: " \2192"; color: var(--rose); }
.mega__side a:hover { text-decoration: underline; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; background: var(--brand); overflow: hidden; }
.hero__slide { display: none; position: relative; min-height: 300px; align-items: center; background-size: cover; background-position: center; }
.hero__slide.is-active { display: flex; }
.hero__slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.05) 70%); }
.hero__slide--plain::before { display: none; }
.hero__inner { position: relative; width: 100%; padding-top: 36px; padding-bottom: 36px; color: #fff; }
.hero__slide--plain .hero__inner { color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero h1, .hero h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 4.4vw, 2.1rem); line-height: 1.45; }
.hero p { margin: 0 0 18px; max-width: 30em; }
.hero .btn { border-color: currentColor; color: inherit; }
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero__logo { flex: none; width: 200px; height: 200px; padding: 22px; border-radius: 50%; background: rgba(255,255,255,.82); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 8px; justify-content: center; }
.hero__dots button { width: 22px; height: 4px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.hero__dots button[aria-current="true"] { background: #fff; }

/* ---------- ページ見出し帯・パンくず ---------- */
.page-band { background: var(--brand); text-align: center; padding: 34px 20px; }
.page-band h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.5; }
.crumbs { font-size: 12px; color: var(--muted); padding: 10px 0; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs span + span::before { content: "/"; margin: 0 .5em; }

/* ---------- 本文 ---------- */
.site-main { padding-bottom: 30px; }
.entry { padding-top: 22px; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .wp-block-heading:is(h2) { position: relative; margin: 2em 0 .8em; padding-top: 16px; font-size: 24px; line-height: 1.4; }
.entry-content h2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand); }
.entry-content h3 { margin: 1.8em 0 .6em; font-size: 19px; padding-left: 12px; border-left: 4px solid var(--rose); line-height: 1.5; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li::marker { color: var(--rose); }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.entry-content .btn, .entry-content .wp-block-button__link { text-decoration: none; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.entry-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.alignwide, .alignfull { max-width: 100%; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
:not(pre) > code { background: var(--band); border-radius: 3px; padding: 0 6px; word-break: break-all; }
pre { background: #2b2b2b; color: #eee; padding: 14px 16px; overflow: auto; border-radius: 4px; }

/* ---------- 製品 ---------- */
.product-head { display: flex; gap: 28px; align-items: center; padding: 26px 0 6px; }
.product-head__icon { flex: none; width: 140px; height: 140px; border-radius: 28px; overflow: hidden; background: var(--brand); display: grid; place-items: center; font-size: 40px; font-weight: 700; }
.product-head__icon img { width: 100%; height: 100%; object-fit: cover; }
.product-head h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.6; }
.product-head .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; padding: 22px 0 10px; list-style: none; margin: 0; }
.pcard { display: flex; flex-direction: column; }
.pcard__thumb { aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--brand); display: grid; place-items: center; text-decoration: none; }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard__thumb--icon { background: radial-gradient(circle at 18% 28%, var(--peach) 0 22%, transparent 23%), radial-gradient(circle at 84% 72%, var(--sky) 0 26%, transparent 27%), radial-gradient(circle at 70% 18%, var(--rose) 0 14%, transparent 15%), #fff7f3; }
.pcard__thumb--icon img { width: 34%; height: auto; aspect-ratio: 1; border-radius: 20px; box-shadow: 0 6px 18px rgba(243,168,190,.45); background: #fff; }
.pcard h2, .pcard h3 { margin: 14px 0 4px; font-size: 18px; line-height: 1.5; }
.pcard h2 a, .pcard h3 a { text-decoration: none; } .pcard h2 a:hover, .pcard h3 a:hover { text-decoration: underline; }
.pcard p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.pcard .btn { align-self: flex-start; margin-top: auto; }
.manuals { list-style: none; margin: 0; padding: 0; }
.manuals li { border-bottom: 1px solid var(--line); }
.manuals a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; text-decoration: none; }
.manuals a:hover { background: #fdf2f6; }
.manuals time { color: var(--muted); font-size: 13px; flex: none; }

/* ---------- 記事一覧 ---------- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { margin: 0 0 2px; font-size: 18px; line-height: 1.5; }
.post-list h2 a { text-decoration: none; } .post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 28px 0 8px; }
.pagination .page-numbers { padding: 4px 12px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 0; font-size: 14px; }
.post-nav a { text-decoration: none; } .post-nav a:hover { text-decoration: underline; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; margin-top: 40px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0 0 10px; padding: 0; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.site-footer__copy { color: var(--muted); }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: calc(100vh - var(--hh)); overflow: auto; }
  .site-header.is-nav-open .gnav { display: block; }
  .gnav > ul { flex-direction: column; gap: 0; }
  .gnav > ul > li { border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .gnav > ul > li > a { height: 50px; padding: 0 20px; border-bottom: 0 !important; flex: 1; }
  .mega-toggle { height: 50px; width: 56px; margin: 0; }
  .gnav > ul > li.has-mega { display: flex; }
  .mega { position: static; flex-basis: 100%; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; border-top: 0; background: #faf7f7; }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega { display: none; }
  .has-mega.is-open > .mega { display: block; }
  .mega__inner { grid-template-columns: 1fr; padding: 8px 12px 14px; gap: 6px; }
  .mega__side { border-left: 0; padding-left: 8px; }
  .mega__grid { grid-template-columns: 1fr; }
  .hero__logo { display: none; }
  .hero__slide { min-height: 240px; }
  .product-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mega, .btn, .mega-toggle::before { transition: none; }
}

/* =====================================================================
   ポップ・かわいい仕上げ (元サイトのバナーと同じ色: 黄 / 珊瑚 / 水色 / 黄緑)
   ===================================================================== */
:root { --coral: #FF7A8A; --yellow: #FFD84D; --teal: #6FD3E0; --lime: #BFE04A; --pink: #FF9DB8; --soft: #fff6f8; }

/* ボタンは丸く */
.btn, .wp-block-button__link { border-radius: 999px; border-width: 2px; font-weight: 700; padding: 8px 28px; }
.btn:hover, .wp-block-button__link:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn { transition: background .15s, color .15s, transform .15s; }

/* ヘッダー: ロゴを少し大きく、現在地を太い下線で */
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.gnav > ul > li > a { font-weight: 700; }
.gnav > ul > li:hover > a, .gnav > ul > li.current-menu-item > a, .gnav > ul > li.current-menu-ancestor > a,
.gnav > ul > li.current_page_item > a { border-bottom: 4px solid var(--pink); }

/* ページ見出し帯: 色とりどりの丸 + 波形の下端 */
.page-band {
  position: relative; padding: 46px 20px 62px; text-align: center;
  background:
    radial-gradient(circle at 7% 34%, var(--yellow) 0 26px, transparent 27px),
    radial-gradient(circle at 13% 82%, var(--teal) 0 13px, transparent 14px),
    radial-gradient(circle at 21% 20%, #fff 0 7px, transparent 8px),
    radial-gradient(circle at 91% 24%, var(--lime) 0 18px, transparent 19px),
    radial-gradient(circle at 85% 78%, var(--coral) 0 30px, transparent 31px),
    radial-gradient(circle at 96% 58%, #fff 0 9px, transparent 10px),
    linear-gradient(120deg, #ffc9a8, var(--pink) 55%, #a7d6f3);
}
.page-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V14Q100 0 200 14T400 14T600 14T800 14T1000 14T1200 14V26Z' fill='%23fff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.page-band h1 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); font-weight: 900; letter-spacing: .04em; text-shadow: 0 2px 0 rgba(255,255,255,.65); }
.page-band__sub { margin: 4px 0 0; font-weight: 700; }
.badge { background: var(--coral); color: #fff; }

/* ヒーロー(トップのスライド) */
.hero__slide { min-height: 340px; }
.hero__slide::before { background: linear-gradient(90deg, rgba(40,10,30,.62), rgba(40,10,30,.05) 72%); }
.hero h2, .hero h1 { font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero p { text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; text-shadow: none; }
.hero .btn:hover { background: var(--yellow); border-color: var(--yellow); }
.hero__slide--plain .btn { background: transparent; border-color: var(--ink); }
.hero__dots button { width: 12px; height: 12px; border-radius: 50%; }
.hero__dots button[aria-current="true"] { background: var(--yellow); }

/* 本文の見出し: マーカー風 */
.entry-content h2::before { height: 4px; border-radius: 4px; }
.entry-content h2 { padding-top: 18px; }
.entry-content h2::after { content: "\2726"; position: absolute; right: 0; top: 12px; color: var(--pink); font-size: 18px; }
.entry-content h3 { border-left: 0; padding-left: 0; background: linear-gradient(transparent 62%, rgba(255,157,184,.45) 62%); display: inline; }
.entry-content img, .entry-content .wp-block-image img { border-radius: 14px; }

/* 製品カード: ステッカー風(太い枠 + ずらした影) */
.cards { gap: 30px; }
.pcard { background: #fff; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--pink); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.pcard:hover { transform: translate(-2px, -3px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--coral); }
.pcard__thumb { border-radius: 0; border-bottom: 2px solid var(--ink); position: relative; }
.pcard__thumb--photo { background: #f7e5ee; }
.pcard__thumb--photo img:first-child { width: 100%; height: 100%; object-fit: cover; }
.pcard__badge-icon { position: absolute !important; left: 12px; bottom: 12px; width: 52px !important; height: 52px !important; border-radius: 14px; border: 2px solid var(--ink); background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.pcard__thumb--icon {
  background:
    radial-gradient(circle at 16% 26%, var(--yellow) 0 24%, transparent 25%),
    radial-gradient(circle at 86% 76%, var(--teal) 0 28%, transparent 29%),
    radial-gradient(circle at 74% 14%, var(--coral) 0 15%, transparent 16%),
    radial-gradient(circle at 10% 90%, var(--lime) 0 13%, transparent 14%), #fffaf0;
}
.pcard__thumb--icon img { width: 34%; border-radius: 22px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); }
.pcard__thumb--icon > span { display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 22px; border: 2px solid var(--ink); background: #fff; font-size: 34px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); }
.pcard__body { padding: 4px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard h2 { font-size: 18px; margin-top: 14px; }

/* 製品ページ: 大きなバナー + 重ねたアイコン */
.product-banner { aspect-ratio: 19 / 6; background-size: cover; background-position: center; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--pink); margin-top: 8px; }
.product-head--overlap { margin-top: -56px; padding-top: 0; position: relative; padding-left: 22px; }
.product-head__icon { border: 3px solid var(--ink); border-radius: 30px; box-shadow: 4px 4px 0 var(--ink); background: #fff; }
.product-head--overlap .product-head__icon { width: 120px; height: 120px; }
.product-head--overlap > div:last-child { padding-top: 62px; }
.manuals a { border-radius: 10px; padding: 10px 12px; }
.manuals li { border-bottom: 2px dotted #f2c4d2; }

/* メガメニュー: アイコンもステッカー風 */
.mega { border-top: 3px solid var(--pink); }
.mega__icon { border: 2px solid var(--ink); border-radius: 14px; box-shadow: 2px 2px 0 var(--ink); background: #fff; }
.mega__item { border-radius: 14px; }
.mega__item:hover, .mega__item:focus-visible { background: var(--soft); }
.mega__title { color: var(--coral); }
.mega__side a::after { color: var(--coral); }

/* フッター: 波形の上端 + ロゴ */
.site-footer { position: relative; border-top: 0; margin-top: 70px; padding: 46px 0 40px; background: var(--soft); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12Q100 0 200 12T400 12T600 12T800 12T1000 12T1200 12V24Z' fill='%23fff6f8'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.site-footer__inner { display: flex; align-items: center; gap: 24px; }
.site-footer__logo { flex: none; width: 88px; height: 88px; border-radius: 22px; }
.site-footer__tag { margin: 0 0 6px; font-weight: 900; font-size: 16px; }
.site-footer ul { margin-bottom: 6px; }

/* HOME 本文のカード画像・グレー帯もやわらかく */
.entry-content .wp-block-columns .wp-block-image img { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--pink); }
.entry-content .wp-block-cover { border-radius: 20px; overflow: hidden; }

@media (max-width: 900px) {
  .product-head--overlap { margin-top: -40px; padding-left: 0; }
  .product-head--overlap > div:last-child { padding-top: 0; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .pcard, .btn { transition: none; } .pcard:hover { transform: none; } }

/* VK Blocks のボタンも丸く */
.vk_button .vk_button_link { border-radius: 999px; font-weight: 700; }

/* =====================================================================
   マニュアル: 一覧は製品と同じカード。個別ページはガイドHTMLを枠いっぱいに埋め込む
   ===================================================================== */
.manual-bar { background: var(--soft); border-bottom: 2px solid var(--pink); }
.manual-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 8px; }
.manual-bar .crumbs { padding: 2px 0 0; }
.manual-bar h1 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 900; }
.manual-bar .btn { flex: none; padding: 5px 20px; font-size: 13px; }
.manual-frame { display: block; width: 100%; border: 0; background: #fff; height: calc(100vh - var(--hh) - 68px); height: calc(100dvh - var(--hh) - 68px); min-height: 520px; }
.site-footer--after-frame { margin-top: 0; }

/* 製品ページの「マニュアルの入口」 */
.manual-panel { display: flex; align-items: center; gap: 18px; margin: 22px 0 8px; padding: 16px 20px; background: #fff8e1; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--yellow); }
.manual-panel__icon { flex: none; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 24px; }
.manual-panel__icon img { width: 100%; height: 100%; object-fit: cover; }
.manual-panel__body { flex: 1; min-width: 0; }
.manual-panel__label { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .12em; color: var(--coral); }
.manual-panel h2 { margin: 0; font-size: 17px; line-height: 1.5; }
.manual-panel p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.manual-panel .btn { flex: none; }
@media (max-width: 640px) {
  .manual-panel { flex-wrap: wrap; }
  .manual-panel .btn { width: 100%; text-align: center; }
  .manual-bar__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .manual-frame { height: calc(100dvh - var(--hh) - 110px); }
}

/* 応援のお願い (全ページのフッター上) */
.support-band { margin-top: 60px; padding: 30px 0; background: var(--soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-align: center; }
.support-band h2 { margin: 0 0 8px; font-size: 20px; }
.support-band p { margin: 0 auto 14px; max-width: 36em; text-align: left; }
.support-band__dl { text-align: center !important; margin: 0 0 14px; font-size: 13px; color: var(--muted); font-weight: 700; }
