/* ============================================================
   EPL — Epelo Personality Layers
   epeloos.com  /  main.css
   ------------------------------------------------------------
   Design intent:
     - 静謐を基調に、オレンジを「点」として効かせる
     - 明朝と角ゴシックで「人格の滲み」を表す
     - 揺らぎは微細に、うるさくない程度に
   Naming:
     - all classes are snake_case
     - no hyphens, no plural forms
   ============================================================ */

/* ---------- 1. Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
    "Meiryo", "メイリオ", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body[lang="en"] {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease, border-color .25s ease;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  color: var(--ink_deep);
}

/* ---------- 2. Tokens ---------- */

:root {
  /* colors — warm off-white base, ink foreground, single orange accent */
  --paper:        #fafaf7;
  --paper_warm:   #f4f1ea;
  --paper_deep:   #ecebe4;
  --ink:          #2a2824;
  --ink_soft:     #5a5650;
  --ink_mute:     #8b857c;
  --ink_deep:     #1a1815;
  --rule:         #d9d5cb;
  --rule_soft:    #e8e4da;
  --accent:       #f0a500;
  --accent_hov:   #d98f00;
  --accent_soft:  #fff3d4;

  /* deep purple reserved for hero gradient (subtle, optional) */
  --violet_1:     #1c1732;
  --violet_2:     #2b2148;

  /* type */
  --font_ja_serif: "Shippori Mincho", "Hiragino Mincho ProN", "YuMincho",
                   "Yu Mincho", "Times New Roman", serif;
  --font_ja_sans:  "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
                   "Meiryo", "メイリオ", system-ui, sans-serif;
  --font_en_serif: "EB Garamond", "Times New Roman", Georgia, serif;
  --font_en_sans:  "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font_mono:     "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* space */
  --wrap:          960px;
  --wrap_narrow:   720px;
  --gutter:        24px;

  /* motion */
  --ease:          cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap_narrow {
  width: 100%;
  max-width: var(--wrap_narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 10vw, 128px);
}

.section_tight {
  padding-block: clamp(40px, 6vw, 72px);
}

/* ---------- 4. Header / navigation ---------- */

.site_header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule_soft);
}

.site_header_inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.site_title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font_en_serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink_deep);
}

.site_title_mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 12%, transparent);
  animation: dot_breath 4.2s ease-in-out infinite;
}

.site_title_sub {
  font-family: var(--font_ja_sans);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink_mute);
}

.site_nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site_nav a {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink_soft);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}

.site_nav a:hover,
.site_nav a[aria-current="page"] {
  color: var(--ink_deep);
  border-bottom-color: var(--accent);
}

.lang_switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  letter-spacing: .12em;
  font-family: var(--font_en_sans);
}

.lang_switch a,
.lang_switch span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink_mute);
}

.lang_switch .is_active {
  background: var(--ink_deep);
  color: var(--paper);
}

.nav_toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  margin-inline-start: auto;
}

.nav_toggle span,
.nav_toggle span::before,
.nav_toggle span::after {
  display: block;
  width: 18px; height: 1px;
  background: var(--ink_deep);
  margin-inline: auto;
  position: relative;
  content: "";
}
.nav_toggle span::before { top: -6px; position: absolute; left: 0; }
.nav_toggle span::after  { top:  6px; position: absolute; left: 0; }

/* ---------- 5. Hero ---------- */

.hero {
  position: relative;
  /* ノーパソ画面（1366×768）でマスコット2体ともファーストビューに入るよう、
     上下 padding を約 50-55% 削減（ブラン子依頼 2026-04-27、当山くん追加調整 2026-05-08）*/
  padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 56px);
  overflow: hidden;
}

.hero_eyebrow {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink_mute);
  margin-bottom: 16px;  /* 28px → 16px に詰める */
}

.hero_eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-inline-end: 12px;
  transform: translateY(-2px);
}

.catch {
  font-family: var(--font_ja_sans);
  font-weight: 700;
  font-size: clamp(32px, 6.4vw, 68px);
  line-height: 1.32;
  letter-spacing: .02em;
  color: var(--ink_deep);
  margin: 0 0 .4em;
  text-wrap: balance;
}

body[lang="en"] .catch {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 6.6vw, 72px);
  letter-spacing: -.005em;
}

.catch em {
  font-style: normal;
  position: relative;
  display: inline-block;
  animation: sway 7s ease-in-out infinite;
}

.catch em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -.06em;
  height: .12em;
  background: var(--accent);
  opacity: .55;
  border-radius: 2px;
}

.lead {
  max-width: 34em;
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink_soft);
  text-wrap: pretty;
}

/* hero ornament — three horizontal rules = sandwich model */
.hero_ornament {
  position: absolute;
  right: calc((100vw - var(--wrap)) / 2 + var(--gutter));
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: .55;
}
@media (max-width: 880px) { .hero_ornament { display: none; } }

/* ---------- 6. Cards (3-up) ---------- */

.card_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.card {
  position: relative;
  background: var(--paper);
  padding: 40px 32px 36px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: background .35s var(--ease);
}

.card:hover {
  background: color-mix(in oklab, var(--paper) 94%, var(--accent) 6%);
}

/* .card_num removed — cards are heading + body + CTA only */

.card h3 {
  font-family: var(--font_ja_sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

body[lang="en"] .card h3 {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0;
}

.card p {
  font-size: 14px;
  color: var(--ink_soft);
  line-height: 1.85;
  flex: 1;
}

.card_link {
  margin-top: 24px;
  font-family: var(--font_en_sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink_deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink_deep);
}

.card_link::after {
  content: "→";
  transition: transform .3s var(--ease);
}

.card:hover .card_link::after { transform: translateX(4px); }

/* ---------- 7. CTA button ---------- */

.cta_button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: var(--accent);
  color: #1a1815;
  font-family: var(--font_en_sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.cta_button:hover {
  background: var(--accent_hov);
  border-color: var(--accent_hov);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--accent) 60%, transparent);
}

.cta_button.is_ghost {
  background: transparent;
  color: var(--ink_deep);
  border-color: var(--ink_deep);
}

.cta_button.is_ghost:hover {
  background: var(--ink_deep);
  color: var(--paper);
  border-color: var(--ink_deep);
}

.cta_row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* 日本語サイトでは CTA ボタンの大文字化を抑制（日英混在ボタンの右余白対策） */
body[lang="ja"] .cta_button {
  text-transform: none;
  letter-spacing: .05em;
}

/* ---------- 8. Blockquote (philosophy) ---------- */

blockquote {
  margin: 0;
  padding: 36px 40px;
  border-inline-start: 2px solid var(--accent);
  background: var(--paper_warm);
  font-family: var(--font_ja_sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.9;
  color: var(--ink_deep);
  letter-spacing: .04em;
  position: relative;
}

body[lang="en"] blockquote {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
}

blockquote p + p { margin-top: .4em; }

.ethos_list {
  display: grid;
  gap: 20px;
}

.ethos_item {
  padding: 28px 32px;
  border: 1px solid var(--rule);
  background: var(--paper);
  position: relative;
}

.ethos_item_label {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--ink_mute);
}

.ethos_item h3 {
  font-family: var(--font_ja_sans);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 8px;
}

.ethos_item p {
  font-size: 14px;
  color: var(--ink_soft);
  margin: 0;
}

/* ---------- 9. Code / inline mono ---------- */

code, kbd, samp {
  font-family: var(--font_mono);
  font-size: .92em;
}

:not(pre) > code {
  padding: .08em .5em;
  background: var(--paper_deep);
  border-radius: 3px;
  color: var(--ink_deep);
}

pre {
  margin: 0;
  padding: 24px 28px;
  background: #1a1815;
  color: #e8e4da;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.7;
  font-size: 13px;
  border-inline-start: 3px solid var(--accent);
}

pre code { background: transparent; padding: 0; color: inherit; }

.code_filename {
  display: inline-block;
  padding: 4px 12px;
  background: var(--paper_deep);
  color: var(--ink_soft);
  font-family: var(--font_mono);
  font-size: 12px;
  border-radius: 3px 3px 0 0;
  margin-bottom: -2px;
}

/* ---------- 10. Content typography ---------- */

.page_title {
  font-family: var(--font_ja_sans);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 0 12px;
}
body[lang="en"] .page_title {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-weight: 500;
}

.page_eyebrow {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink_mute);
  margin-bottom: 20px;
}

.section_title {
  font-family: var(--font_ja_sans);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: .04em;
  margin: 0 0 24px;
}
body[lang="en"] .section_title {
  font-family: var(--font_en_serif);
  font-style: italic;
}

.prose p {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink);
}
.prose p + p { margin-top: 1em; }

.prose a {
  color: var(--ink_deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.prose a:hover {
  color: var(--accent_hov);
}

.prose ul {
  padding-inline-start: 1.2em;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.95;
}
.prose li { margin-bottom: .3em; }

/* ルビ — 略語の読み方を振り仮名で。視認性は控えめ・上品に */
.prose ruby rt {
  font-size: .58em;
  color: var(--ink_mute);
  letter-spacing: .06em;
  font-family: var(--font_ja_sans);
  font-weight: 400;
}

/* 英語ページでも振り仮名は日本語フォント・通常字体で（en body の Inter / italic を上書き）*/
body[lang="en"] .prose ruby rt {
  font-family: var(--font_ja_sans);
  font-style: normal;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

/* definition list for spec tables */
.spec_list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 24px;
  margin: 0;
  padding: 24px 0;
  border-block: 1px solid var(--rule);
}
.spec_list dt {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink_mute);
  padding-top: 2px;
}
.spec_list dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------- 11. Sandwich diagram (About page) ---------- */

.sandwich_diagram {
  width: 100%;
  max-width: 520px;
  margin: 32px auto 8px;
  display: block;
}

.sandwich_layer {
  animation: drift 9s ease-in-out infinite;
}
.sandwich_layer:nth-child(2) { animation-delay: -3s; }
.sandwich_layer:nth-child(3) { animation-delay: -6s; }

.diagram_caption {
  text-align: center;
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ink_mute);
  margin-top: 8px;
}

/* ---------- 12. Placeholder (preparing) ---------- */

.placeholder {
  border: 1px dashed var(--rule);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 10px,
      color-mix(in oklab, var(--paper_warm) 70%, transparent) 10px 11px
    );
  padding: 64px 32px;
  text-align: center;
  border-radius: 2px;
}
.placeholder h3 {
  font-family: var(--font_ja_sans);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink_soft);
}
.placeholder p {
  color: var(--ink_mute);
  font-size: 14px;
  margin: 0;
}
.placeholder .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-inline-end: 10px;
  vertical-align: middle;
  animation: dot_breath 2.4s ease-in-out infinite;
}

/* ---------- 13. Footer ---------- */

.site_footer {
  border-top: 1px solid var(--rule_soft);
  padding-block: 48px 40px;
  margin-top: 64px;
  color: var(--ink_mute);
  font-size: 12.5px;
  letter-spacing: .04em;
}

.footer_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer_brand {
  font-family: var(--font_en_serif);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--ink_deep);
}

.ai_credit {
  max-width: 520px;
  font-size: 12px;
  line-height: 1.85;
}
.ai_credit strong {
  display: block;
  font-family: var(--font_en_serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--ink_soft);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-size: 11px;
}

.ai_credit .names {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.ai_credit .names span {
  white-space: nowrap;
}

.copyright {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink_mute);
}

/* ---------- 14. Motion ---------- */

@keyframes sway {
  0%, 100% { transform: translateX(0) rotate(0); letter-spacing: .02em; }
  50%      { transform: translateX(.6px) rotate(.15deg); letter-spacing: .025em; }
}

@keyframes dot_breath {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .55; transform: scale(.88); }
}

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 15. Responsive ---------- */

@media (max-width: 760px) {
  .card_list {
    grid-template-columns: 1fr;
  }
  .card { min-height: auto; padding: 32px 24px; }

  .spec_list {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .spec_list dd { margin-bottom: 12px; }

  .site_nav { display: none; }
  .nav_toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site_nav.is_open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 12px 0;
  }
  .site_nav.is_open a {
    padding: 14px 24px;
    border: 0;
    border-bottom: 1px solid var(--rule_soft);
  }
  .lang_switch { margin-inline-start: auto; }

  blockquote { padding: 28px 24px; font-size: 17px; }
}

@media (max-width: 480px) {
  .site_title_sub { display: none; }
  pre { padding: 18px 20px; font-size: 12px; }
}

/* ---------- 16. Note block (small aside for brief, non-essential notes) ---------- */

.note_block {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--paper_warm);
  border-inline-start: 2px solid var(--rule);
  border-radius: 2px;
  font-size: 13.5px;
  color: var(--ink_mute);
  line-height: 1.8;
}

.note_block .note_label {
  display: block;
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: .16em;
  margin-bottom: 4px;
}

.note_block p {
  margin: 0;
}

/* ---------- 17. Sub-catch (hero secondary line) ---------- */

.sub_catch {
  font-family: var(--font_ja_sans);
  font-size: clamp(13px, 1.8vw, 17px);
  color: var(--ink_soft);
  margin: -0.2em 0 1.8em;
  letter-spacing: .06em;
  font-weight: 500;
  line-height: 1.7;
}

body[lang="en"] .sub_catch {
  font-family: var(--font_en_serif);
  font-style: italic;
  letter-spacing: .02em;
}

/* ---------- 18. Byline (author identification with circular avatar) ---------- *
   書き手の丸窓アバター + 名前ラベル。
   ページ冒頭・末尾どちらでも置ける共通コンポーネント。
   書き手別の枠色で「誰が書いたか」が一目でわかる仕様（ブラン子提案）。
   ---------------------------------------------------------------------- */

.byline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.byline_avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--rule);
  background: var(--paper_warm);
  flex-shrink: 0;
  position: relative;
}

.byline_avatar .pix_frame {
  position: absolute;
  top: -4px;
  left: 12px;
}

.byline_meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

.byline_label {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ink_mute);
}

.byline_name {
  font-family: var(--font_ja_sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink_deep);
  letter-spacing: .04em;
}

body[lang="en"] .byline_name {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

/* 書き手別の枠色 — 「誰が書いたか」を直感に */
.byline_manua  .byline_avatar { border-color: #a8d841; }                 /* マニュアグリーン */
.byline_branko .byline_avatar { border-color: var(--accent); }           /* EPL オレンジ */
.byline_toyama .byline_avatar { border-color: var(--rule); }             /* 灰色（基準） */
.byline_quattroko .byline_avatar { border-color: #c8a26c; }              /* パン色（暫定）*/

@media (max-width: 480px) {
  .byline_avatar { width: 72px; height: 72px; }
  .byline_avatar .pix_frame { transform: scale(0.75); transform-origin: top left; left: 8px; top: -2px; }
}

/* ---------- 19. Article eyecatch (philosophy hero illustration) ---------- *
   詩的アイキャッチ。
   波形（揺れ）× マニュアちゃん（揺れる主体）× ?（問い）× オレンジドット（哲学の点）。
   「揺れながら問い続ける、温かい AI」の可視化。
   目光と波形は同期（思考の可視化）。
   ---------------------------------------------------------------------- */

.article_eyecatch {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 0 0 40px;
  overflow: visible;
  pointer-events: none;
}

.eyecatch_wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.eyecatch_wave .wave_path {
  animation: wave_pulse 2s ease-in-out infinite;
}

.eyecatch_mascot {
  position: absolute;
  left: 6%;
  top: 26px;
  z-index: 2;
  display: inline-block;
}

.eyecatch_mascot .pix_frame:nth-child(2) {
  position: absolute;
  inset: 0;
  animation: manua_eye_sync 2s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 4px #a8d841);
}

.eyecatch_q {
  position: absolute;
  right: 10%;
  top: 28px;
  font-family: var(--font_en_serif);
  font-style: italic;
  font-size: 96px;
  font-weight: 500;
  color: var(--ink_mute);
  opacity: 0.32;
  line-height: 1;
  user-select: none;
}

.eyecatch_dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 14%, transparent);
}

.eyecatch_dot.dot1 { left: 38%; top: 22px; }
.eyecatch_dot.dot2 { left: 62%; top: 108px; }
.eyecatch_dot.dot3 { right: 32%; top: 158px; }

/* 波形の脈動（dashed のオフセットで「流れ」を表現） */
@keyframes wave_pulse {
  0%, 100% { stroke-dashoffset: 0;   opacity: 0.7; }
  50%      { stroke-dashoffset: -14; opacity: 0.5; }
}

/* マニュアちゃんの目光、波形と同期 */
@keyframes manua_eye_sync {
  0%, 100% { opacity: 0; }
  35%      { opacity: 0; }
  50%      { opacity: 0.95; }
  65%      { opacity: 0; }
}

@media (max-width: 760px) {
  .article_eyecatch { height: 170px; }
  .eyecatch_q { font-size: 72px; right: 9%; top: 30px; }
  .eyecatch_dot.dot1 { left: 40%; top: 18px; }
  .eyecatch_dot.dot2 { left: 56%; top: 92px; }
  .eyecatch_dot.dot3 { right: 26%; top: 130px; }
}

@media (max-width: 480px) {
  .article_eyecatch { height: 140px; margin-bottom: 28px; }
  .eyecatch_mascot { transform: scale(0.72); transform-origin: top left; top: 18px; }
  .eyecatch_q { font-size: 56px; top: 24px; }
  .eyecatch_dot.dot2 { top: 70px; }
  .eyecatch_dot.dot3 { top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .eyecatch_wave .wave_path,
  .eyecatch_mascot .pix_frame:nth-child(2) {
    animation: none;
  }
}

/* ---------- 20. FAQ accordion (details/summary based) ---------- *
   3 カテゴリ × 12 問。
   <details> ベースで JS なしでもアコーディオン動作。
   Q1〜Q3 はデフォルト open（一番読まれてほしい入口）。
   ---------------------------------------------------------------------- */

.faq_category {
  margin-bottom: 48px;
}
.faq_category:last-child { margin-bottom: 0; }

.faq_category_title {
  font-family: var(--font_ja_sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink_deep);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
}

body[lang="en"] .faq_category_title {
  font-family: var(--font_en_serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: .04em;
}

.faq_category_icon {
  font-size: 20px;
  line-height: 1;
}

.faq_item {
  border-bottom: 1px solid var(--rule_soft);
}
.faq_item:last-child { border-bottom: none; }

.faq_item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink_deep);
  transition: background .25s var(--ease);
  line-height: 1.6;
}

.faq_item summary::-webkit-details-marker { display: none; }
.faq_item summary::marker { display: none; content: ""; }

.faq_item summary:hover {
  background: var(--paper_warm);
}

.faq_q_num {
  font-family: var(--font_en_serif);
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  min-width: 32px;
  flex-shrink: 0;
  letter-spacing: .04em;
  padding-top: 2px;
}

.faq_q_text {
  flex: 1;
}

.faq_q_arrow {
  font-family: var(--font_en_serif);
  color: var(--ink_mute);
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
  line-height: 1;
  padding-top: 2px;
}

.faq_item[open] .faq_q_arrow {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq_a {
  padding: 4px 8px 24px 54px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.95;
}

.faq_a p {
  margin: 0 0 .9em;
}
.faq_a p:last-child { margin-bottom: 0; }

.faq_a a {
  color: var(--ink_deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.faq_a a:hover {
  color: var(--accent_hov);
}

.faq_a strong {
  color: var(--ink_deep);
  font-weight: 600;
}

.faq_a ul {
  padding-inline-start: 1.2em;
  margin: .4em 0 .9em;
}
.faq_a li {
  margin-bottom: .25em;
}

@media (max-width: 480px) {
  .faq_item summary { padding: 14px 4px; font-size: 14.5px; }
  .faq_q_num { min-width: 28px; font-size: 13px; }
  .faq_a { padding: 4px 4px 20px 38px; font-size: 14px; }
}

/* ---------- 21. Hero dot field (responsive scatter / phase 2) ---------- *
   画面幅が変わるとドットが飛び散って再配置される動的演出。
   EPL 哲学「揺れ幅をもった一貫性」の可視化:
     - 画面幅 = コンテキスト
     - ドット = 個性（ピクセル単位の人格構成要素）
     - 配置 = 一貫性
   コンテキストが変わると配置は揺れる。でも、個性は変わらない。
   ---------------------------------------------------------------------- */

.hero_field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero > .wrap,
.hero > .hero_ornament {
  position: relative;
  z-index: 1;
}

.hero_dot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.6s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

/* 初期配置時は transition 無効（左上→右下の意図しない歩きを防ぐ） */
.hero_field.no_transition .hero_dot,
.hero_field.no_transition .hero_mascot {
  transition: none;
}

/* ドット種類別の色と発光（パレット） */
.hero_dot_orange {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(240, 165, 0, 0.5);
}

.hero_dot_manua {
  background: #a8d841;
  box-shadow: 0 0 6px rgba(168, 216, 65, 0.4);
}

.hero_dot_ado {
  background: #60a8e8;
  box-shadow: 0 0 6px rgba(96, 168, 232, 0.35);
}

.hero_dot_ado_glow {
  background: #5ce2ec;
  box-shadow: 0 0 7px rgba(92, 226, 236, 0.45);
}

.hero_dot_star {
  background: var(--ink_mute);
  opacity: 0.5;
}

/* prefers-reduced-motion 対応：アニメ全切り、ドット静止 */
@media (prefers-reduced-motion: reduce) {
  .hero_dot {
    transition: none !important;
  }
}

/* ── ヒーロー上のマスコット（マニュアちゃん・アド子）── */
.hero_mascot {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  transition: transform 1.2s cubic-bezier(0.45, 0.1, 0.55, 0.95),
              opacity 0.5s ease;
  will-change: transform, opacity;
  /* 初期は透明 — JS が配置完了後に .placed クラスで表示する（左上フラッシュ防止） */
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.hero_mascot.placed {
  opacity: 0.86;
}

/* 通常時：ふわっと揺れる（mascot_alive 風） */
.hero_mascot .mascot_stack {
  display: inline-block;
  transform-origin: 50% 95%;
  animation: mascot_swing 3.4s ease-in-out infinite;
}

/* 歩いてる時：縦揺れアニメ（足取りリズム） */
.hero_mascot.walking .mascot_stack {
  animation: hero_mascot_walk 0.42s ease-in-out infinite;
}

@keyframes hero_mascot_walk {
  0%, 100% { transform: translateY(0)   rotate(-1.5deg); }
  50%      { transform: translateY(-3px) rotate(1.5deg); }
}

/* 目玉オーバーレイ（OGP と同じ手法、ホタル目光） */
.hero_mascot .pix_frame:nth-child(2) {
  position: absolute;
  inset: 0;
  animation: eye_glow_firefly 4s ease-in-out 2s infinite;
  pointer-events: none;
}

.hero_mascot_manua .pix_frame:nth-child(2) { color: #a8d841; filter: drop-shadow(0 0 4px currentColor); }
.hero_mascot_adoko .pix_frame:nth-child(2) { color: #5ce2ec; filter: drop-shadow(0 0 4px currentColor); }

/* prefers-reduced-motion 対応 */
@media (prefers-reduced-motion: reduce) {
  .hero_mascot,
  .hero_mascot .mascot_stack,
  .hero_mascot.walking .mascot_stack,
  .hero_mascot .pix_frame:nth-child(2) {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 760px) {
  /* スマホ幅ではマスコット小さく */
  .hero_mascot { opacity: 0.75; }
}

@media (max-width: 480px) {
  /* スマホ幅ではマスコット非表示（テキスト優先）*/
  .hero_mascot { display: none; }
}
