/* ============================================
   ANIBIS Media — brand aligned stylesheet v2
   Brand reds: Bordeaux #8B1E2A / Coral #E94E4E
   ============================================ */

:root{
  --brand: #8B1E2A;
  --brand-dark: #6E1520;
  --brand-2: #E94E4E;
  --brand-soft: #FBE9E6;
  --brand-tint: #F7D9D4;
  --ink: #1F1F2E;
  --ink-2: #474759;
  --muted: #8B8B99;
  --paper: #FBF7F2;
  --paper-2: #F3EEE5;
  --line: #E5DED2;
  --cream: #FFF8EC;
  --yellow: #F5C84B;
  --green: #2FA373;
  --page-max: 1280px;
  --gutter: 24px;
}

[data-theme="dark"]{
  --ink:#F7F3EC;
  --ink-2:#cac4ba;
  --paper:#141319;
  --paper-2:#1C1B24;
  --muted:#8a8594;
  --line:#2D2B38;
  --brand-soft:#2a1a1c;
  --cream:#1f1b14;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
/* ============================================
   日本B2B SaaSデファクトスタンダードのフォントスタック
   OS標準優先（高速・高精細）→ Webフォントフォールバック
   採用例: SmartHR / freee / Sansan / マネーフォワード / LayerX
   ============================================ */
:root{
  --font-sans: -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic Medium", "Yu Gothic", YuGothic,
    Meiryo, "Noto Sans JP", "Inter",
    "Helvetica Neue", Arial, sans-serif;
  --font-en: "Inter", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho,
    "Noto Serif JP", "Times New Roman", serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", "Consolas",
    ui-monospace, monospace;
}

body{
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.7;
}

.jp{ font-family: var(--font-sans); }
.en{ font-family: var(--font-en); }
.mono{ font-family: var(--font-mono); }
.display{ font-family: var(--font-sans); font-weight: 900; letter-spacing: -0.015em; }

.container{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ----------- NAV ----------- */
.nav{
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 24px;
}
.logo{
  display:flex; align-items:center; gap: 10px;
  font-weight: 900; font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink); text-decoration:none;
}
.logo-mark{
  width: 30px; height: 30px;
  background: var(--brand);
  border-radius: 6px;
  color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-weight: 900; font-size: 16px;
  letter-spacing: -0.02em;
  position: relative;
}
.logo-mark::after{
  content:""; position:absolute; right:-3px; bottom:-3px;
  width: 10px; height: 10px; background: var(--brand-2);
  border-radius: 50%;
}
.logo small{ color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: .12em; display:block; line-height: 1;}
.nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap: 26px;
  font-size: 14px; font-weight: 500;
}
.nav ul a{ color: var(--ink); text-decoration: none; transition: color .15s; }
.nav ul a:hover, .nav ul a.active{ color: var(--brand); }
.nav-cta{
  display:inline-flex; align-items:center; gap: 8px;
  background: var(--brand); color: var(--paper);
  padding: 10px 18px;
  font-weight: 700; font-size: 13px;
  border-radius: 999px;
  text-decoration:none;
  transition: background .15s, transform .15s;
}
.nav-cta:hover{ background: var(--brand-dark); transform: translateY(-1px); }

/* ----------- HERO ----------- */
.hero{
  background: var(--brand);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  border-bottom: 6px solid var(--brand-dark);
}
.hero::before{
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 20%, color-mix(in oklab, var(--brand-2) 40%, transparent) 0, transparent 45%),
    radial-gradient(circle at 10% 90%, color-mix(in oklab, var(--brand-dark) 80%, transparent) 0, transparent 40%);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 1.5px 1.5px, color-mix(in oklab, var(--paper) 10%, transparent) 1.5px, transparent 0);
  background-size: 10px 10px;
  pointer-events:none;
}
.hero-inner{
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge{
  display:inline-flex; align-items:center; gap: 10px;
  background: color-mix(in oklab, var(--paper) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--paper) 30%, transparent);
  color: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.hero-badge .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--yellow) 30%, transparent);
}
.hero h1{
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 22px 0 18px;
  text-wrap: balance;
}
.hero h1 .mark{
  background: var(--yellow);
  color: var(--ink);
  padding: 0 .1em;
  margin: 0 .05em;
  border-radius: 4px;
  display: inline-block;
  transform: rotate(-1deg);
}
.hero h1 .brand-soft{
  color: var(--brand-tint);
}
.hero .deck{
  font-size: 17px; line-height: 1.95;
  max-width: 52ch;
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  margin: 0 0 32px;
}
.hero-ctas{
  display:flex; gap: 14px; align-items:center; flex-wrap:wrap;
}
.btn{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 16px 28px;
  font-weight: 700; font-size: 15px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--paper); color: var(--brand);
  border-color: var(--paper);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.btn-primary .arrow{ transition: transform .2s; }
.btn-primary:hover .arrow{ transform: translateX(3px); }
.btn-secondary{
  background: transparent; color: var(--paper);
  border-color: color-mix(in oklab, var(--paper) 60%, transparent);
}
.btn-secondary:hover{ background: color-mix(in oklab, var(--paper) 12%, transparent); border-color: var(--paper); }
.hero-meta{
  margin-top: 32px;
  display:flex; gap: 28px; flex-wrap:wrap;
  font-size: 13px;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
}
.hero-meta b{ color: var(--paper); font-weight:700; }

/* hero visual */
.hero-visual{
  position: relative;
  aspect-ratio: 5/5;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
.hv-card{
  position: absolute;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.12);
  padding: 18px;
}
.hv-main{
  inset: 40px 60px 60px 20px;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
}
.hv-main .thumb{
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, #FFB89E 0%, #E94E4E 50%, #8B1E2A 100%);
}
.hv-main .thumb::after{
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 6px 6px;
}
.hv-main .play{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--paper); color: var(--brand);
  display:grid; place-items:center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.hv-main .timeline{
  position:absolute; left: 16px; right: 16px; bottom: 14px;
  display:flex; align-items:center; gap: 10px;
}
.hv-main .bar{
  flex:1; height: 4px; background: color-mix(in oklab, white 30%, transparent);
  border-radius: 99px; overflow: hidden;
}
.hv-main .bar i{ display:block; height:100%; width: 38%; background: white; border-radius: 99px; }
.hv-main .tt{ color: white; font-size: 11px; font-weight:700; font-family: var(--font-mono); }

.hv-tag-a{
  right: -20px; top: 30px;
  width: 180px;
  transform: rotate(3deg);
}
.hv-tag-a .lbl{ font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing:.1em; text-transform: uppercase; }
.hv-tag-a .num{ font-size: 34px; font-weight: 900; line-height: 1; margin: 4px 0 4px; color: var(--brand); letter-spacing: -0.02em;}
.hv-tag-a .sub{ font-size: 11px; color: var(--ink-2); font-weight: 600; }
.hv-tag-a .bars{ display:flex; gap:3px; align-items:flex-end; height:24px; margin-top: 8px; }
.hv-tag-a .bars i{ width: 8px; background: var(--brand-tint); border-radius: 2px; }
.hv-tag-a .bars i:nth-child(1){ height: 30%; }
.hv-tag-a .bars i:nth-child(2){ height: 55%; }
.hv-tag-a .bars i:nth-child(3){ height: 45%; }
.hv-tag-a .bars i:nth-child(4){ height: 80%; background: var(--brand); }
.hv-tag-a .bars i:nth-child(5){ height: 95%; background: var(--brand); }

.hv-tag-b{
  left: -10px; bottom: -10px;
  width: 220px;
  transform: rotate(-2deg);
  background: var(--ink);
  color: var(--paper);
  padding: 16px 18px;
}
.hv-tag-b .lbl{ font-size: 10px; color: var(--brand-2); font-weight: 700; letter-spacing:.1em; text-transform: uppercase; }
.hv-tag-b .t{ font-size: 13px; font-weight: 700; margin-top: 6px; line-height: 1.5;}
.hv-tag-b .avatars{ display:flex; margin-top: 10px; }
.hv-tag-b .avatars i{
  width: 24px; height:24px; border-radius: 50%;
  border: 2px solid var(--ink);
  display:inline-block;
  margin-left: -6px;
}
.hv-tag-b .avatars i:first-child{ margin-left: 0; background: #F5C84B; }
.hv-tag-b .avatars i:nth-child(2){ background: #2FA373; }
.hv-tag-b .avatars i:nth-child(3){ background: #E94E4E; }
.hv-tag-b .avatars i:nth-child(4){ background: #3B82F6; }
.hv-tag-b .avatars span{ margin-left: 8px; font-size: 11px; color: color-mix(in oklab, var(--paper) 70%, transparent); display:inline-flex; align-items:center; }

.hv-sparkle{
  position:absolute; width: 40px; height: 40px;
  color: var(--yellow);
  font-size: 40px;
  display:grid; place-items:center;
}
.hv-sparkle.s1{ top: -4px; left: -4px; transform: rotate(-10deg); animation: spin 20s linear infinite;}
.hv-sparkle.s2{ right: 40%; bottom: -10px; transform: rotate(15deg); animation: spin 14s linear infinite reverse; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ----------- LOGO STRIP ----------- */
.logos{
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.logos-label{
  text-align:center; font-size: 12px; font-weight: 600;
  color: var(--muted); letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 22px;
}
.logos-row{
  display:grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items:center;
}
.logo-chip{
  height: 40px;
  display:grid; place-items:center;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  opacity: .78;
  border-right: 1px solid var(--line);
}
.logo-chip:last-child{ border-right: none; }

/* ----------- SECTION COMMONS ----------- */
.section{ padding: 90px 0; position: relative; }
.section.alt{ background: var(--paper-2); }
.section.ink{ background: var(--ink); color: var(--paper); }

.sec-head{
  display:flex; flex-direction:column; align-items:center;
  text-align:center;
  gap: 14px;
  margin-bottom: 52px;
}
.sec-kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-size: 12px; font-weight: 700;
  color: var(--brand);
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 14px;
  background: var(--brand-soft);
  border-radius: 999px;
}
.sec-kicker.dark{ background: color-mix(in oklab, var(--paper) 12%, transparent); color: var(--yellow); }
.sec-head h2{
  margin:0;
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: balance;
}
.sec-head h2 em{
  font-style: normal; color: var(--brand);
}
.sec-head h2 .u{
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  padding: 0 .08em;
}
.section.ink .sec-head h2{ color: var(--paper); }
.section.ink .sec-head h2 em{ color: var(--brand-2); }
.sec-head p{
  margin: 0;
  color: var(--ink-2);
  font-size: 16px; line-height: 1.9;
  max-width: 62ch;
}
.section.ink .sec-head p{ color: color-mix(in oklab, var(--paper) 75%, transparent); }

/* ----------- WHY / 3 points ----------- */
.why-grid{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: default;
}
.why-card:hover{
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 14px 40px -10px rgba(139,30,42,0.18);
}
.why-no{
  position:absolute; top: -14px; left: 24px;
  background: var(--brand); color: var(--paper);
  width: 40px; height: 40px; border-radius: 50%;
  display:grid; place-items:center;
  font-weight: 900; font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px -4px rgba(139,30,42,0.4);
}
.why-icon{
  width: 56px; height: 56px;
  background: var(--brand-soft);
  border-radius: 14px;
  display:grid; place-items:center;
  margin: 8px 0 18px;
  color: var(--brand);
}
.why-card h3{
  margin: 0 0 10px;
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.why-card h3 em{ color: var(--brand); font-style: normal; }
.why-card p{
  margin: 0;
  color: var(--ink-2);
  font-size: 14px; line-height: 1.95;
}
.why-stat{
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  display:flex; align-items:baseline; gap: 10px;
}
.why-stat .big{
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 36px; line-height: 1;
  color: var(--brand);
  letter-spacing: -0.03em;
}
.why-stat .big .unit{ font-size: 16px; color: var(--brand-2); margin-left: 2px;}
.why-stat .lbl{ font-size: 12px; color: var(--muted); font-weight: 600; }

/* ----------- NUMBERS ROW ----------- */
.numbers{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  margin-top: 50px;
}
.num-cell{
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  text-align:center;
  position:relative;
}
.num-cell:last-child{ border-right:none; }
.num-cell .big{
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 48px; line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.num-cell .big .unit{ color: var(--brand); font-size: 20px; margin-left:2px;}
.num-cell .lbl{
  margin-top: 10px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.num-cell .sub{ color: var(--muted); font-size: 11px; margin-top: 4px;}

/* ----------- LATEST ARTICLES ----------- */
.tabs{
  display:flex; gap: 10px; justify-content:center; flex-wrap:wrap;
  margin-bottom: 40px;
}
.tab{
  padding: 10px 18px;
  font-size: 13px; font-weight: 700;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  border-radius: 999px;
  cursor:pointer;
  transition: all .15s;
}
.tab:hover{ border-color: var(--brand); color: var(--brand); }
.tab.active{ background: var(--brand); border-color: var(--brand); color: var(--paper); }

.articles{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.art{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor:pointer;
  display:flex; flex-direction:column;
}
.art:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.15);
}
.art-thumb{
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.art-thumb::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35));
}
.art-thumb .cat{
  position: absolute; top: 14px; left: 14px;
  background: var(--paper); color: var(--brand);
  font-size: 11px; font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 1;
  letter-spacing: .01em;
}
.art-thumb .dur{
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,0.6); color: white;
  font-size: 11px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  z-index:1;
}
.art-thumb .play{
  position:absolute; left:50%; top:50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); color: var(--brand);
  display:grid; place-items:center;
  font-size: 15px;
  z-index:1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.art-body{
  padding: 20px 22px 22px;
  display:flex; flex-direction:column;
  flex: 1;
}
.art h3{
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.art:hover h3{ color: var(--brand); }
.art p{
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 13px; line-height: 1.8;
  flex: 1;
}
.art-meta{
  display:flex; align-items:center; gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
.art-meta .avatar{
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft);
  display:grid; place-items:center;
  font-size: 10px; font-weight: 900; color: var(--brand);
}
.art-meta b{ color: var(--ink); font-weight: 700; font-size: 12px; }
.art-meta .date{ margin-left: auto; font-family: var(--font-mono); }

/* ----------- CASE STUDIES ----------- */
.cases{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.case{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display:flex; flex-direction:column; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.case:hover{ border-color: var(--brand); transform: translateY(-2px); }
.case-head{
  display:flex; align-items:center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.case-head .avatar{
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand); color: var(--paper);
  display:grid; place-items:center;
  font-weight: 900; font-size: 14px;
}
.case-head .industry{ font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .06em; text-transform: uppercase;}
.case-head .client{ font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px;}
.case q{
  margin: 0;
  font-size: 14px; line-height: 1.95;
  color: var(--ink);
  font-weight: 500;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
.case q::before{ content: "\201C"; color: var(--brand); font-size: 24px; font-weight: 900; line-height: 0; vertical-align: -8px; margin-right: 2px;}
.case q::after{ content: "\201D"; color: var(--brand); font-size: 24px; font-weight: 900; line-height: 0; vertical-align: -8px; margin-left: 2px;}
.case-tag{
  display:inline-flex; align-items:center; gap: 6px;
  margin-top: auto;
  font-size: 11px; color: var(--muted); font-weight: 600;
}
.case-tag .dot{ width:6px; height:6px; border-radius:50%; background: var(--green); }

/* ----------- FEATURE BANNER / CTA ----------- */
.feature-row{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}
.feature-copy h3{
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 12px 0 18px;
}
.feature-copy h3 em{ color: var(--brand); font-style: normal;}
.feature-copy p{
  color: var(--ink-2); line-height: 1.95; margin: 0 0 22px; font-size: 15px;
}
.feature-list{ margin: 0 0 26px; padding: 0; list-style: none; display:grid; gap: 10px; }
.feature-list li{
  display:flex; gap: 10px; align-items:flex-start;
  font-size: 14px; line-height: 1.7;
  color: var(--ink);
}
.feature-list li::before{
  content:"\2713";
  color: var(--paper);
  background: var(--brand);
  width: 22px; height: 22px;
  border-radius: 50%;
  display:grid; place-items:center;
  font-size: 12px; font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-visual{
  position: relative;
  aspect-ratio: 4/3;
  background: var(--brand);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(139,30,42,0.35);
}
.feature-visual .bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, var(--brand-2), transparent 50%),
    radial-gradient(circle at 20% 80%, #3B82F6, transparent 55%),
    var(--brand);
}
.feature-visual .bg::after{
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.12) 1px, transparent 0);
  background-size: 14px 14px;
}
.feature-visual .label{
  position:absolute; top: 18px; left: 20px;
  background: rgba(0,0,0,0.4); color: white;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  letter-spacing: .06em; text-transform: uppercase;
}
.feature-visual .play{
  position:absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--paper); color: var(--brand);
  display:grid; place-items:center; font-size: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .2s;
  cursor: pointer;
}
.feature-visual .play:hover{ transform: translate(-50%, -50%) scale(1.08); }
.feature-visual .title{
  position:absolute; left: 20px; right: 20px; bottom: 20px;
  color: white;
  font-weight: 900; font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* ----------- CATEGORIES ----------- */
.cats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display:flex; flex-direction:column; gap: 10px;
  cursor: pointer;
  transition: all .18s;
  position: relative;
  overflow: hidden;
}
.cat-card::before{
  content:""; position:absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  opacity: 0;
  transition: opacity .2s;
  z-index: 0;
}
.cat-card:hover{ border-color: transparent; transform: translateY(-3px);}
.cat-card:hover::before{ opacity: 1; }
.cat-card > *{ position: relative; z-index: 1; transition: color .2s; }
.cat-card:hover > *{ color: var(--paper); }
.cat-card:hover .cat-count{ color: color-mix(in oklab, var(--paper) 80%, transparent); }
.cat-icon{
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display:grid; place-items:center;
  transition: background .2s, color .2s;
}
.cat-card:hover .cat-icon{ background: color-mix(in oklab, var(--paper) 20%, transparent); color: var(--paper); }
.cat-card h4{
  margin: 6px 0 0;
  font-size: 17px; font-weight: 800;
  letter-spacing: -0.005em;
}
.cat-card .en{
  font-size: 11px; color: var(--muted);
  font-family: var(--font-en); font-weight: 600;
  letter-spacing: .04em;
}
.cat-count{
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ----------- CTA BIG ----------- */
.cta-big{
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--paper);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-big::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 85% 30%, color-mix(in oklab, var(--brand-2) 60%, transparent), transparent 50%),
    radial-gradient(circle at 15% 90%, color-mix(in oklab, var(--yellow) 30%, transparent), transparent 40%);
}
.cta-big::after{
  content:"";
  position:absolute; inset:0;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(255,255,255,0.1) 1.2px, transparent 0);
  background-size: 12px 12px;
  pointer-events:none;
}
.cta-big-inner{
  position: relative;
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-big h2{
  font-weight: 900;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 18px 0 20px;
  color: var(--paper);
}
.cta-big h2 .u{
  background: linear-gradient(transparent 62%, var(--yellow) 62%);
  color: var(--ink);
  padding: 0 .1em;
}
.cta-big p{ font-size: 16px; line-height: 1.95; margin: 0 0 28px; color: color-mix(in oklab, var(--paper) 88%, transparent); max-width: 52ch;}
.cta-specs{
  background: color-mix(in oklab, white 10%, transparent);
  border: 1px solid color-mix(in oklab, white 25%, transparent);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.cta-specs h4{
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700;
  color: var(--yellow);
  letter-spacing: .14em; text-transform: uppercase;
}
.cta-spec-row{
  display:grid; grid-template-columns: 130px 1fr;
  padding: 14px 0;
  border-top: 1px solid color-mix(in oklab, white 15%, transparent);
  font-size: 14px;
  line-height: 1.6;
}
.cta-spec-row:first-of-type{ border-top: none; padding-top: 4px;}
.cta-spec-row .k{
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.cta-spec-row .v{ color: var(--paper); font-weight: 600; }

/* ----------- FOOTER ----------- */
.footer{
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 75%, transparent);
  padding: 64px 0 28px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 15%, transparent);
}
.footer .logo{ color: var(--paper); }
.footer-tag{
  font-size: 13px; line-height: 1.9;
  margin: 18px 0 20px;
  max-width: 38ch;
}
.footer h5{
  margin: 0 0 14px;
  font-size: 12px; font-weight: 700;
  color: var(--paper);
  letter-spacing: .14em; text-transform: uppercase;
}
.footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 10px; }
.footer a{ color: color-mix(in oklab, var(--paper) 75%, transparent); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer a:hover{ color: var(--brand-2); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 24px;
  font-size: 12px;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  flex-wrap:wrap; gap: 16px;
}

/* ----------- NEWSLETTER ----------- */
.newsletter{
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 48px 52px;
  display:grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before{
  content:"\2731"; position:absolute; top:-20px; right:-16px;
  font-size: 140px; color: var(--brand-soft);
  font-weight: 900;
  line-height: 1;
  transform: rotate(8deg);
}
.newsletter h3{
  margin: 10px 0 10px;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.newsletter p{ margin: 0; color: var(--ink-2); line-height: 1.9; font-size: 14px; }
.newsletter-form{ display:flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.nl-input-row{
  display:flex; background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 4px 4px 20px;
  align-items: center;
  box-shadow: 4px 4px 0 var(--ink);
}
.nl-input-row input{
  flex: 1; border:none; background: transparent;
  padding: 12px 0; font-size: 14px; outline: none;
  color: var(--ink);
  font-family: inherit;
}
.nl-input-row button{
  background: var(--brand); color: var(--paper);
  border: none; padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.nl-input-row button:hover{ background: var(--brand-dark); }
.nl-fine{ font-size: 11px; color: var(--muted); padding-left: 6px; }

/* ----------- TWEAKS PANEL ----------- */
.tweaks{
  position: fixed; right: 20px; bottom: 20px;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 16px 18px;
  width: 270px;
  z-index: 100;
  box-shadow: 6px 6px 0 var(--ink);
}
.tweaks h5{
  margin: 0 0 12px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  display:flex; justify-content:space-between; align-items:center;
}
.tweaks h5 span{ color: var(--brand); }
.tweak-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 8px 0; border-top: 1px dashed var(--line);
  gap: 10px;
}
.tweak-row:first-of-type{ border-top: none; }
.tweak-row label{ color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.tweak-row .opts{ display:flex; gap: 4px; }
.tweak-row .opts button{
  background: transparent; border: 1px solid var(--line);
  font-family: inherit; font-size: 11px;
  font-weight: 600;
  color: var(--ink); padding: 5px 9px; cursor: pointer;
  border-radius: 999px;
  transition: all .15s;
}
.tweak-row .opts button.on{
  background: var(--brand); color: var(--paper); border-color: var(--brand);
}

/* ----------- DENSITY ----------- */
[data-density="airy"] .section{ padding: 120px 0; }
[data-density="tight"] .section{ padding: 60px 0; }

/* ----------- REVEAL ----------- */
.reveal{ opacity: 0; transform: translateY(16px); transition: all .8s cubic-bezier(.2,.7,.1,1); }
.reveal.in{ opacity: 1; transform: none; }

/* ----------- MISC plates ----------- */
.plate-red{ background: linear-gradient(135deg, #FFB89E, #E94E4E 55%, #8B1E2A);}
.plate-ink{ background: linear-gradient(150deg, #2D2B38, #1F1F2E 60%, #0E0D14);}
.plate-cream{ background: linear-gradient(170deg, #FFF8EC, #F5C84B 75%, #E89B2A);}
.plate-forest{ background: linear-gradient(135deg, #7DDFA9, #2FA373 55%, #1A5B43);}
.plate-blue{ background: linear-gradient(135deg, #9DB9FF, #3B82F6 55%, #1D4ED8);}
.plate-mix{ background: linear-gradient(135deg, #F5C84B 0%, #E94E4E 50%, #8B1E2A 100%);}

.plate-icon{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.35);
  font-size: 60px;
  font-weight: 900;
  font-family: var(--font-en);
  letter-spacing: -0.04em;
  pointer-events: none;
}

/* ============== WordPress integration ============== */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.875rem; color: var(--ink-3); margin-top: 0.5em; }
.sticky { /* WP required */ }

/* ============================================================
   v6.2.0 新規セクション
============================================================ */

/* Pain Hook */
.pain-hook .pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.pain-card {
  background: var(--paper);
  border: 1px solid var(--ink-line, #e5e1d8);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
}
.pain-card .pain-no {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 14px;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.pain-card h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--ink-1, #1a1a1a);
}
.pain-card p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2, #4a4a4a);
}
.pain-bridge {
  text-align: center;
  margin-top: 56px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-1);
}
.pain-bridge strong {
  background: linear-gradient(transparent 60%, rgba(255, 220, 0, 0.5) 60%);
  font-weight: 800;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .pain-hook .pain-grid { grid-template-columns: 1fr; gap: 20px; }
  .pain-card { padding: 24px 20px; }
  .pain-card h3 { font-size: 17px; }
  .pain-bridge { font-size: 16px; }
}

/* Structure (3段ロケット) */
.structure .structure-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: stretch;
  gap: 0;
  margin-top: 56px;
}
.structure-step {
  background: var(--paper);
  border: 1px solid var(--ink-line, #e5e1d8);
  border-radius: 16px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}
.structure-step .step-no {
  display: inline-block;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  align-self: flex-start;
}
.structure-step h3 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 16px;
}
.structure-step h3 em {
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(255, 220, 0, 0.5) 60%);
}
.structure-step p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.structure-step ul {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}
.structure-step ul li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.structure-arrow {
  align-self: center;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
}

@media (max-width: 768px) {
  .structure .structure-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .structure-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

/* Pricing */
.pricing .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: stretch;
}
.pricing-card {
  background: var(--paper);
  border: 1px solid var(--ink-line, #e5e1d8);
  border-radius: 16px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.pricing-recommend {
  border: 2px solid var(--brand);
  box-shadow: 0 16px 40px rgba(139, 30, 42, 0.12);
  transform: translateY(-8px);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--ink-1, #1a1a1a);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
}
.pricing-badge-recommend {
  background: var(--brand);
}
.pricing-badge-roi {
  background: #b8860b;
}
.pricing-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.pricing-card h3 .en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3, #888);
  letter-spacing: 0.12em;
}
.pricing-price { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--ink-line); }
.pricing-strike {
  display: block;
  text-decoration: line-through;
  color: var(--ink-3, #888);
  font-size: 14px;
  margin-bottom: 4px;
}
.pricing-strike small { font-size: 11px; }
.pricing-now {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}
.pricing-now small {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-left: 4px;
}
.pricing-note {
  font-size: 12px;
  color: var(--ink-3, #888);
  margin-top: 4px;
}
.pricing-aim {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.6;
  margin-bottom: 16px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.pricing-card ul li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px dashed var(--ink-line);
}
.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--brand);
  font-weight: 800;
}
.pricing-card .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.pricing-bonus {
  margin-top: 36px;
  padding: 20px 28px;
  background: var(--paper-2, #f7f3ec);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}
.pricing-bonus strong {
  color: var(--brand);
  margin-right: 8px;
}

@media (max-width: 768px) {
  .pricing .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-card.pricing-recommend { transform: none; }
}

/* ============================================================
   v6.2.1 アクセシビリティ・レスポンシブ・パフォーマンス改善
============================================================ */

/* ----------- スキップリンク（WCAG 2.4.1） ----------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--brand);
  color: var(--paper) !important;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 9999;
  transition: top 0s;
}
.skip-link:focus {
  top: 0;
}

/* ----------- フォーカスリング強化（WCAG 2.4.7） ----------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
/* ハイコントラストモード対応 */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid ButtonText; }
}
/* ボタン類はデフォルトoutlineを除去してfocus-visibleのみ適用 */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ----------- 記事カードリンクラップ対応 ----------- */
.art-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.art-link:hover .art h3,
.art-link:focus .art h3 { color: var(--brand); }
.art-link:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 16px;
}

/* ----------- レスポンシブ（375px モバイル強化） ----------- */
@media (max-width: 374px) {
  /* ナビ */
  .nav-cta { display: none; }

  /* ヒーロー */
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 28px; }
  .hero .deck { font-size: 15px; }

  /* ボタン */
  .btn { padding: 14px 20px; font-size: 14px; white-space: normal; text-align: center; }

  /* ニュースレター */
  .newsletter { padding: 28px 16px; }
  .nl-input-row { flex-direction: column; border-radius: 12px; padding: 12px; gap: 8px; box-shadow: none; }
  .nl-input-row input { padding: 8px 4px; }
  .nl-input-row button { border-radius: 8px; width: 100%; }

  /* 数値グリッド */
  .numbers { grid-template-columns: repeat(2, 1fr); }

  /* pricing バッジ：375px以下でテキスト重なり防止 */
  .pricing-badge { position: static; display: inline-block; margin-bottom: 12px; top: auto; left: auto; }
  .pricing-card.pricing-recommend { margin-top: 16px; }

  /* フッター */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 375px（Mobile標準）補完 */
@media (max-width: 480px) {
  /* pricing バッジ位置調整 — モバイルでもはみ出さない */
  .pricing-badge {
    top: -12px;
    font-size: 10px;
    padding: 4px 10px;
  }
  /* pain-hookセクション余白 */
  .pain-hook { padding-left: 0; padding-right: 0; }
  .pain-card { border-left-width: 3px; }

  /* structure 矢印 */
  .structure-arrow {
    transform: none;
    font-size: 20px;
    text-align: center;
    padding: 8px 0;
    color: var(--brand);
  }
  .structure-arrow::after { content: "↓"; display: block; }
  .structure-arrow { font-size: 0; } /* 元のテキストを隠す */

  /* CTA スペック行 */
  .cta-spec-row { grid-template-columns: 1fr; gap: 4px; }
  .cta-spec-row .k { font-size: 11px; }
}

/* 768px タブレット補完 */
@media (max-width: 768px) {
  /* structure grid — 768pxでモバイル縦並び（既存と整合） */
  .structure .structure-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .structure-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    font-size: 22px;
    transform: none;
  }

  /* pricing — 推薦カードの上余白（バッジのはみ出し分） */
  .pricing .pricing-grid { padding-top: 16px; }

  /* logo chip グリッド */
  .logos-row { grid-template-columns: repeat(3, 1fr); }
  .logo-chip { border-right: none; border-bottom: 1px solid var(--line); }
  .logo-chip:nth-child(3n) { border-bottom: none; }
}

/* ----------- font-display: swap 追記（Google Fonts読み込みはfunctions.phpで制御済） ----------- */
/* OSフォントスタックを使うため追加のWebフォント@font-faceは不要。
   Google Fontsは display=swap パラメータでfunctions.phpから読み込まれる前提。
   ここでは local() フォールバックを明示する。 */

/* ----------- prefers-reduced-motion（WCAG 2.3.3） ----------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  @keyframes float-a { from, to { transform: rotate(3deg) translateY(0); } }
  @keyframes float-b { from, to { transform: rotate(-2deg) translateY(0); } }
  @keyframes spin { to { transform: none; } }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ----------- ハイコントラストモード補完 ----------- */
@media (forced-colors: active) {
  .logo-mark, .why-no, .sec-kicker { forced-color-adjust: none; }
  .btn { border: 2px solid ButtonText; }
}
