/* モニサポ FAX分割 ランディングページ: 使い方・機能の配置・安心・最後の案内 */

/* ---------- 使い方 ---------- */
.flow {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}

.steps {
  display: grid;
  gap: clamp(72px, 9vw, 120px);
  margin-top: 64px;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.step:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.step:nth-child(even) .step-text {
  order: 2;
}

.step-no {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.step-no .num {
  padding: 2px 10px;
  border: 1px solid var(--accent-mist);
  border-radius: 999px;
  font-size: 12px;
}

.step h3 {
  margin-top: 16px;
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.5;
}

.step-text > p:not(.step-no) {
  margin-top: 16px;
  color: var(--ink-2);
}

.ticks {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
}

.ticks li {
  position: relative;
  padding-left: 24px;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- 機能（配置のみ。中の見本は -visuals.css） ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 32px);
  margin-top: 56px;
}

.feat {
  grid-column: span 5;
}

.feat.is-wide {
  grid-column: span 7;
}

.feat h3 {
  margin-top: 22px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.feat > p {
  max-width: 34em;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- 安心 ---------- */
.trust {
  background: var(--bg-deep);
  color: #e6ebf2;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}

.trust .eyebrow {
  color: #9dbbe4;
}

.trust .lead {
  color: #a7b3c3;
}

.trust-list li {
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-list li:first-child {
  padding-top: 8px;
  border-top: 0;
}

.trust-list h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.trust-list p {
  margin-top: 8px;
  color: #a7b3c3;
  font-size: 15px;
}

/* ---------- 最後の案内・フッター ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 40px;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.cta-side {
  display: grid;
  justify-items: start;
  gap: 16px;
  color: var(--ink-2);
  font-size: 14px;
}

.cta-env {
  color: var(--ink-3);
  font-size: 13px;
}

.site-footer {
  padding-block: 40px 44px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
}

.footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px 40px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 700;
}

.footer-about p + p {
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

/* 指で押しやすいよう、リンクの上下に余白を持たせる */
@media (max-width: 860px) {
  .footer-nav {
    gap: 0 20px;
  }

  .footer-nav a {
    display: inline-block;
    padding-block: 10px;
  }
}

.footer-nav a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 12px;
}

/* ---------- 幅の狭い画面: すべて 1 列に ---------- */
@media (max-width: 860px) {
  .step,
  .step:nth-child(even),
  .trust-grid,
  .cta-grid,
  .footer-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .step:nth-child(even) .step-text {
    order: 0;
  }

  .feat,
  .feat.is-wide {
    grid-column: 1 / -1;
  }
}

/* ---------- まとめて処理（10件） ---------- */
.batch {
  padding-top: 0;
}

.batch-wrap {
  padding-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.batch-wrap .section-head {
  max-width: none;
}

.batch-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-top: 48px;
}

.batch-points {
  display: grid;
  gap: 14px;
  font-size: 15px;
  font-weight: 500;
}

.batch-points li {
  position: relative;
  padding-left: 24px;
}

.batch-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.batch-visual {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.5;
}

.bt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.bt-title {
  font-weight: 700;
}

.bt-mix {
  display: flex;
  gap: 6px;
}

.bt-mix > span {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.bt-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.bt-tab {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 10px 8px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 10px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.bt-id {
  font-size: 12px;
  font-weight: 700;
}

.bt-file {
  overflow: hidden;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bt-state {
  display: grid;
  align-items: center;
  min-height: 18px;
  font-size: 11px;
  font-weight: 700;
}

.bt-state > * {
  grid-area: 1 / 1;
  visibility: hidden;
}

.bt-wait {
  color: var(--ink-3);
}

.bt-done {
  color: var(--accent-deep);
}

.bt-run {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.bt-run span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  animation: bt-flow 1.2s ease-in-out infinite;
}

@keyframes bt-flow {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

/* 流れる動きは処理中のタブだけ */
.bt-tab:not(.is-run) .bt-run span {
  animation: none;
}

.bt-tab.is-wait .bt-wait,
.bt-tab.is-run .bt-run,
.bt-tab.is-done .bt-done {
  visibility: visible;
}

.bt-tab.is-run {
  border-color: var(--accent-mist);
  background: var(--accent-soft);
}

.bt-tab.is-done {
  border-bottom-color: var(--accent);
}

.bt-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bt-summary {
  color: var(--ink-2);
  font-weight: 500;
}

.bt-save {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-3);
  font-weight: 700;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

/* 処理中のタブがある間は押せない（アプリと同じ）。すべて済むと押せる色になる */
.batch-visual.is-all-done .bt-save {
  background: var(--ink);
  color: #fff;
}

.hero-meta .is-key {
  color: var(--accent-deep);
  font-weight: 700;
}

.todo-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

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

@media (max-width: 560px) {
  .bt-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- 分割しないFAXの名前付け ---------- */
.rename-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

/* 直前の「まとめて処理」と左右を入れ替え、見本を左に置く */
.rename-text {
  order: 2;
}

.rename-text .batch-points {
  margin-top: 28px;
}

.rename-visual {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.rn-head,
.rn-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 16px;
}

.rn-head {
  padding-bottom: 10px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rn-list li {
  padding-block: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

.rn-from {
  position: relative;
  overflow: hidden;
  padding-right: 22px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rn-from::after {
  content: "→";
  position: absolute;
  right: 0;
  color: var(--line-2);
}

/* 左から書き足されるように名前が現れる */
.rn-to {
  font-weight: 700;
  overflow-wrap: anywhere;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease);
}

.rn-list li.is-done .rn-to {
  clip-path: inset(0 0 0 0);
}

.rn-list li.is-done .rn-from {
  text-decoration: line-through;
  text-decoration-color: var(--line-2);
}

html:not(.js) .rn-to {
  clip-path: none;
}

/* ---------- よくある質問 ---------- */
.faq {
  background: var(--bg-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.faq-list {
  border-top: 1px solid var(--line-2);
}

.faq-item {
  border-bottom: 1px solid var(--line-2);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

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

.faq-item summary:hover {
  color: var(--accent-deep);
}

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  transition: transform 0.3s var(--ease);
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item p {
  padding: 0 44px 22px 0;
  color: var(--ink-2);
  font-size: 15px;
}

@media (max-width: 860px) {
  .rename-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rename-text {
    order: 0;
  }
}

@media (max-width: 560px) {
  .rn-head {
    display: none;
  }

  .rn-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .rn-from::after {
    content: none;
  }

  .faq-item summary {
    padding-right: 36px;
  }

  .faq-item p {
    padding-right: 0;
  }
}

/* ---------- 15秒の紹介動画 ---------- */
.pv {
  padding-bottom: 0;
}

.pv-frame {
  margin: 40px 0 0;
}

.pv-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft) url("20260927-fax-splitter-pv-poster.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

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

.pv-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(23, 32, 44, 0.74);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.pv-toggle:hover {
  background: rgba(23, 32, 44, 0.9);
}

.pv-toggle:active {
  transform: scale(0.97);
}

.pv-toggle:disabled {
  cursor: default;
  opacity: 0.8;
}

.pv-toggle svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.pv-icon-play {
  fill: currentColor;
}

.pv-icon-pause {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.pv-media.is-playing .pv-icon-play {
  display: none;
}

.pv-media.is-playing .pv-icon-pause {
  display: block;
}

@media (max-width: 560px) {
  .pv-frame {
    margin-top: 28px;
  }

  .pv-media {
    border-radius: 18px;
  }

  .pv-toggle {
    right: 10px;
    bottom: 10px;
    padding: 6px 14px 6px 10px;
    font-size: 12px;
  }
}
