:root {
  --ink: #14213d;
  --text: #344054;
  --muted: #667085;
  --line: #d7e0e8;
  --base: #ffffff;
  --soft: #f5f8fa;
  --navy: #123a5a;
  --blue: #0d5c7a;
  --teal: #067070;
  --green: #2f7656;
  --yellow: #f4b942;
  --coral: #c95f46;
  --shadow: 0 18px 44px rgba(20, 33, 61, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--base);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin-top: 0;
}

ul,
ol {
  padding: 0;
}

li {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(215, 224, 232, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: #0b2135;
  border-radius: var(--radius);
  object-fit: cover;
}

.brand-text {
  font-size: 18px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
}

.site-nav .nav-cta {
  padding: 10px 15px;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--navy);
}

.site-nav .nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.home-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #102f49;
  overflow: hidden;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 35, 56, 0.96) 0%, rgba(10, 35, 56, 0.85) 48%, rgba(10, 35, 56, 0.28) 100%),
    url("../images/hero-workflow.jpg") center / cover no-repeat;
  content: "";
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  padding: 80px 0 86px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero .eyebrow,
.page-hero .eyebrow,
.contact-band .eyebrow {
  color: #9ce2d4;
}

.home-hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: #fff;
  font-size: 52px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #172033;
  background: var(--yellow);
}

.button-secondary {
  color: #fff;
  background: var(--blue);
}

.button-outline {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}

.button-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.button-large {
  min-height: 54px;
  padding-inline: 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-facts li {
  padding: 8px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.home-nav-band {
  position: relative;
  z-index: 2;
  margin-top: -42px;
}

.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-nav-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.home-nav-item:last-child {
  border-right: 0;
}

.home-nav-item:hover,
.home-nav-item:focus-visible {
  background: var(--soft);
}

.home-nav-icon,
.service-icon,
.reason-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 900;
}

.home-nav-item strong,
.home-nav-item small {
  display: block;
}

.home-nav-item strong {
  color: var(--ink);
  font-size: 16px;
}

.home-nav-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.home-nav-arrow {
  color: var(--teal);
  font-size: 20px;
  font-weight: 900;
}

.section {
  padding: 82px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: #fff;
  background: var(--navy);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading-center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.content-main h2,
.contact-band h2,
.x-feed-layout h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.35;
}

.section-dark .section-heading h2,
.contact-band h2 {
  color: #fff;
}

.section-heading p,
.section-dark .section-heading p {
  margin-bottom: 0;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 46px;
  align-items: end;
  max-width: none;
}

.answer-box {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
}

.answer-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.service-grid,
.reason-grid,
.field-grid,
.price-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.reason-card,
.field-card,
.price-card,
.faq-card,
.case-study-card,
.profile-panel,
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20, 33, 61, 0.07);
}

.service-card,
.reason-card,
.price-card,
.faq-card,
.content-card {
  padding: 26px;
}

.service-card {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--teal);
}

.service-card:nth-child(2) {
  border-top-color: var(--green);
}

.service-card:nth-child(3) {
  border-top-color: var(--coral);
}

.service-card h3,
.reason-card h3,
.field-card h3,
.price-card h3,
.faq-card h3,
.content-card h3 {
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.service-card p,
.reason-card p,
.field-card p,
.faq-card p {
  margin-bottom: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.tax-readiness-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tax-readiness-actions {
  justify-content: center;
  margin-top: 28px;
}

.check-list,
.bullet-list {
  display: grid;
  gap: 10px;
}

.check-list li,
.bullet-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
  content: "✓";
}

.bullet-list li::before {
  position: absolute;
  left: 4px;
  color: var(--teal);
  font-weight: 900;
  content: "•";
}

.reason-card {
  box-shadow: none;
}

.reason-card .reason-icon {
  background: var(--green);
}

.field-card {
  overflow: hidden;
}

.field-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.field-card-body {
  padding: 22px;
}

.field-tag,
.case-study-tag,
.case-study-status,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.field-tag,
.case-study-tag,
.status-chip {
  color: var(--blue);
  background: #eef7fa;
  border: 1px solid #cfe4ed;
}

.case-study-status {
  color: #8a5900;
  background: #fff5df;
  border: 1px solid #f3d49c;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 360px;
  background: var(--navy);
  overflow: hidden;
}

.feature-band img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-band-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  color: #fff;
}

.feature-band-content h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 36px;
  line-height: 1.35;
}

.feature-band-content p {
  color: rgba(255, 255, 255, 0.88);
}

.x-feed-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: center;
}

.x-feed-layout > *,
.x-native-post-author > span {
  min-width: 0;
}

.x-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.x-profile-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: #111;
  border-radius: var(--radius);
  font-weight: 900;
}

.x-profile-link strong,
.x-profile-link small {
  display: block;
  overflow-wrap: anywhere;
}

.x-profile-link strong {
  color: var(--ink);
}

.x-profile-link small {
  color: var(--muted);
  font-size: 12px;
}

.x-timeline-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.x-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}

.x-timeline-head strong {
  color: var(--ink);
}

.x-timeline-head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.x-timeline-embed,
.x-timeline-embed > a {
  min-height: 250px;
}

.x-timeline-embed > a {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--blue);
  text-align: center;
  font-weight: 800;
}

.x-timeline-embed iframe {
  display: block !important;
  width: 100% !important;
}

.x-native-post-body {
  padding: 24px;
}

.x-native-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.x-native-post-author strong,
.x-native-post-author small {
  display: block;
  overflow-wrap: anywhere;
}

.x-native-post-author strong {
  color: var(--ink);
}

.x-native-post-author small {
  color: var(--muted);
  font-size: 12px;
}

.x-native-post-body p {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.x-native-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding-top: 16px;
  color: var(--blue);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.x-feed-sync-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

.x-feed-sync-state > span[aria-hidden] {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--blue);
  border-radius: 50%;
}

.x-feed-sync-state[data-state="loading"] > span[aria-hidden] {
  animation: x-feed-pulse 1.2s ease-in-out infinite;
}

.x-feed-sync-state[data-state="success"] {
  color: #25734f !important;
}

.x-feed-sync-state[data-state="success"] > span[aria-hidden] {
  background: #2b9466;
}

.x-feed-sync-state[data-state="warning"] {
  color: #8a5b17 !important;
}

.x-feed-sync-state[data-state="warning"] > span[aria-hidden] {
  background: #c7892b;
}

@keyframes x-feed-pulse {
  0%,
  100% { opacity: .35; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .x-feed-sync-state[data-state="loading"] > span[aria-hidden] {
    animation: none;
  }
}

.contact-band {
  padding: 74px 0;
  color: #fff;
  background: var(--navy);
}

.contact-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.contact-band p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
  padding: 14px 0;
  color: var(--muted);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: #98a2b3;
  content: "/";
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 390px;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 43, 66, 0.96), rgba(13, 43, 66, 0.68)),
    var(--page-hero-image, url("../images/automation-desk.jpg")) center / cover no-repeat;
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-block: 68px;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 44px;
  line-height: 1.3;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.hero-excel {
  --page-hero-image: url("../images/automation-desk.jpg");
}

.hero-system {
  --page-hero-image: url("../images/childcare-office.jpg");
}

.hero-services {
  --page-hero-image: url("../images/hero-workflow.jpg");
}

.hero-about {
  --page-hero-image: url("../images/field-forestry.jpg");
}

.hero-contact {
  --page-hero-image: url("../images/care-office.jpg");
}

.hero-cases {
  --page-hero-image: url("../images/field-forestry.jpg");
}

.hero-web {
  --page-hero-image: url("../images/automation-desk.jpg");
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.content-main > section + section {
  margin-top: 62px;
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.content-main h2 {
  font-size: 32px;
}

.content-main h3 {
  color: var(--ink);
}

.side-nav {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-nav strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}

.side-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
}

.side-nav a {
  display: block;
  padding: 8px 10px;
  color: var(--blue);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  background: #fff;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: process;
}

.process-list li {
  min-height: 150px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: process;
}

.process-list li::before {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  content: "STEP " counter(process, decimal-leading-zero);
}

.process-list strong {
  display: block;
  color: var(--ink);
}

.comparison-list {
  display: grid;
  gap: 14px;
}

.comparison-item {
  display: grid;
  grid-template-columns: 1fr 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comparison-item div {
  min-height: 92px;
  padding: 16px;
  background: var(--soft);
  border-radius: 6px;
}

.comparison-item div:last-child {
  background: #edf8f3;
}

.comparison-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.comparison-arrow {
  color: var(--teal);
  text-align: center;
  font-size: 22px;
  font-weight: 900;
}

.price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 24px;
}

/* 3プランを横並びで比較させる場合（web.html）。
   .price-grid の既定は2列のため、デスクトップ幅でのみ3列へ上書きする。 */
@media (min-width: 1041px) {
  .price-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .price-grid-3 .price-card {
    padding: 20px;
  }

  .price-grid-3 .price-card strong {
    font-size: 21px;
  }
}

.price-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.price-monthly {
  display: block;
  margin: 12px 0 16px;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.price-monthly small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.price-card .check-list {
  margin-top: 4px;
  font-size: 14px;
}

.price-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* ホームページ制作ページ：サンプル閲覧への導線 */
.sample-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
  padding: 26px;
  background: linear-gradient(135deg, #123a5a, #0d5c7a 60%, #078686);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(20, 33, 61, 0.18);
}

.sample-cta-body {
  flex: 1 1 320px;
}

.sample-cta-body strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 19px;
}

.sample-cta-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .sample-cta {
    padding: 22px;
  }

  .sample-cta .button {
    width: 100%;
  }
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--teal);
  font-size: 20px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 20px 20px;
}

.faq-body p {
  margin-bottom: 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: 24px;
}

.profile-panel {
  padding: 30px;
}

.profile-panel img {
  width: 100%;
  height: 220px;
  margin-bottom: 22px;
  object-fit: cover;
  border-radius: 6px;
}

.profile-panel h2,
.profile-panel h3 {
  color: var(--ink);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.activity-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.activity-card h3 {
  color: var(--ink);
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-actions {
  margin-top: 28px;
}

.contact-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.line-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 26px;
  padding: 28px;
  background: #f3fff6;
  border: 1px solid #bce4c6;
  border-radius: var(--radius);
}

.line-contact-panel h3 {
  margin: 0;
  color: var(--ink);
}

.line-contact-panel p {
  max-width: 48ch;
  margin: 8px 0 18px;
}

.line-add-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px;
  border-radius: 6px;
}

.line-add-button:hover,
.line-add-button:focus-visible {
  background: rgba(6, 199, 85, 0.12);
}

.line-add-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.line-add-button img {
  display: block;
  width: auto;
  height: 36px;
}

.line-add-button-on-dark:hover,
.line-add-button-on-dark:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.line-contact-qr {
  justify-self: end;
  display: block;
  padding: 8px;
  background: #fff;
  border: 1px solid #bce4c6;
  border-radius: 6px;
}

.line-contact-qr:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.line-contact-qr img {
  display: block;
  width: 164px;
  height: 164px;
}

.contact-option {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
}

.contact-option h3 {
  color: var(--ink);
}

.support-guide {
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.support-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: support;
}

.support-steps li {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  counter-increment: support;
}

.support-steps li::before {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  content: "STEP " counter(support);
}

.support-steps strong {
  display: block;
  color: var(--ink);
}

.case-study-grid {
  display: grid;
  gap: 22px;
}

.case-study-card {
  padding: 28px;
  scroll-margin-top: 92px;
  border-top: 4px solid var(--teal);
}

.case-study-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.case-study-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.case-study-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 24px;
}

.case-study-lead {
  margin-bottom: 22px;
}

.case-study-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-study-detail {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.case-study-detail h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 15px;
}

.case-study-detail p,
.case-study-detail ul {
  margin-bottom: 0;
}

.case-study-detail ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}

.case-study-detail li {
  list-style: disc;
}

.case-study-detail-meta {
  grid-column: 1 / -1;
  background: #eef7fa;
}

.case-study-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case-study-block {
  padding: 18px;
  background: var(--soft);
  border-radius: 6px;
}

.case-study-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 10px;
  color: #fff;
  background: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.label-after {
  background: var(--teal);
}

.case-study-block ul {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  padding-left: 20px;
}

.case-study-block li {
  list-style: disc;
}

.case-study-features {
  margin-top: 20px;
}

.case-study-features-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-chips span {
  padding: 6px 10px;
  color: var(--ink);
  background: #eef4f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.case-study-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.cases-visual-band {
  padding: 24px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.cases-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cases-visual-grid figure {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: 200px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.cases-visual-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cases-visual-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 14px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(14, 31, 48, 0.9));
  font-weight: 900;
}

.legal-content {
  max-width: 860px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.info-list {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--ink);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
}

.site-footer {
  color: #d9e5ec;
  background: #0f2638;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
  gap: 36px;
  padding: 48px 0 34px;
}

.footer-brand {
  color: #fff;
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-intro {
  max-width: 320px;
  margin: 14px 0;
  color: #adc2d0;
  font-size: 14px;
}

.footer-column strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.footer-column nav {
  display: grid;
  gap: 8px;
}

.footer-column a,
.footer-social {
  color: #bfd0dc;
  font-size: 14px;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-social:hover,
.footer-social:focus-visible {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #97afbf;
  font-size: 12px;
}

.floating-cta {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  display: none;
  padding: 11px 14px;
  color: #172033;
  background: var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.floating-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 89;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow: var(--shadow);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #fff;
  background: var(--blue);
}

.back-to-top.is-visible,
.back-to-top:focus-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top.is-obscured:not(:focus-visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.error-page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 80px 20px;
  text-align: center;
  background: var(--soft);
}

.error-page strong {
  display: block;
  color: var(--teal);
  font-size: 64px;
}

.error-page h1 {
  color: var(--ink);
}

/* ナビ項目が8つあるため、横幅に余裕がない小型ノートでは詰めて1行に収める。
   1040px以下はハンバーガーへ切り替わるので、その手前の帯域だけが対象。 */
@media (min-width: 1041px) and (max-width: 1200px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .site-nav .nav-cta {
    padding: 10px 12px;
  }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 88px);
    padding: 14px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-nav .nav-cta {
    text-align: center;
  }

  .split-heading,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .side-nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid,
  .reason-grid,
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-text {
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 64px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 80px);
    padding: 14px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-nav .nav-cta {
    text-align: center;
  }

  .home-hero {
    min-height: 560px;
  }

  .home-hero::before {
    background:
      linear-gradient(rgba(10, 35, 56, 0.91), rgba(10, 35, 56, 0.91)),
      url("../images/hero-workflow.jpg") center / cover no-repeat;
  }

  .hero-content {
    padding: 58px 0 74px;
  }

  .home-hero h1 {
    font-size: clamp(31px, 9vw, 36px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .home-nav-band {
    margin-top: -28px;
  }

  .home-nav-grid {
    grid-template-columns: 1fr;
  }

  .home-nav-item {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-nav-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .content-main h2,
  .contact-band h2,
  .x-feed-layout h2 {
    font-size: 29px;
  }

  .split-heading {
    gap: 16px;
  }

  .service-grid,
  .reason-grid,
  .field-grid,
  .price-grid,
  .faq-grid,
  .activity-grid,
  .contact-options,
  .support-steps,
  .profile-layout,
  .x-feed-layout,
  .cases-visual-grid {
    grid-template-columns: 1fr;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

  .feature-band img {
    min-height: 230px;
    max-height: 280px;
  }

  .feature-band-content {
    padding: 30px 22px;
  }

  .feature-band-content h2 {
    font-size: 29px;
  }

  .contact-band-inner {
    grid-template-columns: 1fr;
  }

  .line-contact-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .line-contact-qr {
    justify-self: start;
  }

  .page-hero {
    min-height: 330px;
  }

  .page-hero .container {
    padding-block: 54px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .side-nav ul {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .comparison-item {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }

  .case-study-body {
    grid-template-columns: 1fr;
  }

  .case-study-details {
    grid-template-columns: 1fr;
  }

  .case-study-detail-meta {
    grid-column: auto;
  }

  .case-study-card,
  .legal-content {
    padding: 22px;
  }

  .cases-visual-grid figure {
    min-height: 180px;
    aspect-ratio: 16 / 8;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-cta {
    display: inline-flex;
  }

  .floating-cta ~ .back-to-top {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .back-to-top {
    transform: none;
  }
}
