/*
Theme Name: BIZeal Column
Theme URI: https://www.machiiro.co.jp/mbiz/column/
Author: 株式会社まちいろぐみ
Author URI: https://www.machiiro.co.jp/
Description: 地域サービス業のための専門メディア「BIZealコラム」専用テーマ。
Version: 1.2.0
Text Domain: mbiz-column
*/

:root {
  --ink: #173344;
  --navy: #0f3853;
  --teal: #0f6675;
  --teal-light: #16879b;
  --gold: #c89b3c;
  --muted: #60717b;
  --line: #dbe5e8;
  --pale: #f7faf9;
  --white: #fff;
  --shadow: 0 18px 50px rgba(21, 52, 67, .10);
  --radius: 24px;
  --content: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif; line-height: 1.8; letter-spacing: .02em; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: var(--navy); }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(219,229,232,.82); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: flex; align-items: center; gap: 13px; font-weight: 800; }
.brand-mark { position: relative; width: 40px; height: 40px; flex: 0 0 auto; transform: rotate(45deg); border: 2px solid var(--teal); border-radius: 13px 13px 17px 17px; }
.brand-mark::after { position: absolute; right: 6px; bottom: 6px; width: 11px; height: 11px; content: ""; border: 2px solid var(--teal); border-radius: 50%; }
.brand-copy { line-height: 1.2; }
.brand-copy strong { display: block; font-size: 16px; letter-spacing: .08em; }
.brand-copy small { display: block; margin-top: 5px; color: #88959b; font-size: 9px; letter-spacing: .17em; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.site-nav .menu, .footer-links .menu { display: flex; margin: 0; padding: 0; align-items: center; gap: 25px; list-style: none; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav .current-menu-item > a { color: var(--teal); }
.mbiz-link { display: inline-flex; min-height: 42px; padding: 0 18px; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 24px; height: 2px; margin: 5px auto; content: ""; background: var(--navy); transition: .2s; }

/* BIZeal Column subheader beneath the shared machiirogumi header. */
.column-subheader { position: sticky; z-index: 29; top: 76px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.column-subheader-inner { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 32px; }
.column-subheader-brand { flex: 0 0 auto; color: var(--navy); line-height: 1.2; }
.column-subheader-brand strong { display: block; font-size: 15px; letter-spacing: .07em; }
.column-subheader-brand small { display: block; margin-top: 4px; color: #8b989f; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.column-subnav { display: flex; min-width: 0; align-items: center; gap: 22px; overflow-x: auto; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; scrollbar-width: none; white-space: nowrap; }
.column-subnav::-webkit-scrollbar { display: none; }
.column-subnav a { display: block; padding: 21px 0 18px; border-bottom: 3px solid transparent; }
.column-subnav a:hover, .column-subnav a:focus-visible, .column-subnav .is-current { border-color: var(--gold); color: var(--navy); }
.column-subnav-parent { color: var(--teal); }
body.admin-bar .mg-header { top: 32px; }
body.admin-bar .column-subheader { top: 108px; }

.media-hero { position: relative; overflow: hidden; padding: 94px 0 86px; background: radial-gradient(circle at 82% 20%, rgba(22,135,155,.12), transparent 32%), linear-gradient(180deg,#fff 0%,#f6faf9 100%); }
.media-hero::after { position: absolute; right: -140px; bottom: -280px; width: 520px; height: 520px; content: ""; border: 1px solid rgba(15,102,117,.12); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { width: 34px; height: 2px; content: ""; background: var(--teal); }
.media-hero h1 { margin: 0 0 22px; color: #102f43; font-size: clamp(44px, 6vw, 76px); line-height: 1.08; letter-spacing: -.045em; }
.hero-catch { margin: 0 0 24px; font-size: clamp(20px, 2.5vw, 30px); font-weight: 800; line-height: 1.55; }
.hero-intro { max-width: 780px; margin: 0; color: var(--muted); font-size: 16px; }
.hero-monogram { display: grid; width: 180px; height: 180px; place-items: center; border: 1px solid rgba(15,102,117,.17); border-radius: 50%; color: var(--teal); font-size: 13px; font-weight: 800; letter-spacing: .18em; }

.category-nav { border-bottom: 1px solid var(--line); background: #fff; }
.category-list { display: flex; min-height: 68px; margin: 0; padding: 0; align-items: center; gap: 8px 28px; list-style: none; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category-list a { display: block; padding: 20px 0 17px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 13px; font-weight: 800; }
.category-list a:hover, .category-list a:focus-visible, .category-list .is-current a { border-color: var(--gold); color: var(--navy); }

.posts-section { padding: 86px 0 110px; }
.section-heading-row { display: flex; margin-bottom: 38px; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.3; letter-spacing: -.03em; }
.section-count { color: #8b989f; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 44px 24px; }
.post-card { min-width: 0; }
.card-image { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 20px; border-radius: 20px; background: linear-gradient(145deg, #e9f2f1, #dce9eb); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .card-image img { transform: scale(1.035); }
.image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, var(--teal), var(--navy)); color: rgba(255,255,255,.86); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.image-placeholder::after { position: absolute; width: 190px; height: 190px; content: ""; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.card-meta { display: flex; margin-bottom: 11px; align-items: center; justify-content: space-between; gap: 12px; color: #7b8b93; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.card-category { color: var(--teal); font-weight: 900; }
.card-title { margin: 0 0 12px; color: var(--navy); font-size: clamp(19px, 2vw, 23px); line-height: 1.55; letter-spacing: -.01em; }
.card-title a:hover { color: var(--teal); }
.card-excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.empty-state { grid-column: 1 / -1; padding: 64px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--pale); text-align: center; }
.empty-state h2 { margin-top: 0; color: var(--navy); }
.pagination { margin-top: 70px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; min-width: 44px; height: 44px; padding: 0 12px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 13px; font-weight: 800; }
.pagination .current, .pagination a:hover { border-color: var(--teal); background: var(--teal); color: #fff; }

.archive-hero { padding: 72px 0 52px; background: var(--pale); border-bottom: 1px solid var(--line); }
.archive-hero h1 { margin: 0; color: var(--navy); font-size: clamp(36px,5vw,60px); line-height: 1.2; }
.archive-description { max-width: 700px; margin: 15px 0 0; color: var(--muted); }

.article-header { padding: 84px 0 52px; }
.article-header-inner { max-width: 930px; margin: auto; }
.article-category { display: inline-block; margin-bottom: 17px; color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.article-title { margin: 0 0 25px; color: var(--navy); font-size: clamp(34px,5vw,58px); line-height: 1.35; letter-spacing: -.035em; }
.article-meta { color: #7c8c94; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.article-thumbnail { overflow: hidden; width: min(calc(100% - 40px), 1060px); max-height: 650px; margin: 0 auto 70px; border-radius: 28px; background: var(--pale); }
.article-thumbnail img { width: 100%; max-height: 650px; object-fit: cover; }
.article-body { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto 100px; font-size: 16px; }
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 2em; }
.article-body h2 { margin: 2.4em 0 .9em; padding: 0 0 14px; border-bottom: 2px solid var(--teal); color: var(--navy); font-size: clamp(26px,4vw,34px); line-height: 1.5; }
.article-body h3 { margin: 2.1em 0 .8em; padding-left: 15px; border-left: 4px solid var(--gold); color: var(--navy); font-size: 23px; line-height: 1.5; }
.article-body h4 { margin: 2em 0 .7em; color: var(--navy); font-size: 19px; }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 2em; padding-left: 1.5em; }
.article-body blockquote { margin: 2.2em 0; padding: 24px 28px; border-left: 4px solid var(--teal); background: var(--pale); color: var(--muted); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body figure { margin: 2.4em 0; }
.article-body figcaption { margin-top: 8px; color: #7c8c94; font-size: 12px; text-align: center; }
.article-body table { display: block; max-width: 100%; margin-bottom: 2em; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { padding: 12px 14px; border: 1px solid var(--line); }
.article-body th { background: var(--pale); }
.post-tags { display: flex; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); gap: 8px; flex-wrap: wrap; }
.post-tags a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; text-decoration: none; }

.article-cta { margin: 0 20px 100px; }
.cta-inner { position: relative; overflow: hidden; max-width: 1000px; margin: auto; padding: 64px 56px; border-radius: 30px; background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; }
.cta-inner::after { position: absolute; right: -110px; bottom: -190px; width: 360px; height: 360px; content: ""; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.cta-kicker { margin: 0 0 14px; color: #a9dce2; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.cta-inner h2 { position: relative; z-index: 1; max-width: 730px; margin: 0 0 16px; font-size: clamp(27px,4vw,40px); line-height: 1.45; }
.cta-inner p { position: relative; z-index: 1; max-width: 680px; margin: 0 0 28px; color: rgba(255,255,255,.78); }
.button { position: relative; z-index: 1; display: inline-flex; min-height: 52px; padding: 0 24px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.16); }

.site-footer { padding: 52px 0 38px; border-top: 1px solid var(--line); background: var(--pale); }
.footer-top { display: flex; margin-bottom: 52px; align-items: flex-start; justify-content: space-between; gap: 36px; }
.footer-copy { max-width: 530px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 24px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.footer-links .menu { gap: 24px; flex-wrap: wrap; }
.footer-bottom { display: flex; padding-top: 24px; border-top: 1px solid var(--line); justify-content: space-between; gap: 20px; color: #7a8991; font-size: 11px; }

@media (max-width: 900px) {
  body.admin-bar .mg-header { top: 32px; }
  body.admin-bar .column-subheader { top: 108px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 24px 20px 28px; border-bottom: 1px solid var(--line); background: #fff; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: block; padding: 12px 0; }
  .site-nav .menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .mbiz-link { min-height: auto; padding: 12px 0; border: 0; border-radius: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-monogram { display: none; }
  .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 66px; }
  .column-subheader { top: 66px; }
  .column-subheader-inner { min-height: 58px; gap: 20px; }
  .column-subheader-brand strong { font-size: 13px; }
  .column-subheader-brand small { display: none; }
  .column-subnav { gap: 18px; }
  .column-subnav a { padding: 17px 0 14px; }
  body.admin-bar .mg-header { top: 46px; }
  body.admin-bar .column-subheader { top: 112px; }
  .site-brand .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 14px; }
  .media-hero { padding: 60px 0 54px; }
  .media-hero h1 { font-size: 42px; }
  .hero-catch { font-size: 19px; }
  .hero-intro br { display: none; }
  .category-list { min-height: 58px; }
  .category-list a { padding-block: 16px 13px; }
  .posts-section { padding: 62px 0 80px; }
  .post-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-heading-row { margin-bottom: 30px; }
  .section-count { display: none; }
  .archive-hero { padding: 52px 0 40px; }
  .article-header { padding: 55px 0 38px; }
  .article-title { font-size: 32px; }
  .article-thumbnail { width: calc(100% - 28px); margin-bottom: 48px; border-radius: 18px; }
  .article-body { width: calc(100% - 36px); margin-bottom: 72px; font-size: 15px; }
  .article-body h2 { font-size: 25px; }
  .article-body h3 { font-size: 20px; }
  .article-cta { margin: 0 14px 72px; }
  .cta-inner { padding: 42px 24px; border-radius: 24px; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-links, .footer-links .menu { gap: 12px 20px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
