/* ビアエス テーマ 共通スタイル（デザイン見本 mockup/assets/style.css から） */
:root {
  --main: #9b3b35;        /* ロゴの赤 */
  --main-dark: #7a2c27;
  --accent: #f0980e;      /* 今のサイトのオレンジ */
  --text: #333;
  --sub: #6b6460;
  --line: #e8e2dc;
  --bg-soft: #f7f4f0;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(60, 40, 30, .08);
  --shadow-hover: 0 8px 24px rgba(60, 40, 30, .14);
  --en: "Montserrat", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--white); font-family: "Noto Sans JP", sans-serif; line-height: 1.85; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* お知らせバー */
.topbar { background: var(--main); color: #fff; font-size: 13px; text-align: center; padding: 8px 12px; }
.topbar b { color: #ffd9a3; font-weight: 700; }

/* ヘッダー */
.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 46px; width: auto; }
nav.gnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav.gnav a { display: block; padding: 8px 14px; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.4; border-radius: 8px; transition: background .2s; }
nav.gnav a small { display: block; font-family: var(--en); font-size: 10px; letter-spacing: .12em; color: var(--main); font-weight: 600; }
nav.gnav a:hover { background: var(--bg-soft); }
nav.gnav .contact a { background: var(--main); color: #fff; padding: 10px 20px; border-radius: 999px; box-shadow: 0 4px 12px rgba(155,59,53,.25); }
nav.gnav .contact a small { color: #ffd9a3; }
nav.gnav .contact a:hover { background: var(--main-dark); }
.menu-btn { display: none; background: none; border: none; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px auto; transition: .3s; }

/* メインビジュアル */
.mv { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: #efebe6 url(../img/top-bg-battery.jpg) right center / cover no-repeat; }
.mv::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,248,245,.97) 0%, rgba(250,248,245,.85) 38%, rgba(250,248,245,0) 68%); }
.mv .wrap { position: relative; width: 100%; }
.mv-copy { max-width: 520px; }
.mv-label { font-family: var(--en); font-weight: 600; letter-spacing: .25em; color: var(--main); font-size: 13px; }
.mv h1, .mv .mv-title { font-size: 46px; line-height: 1.35; margin: 12px 0 18px; font-weight: 900; letter-spacing: .06em; }
.mv h1 em { font-style: normal; color: var(--main); }
.mv p { margin: 0 0 30px; color: var(--sub); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ボタン */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-main { background: var(--main); color: #fff; box-shadow: 0 6px 16px rgba(155,59,53,.28); }
.btn-main::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shine 3.5s infinite; }
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.btn-main:hover { transform: translateY(-2px); background: var(--main-dark); }
.btn-line { background: #fff; color: var(--main); border: 2px solid var(--main); }
.btn-line:hover { background: var(--main); color: #fff; }
.btn .arrow { font-family: var(--en); }

/* 実績バッジ */
.badges { position: relative; z-index: 2; margin-top: -48px; }
.badges ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badges li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; text-align: center; }
.badges .num { font-family: var(--en); font-weight: 700; font-size: 26px; color: var(--main); line-height: 1.2; }
.badges .num small { font-size: 14px; font-family: "Noto Sans JP"; }
.badges .cap { font-size: 13px; color: var(--sub); margin-top: 4px; }

/* セクション共通 */
.sec { padding: 96px 0; }
.sec.soft { background: var(--bg-soft); }
.sec-title { text-align: center; margin: 0 0 48px; }
.sec-title .en { display: block; font-family: var(--en); font-weight: 700; font-size: 34px; letter-spacing: .14em; color: var(--main); line-height: 1.2; }
.sec-title .ja { display: inline-block; font-size: 14px; color: var(--sub); margin-top: 8px; position: relative; padding: 0 28px; }
.sec-title .ja::before, .sec-title .ja::after { content: ""; position: absolute; top: 50%; width: 18px; height: 1px; background: var(--main); }
.sec-title .ja::before { left: 0; } .sec-title .ja::after { right: 0; }

/* コンセプト */
.concept { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.concept img { border-radius: var(--radius); box-shadow: var(--shadow); }
.concept h3 { font-size: 26px; line-height: 1.6; margin: 0 0 20px; }
.concept p { color: var(--sub); margin: 0 0 14px; }
/* ロゴに込めた想い（コンセプトの上の段） */
.story { text-align: center; background: var(--bg-soft); border-radius: var(--radius); padding: 64px 24px 60px; margin: 0 0 72px; }
.story-logo { width: 240px; margin: 0 auto 40px; }
.story-text { margin: 0; font-size: 19px; font-weight: 700; line-height: 2.2; letter-spacing: .16em; }
.story-text span { display: block; }
.story-text i { display: inline-block; font-style: normal; }
.story-text em { font-style: normal; font-family: var(--en); color: var(--main); letter-spacing: .08em; padding: 0 .1em; }
@media (max-width: 768px) {
  .story { padding: 44px 14px 40px; margin-bottom: 48px; }
  .story-logo { width: 180px; margin-bottom: 28px; }
  .story-text { font-size: 15px; line-height: 2.1; letter-spacing: .08em; }
}

/* 商品 */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 40px; }
.product .photo { position: relative; }
.product .photo img { border-radius: var(--radius); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; }
.product h3 { font-size: 26px; margin: 12px 0 10px; line-height: 1.5; }
.product .lead { color: var(--sub); margin: 0 0 20px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.price { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.price .name { font-size: 13px; color: var(--sub); }
.price .yen { font-size: 24px; font-weight: 700; font-family: var(--en); color: var(--text); }
.price .yen small { font-size: 12px; font-family: "Noto Sans JP"; font-weight: 400; color: var(--sub); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
.spec th, .spec td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.spec th { width: 42%; color: var(--sub); font-weight: 500; background: var(--bg-soft); }
.shops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop { display: block; text-align: center; padding: 12px 8px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #fff; transition: transform .2s, opacity .2s; }
.shop:hover { transform: translateY(-2px); opacity: .92; }
.shop.amazon { background: #232f3e; }
.shop.rakuten { background: #bf0000; }
.shop.yahoo { background: #ff0033; }
.shops-note { font-size: 12px; color: var(--sub); margin-top: 8px; }

/* ポイント */
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.point { background: #fff; border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); position: relative; transition: transform .25s, box-shadow .25s; }
.point:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.point .no { font-family: var(--en); font-weight: 700; color: var(--accent); font-size: 13px; letter-spacing: .15em; }
.point h4 { font-size: 18px; margin: 6px 0 10px; line-height: 1.5; }
.point p { font-size: 14px; color: var(--sub); margin: 0; }
.point .icon { width: 52px; height: 52px; border-radius: 50%; background: #f8ece9; display: grid; place-items: center; margin-bottom: 14px; }
.point .icon svg { width: 26px; height: 26px; stroke: var(--main); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ふきだし */
.balloon { display: flex; gap: 18px; align-items: flex-start; max-width: 760px; margin: 48px auto 0; }
.balloon .who { flex: 0 0 72px; text-align: center; font-size: 12px; color: var(--sub); }
.balloon .face { width: 72px; height: 72px; border-radius: 50%; background: #f8ece9; display: grid; place-items: center; font-weight: 700; color: var(--main); border: 2px solid #fff; box-shadow: var(--shadow); }
.balloon .say { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px 20px; font-size: 15px; }
.balloon .say::before { content: ""; position: absolute; left: -12px; top: 22px; border: 6px solid transparent; border-right: 10px solid var(--line); }
.balloon .say::after { content: ""; position: absolute; left: -8px; top: 24px; border: 4px solid transparent; border-right: 8px solid #fff; }

/* サポート */
.support { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-link { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-link:hover { border-color: var(--main); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-link h4 { margin: 0 0 8px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.card-link h4 span { color: var(--main); font-family: var(--en); }
.card-link p { margin: 0; font-size: 14px; color: var(--sub); }

/* よくある質問 */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 60px; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 20px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--main); color: #fff; font-family: var(--en); font-size: 14px; display: grid; place-items: center; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--main); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 24px 20px 60px; color: var(--sub); position: relative; }
.faq .a::before { content: "A"; position: absolute; left: 20px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--en); font-size: 14px; display: grid; place-items: center; }

/* ブログ */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pcard { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pcard .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .thumb img { transform: scale(1.05); }
.pcard .cat { position: absolute; left: 10px; top: 10px; background: var(--main); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 999px; }
.pcard .body { padding: 14px 16px 18px; }
.post time { font-family: var(--en); font-size: 12px; color: var(--sub); }
.post h4 { margin: 4px 0 0; font-size: 15px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { text-align: center; margin-top: 40px; }

/* お問い合わせ帯 */
.cta { background: linear-gradient(120deg, var(--main) 0%, #b5574b 100%); color: #fff; padding: 72px 0; text-align: center; }
.cta h2 { margin: 0 0 10px; font-size: 26px; }
.cta p { margin: 0 0 28px; opacity: .9; }
.cta .btn-line { border-color: #fff; color: var(--main); }
.cta .btn-line:hover { background: transparent; color: #fff; }

/* フッター */
.site-footer { background: #2b2523; color: #d8d0ca; padding: 64px 0 40px; font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot img { height: 64px; width: auto; margin-bottom: 14px; }
.foot h5 { font-family: var(--en); color: #fff; letter-spacing: .15em; font-size: 13px; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a:hover { color: #fff; }
.copy { text-align: center; font-size: 12px; color: #9a908a; margin-top: 48px; font-family: var(--en); }

/* スマホでヘッダーに出すお問い合わせボタン */
.head-contact { display: none; align-items: center; gap: 4px; background: var(--main); color: #fff; font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 999px; }

@media (max-width: 960px) {
  .points, .support, .posts { grid-template-columns: repeat(2, 1fr); }
  .badges ul { grid-template-columns: repeat(2, 1fr); }
  .product, .concept { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .head { height: 60px; }
  .logo img { height: 38px; }
  .menu-btn { display: block; }
  nav.gnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-hover); }
  nav.gnav.open { display: block; animation: rise .25s ease both; }
  nav.gnav ul { flex-direction: column; padding: 12px 16px 20px; gap: 0; align-items: stretch; }
  nav.gnav a { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  nav.gnav .contact a { text-align: center; margin-top: 12px; border-radius: 999px; }
  .mv { display: block; min-height: 0; padding-top: 280px; background-color: #faf8f5; background-size: auto 280px; background-position: 68% top; }
  .mv::before { display: none; }
  .mv-copy { padding: 28px 0 72px; }
  .mv h1, .mv .mv-title { font-size: 32px; }
  .sec { padding: 64px 0; }
  .sec-title .en { font-size: 26px; }
  .product { padding: 20px; }
  .prices { grid-template-columns: 1fr; }
  .shops { grid-template-columns: 1fr; }
  .points, .support, .posts { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .head-contact { display: inline-flex; margin-left: auto; margin-right: 6px; }
}

/* ===== トップページのメインビジュアル（写真いっぱい＋中央の白い文字） ===== */
.mv.mv-center { min-height: 620px; justify-content: center; text-align: center; background-position: center; }
.mv.mv-center::before { background: linear-gradient(180deg, rgba(43,37,35,.25) 0%, rgba(43,37,35,.55) 100%); }
.mv.mv-center .mv-copy { max-width: 760px; margin: 0 auto; color: #fff; }
.mv.mv-center .mv-label { color: #ffd9a3; }
.mv.mv-center h1, .mv.mv-center .mv-title { font-size: 48px; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.mv.mv-center p { color: rgba(255,255,255,.92); }
.mv.mv-center .btns { justify-content: center; }
.mv.mv-center .btn-line { background: transparent; color: #fff; border-color: #fff; }
.mv.mv-center .btn-line:hover { background: #fff; color: var(--main); }

/* ===== 下層ページの見出し帯とパンくず ===== */
.page-head { background: var(--bg-soft); padding: 56px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.page-head .en { display: block; font-family: var(--en); font-weight: 700; font-size: 32px; letter-spacing: .14em; color: var(--main); line-height: 1.2; }
.page-head h1 { font-size: 18px; margin: 8px 0 0; font-weight: 700; }
.breadcrumb { font-size: 12px; color: var(--sub); padding: 14px 0; }
.breadcrumb a { color: var(--main); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: #bbb; }

/* ===== 商品ラインナップ ===== */
.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.item { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.item .thumb { aspect-ratio: 470 / 300; overflow: hidden; background: var(--bg-soft); }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.item:hover .thumb img { transform: scale(1.04); }
.item .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.item .kind { font-size: 12px; color: var(--accent); font-weight: 700; }
.item h3 { font-size: 18px; margin: 4px 0 8px; line-height: 1.5; }
.item p { font-size: 14px; color: var(--sub); margin: 0 0 14px; flex: 1; }
.item .go { font-size: 14px; font-weight: 700; color: var(--main); }
div.item:hover { transform: none; box-shadow: var(--shadow); }
div.item:hover .thumb img { transform: none; }
.item.feature { grid-column: span 3; flex-direction: row; }
.item.feature .thumb { flex: 0 0 52%; aspect-ratio: auto; }
.item.feature .body { padding: 36px 40px; justify-content: center; }
.item.feature h3 { font-size: 26px; }
.item.feature p { flex: 0; font-size: 15px; }

/* ===== ブランドの約束（数字つき） ===== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: #fff; border-radius: var(--radius); padding: 32px 26px; text-align: center; box-shadow: var(--shadow); }
.value .big { font-family: var(--en); font-weight: 700; font-size: 40px; color: var(--main); line-height: 1.1; }
.value .big small { font-size: 16px; font-family: "Noto Sans JP"; }
.value h4 { font-size: 17px; margin: 12px 0 8px; }
.value p { font-size: 14px; color: var(--sub); margin: 0; }

/* ===== 商品ページの目次と補足 ===== */
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; transition: border-color .2s, color .2s; }
.toc a:hover { border-color: var(--main); color: var(--main); }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 820px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.capbox { max-width: 820px; margin: 40px auto 0; border: 2px solid var(--accent); border-radius: var(--radius); background: #fff; overflow: hidden; }
.capbox .cap { background: var(--accent); color: #fff; font-weight: 700; padding: 8px 18px; font-size: 14px; }
.capbox .in { padding: 18px 22px; font-size: 14px; color: var(--sub); }
.capbox .in p { margin: 0 0 8px; } .capbox .in p:last-child { margin: 0; }
.back { text-align: center; margin-top: 48px; }

@media (max-width: 960px) {
  .lineup { grid-template-columns: repeat(2, 1fr); }
  .item.feature { grid-column: span 2; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .mv.mv-center { min-height: 520px; padding-top: 0; background-size: cover; background-position: 65% center; display: flex; }
  .mv.mv-center::before { display: block; }
  .mv.mv-center .mv-copy { padding: 0 0 8px; }
  .mv.mv-center h1, .mv.mv-center .mv-title { font-size: 32px; }
  .page-head { padding: 40px 0 28px; }
  .page-head .en { font-size: 24px; }
  .lineup { grid-template-columns: 1fr; }
  .item.feature { grid-column: auto; flex-direction: column; }
  .item.feature .thumb { flex: none; aspect-ratio: 470 / 300; }
  .item.feature .body { padding: 18px 20px 22px; }
  .item.feature h3 { font-size: 20px; }
}

/* ===== WordPress 用の調整 ===== */
/* ページの一番外側のすき間は各部品で決める */
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks { padding: 0; }
/* エディターの画面でも部品の間にすき間を入れない */
.is-root-container > * { margin-block: 0; }

/* トップの動画（外観 → トップの動画） */
.mv .mv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mv::before { z-index: 1; }
.mv .wrap { z-index: 2; }
.mv-pause { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.mv-pause:hover, .mv-pause:focus-visible { background: rgba(0,0,0,.6); }
/* 動画を順番に流す：全部の動画を同じ場所に重ね、今の1本だけを見せる（hero.js） */
.mv.mv-center.mv-slides { display: grid; grid-template: 1fr / 1fr; place-items: stretch; place-content: stretch; padding: 0; }
.mv.mv-slides::before { display: none; }
.mv-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 0 72px; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.mv-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease; }
.mv-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(43,37,35,.25) 0%, rgba(43,37,35,.55) 100%); }
.mv-slides .mv-pause { z-index: 3; }
.mv-dots { position: absolute; left: 50%; bottom: 20px; z-index: 3; display: flex; gap: 4px; transform: translateX(-50%); }
.mv-dot { width: 44px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.mv-dot::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgba(255,255,255,.45); transition: background .3s; }
.mv-dot.is-active::after, .mv-dot:hover::after { background: #fff; }
.mv-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .mv-slide, .mv-slide.is-active { transition: none; }
}
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 記事一覧のカード（クエリーループ） */
.wp-block-post-template.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.blog-list .wp-block-post-template.posts { grid-template-columns: repeat(3, 1fr); }
.wp-block-post-template.posts > li { margin: 0; }
.pcard { position: relative; height: 100%; }
.pcard .thumb { margin: 0; background: var(--bg-soft); }
.pcard .thumb a { display: block; height: 100%; }
.pcard .body > * { margin: 0; }
.pcard .wp-block-post-date { font-family: var(--en); font-size: 12px; color: var(--sub); }
.pcard .wp-block-post-title { margin: 4px 0 0; font-size: 15px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.pcard .wp-block-post-terms { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; font-size: 11px; line-height: 1.6; }
.pcard .wp-block-post-terms a { background: var(--main); color: #fff; padding: 2px 10px; border-radius: 999px; }
.pcard .wp-block-post-terms .wp-block-post-terms__separator { display: none; }
.pcard .noimg { aspect-ratio: 16 / 9; background: var(--bg-soft); }
.pcard .noimg a { display: flex; align-items: center; justify-content: center; }
.pcard .noimg img { width: 38%; height: auto; object-fit: contain; opacity: .35; }
.pcard:hover .noimg img { transform: none; }

/* 記事一覧の見出し帯（カテゴリー・検索） */
.page-head .wp-block-query-title, .page-head .wp-block-post-title { font-size: 18px; margin: 8px 0 0; font-weight: 700; }
.blog-list { padding: 40px 0 96px; }
.blog-desc { max-width: 760px; margin: 0 auto 32px; text-align: center; color: var(--sub); font-size: 14px; }
.blog-desc:empty { display: none; }

/* ページ送り */
.wp-block-query-pagination { margin-top: 48px; gap: 8px; font-family: var(--en); }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; }
.wp-block-query-pagination .page-numbers.current { background: var(--main); border-color: var(--main); color: #fff; }
.wp-block-query-pagination a:hover { border-color: var(--main); color: var(--main); }
.wp-block-query-pagination .page-numbers.dots { border: none; background: none; }

/* 記事・固定ページの本文 */
.article { padding: 48px 24px 80px; }
.article-head { text-align: center; margin-bottom: 32px; }
.article-head .wp-block-post-terms { font-size: 12px; }
.article-head .wp-block-post-terms a { display: inline-block; background: var(--main); color: #fff; padding: 2px 12px; border-radius: 999px; margin: 0 2px 4px; }
.article-head .wp-block-post-terms .wp-block-post-terms__separator { display: none; }
.article-head .wp-block-post-title { font-size: 28px; line-height: 1.5; margin: 12px 0 8px; }
.article-head .wp-block-post-date { font-family: var(--en); font-size: 13px; color: var(--sub); }
.article .wp-block-post-featured-image { margin: 0 auto 40px; }
.article .wp-block-post-featured-image img { border-radius: var(--radius); }
.entry-content { font-size: 16px; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2 { font-size: 22px; line-height: 1.5; margin: 2.4em 0 1em; padding: 12px 18px; background: var(--bg-soft); border-left: 5px solid var(--main); border-radius: 4px; }
.entry-content h3 { font-size: 19px; line-height: 1.5; margin: 2em 0 .8em; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.entry-content h4 { font-size: 17px; margin: 1.6em 0 .6em; color: var(--main); }
.entry-content h5 { font-size: 16px; margin: 1.4em 0 .5em; }
.entry-content img { border-radius: 6px; }
.entry-content .alignnone, .entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { font-size: 13px; color: var(--sub); text-align: center; margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 12px; }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--bg-soft); border-left: 4px solid var(--line); color: var(--sub); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content iframe { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.post-nav a { color: var(--main); }
.post-nav .wp-block-post-navigation-link { flex: 1; }
.post-nav .post-navigation-link-next { text-align: right; }

/* 404 */
.notfound { text-align: center; padding: 96px 0; }
.notfound p { color: var(--sub); }

@media (max-width: 960px) {
  .wp-block-post-template.posts, .blog-list .wp-block-post-template.posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .wp-block-post-template.posts, .blog-list .wp-block-post-template.posts { grid-template-columns: 1fr; }
  .article { padding: 32px 16px 64px; }
  .article-head .wp-block-post-title { font-size: 22px; }
  .entry-content h2 { font-size: 19px; }
  .post-nav { flex-direction: column; }
  .post-nav .post-navigation-link-next { text-align: left; }
}

/* お問い合わせのページ（/contact-form/index.html） */
.is-contact-page .cta { display: none; }
.contact-box { text-align: center; background: var(--bg-soft); border-radius: var(--radius); padding: 32px 20px; margin: 0 0 2em; }
.contact-box .btns { justify-content: center; margin: 0 0 20px; }
.entry-content .contact-box a.btn { text-decoration: none; color: #fff; }
.contact-box ul { display: inline-block; text-align: left; margin: 0; padding-left: 1.2em; font-size: 14px; }

/* お問い合わせのページに埋め込んだフォーム */
#viaes-form { display: block; width: 100%; height: 1100px; border: 0; }
.form-fallback { font-size: 13px; color: var(--sub); text-align: center; margin-top: 8px; }
