/* =============================================
   PRAXIS — サービス詳細ページ
   ============================================= */

.service-page main {
  overflow: clip;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--mute);
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-hero {
  min-height: 100svh;
  padding: calc(var(--header-height) + 28px) var(--gutter) 0;
}

.service-hero__head {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: end;
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.service-hero__no {
  margin-left: -0.05em;
  font-family: var(--font-en);
  font-size: clamp(112px, 17vw, 280px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.07em;
}

.service-hero__en {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--mute);
}

.service-hero__title {
  max-width: 10em;
  margin-top: 12px;
  font-size: clamp(42px, 6.4vw, 112px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.service-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px) clamp(16px, 2vw, 32px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 96px);
}

.service-hero__copy {
  grid-column: 1 / span 4;
}

.service-hero__lead {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.service-hero__text {
  margin-top: 20px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 2;
}

.service-hero__actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.service-hero__visual {
  grid-column: 6 / -1;
}

.service-hero__visual img {
  width: 100%;
}

.service-hero__visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--mute);
}

.service-hero__area {
  margin-top: clamp(56px, 7vw, 104px);
  padding-block: 18px;
  font-size: 15px;
  border-top: 1px solid var(--line);
}

.service-hero__area span {
  margin-inline: 0.65em;
  color: var(--accent);
}

.service-section-head h2 {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(40px, 6.2vw, 104px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.service-section-head > p:last-child:not(.eyebrow) {
  max-width: 38em;
  margin-top: 28px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 2;
}

/* ── 課題 ── */

.service-needs {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px clamp(16px, 2vw, 32px);
  padding: var(--section-space) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.service-needs .service-section-head {
  grid-column: 1 / span 5;
}

.service-needs__list {
  grid-column: 7 / -1;
  border-top: 1px solid var(--line-dark);
}

.service-needs__list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding-block: clamp(22px, 2.6vw, 36px);
  border-bottom: 1px solid var(--line-dark);
}

.service-needs__list span {
  font-family: var(--font-en);
  color: var(--accent);
}

.service-needs__list p {
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 700;
  line-height: 1.65;
}

/* ── 考え方 ── */

.service-approach,
.service-flow {
  padding: var(--section-space) var(--gutter);
}

.service-approach .service-section-head,
.service-flow .service-section-head {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: clamp(16px, 2vw, 32px);
}

.service-approach .eyebrow,
.service-flow .eyebrow {
  grid-column: 1 / -1;
}

.service-approach .service-section-head h2,
.service-flow .service-section-head h2 {
  grid-column: 1;
}

.service-approach .service-section-head > p:last-child,
.service-flow .service-section-head > p:last-child {
  grid-column: 2;
  align-self: end;
}

.service-approach__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 128px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-approach__list li {
  min-height: 360px;
  padding: clamp(24px, 3vw, 48px);
  border-right: 1px solid var(--line);
}

.service-approach__list li:first-child {
  border-left: 1px solid var(--line);
}

.service-approach__no {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(52px, 6vw, 96px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.05em;
}

.service-approach__list h3 {
  margin-top: clamp(56px, 7vw, 112px);
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.5;
}

.service-approach__list p {
  margin-top: 16px;
  line-height: 1.9;
}

/* ── 対応範囲 ── */

.service-scope {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter) var(--section-space);
}

.service-scope .service-section-head {
  grid-column: 1 / span 5;
}

.service-scope__list {
  grid-column: 7 / -1;
  border-top: 1px solid var(--line);
}

.service-scope__list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.service-scope__list span {
  font-family: var(--font-en);
  color: var(--mute);
}

.service-scope__list p {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.6;
}

/* ── 制作例 ── */

.service-work {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px clamp(16px, 2vw, 32px);
  align-items: center;
  padding: var(--section-space) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.service-work > div {
  grid-column: 1 / span 4;
}

.service-work__kind {
  margin-top: clamp(48px, 7vw, 112px);
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--accent);
}

.service-work h2 {
  margin-top: 16px;
  font-size: clamp(36px, 4.6vw, 76px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.service-work > div > p:not(.eyebrow):not(.service-work__kind) {
  margin-top: 28px;
  color: #d0d0d0;
}

.service-work .arrow-link {
  margin-top: 32px;
}

.service-work__visual {
  grid-column: 6 / -1;
}

.service-work__visual img {
  width: 100%;
}

/* ── 流れ ── */

.service-flow__list {
  margin-top: clamp(64px, 8vw, 128px);
  border-top: 1px solid var(--line);
}

.service-flow__list li {
  display: grid;
  grid-template-columns: 2fr 10fr;
  gap: clamp(16px, 2vw, 32px);
  padding-block: clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}

.service-flow__list > li > span {
  font-family: var(--font-en);
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.05em;
}

.service-flow__list h3 {
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.5;
}

.service-flow__list p {
  max-width: 42em;
  margin-top: 8px;
  line-height: 1.9;
}

/* ── FAQ ── */

.service-faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter) var(--section-space);
}

.service-faq .service-section-head {
  grid-column: 1 / span 4;
}

.service-faq__list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--line);
}

.service-faq__item {
  border-bottom: 1px solid var(--line);
}

.service-faq__item summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  cursor: pointer;
  list-style: none;
}

.service-faq__item summary::-webkit-details-marker {
  display: none;
}

.service-faq__item summary span {
  font-family: var(--font-en);
  color: var(--accent);
}

.service-faq__item summary strong {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
}

.service-faq__item summary i {
  position: relative;
  width: 18px;
  height: 18px;
}

.service-faq__item summary i::before,
.service-faq__item summary i::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}

.service-faq__item summary i::after {
  transform: rotate(90deg);
}

.service-faq__item[open] summary i::after {
  transform: rotate(0);
}

.service-faq__item > p {
  max-width: 42em;
  padding: 0 36px 28px 60px;
  line-height: 2;
}

/* ── 関連サービス ── */

.other-services {
  padding: 0 var(--gutter) var(--section-space);
}

.other-services__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.other-services__list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  transition: background 0.3s, color 0.3s;
}

.other-services__list a:first-child {
  border-left: 1px solid var(--line);
}

.other-services__no {
  font-family: var(--font-en);
  color: var(--accent);
}

.other-services__list small,
.other-services__list strong {
  display: block;
}

.other-services__list small {
  font-family: var(--font-en);
  color: var(--mute);
}

.other-services__list strong {
  margin-top: 48px;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.6;
}

@media (hover: hover) {
  .breadcrumbs a:hover {
    text-decoration-thickness: 2px;
  }

  .other-services__list a:hover {
    background: var(--ink);
    color: var(--paper);
  }

  .other-services__list a:hover small {
    color: var(--mute-dark);
  }

  .other-services__list a:hover .arrow-link__icon {
    transform: translateX(8px);
  }
}

@media (max-width: 1000px) {
  .service-hero__head {
    grid-template-columns: 3fr 9fr;
  }

  .service-hero__copy {
    grid-column: 1 / span 5;
  }

  .service-hero__visual {
    grid-column: 6 / -1;
  }

  .service-needs .service-section-head,
  .service-scope .service-section-head {
    grid-column: 1 / span 6;
  }

  .service-needs__list,
  .service-scope__list {
    grid-column: 7 / -1;
  }
}

@media (max-width: 900px) {
  .service-hero {
    min-height: 0;
    padding-top: calc(var(--header-height) + 20px);
  }

  .service-hero__head {
    display: block;
    margin-top: 36px;
  }

  .service-hero__no {
    font-size: min(34vw, 180px);
  }

  .service-hero__head > div {
    margin-top: 28px;
  }

  .service-hero__title {
    font-size: min(11vw, 72px);
  }

  .service-hero__grid {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    margin-top: 40px;
  }

  .service-hero__actions {
    grid-template-columns: 1fr 1fr;
  }

  .service-hero__actions .btn {
    padding-inline: 14px;
  }

  .service-hero__area span {
    display: block;
    height: 0;
    overflow: hidden;
  }

  .service-needs,
  .service-scope,
  .service-faq,
  .service-work {
    display: block;
  }

  .service-needs__list,
  .service-scope__list,
  .service-faq__list,
  .service-work__visual {
    margin-top: 48px;
  }

  .service-approach .service-section-head,
  .service-flow .service-section-head {
    display: block;
  }

  .service-approach__list {
    grid-template-columns: 1fr;
  }

  .service-approach__list li,
  .service-approach__list li:first-child {
    min-height: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-approach__list li:first-child {
    border-top: 1px solid var(--line);
  }

  .service-approach__list h3 {
    margin-top: 36px;
  }

  .service-work > div > p:not(.eyebrow):not(.service-work__kind) {
    max-width: 36em;
  }

  .service-flow__list li {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .other-services__list {
    grid-template-columns: 1fr;
  }

  .other-services__list a,
  .other-services__list a:first-child {
    min-height: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .other-services__list a:first-child {
    border-top: 1px solid var(--line);
  }

  .other-services__list strong {
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  .service-hero__actions {
    grid-template-columns: 1fr;
  }

  .service-section-head h2 {
    font-size: min(11vw, 56px);
  }

  .service-needs__list li,
  .service-scope__list li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .service-flow__list li {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .service-faq__item summary {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
  }

  .service-faq__item > p {
    padding-left: 50px;
  }
}

/* ── Excel:操作デモ「1回の入力で、複数シートへ。」 ── */

.excel-demo {
  --excel-demo-sheet: #2f7a52;
  --excel-demo-update: rgba(19, 151, 215, 0.16);
  --excel-demo-update-text: #0a6a9a;
  --excel-demo-error: #c22d2d;
  --excel-demo-field: #8a8a8a;
  --excel-demo-head: #f6f6f4;

  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px clamp(16px, 2vw, 32px);
  padding: var(--section-space) var(--gutter);
  background: var(--mist);
}

.excel-demo__head {
  grid-column: 1 / span 7;
}

.excel-demo__compare {
  grid-column: 8 / -1;
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--line);
}

.excel-demo__compare-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.excel-demo__compare dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--mute);
}

.excel-demo__compare dd {
  margin: 0;
  word-break: auto-phrase;
  text-wrap: pretty;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 700;
  line-height: 1.6;
}

.excel-demo__compare-item--after dt {
  color: var(--excel-demo-update-text);
}

.excel-demo__noscript {
  grid-column: 1 / -1;
  padding: 16px 20px;
  background: var(--paper);
  border-left: 3px solid var(--accent);
}

.excel-demo__app {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  background: var(--paper);
  border: 1px solid var(--line);
}

.excel-demo__form,
.excel-demo__sheets {
  min-width: 0;
  padding: clamp(24px, 2.6vw, 44px);
}

.excel-demo__form {
  grid-column: 1 / span 4;
  border-right: 1px solid var(--line);
}

.excel-demo__sheets {
  grid-column: 5 / -1;
}

.excel-demo__step {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.excel-demo__panel-title {
  margin-top: 14px;
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 700;
  line-height: 1.5;
}

.excel-demo__panel-lead {
  margin-top: 4px;
  font-size: 15px;
  color: var(--mute);
}

/* 入力フォーム */

.excel-demo__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin-top: 28px;
}

.excel-demo__field {
  grid-column: 1 / -1;
  min-width: 0;
}

.excel-demo__field--half {
  grid-column: span 1;
}

.excel-demo__field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.excel-demo__req {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.7;
  vertical-align: 1px;
  color: var(--paper);
  background: var(--ink);
}

/* 入力欄の境界は白地に対して3:1以上を確保する */
.excel-demo__field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1.5px solid var(--excel-demo-field);
  border-radius: 0;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.4;
  outline-offset: 2px;
  transition: border-color 0.3s;
}

.excel-demo__field input[type='text'] {
  font-family: var(--font-ja);
}

.excel-demo__field input:focus {
  border-color: var(--accent);
}

.excel-demo__field input[aria-invalid='true'] {
  border-color: var(--excel-demo-error);
  border-width: 2px;
}

.excel-demo__hint {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mute);
}

.excel-demo__error {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--excel-demo-error);
}

.excel-demo__error:empty {
  display: none;
}

.excel-demo__error::before {
  content: '※ ';
}

.excel-demo__actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.excel-demo__actions .btn {
  width: 100%;
  min-height: 52px;
  padding-inline: 20px;
  text-align: left;
}

.excel-demo__actions .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.excel-demo__status {
  min-height: 1.7em;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--excel-demo-update-text);
}

.excel-demo__status.is-error {
  color: var(--excel-demo-error);
}

/* 3つのシート(タブにせず縦に並べる) */

.excel-demo__sheet {
  margin-top: 28px;
}

.excel-demo__sheet + .excel-demo__sheet {
  margin-top: 36px;
}

.excel-demo__sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ink);
}

.excel-demo__sheet-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 700;
  line-height: 1.5;
}

.excel-demo__sheet-head h3::before {
  content: '';
  flex: none;
  width: 4px;
  height: 16px;
  background: var(--excel-demo-sheet);
}

.excel-demo__tag {
  padding: 0 6px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--mute);
  border: 1px solid var(--line);
}

.excel-demo__state {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--excel-demo-update-text);
}

.excel-demo__table-wrap {
  max-width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  outline-offset: 2px;
}

.excel-demo__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.excel-demo__table--ledger {
  min-width: 640px;
}

.excel-demo__table--summary {
  min-width: 300px;
}

.excel-demo__table--invoice {
  min-width: 460px;
}

.excel-demo__table th,
.excel-demo__table td {
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
  border: 1px solid var(--line);
}

.excel-demo__table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
  background: var(--excel-demo-head);
}

.excel-demo__table .is-num {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.excel-demo__table th.is-num {
  font-family: var(--font-ja);
}

.excel-demo__invoice {
  margin-top: 14px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
}

.excel-demo__invoice-meta {
  display: grid;
  gap: 4px;
  margin: 0;
}

.excel-demo__invoice-meta > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

.excel-demo__invoice-meta dt {
  font-size: 13px;
  color: var(--mute);
}

.excel-demo__invoice-meta dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.excel-demo__invoice .excel-demo__table-wrap {
  margin-top: 14px;
}

.excel-demo__invoice-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

.excel-demo__invoice-total strong {
  font-family: var(--font-en);
  font-size: clamp(20px, 1.8vw, 26px);
  font-variant-numeric: tabular-nums;
}

.excel-demo__sheet-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
}

/* 表の横スクロールの案内は、はみ出すときだけ表示する(それ以外は読み上げ用) */
.excel-demo__scroll-hint,
.excel-demo__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.excel-demo__table-wrap.is-scrollable + .excel-demo__scroll-hint {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mute);
}

.excel-demo__note {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mute);
}

/* 更新箇所:水色の背景が短く残って消える */
.excel-demo tr.is-updated > td,
.excel-demo [data-invoice].is-updated {
  animation: excel-demo-update 0.55s ease-out;
}

/* 前半は色を保ち、後半で消す(合計0.55秒) */
@keyframes excel-demo-update {
  0%,
  45% {
    background-color: var(--excel-demo-update);
  }

  100% {
    background-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .excel-demo tr.is-updated > td,
  .excel-demo [data-invoice].is-updated {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .excel-demo__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .excel-demo__field--half {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .excel-demo {
    display: block;
  }

  .excel-demo__compare,
  .excel-demo__noscript,
  .excel-demo__app {
    margin-top: 48px;
  }

  .excel-demo__app {
    display: block;
  }

  .excel-demo__form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .excel-demo__field--half {
    grid-column: span 1;
  }

  .excel-demo__note {
    margin-top: 28px;
  }
}


@media (max-width: 520px) {
  .excel-demo__form,
  .excel-demo__sheets {
    padding: 20px 16px;
  }

  .excel-demo__compare-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}

/* ── Excel:操作デモ 実例02〜04 ── */

.excel-examples {
  --excel-examples-sheet: #2f7a52;
  --excel-examples-update: rgba(19, 151, 215, 0.16);
  --excel-examples-update-text: #0a6a9a;
  --excel-examples-error: #c22d2d;
  --excel-examples-field: #8a8a8a;
  --excel-examples-head: #f6f6f4;

  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px clamp(16px, 2vw, 32px);
  padding: var(--section-space) var(--gutter);
  background: var(--paper);
}

.excel-examples__head {
  grid-column: 1 / -1;
}

/* 共通CSSでは h4 の余白を消していないため、ここで消す(クラス指定の余白を優先させる) */
:where(.excel-examples) h4 {
  margin: 0;
}

.excel-examples__noscript {
  grid-column: 1 / -1;
  padding: 16px 20px;
  background: var(--mist);
  border-left: 3px solid var(--accent);
}

.excel-examples__list {
  grid-column: 1 / -1;
  min-width: 0;
}

.excel-examples__item {
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--ink);
}

.excel-examples__item + .excel-examples__item {
  margin-top: clamp(72px, 9vw, 136px);
}

.excel-examples__item-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px clamp(16px, 2vw, 32px);
  align-items: end;
}

.excel-examples__item-head > div {
  grid-column: 1 / span 6;
}

.excel-examples__no {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.excel-examples__item-head h3 {
  margin-top: 16px;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.excel-examples__desc {
  grid-column: 7 / -1;
  max-width: 34em;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.9;
}

/* 左:元データ・入力 / 右:結果 */
.excel-examples__panel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line);
}

.excel-examples__source,
.excel-examples__result {
  min-width: 0;
  padding: clamp(24px, 2.6vw, 44px);
}

.excel-examples__source {
  grid-column: 1 / span 5;
  border-right: 1px solid var(--line);
}

.excel-examples__result {
  grid-column: 6 / -1;
  background: var(--mist);
}

.excel-examples__panel--wide-source .excel-examples__source {
  grid-column: 1 / span 7;
}

.excel-examples__panel--wide-source .excel-examples__result {
  grid-column: 8 / -1;
}

.excel-examples__step {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--mute);
}

.excel-examples__panel-title {
  margin-top: 12px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}

.excel-examples__sheet-head .excel-examples__panel-title {
  margin-top: 0;
}

.excel-examples__sheet-head h4.excel-examples__panel-title {
  font-size: clamp(18px, 1.5vw, 22px);
}

.excel-examples__panel-lead {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mute);
}

.excel-examples__sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
}

.excel-examples__sheet-head h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.excel-examples__sheet-head h4::before {
  content: '';
  flex: none;
  width: 4px;
  height: 14px;
  background: var(--excel-examples-sheet);
}

.excel-examples__tag {
  padding: 0 6px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--mute);
  background: var(--paper);
  border: 1px solid var(--line);
}

/* 表 */

.excel-examples__table-wrap {
  max-width: 100%;
  margin-top: 12px;
  overflow-x: auto;
  outline-offset: 2px;
}

.excel-examples__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  background: var(--paper);
}

.excel-examples__table th,
.excel-examples__table td {
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
  border: 1px solid var(--line);
}

.excel-examples__table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
  background: var(--excel-examples-head);
}

.excel-examples__table tbody th,
.excel-examples__table tfoot th {
  font-weight: 700;
}

.excel-examples__table .is-num {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.excel-examples__table thead .is-num {
  font-family: var(--font-ja);
}

.excel-examples__table .is-code {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
}

.excel-examples__table .is-strong {
  font-weight: 700;
}

.excel-examples__table tfoot th,
.excel-examples__table tfoot td {
  border-top: 1.5px solid var(--ink);
  font-weight: 700;
}

.excel-examples__table--sum {
  min-width: 520px;
}

.excel-examples__table--invoices {
  min-width: 600px;
}

.excel-examples__table--ledger {
  min-width: 760px;
}

/* 表の横スクロールの案内は、はみ出すときだけ表示する(それ以外は読み上げ用) */
.excel-examples__scroll-hint,
.excel-examples__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.excel-examples__table-wrap.is-scrollable + .excel-examples__scroll-hint {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mute);
}

.excel-examples__sheet-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
}

.excel-examples__sheet-note--strong {
  margin-top: 16px;
  padding-top: 12px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

/* 入力 */

.excel-examples__input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1.5px solid var(--excel-examples-field);
  border-radius: 0;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.4;
  outline-offset: 2px;
  transition: border-color 0.3s;
}

.excel-examples__input--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.excel-examples__input:focus {
  border-color: var(--accent);
}

.excel-examples__input[aria-invalid='true'] {
  border-color: var(--excel-examples-error);
  border-width: 2px;
}

.excel-examples__field {
  margin-top: 20px;
}

.excel-examples__field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.excel-examples__field .excel-examples__input {
  max-width: 320px;
  margin-top: 6px;
}

.excel-examples__req {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.7;
  vertical-align: 1px;
  color: var(--paper);
  background: var(--ink);
}

.excel-examples__hint {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mute);
}

.excel-examples__error {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--excel-examples-error);
}

.excel-examples__error:empty {
  display: none;
}

.excel-examples__error::before {
  content: '※ ';
}

/* 実例02:部署ごとのシート */

.excel-examples__sheets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 12px;
  margin-top: 20px;
}

.excel-examples__sheet {
  min-width: 0;
}

.excel-examples__sheet-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 1.5px solid var(--ink);
}

.excel-examples__sheet-name::before {
  content: '';
  flex: none;
  width: 4px;
  height: 14px;
  background: var(--excel-examples-sheet);
}

.excel-examples__table--sheet {
  margin-top: 8px;
  table-layout: fixed;
}

.excel-examples__table--sheet th,
.excel-examples__table--sheet td {
  padding: 4px 6px;
}

.excel-examples__table--sheet th:first-child {
  width: 44px;
}

.excel-examples__table--sheet td {
  padding: 0;
}

.excel-examples__table--sheet .excel-examples__input {
  border-color: transparent;
  border-width: 1.5px;
}

.excel-examples__table--sheet .excel-examples__input:focus {
  border-color: var(--accent);
}

.excel-examples__table--sheet .excel-examples__input[aria-invalid='true'] {
  border-color: var(--excel-examples-error);
}

/* 実例03:チェック欄(押せる範囲を44px以上にする) */

.excel-examples__table th.is-check,
.excel-examples__table td.is-check {
  width: 48px;
  padding: 0;
  text-align: center;
}

.excel-examples__check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.excel-examples__check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

/* 操作ボタン */

.excel-examples__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

/* 入力側が狭い配置(実例02)では、ボタンの文字が折れないよう縦に並べる */
.excel-examples__panel:not(.excel-examples__panel--wide-source) .excel-examples__actions {
  grid-template-columns: minmax(0, 1fr);
}

.excel-examples__actions .btn {
  min-height: 52px;
  padding-inline: 18px;
  text-align: left;
}

.excel-examples__actions .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.excel-examples__status {
  min-height: 1.7em;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--excel-examples-update-text);
}

.excel-examples__status.is-error {
  color: var(--excel-examples-error);
}

/* 結果 */

.excel-examples__empty {
  margin-top: 16px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--mute);
  background: var(--paper);
  border: 1px dashed var(--excel-examples-field);
}

.excel-examples__empty[hidden] {
  display: none;
}

.excel-examples__bars {
  margin-top: 24px;
}

.excel-examples__bars[hidden] {
  display: none;
}

.excel-examples__bars-title {
  font-size: 14px;
  font-weight: 700;
}

.excel-examples__bars ul {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.excel-examples__bars li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.excel-examples__bar-track {
  display: block;
  height: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.excel-examples__bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.excel-examples__bar-value {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.excel-examples__totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.excel-examples__totals > div {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.excel-examples__totals dt {
  font-size: 13px;
  color: var(--mute);
}

.excel-examples__totals dd {
  margin: 2px 0 0;
  font-family: var(--font-en);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.excel-examples__files {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.excel-examples__files:empty {
  display: none;
}

.excel-examples__files li {
  --excel-examples-base: var(--paper);

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--paper);
  border: 1px solid var(--line);
}

.excel-examples__file-tag {
  padding: 0 5px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--paper);
  background: var(--ink);
}

.excel-examples__file-name {
  overflow-wrap: anywhere;
}

.excel-examples__record {
  margin: 14px 0 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.excel-examples__record > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
}

.excel-examples__record > div + div {
  border-top: 1px solid var(--line);
}

.excel-examples__record dt {
  font-size: 13px;
  color: var(--mute);
}

.excel-examples__record dd {
  margin: 0;
  font-weight: 700;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.excel-examples__ledger {
  margin-top: 32px;
}

.excel-examples__note {
  grid-column: 1 / -1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mute);
}

/* 更新箇所:水色の背景が短く残って消える(合計0.55秒) */
.excel-examples tr.is-updated > th,
.excel-examples tr.is-updated > td,
.excel-examples li.is-updated,
.excel-examples dd.is-updated,
.excel-examples__record dd.is-updated {
  animation: excel-examples-update 0.55s ease-out;
}

@keyframes excel-examples-update {
  0%,
  45% {
    background-color: var(--excel-examples-update);
  }

  100% {
    background-color: var(--excel-examples-base, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .excel-examples tr.is-updated > th,
  .excel-examples tr.is-updated > td,
  .excel-examples li.is-updated,
  .excel-examples dd.is-updated {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .excel-examples__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .excel-examples {
    display: block;
  }

  .excel-examples__noscript,
  .excel-examples__list {
    margin-top: 48px;
  }

  .excel-examples__item-head {
    display: block;
  }

  .excel-examples__desc {
    margin-top: 14px;
  }

  .excel-examples__panel {
    display: block;
  }

  .excel-examples__source {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .excel-examples__note {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .excel-examples__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .excel-examples__source,
  .excel-examples__result {
    padding: 20px 16px;
  }

  .excel-examples__bars li {
    grid-template-columns: 52px minmax(0, 1fr) 84px;
    gap: 8px;
  }

  .excel-examples__record > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

.service-order-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: clamp(56px, 8vw, 110px) max(24px, calc((100% - 1100px) / 2));
  background: #eff5f6;
}
.service-order-demo__intro h2 {
  margin: 0;
  color: #102a34;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}
.service-order-demo__intro p {
  max-width: 42rem;
  margin: 16px 0 0;
}
.order-preview {
  display: grid;
  gap: 24px;
}

.order-preview__card {
  min-width: 0;
  padding: clamp(10px, 1.25vw, 14px);
  border: 1px solid #c9dce0;
  border-radius: 12px;
  background: #fff;
  color: #102a34;
}

.order-preview__card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.order-preview table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.order-preview__input-table th,
.order-preview__input-table td {
  padding: 4px clamp(6px, 1.2vw, 12px);
  border: 1px solid #c9dce0;
  overflow-wrap: anywhere;
}

.order-preview__input-table th {
  background: #f0f5f6;
}

.order-preview__input-table label span {
  display: block;
  color: #155465;
  font-size: .875rem;
}

@media (min-width: 761px) {
  .order-preview__input-table label span {
    display: inline-block;
    margin-inline-start: 8px;
  }
}

.order-preview__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.order-preview__controls p {
  margin: 0;
}

.order-preview input {
  padding: 8px 10px;
  min-height: 44px;
  border: 1px solid #50818a;
  border-radius: 6px;
  color: inherit;
  font: inherit;
  width: 4.5rem;
  max-width: 100%;
  background: #e8f8ff;
}

.order-preview__outputs h3 {
  margin: 0 0 12px;
}

.order-preview__outputs h3 span {
  color: #155465;
}

.order-preview__sheets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.order-preview__sheet {
  min-width: 0;
  padding: 16px;
  border: 1px solid #c9dce0;
  border-top: 4px solid #357561;
  border-radius: 8px;
  background: #f3faf7;
}

.order-preview__sheet--invoice {
  border-color: #466bab;
  background: #f2f6ff;
}

.order-preview__sheet--sales {
  border-color: #826125;
  background: #fffbf1;
}

.order-preview__sheet h4 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.order-preview__sheet dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
}

.order-preview__sheet dd {
  margin: 0;
}

.order-preview__sheet table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.order-preview__sheet th,
.order-preview__sheet td {
  padding: 6px;
  border: 1px solid #d9ceb8;
}

.order-preview__sheet mark {
  padding: 2px 4px;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.order-preview__sheet mark.is-updated {
  background: #ffe79a;
}

.order-preview__note {
  margin: 0;
  font-size: .875rem;
}

@media (max-width: 760px) {
  .order-preview__sheets {
    grid-template-columns: minmax(0, 1fr);
  }
}

.order-preview__excel {
  padding: 12px 16px;
  border: 1px solid #c9dce0;
  border-radius: 8px;
  background: #fff;
}

.order-preview__excel summary {
  cursor: pointer;
  font-weight: 700;
}

.order-preview__excel figure {
  max-width: 49rem;
  margin: 16px auto 0;
}

.order-preview__excel img {
  display: block;
  width: 100%;
  height: auto;
}

.order-preview__excel figcaption {
  margin-top: 8px;
  font-size: .875rem;
}

.service-order-demo .arrow-link {
  justify-self: start;
}

.order-preview__comparison {
  max-width: 60rem;
  margin: 24px auto 0;
}

.order-preview__comparison section {
  margin-top: 18px;
}

.order-preview__comparison h4 {
  margin: 0 0 6px;
}

.order-preview__comparison-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-preview__comparison-pair figure {
  margin: 0;
}

.order-preview__comparison-pair figcaption {
  margin: 0 0 6px;
}

.order-preview__comparison-pair img {
  border: 1px solid #c9dce0;
}

.order-preview__selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.order-preview__selection select {
  min-height: 44px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #50818a;
  border-radius: 6px;
  background: #e8f8ff;
  color: inherit;
  font: inherit;
}

.excel-case__hero,
.excel-case__details {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding: clamp(48px, 7vw, 96px) max(24px, calc((100% - 1100px) / 2));
}

.excel-case__hero {
  padding-top: calc(var(--header-height) + 28px);
}

.excel-case__label {
  margin-top: 16px;
  color: var(--mute);
}

.excel-case__hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
}

.excel-case__details h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  line-height: 1.35;
}

.excel-case__details h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.excel-case__hero > p,
.excel-case__details p {
  max-width: 43rem;
  line-height: 1.85;
}

.excel-case__details > section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  width: 100%;
}

.service-production-cost {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(44px, 7vw, 96px) var(--gutter);
  background: #eff5f6;
}

.service-production-cost h2 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  line-height: 1.25;
}

.service-production-cost p {
  max-width: 42rem;
  line-height: 1.85;
}

.service-production-cost__examples {
  display: grid;
  grid-column: 1 / -1;
  gap: 24px;
  padding-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.service-production-cost__examples h3 {
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.3;
}

.service-production-cost__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-production-cost__option {
  padding: clamp(18px, 3vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
}

.service-production-cost__option h4 {
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.service-production-cost p + p,
.service-production-cost .arrow-link {
  margin-top: 16px;
}

:is(#excel-to-web, #company-video) .arrow-link {
  display: flex;
  width: fit-content;
}

@media (max-width: 720px) {
  .service-production-cost,
  .service-production-cost__options {
    grid-template-columns: minmax(0, 1fr);
  }
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
