/* =================================================================
   合同会社しゅし — 手描き風コーポレートサイト
   配色: ダスティブルー + ウッドベージュ + オフホワイト
   タイポ: Noto Serif JP + JetBrains Mono
   ================================================================= */

:root {
  /* base palette */
  --bg: #f5f1e8;            /* オフホワイト（紙） */
  --bg-soft: #ede6d4;
  --paper-tint: #f8f4ea;
  --ink: #4a5260;           /* メインの線（くすんだネイビー） */
  --ink-soft: #8a8d92;
  --ink-muted: #b8b4a8;
  --text: #3a3530;
  --text-mute: #7a736a;

  /* illustration colors — based on attached image */
  --screen: #c5d8e5;        /* 画面の薄い水色 */
  --screen-base: #b8bdc4;   /* スタンド・タワーのグレー */
  --wood: #b89878;          /* 机の木目色 */
  --wood-light: #d4b894;
  --keyboard: #aab0b8;
  --mouse: #d8d4c8;
  --cloud: #f2eee2;
  --cat: #e8dec8;
  --leaf: #a8b89e;
  --pot: #c89878;

  /* accent */
  --accent: #6f8aa8;        /* ダスティブルー */
  --accent-warm: #c89878;   /* ウッドベージュ */

  /* fonts */
  --font-jp: 'Noto Serif JP', 'Hiragino Mincho ProN', '游明朝', YuMincho, serif;
  --font-en: 'Caveat', 'Noto Serif JP', serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ============== variant: pop ============== */
body.variant-pop {
  --bg: #f7f0e0;
  --accent: #6f8aa8;
  --accent-warm: #d8a06c;
}
/* ============== variant: cool ============== */
body.variant-cool {
  --bg: #eef0f0;
  --bg-soft: #e3e6e6;
  --paper-tint: #f0f3f3;
  --accent: #5b7a98;
  --accent-warm: #9aa8b0;
  --wood: #a89880;
  --cat: #e0dccc;
}
/* ============== variant: warm ============== */
body.variant-warm {
  --bg: #f7ecd6;
  --bg-soft: #efdfc0;
  --paper-tint: #fbf2dc;
  --accent: #8a7050;
  --accent-warm: #c88858;
  --ink: #5a4838;
  --screen: #d4dde0;
  --wood: #c89868;
}

/* font family swap */
body.font-mincho { --font-jp: 'Noto Serif JP', '游明朝', YuMincho, serif; }
body.font-gothic { --font-jp: 'Noto Sans JP', '游ゴシック', YuGothic, sans-serif; }
body.font-mix { --font-jp: 'Klee One', 'Noto Serif JP', serif; }

/* ============== reset & base ============== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* paper-like grain background */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184,160,120,0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(180,200,210,0.06), transparent 50%);
  z-index: 1;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.35  0 0 0 0 0.3  0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: multiply;
  z-index: 2;
}

#root { position: relative; z-index: 3; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============== header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--ink-muted);
  backdrop-filter: blur(4px);
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg, var(--ink-soft) 0 6px, transparent 6px 10px
  );
  opacity: 0.4;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-soft);
  padding: 2px;
}
.brand-text { line-height: 1.1; }
.brand-jp {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.brand-en {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 2px;
}
.site-nav {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(-0.5deg);
}

/* ============== hero ============== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--accent);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-jp);
  font-size: 48px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 28px;
  color: var(--ink);
  letter-spacing: 0.02em;
  text-wrap: pretty;
}
.accent-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px;
  bottom: -2px;
  height: 8px;
  background: var(--accent-warm);
  opacity: 0.4;
  border-radius: 4px;
  transform: rotate(-0.8deg);
  z-index: -1;
}
.hero-lede {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  margin: 0 0 36px;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* hero illustration block */
.hero-art {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-illust {
  width: 100%;
  max-width: 560px;
  position: relative;
}
.hero-illust-img {
  width: 100%;
  height: auto;
  filter: saturate(0.95);
  animation: floatHero 8s ease-in-out infinite;
}
@keyframes floatHero {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(0.3deg); }
}
.float-cloud {
  position: absolute;
  pointer-events: none;
}
.cloud-1 {
  top: 5%; right: 0%;
  animation: drift 18s linear infinite;
}
.cloud-2 {
  top: 20%; left: -5%;
  animation: drift2 22s linear infinite;
}
@keyframes drift {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-30px) translateY(8px); }
  100% { transform: translateX(0) translateY(0); }
}
@keyframes drift2 {
  0% { transform: translateX(0); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}

/* density toggle */
.hero-art.density-low .float-cloud { display: none; }
.hero-art.density-high::before {
  content: "";
  position: absolute;
  top: 60%; left: 70%;
  width: 100px; height: 100px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'><g stroke='%234a5260' stroke-width='1.4' fill='none'><path d='M30 10 L30 50 M10 30 L50 30 M16 16 L44 44 M44 16 L16 44'/></g></svg>") center/contain no-repeat;
  opacity: 0.15;
}

.hero-divider {
  width: 100%;
  height: 24px;
  margin-top: 40px;
}

/* ============== buttons ============== */
.btn {
  font-family: var(--font-jp);
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-link {
  color: var(--accent);
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
}
.btn-link:hover { color: var(--ink); border-color: var(--ink); }
.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============== section ============== */
.section {
  padding: 80px 0;
  position: relative;
}
.section-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.mark-num {
  font-family: var(--font-en);
  font-size: 28px;
  color: var(--accent);
}
.mark-label {
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: none;
}
.section-title {
  font-family: var(--font-jp);
  font-size: 36px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}
.section-title.centered {
  text-align: center;
  margin-bottom: 48px;
}
.section-lede {
  font-size: 16px;
  line-height: 1.95;
  margin: 0 0 32px;
}

/* ============== main service ============== */
.main-service {
  background: var(--bg-soft);
  border-radius: 0;
  position: relative;
}
.main-service::before, .main-service::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M0 6 Q 25 1 50 6 T 100 6 T 150 6 T 200 6' stroke='%23b8b4a8' stroke-width='1.2' fill='none'/></svg>") repeat-x;
  background-size: 200px 12px;
  opacity: 0.5;
}
.main-service::before { top: 0; }
.main-service::after { bottom: 0; transform: scaleY(-1); }

.main-service-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
}
.check-list .check {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}
.main-service-art {
  position: relative;
  min-height: 360px;
}
.desk-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.desk-offset {
  margin-top: -40px;
  margin-left: 80px;
}
.cat-spot {
  position: absolute;
  bottom: -10px;
  left: 0;
  animation: catBreath 5s ease-in-out infinite;
}
@keyframes catBreath {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.04); }
}

/* ============== sub services ============== */
.sub-services { padding: 100px 0; }
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sub-card {
  background: var(--paper-tint);
  border: 1.5px solid var(--ink-muted);
  border-radius: 8px;
  padding: 28px 24px 32px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 3px 3px 0 var(--ink-muted);
}
.sub-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink-muted);
}
.sub-card.muted { opacity: 0.65; }
.sub-card-ill {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  height: 130px;
  align-items: flex-end;
}
.sub-card-ill.faded { opacity: 0.5; }
.sub-card h3 {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.sub-meta {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--accent);
  margin: 0 0 12px;
}
.sub-desc {
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
}
.badge-new, .badge-pause {
  position: absolute;
  top: -10px; right: 16px;
  font-family: var(--font-jp);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.badge-feature {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--font-jp);
  font-size: 12px;
  padding: 4px 10px;
  background: var(--accent-warm);
  color: var(--bg);
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transform: rotate(-1deg);
}
.sub-card-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.sub-card-link:hover { color: var(--accent); }
.sub-card-arrow {
  display: block;
  margin-top: 14px;
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.badge-new.inline {
  position: static;
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
}
.badge-pause {
  background: var(--ink-soft);
}

/* ============== strengths ============== */
.strengths {
  background: var(--bg-soft);
  position: relative;
}
.strengths::before, .strengths::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M0 6 Q 25 1 50 6 T 100 6 T 150 6 T 200 6' stroke='%23b8b4a8' stroke-width='1.2' fill='none'/></svg>") repeat-x;
  background-size: 200px 12px;
  opacity: 0.5;
}
.strengths::before { top: 0; }
.strengths::after { bottom: 0; transform: scaleY(-1); }
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 32px;
}
.strength { padding-right: 12px; }
.strength-num {
  font-family: var(--font-en);
  font-size: 36px;
  color: var(--accent-warm);
  margin-bottom: 8px;
}
.strength h3 {
  font-family: var(--font-jp);
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 600;
}
.strength p {
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

/* ============== CTA ============== */
.cta-section { padding-top: 40px; }
.cta-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card:has(.cta-art) {
  grid-template-columns: 140px 1fr;
}
.cta-card.small {
  margin-top: 60px;
  grid-template-columns: 1fr;
  text-align: center;
  padding: 40px;
}
.cta-card.small .cta-copy h2 { font-size: 28px; }
.cta-card.small .cta-actions { justify-content: center; }
.cta-card .cta-art {
  filter: brightness(1.4) saturate(0.7);
}
.cta-copy h2 {
  font-family: var(--font-jp);
  font-size: 32px;
  margin: 0 0 12px;
  color: var(--bg);
  font-weight: 600;
}
.cta-copy p {
  margin: 0 0 24px;
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.85;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-card .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.cta-card .btn-primary:hover { background: var(--accent-warm); border-color: var(--accent-warm); color: var(--bg); }
.cta-card .btn-ghost {
  color: var(--bg);
  border-color: var(--bg);
}
.cta-card .btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* ============== page hero ============== */
.page-hero {
  padding: 60px 0 40px;
  border-bottom: 1px dashed var(--ink-muted);
}
.page-title {
  font-family: var(--font-jp);
  font-size: 44px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--ink);
}
.page-lede {
  font-size: 16px;
  line-height: 1.95;
  margin: 0;
  max-width: 640px;
}

/* ============== service list ============== */
.service-list {
  display: grid;
  gap: 0;
}
.service-row {
  display: grid;
  grid-template-columns: 120px 1fr 180px;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px dashed var(--ink-muted);
  align-items: start;
}
.service-row.is-sub .service-cat {
  background: var(--accent-warm);
}
.service-row-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding-top: 8px;
}
.service-cat {
  font-family: var(--font-jp);
  font-size: 11px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.15em;
}
.service-num {
  font-family: var(--font-en);
  font-size: 32px;
  color: var(--ink-muted);
}
.service-row-head {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.service-row-head h2 {
  font-family: var(--font-jp);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}
.service-row-desc {
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 18px;
}
.service-row-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.service-row-items li {
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.service-row-items .dot {
  color: var(--accent);
  font-size: 8px;
}
.service-row-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ============== company ============== */
.company-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.sub-title {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-muted);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px dashed var(--ink-muted);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.8;
}
.info-table th {
  width: 130px;
  color: var(--text-mute);
  font-weight: 500;
}
.company-art-frame {
  position: sticky;
  top: 110px;
  background: var(--paper-tint);
  border: 1.5px solid var(--ink-muted);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  min-height: 320px;
  box-shadow: 4px 4px 0 var(--ink-muted);
}
.company-cat {
  position: absolute;
  bottom: 16px;
  right: 24px;
}
.company-plant {
  position: absolute;
  top: 16px;
  right: 24px;
}

/* ============== contact ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-direct {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 32px;
  position: sticky;
  top: 110px;
  border: 1.5px solid var(--ink-muted);
}
.direct-block {
  margin-bottom: 28px;
}
.direct-label {
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 4px;
}
.direct-value {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.direct-note {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 4px;
}
.direct-illust {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}
.contact-form {
  display: grid;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field span {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.field em {
  color: var(--accent);
  font-style: normal;
  margin-left: 4px;
}
.field input, .field select, .field textarea {
  font-family: var(--font-jp);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-muted);
  border-radius: 6px;
  background: var(--paper-tint);
  color: var(--text);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; }
.form-thanks {
  background: var(--bg-soft);
  padding: 32px;
  border-radius: 8px;
  border: 1.5px dashed var(--accent);
}
.form-thanks .muted { color: var(--text-mute); margin-top: 8px; }

/* ============== CEO section ============== */
.ceo-section {
  background: var(--bg-soft);
  position: relative;
}
.ceo-section::before, .ceo-section::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M0 6 Q 25 1 50 6 T 100 6 T 150 6 T 200 6' stroke='%23b8b4a8' stroke-width='1.2' fill='none'/></svg>") repeat-x;
  background-size: 200px 12px;
  opacity: 0.5;
}
.ceo-section::before { top: 0; }
.ceo-section::after { bottom: 0; transform: scaleY(-1); }

.ceo-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
  margin-top: 16px;
}
.ceo-photo-wrap {
  position: sticky;
  top: 110px;
  text-align: center;
}
.ceo-photo-frame {
  background: var(--paper-tint);
  border: 1.5px solid var(--ink-muted);
  border-radius: 8px;
  padding: 14px 14px 12px;
  box-shadow: 5px 5px 0 var(--ink-muted);
  position: relative;
  overflow: hidden;
  transform: rotate(-1deg);
}
.ceo-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.ceo-caption {
  margin-top: 20px;
  text-align: center;
}
.ceo-role {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 4px;
}
.ceo-name {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.1em;
}
.ceo-name-en {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--text-mute);
  margin-top: 2px;
}
.ceo-deco-cloud {
  position: absolute;
  top: -20px;
  right: -30px;
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite;
  pointer-events: none;
}
.ceo-letter {
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--text);
}
.ceo-greet {
  font-family: var(--font-jp);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--ink-muted);
  letter-spacing: 0.02em;
}
.ceo-body p {
  margin: 0 0 18px;
  text-wrap: pretty;
}
.ceo-body strong {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(transparent 60%, rgba(200,152,120,0.3) 60%);
  padding: 0 2px;
}
.ceo-sign {
  margin-top: 36px;
  text-align: right;
  font-family: var(--font-jp);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.ceo-sign-label {
  font-size: 13px;
  color: var(--text-mute);
}
.ceo-sign-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.18em;
}

@media (max-width: 900px) {
  .ceo-grid { grid-template-columns: 1fr; gap: 32px; }
  .ceo-photo-wrap { position: static; max-width: 320px; margin: 0 auto; }
  .ceo-photo-frame { transform: rotate(-0.5deg); }
  .ceo-deco-cloud { display: none; }
  .ceo-photo { height: 280px; object-position: center 18%; }
  .ceo-greet { font-size: 22px; }
}
@media (max-width: 600px) {
  .ceo-photo-wrap { max-width: 260px; }
  .ceo-photo { height: 240px; object-position: center 15%; }
  .ceo-greet { font-size: 19px; padding-bottom: 18px; margin-bottom: 22px; }
  .ceo-letter { font-size: 14.5px; line-height: 1.95; }
  .ceo-sign-name { font-size: 18px; }
}

/* ============== code-refactor icon ============== */
.code-refactor-icon {
  background: #1a1a1a;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  position: relative;
  width: 180px;
  box-shadow: 3px 3px 0 var(--ink-muted);
  border: 1.5px solid var(--ink);
}
.code-snippet {
  margin: 0;
  color: #d4d4d4;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre;
}
.code-snippet .kw { color: #ff6b6b; font-weight: 700; }
.code-snippet .evil {
  background: #c0392b;
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
}
.code-snippet .str { color: #f1c40f; }
.code-snippet .cmt { color: #6b9b6b; font-style: italic; }
/* home sub-card 内では小さめに */
.sub-card-ill .code-refactor-icon {
  transform: scale(0.78);
  transform-origin: center bottom;
  width: 160px;
  font-size: 9px;
}
.sub-card-ill .code-refactor-icon .code-snippet { font-size: 9px; }
/* recode.html ヒーロー用：大きめに */
.code-refactor-icon-large {
  width: 320px;
  padding: 22px 26px;
  font-size: 14px;
  box-shadow: 6px 6px 0 var(--ink-muted);
  transform: rotate(-1deg);
}
.code-refactor-icon-large .code-snippet { font-size: 14px; line-height: 1.7; }
.code-warn {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--accent-warm);
  color: var(--bg);
  font-family: var(--font-jp);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  transform: rotate(8deg);
  font-weight: 600;
}

/* ============== footer ============== */
.site-footer {
  margin-top: 80px;
  background: var(--ink);
  color: var(--bg);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  padding: 4px;
}
.footer-brand .brand-jp { color: var(--bg); font-size: 18px; }
.footer-brand .brand-en { color: var(--accent-warm); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--accent-warm);
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-col li {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.75);
  line-height: 1.7;
}
.footer-base {
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  padding: 20px 0;
}
.footer-base .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.55);
}
.footer-tag { font-family: var(--font-en); font-size: 14px; }
.footer-legal-links { display: inline-flex; flex-wrap: wrap; gap: 0 18px; }
.footer-legal-links a {
  color: rgba(245, 241, 232, 0.7);
  text-decoration: none;
  border-bottom: 1px dashed rgba(245, 241, 232, 0.2);
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.footer-legal-links a:hover {
  color: rgba(245, 241, 232, 0.95);
  border-bottom-color: rgba(245, 241, 232, 0.6);
}

/* ============== 顧問SE ページ ============== */
.koumon-hero { padding: 64px 0 48px; }
.koumon-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.koumon-hero-art {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.koumon-hero-cloud { position: absolute; top: 6%; right: 4%; }
.koumon-hero-cat   { position: absolute; bottom: 4%; left: 4%; }

/* 課題カード */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.issue-card {
  position: relative;
  background: var(--paper-tint);
  border: 1px solid var(--ink-muted);
  border-radius: 14px;
  padding: 28px 26px 24px;
  box-shadow: 2px 3px 0 rgba(74,82,96,0.06);
}
.issue-num {
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 6px;
}
.issue-card h3 {
  font-family: var(--font-jp);
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.55;
}
.issue-card p { margin: 0; font-size: 14px; color: var(--text-mute); line-height: 1.85; }

.issues-arrow {
  text-align: center;
  margin-top: 40px;
}
.issues-arrow span {
  display: inline-block;
  font-size: 26px;
  color: var(--accent);
}
.issues-arrow p {
  margin: 8px 0 0;
  font-family: var(--font-jp);
  font-size: 20px;
  color: var(--ink);
  font-weight: 600;
}

/* コンセプト */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.concept-block {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
}
.concept-num {
  font-family: var(--font-en);
  font-size: 26px;
  color: var(--accent-warm);
  line-height: 1;
  margin-bottom: 6px;
}
.concept-block h3 {
  font-family: var(--font-jp);
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ink);
}
.concept-block p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--text); }

/* 解決できること */
.solve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.solve-card {
  background: var(--paper-tint);
  border: 1px solid var(--ink-muted);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: left;
}
.solve-ill {
  height: 96px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 14px;
}
.solve-ill svg { transform: rotate(-1deg); }
.solve-card h3 {
  font-family: var(--font-jp);
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
}
.solve-card p { margin: 0; font-size: 14px; color: var(--text-mute); line-height: 1.9; }

/* メッセージカード（手書き風） */
.koumon-message .message-card {
  position: relative;
  margin: 28px auto 0;
  max-width: 760px;
  background: #fdfaf0;
  border: 1px solid var(--ink-muted);
  border-radius: 4px;
  padding: 56px 48px 48px;
  background-image: repeating-linear-gradient(
    transparent 0,
    transparent 33px,
    rgba(111, 138, 168, 0.18) 33px,
    rgba(111, 138, 168, 0.18) 34px
  );
  box-shadow: 4px 5px 0 rgba(74,82,96,0.07);
  transform: rotate(-0.4deg);
  font-family: var(--font-jp);
}
.koumon-message .message-pin {
  position: absolute;
  top: -10px; left: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.18), 1px 2px 3px rgba(0,0,0,0.2);
  transform: translateX(-50%);
}
.koumon-message .message-card p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 34px;
  color: var(--text);
}
.koumon-message .message-card strong {
  color: var(--ink);
  background: linear-gradient(transparent 60%, rgba(200,152,120,0.35) 60%);
  font-weight: 600;
}
.message-sign {
  margin-top: 20px;
  text-align: right;
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--accent);
}

/* 技術スタック概要 */
.skills-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.skills-cat {
  background: var(--paper-tint);
  border: 1px solid var(--ink-muted);
  border-radius: 12px;
  padding: 22px 20px;
}
.skills-cat-head {
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 600;
}
.skills-cat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skills-cat li {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  padding: 3px 10px;
  border: 1px solid var(--ink-muted);
  border-radius: 99px;
  color: var(--text);
}
.skills-cta {
  margin-top: 24px;
  text-align: center;
}
.flow-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1 1 0;
  min-width: 160px;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
}
.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-en);
  font-size: 20px;
  margin-bottom: 10px;
}
.flow-step h4 {
  font-family: var(--font-jp);
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--ink);
}
.flow-step p { margin: 0; font-size: 13px; color: var(--text-mute); line-height: 1.8; }
.flow-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--ink-soft);
}
.flow-point {
  margin-top: 28px;
  background: var(--paper-tint);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.point-label {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-en);
  font-size: 14px;
  padding: 2px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.flow-point p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text); }

/* サポートの流れ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.support-step {
  position: relative;
  padding: 24px 22px;
  background: var(--paper-tint);
  border: 1px solid var(--ink-muted);
  border-radius: 14px;
}
.support-step-num {
  position: absolute;
  top: -16px; left: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-warm);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 18px;
}
.support-step h3 {
  font-family: var(--font-jp);
  font-size: 17px;
  margin: 6px 0 10px;
  color: var(--ink);
}
.support-step p { margin: 0; font-size: 14px; color: var(--text-mute); line-height: 1.9; }

.hours-card {
  margin-top: 36px;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 28px 32px;
}
.hours-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hours-head h3 {
  font-family: var(--font-jp);
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}
.hours-sub {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--text-mute);
}
.hours-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.hours-block {
  background: var(--bg);
  border: 1px solid var(--ink-muted);
  border-radius: 12px;
  padding: 20px 22px;
}
.hours-block.alt { border-style: dashed; }
.hours-label {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.hours-value {
  font-family: var(--font-en);
  font-size: 42px;
  color: var(--ink);
  line-height: 1;
}
.hours-value span {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--text-mute);
  margin-left: 6px;
}
.hours-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
}
.hours-plus {
  font-family: var(--font-en);
  font-size: 36px;
  color: var(--accent-warm);
  text-align: center;
}
.hours-card .flow-point { margin-top: 22px; }

/* 料金プラン */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--paper-tint);
  border: 1px solid var(--ink-muted);
  border-radius: 16px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
}
.plan-card.is-featured {
  background: var(--bg-soft);
  border: 2px solid var(--accent);
  transform: translateY(-8px);
  box-shadow: 4px 6px 0 rgba(111,138,168,0.15);
}
.plan-ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-jp);
  font-size: 13px;
  padding: 4px 18px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.plan-name {
  font-family: var(--font-en);
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--ink);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.plan-price-num {
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
}
.plan-price-unit { font-size: 14px; color: var(--text-mute); }
.plan-price-note {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
}
.plan-meta {
  margin: 18px 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  border-top: 1px dashed var(--ink-muted);
  padding-top: 18px;
}
.plan-meta > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  font-size: 13px;
  align-items: baseline;
}
.plan-meta dt { color: var(--text-mute); margin: 0; }
.plan-meta dd { margin: 0; color: var(--text); }
.plan-meta .plan-total dd { color: var(--ink); font-size: 15px; }
.plan-avg {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
}
.btn-block { width: 100%; margin-top: auto; justify-content: center; }
.plan-notes {
  margin-top: 32px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.9;
}
.plan-notes li::before { content: ""; }

/* オプション */
.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.option-card {
  background: var(--paper-tint);
  border: 1px solid var(--ink-muted);
  border-radius: 12px;
  padding: 20px;
}
.option-no {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 6px;
}
.option-card h3 {
  font-family: var(--font-jp);
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--ink);
}
.option-card p { margin: 0; font-size: 13px; color: var(--text-mute); line-height: 1.8; }
.option-foot {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-mute);
}

/* 注意事項 */
.notice-list {
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--paper-tint);
  border: 1px solid var(--ink-muted);
  border-radius: 12px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.notice-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.8;
}
.notice-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============== responsive ============== */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 32px; }
  .hero-grid, .main-service-grid, .company-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
  .section-title { font-size: 28px; }
  .page-title { font-size: 32px; }
  .sub-grid, .strength-grid, .footer-cols { grid-template-columns: 1fr; }
  .issue-grid, .concept-grid, .solve-grid, .support-grid, .plan-grid, .option-grid { grid-template-columns: 1fr; }
  .koumon-hero-grid { grid-template-columns: 1fr; }
  .flow-row { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
  .hours-body { grid-template-columns: 1fr; }
  .hours-plus { transform: rotate(0deg); }
  .plan-card.is-featured { transform: none; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row-art { display: none; }
  .service-row-items { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-card,
  .cta-card:has(.cta-art) { grid-template-columns: 1fr; padding: 32px 24px; gap: 20px; }
  .cta-card .cta-art { display: none; }
  .cta-copy h2 { font-size: 24px; }
  .cta-copy p { font-size: 14px; }
  .cta-card.small { padding: 28px 22px; }
  .cta-card.small .cta-copy h2 { font-size: 22px; }
  .header-inner { height: 64px; }
  .site-nav { gap: 18px; }
  .nav-link { font-size: 13px; }
  .brand-text { display: none; }
  .info-table th { width: 90px; font-size: 13px; }
  .company-art-frame, .contact-direct { position: static; }
  .section { padding: 56px 0; }
}

/* ============== サービスカード追加スタイル ============== */
.sub-grid-5 {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sub-grid-5 .sub-card { padding: 24px 22px 28px; }
.sub-grid-5 .sub-card-ill { height: 100px; }
.sub-grid-5 .sub-card h3 { font-size: 18px; }
.sub-grid-5 .sub-desc { font-size: 13px; line-height: 1.85; }
.badge-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.65;
  letter-spacing: 0.02em;
}
.sub-card-link { text-decoration: none; color: inherit; display: block; }
.sub-card-arrow {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 2px;
}

/* ============== サービスページ row link ============== */
.service-row-link {
  display: grid;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.service-row-link:hover { background: var(--paper-tint); }
.service-row-arrow {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 2px;
}

/* ============== footer 4列対応 ============== */
.footer-cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .sub-grid-5 { grid-template-columns: 1fr; }
  .footer-cols-4 { grid-template-columns: 1fr 1fr; }
  .skills-summary { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .skills-cat { padding: 18px 16px; }
  .skills-cat-head { font-size: 14px; }
  .skills-cat li { font-size: 11px; padding: 2px 8px; }
}
@media (max-width: 480px) {
  .skills-summary { grid-template-columns: 1fr; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .sub-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols-4 { grid-template-columns: repeat(2, 1fr); }
}


/* ============== AI detail pages ============== */
.ai-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.ai-detail-art {
  position: sticky;
  top: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--paper-tint);
  border: 1.5px solid var(--ink-muted);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 4px 4px 0 var(--ink-muted);
  min-height: 280px;
}
@media (max-width: 900px) {
  .ai-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-detail-art { position: static; }
}

/* ============== Honbanwaku page ============== */
.honbanwaku-hero { padding: 60px 0 50px; }
.honbanwaku-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hb-tagline {
  font-family: var(--font-jp);
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: 0.04em;
}
.hb-icon-wrap {
  display: flex;
  justify-content: center;
}
.hb-app-icon {
  width: 200px;
  height: 200px;
  border-radius: 36px;
  box-shadow: 0 12px 32px rgba(74, 82, 96, 0.18), 4px 4px 0 var(--ink-muted);
  background: var(--paper-tint);
  padding: 12px;
}

.hb-comment-section { padding-top: 40px; padding-bottom: 40px; }
.hb-comment-card {
  background: var(--bg-soft);
  border: 1.5px dashed var(--accent);
  border-radius: 8px;
  padding: 32px 40px;
  font-size: 15.5px;
  line-height: 2;
  position: relative;
}
.hb-comment-card .hb-comment-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.hb-comment-card p { margin: 0 0 8px; }
.hb-comment-card strong { color: var(--ink); font-weight: 600; }

.hb-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.hb-shot {
  margin: 0;
  background: var(--paper-tint);
  border: 1.5px solid var(--ink-muted);
  border-radius: 8px;
  padding: 12px 12px 16px;
  box-shadow: 3px 3px 0 var(--ink-muted);
}
.hb-shot img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.hb-shot figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-shot-num {
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--accent);
}

.hb-features { background: var(--bg-soft); position: relative; }
.hb-features::before, .hb-features::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M0 6 Q 25 1 50 6 T 100 6 T 150 6 T 200 6' stroke='%23b8b4a8' stroke-width='1.2' fill='none'/></svg>") repeat-x;
  background-size: 200px 12px;
  opacity: 0.5;
}
.hb-features::before { top: 0; }
.hb-features::after { bottom: 0; transform: scaleY(-1); }
.hb-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.hb-feat {
  background: var(--paper-tint);
  border: 1.5px solid var(--ink-muted);
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 3px 3px 0 var(--ink-muted);
}
.hb-feat h3 {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.hb-feat p { font-size: 14px; line-height: 1.85; margin: 0; }

.hb-example-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: var(--paper-tint);
  border: 1.5px solid var(--ink-muted);
  border-radius: 8px;
  overflow: hidden;
}
.hb-example-table th, .hb-example-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px dashed var(--ink-muted);
  font-size: 14px;
}
.hb-example-table thead th {
  background: var(--bg-soft);
  font-family: var(--font-jp);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.hb-example-table code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
}
.hb-swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.1);
}

.hb-users-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hb-users-list li {
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}
.hb-users-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .honbanwaku-hero-grid { grid-template-columns: 1fr; }
  .hb-app-icon { width: 140px; height: 140px; }
  .hb-shot-grid { grid-template-columns: 1fr; }
  .hb-feat-grid { grid-template-columns: 1fr; }
  .hb-users-list { grid-template-columns: 1fr; }
  .hb-example-table th, .hb-example-table td { font-size: 13px; padding: 10px 12px; }
}

/* ============== 細かいモバイル（〜600px） ============== */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  body { font-size: 15px; }

  /* ヘッダー */
  .header-inner { height: 56px; }
  .brand-logo { width: 38px; height: 38px; }
  .site-nav { gap: 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 12px; white-space: nowrap; padding: 4px 2px; }

  /* タイポ */
  .hero { padding: 32px 0 24px; }
  .hero-title { font-size: 26px; line-height: 1.5; margin-bottom: 20px; }
  .hero-lede { font-size: 14.5px; line-height: 1.85; margin-bottom: 24px; }
  .eyebrow { font-size: 18px; margin-bottom: 14px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
  .page-title { font-size: 26px; }
  .page-hero { padding: 40px 0 28px; }
  .page-lede { font-size: 14.5px; }
  .mark-num { font-size: 22px; }
  .mark-label { font-size: 11px; }

  /* ボタン */
  .btn { padding: 11px 18px; font-size: 14px; }
  .btn-large { padding: 13px 22px; font-size: 14px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }

  /* CTA */
  .cta-card,
  .cta-card:has(.cta-art) { padding: 24px 20px; gap: 16px; }
  .cta-copy h2 { font-size: 21px; }
  .cta-copy p { font-size: 13.5px; }
  .cta-actions { gap: 10px; }
  .cta-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* 強み */
  .strengths { padding: 44px 0; }
  .strength { padding-right: 0; }
  .strength h3 { font-size: 19px; }
  .strength p { font-size: 14px; }

  /* 顧問SE他 */
  .issue-card, .solve-card, .support-step, .plan-card, .option-card { padding: 22px 20px; }
  .plan-name { font-size: 22px; }
  .plan-price-num { font-size: 26px; }
  .hours-card { padding: 22px 18px; }
  .hours-value { font-size: 32px; }
  .message-card { padding: 36px 24px 32px !important; }
  .koumon-message .message-card p { font-size: 14.5px; line-height: 30px; }

  /* honbanwaku */
  .hb-app-icon { width: 120px; height: 120px; border-radius: 28px; }
  .hb-tagline { font-size: 18px; }
  .hb-comment-card { padding: 22px 20px; font-size: 14px; line-height: 1.9; }
  .hb-feat { padding: 20px 22px; }
  .hb-feat h3 { font-size: 16px; }
  .hb-feat p { font-size: 13.5px; }

  /* 会社情報 */
  .info-table th { width: 74px; font-size: 12.5px; }
  .info-table td { font-size: 13px; }
  .sub-title { font-size: 18px; }

  /* お問い合わせ */
  .contact-direct { padding: 24px 22px; }
  .direct-value { font-size: 19px; }
  .field input, .field select, .field textarea { font-size: 14px; padding: 11px 12px; }

  /* フッター */
  .site-footer { padding-top: 44px; margin-top: 56px; }
  .footer-grid { padding-bottom: 32px; gap: 28px; }
  .footer-cols, .footer-cols-4 { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
  .footer-col li { font-size: 12px; }
  .footer-base .container { font-size: 11px; gap: 8px 16px; }

  /* サービス一覧 */
  .service-row { padding: 28px 0; }
  .service-row-head h2 { font-size: 22px; }
  .service-row-desc { font-size: 14px; }
  .service-num { font-size: 26px; }

  /* hero illustration: 縮小 */
  .hero-art { min-height: 240px; }
  .hero-illust { max-width: 360px; }
  .koumon-hero-art { min-height: 220px; }
  .koumon-hero-cloud, .koumon-hero-cat { transform: scale(0.7); }
}

@media (max-width: 380px) {
  .nav-link { font-size: 11px; }
  .hero-title { font-size: 23px; }
  .section-title { font-size: 20px; }
  .page-title { font-size: 23px; }
  .ceo-photo { height: 220px; }
  .ceo-photo-wrap { max-width: 230px; }
  .footer-cols, .footer-cols-4 { grid-template-columns: 1fr; }
}

/* ============ Media (お問い合わせ・SNS) ページ ============ */
.media-emoji {
  font-size: 56px;
  line-height: 1;
  display: inline-block;
}
.media-big-value {
  display: inline-block;
  margin: 8px 0 12px;
  font-family: var(--font-jp);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px dashed var(--accent);
  padding-bottom: 2px;
}
.media-big-value:hover {
  color: var(--accent);
}
.media-sns-handle {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  color: var(--ink-soft, var(--ink));
  margin: 4px 0 8px;
}
.media-sns-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.media-sns-card h3 {
  text-align: center;
}
.media-sns-card.muted {
  cursor: default;
}
.media-direct-grid .sub-card {
  text-align: center;
}
@media (max-width: 760px) {
  .media-direct-grid { grid-template-columns: 1fr; }
  .media-sns-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .media-emoji { font-size: 44px; }
}
@media (max-width: 480px) {
  .media-sns-grid { grid-template-columns: 1fr !important; }
}
