/*
Theme Name: Fin (Eclect)
Theme URI: https://fin.eclect.co.jp/
Author: Eclect, Inc.
Author URI: https://eclect.co.jp/
Description: Fin AIエージェント紹介サイト（Eclect）のWordPressテーマ。
Version: 1.1
Text Domain: fin-eclect
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --white: #fff;
  --orange: #ff5600;
  --black: #1a1a1a;
  --dark-gray: #555;
  --beige: #faf9f6;
  --navy: #020917;
  --border-light: #eaeaea;
  --border-mid: #dedede;
  --border-soft: #ecece6;
  --gray-text: #888;
  --gray-muted: #9094a0;
  --green: #1f9d55;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--black);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2.8px;
  color: #b0b3bb;
  line-height: 1;
  margin-left: 6px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  display: inline-block;
  flex-shrink: 0;
}

.section-title {
  font-weight: 500;
  font-size: 38px;
  line-height: 1.5;
  color: var(--black);
  letter-spacing: .05em;
}

.section-lead {
  font-size: 16px;
  color: var(--dark-gray);
  letter-spacing: 0.08em;
  line-height: 1.9;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 500;
  font-size: 16px;
  border-radius: 4px;
  padding: 8px 6px 8px 28px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn:hover {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* keep the arrow/external icons legible on the dark hover background */
.btn img {
  transition: filter 0.35s ease;
}

.btn:hover img {
  filter: brightness(0) invert(1);
}

/* on a navy section the fill matches the background, so keep the outline visible */
.btn-ghost.on-dark:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--black);
}

.btn-ghost.on-dark:hover img {
  filter: brightness(0);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn-ghost.on-dark {
  border-color: #fff;
  color: #fff;
}

.btn-noarrow {
  padding: 14px 28px;
  letter-spacing: 0.05em;
  font-size: 16px;
}

.btn-arrow {
  width: 40px;
  height: 40px;
}

/* ---------- Header ---------- */
.utility-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  padding: 2px 30px;
}

.utility-bar nav {
  display: flex;
  align-items: center;
}

.utility-bar nav a {
  padding: 6px 20px;
  font-size: 12px;
  color: var(--gray-text);
}

.utility-bar nav .divider {
  width: 1px;
  height: 13px;
  background: var(--border-light);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 8px;
}

.main-header-inner {
  background: #fff;
  border-radius: 8px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  border-right: 1px solid #c7c7c7;
  padding-right: 17px;
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 30px;
  width: auto;
}

.brand-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.by-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.by-row .by {
  font-size: 11px;
  color: var(--dark-gray);
}

.by-row img {
  height: 20px;
  width: auto;
}

.partner-label {
  font-size: 10px;
  color: var(--dark-gray);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-main>a,
.nav-main .nav-link {
  padding: 10px 14px;
  font-weight: 400;
  font-size: 14px;
  color: var(--black);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-link .caret {
  font-size: 11px;
  margin-left: 2px;
  transition: transform 0.15s ease;
}

/* external-link marker */
.ext-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* header nav: exactly 6px between the label and its external-link marker */
.nav-main>a .ext-icon {
  margin-left: 6px;
}

/* hover underline that wipes in from the left (header + footer menus) */
.nav-main>a,
.nav-main .nav-link,
.footer-col a,
.footer-col .footer-main {
  position: relative;
}

.nav-main>a::after,
.nav-main .nav-link::after,
.footer-col a::after,
.footer-col .footer-main::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.footer-col a::after,
.footer-col .footer-main::after {
  left: 0;
  right: 0;
  bottom: -2px;
}

.nav-main>a:hover::after,
.nav-main .nav-item:hover .nav-link::after,
.footer-col a:hover::after,
.footer-col .footer-main:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Hamburger + mobile drawer ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #fff;
  z-index: 90;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 2px;
}

.m-link,
.m-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  text-align: left;
}

.m-link--noborder {
  border-bottom: none;
}

.m-link-sub {
  font-weight: 400;
  font-size: 14px;
  color: var(--dark-gray);
}

.m-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.m-acc-caret {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.m-acc.is-open .m-acc-caret {
  transform: rotate(180deg);
}

.m-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.m-acc.is-open .m-acc-body {
  max-height: 320px;
}

.m-sub {
  display: block;
  padding: 12px 4px 12px 20px;
  font-size: 14px;
  color: var(--dark-gray);
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.mobile-cta .btn {
  justify-content: center;
}

/* ---------- Mega menu ---------- */
.nav-item:hover .nav-link .caret {
  transform: rotate(180deg);
}

/* mega menu temporarily switched off — markup is kept so it can be
   re-enabled later by removing the .mega-disabled class in the HTML */
.nav-item.mega-disabled .mega-panel,
.nav-item.mega-disabled .caret {
  display: none;
}

.mega-panel {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: calc(100% - 16px);
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  z-index: 200;
}

/* invisible bridge so the cursor can travel from the nav link
   into the panel without crossing a dead gap */
.mega-panel::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-item:hover .mega-panel,
.mega-panel:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-panel-box {
  background: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 24px 24px rgba(0, 0, 0, 0.08);
  padding: 0 30px 36px;
}

.mega-panel-content {
  border-top: 1px solid var(--border-light);
  padding-top: 46px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.mega-eyebrow {
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 24px;
}

.mega-left {
  width: 420px;
  flex-shrink: 0;
}

.mega-fin-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--beige);
  border-left: 2px solid var(--orange);
  border-radius: 0 6px 6px 0;
  padding: 30px 30px 18px;
}

.mega-fin-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-fin-icon img {
  width: 42px;
  height: 42px;
}

.mega-fin-body {
  flex: 1;
  min-width: 0;
}

.mega-fin-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
}

.mega-fin-tag {
  font-size: 14px;
  color: var(--orange);
  margin-top: 16px;
}

.mega-fin-desc {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.6;
  margin-top: 6px;
}

.mega-fin-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--black);
  letter-spacing: 0.05em;
  margin-top: 16px;
  justify-content: flex-end;
}

.mega-fin-link img {
  width: 24px;
  height: 24px;
}

.mega-right {
  flex: 1;
  min-width: 0;
}

.plan-list {
  display: flex;
  flex-direction: column;
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.plan-item:last-child {
  border-bottom: none;
}

.plan-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-icon img {
  width: 24px;
  height: 24px;
}

.plan-body {
  flex: 1;
  min-width: 0;
}

.plan-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
}

.plan-desc {
  font-size: 14px;
  color: var(--dark-gray);
  margin-top: 3px;
}

.plan-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.resources-row {
  gap: 16px;
}

.res-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--beige);
  border-radius: 4px;
  padding: 16px;
}

.res-icon {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-icon img {
  width: 36px;
  height: 36px;
}

.res-body {
  flex: 1;
  min-width: 0;
}

.res-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
}

.res-desc {
  font-size: 13px;
  color: var(--dark-gray);
  margin-top: 4px;
}

.res-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

/* ---------- Hero ---------- */
.hero {
  background: #fff url('images/hero-vector.svg') no-repeat center right -100px / 700px;
  padding: 90px 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 580px 1fr;
  column-gap: 60px;
  row-gap: 48px;
  align-items: center;
  grid-template-areas:
    "text visual"
    "cta visual"
    "stats visual";
}

.hero-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--orange);
  display: inline-block;
}

.hero-badge span {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.15em;
  color: var(--gray-text);
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-heading h1 {
  font-weight: 500;
  font-size: 48px;
  line-height: 1.3;
  color: var(--black);
}

.hero-heading h1 .en {
  font-family: 'Inter', sans-serif;
}

.hero-heading h1 .accent {
  color: var(--orange);
}

.hero-lead {
  font-size: 16px;
  line-height: 2;
  color: var(--dark-gray);
}

.hero-cta {
  grid-area: cta;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-stats {
  grid-area: stats;
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 6px;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.stat:last-child {
  border-right: none;
}

@media (min-width: 641px) {
  .stat:first-child {
    padding-left: 0;
  }
}

.stat .num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.05em;
  color: var(--black);
}

.stat .num small {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0;
  margin-left: 3px;
  position: relative;
  top: -2px;
}

.stat .label {
  font-size: 12px;
  color: var(--black);
  padding: 4px 0;
}

.sm-break {
  display: none;
}

.hero-visual {
  grid-area: visual;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
}

.hero-visual video {
  display: block;
  width: 80%;
  margin-left: auto;
  border-radius: 30px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
}

/* ---------- Trust logos ---------- */
.section {
  padding: 120px 0;
}

.section.tight {
  padding: 60px 0 120px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 60px;
}

.fn-step-section .section-head {
  margin-bottom: 0;
}

.section-head.left {
  align-items: flex-start;
  text-align: left;
}

/* flex (not grid) so an incomplete last row centres itself */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.trust-logos .ph {
  flex: 0 0 calc((100% - 48px) / 5);
  background: #fff;
  height: 68px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.trust-logos .ph img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
}

/* ---------- What is Fin ---------- */
.beige {
  background: var(--beige);
}

.what-fin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "heading stack"
    "desc stack";
  gap: 48px;
  align-items: stretch;
}

.what-fin-heading,
.what-fin-desc {
  grid-area: heading;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.what-fin-desc {
  grid-area: desc;
}

.platform-stack {
  grid-area: stack;
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 8px;
  padding: 41px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stack-fin {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 55px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  justify-content: center;
}

.stack-fin img {
  width: 42px;
  height: 42px;
}

.stack-fin span {
  font-weight: 700;
  font-size: 20px;
  color: var(--black);
}

.stack-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  position: relative;
}

.stack-connector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 12px;
  background: var(--border-mid);
}

.stack-connector::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 12px;
  background: var(--border-mid);
}

.stack-connector span {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--black);
  background: #fff;
  padding: 0 8px;
}

.stack-platforms {
  background: var(--beige);
  border-radius: 6px;
  padding: 18px 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.stack-platforms>p {
  font-size: 15px;
  color: var(--dark-gray);
  text-align: center;
}

.stack-platforms-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.stack-platforms-row span {
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
}

.stack-platforms-row .sep {
  font-weight: 400;
  color: var(--border-mid);
}

.stack-platforms .more {
  font-weight: 400;
  font-size: 14px;
  color: var(--dark-gray);
}

/* ---------- Impact numbers ---------- */
.impact {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.impact-main {
  background: var(--beige);
  border-radius: 16px;
  padding: 48px 30px;
  width: 683px;
  flex-shrink: 0;
}

.impact-main .big-num {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 168px;
  line-height: 1;
  color: var(--black);
  letter-spacing: -0.04em;
}

.impact-main .big-num span {
  color: var(--orange);
  font-size: 64px;
}

.impact-main .impact-title {
  font-weight: 700;
  font-size: 20px;
  margin-top: 12px;
  color: #1c2030;
}

.impact-main .impact-desc {
  font-size: 14.5px;
  color: var(--gray-muted);
  margin-top: 10px;
  line-height: 1.85;
}

.impact-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.impact-card {
  background: var(--beige);
  border-radius: 16px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.impact-card .num {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
  min-width: 120px;
}

.impact-card .num small {
  font-size: 22px;
  color: var(--gray-muted);
  letter-spacing: 0;
  padding-left: 3px;
}

.impact-card .impact-title {
  font-weight: 700;
  font-size: 15px;
  color: #1c2030;
}

.impact-card .impact-desc {
  font-size: 13px;
  color: var(--gray-muted);
  margin-top: 4px;
}

/* ---------- Key features ---------- */
.feature-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 24px;
}

.feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.demo-box {
  background: #fff;
  height: 256px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.demo-box img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.demo-box--multichannel {
  align-items: flex-end;
  padding: 0 25px;
}

.demo-box--multichannel img {
  height: auto;
  width: 100%;
}

.feature-title-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-index {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-top: 12px;
}

.feature-heading strong {
  display: block;
  font-weight: 500;
  font-size: 24px;
  color: var(--black);
}

.feature-heading span {
  display: block;
  font-size: 14px;
  color: var(--gray-muted);
  margin-top: 3px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-item img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.check-item span {
  font-size: 13.5px;
  color: var(--black);
}

.center-cta {
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

/* ---------- Customer success ---------- */
.region-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.07em;
  color: #bfbfbf;
  margin: 60px 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.region-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.region-label:first-child {
  margin-top: 0;
}

.case-result-info {
  margin-bottom: 32px;
}

.case-result-info .count {
  font-size: 14px;
  color: var(--dark-gray);
}

.case-result-info .count strong {
  color: var(--black);
  font-size: 18px;
}

.cases-grid {
  display: flex;
  gap: 60px;
  align-items: stretch;
  flex-wrap: wrap;
}

.case-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.case-card.large {
  flex: 1 1 670px;
  display: flex;
  flex-direction: column;
}

.case-card.stack {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-card .thumb {
  background: #fafafa;
  border-bottom: 1px solid var(--border-mid);
  position: relative;
  overflow: hidden;
}

.case-card.large .thumb {
  height: 320px;
  border-radius: 16px;
}

.case-mini {
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-mini .thumb {
  height: 160px;
  border-radius: 16px;
}

.case-card .thumb img,
.case-mini .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

/* card hover: zoom the thumb (clipped by .thumb's overflow) and fade the title.
   hover is bound to the <a> itself (.large / .case-mini) — not .case-card.stack,
   which is only a wrapper around two links */
.case-card.large:hover .thumb img,
.case-mini:hover .thumb img {
  transform: scale(1.1);
}

.case-card.large .case-title,
.case-mini .case-title {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.35s ease;
}

.case-card.large:hover .case-title,
.case-mini:hover .case-title {
  text-decoration-color: currentColor;
}

.region-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--black);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 99px;
}

.case-body {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ind-tag {
  display: inline-flex;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 99px;
  align-self: flex-start;
}

.case-card.large .case-title {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
  color: var(--black);
}

.case-mini .case-title {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--black);
}

.case-company {
  font-size: 18px;
  color: var(--gray-text);
}

.case-mini .case-company {
  font-size: 14px;
}

.case-stat {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  margin-top: 8px;
}

.case-stat .num {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 40px;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.case-stat .desc {
  font-size: 13px;
  color: #6a6d75;
  margin-top: 4px;
}

/* ---------- Why Fin (rows) ---------- */
.why-rows {
  margin-top: 24px;
}

.why-row {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-soft);
}

.why-row:last-child {
  border-bottom: none;
}

.why-index {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--orange);
  width: 90px;
  flex-shrink: 0;
}

.why-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-content h3 {
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #0b0f19;
}

.why-content p {
  font-size: 16px;
  line-height: 2;
  color: #6a6d75;
}

.why-figure {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 29px 16px;
  text-align: center;
  max-width: 282px;
}

.why-figure .num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 46px;
  color: var(--orange);
  letter-spacing: -0.03em;
}

.why-figure .label {
  font-size: 14px;
  color: var(--gray-muted);
  margin-top: 8px;
}

/* ---------- Why Eclect (navy) ---------- */
.navy {
  background: var(--navy);
  color: #fff;
}

.navy .section-head p {
  color: #bfbfbf;
}

.navy .section-title {
  color: #fff;
}

.partner-row {
  display: flex;
  margin-top: 24px;
}

.partner-card {
  flex: 1;
  padding: 0 30px;
  border-left: 1px solid #555;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.partner-card:first-child {
  border-left: none;
  padding-left: 0;
}

.partner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-circle {
  width: 74px;
  height: 74px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 42px;
  height: 42px;
}

.partner-idx {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #3a4150;
}

.partner-card h4 {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.partner-card p {
  font-size: 15px;
  line-height: 1.75;
  color: #bfbfbf;
}

/* ---------- Resources ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.resource-card .thumb {
  height: 207px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.resource-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.resource-card:hover .thumb img {
  transform: scale(1.1);
}

.resource-card:hover .resource-title {
  text-decoration-color: currentColor;
}

.resource-body {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag {
  display: inline-flex;
  background: #4b4d4b;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 15px;
  align-self: flex-start;
}

.resource-title {
  font-weight: 500;
  font-size: 18px;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.35s ease;
}

/* ---------- News / Seminar ---------- */
.news-seminar-grid {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.ns-block {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 46px 36px 36px;
}

.ns-block h3 {
  font-weight: 500;
  font-size: 26px;
  color: var(--black);
}

.ns-block .rule {
  width: 60px;
  height: 1px;
  background: var(--border-mid);
  margin: 30px 0 0;
}

.ns-list {
  margin-top: 0;
}

.ns-item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-mid);
}

.ns-item:last-child {
  border-bottom: none;
}

.ns-date {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #2b2b2b;
  flex-shrink: 0;
}

.ns-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ns-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cat-badge {
  background: #4b4d4b;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 15px;
}

.cat-badge.orange {
  background: var(--orange);
}

.cat-badge.gray {
  background: #bfbfbf;
  color: var(--black);
}

.ns-type {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--dark-gray);
}

.ns-title {
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
  transition: color 0.35s ease;
}

.ns-item:hover .ns-title {
  color: var(--orange);
}

.ns-more {
  display: flex;
  justify-content: flex-end;
  padding-top: 24px;
}

.ns-item--seminar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.status-dot--open {
  background: var(--orange);
}

.status-dot--archive {
  background: transparent;
  border: 1px solid #bdbdbd;
}

.status-text {
  font-size: 13px;
  font-weight: 500;
}

.status-text--open {
  color: var(--orange);
}

.status-text--archive {
  color: #9a9a9a;
}

.ns-schedule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  padding: 10px 16px;
}

.schedule-label {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

.schedule-date {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--black);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-banner h2 {
  font-weight: 500;
  font-size: 38px;
  color: var(--black);
}

/* hidden by default; shown only at the mobile breakpoint (see .sm-break override) */
.sm-break {
  display: none;
}

.cta-banner p {
  font-size: 16px;
  color: var(--dark-gray);
  letter-spacing: 0.08em;
}

.cta-buttons {
  display: flex;
  gap: 18px;
  padding-top: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 128px;
  padding-bottom: 36px;
}

.footer-left {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  flex-shrink: 0;
}

.footer-left img {
  height: auto;
  max-width: 180px;
}

.footer-left p {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.7;
}

.footer-cols {
  display: flex;
  gap: 0;
  justify-content: space-between;
  width: 100%;
}

.footer-col-pair {
  display: contents;
}

.footer-col--product {
  order: 1;
}

.footer-col--function {
  order: 2;
}

.footer-col--resources {
  order: 3;
}

.footer-col--company {
  order: 4;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-col strong,
.footer-col .footer-main {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col strong img,
.footer-col .footer-main img {
  width: 12px;
  height: 12px;
}

.footer-col a {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #bbb;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .copyright {
  font-size: 11px;
  color: #888;
}

.footer-legal {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-legal a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
  border-left: 1px solid #888;
  padding-left: 24px;
}

.footer-legal a:first-child {
  border-left: none;
  padding-left: 0;
}

.footer-legal img {
  width: 12px;
  height: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .container {
    width: 100%;
  }
}

@media (max-width: 1140px) {

  .nav-main,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .main-header {
    padding: 0;
  }

  .utility-bar {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 1024px) {

  .impact,
  .feature-row,
  .partner-row,
  .news-seminar-grid {
    flex-direction: column;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "visual"
      "cta"
      "stats";
  }

  .hero-visual video {
    width: 100%;
    margin-left: 0;
  }

  .what-fin-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "stack"
      "desc";
  }

  .hero-stats {
    flex-wrap: nowrap;
    padding: 16px;
    border-radius: 12px;
  }

  .stat {
    flex-direction: row;
    gap: 20px;
    align-items: center;
  }

  .impact-main {
    width: 100%;
  }

  .trust-logos .ph {
    flex-basis: calc((100% - 24px) / 3);
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .case-card.large {
    flex-basis: 100%;
  }

  .case-card.stack {
    flex-basis: 100%;
  }

  .why-row {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .why-index {
    width: 100%;
  }

  .why-figure {
    flex-basis: 100%;
  }

  .partner-row {
    flex-direction: column;
    gap: 24px;
  }

  .partner-card {
    border-left: none;
    padding-left: 0;
    padding-right: 0;
    border-top: 1px solid #555;
    padding-top: 24px;
  }

  .partner-card:first-child {
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .hero-visual video {
    border-radius: 64px;
  }
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-grid {
    grid-template-areas:
      "text"
      "visual"
      "stats"
      "cta";
  }

  .hero-visual video {
    border-radius: 6vw;
  }

  .why-row:first-child {
    padding-top: 0;
  }

  .ns-block {
    padding: 30px 20px;
  }

  .cta-banner h2 {
    font-size: 30px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-heading h1 {
    font-size: 32px;
  }

  .section-head {
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 26px;
    text-align: left;
  }

  .trust-logos .ph {
    flex-basis: calc((100% - 12px) / 2);
  }

  .hero-cta {
    flex-wrap: wrap;
  }

  .hero-stats {
    gap: 2px;
    padding: 14px 10px;
    justify-content: center;
  }

  .stat {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 0 4px;
  }

  .stat .num {
    font-size: 26px;
  }

  .sm-break {
    display: inline;
  }

  .cta-banner {
    padding: 64px 0;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    justify-content: center;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-left {
    width: 100%;
  }

  .footer-cols {
    display: flex;
    gap: 16px;
  }

  .footer-col-pair {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 0;
    min-width: 0;
  }

  .footer-col {
    width: auto;
  }

  .footer-legal {
    gap: 12px;
    align-items: flex-end;
    flex-direction: column;
  }

  .footer-legal a {
    border-left: none;
    padding-left: 0;
  }

  .main-header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 12px 12px 20px;
    border-radius: 0;
  }

  .brand-sub {
    display: none;
  }

  .brand-logo {
    border-right: none;
    padding-right: 0;
  }

  .header-cta .btn-sm span,
  .header-cta a:first-child {
    display: none;
  }

  .why-row {
    column-gap: 12px;
  }

  .why-index {
    width: auto;
  }

  .why-content {
    display: contents;
  }

  .why-content h3 {
    flex: 1;
    min-width: 0;
    font-size: 21px;
  }

  .why-content p {
    flex-basis: 100%;
    margin-top: 18px;
  }

  .why-figure {
    max-width: 100%;
    margin-top: 48px;
  }

  .lg-break {
    display: none;
  }

  .sm-break {
    display: inline;
  }

  .ns-item:not(.ns-item--seminar) {
    flex-wrap: wrap;
  }

  .ns-date {
    width: 100%;
  }

  .stack-fin {
    padding: 18px 10px;
  }

  .platform-stack {
    padding: 20px;
  }

  .stack-platforms-row {
    flex-wrap: wrap;
  }

  .stack-platforms-row .ph {
    flex: 0 0 calc(50% - 4px);
  }

  .stack-platforms-row .more {
    margin-left: auto;
  }
}

/* ---------- Tablet-only overrides ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
  .case-mini .thumb {
    height: 320px;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-left {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 36px;
    flex-shrink: 0;
    padding-bottom: 36px;
    border-bottom: 1px solid #555;
  }

  .footer-cols {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .footer-col {
    width: auto;
    min-width: 0;
  }
}

/* ==========================================================
   function.html  —  Fin AIエージェントの機能
   ========================================================== */

/* ---------- Hero ---------- */
.fn-hero {
  background: #fff;
  border-bottom: 1px solid #f0f0eb;
  padding: 10px 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.15em;
  color: var(--gray-muted);
}

.breadcrumbs .current {
  font-weight: 500;
  color: #1c2030;
}

.fn-hero-grid {
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 52px 0 90px;
}

.fn-hero-text {
  flex: 0 0 580px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.fn-hero-text h1 {
  font-weight: 500;
  font-size: 48px;
  line-height: 62px;
  color: var(--black);
}

.fn-hero-text h1 .en {
  font-family: 'Inter', sans-serif;
}

.fn-hero-text .hero-lead strong {
  font-weight: 700;
  color: var(--black);
}

.fn-hero-visual {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.fn-hero-visual img,
.fn-hero-visual video {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 40px 80px -34px rgba(11, 15, 25, 0.4);
}

/* ---------- Step nav (sticky under the header) ---------- */
.step-nav-sentinel {
  height: 1px;
}

.step-nav {
  position: sticky;
  top: 62px;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #f0f0eb;
  box-shadow: 0 6px 18px -12px rgba(11, 15, 25, 0.25);
  padding: 10px;
}

.step-nav-inner {
  display: flex;
  justify-content: center;
}

.step-nav-link {
  flex: 0 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 20px;
  border-right: 1px solid #f0f0eb;
  text-align: center;
  transition: background 0.25s ease, padding 0.2s ease;
}

/* condensed state once the nav is actually pinned to the top (see script.js) */
.step-nav.is-stuck .step-nav-link {
  padding-top: 10px;
  padding-bottom: 10px;
}

.step-nav.is-stuck .step-nav-desc {
  max-height: 0;
  opacity: 0;
  margin-top: -3px;
}

.step-nav-link:last-child {
  border-right: none;
}

.step-nav-link:hover {
  background: #faf9f6;
}

.step-nav-badge {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gray-muted);
  background: #f2f2ec;
  border: 1px solid #e8e8e1;
  border-radius: 99px;
  padding: 0 10px;
}

.step-nav-name {
  font-weight: 500;
  font-size: 14px;
  color: #0b0f19;
}

.step-nav-name em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--gray-muted);
  margin-left: 6px;
}

.step-nav-desc {
  font-size: 11.5px;
  color: var(--gray-muted);
  max-height: 20px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.15s ease, margin-top 0.2s ease;
}

/* ---------- Step sections ---------- */
.fn-step-section {
  background: #fff;
  border-top: 1px solid #f0f0eb;
  padding: 120px 0 40px;
  scroll-margin-top: 190px;
}

.fn-step-section.beige {
  background: #fafaf7;
  border-top-color: var(--beige);
  padding: 120px 0;
}

#test.fn-step-section.beige {
  background: var(--beige);
  padding: 120px 0 40px;
}

#deploy.fn-step-section {
  padding: 120px 0;
}

.step-box {
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.step-box+.step-box {
  border-top: 1px solid var(--border-light);
}

.step-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.step-head {
  display: flex;
  gap: 6px;
  align-items: center;
}

.step-num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--orange);
  min-width: 24px;
}

.step-title {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--black);
}

.step-lead {
  font-size: 14px;
  line-height: 1.85;
  color: #6a6d75;
  margin-top: -24px;
}

/* check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list .check-item {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.check-list .check-item img {
  width: 23px;
  height: 23px;
  padding: 3px;
  flex-shrink: 0;
}

.check-list .check-item p {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #6a6d75;
}

.check-list .check-item strong {
  font-weight: 500;
  color: #0b0f19;
}

.check-list .check-item .sep {
  color: #b9bcc4;
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-group-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
}

/* use-case box */
.case-box {
  background: var(--beige);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.beige .case-box {
  background: var(--white);
}

.case-box-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #c2c4ca;
}

.case-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-list li {
  display: flex;
  gap: 1px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.85;
  color: #6a6d75;
}

.case-list img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  padding: 5px;
}

/* step image */
.step-img {
  flex: 0 0 510px;
}

.step-img-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 30px -28px rgba(11, 15, 25, 0.28);
  overflow: hidden;
}

.step-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

.step-img-box.is-empty {
  background: #efefef;
  height: 380px;
}

/* ---------- All features table ---------- */
.fn-allfeatures {
  background: #fff;
}

.feat-table {
  border: 1px solid #f0f0eb;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 24px;
}

.feat-row {
  display: flex;
  border-bottom: 1px solid #f0f0eb;
}

.feat-row:last-child {
  border-bottom: none;
}

.feat-label {
  flex: 0 0 200px;
  background: var(--beige);
  border-right: 1px solid #f0f0eb;
  padding: 26px 24px;
}

.feat-step {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #c2c4ca;
}

.feat-en {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #0b0f19;
  margin-top: 2px;
}

.feat-ja {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--gray-muted);
  margin-top: 2px;
}

.feat-chips {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  padding: 24px;
}

.feat-chip {
  background: #fff;
  border: 1px solid #e8e8e1;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12.5px;
  color: #6a6d75;
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .fn-hero-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 0 64px;
  }

  .fn-hero-text {
    flex: none;
    width: 100%;
  }

  .step-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 48px 0;
  }

  .step-img {
    flex: none;
    width: 100%;
  }

  .step-nav-inner {
    flex-wrap: wrap;
  }

  .step-nav-link {
    flex: 1 1 50%;
    border-bottom: 1px solid #f0f0eb;
  }

  .step-nav-link:nth-child(2n) {
    border-right: none;
  }

  .step-nav-link:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .feat-row {
    flex-direction: column;
  }

  .feat-label {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #f0f0eb;
  }
}

@media (max-width: 640px) {
  .fn-hero-text h1 {
    font-size: 32px;
    line-height: 1.6;
  }

  /* stack: heading -> lead -> visual -> cta, with the visual at full width */
  .fn-hero-text {
    display: contents;
  }

  .fn-hero-text .hero-heading,
  .fn-hero-text .hero-lead,
  .fn-hero-text .hero-cta {
    width: 100%;
  }

  .fn-hero-text .hero-heading {
    order: 1;
    gap: 8px;
  }

  .fn-hero-text .hero-lead {
    order: 2;
  }

  .fn-hero-visual,
  .pr-hero-visual {
    order: 3;
    width: 100%;
  }

  .fn-hero-text .hero-cta {
    order: 4;
  }

  .fn-step-section,
  .fn-step-section.beige {
    padding: 64px 0;
  }

  .step-nav-link {
    padding: 14px 10px;
  }

  .step-nav-name {
    font-size: 12.5px;
  }

  .step-nav-desc {
    font-size: 10.5px;
  }
}

/* ==========================================================
   product.html  —  Fin AIエージェント（製品ページ）
   ========================================================== */

/* ---------- Hero ---------- */
.prod-hero {
  background: #fff;
  border-bottom: 1px solid #f0f0eb;
  padding: 10px 0;
}

.prod-hero-grid {
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 52px 0 90px;
}

.prod-hero-text {
  flex: 0 0 580px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.prod-hero-text h1 {
  font-weight: 500;
  font-size: 48px;
  line-height: 1.3;
  color: var(--black);
}

.prod-hero-text h1 .en {
  font-family: 'Inter', sans-serif;
}

.prod-hero-text .hero-lead strong {
  font-weight: 700;
  color: var(--black);
}

.prod-hero-visual {
  flex: 1;
  min-width: 0;
}

.prod-hero-visual img {
  width: 100%;
  border-radius: 8px;
}

/* ---------- Before / After ---------- */
.ba-grid {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}

.ba-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.ba-before {
  border: 1px solid #f0f0eb;
}

.ba-after {
  border: 1px solid var(--orange);
}

.ba-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-muted);
}

.ba-after .ba-tag {
  font-weight: 500;
  color: var(--orange);
}

.ba-title {
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #1c2030;
}

.ba-after .ba-title {
  color: #0b0f19;
}

.ba-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ba-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #6a6d75;
}

.ba-after .ba-list li {
  color: #1c2030;
}

.ba-list img {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.ba-x {
  width: 22px;
  height: 22px;
  border-radius: 50px;
  background: #f3f3ee;
  color: #b0b3bb;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

/* ---------- Demo video ---------- */
.prod-demo .demo-video {
  margin: 48px auto 0;
  max-width: 840px;
  aspect-ratio: 16 / 9;
  background: #e5e9ec;
  border-radius: 16px;
  overflow: hidden;
}

.prod-demo .demo-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Plans ---------- */
.plan-grid {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}

.plan-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #f0f0eb;
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-badge {
  align-self: flex-start;
  background: #0b0f19;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 3px 14px;
  border-radius: 99px;
}

.plan-name {
  font-weight: 500;
  font-size: 24px;
  color: #0b0f19;
}

.plan-desc {
  font-size: 14.5px;
  line-height: 1.95;
  color: #6a6d75;
}

.plan-desc strong {
  font-weight: 700;
  color: #0b0f19;
}

.plan-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.plan-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 10px 12px 24px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.plan-link:hover {
  border-color: var(--orange);
  background: #fffaf7;
}

.plan-link-l {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
}

.plan-link-l img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.plan-link-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------- How it works ---------- */
.hiw-grid {
  display: flex;
  gap: 40px;
  margin-top: 24px;
}

.hiw-card {
  flex: 1;
  min-width: 0;
  position: relative;
  background: var(--beige);
  border-radius: 12px;
  padding: 33px 17px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.hiw-step {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gray-muted);
}

.hiw-icon {
  width: 58px;
  height: 58px;
  background: #fff;
  border: 1px solid #f0f0eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-icon img {
  width: 26px;
  height: 26px;
}

.hiw-en {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #0b0f19;
}

.hiw-ja {
  font-weight: 500;
  font-size: 12.5px;
  color: var(--gray-muted);
  margin-top: -8px;
}

.hiw-desc {
  font-size: 12.5px;
  line-height: 1.9;
  color: #6a6d75;
}

.hiw-arrow {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(calc(20px - 50%), -50%);
  color: var(--black);
  font-size: 18px;
  z-index: 1;
}

/* ---------- 4-step loop video ---------- */
.hiw-loop-video {
  display: none;
  /* 一時的に非表示。再表示する場合はこの行を削除 */
  margin-top: 24px;
  background: var(--navy);
  border-radius: 24px;
  overflow: hidden;
}

.hiw-loop-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2848 / 1030;
}

/* ---------- Key features (product) ---------- */
.pfeat-grid {
  display: flex;
  gap: 48px;
  margin-top: 24px;
}

.pfeat-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pfeat-demo {
  background: #fff;
  height: 256px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pfeat-demo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pfeat-demo--multichannel {
  align-items: flex-end;
  padding: 0 25px;
}

.pfeat-demo--multichannel img {
  height: auto;
  width: 100%;
}

.pfeat-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pfeat-num {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-top: 12px;
}

.pfeat-head strong {
  display: block;
  font-weight: 500;
  font-size: 24px;
  color: var(--black);
}

.pfeat-head span {
  display: block;
  font-size: 14px;
  color: var(--gray-muted);
  margin-top: 3px;
}

.pfeat-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--black);
  padding-top: 12px;
}

/* ---------- Numbers (reuse .impact from index) ---------- */
.prod-numbers .impact {
  margin-top: 24px;
}

/* ---------- Technology (dark navy section) ---------- */
.prod-tech {
  background: var(--navy);
  padding: 120px 0;
  display: flex;
  justify-content: center;
}

.tech-container {
  display: flex;
  gap: 80px;
  align-items: center;
  padding: 0 24px;
}

.tech-text {
  flex: 0 0 520px;
  display: flex;
  flex-direction: column;
  gap: 27px;
}

/* section head inside the dark section */
.prod-tech .section-title {
  color: #fff;
}

.prod-tech .section-lead {
  color: #a6aab4;
}

.tech-engine {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tech-engine-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #fff;
}

.tech-engine-badge {
  background: rgba(255, 86, 0, 0.1);
  border: 1px solid #3a2318;
  border-radius: 99px;
  padding: 2px 12px;
  font-weight: 700;
  font-size: 11px;
  color: var(--orange);
  white-space: nowrap;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-list li {
  display: flex;
  gap: 3px;
  align-items: center;
  font-size: 14.5px;
  line-height: 1.75;
  color: #c6cad2;
}

.tech-list img {
  width: 23px;
  height: 23px;
  padding: 3px;
  flex-shrink: 0;
}

.tech-note {
  background: #141926;
  border-left: 2px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 16px 24px;
}

.tech-note p {
  font-size: 13.5px;
  line-height: 1.93;
  color: #a6aab4;
}

.tech-note strong {
  font-weight: 700;
  color: #fff;
}

.tech-figure {
  flex: 0 0 520px;
  height: 639px;
  border: 1px solid #232a39;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-figure img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
}

/* ---------- Security ---------- */
.sec-grid {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  align-items: stretch;
}

.sec-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #f0f0eb;
  border-radius: 12px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.sec-num {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--orange);
}

.sec-head h3 {
  font-weight: 500;
  font-size: 15.5px;
  color: #0b0f19;
}

.sec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-list li {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.75;
  color: #6a6d75;
}

.sec-dot {
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Customer voice ---------- */
.voice-grid {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}

.voice-card {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.voice-thumb {
  position: relative;
  height: 201px;
  background: #fafafa;
  border-bottom: 1px solid var(--border-mid);
  border-radius: 16px;
  overflow: hidden;
}

.voice-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.voice-card:hover .voice-thumb img {
  transform: scale(1.1);
}

.voice-body {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.voice-title {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.56;
  color: var(--black);
  /* underline is always present but transparent, so its colour can fade in on hover
     (text-decoration itself is not animatable, text-decoration-color is) */
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.35s ease;
}

.voice-card:hover .voice-title {
  text-decoration-color: currentColor;
}

.voice-name {
  font-size: 14px;
  line-height: 1.64;
  color: var(--gray-text);
}

.voice-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.93;
  color: var(--orange);
}

.voice-arrow {
  transition: transform 0.25s ease;
}

.voice-card:hover .voice-arrow {
  transform: translateX(4px);
}

/* ---------- Why Fin (product) ---------- */
.pwhy-grid {
  display: flex;
  gap: 30px;
  margin-top: 60px;
}

.pwhy-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #f0f0eb;
  border-radius: 16px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pwhy-num {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--orange);
}

.pwhy-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.9;
  color: #0b0f19;
}

.pwhy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pwhy-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.7;
  color: #6a6d75;
}

.why-check {
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Use cases ---------- */
.puc-grid {
  display: flex;
  gap: 30px;
  margin-top: 68px;
}

.puc-card {
  flex: 1;
  min-width: 0;
  background: var(--beige);
  border-radius: 16px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.puc-icon {
  width: 54px;
  height: 54px;
  background: #fff;
  border: 1px solid #f0f0eb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.puc-icon img {
  width: 24px;
  height: 24px;
}

.puc-title {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.9;
  color: #0b0f19;
}

.puc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.puc-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.7;
  color: #6a6d75;
}

.puc-list img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .tech-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .tech-text,
  .tech-figure {
    flex: none;
    width: 100%;
  }

  .tech-figure {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .tech-figure img {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 1024px) {

  .prod-hero-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .prod-hero-text {
    flex: none;
    width: 100%;
  }

  .pfeat-card {
    gap: 16px;
  }

  .pfeat-desc {
    padding-top: 0;
  }

  .ba-grid,
  .plan-grid,
  .pfeat-grid,
  .pwhy-grid,
  .puc-grid,
  .voice-grid {
    flex-direction: column;
  }

  .hiw-grid {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hiw-card {
    flex: 1 1 45%;
  }

  .hiw-arrow {
    display: none;
  }

  .sec-grid {
    flex-wrap: wrap;
  }

  .sec-card {
    flex: 1 1 45%;
  }
}

@media (max-width: 640px) {
  .prod-hero-text h1 {
    font-size: 32px;
  }

  /* stack: heading -> lead -> visual -> cta, with the visual at full width */
  .prod-hero-text {
    display: contents;
  }

  .prod-hero-text .hero-heading,
  .prod-hero-text .hero-lead,
  .prod-hero-text .hero-cta {
    width: 100%;
  }

  .prod-hero-text .hero-heading {
    order: 1;
  }

  .prod-hero-text .hero-lead {
    order: 2;
  }

  .prod-hero-visual {
    order: 3;
    width: 100%;
  }

  .prod-hero-text .hero-cta {
    order: 4;
  }

  .hiw-card,
  .sec-card {
    flex: 1 1 100%;
  }

  .hiw-grid {
    gap: 40px;
  }

  .hiw-arrow {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, calc(20px - 50%)) rotate(90deg);
    margin-top: 0;
  }

  .hiw-loop-video {
    border-radius: 16px;
  }

  .prod-tech {
    padding: 64px 0;
  }

  .plan-card {
    padding: 20px;
  }
}

/* ==========================================================
   faq.html  —  よくある質問
   ========================================================== */

/* ---------- Hero ---------- */
.faq-hero {
  background: #fff;
  border-bottom: 1px solid #f0f0eb;
  padding: 10px 0;
}

.faq-hero-text {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 52px 0 90px;
}

.faq-hero-text h1 {
  font-weight: 500;
  font-size: 48px;
  line-height: 1.3;
  color: var(--black);
}

/* ---------- Filter tabs ---------- */
.faq-list-section {
  background: var(--beige);
  padding: 120px 0;
}

.faq-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}

.faq-filter-btn {
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 99px;
  border: 1px solid var(--border-mid);
  background: #fff;
  color: var(--gray-text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.faq-filter-btn:hover:not(.is-active) {
  border-color: #bbb;
  color: var(--black);
}

.faq-filter-btn.is-active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* ---------- Groups & accordion ---------- */
.faq-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.faq-group-title {
  font-weight: 500;
  font-size: 26px;
  color: var(--black);
  padding: 60px 0 4px;
}

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

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  cursor: pointer;
}

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

.faq-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.faq-q-badge,
.faq-a-badge {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.faq-q-badge {
  background: var(--orange);
  color: #fff;
}

.faq-a-badge {
  background: rgba(255, 86, 0, 0.2);
  color: var(--orange);
}

.faq-question {
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
  color: #0b0f19;
}

.faq-toggle {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--black);
}

.faq-toggle::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-toggle::after {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.faq-item.js-open .faq-toggle::after {
  opacity: 0;
}

.faq-answer {
  display: flex;
  gap: 12px;
  padding: 24px 20px;
  border-top: 1px solid var(--border-light);
}

.faq-answer p {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-text);
}

/* ---------- No-answer CTA ---------- */
.faq-nomatch-section {
  background: #fff;
  padding: 64px 0;
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 60px;
  background: var(--beige);
  border-left: 2px solid var(--orange);
  border-radius: 0 16px 16px 0;
}

.faq-cta-text h3 {
  font-weight: 500;
  font-size: 24px;
  color: var(--black);
}

.faq-cta-text p {
  font-size: 14px;
  color: var(--dark-gray);
  margin-top: 11px;
  line-height: 1.8;
}

.faq-cta-actions {
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .faq-hero-text {
    max-width: none;
    padding: 40px 0 64px;
  }

  .faq-list-section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .faq-hero-text h1 {
    font-size: 32px;
  }

  .faq-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 16px;
    margin: 0 -24px 8px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .faq-filter-btn {
    white-space: nowrap;
  }

  .faq-group-title {
    font-size: 21px;
  }

  .faq-item summary {
    padding: 20px 16px;
  }

  .faq-answer {
    padding: 20px 16px;
  }

  .faq-cta-actions {
    width: 100%;
  }

  .faq-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 24px;
  }
}

/* ---------- Pricing page ---------- */
.pr-hero-visual {
  flex: 1;
  min-width: 0;
  background: #0b0f19 url('images/pricing-hero-glow.webp') no-repeat 50% 40%/70% auto;
  border-radius: 20px;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  overflow: hidden;
}

.pr-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gray-muted);
}

.pr-hero-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.pr-hero-price .amount {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 88px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.pr-hero-price .unit {
  font-size: 20px;
  color: #b9bcc4;
  padding-bottom: 8px;
}

.pr-hero-pill {
  background: #fff;
  color: #0b0f19;
  font-size: 13px;
  border-radius: 99px;
  padding: 6px 17px;
}

.pr-hero-note {
  font-size: 12px;
  line-height: 1.75;
  color: var(--gray-muted);
}

/* Plans */
.pr-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.pr-tab-btn {
  flex: 1;
  max-width: 310px;
  padding: 18px 0;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pr-tab-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #6a6d75;
}

.pr-tab-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #6a6d75;
}

.pr-tab-btn.is-active {
  background: #0b0f19;
  border-color: #0b0f19;
}

.pr-tab-btn.is-active .pr-tab-title,
.pr-tab-btn.is-active .pr-tab-sub {
  color: #fff;
}

.pr-tab-panel {
  max-width: 840px;
  margin: 0 auto;
}

.pr-tab-panel[hidden] {
  display: none;
}

.pr-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.pr-card-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #a0a3ab;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.pr-price-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pr-price-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: #fafaf7;
  border-radius: 12px;
  border-left: 4px solid #c2c4ca;
}

.pr-price-row--main {
  border-left-color: var(--orange);
}

.pr-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  min-width: 140px;
}

.pr-price-amount {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: #0b0f19;
}

.pr-price-unit {
  font-size: 15px;
  color: #6a6d75;
}

.pr-price-text .pr-price-title {
  font-weight: 700;
  font-size: 14px;
  color: #0b0f19;
}

.pr-price-text .pr-price-desc {
  font-size: 13px;
  color: #6a6d75;
  margin-top: 2px;
}

.pr-note-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pr-note-list li {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--gray-muted);
  text-indent: -1em;
  padding-left: 1em;
  letter-spacing: .05em;
}

.pr-note-list .mark {
  color: #a0a3ab;
  flex-shrink: 0;
}

.pr-note-list strong {
  font-weight: 500;
  color: #6a6d75;
}

.pr-addon {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}

.pr-addon-title {
  background: #fafaf7;
  border-bottom: 1px solid var(--border-soft);
  padding: 13px 20px;
  font-size: 13px;
  color: #0b0f19;
}

.pr-addon-list {
  padding: 6px 20px;
}

.pr-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}

.pr-addon-row:last-child {
  border-bottom: none;
}

.pr-addon-text .name {
  font-size: 13.5px;
  color: #0b0f19;
}

.pr-addon-text .desc {
  font-size: 12px;
  color: var(--gray-muted);
  margin-top: 2px;
}

.pr-addon-price {
  font-size: 13px;
  color: var(--orange);
  white-space: nowrap;
}

.pr-platform-box {
  background: #fafaf7;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 21px 25px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pr-platform-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #a0a3ab;
}

.pr-platform-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pr-chip {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 13px 21px;
  font-size: 13px;
  color: #1c2030;
  background: #fff;
}

.pr-platform-note {
  font-size: 11.5px;
  color: var(--gray-muted);
}

.pr-card-cta {
  display: flex;
  justify-content: center;
}

/* Definition */
.pr-def-grid {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}

.pr-def-card {
  flex: 1;
  background: #fafaf7;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 33px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pr-def-tag {
  align-self: flex-start;
  background: #0b0f19;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-radius: 99px;
  padding: 6px 14px;
}

.pr-def-card h3 {
  font-weight: 400;
  font-size: 20px;
  color: #0b0f19;
}

.pr-def-card p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--black);
}

.pr-def-card p strong {
  font-weight: 700;
}

.pr-def-callout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  background: #0b0f19;
  border-radius: 12px;
  padding: 18px 40px;
  text-align: center;
}

.pr-def-callout .badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-def-callout p {
  font-size: 13px;
  color: #fff;
}

.pr-def-callout strong {
  font-weight: 700;
}

/* Value */
.pr-value-grid {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}

.pr-value-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.pr-value-card .num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #c2c4ca;
}

.pr-value-card h3 {
  font-weight: 400;
  font-size: 19px;
  line-height: 1.9;
  color: #0b0f19;
}

.pr-value-card p {
  font-size: 14px;
  line-height: 1.85;
  color: #6a6d75;
}

/* Examples */
.pr-case-grid {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.pr-case-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pr-case-tag {
  align-self: flex-start;
  background: #fafaf7;
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 2px 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-muted);
}

.pr-case-card h3 {
  font-weight: 400;
  font-size: 18px;
  color: #0b0f19;
}

.pr-case-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 17px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.pr-case-stats .stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pr-case-stats .label {
  font-size: 12px;
  color: var(--gray-muted);
}

.pr-case-stats .value {
  font-weight: 600;
  font-size: 19px;
  color: var(--black);
}

.pr-case-stats .value.accent {
  color: var(--orange);
}

.pr-case-stats .value small {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-muted);
  margin-left: 2px;
}

.pr-case-effect {
  font-size: 13px;
  line-height: 1.8;
  color: #6a6d75;
}

.pr-case-effect strong {
  font-weight: 700;
  color: #0b0f19;
}

.pr-case-footnote {
  text-align: center;
  font-size: 12.5px;
  color: var(--gray-muted);
  margin-top: 30px;
}

/* FAQ accordion */
.pr-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.pr-faq-item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}

.pr-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 20px;
  cursor: pointer;
}

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

.pr-faq-item .q-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pr-faq-item .q {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b0f19;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-faq-item summary .text {
  font-size: 14.5px;
  color: #0b0f19;
}

.pr-faq-item .toggle-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.pr-faq-item .toggle-icon::before,
.pr-faq-item .toggle-icon::after {
  content: '';
  position: absolute;
  background: #bfbfbf;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pr-faq-item .toggle-icon::before {
  width: 14px;
  height: 1px;
}

.pr-faq-item .toggle-icon::after {
  width: 1px;
  height: 14px;
  transition: transform 0.25s ease;
}

.pr-faq-item.js-open .toggle-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.pr-faq-answer {
  padding: 18px 28px 24px 56px;
  border-top: 1px solid var(--border-light);
  font-size: 13.5px;
  line-height: 1.9;
  color: #888;
}

/* Custom estimate */
.pr-estimate-box {
  background: var(--beige);
  border-radius: 16px;
  padding: 41px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.pr-estimate-text {
  max-width: 600px;
}

.pr-estimate-tag {
  display: inline-block;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 99px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 4px 16px;
}

.pr-estimate-text h3 {
  font-weight: 400;
  font-size: 24px;
  color: #0b0f19;
  margin-top: 12px;
}

.pr-estimate-text p {
  font-size: 14px;
  line-height: 1.85;
  color: #6a6d75;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .pr-card {
    padding: 32px 24px;
  }

  .pr-def-grid,
  .pr-value-grid,
  .pr-case-grid {
    flex-direction: column;
  }

  .pr-estimate-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .pr-tab-buttons {
    gap: 8px;
  }

  .pr-tab-btn {
    padding: 12px 6px;
    gap: 3px;
  }

  .pr-tab-title {
    font-size: 12.5px;
    letter-spacing: 0.02em;
  }

  .pr-tab-sub {
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  .pr-hero-visual {
    padding: 40px 20px;
  }

  .pr-hero-price .amount {
    font-size: 64px;
  }

  .pr-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pr-addon-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pr-def-callout {
    flex-direction: column;
    padding: 20px;
  }

  .pr-faq-item summary {
    padding: 18px 16px;
  }

  .pr-faq-answer {
    padding: 16px 16px 20px 16px;
  }

  .pr-estimate-box {
    padding: 28px 24px;
  }
}

/* ==========================================================
   resources.html  —  お役立ち情報
   ========================================================== */

/* ---------- Hero ---------- */
.res-hero {
  background: #fff;
  border-bottom: 1px solid #f0f0eb;
  padding: 10px 0;
}

.res-hero--noborder {
  border-bottom: none;
}

.res-hero-grid {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 52px 0 90px;
}

.res-hero-text {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.res-hero-text .hero-heading {
  margin-bottom: 8px;
}

.res-hero-visual {
  flex: 1;
  min-width: 0;
}

.res-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Category tabs ---------- */
.res-tabs {
  background: #fff;
}

.res-tabs-inner {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 30px 24px 0;
}

.res-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 36px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--gray-text);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.res-tab:hover {
  border-color: var(--orange);
  color: var(--black);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 9px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  border-radius: 99px;
}

/* ---------- Section heading row ---------- */
.res-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

.res-heading-row h2 {
  font-weight: 500;
  font-size: 26px;
  color: var(--black);
}

.count-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  background: var(--border-light);
  color: var(--gray-text);
  font-weight: 700;
  font-size: 12px;
  border-radius: 99px;
}

/* ---------- Card grid ---------- */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.res-card {
  display: flex;
  flex-direction: column;
}

.res-thumb {
  position: relative;
  aspect-ratio: 357 / 201;
  border-radius: 16px;
  background: #fafafa;
  border: 0;
  overflow: hidden;
}

.res-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.res-card:hover .res-thumb img {
  transform: scale(1.06);
}

.res-thumb--doc {
  background: var(--border-mid);
}

.duration-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--black);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 99px;
}

.res-card-body {
  padding: 24px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.res-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.res-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--dark-gray);
}

.res-card-body h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.35s ease;
}

.res-card-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-text);
}

.res-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--orange);
}

.res-link .arrow {
  transition: transform 0.25s ease;
}

.res-card:hover .res-link .arrow {
  transform: translateX(3px);
}

.res-card:hover h3 {
  text-decoration-color: currentColor;
}

/* ---------- For Resource Seekers ---------- */
.res-seekers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 60px;
  background: var(--beige);
  border-right: 2px solid transparent;
  border-left: 2px solid var(--orange);
  border-radius: 0 16px 16px 0;
}

.res-seekers-text {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.res-seekers-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 16px;
  background: var(--black);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 99px;
}

.res-seekers-text h3 {
  font-weight: 500;
  font-size: 24px;
  color: var(--black);
}

.res-seekers-text p {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.8;
}

.res-seekers-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .res-hero-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 20px;
  }

  .res-hero-text {
    flex: none;
    width: 100%;
  }

  .res-hero-visual {
    width: 100%;
  }

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

  .res-tabs-inner {
    flex-wrap: wrap;
  }

  .res-tab {
    flex: 1 1 auto;
    padding: 18px 24px;
    justify-content: center;
  }

  .res-seekers {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }

  .res-seekers-actions {
    flex-direction: row;
    width: 100%;
  }

  .res-seekers-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .res-grid {
    grid-template-columns: 1fr;
  }

  .res-tabs-inner {
    gap: 12px;
  }

  .res-tab {
    padding: 14px 18px;
    font-size: 13.5px;
  }

  .res-seekers-actions {
    flex-direction: column;
  }
}

/* ---------- Article hero (reusable across blog / article detail pages) ---------- */
.article-hero {
  padding: 10px 0;
}

.article-hero .breadcrumbs {
  margin-bottom: 10px;
}

.article-hero .breadcrumbs .sep {
  color: var(--border-mid);
}

.article-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 52px 0 90px;
}

/* the 90px bottom padding exists to lead into the eye-catch image below it —
   without one, close that gap up to match the top padding instead */
.article-hero--no-eyecatch .article-hero-inner {
  padding-bottom: 52px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-date {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--dark-gray);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--black);
  border-radius: 50%;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.article-share-icon img {
  width: 18px;
  height: 18px;
}

.article-share-icon:hover {
  background-color: var(--black);
}

.article-share-icon:hover img {
  filter: invert(1);
}

.article-eyecatch-section {
  padding: 0 0 120px;
}

.article-eyecatch {
  width: 840px;
  max-width: 100%;
  aspect-ratio: 840 / 473;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.article-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-section {
  padding: 56px 0;
}

.article-container {
  width: 840px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-h2 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--black);
  border-left: 4px solid var(--orange);
  padding: 4px 0 4px 20px;
}

.article-h3 {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--black);
}

.article-p {
  font-size: 15px;
  line-height: 2;
  color: var(--black);
}

.article-p strong {
  font-weight: 700;
}

.article-divider {
  height: 1px;
  background: var(--border-mid);
}

.article-table-wrap {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  overflow-x: auto;
}

.article-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.article-table th,
.article-table td {
  text-align: left;
  padding: 12px 17px;
  border-bottom: 1px solid var(--border-light);
}

.article-table th:not(:last-child),
.article-table td:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.article-table tbody tr:last-child th,
.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-color: rgba(255, 255, 255, 0.12);
}

.article-table tbody td:first-child {
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

.article-table tbody td:not(:first-child) {
  font-size: 14px;
  color: var(--dark-gray);
}

.article-quote {
  background: var(--beige);
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 23px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-quote p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--black);
}

.article-quote cite {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--gray-text);
  text-align: right;
}

.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-list li {
  position: relative;
  font-size: 15px;
  line-height: 1.9;
  color: var(--black);
  padding-left: 20px;
}

.article-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.article-list li strong {
  font-weight: 700;
}

.article-img-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.article-figure {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
}

.article-figure figcaption {
  font-size: 12px;
  color: var(--gray-text);
  text-align: center;
}

.blog-summary-section {
  padding: 0 0 120px;
}

.article-summary {
  background: var(--beige);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-summary h2 {
  font-weight: 500;
  font-size: 20px;
  color: var(--black);
}

.article-summary p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--black);
}

.article-summary-cta a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* ---------- Article content (styles raw the_content() output — WordPress posts
   don't carry the .article-h2 / .article-p classes above, so headings, paragraphs,
   tables, quotes, lists and images are styled directly by tag within this wrapper) ---------- */
.article-content {
  width: 840px;
  max-width: 100%;
  margin: 0 auto;
}

.article-content>*+* {
  margin-top: 40px;
}

/* neutralize WordPress's own block-spacing defaults so the rhythm above is authoritative */
.article-content p,
.article-content ul,
.article-content ol,
.article-content table,
.article-content figure,
.article-content blockquote {
  margin: 0;
}

.article-content h2 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--black);
  border-left: 4px solid var(--orange);
  padding: 4px 0 4px 20px;
}

.article-content h3 {
  font-weight: 700;
  font-size: 18px !important;
  line-height: 1.5;
  color: var(--black);
}

.article-content p {
  font-size: 16px;
  line-height: 2;
  color: var(--black);
  margin-top: 30px;
}

.article-content p strong,
.article-content li strong {
  font-weight: 700;
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.35s ease;
}

.article-content a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.article-content hr {
  height: 1px;
  border: none;
  background: var(--border-mid);
  margin: 50px 0;
}

.article-content table {
  overflow-x: auto;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-top: 30px;
  border-collapse: separate !important;
  border-spacing: 0;
}

.article-content th,
.article-content td {
  text-align: left;
  padding: 12px 17px !important;
  border-bottom: 1px solid var(--border-light);
  border-top: none !important;
  border-left: none !important;
}

.article-content th:not(:last-child),
.article-content td:not(:last-child) {
  border-right: 1px solid var(--border-light);
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: none !important;
}

.article-content tbody tr:last-child th,
.article-content tbody tr:last-child td {
  border-bottom: none;
}

.article-content thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-color: rgba(255, 255, 255, 0.12);
}

.article-content thead th:first-child {
  border-radius: 10px 0 0 0;
}

.article-content thead th:last-child {
  border-radius: 0 10px 0 0;
}

.article-content td {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #555555;
  border-color: var(--border-light) !important;
}

.article-content blockquote {
  background: var(--beige);
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 23px 36px;
  margin-top: 30px;
}

.article-content blockquote p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--black);
}

.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  color: var(--gray-text);
  text-align: right;
}

.article-content ul,
.article-content ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.article-content li {
  position: relative;
  font-size: 15px;
  line-height: 1.9;
  color: var(--black);
  padding-left: 20px;
}

.article-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.article-content img {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.article-content figure.wp-block-image {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content figcaption {
  font-size: 12px;
  color: var(--gray-text);
  text-align: center;
}

.article-content .wp-block-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.article-content .wp-block-column {
  flex: 1;
}

@media (max-width: 640px) {
  .article-content .wp-block-columns {
    flex-direction: column;
  }
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.related-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: var(--border-light);
  color: var(--border-mid);
}

.no-image svg {
  width: 32px;
  height: 32px;
}

.no-image span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gray-text);
}

.related-card:hover .related-thumb img {
  transform: scale(1.08);
}

.related-body {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-tags {
  display: flex;
  align-items: center;
  gap: 14px;
}

.related-date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--gray-text);
}

.related-title {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.35s ease;
}

.related-card:hover .related-title {
  text-decoration-color: currentColor;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--orange);
  margin-top: auto;
}

.related-link .arrow {
  transition: transform 0.35s ease;
}

.related-card:hover .related-link .arrow {
  transform: translateX(4px);
}

.blog-promo-section {
  padding: 64px 0 120px;
}

.blog-promo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--beige);
  border-left: 2px solid var(--orange);
  border-radius: 0 16px 16px 0;
  padding: 40px 60px;
}

.blog-promo-text {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.blog-promo-text h2 {
  font-weight: 500;
  font-size: 24px;
  color: var(--black);
}

.blog-promo-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark-gray);
}

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-promo-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .article-hero-inner {
    padding: 32px 0 48px;
    gap: 32px;
  }

  .article-eyecatch-section {
    padding: 0 0 64px;
  }

  .blog-article-section {
    padding: 32px 0;
  }

  .blog-summary-section {
    padding: 0 0 64px;
  }

  .article-img-row {
    flex-direction: column;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-promo-box {
    padding: 24px;
  }

  .blog-promo-box .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Document (single-document.php) ---------- */
.doc-hero-grid {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 52px 0 90px;
}

.doc-hero-text {
  flex: 1 1 580px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.doc-meta-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0 24px;
}

.doc-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.doc-meta-row:last-child {
  border-bottom: none;
}

.doc-meta-label {
  width: 108px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-muted);
}

.doc-meta-value {
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
}

.doc-hero-form {
  flex: 1 1 500px;
}

.doc-download-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
}

.doc-download-card h2 {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.6;
  color: var(--black);
}

.doc-download-card>p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-gray);
  margin-top: 8px;
}

.doc-download-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 19px;
}

.doc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-field-row {
  display: flex;
  gap: 10px;
}

.doc-field-row .doc-field {
  flex: 1;
}

.doc-field-label {
  font-weight: 500;
  font-size: 13px;
  color: var(--black);
}

.doc-field-required {
  margin-left: 4px;
  font-weight: 500;
  font-size: 10px;
  color: var(--orange);
}

.doc-input {
  width: 100%;
  padding: 16px 13px;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  color: var(--black);
  background: #fff;
}

.doc-input::placeholder {
  color: var(--gray-text);
}

.doc-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dark-gray);
  justify-content: center;
  padding: 16px 0;
}

.doc-consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.doc-consent a {
  color: var(--dark-gray);
  text-decoration: underline;
}

.doc-download-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.doc-preview-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.doc-preview-images {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex: 1;
}

.doc-preview-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f6f6f6;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.doc-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-toc {
  flex: 1;
  max-width: 554px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.doc-toc h3 {
  font-weight: 700;
  font-size: 20px;
  color: var(--black);
}

.doc-toc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 21px;
  background: var(--beige);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
}

.doc-toc-num {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.doc-toc-title {
  font-size: 14px;
  color: var(--black);
}

.related-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--dark-gray);
}

.doc-related-title {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.6;
  color: var(--black);
}

@media (max-width: 1024px) {
  .doc-hero-grid {
    flex-direction: column;
  }

  .doc-hero-text,
  .doc-hero-form {
    flex: 1 1 auto;
    width: 100%;
  }

  .doc-toc {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .doc-hero-grid {
    padding: 32px 0 48px;
    gap: 32px;
  }

  .doc-preview-row {
    flex-direction: column;
  }

  .doc-download-card {
    padding: 24px;
  }

  .doc-field-row {
    flex-direction: column;
  }

  .doc-preview-images {
    flex-direction: column;
  }

  .doc-preview-img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Video (single-video.php) ---------- */
.duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 99px;
  font-weight: 600;
  font-size: 12px;
  color: var(--black);
}

.duration-pill .play-ico {
  font-size: 9px;
  color: var(--orange);
}

.video-embed-section {
  padding: 0 0 120px;
}

.video-embed {
  width: 840px;
  max-width: 100%;
  aspect-ratio: 840 / 472;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
}

.video-embed iframe,
.video-embed video {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.video-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  background: rgba(255, 86, 0, 0.9);
  border: 2px solid #fff;
  border-radius: 50%;
}

.video-play-btn img {
  width: 22px;
  height: 22px;
}

.video-embed-caption {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #9aa3b5;
}

.video-embed-note {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #5a6478;
}

.chapters-section {
  padding: 120px 0;
}

.chapter-list {
  width: 840px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 18px;
  padding: 19px 23px;
  background: var(--beige);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: inherit;
  text-align: left;
  appearance: none;
}

button.chapter-item {
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

button.chapter-item:hover,
button.chapter-item:focus-visible {
  background: #fff;
  border-color: var(--orange);
}

.chapter-time {
  flex-shrink: 0;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #ffd9c4;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.chapter-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--black);
}

.video-cta-section {
  padding: 64px 0;
}

.video-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--beige);
  border-left: 2px solid var(--orange);
  border-radius: 0 16px 16px 0;
  padding: 40px 60px;
}

.video-cta-text h2 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 11px;
}

.video-cta-text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark-gray);
}

@media (max-width: 640px) {
  .video-embed-section {
    padding: 0 0 64px;
  }

  .chapters-section {
    padding: 64px 0;
  }

  .chapter-item {
    padding: 16px;
    gap: 12px;
  }

  .video-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
  }
}

/* ==========================================================
   404  —  ページが見つかりませんでした
   ========================================================== */

.nf-section {
  background: linear-gradient(180deg, #fff 0%, #fcfcfa 60%, var(--beige) 100%);
  padding: 150px 0 170px;
}

.nf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.nf-text h1 {
  font-weight: 500;
  font-size: 46px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--black);
  margin-top: 12px;
}

.nf-lead {
  max-width: 460px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--dark-gray);
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.nf-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nf-code {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 130px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--black);
}

/* the footer CTA banner is redundant here — the page already has its own CTA */
body.error404 .cta-banner {
  display: none;
}

@media (max-width: 1024px) {
  .nf-section {
    padding: 96px 0 110px;
  }

  .nf-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nf-visual {
    display: none;
  }

  .nf-code {
    font-size: 104px;
  }
}

@media (max-width: 640px) {
  .nf-section {
    padding: 64px 0 80px;
  }

  .nf-text h1 {
    font-size: 32px;
  }

  .nf-lead {
    font-size: 15px;
  }

  .nf-code {
    font-size: 76px;
  }
}