/* =============================================================
   修理研 SHURIKEN - main.css
   Mobile-first responsive design
   Breakpoints: base (mobile) → 600px (tablet) → 960px (desktop)
   ============================================================= */

:root {
  /* ===== Base palette: 紺(navy) × 朱(red) × 白(white) =====
     The classical Japanese B2B color trio. Navy = 信頼 (trust),
     red = 情熱・行動 (call to action), white = 清潔 (cleanliness). */

  /* surface */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-bg-warm: #faf8f4;     /* 和紙 paper tone, optional callouts */

  /* ink */
  --color-ink: #1a1a1a;
  --color-ink-soft: #555a64;
  --color-ink-muted: #8a8f97;

  /* lines */
  --color-line: #dcdee3;
  --color-line-soft: #ebedf0;

  /* primary: navy (紺) — link text, hero gradient, headings on dark */
  --color-primary: #1a3a6b;
  --color-primary-dark: #122850;
  --color-primary-light: #2a5298;
  --color-primary-pale: #eef2f7;

  /* accent: red (朱) — CTA buttons, POINT bars, ribbon badges */
  --color-accent: #c8102e;
  --color-accent-dark: #8b0a1f;
  --color-accent-pale: #fdf0f1;

  /* legacy aliases kept for any inline references */
  --color-accent-red: var(--color-accent);

  /* gold (和金) — shuriken theme accent, hero eyebrow */
  --color-gold: #c9a860;
  --color-gold-dark: #a08442;

  /* highlighter (蛍光ペン) — yellow is the most JP-natural color */
  --color-marker: #fff066;

  /* status */
  --color-success: #138a4a;
  --color-warning: #d97706;

  /* shadows — JP sites tend to use lighter shadows than US sites */
  --shadow-sm: 0 1px 2px rgba(18, 40, 80, 0.05), 0 2px 4px rgba(18, 40, 80, 0.03);
  --shadow-md: 0 3px 8px rgba(18, 40, 80, 0.06), 0 6px 18px rgba(18, 40, 80, 0.04);
  --shadow-lg: 0 8px 24px rgba(18, 40, 80, 0.08), 0 18px 48px rgba(18, 40, 80, 0.06);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --container-narrow: 760px;
  --tap: 44px;

  /* BIZ UDPGothic — JP-business UD font (Morisawa). Noto Sans JP as
     a graceful fallback for older browsers / locales without UD. */
  --font-sans: "BIZ UDPGothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: break-word;
}
img, svg, video, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover, a:focus { color: var(--color-primary-dark); }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.4;
  letter-spacing: .02em;
  margin: 0 0 .6em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; }

section { padding: 56px 0; }
section.alt { background: var(--color-bg-alt); }

h2.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  text-align: center;
  margin-bottom: .3em;
}
h2.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 14px auto 0;
}
.section-lead {
  text-align: center;
  color: var(--color-ink-soft);
  margin: 0 auto 2rem;
  max-width: 720px;
  font-size: .98rem;
}

/* =============================================================
   JP-business pattern: section header with eyebrow label
   "SERVICES" (small uppercase) + 日本語タイトル + accent line
   ============================================================= */
.section-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  letter-spacing: .35em;
  color: var(--color-accent);
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* =============================================================
   JP-business pattern: yellow highlighter mark (蛍光ペン強調)
   Use as <mark class="hl">テキスト</mark> for catchphrase emphasis
   ============================================================= */
.hl {
  background: linear-gradient(transparent 60%, rgba(255,240,102,.85) 60%);
  color: inherit;
  padding: 0 2px;
  font-weight: 700;
}
.hl-red {
  background: linear-gradient(transparent 60%, rgba(200,16,46,.20) 60%);
  color: inherit;
  padding: 0 2px;
  font-weight: 700;
}
.hl-navy {
  background: linear-gradient(transparent 60%, rgba(26,58,107,.18) 60%);
  color: inherit;
  padding: 0 2px;
  font-weight: 700;
}

/* =============================================================
   JP-business pattern: numbered POINT cards (POINT 01 / 02 / 03)
   Big faded gray number behind title — common in 日本BtoBサイト
   ============================================================= */
.point-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 1.5rem 0;
}
.point-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.point-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.point-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
}
.point-card .point-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-bg-alt);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.point-card .point-num::before {
  content: "POINT  ";
  display: block;
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.point-card .point-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(200, 16, 46, .08);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  margin: -34px 0 14px auto;
  position: relative;
  z-index: 1;
}
.point-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--color-ink);
}
.point-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: .94rem;
  line-height: 1.8;
}
@media (min-width: 600px) { .point-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 960px) { .point-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.point-grid.cols-4 { /* 4-column variant */ }
@media (min-width: 960px) { .point-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   JP-business pattern: notice box (重要・ご注意 boxed callout)
   ============================================================= */
.notice-box {
  background: #fffaf0;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 1.5rem 0;
  position: relative;
}
.notice-box::before {
  content: attr(data-label);
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--color-gold);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  padding: 3px 10px;
  border-radius: 3px;
}
.notice-box p:last-child { margin-bottom: 0; }
.notice-box.notice-red {
  background: #fff5f6;
  border-color: var(--color-accent);
}
.notice-box.notice-red::before {
  background: var(--color-accent);
}

/* =============================================================
   JP-business pattern: small-notes (※注釈)
   ============================================================= */
.small-notes {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  font-size: .82rem;
  color: var(--color-ink-soft);
  line-height: 1.7;
}
.small-notes li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: .3em;
}
.small-notes li::before {
  content: "※";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* =============================================================
   JP-business pattern: feature strip (信頼性バッジ横並び)
   Five short trust badges placed below hero
   ============================================================= */
.feature-strip {
  background: #fff;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 18px 0;
}
.feature-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-size: .88rem;
  color: var(--color-ink);
}
.feature-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.feature-strip-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .feature-strip { padding: 22px 0; }
  .feature-strip-inner { gap: 14px 36px; font-size: .92rem; }
}

/* =============================================================
   JP-business pattern: large header phone number
   ============================================================= */
.header-tel {
  display: none; /* mobile: hidden, shown in mobile menu instead */
  text-align: right;
  line-height: 1.1;
  margin-right: 12px;
}
.header-tel-label {
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--color-ink-soft);
  display: block;
  margin-bottom: 2px;
}
.header-tel-number {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-ink);
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.header-tel-number svg { color: var(--color-accent); }
.header-tel-hours {
  font-size: .68rem;
  color: var(--color-ink-soft);
  display: block;
}
@media (min-width: 960px) {
  .header-tel { display: block; margin-left: auto; }
}
/* Mobile: phone block inside the open menu */
.mobile-tel-block {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0 0;
  text-align: center;
}
.mobile-tel-block .header-tel-label { letter-spacing: .2em; margin-bottom: 6px; }
.mobile-tel-block .header-tel-number { font-size: 1.55rem; justify-content: center; }
@media (min-width: 960px) {
  .mobile-tel-block { display: none; }
}

/* =============================================================
   JP-business pattern: ribbon badge (No.1 / 人気 / おすすめ)
   ============================================================= */
.ribbon-badge {
  position: absolute;
  top: 14px;
  right: -8px;
  background: var(--color-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  padding: 5px 12px 5px 14px;
  z-index: 1;
}
.ribbon-badge::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  border: 4px solid transparent;
  border-top-color: var(--color-accent-dark);
  border-right-color: var(--color-accent-dark);
}

/* =============================================================
   Header (mobile-first)
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  font-weight: 700;
  min-height: var(--tap);
}
.brand-logo { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-ja {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.brand-en {
  font-size: .58rem;
  letter-spacing: .25em;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

.nav-toggle {
  background: none;
  border: 0;
  width: var(--tap);
  height: var(--tap);
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 3px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--color-line);
  flex-direction: column;
  align-items: stretch;
  padding: 16px 20px 24px;
  gap: 0;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  overflow-y: auto;
  display: flex;
}
.primary-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav li { border-bottom: 1px solid var(--color-line); }
.primary-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 12px 4px;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 1rem;
}
.primary-nav a[aria-current="page"] { color: var(--color-accent); }
.nav-cta {
  margin-top: 20px;
  background: var(--color-accent);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
  box-shadow: 0 2px 0 var(--color-accent-dark);
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
}
.nav-cta:hover, .nav-cta:focus {
  background: var(--color-accent-dark);
  color: #fff !important;
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--color-accent-dark);
}
.nav-cta-icon { flex-shrink: 0; }
.nav-cta-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.nav-cta-sub { font-size: .65rem; letter-spacing: .12em; opacity: .92; font-weight: 500; }
.nav-cta-main { font-size: .95rem; font-weight: 700; letter-spacing: .04em; }

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #122850 0%, #1a3a6b 60%, #244a7e 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,.85) 0%, rgba(13,17,23,.55) 50%, rgba(13,17,23,.35) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding: 64px 20px;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  letter-spacing: .3em;
  font-size: .7rem;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 7vw, 3.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hero-title em { color: var(--color-gold); font-style: normal; }
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  max-width: 640px;
  margin-bottom: 28px;
  opacity: .92;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  min-height: var(--tap);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }

/* =============================================================
   Features grid (1col → 2col → 4col)
   ============================================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: rgba(200, 16, 46, .08);
  color: var(--color-accent);
  border-radius: 14px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p {
  color: var(--color-ink-soft);
  font-size: .92rem;
  margin: 0;
}

/* =============================================================
   Service cards (1col → 2col → 3col)
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-thumb {
  aspect-ratio: 16 / 10;
  background: #ddd;
  background-size: cover;
  background-position: center;
}
.service-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p {
  color: var(--color-ink-soft);
  flex: 1;
  margin-bottom: 18px;
  font-size: .95rem;
}
.service-link {
  font-weight: 700;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
}
.service-link::after {
  content: "→";
  transition: transform .2s ease;
}
.service-card:hover .service-link::after { transform: translateX(4px); }

/* =============================================================
   Process steps (1col → 2col → 4col)
   ============================================================= */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 16px;
  counter-reset: step;
  margin-top: 36px;
}
.process-step {
  position: relative;
  padding: 32px 20px 22px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-ink);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1rem;
}
.process-step h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.process-step p {
  color: var(--color-ink-soft);
  font-size: .9rem;
  margin: 0;
}

/* =============================================================
   Pricing cards
   ============================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  position: relative;
}
.price-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.2rem; }
.price-amount {
  font-family: var(--font-serif);
  font-weight: 900;
  margin: 12px 0;
}
.price-amount .num { font-size: 2.2rem; }
.price-amount .unit {
  font-size: .9rem;
  color: var(--color-ink-soft);
  margin-left: 4px;
  font-weight: 400;
  font-family: var(--font-sans);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.price-features li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px dashed var(--color-line);
  position: relative;
  font-size: .92rem;
}
.price-features li:last-child { border-bottom: 0; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 900;
}

/* =============================================================
   Pricing table
   ============================================================= */
.price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: .92rem;
  min-width: 540px;
}
.price-table th, .price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}
.price-table thead th {
  background: var(--color-ink);
  color: #fff;
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .05em;
}
.price-table tbody tr:hover { background: var(--color-bg-alt); }
.price-table .amount {
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}
/* page-content tables auto-wrap */
.page-content table { display: block; overflow-x: auto; max-width: 100%; }

/* =============================================================
   Info table (company info / definition lists in HTML table form)
   No horizontal scroll, stacks on mobile, no row hover.
   ============================================================= */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: .94rem;
  display: block; /* enable mobile-stacked rendering */
}
.info-table tbody { display: block; }
.info-table tr {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-line);
}
.info-table tr:last-child { border-bottom: 0; }
.info-table th,
.info-table td {
  display: block;
  text-align: left;
  padding: 0;
  border: 0;
  vertical-align: top;
}
.info-table th {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 4px;
  width: auto !important; /* override inline width */
}
.info-table td { color: var(--color-ink); line-height: 1.65; }
.info-table td small { color: var(--color-ink-soft); display: block; margin-top: 2px; }

@media (min-width: 600px) {
  .info-table { display: table; }
  .info-table tbody { display: table-row-group; }
  .info-table tr { display: table-row; padding: 0; }
  .info-table th,
  .info-table td { display: table-cell; padding: 14px 18px; }
  .info-table th {
    width: 180px;
    background: var(--color-bg-alt);
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    font-size: .88rem;
    letter-spacing: .04em;
    text-transform: none;
    color: var(--color-ink);
    margin: 0;
  }
  .info-table td { border-bottom: 1px solid var(--color-line); }
  .info-table tr:last-child th,
  .info-table tr:last-child td { border-bottom: 0; }
}

/* =============================================================
   About-page accent blocks
   ============================================================= */
.about-intro {
  background: linear-gradient(135deg, #122850 0%, #1a3a6b 60%, #244a7e 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  margin: 1.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.about-intro::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(201,168,96,.18) 0%, transparent 70%);
  pointer-events: none;
}
.about-intro h2 {
  font-family: var(--font-serif);
  color: var(--color-gold);
  margin: 0 0 14px;
  border: 0;
  font-size: 1.3rem;
  padding: 0;
  letter-spacing: .08em;
}
.about-intro p {
  margin: 0;
  color: rgba(255,255,255,.9);
  line-height: 1.85;
}
.about-intro strong { color: #fff; }

.related-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4em;
}
.related-services li {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem;
  margin: 0 !important;
}
@media (min-width: 600px) {
  .related-services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .related-services { grid-template-columns: repeat(3, 1fr); }
}

.access-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 1rem 0;
}
.access-card .access-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(200, 16, 46, .08);
  color: var(--color-accent);
  display: grid;
  place-items: center;
}
.access-card h3 {
  margin: 0 0 6px;
  color: var(--color-ink);
  font-size: 1.05rem;
  border: 0;
  padding: 0;
}
.access-card p { margin: 0; color: var(--color-ink-soft); line-height: 1.7; font-size: .92rem; }

/* =============================================================
   CTA band
   ============================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin-bottom: 14px;
  color: #fff;
}
.cta-band p {
  color: rgba(255,255,255,.85);
  margin-bottom: 24px;
  font-size: .95rem;
}

/* =============================================================
   FAQ
   ============================================================= */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap);
  font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  color: var(--color-accent);
  font-weight: 900;
  font-size: 1.2rem;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--color-ink-soft);
  font-size: .94rem;
  line-height: 1.8;
}

/* =============================================================
   Page article
   ============================================================= */
.page-article .page-header {
  background: linear-gradient(135deg, #122850 0%, #1a3a6b 60%, #244a7e 100%);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  margin: 0;
  color: #fff;
}
.page-subtitle {
  color: var(--color-gold);
  margin-top: 10px;
  letter-spacing: .15em;
  font-size: .9rem;
}
.page-content {
  padding: 48px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.page-content > * { max-width: var(--container-narrow); margin-left: auto; margin-right: auto; }
.page-content > .services-grid,
.page-content > .pricing-grid,
.page-content > .price-table-wrap,
.page-content > .price-table,
.page-content > table,
.page-content > .cta-band { max-width: 100%; }

.page-content p { margin: 0 0 1.4em; }
.page-content .lead {
  font-size: 1.05rem;
  color: var(--color-ink);
  border-left: 3px solid var(--color-accent);
  padding: 4px 0 4px 16px;
  margin-bottom: 2rem;
}
.page-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  margin: 2.4rem 0 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-line);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 1.1rem;
  margin: 1.8rem 0 .6em;
  color: var(--color-accent);
}
.page-content ul, .page-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.page-content ul li, .page-content ol li { margin-bottom: .4em; }

/* =============================================================
   Post (blog) — readability-first
   ============================================================= */
.post .page-header {
  background: linear-gradient(135deg, #122850 0%, #1a3a6b 60%, #244a7e 100%);
  color: #fff;
  padding: 56px 20px 48px;
  text-align: center;
}
.post .page-title { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
.post .page-subtitle { font-size: .85rem; }

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--color-ink);
  letter-spacing: .01em;
}
.post-content p { margin: 0 0 1.6em; }
.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-line);
  position: relative;
}
.post-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: var(--color-accent);
}
.post-content h3 {
  font-size: 1.2rem;
  margin: 2.4rem 0 .8em;
  color: var(--color-ink);
  padding-left: 14px;
  border-left: 4px solid var(--color-accent);
}
.post-content h4 {
  font-size: 1.05rem;
  margin: 2rem 0 .6em;
  color: var(--color-accent-dark);
}
.post-content blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  color: var(--color-ink-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.post-content blockquote p:last-child { margin: 0; }
.post-content ul, .post-content ol { padding-left: 1.6em; margin: 0 0 1.6em; }
.post-content li { margin-bottom: .5em; }
.post-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 1.6em auto;
}
.post-content figure { margin: 2em 0; }
.post-content figcaption {
  text-align: center;
  font-size: .85rem;
  color: var(--color-ink-soft);
  margin-top: .6em;
}
.post-content code {
  background: var(--color-bg-alt);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .92em;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--color-accent-dark);
}
.post-content pre {
  background: #0d1117;
  color: #e6edf3;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
  margin: 1.6em 0;
}
.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: .94rem;
  display: block;
  overflow-x: auto;
}
.post-content table th, .post-content table td {
  padding: 10px 14px;
  border: 1px solid var(--color-line);
}
.post-content table th { background: var(--color-bg-alt); }
.post-content hr {
  border: 0;
  border-top: 1px dashed var(--color-line);
  margin: 2.4em 0;
}
.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-content a:hover { background: rgba(26,58,107,.06); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: .85rem;
  color: var(--color-ink-soft);
  margin-bottom: 1.6em;
}
.post-meta time { color: var(--color-gold); }
.post-meta .post-tag {
  background: var(--color-bg-alt);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
}

/* =============================================================
   Blog index (post listing)
   ============================================================= */
.post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.post-list-item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.post-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-list-thumb {
  aspect-ratio: 16 / 10;
  background: #ddd;
  background-size: cover;
  background-position: center;
}
.post-list-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-list-date {
  font-size: .8rem;
  color: var(--color-ink-soft);
  letter-spacing: .05em;
}
.post-list-title {
  font-size: 1.1rem;
  margin: 8px 0 10px;
  line-height: 1.5;
}
.post-list-title a { color: var(--color-ink); }
.post-list-title a:hover { color: var(--color-accent); }
.post-list-excerpt {
  color: var(--color-ink-soft);
  font-size: .92rem;
  flex: 1;
  margin: 0 0 14px;
}
.post-list-more { font-weight: 700; font-size: .88rem; }

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  height: var(--tap);
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-ink);
  font-weight: 500;
  font-size: .9rem;
}
.pagination a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.pagination .current {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.pagination .disabled { opacity: .4; pointer-events: none; }

/* =============================================================
   Form
   ============================================================= */
.form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.form label {
  font-weight: 700;
  font-size: .92rem;
  display: block;
  margin-bottom: 6px;
}
.form .req { color: var(--color-accent); margin-left: 4px; font-size: .8rem; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px; /* iOS zoom prevention */
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  min-height: var(--tap);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, .15);
}
.form textarea { min-height: 160px; resize: vertical; }
.form-actions { text-align: center; margin-top: 12px; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.78);
  padding: 56px 0 24px;
  margin-top: 48px;
}
/* On the home page the final section is a full-width dark .cta-band.
   The 48px footer margin would otherwise create a white gap between
   the dark CTA and the dark footer. Add this modifier to the home
   CTA to absorb that margin so the dark sections meet seamlessly. */
.cta-band--seamless { margin-bottom: -48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-logo { width: 56px; margin-bottom: 14px; }
.footer-tagline { color: #fff; font-weight: 500; margin: 0 0 6px; font-size: .95rem; }
.footer-area { font-size: .85rem; color: rgba(255,255,255,.55); margin: 0; }
.footer-nav h2 { font-size: .95rem; color: #fff; margin-bottom: 14px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer-nav a:hover { color: var(--color-gold); }
.footer-contact h2 { font-size: .95rem; color: #fff; margin-bottom: 14px; }
.footer-contact p { font-size: .9rem; margin: 0 0 16px; }
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  min-height: var(--tap);
}
.footer-cta:hover { background: var(--color-accent-dark); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.footer-bottom small {
  color: rgba(255,255,255,.45);
  font-size: .8rem;
}

/* =============================================================
   404 page
   ============================================================= */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 20px;
}
.error-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 18vw, 9rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin: 0;
}
.error-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 16px 0 12px;
}
.error-text {
  color: var(--color-ink-soft);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================
   Tablet (≥600px)
   ============================================================= */
@media (min-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 24px; }
  section { padding: 72px 0; }

  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .post-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }

  .hero { min-height: 540px; }
  .hero .container { padding: 88px 24px; }
  .hero-actions { gap: 14px; }

  .page-content, .page-article .page-header { padding-left: 32px; padding-right: 32px; }
}

/* =============================================================
   Desktop (≥960px)
   ============================================================= */
@media (min-width: 960px) {
  section { padding: 88px 0; }
  .container { padding: 0 32px; }

  .header-inner { height: 72px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-ja { font-size: 1.25rem; letter-spacing: .15em; }
  .brand-en { font-size: .65rem; letter-spacing: .3em; }

  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    flex-direction: row;
    background: transparent;
    border: 0;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
    align-items: center;
    gap: 28px;
    width: auto;
    bottom: auto;
    top: auto;
    left: auto;
    right: auto;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 24px;
  }
  .primary-nav li { border: 0; }
  .primary-nav a {
    padding: 0;
    min-height: 32px;
    font-size: .95rem;
  }
  .nav-cta {
    margin-top: 0;
    padding: 10px 18px;
    width: auto;
  }
  .nav-cta-main { font-size: .92rem; }

  .features-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .post-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }

  .hero { min-height: 600px; }
  .hero .container { padding: 110px 32px; }
  .hero-eyebrow { font-size: .8rem; letter-spacing: .4em; padding: 6px 18px; }

  .feature-card { padding: 32px 24px; }
  .feature-icon { width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; }
  .service-body { padding: 28px; }
  .service-card h3 { font-size: 1.3rem; }
  .price-card { padding: 36px 28px; }
  .price-amount .num { font-size: 2.4rem; }

  .cta-band { padding: 64px 32px; }

  .page-article .page-header { padding-top: 80px; padding-bottom: 80px; }
  .page-content { padding-top: 64px; padding-bottom: 80px; }

  .post-content { padding: 56px 24px 80px; font-size: 1.05rem; }
  .post-content h2 { font-size: 1.65rem; margin-top: 3.2rem; }
  .post-content h3 { font-size: 1.3rem; }
}

/* =============================================================
   Print
   ============================================================= */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions, .cta-band { display: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
