/* eletus-brand.css — 共通基盤。ブランドの装飾ではなく、資料・画面・整列で信頼感を出す */

:root {
  --eb-bg: color-mix(in srgb, var(--color-paper) 30%, #fff);
  --eb-surface: color-mix(in srgb, var(--color-ink) 4%, #fff);
  --eb-line: color-mix(in srgb, var(--color-ink) 16%, #fff);
  --eb-muted: color-mix(in srgb, var(--color-ink) 74%, #fff);
  --eb-accent: color-mix(in srgb, var(--color-teal) 78%, var(--color-ink));
  --eb-radius: 4px;
  --eb-admin: 0px;
  /* WP管理バー分。管理バーが固定の幅だけ加算 */
  --eb-gap: 1rem;
  /* アンカー見出しとstickyバーの間 */
  --eb-anchor: calc(var(--header-h, 4rem) + var(--eb-admin) + var(--eb-gap));
}

:root:has(body.admin-bar) {
  --eb-admin: 32px;
}

@media (max-width: 782px) {
  :root:has(body.admin-bar) {
    --eb-admin: 46px;
  }
}

@media (max-width: 600px) {
  :root:has(body.admin-bar) {
    --eb-admin: 0px;
  }
}

html {
  scroll-padding-top: var(--eb-anchor);
}

section[id],
article[id] {
  scroll-margin-top: 0;
}

body {
  background: var(--eb-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.75;
}

body:lang(ja) {
  font-family: var(--font-ja-sans);
  line-height: 1.9;
}

body:lang(th) {
  line-height: 1.9;
}

main a:focus-visible {
  outline: 2px solid var(--eb-accent);
  outline-offset: 2px;
}

/* ヘッダー・フッター: 実線1pxと正式シンボル */

.site-header {
  background: var(--eb-bg);
  border-bottom: 1px solid var(--eb-line);
  box-shadow: none;
  backdrop-filter: none;
}

.site-footer {
  background: var(--eb-surface);
  color: var(--color-ink);
  border-top: 1px solid var(--eb-line);
}

.site-footer a {
  color: inherit;
}

.site-header .wordmark,
.site-footer .wordmark {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: var(--color-ink);
  font-family: var(--font-wordmark, Inter, sans-serif);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}

.site-header .wordmark::before,
.site-footer .wordmark::before,
.eletus-hero-heading::before {
  content: "";
  flex: none;
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  background: url("../brand/eletus-symbol.svg") center / contain no-repeat;
}

.eletus-hero-heading::before {
  width: 2.5rem;
  height: 2.5rem;
  margin-block-end: 1.25rem;
}

/* 共通の見出し造形 */

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--eb-accent);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.5;
  text-transform: none;
}

.eyebrow:lang(th) {
  letter-spacing: 0;
}

.section-title {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-wrap: balance;
}

.section-title:lang(ja) {
  font-family: var(--font-ja-sans);
}

/* 下層導入(サービス・会社・理念共通)。筆文字は使わない */

.page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.75rem, 4vw, 3rem);
  background: var(--eb-bg);
  border-bottom: 1px solid var(--eb-line);
}

.page-intro .page-title {
  max-width: 48rem;
  margin: 0 0 1rem;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-shadow: none;
  transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-intro .page-title:lang(ja) {
  font-family: var(--font-ja-sans);
}

.page-intro .page-title:lang(vi) {
  line-height: 1.4;
}

.page-intro .page-title:lang(th) {
  line-height: 1.5;
}

.page-intro .page-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--eb-muted);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.85;
  text-wrap: pretty;
}

/* 等高線は小さな右上アクセント。画像が無くても成立し、本文の下へ入れない */

.page-intro::after,
.eletus-home-hero::after {
  content: "";
  display: none;
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  z-index: -1;
  width: clamp(9rem, 18vw, 16rem);
  height: min(100%, 10rem);
  opacity: .24;
  pointer-events: none;
  background: url("../brand/eletus-contour-field.webp") right top / contain no-repeat;
}

@media (min-width: 56rem) {
  .page-intro::after {
    display: block;
  }
}

@media (min-width: 70rem) {
  .eletus-home-hero::after {
    display: block;
  }
}

/* Claude's editorial index: a reading area and a compact navigation panel. */
.eletus-indexed-intro > .container {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(calc(100% - clamp(1.5rem, 5vw, 4.5rem)), calc(var(--container) + var(--gutter)));
  padding: clamp(1.1rem, 3.75vw, 3rem);
  border: 1px solid #dbd6c9;
  border-radius: .625rem;
  background: #efebe1;
}

.eletus-indexed-intro-copy {
  min-inline-size: 0;
}

.eletus-page-index {
  --eletus-index-accent: #c6e0a4;
  min-inline-size: 0;
  margin: 0;
  overflow: hidden;
  border-radius: .4rem;
  background: #163c33;
  color: #fcfaf2;
  box-shadow: 0 1.125rem 2rem -1.25rem #173a31b3;
}

.eletus-page-index > .eletus-page-index-title {
  margin: 0;
  padding: 1rem 1.15rem .85rem;
  color: var(--eletus-index-accent);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.eletus-page-index ul,
.site-header .eletus-primary-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .eletus-primary-menu {
  display: flex;
  flex-wrap: inherit;
  flex-direction: inherit;
  gap: inherit;
  align-items: inherit;
}

.eletus-page-index li {
  margin: 0;
  border-block-start: 1px solid #fcfaf230;
}

.eletus-page-index li > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  min-block-size: 3.125rem;
  padding: .65rem 1.15rem;
  color: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.eletus-page-index li > a::after {
  content: "";
  inline-size: .55rem;
  block-size: .55rem;
  margin-inline-end: .2rem;
  border: solid var(--eletus-index-accent);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.13rem) rotate(45deg);
  transition: transform .2s ease;
}

.eletus-page-index li > a:hover,
.eletus-page-index li > a[aria-current="location"] {
  background: #fcfaf21a;
  box-shadow: inset .2rem 0 0 var(--eletus-index-accent);
}

.eletus-page-index li > a:hover::after {
  transform: translateY(.12rem) rotate(45deg);
}

.eletus-page-index li > a:focus-visible {
  outline: 2px solid var(--eletus-index-accent);
  outline-offset: -3px;
}

/* Chapter markup from older, manually edited pages remains in the document flow. */
.eletus-philosophy-chapter-nav,
.eletus-service-navigation {
  position: static;
  margin: 0;
}

.eletus-philosophy-chapters,
.eletus-service-index.anchor-nav {
  display: block;
  max-width: 33rem;
  padding: 0;
  overflow: visible;
}

.eletus-philosophy-chapters .eletus-philosophy-chapter,
.eletus-service-index.anchor-nav a {
  margin: 0;
}

.eletus-philosophy-chapters a,
.eletus-service-index.anchor-nav a {
  display: block;
  min-block-size: 2.75rem;
  padding: .65rem .25rem;
  border: 0;
  border-block-start: 1px solid var(--eb-line);
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 56rem) {
  .eletus-indexed-intro > .container {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .78fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eletus-page-index li > a,
  .eletus-page-index li > a::after {
    transition: none;
  }
}

@media (forced-colors: active) {
  .eletus-page-index {
    border: 1px solid CanvasText;
  }
  .eletus-page-index li > a[aria-current="location"] {
    border-inline-start: .2rem solid Highlight;
  }
}

.eletus-latest-heading {
  display: grid;
  justify-items: start;
  gap: .85rem;
  align-self: start;
  margin-block-end: 1.25rem;
}

.eletus-latest-heading > * {
  margin: 0;
}

.eletus-latest-heading .section-title {
  font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.25rem);
}

.eletus-activity-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-inline-size: 0;
  margin: 0;
  border: 1px solid var(--eb-line);
  border-block-start: 2px solid var(--eb-accent);
  background: var(--color-paper-raised);
}

.eletus-activity-list > .activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: .25rem 1.25rem;
  margin: 0;
  padding: clamp(.9rem, 1.6vw, 1.25rem) clamp(.9rem, 2.2vw, 1.6rem);
  border: 0;
}

.eletus-activity-list > .activity-row + .activity-row {
  border-block-start: 1px solid var(--eb-line);
}

.eletus-activity-list > .activity-row > * {
  grid-column: auto;
  margin: 0;
  min-inline-size: 0;
}

.eletus-activity-list .eletus-activity-title {
  font-size: clamp(1rem, .9rem + .48vw, 1.25rem);
  line-height: 1.6;
}

.eletus-activity-title a {
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

.eletus-activity-title a:hover {
  color: var(--color-ink);
}

.eletus-activity-source {
  font-size: .875rem;
  color: var(--eb-muted);
}

@media (min-width: 48rem) {
  .eletus-activity-list > .activity-row {
    grid-template-columns: minmax(6rem, auto) minmax(0, 1fr);
  }
  .eletus-activity-list > .activity-row > .eletus-activity-source {
    grid-column: 2;
  }
}

@media (min-width: 64rem) {
  #activities > .container {
    grid-template-rows: auto auto auto;
    align-items: start;
  }
  #activities > .container > .eletus-latest-heading {
    grid-column: 1;
    grid-row: 2;
  }
  #activities > .container > .eletus-activity-list {
    grid-column: 2;
    grid-row: 2;
  }
}

/* 製品プレビュー(トップとサービス共通)。原画像は切り抜かず、線と余白で整列 */

.eletus-product-preview {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius);
  box-shadow: 0 20px 40px -32px color-mix(in srgb, var(--color-ink) 45%, transparent);
}

.eletus-product-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.eletus-product-preview figcaption {
  padding: .75rem 1rem;
  border-top: 1px solid var(--eb-line);
  background: var(--eb-surface);
  color: var(--eb-muted);
  font-size: .8125rem;
  line-height: 1.7;
}

/* Claude's five-step cycle. Arrow tracks are independent of the reading area. */
.eletus-asagami-workflow {
  --eletus-workflow-ink: #183a34;
  --eletus-workflow-accent: #cce7ac;
  --eletus-workflow-gap: 1.2rem;
  --eletus-workflow-return: clamp(1rem, 4vw, 1.65rem);
  margin-block: clamp(2.75rem, 6vw, 5rem);
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid #cdd9cf;
  border-radius: .65rem;
  background: #edf2ed;
}

.eletus-asagami-workflow > .section-title {
  margin: 0 0 clamp(1rem, 2.4vw, 1.7rem);
  color: var(--eletus-workflow-ink);
  font-size: clamp(1.35rem, 1.08rem + 1.35vw, 2rem);
}

.eletus-asagami-workflow .diagram {
  position: relative;
  margin: 0;
  padding: 0 var(--eletus-workflow-return) 0 0;
}

.eletus-asagami-workflow .diagram .diagram-steps {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-columns: auto;
  grid-auto-flow: row;
  gap: var(--eletus-workflow-gap);
  counter-reset: eletus-training-step;
}

.eletus-asagami-workflow .diagram .diagram-step {
  min-inline-size: 0;
  padding: clamp(.85rem, 1.75vw, 1.25rem);
  border: 1px solid #cbd6ce;
  border-radius: .4rem;
  background: #fcfdfc;
  color: #20352f;
  counter-increment: eletus-training-step;
  overflow-wrap: anywhere;
}

.eletus-asagami-workflow .diagram .diagram-step:is(:first-child, :last-child) {
  border-color: var(--eletus-workflow-ink);
  background: var(--eletus-workflow-ink);
  color: #fcfaf2;
}

.eletus-asagami-workflow .diagram .diagram-step::before {
  content: counter(eletus-training-step, decimal-leading-zero);
  position: static;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-block-end: .65rem;
  border-radius: 50%;
  background: #dce8df;
  color: var(--eletus-workflow-ink);
  font: 700 .85rem/1 var(--font-label);
}

.eletus-asagami-workflow .diagram .diagram-step:is(:first-child, :last-child)::before {
  background: var(--eletus-workflow-accent);
}

.eletus-asagami-workflow .diagram .diagram-step h4 {
  margin-block: 0 .45rem;
  color: inherit;
  font-family: var(--font-body);
  font-size: clamp(.99rem, .91rem + .42vw, 1.16rem);
  line-height: 1.5;
}

.eletus-asagami-workflow .diagram .diagram-step h4:lang(ja) {
  word-break: auto-phrase;
}

.eletus-asagami-workflow .diagram .diagram-step p {
  margin: 0;
  color: inherit;
  font-size: .9375rem;
  line-height: 1.65;
}

.eletus-asagami-workflow .diagram .diagram-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 100% auto auto 50%;
  width: .8rem;
  height: var(--eletus-workflow-gap);
  border: 0;
  background: #3a6e58;
  clip-path: polygon(42% 12%, 58% 12%, 58% 55%, 95% 55%, 50% 88%, 5% 55%, 42% 55%);
  transform: translateX(-50%);
}

.eletus-asagami-workflow .diagram .diagram-step:last-child::after {
  content: none;
}

.eletus-asagami-workflow .diagram::after {
  content: "";
  position: absolute;
  inset: 1.65rem 1px 1.65rem auto;
  width: calc(var(--eletus-workflow-return) - .25rem);
  border: 1px solid #769484;
  border-inline-start: 0;
  border-radius: 0 .5rem .5rem 0;
}

.eletus-asagami-workflow .diagram::before {
  content: "";
  position: absolute;
  inset: 1.4rem calc(var(--eletus-workflow-return) - .35rem) auto auto;
  width: .42rem;
  height: .5rem;
  background: #597c6a;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.eletus-asagami-workflow .eletus-workflow-feedback {
  margin: .8rem 0 0;
  color: #35614e;
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
}

@media (min-width: 72rem) {
  .eletus-asagami-workflow .diagram {
    --eletus-workflow-column-center: calc((100% - 4 * var(--eletus-workflow-gap)) / 10);
    padding: 0 0 1.25rem;
  }

  .eletus-asagami-workflow .diagram .diagram-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .eletus-asagami-workflow .diagram .diagram-step:not(:last-child)::after {
    inset: 1.5rem auto auto 100%;
    width: var(--eletus-workflow-gap);
    height: .8rem;
    clip-path: polygon(12% 42%, 55% 42%, 55% 5%, 88% 50%, 55% 95%, 55% 58%, 12% 58%);
    transform: none;
  }

  .eletus-asagami-workflow .diagram::after {
    inset: auto var(--eletus-workflow-column-center) 0;
    width: auto;
    height: .95rem;
    border-width: 0 1px 1px;
    border-radius: 0 0 .45rem .45rem;
  }

  .eletus-asagami-workflow .diagram::before {
    inset: auto auto .7rem calc(var(--eletus-workflow-column-center) - .245rem);
    width: .55rem;
    height: .46rem;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }
}

@media (forced-colors: active) {
  .eletus-asagami-workflow .diagram::before,
  .eletus-asagami-workflow .diagram .diagram-step:not(:last-child)::after {
    background: CanvasText;
  }
}


@media (min-width: 61rem) {
  .eletus-product-detail.eletus-asagami-detail {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* トップ: 左に見出しと説明、右に実画面。墨はごく薄いテクスチャのみ */

.eletus-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4.5rem);
  background: var(--eb-bg);
  color: var(--color-ink);
  border-bottom: 1px solid var(--eb-line);
}

.eletus-home-hero .eletus-ink-panel {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  border: 0;
  box-shadow: none;
  transform: none;
  clip-path: none;
  filter: none;
  animation: none;
  background: url("../textures/teal-ink-sweep.webp") left top / min(64rem, 100%) auto no-repeat;
  opacity: .12;
  pointer-events: none;
}

.eletus-home-hero .eletus-ink-panel::before,
.eletus-home-hero .eletus-ink-panel::after {
  content: none;
}

.eletus-home-hero .eletus-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.75rem;
}

.eletus-hero-title {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.eletus-hero-title:lang(th) {
  line-height: 1.45;
}

.eletus-hero-copy {
  max-width: 36rem;
}

.eletus-hero-copy p {
  color: var(--eb-muted);
  line-height: 1.85;
}

.eletus-hero-grid > .eletus-product-preview {
  max-width: 44rem;
}

@media (min-width: 70rem) {
  .eletus-home-hero .eletus-hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 3rem);
    align-content: center;
  }
  .eletus-home-hero .eletus-hero-grid > .eletus-hero-heading {
    grid-column: 1 / span 6;
    grid-row: 1;
  }
  .eletus-home-hero .eletus-hero-grid > .eletus-hero-copy {
    grid-column: 1 / span 5;
    grid-row: 2;
  }
  .eletus-home-hero .eletus-hero-grid > .eletus-product-preview {
    grid-column: 7 / -1;
    grid-row: 1 / span 2;
    align-self: center;
    max-width: none;
  }
}
