/*
Theme Name: AI Shacho
Theme URI: https://ai-shacho.net/
Author: AI Infinity
Description: 「社長、それAIに任せましょう！」専用WordPressテーマ
Version: 0.5.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ai-shacho
*/

:root {
  --blue: #0649ad;
  --blue-dark: #072e70;
  --blue-soft: #edf5ff;
  --yellow: #ffd500;
  --yellow-deep: #ffb800;
  --ink: #111827;
  --muted: #526070;
  --line: #d8e0ec;
  --green: #13834e;
  --surface: #fff;
  --bg: #f8fafc;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 48, 112, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.site-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section-block { padding: 38px 0; }
.section-tight { padding: 18px 0; }
.center { margin-top: 22px; text-align: center; }
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-heading > span {
  width: 6px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -.03em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e7ebf1;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  min-height: 86px;
  gap: 24px;
}
.site-brand {
  display: flex;
  flex-direction: column;
  min-width: 310px;
  margin-right: auto;
  line-height: 1.25;
}
.site-brand strong {
  color: #050505;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 900;
  letter-spacing: -.07em;
}
.site-brand span {
  margin-top: 5px;
  font-size: .68rem;
  font-weight: 700;
}
.site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  white-space: nowrap;
}
.site-navigation a {
  position: relative;
  padding: 30px 0 26px;
  font-size: .82rem;
  font-weight: 800;
}
.site-navigation a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 19px;
  width: 0; height: 3px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: var(--blue);
  transition: width .2s ease;
}
.site-navigation a:hover::after { width: 100%; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 8px 17px;
  border-radius: 11px;
  background: var(--yellow);
  color: #111;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 4px 0 var(--yellow-deep);
}
.header-cta span { font-size: 1.35rem; }
.menu-toggle { display: none; }

/* Hero */
.hero-final {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #dce5f0;
  background: linear-gradient(104deg, #fffdf4 0 40%, #e9f3ff 40% 100%);
}
.hero-final::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background:
    repeating-linear-gradient(168deg, transparent 0 35px, rgba(6,73,173,.08) 36px 38px),
    radial-gradient(circle at 10% 50%, rgba(255,213,0,.7), transparent 27%);
}
.hero-final__inner {
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 410px;
}
.hero-final__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 0 42px 28px;
}
.hero-final__kicker {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 5px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: .82rem;
  font-weight: 900;
}
.hero-final h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.3rem);
  font-weight: 1000;
  line-height: .98;
  letter-spacing: -.08em;
}
.hero-final h1 em {
  color: var(--blue);
  font-style: normal;
}
.hero-final__lead {
  width: fit-content;
  margin: 22px 0 0;
  padding: 9px 20px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}
.hero-final__visual {
  position: relative;
  min-height: 410px;
}
.comic-burst {
  position: absolute;
  inset: 0;
  opacity: .65;
  background: repeating-conic-gradient(from 240deg at 42% 58%, rgba(6,73,173,.24) 0deg 1deg, transparent 1deg 8deg);
}
.art-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px dashed rgba(6,73,173,.38);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(230,242,255,.88)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(6,73,173,.04) 12px 24px);
  color: #537099;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}
.art-slot--hero {
  position: absolute;
  left: 5%; right: 4%; bottom: 0;
  height: 92%;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
}
.speech {
  position: absolute;
  z-index: 4;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  box-shadow: 3px 4px 0 rgba(0,0,0,.12);
}
.speech--one { left: 9%; top: 11%; }
.speech--two { right: 2%; top: 31%; }

/* CTA banner */
.consult-banner__inner {
  display: grid;
  grid-template-columns: 190px 1fr 180px;
  align-items: center;
  min-height: 205px;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(110deg, #0759c4, #053b90);
  color: #fff;
  box-shadow: var(--shadow);
}
.consult-badge {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  min-height: 205px;
  clip-path: polygon(0 0, 83% 0, 100% 50%, 83% 100%, 0 100%);
  background: var(--yellow);
  color: #111;
  text-align: center;
}
.consult-badge small { font-weight: 900; }
.consult-badge strong { margin-top: 4px; font-size: 1.65rem; line-height: 1.15; }
.consult-badge span { margin-top: 7px; font-size: 2rem; }
.consult-banner__main { padding: 26px 30px; }
.consult-banner__main h2 { margin-bottom: 4px; font-size: clamp(1.3rem, 2.1vw, 1.9rem); }
.consult-banner__main p { margin-bottom: 15px; color: #e9f2ff; }
.art-slot--consult { height: 184px; margin: 20px 20px 0 0; border-color: rgba(255,255,255,.45); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 50px;
  padding: 10px 26px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0,0,0,.13); }
.button--yellow { min-width: 370px; background: var(--yellow); color: #111; }
.button--outline { min-width: 260px; border: 2px solid var(--blue); background: #fff; color: var(--blue); box-shadow: none; }

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.benefit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(2,50,110,.05);
}
.benefit-card h3 { margin-bottom: 4px; font-size: 1rem; }
.benefit-card p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.benefit-icon {
  position: relative;
  flex: 0 0 50px;
  width: 50px; height: 50px;
  border: 3px solid var(--blue);
  border-radius: 50%;
}
.benefit-icon::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 1000;
}
.benefit-icon--clock::after { content: "◷"; }
.benefit-icon--yen::after { content: "¥"; }
.benefit-icon--chart::after { content: "↗"; }
.benefit-icon--partner::after { content: "♟"; }

/* Popular posts */
.popular { background: #fff; }
.popular-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.popular-card { min-width: 0; }
.popular-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-soft);
}
.popular-card__media img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-placeholder {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ffe361, #dcecff 54%, #fff);
  color: var(--blue-dark);
  font-weight: 900;
  text-align: center;
}
.category-chip {
  position: absolute;
  left: 7px; top: 7px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: .66rem;
  font-weight: 900;
}
.popular-card h3 { margin: 8px 2px 5px; font-size: .88rem; line-height: 1.55; }
.popular-card time { color: #7b8794; font-size: .68rem; }

/* Automation */
.automation-story { background: #f6f8fb; }
.automation-story__inner {
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  gap: 18px;
  align-items: stretch;
}
.art-slot--thinking { min-height: 270px; }
.automation-story__main h2 {
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}
.automation-story__main h2 em { font-style: normal; }
.automation-flow {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  align-items: stretch;
  gap: 5px;
}
.automation-flow article {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: .72rem;
  text-align: center;
}
.automation-flow article strong { min-height: 48px; }
.flow-arrow { display: grid; place-items: center; color: var(--blue); font-size: 2.2rem; font-weight: 900; }
.mini-art {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 95px;
  margin-top: 10px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff8cf, #eaf3ff);
  color: #58739b;
  font-size: .68rem;
  font-weight: 800;
  text-align: center;
}
.automation-story__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 25px 14px 0;
  text-align: center;
}
.automation-story__cta p { color: var(--ink); font-weight: 900; }
.automation-story__cta .button { min-width: 0; padding-inline: 12px; font-size: .8rem; }
.art-slot--ai-small { flex: 1; min-height: 100px; margin-top: 10px; border-bottom: 0; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.process-card {
  position: relative;
  min-width: 0;
  padding: 30px 13px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
.process-card:not(:last-child)::after {
  content: "•••›";
  position: absolute;
  z-index: 2;
  right: -18px;
  top: 20px;
  color: var(--blue);
  font-weight: 900;
}
.process-number {
  position: absolute;
  left: 50%; top: -16px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}
.process-card h3 { margin-bottom: 4px; font-size: .9rem; }
.process-card p { min-height: 45px; margin-bottom: 4px; color: var(--muted); font-size: .67rem; }

/* Reasons */
.reasons { background: #fff; }
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.reason-card {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 15px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.reason-card > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-weight: 900;
}
.reason-card h3 { margin-bottom: 3px; font-size: .76rem; }
.reason-card p { margin: 0; color: var(--muted); font-size: .61rem; line-height: 1.55; }

/* Voices */
.voices { background: #f8fafc; }
.voices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 260px;
  gap: 13px;
}
.voice-card {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 155px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.portrait-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  background: linear-gradient(145deg, #fff3a8, #d8eaff);
  color: #58739b;
  font-size: .65rem;
  font-weight: 800;
  text-align: center;
}
.voice-card h3 { margin-bottom: 5px; font-size: .9rem; }
.voice-card p { margin: 0; color: var(--muted); font-size: .72rem; }
.voices-cta {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
}
.art-slot--ai-voice { grid-row: span 2; min-height: 140px; }
.voices-cta strong { color: var(--blue-dark); font-size: 1.05rem; }
.voices-cta .button { min-height: 40px; padding: 8px 12px; font-size: .72rem; }

/* Closing & Footer */
.closing-cta {
  overflow: hidden;
  background:
    repeating-conic-gradient(from 270deg at 0 50%, rgba(255,255,255,.25) 0 2deg, transparent 2deg 9deg),
    linear-gradient(90deg, #ffc800, #ffb000);
}
.closing-cta__inner {
  display: grid;
  grid-template-columns: 1fr 380px 150px;
  align-items: center;
  min-height: 125px;
  gap: 20px;
}
.closing-cta__copy { display: flex; flex-direction: column; }
.closing-cta__copy strong { font-size: 2rem; line-height: 1.1; }
.closing-cta__copy small { font-weight: 700; }
.closing-cta__eyebrow { font-size: .78rem; font-weight: 900; }
.closing-cta__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 64px;
  padding: 12px 22px;
  border: 2px solid #111;
  border-radius: 10px;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(0,0,0,.2);
}
.art-slot--footer { align-self: end; min-height: 118px; border-bottom: 0; background: rgba(255,255,255,.55); }
.site-footer { padding: 18px 0; background: #06336f; color: #fff; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-brand { margin-right: auto; font-size: .78rem; font-weight: 900; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: .65rem; }
.site-footer small { font-size: .58rem; opacity: .82; }

/* Article and page templates */
main > .site-shell:not(.header-inner) { padding-block: 55px 80px; }
.entry {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 56px 90px;
}
.entry-header { margin-bottom: 35px; }
.entry-title { margin-bottom: 16px; color: var(--blue-dark); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.35; }
.entry-content h2 { margin-top: 2.2em; padding-left: 14px; border-left: 6px solid var(--blue); color: var(--blue-dark); }
.entry-content h3 { margin-top: 1.8em; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,48,112,.07);
}
.post-card a { display: block; height: 100%; padding: 18px; }
.post-card img { width: calc(100% + 36px); max-width: none; margin: -18px -18px 15px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card h2 { margin: 6px 0; font-size: 1.1rem; }
.post-card p { color: var(--muted); font-size: .8rem; }
.nav-links { display: flex; gap: 8px; margin-top: 28px; }
.page-numbers { padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; }
.page-numbers.current { background: var(--blue); color: #fff; }

/* Tablet */
@media (max-width: 1050px) {
  .header-inner { min-height: 74px; }
  .site-brand { min-width: 260px; }
  .site-brand span { display: none; }
  .site-navigation { gap: 12px; }
  .site-navigation a { font-size: .7rem; }
  .header-cta { font-size: .7rem; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .popular-grid { grid-template-columns: repeat(3, 1fr); }
  .reasons-grid { grid-template-columns: repeat(3, 1fr); }
  .voices-grid { grid-template-columns: 1fr 1fr; }
  .voices-cta { grid-column: 1 / -1; grid-template-columns: 120px 1fr 220px; }
  .art-slot--ai-voice { grid-row: auto; min-height: 100px; }
}

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-shell { width: min(100% - 28px, 1180px); }
  .section-block { padding: 30px 0; }
  .header-inner { min-height: 66px; gap: 10px; }
  .site-brand { min-width: 0; }
  .site-brand strong { font-size: 1.08rem; }
  .header-cta { min-height: 46px; padding: 6px 10px; font-size: .62rem; }
  .header-cta span { display: none; }
  .menu-toggle {
    display: grid;
    gap: 4px;
    width: 40px; height: 40px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
  }
  .menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; background: var(--ink); }
  .site-navigation {
    position: absolute;
    left: 0; right: 0; top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 15px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 25px rgba(0,0,0,.12);
  }
  .site-navigation.is-open { display: flex; }
  .site-navigation a { padding: 11px 7px; border-bottom: 1px solid #edf0f5; font-size: .8rem; }
  .site-navigation a::after { display: none; }

  .hero-final__inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-final__copy { padding: 36px 5px 14px; text-align: center; }
  .hero-final__kicker { align-self: center; }
  .hero-final h1 { font-size: clamp(2.8rem, 12vw, 3.5rem); }
  .hero-final__lead { margin-inline: auto; font-size: .8rem; }
  .hero-final__visual { min-height: 300px; }
  .art-slot--hero { height: 92%; }
  .speech { padding: 8px 11px; font-size: .7rem; }
  .speech--one { left: 1%; }
  .speech--two { right: 0; }

  .consult-banner__inner {
    grid-template-columns: 95px 1fr;
    min-height: 205px;
  }
  .consult-badge { min-height: 205px; }
  .consult-badge strong { font-size: 1.05rem; }
  .consult-banner__main { padding: 18px 14px; }
  .consult-banner__main h2 { font-size: 1rem; line-height: 1.5; }
  .consult-banner__main p { font-size: .7rem; }
  .art-slot--consult { display: none; }
  .button--yellow { min-width: 0; width: 100%; padding-inline: 12px; font-size: .78rem; }

  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 90px; }
  .popular-grid { grid-template-columns: 1fr 1fr; }
  .popular-card:last-child { display: none; }

  .automation-story__inner { grid-template-columns: 1fr; }
  .art-slot--thinking { min-height: 180px; }
  .automation-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); height: 25px; }
  .automation-story__cta { padding-top: 10px; }
  .art-slot--ai-small { min-height: 120px; }

  .process-grid { grid-template-columns: 1fr; gap: 25px; }
  .process-card { display: grid; grid-template-columns: 1fr 110px; text-align: left; }
  .process-card h3, .process-card p { grid-column: 1; }
  .process-card .mini-art { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .process-card:not(:last-child)::after { content: "•••⌄"; left: 50%; right: auto; top: auto; bottom: -25px; transform: translateX(-50%); }
  .process-number { left: 18px; transform: none; }

  .reasons-grid { grid-template-columns: 1fr 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .voices-cta { grid-column: auto; grid-template-columns: 85px 1fr; }
  .voices-cta .button { grid-column: 1 / -1; }
  .closing-cta__inner { grid-template-columns: 1fr; padding: 22px 0; text-align: center; }
  .closing-cta__copy strong { font-size: 1.65rem; }
  .closing-cta__button { min-height: 56px; }
  .art-slot--footer { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-brand { margin-right: 0; }
  .site-footer nav { gap: 8px 12px; }
  .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .site-shell { width: min(100% - 20px, 1180px); }
  .site-brand strong { font-size: .94rem; }
  .header-cta { padding-inline: 7px; }
  .popular-grid { grid-template-columns: 1fr; }
  .popular-card:last-child { display: block; }
  .reasons-grid { grid-template-columns: 1fr; }
}


/* Generated production artwork */
.site-art { display:block; object-fit:contain; }
.site-art--hero {
  position:absolute; z-index:2; left:2%; right:1%; bottom:0;
  width:97%; height:96%; object-position:center bottom;
}
.site-art--consult { align-self:end; width:100%; height:190px; object-position:center bottom; }
.site-art--thinking { width:100%; height:290px; object-position:center bottom; }
.site-art--ai-small { width:100%; height:125px; margin-top:auto; object-position:center bottom; }
.mini-art-image {
  display:block; width:100%; aspect-ratio:5/4; margin-top:10px;
  border-radius:7px; object-fit:cover;
}
.process-image {
  display:block; width:100%; margin-top:8px; aspect-ratio:4/5;
  border-radius:7px; object-fit:cover;
}
.voice-sample { position:relative; margin:0; }
.voice-sample img { width:95px; aspect-ratio:4/5; border-radius:7px; object-fit:cover; }
.voice-sample figcaption {
  position:absolute; left:4px; right:4px; bottom:4px; padding:2px 4px;
  border-radius:4px; background:rgba(255,255,255,.9); color:#526070;
  font-size:.55rem; font-weight:800; text-align:center;
}
.site-art--ai-voice { width:86px; height:145px; object-position:center bottom; }
.site-art--footer { align-self:end; width:150px; height:122px; object-position:center bottom; }

@media (max-width:760px) {
  .site-art--hero { left:0; width:100%; height:94%; }
  .site-art--consult { display:none; }
  .site-art--thinking { height:210px; }
  .site-art--ai-small { height:145px; }
  .process-image { grid-column:2; grid-row:1 / span 2; margin:0; }
  .site-art--footer { display:none; }
}


/* Consultation form */
.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
  box-shadow: var(--shadow);
}
.contact-form > label { display: grid; gap: 7px; font-weight: 900; }
.contact-form label > span { color: #b42318; font-size: .78rem; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 3px solid rgba(6,73,173,.18); border-color: var(--blue); }
.contact-form__consent { display: flex !important; align-items: center; gap: 10px !important; font-weight: 700 !important; }
.contact-form__consent input { width: 20px; height: 20px; }
.contact-form__submit { width: min(100%, 420px); margin-inline: auto; }
.contact-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-notice { margin: 24px 0; padding: 16px 18px; border-radius: 8px; font-weight: 800; }
.contact-notice--success { border: 1px solid #4aa678; background: #e9f8ef; color: #12653d; }
.contact-notice--error { border: 1px solid #d98b84; background: #fff0ee; color: #8b211a; }
@media (max-width: 760px) { .contact-form { padding: 20px 15px; } }

.contact-form__topics {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.contact-form__topics legend {
  margin-bottom: 8px;
  font-weight: 900;
}
.contact-form__topics legend span { color: #b42318; font-size: .78rem; }
.contact-form__topics > label:not(.contact-form__other) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #c7d2e3;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.contact-form__topics input[type="radio"] { width: 20px; height: 20px; flex: 0 0 20px; }
.contact-form__other { display: none; gap: 7px; margin-top: 6px; font-weight: 900; }
.contact-form__topics:has(input[value="other"]:checked) .contact-form__other { display: grid; }

.article-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .75rem;
  white-space: nowrap;
}
.article-breadcrumb a { color: var(--blue); }
.article-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 12px; }
.article-category { padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 900; }
.article-meta time { color: var(--muted); font-size: .75rem; }
.article-hero-image { width: 100%; aspect-ratio: 16/9; border-radius: 12px; object-fit: cover; }
.article-consult-cta {
  margin-top: 48px;
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0759c4, #053b90);
  color: #fff;
  text-align: center;
}
.article-consult-cta strong { display: block; font-size: 1.45rem; }
.article-consult-cta p { margin: 6px 0 18px; color: #edf5ff; }
.related-articles { padding-bottom: 70px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.related-card a { display: block; height: 100%; padding-bottom: 14px; }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card h3 { margin: 12px 14px 6px; font-size: .95rem; line-height: 1.55; }
.related-card time { margin: 0 14px; color: var(--muted); font-size: .7rem; }
@media (max-width:760px) {
  .article-consult-cta { padding: 23px 15px; }
  .related-grid { grid-template-columns: 1fr; }
}


/* Accessibility and perceived-performance safeguards */
.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 7px;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: var(--shadow);
  font-weight: 900;
  transform: translateY(-160%);
}
.skip-link:focus { width: auto; height: auto; margin: 0; clip: auto; clip-path: none; transform: translateY(0); }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #ffbf00; outline-offset: 3px; }
#main-content:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Editorial transparency */
.article-transparency {
  margin-top: 42px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 10px;
  background: #f5f9ff;
}
.article-transparency strong { color: var(--blue-dark); }
.article-transparency p { margin: 6px 0 0; color: var(--muted); font-size: .86rem; }


/* Media trust and operator pages */
.trust-page__eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.trust-page__lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}
.trust-section { margin-top: 46px; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.trust-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}
.trust-grid strong { color: var(--blue-dark); font-size: 1.05rem; }
.trust-grid p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }
.operator-table {
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.operator-table > div { display: grid; grid-template-columns: 180px 1fr; }
.operator-table > div + div { border-top: 1px solid var(--line); }
.operator-table dt, .operator-table dd { margin: 0; padding: 15px 18px; }
.operator-table dt { background: #f1f6fd; color: var(--blue-dark); font-weight: 900; }
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; }
  .operator-table > div { grid-template-columns: 1fr; }
  .operator-table dt { padding-bottom: 7px; }
  .operator-table dd { padding-top: 7px; }
}


/* Contact confirmation and completion */
.contact-confirm {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
  box-shadow: var(--shadow);
}
.contact-confirm__heading { margin-bottom: 24px; text-align: center; }
.contact-confirm__heading > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.contact-confirm__heading h2 { margin: 0 0 8px; color: var(--blue-dark); }
.contact-confirm__heading p { margin: 0; color: var(--muted); }
.contact-confirm__list {
  overflow: hidden;
  margin: 0;
  border: 1px solid #b8c7dc;
  border-radius: 10px;
  background: #fff;
}
.contact-confirm__list > div { display: grid; grid-template-columns: 180px 1fr; }
.contact-confirm__list > div + div { border-top: 1px solid var(--line); }
.contact-confirm__list dt,
.contact-confirm__list dd { margin: 0; padding: 15px 18px; }
.contact-confirm__list dt { background: #f1f6fd; color: var(--blue-dark); font-weight: 900; }
.contact-confirm__list dd { overflow-wrap: anywhere; }
.contact-confirm__multiline { white-space: normal; }
.contact-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.contact-confirm__actions form,
.contact-confirm__actions button { width: 100%; }
.contact-confirm__back {
  border: 1px solid #9aabc3;
  background: #fff;
  color: var(--blue-dark);
}
.contact-complete {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 26px 0;
  padding: 36px 24px;
  border: 1px solid #4aa678;
  border-radius: var(--radius);
  background: #e9f8ef;
  color: #12653d;
  text-align: center;
}
.contact-complete__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #258a59;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}
.contact-complete h2 { margin: 4px 0 0; color: #12653d; }
.contact-complete p { margin: 0 0 12px; }
.contact-notice ul { margin: 8px 0 0 1.2em; }
@media (max-width: 760px) {
  .contact-confirm { padding: 22px 15px; }
  .contact-confirm__list > div { grid-template-columns: 1fr; }
  .contact-confirm__list dt { padding-bottom: 7px; }
  .contact-confirm__list dd { padding-top: 7px; }
  .contact-confirm__actions { grid-template-columns: 1fr; }
  .contact-confirm__actions form:last-child { grid-row: 1; }
}


/* AI versus human time study */
.time-study-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.time-study-summary > div {
  display: grid;
  gap: 5px;
  padding: 22px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #f7fbff, #fff9dd);
  text-align: center;
}
.time-study-summary span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.time-study-summary strong { color: var(--blue-dark); font-size: clamp(1.25rem, 3vw, 1.8rem); }
.time-study-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.time-study-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: collapse;
  font-size: .82rem;
}
.time-study-table th,
.time-study-table td {
  padding: 12px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.time-study-table thead th {
  background: var(--blue-dark);
  color: #fff;
  white-space: nowrap;
}
.time-study-table tbody tr:nth-child(even) { background: #f7faff; }
.time-study-table tbody td:nth-child(1),
.time-study-table tbody td:nth-child(3),
.time-study-table tbody td:nth-child(4),
.time-study-table tbody td:nth-child(5) { white-space: nowrap; }
.time-study-table tfoot th {
  border-bottom: 0;
  background: #fff3b8;
  color: var(--blue-dark);
  font-weight: 900;
}
@media (max-width: 760px) {
  .time-study-summary { grid-template-columns: 1fr; }
  .time-study-summary > div { padding: 16px 12px; }
  .time-study-table-wrap::before {
    content: "表は横にスクロールできます →";
    display: block;
    padding: 8px 11px;
    background: #eef5ff;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
  }
}


/* Final image-led homepage top */
.site-brand {
  flex: 0 1 430px;
  min-width: 280px;
  margin-right: auto;
}
.site-brand img {
  width: min(100%, 430px);
  height: auto;
}
.header-cta {
  justify-content: center;
  min-width: 132px;
  min-height: 54px;
  padding: 10px 15px;
  text-align: center;
  white-space: nowrap;
}
.hero-final--image {
  border-bottom: 0;
  background: #fff;
}
.hero-final--image::before { display: none; }
.hero-image-wrap { width: min(1280px, 100%); }
.home-hero-image {
  width: 100%;
  aspect-ratio: 1800 / 853;
  object-fit: cover;
}
.consult-banner--image { padding: 18px 0 0; background: #fff; }
.consult-image-wrap {
  position: relative;
  width: min(1180px, calc(100% - 40px));
}
.consult-background-image {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 1800 / 709;
  object-fit: cover;
}
.consult-overlay-button {
  position: absolute;
  left: 47%;
  bottom: 12%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(42%, 470px);
  min-height: 66px;
  padding: 12px 24px;
  border: 2px solid #e5ad00;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffdd16, #ffc400);
  color: #111;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 1000;
  line-height: 1.2;
  box-shadow: 0 7px 0 #e09f00, 0 12px 24px rgba(0,0,0,.2);
  transform: translateX(-50%);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.consult-overlay-button:hover {
  filter: saturate(1.2) brightness(1.07);
  box-shadow: 0 5px 0 #d39300, 0 15px 30px rgba(0,0,0,.28);
  transform: translateX(-50%) scale(1.035);
}
.consult-overlay-button:active {
  box-shadow: 0 2px 0 #d39300, 0 7px 16px rgba(0,0,0,.22);
  transform: translateX(-50%) translateY(4px) scale(1.01);
}
@media (max-width: 1050px) {
  .site-brand { flex-basis: 330px; min-width: 230px; }
  .site-brand img { width: min(100%, 330px); }
}
@media (max-width: 760px) {
  .site-brand { flex: 1 1 auto; min-width: 0; }
  .site-brand img { width: min(100%, 245px); }
  .header-cta {
    min-width: 88px;
    min-height: 46px;
    padding: 7px 8px;
    border-radius: 9px;
    font-size: .66rem;
    white-space: normal;
  }
  .hero-image-wrap { width: 100%; }
  .home-hero-image {
    min-height: 270px;
    object-position: center;
  }
  .consult-image-wrap { width: min(100% - 20px, 1180px); }
  .consult-background-image {
    min-height: 260px;
    object-position: center;
  }
  .consult-overlay-button {
    left: 50%;
    bottom: 9%;
    width: 58%;
    min-height: 48px;
    padding: 9px 12px;
    border-radius: 11px;
    font-size: .78rem;
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .site-brand img { width: min(100%, 205px); }
  .header-cta { min-width: 78px; padding-inline: 6px; }
}


/* Mobile image-led homepage sizing fix */
@media (max-width: 760px) {
  .header-inner {
    min-height: 72px;
    gap: 8px;
  }
  .site-brand {
    flex: 1 1 0;
    min-width: 0;
  }
  .site-brand img {
    width: 100%;
    max-width: 220px;
  }
  .menu-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    grid-template-rows: repeat(3, 2px);
    align-content: center;
    gap: 6px;
    padding: 9px 10px;
  }
  .menu-toggle > span:not(.screen-reader-text) {
    width: 100%;
    min-width: 22px;
    height: 2px;
    border-radius: 2px;
  }
  .header-cta {
    flex: 0 0 86px;
    width: 86px;
    min-width: 86px;
    min-height: 48px;
    padding: 7px 6px;
    font-size: .68rem;
    line-height: 1.3;
  }
  .site-navigation { top: 72px; }

  .home-hero-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1800 / 853;
    object-fit: contain;
    object-position: center;
  }
  .consult-background-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1800 / 709;
    object-fit: contain;
    object-position: center;
  }
  .consult-overlay-button {
    bottom: 8%;
    width: 48%;
    min-height: 42px;
    padding: 7px 9px;
    font-size: clamp(.68rem, 3.1vw, .82rem);
  }
}
@media (max-width: 420px) {
  .site-brand img { max-width: 205px; }
  .menu-toggle {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .header-cta {
    flex-basis: 82px;
    width: 82px;
    min-width: 82px;
    font-size: .64rem;
  }
}
@media (max-width: 360px) {
  .header-inner { gap: 6px; }
  .site-brand img { max-width: 175px; }
  .menu-toggle {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    padding-inline: 9px;
  }
  .header-cta {
    flex-basis: 76px;
    width: 76px;
    min-width: 76px;
    font-size: .6rem;
  }
}


/* Final homepage lower-section and mobile-art pass */
.hero-image-wrap picture,
.consult-image-wrap picture { display: block; }
.popular,
.automation-story,
.process,
.reasons,
.voices { scroll-margin-top: 96px; }
.popular-card a {
  display: block;
  height: 100%;
  padding: 7px;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.popular-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 22px rgba(0,48,112,.12);
}
.automation-story__inner {
  padding: 22px;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  background: linear-gradient(135deg,#f7f9fc,#fff);
}
.process-card,
.reason-card,
.voice-card { box-shadow: 0 3px 12px rgba(0,48,112,.055); }
.process-card { border-top: 3px solid var(--blue); }
.reasons-grid { align-items: stretch; }
.reason-card { background: #fff; }
.voices-cta {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg,#fff9d9,#eef6ff);
}
.closing-cta__button {
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.closing-cta__button:hover {
  transform: translateY(-2px) scale(1.015);
  background: #fffdf2;
  box-shadow: 0 7px 0 rgba(0,0,0,.18);
}

@media (max-width: 760px) {
  .hero-image-wrap picture,
  .consult-image-wrap picture { width: 100%; }
  .home-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 780 / 1386;
    object-fit: contain;
  }
  .consult-banner--image { padding-top: 12px; }
  .consult-image-wrap { width: calc(100% - 20px); }
  .consult-background-image {
    width: 100%;
    height: auto;
    aspect-ratio: 780 / 1040;
    border-radius: 13px;
    object-fit: contain;
  }
  .consult-overlay-button {
    left: 34%;
    bottom: 7%;
    width: 55%;
    min-height: 46px;
    padding: 8px 10px;
    font-size: clamp(.72rem, 3.4vw, .88rem);
  }
  .benefits { padding-top: 14px; }
  .benefits-grid { gap: 9px; }
  .benefit-card {
    min-height: 82px;
    padding: 12px;
  }
  .popular-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 9px;
  }
  .popular-card a { padding: 4px; }
  .popular-card h3 { font-size: .78rem; }
  .automation-story__inner { padding: 15px; }
  .automation-story__main h2 { text-align: center; }
  .automation-flow article { min-height: 0; }
  .process-card {
    min-height: 150px;
    padding: 26px 12px 12px;
  }
  .reason-card { padding: 13px 10px; }
  .voice-card {
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .voice-sample img { width: 82px; }
  .section-heading h2 { line-height: 1.35; }
  .closing-cta__button { width: 100%; }
}
@media (max-width: 390px) {
  .popular-grid { grid-template-columns: 1fr; }
  .popular-card:last-child { display: block; }
  .consult-overlay-button {
    left: 35%;
    width: 58%;
    font-size: .74rem;
  }
}


/* Shared mobile usability safeguards */
@media (max-width: 760px) {
  main > .site-shell:not(.header-inner),
  .entry,
  .archive-page { overflow-wrap: anywhere; }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { min-height: 48px; font-size: 16px; }
  button,
  .button,
  .header-menu-button,
  .header-cta { min-height: 44px; }
  .entry img,
  .archive-page img { max-width: 100%; height: auto; }
  .entry table { display: block; max-width: 100%; overflow-x: auto; }
}
