/* =========================================================
   Rec page — シンプル録音
   ========================================================= */

.rec-hero {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(212,118,58,0.10), transparent 70%);
}
.rec-hero__inner { text-align: center; max-width: 880px; margin: 0 auto; }
.rec-hero__sub {
  font-family: var(--sw-font-jp); font-weight: 900;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--sw-primary);
  margin: 0 0 16px;
}
.rec-hero h1 {
  font-family: var(--sw-font-jp); font-weight: 900;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.rec-hero h1 .mark { color: var(--sw-primary); position: relative; }
.rec-hero h1 .mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 14px;
  background: var(--sw-accent-light); z-index: -1; border-radius: 4px;
}
.rec-hero__lead { font-size: 17px; line-height: 1.85; color: var(--sw-text-secondary); margin: 0 auto 40px; max-width: 56ch; }

/* big record button — interactive CTA */
.rec-button {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sw-accent) 0%, var(--sw-accent-dark) 100%);
  display: grid; place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 24px 64px rgba(212,118,58,0.32), 0 0 0 12px rgba(212,118,58,0.10);
  animation: recPulse 2.4s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
  transition: transform var(--sw-dur-fast) var(--sw-ease), box-shadow var(--sw-dur-base) var(--sw-ease);
}
.rec-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 30px 72px rgba(212,118,58,0.42), 0 0 0 18px rgba(212,118,58,0.10);
}
.rec-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 10px 24px rgba(212,118,58,0.40), 0 0 0 8px rgba(212,118,58,0.14);
}
.rec-button:focus-visible {
  outline: 3px solid var(--sw-accent-dark);
  outline-offset: 6px;
}
@keyframes recPulse {
  0%, 100% { box-shadow: 0 24px 64px rgba(212,118,58,0.32), 0 0 0 12px rgba(212,118,58,0.10); }
  50%       { box-shadow: 0 24px 64px rgba(212,118,58,0.45), 0 0 0 22px rgba(212,118,58,0.05); }
}
.rec-button__inner {
  width: 80px; height: 80px;
  background: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
}
.rec-button__inner::after {
  content: ""; width: 28px; height: 28px;
  background: var(--sw-accent);
  border-radius: 50%;
}
.rec-button__label {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  font-family: var(--sw-font-jp); font-weight: 700; font-size: 14px;
  color: var(--sw-accent-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.rec-hero__cta { margin-top: 64px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* trust strip */
.rec-trust {
  background: #fff;
  border-top: 1px solid var(--sw-border);
  border-bottom: 1px solid var(--sw-border);
  padding: 40px 0;
}
.rec-trust__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  text-align: center;
}
@media (max-width: 720px) { .rec-trust__grid { grid-template-columns: 1fr; gap: 20px; text-align: left; } }
.rec-trust__item {
  display: flex; align-items: center; gap: 14px; justify-content: center;
}
@media (max-width: 720px) { .rec-trust__item { justify-content: flex-start; } }
.rec-trust__item .ic {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--sw-primary-light); color: var(--sw-primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.rec-trust__item strong { display: block; font-family: var(--sw-font-jp); font-weight: 700; font-size: 14px; }
.rec-trust__item span   { font-size: 12px; color: var(--sw-text-secondary); }

/* modes */
.modes {
  background: var(--sw-bg);
}
.modes__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 48px;
}
@media (max-width: 820px) { .modes__grid { grid-template-columns: 1fr; } }
.mode {
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 24px;
  padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden;
}
.mode__viz {
  height: 140px;
  background: var(--sw-bg);
  border-radius: 14px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  color: var(--sw-primary);
}
.mode__viz.audio::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(212,118,58,0.08), transparent 60%);
}
.mode__viz .waveform {
  display: flex; align-items: center; gap: 4px;
  height: 56px;
}
.mode__viz .waveform i {
  width: 4px; background: var(--sw-primary); border-radius: 2px;
  animation: wf 1.2s ease-in-out infinite;
}
@keyframes wf {
  0%, 100% { height: 30%; }
  50%       { height: 100%; }
}
.mode__viz .screen-frame {
  width: 80%; aspect-ratio: 16/10;
  background: #fff;
  border: 2px solid var(--sw-primary);
  border-radius: 8px;
  padding: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.mode__viz .screen-frame i {
  height: 6px; background: var(--sw-border); border-radius: 2px;
}
.mode__viz .screen-frame i:first-child { background: var(--sw-primary); width: 40%; }
.mode__viz .screen-frame i:nth-child(2) { width: 70%; }
.mode__viz .screen-frame i:nth-child(3) { width: 90%; }
.mode__viz .screen-frame i:nth-child(4) { width: 60%; }

.mode__head { display: flex; align-items: center; gap: 12px; }
.mode__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sw-primary); color: #fff;
  display: grid; place-items: center;
}
.mode h3 { font-family: var(--sw-font-jp); font-weight: 700; font-size: 22px; margin: 0; }
.mode p  { font-size: 14px; line-height: 1.85; color: var(--sw-text-secondary); margin: 0; }
.mode__formats {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 8px;
}
.mode__formats span {
  font-family: var(--sw-font-mono); font-size: 11px;
  background: var(--sw-bg); padding: 4px 10px; border-radius: 999px;
  color: var(--sw-text-secondary);
}

/* how (3 steps) — local copy of pattern */
.rec-how {
  background: linear-gradient(180deg, #fff 0%, var(--sw-primary-light) 100%);
}
.rec-how__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
@media (max-width: 820px) { .rec-how__steps { grid-template-columns: 1fr; } }
.rstep {
  background: #fff; border: 1px solid var(--sw-border); border-radius: 20px;
  padding: 28px;
  box-shadow: var(--sw-shadow-md);
}
.rstep__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sw-accent); color: #fff;
  font-family: var(--sw-font-en); font-weight: 700; font-size: 15px;
  margin-bottom: 16px;
}
.rstep h3 { font-family: var(--sw-font-jp); font-weight: 700; font-size: 19px; line-height: 1.45; margin: 0 0 10px; }
.rstep p  { font-size: 14px; line-height: 1.85; color: var(--sw-text-secondary); margin: 0; }
