/* ============================================================
   PERAICHI FORMS — Clean & Friendly Japanese SaaS Style
   ============================================================ */

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

:root {
  --orange:     #ED6D00;
  --orange-lt:  #fff4e8;
  --orange-mid: #f08020;
  --main:       #14C3DC;
  --main-lt:    #e6f9fc;
  --main-mid:   #0faec6;
  --text:       #373E42;
  --text-mid:   #636a6e;
  --text-muted: #a0a8ac;
  --bg:         #FFFFFF;
  --bg-gray:    #f4fbfc;
  --border:     #d6eff3;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(20,195,220,0.08);
  --shadow-md:  0 8px 40px rgba(20,195,220,0.12);
  --font:       'Noto Sans JP', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

.p-footer__inner {
    padding-top: 40px;
    padding-bottom: 40px;
}

.p-pricing-figma-cta-section__free-label {
    margin-bottom: 12px !important;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: var(--font);
}
.btn--primary {
  background: var(--main);
  color: #fff;
  border-color: var(--main);
  box-shadow: 0 4px 16px rgba(20,195,220,.28);
}
.btn--primary:hover {
  background: var(--main-mid);
  border-color: var(--main-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20,195,220,.36);
}
.btn--ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: #bbbbd0; color: var(--text); }
.btn--border {
  background: transparent;
  color: var(--main);
  border-color: var(--main);
}
.btn--border:hover { background: var(--main-lt); }
.btn--lg {
  padding: 14px 30px;
  font-size: 15px;
  border-radius: 100px;
}
.btn-arrow { font-size: 14px; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__logo { flex-shrink: 0; display: flex; align-items: center; }
.header__logo-img { height: 32px; width: auto; display: block; }
.header__nav { flex: 1; }
.header__nav ul { list-style: none; display: flex; gap: 2px; }
.header__nav a {
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 500;
  transition: .15s;
}
.header__nav a:hover { background: var(--bg-gray); color: var(--text); }
.header__nav .is-active a { background: var(--main-lt); color: var(--main); }
.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__login { font-size: 13px; font-weight: 600; color: var(--text-mid); transition: .15s; }
.header__login:hover { color: var(--main); }

/* ハンバーガー */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  margin-left: auto; flex-shrink: 0;
}
.header__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ドロワー */
.header__drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--bg);
  z-index: 300;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,.1);
}
.header__drawer.is-open { transform: translateX(0); }
.header__drawer-inner { padding-bottom: 40px; }
.header__drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 62px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-gray);
}
.header__drawer-logo { height: 28px; width: auto; }
.header__drawer-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-mid); padding: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background .15s, color .15s;
}
.header__drawer-close:hover { background: var(--border); color: var(--text); }
.header__drawer-nav ul { list-style: none; }
.header__drawer-nav li a {
  display: flex; align-items: center;
  height: 52px; padding: 0 20px;
  font-size: 14px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s;
}
.header__drawer-nav li a:hover { background: var(--bg-gray); color: var(--main); }
.header__drawer-nav .is-active a { color: var(--main); background: var(--main-lt); }
.header__drawer-actions {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 16px;
}
.header__drawer-actions .header__login {
  display: flex; align-items: center; justify-content: center;
  height: 44px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-mid);
  transition: border-color .15s, color .15s;
}
.header__drawer-actions .header__login:hover { border-color: var(--main); color: var(--main); }
.header__drawer-actions .btn { justify-content: center; height: 44px; font-size: 14px; }
.header__overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 250; opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.header__overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ── HERO ── */
.hero {
  padding: 48px 0 56px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  background: var(--main-lt);
  color: var(--main);
  font-size: 12px; font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: .04em;
}
.hero__title {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero__title em {
  color: var(--orange);
  position: relative;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  opacity: .35;
}
.hero__desc {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero__sub-note { font-size: 12px; color: var(--text-muted); }

.hero__visual {
  position: relative;
  animation: floatIn .7s .15s ease both;
}
@keyframes floatIn {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero__visual-img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.13));
}

.hero__float {
  position: absolute;
  background: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12.5px; font-weight: 700;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  white-space: nowrap;
  animation: floatBadge 3s ease-in-out infinite;
}
.hero__float span {
  background: var(--main-lt);
  color: var(--main);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.hero__float--a { top: -14px; right: -16px; animation-delay: 0s; }
.hero__float--b { bottom: 30px; left: -20px; animation-delay: 1.5s; }
@keyframes floatBadge {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  letter-spacing: .18em; color: var(--main);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 900; letter-spacing: -.02em;
  margin-bottom: 12px; line-height: 1.3;
}
.section-desc { color: var(--text-mid); font-size: 15px; }

/* ── FEATURES ── */
.features { background: #f0fbfd; padding: 80px 0; }

.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.feat-row:first-of-type { padding-top: 0; }
.feat-row:last-of-type  { border-bottom: none; padding-bottom: 0; }

/* 偶数行：画像右・テキスト左（direction反転） */
.feat-row--rev { direction: rtl; }
.feat-row--rev > * { direction: ltr; }

/* 画像エリア */
.feat-row__img {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-gray);
  line-height: 0;
  border: 1px solid #ECECEC;
  order: 2;
}
.feat-row__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキストエリア */
.feat-row__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feat-row__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--main);
}
.feat-row__title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.35;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}
.feat-row__title::before {
  content: '';
  position: absolute;
  left: 0; top: .1em; bottom: .1em;
  width: 4px; background: var(--main); border-radius: 2px;
}
.feat-row__desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.9;
}

/* ── STEPS ── */
.steps-section { padding: 96px 0; background: #fff; }
.steps { display: flex; align-items: flex-start; gap: 0; justify-content: center; }
.step { flex: 1; text-align: center; padding: 0 20px; }
.step__num { font-size: 11px; font-weight: 800; color: var(--main); letter-spacing: .1em; margin-bottom: 16px; }
.step__icon-wrap { margin: 0 auto 18px; width: 56px; }
.step__icon-wrap svg { width: 56px; height: 56px; }
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-mid); line-height: 1.75; }
.step-connector {
  flex-shrink: 0; padding-top: 38px;
  width: 40px; display: flex; align-items: flex-start; justify-content: center;
}
.step-connector span {
  display: block; width: 32px; height: 2px;
  background: linear-gradient(to right, #7de6f0, var(--main));
  border-radius: 2px; position: relative; margin-top: 28px;
}
.step-connector span::after {
  content: '';
  position: absolute; right: -6px; top: -4px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--main);
  border-top: 2px solid var(--main);
  transform: rotate(45deg);
}

/* ── p-pricing-figma-cta-section ── */
.p-pricing-section-spacing { padding-top: 48px; padding-bottom: 48px; }
.p-pricing-figma-cta-section { background: #14C3DC; }
.p-pricing-figma-cta-section__inner {
  max-width: 640px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.p-pricing-figma-cta-section__free-label {
  font-size: 20px; font-weight: 700; color: #fff; letter-spacing: .04em;
}
.p-pricing-figma-cta-section__btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 48px;
  background: #fff; color: #12AFC6;
  font-size: 16px; font-weight: 700;
  border-radius: 28px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(20,195,220,.36);
  transition: transform .18s, box-shadow .18s;
  font-family: var(--font);
}
.p-pricing-figma-cta-section__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,195,220,.45);
}
.p-pricing-figma-cta-section__note { font-size: 12px; color: #fff;    margin-top: 12px; }

/* ── FOOTER ── */
.footer { background: var(--text); color: rgba(255,255,255,.7); padding-top: 56px; }
.footer__inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; padding-bottom: 48px;
}
.footer__logo {
  font-size: 20px; font-weight: 900; color: #fff;
  display: block; margin-bottom: 10px; letter-spacing: -.02em;
}
.footer__tagline { font-size: 13px; line-height: 1.7; }
.footer__cols { display: flex; gap: 48px; }
.footer__col-title {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  color: rgba(255,255,255,.5); text-transform: uppercase; margin-bottom: 14px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: 13px; color: rgba(255,255,255,.65); transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.35);
}

/* ── ANIMATIONS ── */
.hero__text { animation: fadeUp .65s ease both; }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── RESPONSIVE ── */

/* 768px以下：ナビ・ボタン非表示→ハンバーガー表示 */
@media (max-width: 768px) {
  .header__nav     { display: none; }
  .header__actions { display: none; }
  .header__hamburger { display: flex; }
  .header__inner { gap: 0; }
}

/* 960px以下：ヒーロー1カラム・featureも1カラム */
@media (max-width: 960px) {
  /* Hero: テキスト上・画像下 */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* 画像は非表示にせず、テキストの後ろに自然に表示 */
  .hero__visual {
    display: block;
    padding: 0 12px; /* 左右に少し余白 */
  }
  /* フロートバッジは邪魔になるので非表示 */
  .hero__float { display: none; }

  /* ボタン：縦並び・幅100% */
  .hero__btns {
    flex-direction: column;
    gap: 10px;
  }
  .hero__btns .btn {
    width: 100%;
    justify-content: center;
  }

  /* Features */
  .feat-row {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }
  .feat-row--rev { direction: ltr; }
}

@media (max-width: 640px) {
  .hero { padding: 32px 0 40px; }
  .hero__desc { font-size: 14px; }

  .feat-row { padding: 28px 0; gap: 12px; }
  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step-connector { display: none; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { flex-direction: column; gap: 28px; }

  .p-pricing-figma-cta-section__btn {
    width: 100%;
    padding: 0 24px;
  }
}

/* ── FAQ ── */
.faq-section {
  padding: 80px 0;
  background: #fff;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--main);
}
.faq-item__q {
  list-style: none;
  padding: 18px 48px 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-item__q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--main-lt);
  color: var(--main);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-item__q::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23a0a8ac' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s;
}
.faq-item[open] .faq-item__q::after {
  transform: translateY(-50%) rotate(180deg);
}
.faq-item__a {
  padding: 0 20px 18px 60px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.85;
}

@media (max-width: 640px) {
  .faq-section { padding: 40px 0; }
  .faq-item__a { padding-left: 20px; }
    .feat-row { padding: 28px 0; gap: 12px; flex-direction: row-reverse;}
  .feat-row__body { gap: 12px;}
  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step__num { margin-bottom: 12px}
  .step h3 { margin-bottom: 4px;}
  .steps-section { padding: 28px 0;}
  .step-connector { display: none; }
  .cta-box { padding: 36px 28px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { flex-direction: column; gap: 28px; }
  .features { padding: 40px 0;}
  .hero { padding: 28px 0;}
  .hero__desc { margin-bottom: 16px;}
  .step__icon-wrap {margin: 0 auto 4px;}
  .section-title {margin-bottom: 28px;}
  .p-pricing-figma-cta-section__free-label { margin-bottom: 4px;}
  .p-pricing-figma-cta-section__note { margin-top: 12px;}
  .p-pricing-section-spacing { padding-top: 28px; padding-bottom: 28px;}
  .p-footer__inner { padding-top: 20px; padding-bottom: 20px;} 
}
