:root {
  --tria-dark: #2C5F7C;
  --tria-mid: #5B8DA8;
  --tria-light: #7BA8C0;
  --tria-pale: #A8C8D8;
  --tria-bg: #EDF4F8;
  --tria-bg2: #F6FAFE;
  --text-main: #1E3A4C;
  --text-sub: #5A7A8C;
  --text-muted: #8EAAB8;
  --accent: #FF6B35;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', 'Inter', sans-serif; background: #fff; color: var(--text-main); }

/* ===== SP-ONLY BR ===== */
.sp-only { display: none; }
@media (max-width: 960px) { .sp-only { display: inline; } }

/* ===== NAV ===== */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 48px; position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(44,95,124,0.08);
}
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-sub); font-size: 13px; text-decoration: none;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--tria-dark); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 10px 24px;
  border-radius: 6px; font-weight: 700; font-size: 13px;
  text-decoration: none !important; transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255,107,53,0.25);
}
.nav-cta:hover { background: #E55A28; }

/* ===== FIRST VIEW ===== */
.fv {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 40px;
  padding: 40px 48px;
  min-height: auto;
  background: linear-gradient(165deg, #fff 0%, var(--tria-bg2) 50%, var(--tria-bg) 100%);
  position: relative; overflow: hidden;
}
.fv::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,168,192,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.fv-left { flex: 1; max-width: 620px; position: relative; z-index: 1; text-align: left; }

.fv-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tria-dark); border-radius: 4px;
  padding: 6px 16px; margin-bottom: 20px;
}
.fv-badge span {
  font-family: 'Inter', sans-serif;
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
}

.fv-heading {
  font-size: 18px; font-weight: 700; line-height: 1.6;
  margin-bottom: 10px; color: var(--text-sub);
  letter-spacing: 1px;
}
.fv-main-copy {
  font-size: 44px; font-weight: 900; line-height: 1.35;
  margin-bottom: 20px; letter-spacing: -2px; color: var(--text-main);
}
.fv-main-copy .em {
  position: relative; 
  background: linear-gradient(180deg, #FF6B35 0%, #E05520 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fv-main-copy .em::after {
  content: ''; position: absolute; left: -2px; bottom: 2px;
  width: calc(100% + 4px); height: 14px;
  background: linear-gradient(90deg, rgba(255,107,53,0.2), rgba(255,140,66,0.1));
  z-index: -1; border-radius: 2px;
}
.fv-sub {
  color: var(--text-sub); font-size: 15px; line-height: 1.9; margin-bottom: 32px;
}

/* ===== STATS ===== */
.stats-row {
  display: flex; align-items: stretch;
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 20px rgba(44,95,124,0.08), 0 0 0 1px rgba(44,95,124,0.06);
}
.stat-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 16px 24px; text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 22%;
  height: 56%; width: 1px; background: rgba(44,95,124,0.1);
}
.stat-number-row {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 52px; font-weight: 900;
  background: linear-gradient(180deg, #FF6B35 0%, #E05520 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; letter-spacing: -2px;
}
.stat-unit {
  font-size: 18px; font-weight: 800; color: var(--text-main);
  letter-spacing: -0.5px;
}
.stat-plus {
  font-family: 'Inter', sans-serif;
  font-size: 24px; font-weight: 700; color: #FF6B35;
  margin-left: 2px;
}
.stat-label {
  font-size: 12px; color: var(--text-sub); margin-top: 10px;
  font-weight: 600; letter-spacing: 0.5px;
}

/* ===== CTA ===== */
.fv-cta-row { display: flex; gap: 12px; margin-bottom: 0; }
/* PC: show fv-bottom-pc, hide fv-bottom-sp */
.fv-bottom-pc { display: block; }
.fv-bottom-sp { display: none; }
.btn-main {
  flex: 1; background: linear-gradient(180deg, #FF8C50 0%, #FF6B35 40%, #E85520 100%); color: #fff;
  font-size: 26px; font-weight: 900; padding: 24px 28px;
  border-radius: 14px; border: none; cursor: pointer;
  transition: all 0.15s; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 0 #C04010, 0 8px 20px rgba(255,107,53,0.35);
  letter-spacing: 0.5px;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-main:hover { background: linear-gradient(180deg, #FF9960 0%, #FF7840 40%, #E55A28 100%); transform: translateY(-2px); box-shadow: 0 8px 0 #C04010, 0 12px 28px rgba(255,107,53,0.4); }
.btn-main:active { transform: translateY(3px); box-shadow: 0 2px 0 #C04010, 0 4px 10px rgba(255,107,53,0.3); }
.btn-main .arrow { font-size: 22px; transition: transform 0.2s; }
.btn-main:hover .arrow { transform: translateX(3px); }
.btn-sub {
  flex: 1; background: #fff; color: var(--tria-dark);
  font-size: 16px; font-weight: 700; padding: 20px 24px;
  border-radius: 10px; border: 2px solid var(--tria-pale);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-sub:hover { background: var(--tria-bg2); border-color: var(--tria-mid); }

.fv-media { display: flex; gap: 24px; }
.fv-media-item { display: flex; align-items: center; gap: 6px; }
.fv-media-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tria-mid); }
.fv-media-item span { color: var(--text-sub); font-size: 12px; font-weight: 500; }

/* ===== RIGHT: Video ===== */
.fv-right {
  flex: 0 0 380px; position: relative; z-index: 1;
  display: flex; gap: 20px; justify-content: center;
  align-items: flex-start;
}
.phone-mock {
  width: 200px; border-radius: 28px; overflow: hidden;
  background: #fff; position: relative;
  box-shadow: 0 20px 60px rgba(44,95,124,0.15), 0 0 0 3px rgba(44,95,124,0.08);
}
.phone-mock.secondary {
  width: 180px; margin-top: 56px; opacity: 0.8;
  box-shadow: 0 16px 48px rgba(44,95,124,0.1), 0 0 0 3px rgba(44,95,124,0.06);
}
.phone-notch {
  height: 24px; background: #fff; display: flex; align-items: center; justify-content: center;
}
.phone-notch-pill {
  width: 50px; height: 6px; border-radius: 3px; background: rgba(44,95,124,0.1);
}
.phone-screen {
  width: 100%; aspect-ratio: 9/16;
  position: relative; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 14px; overflow: hidden;
}
.screen-bg-1 {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #d6eaf0 0%, #a8d0df 30%, #5B8DA8 70%, #2C5F7C 100%);
}
.screen-bg-2 {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #e0d8e8 0%, #b8c8d8 30%, #7BA8C0 70%, #3d6e8a 100%);
}
.video-play {
  position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.video-play::after {
  content: ''; width: 0; height: 0;
  border-left: 14px solid var(--tria-dark);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent; margin-left: 3px;
}
.video-overlay { position: relative; z-index: 2; }
.video-tag {
  background: rgba(255,255,255,0.85); border-radius: 4px; padding: 4px 10px;
  font-size: 10px; color: var(--tria-dark); font-weight: 700;
  display: inline-block; margin-bottom: 5px;
}
.video-caption {
  font-size: 11px; color: #fff; font-weight: 600;
  line-height: 1.5; text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.video-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.2); z-index: 2;
}
.video-bar-fill { height: 100%; width: 65%; background: #fff; border-radius: 0 2px 2px 0; }
.video-float-label {
  position: absolute; top: -8px; right: -8px; z-index: 3;
  background: var(--accent); color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 800; padding: 4px 10px;
  border-radius: 4px; letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(255,107,53,0.3);
}
.phone-result-badge {
  position: absolute; bottom: 80px; left: -16px; z-index: 3;
  background: #fff; border-radius: 8px; padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(44,95,124,0.12);
  display: flex; align-items: center; gap: 8px;
}
.badge-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(44,95,124,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--tria-dark); font-weight: 800;
  font-family: 'Inter', sans-serif;
}
.badge-text {
  font-size: 10px; color: var(--text-sub); font-weight: 500; line-height: 1.4;
}
.badge-text strong {
  display: block; font-size: 13px; color: var(--tria-dark); font-weight: 800;
}

/* ===== PLACEHOLDER ===== */
.sections-placeholder {
  padding: 80px 48px; text-align: center;
  background: #fff; border-top: 1px solid rgba(44,95,124,0.06);
  border-bottom: 1px solid rgba(44,95,124,0.06);
}
.sections-placeholder p { color: var(--text-muted); font-size: 14px; }

/* ===== FORM ===== */
.form-section {
  padding: 80px 48px;
  background: linear-gradient(180deg, var(--tria-bg2) 0%, var(--tria-bg) 100%);
}
.form-inner { max-width: 520px; margin: 0 auto; }
.form-title {
  text-align: center; font-size: 28px; font-weight: 800;
  margin-bottom: 8px; color: var(--text-main);
}
.form-subtitle {
  text-align: center; font-size: 14px;
  color: var(--text-sub); margin-bottom: 40px;
}
.form-card {
  background: #fff; border: 1px solid rgba(44,95,124,0.08);
  border-radius: 14px; padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(44,95,124,0.06);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-main); margin-bottom: 6px;
}
.form-group label .req { color: #D94040; font-size: 11px; margin-left: 4px; }
.form-group label .opt { color: var(--text-muted); font-size: 11px; margin-left: 4px; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--tria-bg2);
  border: 1.5px solid rgba(44,95,124,0.1); border-radius: 8px;
  padding: 13px 15px; font-size: 14px; color: var(--text-main);
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--tria-mid); background: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 800; padding: 18px;
  border-radius: 10px; border: none; cursor: pointer;
  margin-top: 8px; transition: background 0.2s; font-family: inherit;
  box-shadow: 0 4px 16px rgba(255,107,53,0.25);
}
.form-submit:hover { background: #E55A28; }
.form-note {
  text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 16px;
}
.form-trust {
  display: flex; justify-content: center; gap: 20px; margin-top: 8px;
}
.form-trust span {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-sub);
}
.form-trust .check { color: var(--tria-dark); font-weight: 700; font-size: 13px; }

footer {
  padding: 28px 48px; text-align: center;
  background: var(--text-main);
  color: rgba(255,255,255,0.4); font-size: 12px;
}
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }

@media (max-width: 960px) {
  nav { padding: 14px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .fv { flex-direction: column; align-items: center; padding: 32px 20px 40px; min-height: auto; }
  .fv-left { max-width: 100%; text-align: center; }
  .fv-right { flex: unset; width: 100%; justify-content: center; margin: 0 0 24px; }
  .fv-bottom-pc { display: none !important; }
  .fv-bottom-sp { display: block !important; width: 100%; }
  .fv-bottom-sp .fv-cta-row { align-items: center; }
  .fv-bottom-sp .btn-main { margin: 0 auto; }
  .fv-main-copy { font-size: 36px; white-space: normal; letter-spacing: -1px; }
  .fv-heading { font-size: 16px; }
  .fv-sub { font-size: 14px; }
  .fv-sub br { display: none; }
  .stat-num { font-size: 40px; letter-spacing: -1px; }
  .stat-unit { font-size: 16px; }
  .stat-plus { font-size: 22px; }
  .stat-item { padding: 22px 12px 20px; }
  .stat-label { font-size: 12px; }
  .stats-row { box-shadow: 0 4px 24px rgba(44,95,124,0.12), 0 0 0 1.5px rgba(255,107,53,0.15) !important; }
  .fv-cta-row { flex-direction: column; align-items: center; }
  .btn-main { font-size: 24px; padding: 22px 24px; }
  .btn-sub { font-size: 15px; padding: 18px 20px; }
  .phone-mock { width: 280px; }
  .phone-mock.secondary { width: 230px; margin-top: 36px; }
  .phone-result-badge { display: none; }
  .form-section { padding: 48px 20px; }
  .form-card { padding: 28px 20px; }
  .form-title { font-size: 24px; }
  .form-trust { flex-direction: column; align-items: center; gap: 6px; }
  .pain-cards { flex-direction: column !important; }
}
@media (max-width: 480px) {
  .fv { padding: 24px 16px 32px; }
  .fv-badge span { font-size: 10px; letter-spacing: 1px; }
  .fv-heading { font-size: 14px; }
  .fv-main-copy { font-size: 24px; line-height: 1.4; letter-spacing: -1px; }
  .fv-sub { font-size: 13px; line-height: 1.8; margin-bottom: 24px; }
  .stats-row { border-radius: 12px; box-shadow: 0 4px 24px rgba(44,95,124,0.12), 0 0 0 1.5px rgba(255,107,53,0.15) !important; }
  .stat-num { font-size: 30px; }
  .stat-unit { font-size: 13px; }
  .stat-plus { font-size: 16px; }
  .stat-item { padding: 18px 6px 16px; }
  .stat-label { font-size: 10px; letter-spacing: 0; }
  .fv-cta-row { gap: 10px; margin-bottom: 24px; }
  .btn-main { font-size: 22px; padding: 20px 20px; }
  .btn-sub { font-size: 14px; padding: 16px 16px; }
  .fv-right { gap: 10px; }
  .phone-mock { width: 250px; border-radius: 20px; }
  .phone-mock.secondary { width: 200px; margin-top: 28px; }
  .video-play { width: 36px; height: 36px; }
  .video-play::after { border-left-width: 10px; border-top-width: 7px; border-bottom-width: 7px; }
  .form-section { padding: 40px 16px; }
  .form-card { padding: 24px 16px; }
  .form-title { font-size: 22px; }
  .form-submit { font-size: 15px; padding: 16px; }
}
/* ===== COMPREHENSIVE MOBILE FIX (414-480px: iPhone 14 Pro Max etc.) ===== */
@media (min-width: 414px) and (max-width: 480px) {

  /* --- Global --- */
  section[style*="padding"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  [style*="white-space: nowrap"]:not(.fv-line2) {
    white-space: normal !important;
  }

  /* --- FV --- */
  .fv { padding: 24px 20px 28px !important; gap: 16px !important; }
  .fv-main-copy { font-size: 26px !important; letter-spacing: -0.5px !important; line-height: 1.35 !important; }
  .fv-line2 { font-size: 24px !important; }
  .fv-heading { font-size: 15px !important; }
  .fv-sub { font-size: 14px !important; line-height: 1.7 !important; }
  .fv-sub br { display: none !important; }

  /* --- 実績訴求 (Achieve) --- */
  .achieve-section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .achieve-bubble { padding: 12px 20px !important; }
  .achieve-bubble p { font-size: 15px !important; }
  .achieve-section div[style*="height: 32px"] { height: 16px !important; }
  .achieve-section div[style*="letter-spacing: 3px"] { font-size: 13px !important; letter-spacing: 2px !important; }
  .achieve-section p[style*="margin-bottom: 40px"] { margin-bottom: 24px !important; }
  .achieve-num-row { gap: 8px !important; }
  .achieve-laurel { width: 30px !important; height: 54px !important; }
  .achieve-big-num { font-size: 56px !important; letter-spacing: -2px !important; }
  .achieve-big-unit { font-size: 18px !important; }

  /* --- 課題提起 (Pain) --- */
  .pain-section h2 { font-size: 22px !important; line-height: 1.5 !important; }
  .pain-section h2 br { display: none !important; }
  .pain-card[style*="padding: 28px 32px"] { padding: 20px 16px !important; }
  .pain-list span { font-size: 13px !important; }
  .pain-label { font-size: 14px !important; padding: 8px 28px !important; }

  /* --- Triaならセクション --- */
  .tria-nara-section span { font-size: 22px !important; }

  /* --- キャッチコピー --- */
  .catch-copy { font-size: 22px !important; white-space: normal !important; line-height: 1.5 !important; }
  .catch-copy span[style*="font-size: 50px"] { font-size: 28px !important; }
  div[style*="padding: 36px 56px"] { padding: 24px 20px !important; }

  /* --- 3つの強み --- */
  .strengths-section { padding: 0 20px 48px !important; }
  .strength-card { flex-direction: column !important; gap: 20px !important; margin-bottom: 36px !important; }
  .strength-card[style*="flex-direction: row-reverse"] { flex-direction: column !important; }
  .strength-visual[style*="flex: 0 0 320px"] { flex: unset !important; width: 100% !important; padding: 20px !important; }
  .strength-visual svg { width: 100% !important; max-width: 220px !important; height: auto !important; }
  .strength-text h3 { font-size: 20px !important; }
  .strength-text h3 br { display: none !important; }
  .strength-text p { font-size: 13px !important; line-height: 1.8 !important; }

  /* --- Triaなら解決 --- */
  .resolve-section { padding-top: 40px !important; padding-bottom: 40px !important; }
  .resolve-section h2 { font-size: 22px !important; }
  .resolve-needs { flex-wrap: wrap !important; gap: 8px !important; justify-content: center !important; }
  .resolve-needs > div[style*="display: flex"][style*="align-items: center"] { gap: 6px !important; }
  .resolve-needs span[style*="font-size: 14px"] { font-size: 12px !important; }
  .resolve-cards { flex-direction: column !important; align-items: center !important; gap: 16px !important; }
  .resolve-cards > div[style*="max-width: 220px"] { max-width: 100% !important; display: flex !important; align-items: center !important; gap: 16px !important; flex-direction: row !important; }
  .resolve-cards > div[style*="max-width: 220px"] svg { width: 80px !important; height: 80px !important; flex-shrink: 0 !important; margin-bottom: 0 !important; }
  .resolve-cards div[style*="font-size: 28px"] { font-size: 20px !important; text-align: left !important; }
  .resolve-cards div[style*="font-size: 20px"]:not(.resolve-section h2) { font-size: 16px !important; text-align: left !important; }

  /* --- なぜ安いのか --- */
  .why-cheap-section h2 { font-size: 22px !important; }
  .why-cheap-grid { flex-direction: column !important; gap: 16px !important; }
  .why-cheap-grid > div[style*="display: flex"][style*="align-items: center"][style*="flex-shrink"] { display: none !important; }
  .why-cheap-grid > div[style*="padding: 32px 28px"] { padding: 20px 16px !important; }
  .why-cheap-grid svg { width: 100% !important; max-width: 100% !important; height: auto !important; }

  /* --- 実績の具体例 (Case Studies) --- */
  .case-studies { flex-direction: column !important; gap: 16px !important; }
  .case-card { padding: 24px 16px !important; }
  .case-badge span { font-size: 14px !important; }
  .case-row { gap: 10px !important; }
  .case-past-box, .case-after-box { padding: 12px 10px !important; }
  .case-past-num { font-size: 24px !important; }
  .case-after-num { font-size: 28px !important; }
  .case-cost-before { font-size: 20px !important; }
  .case-cost-after { font-size: 24px !important; }
  .case-cost-unit { font-size: 13px !important; }
  .case-arrow svg { width: 32px !important; height: 20px !important; }

  /* --- 比較表 --- */
  .compare-section h2 { font-size: 22px !important; }
  .compare-grid { grid-template-columns: 50px 1fr 1fr 1fr !important; }
  .compare-grid > div[style*="padding: 24px"] { padding: 14px 6px !important; }
  .compare-grid > div[style*="padding: 20px"] { padding: 12px 6px !important; }
  .compare-grid > div[style*="font-size: 13px"],
  .compare-grid > div[style*="font-size: 12px"] { font-size: 10px !important; padding: 6px 3px !important; line-height: 1.3 !important; }
  .compare-grid div[style*="font-size: 26px"] { font-size: 18px !important; }
  .compare-grid div[style*="font-size: 22px"]:not(.catch-copy) { font-size: 15px !important; }
  .compare-grid p { font-size: 11px !important; line-height: 1.5 !important; }
  .compare-grid p br { display: none !important; }
  .compare-grid p[style*="font-size: 24px"] { font-size: 15px !important; }
  .compare-grid p[style*="font-size: 22px"] { font-size: 14px !important; }
  .compare-grid p[style*="font-size: 24px"] span[style*="font-size: 28px"],
  .compare-grid p[style*="font-size: 22px"] span[style*="font-size: 28px"] { font-size: 18px !important; }
  .compare-grid p[style*="font-size: 16px"] { font-size: 12px !important; }

  /* --- チーム --- */
  .team-section { padding: 48px 20px !important; }
  .team-section h2 { font-size: 24px !important; }
  .team-row { flex-direction: column !important; gap: 12px !important; }
  .team-card-main h3 { white-space: normal !important; font-size: 14px !important; }
  .team-card-main p { font-size: 12px !important; }

  /* --- 制作フロー --- */
  .flow-section { padding: 48px 20px !important; }
  .flow-section h2 { font-size: 22px !important; }
  .flow-grid { flex-direction: column !important; gap: 32px !important; }

  /* --- FAQ --- */
  .faq-section { padding: 48px 20px !important; }
  .faq-section h2 { font-size: 22px !important; }
  .faq-item summary { font-size: 14px !important; gap: 10px !important; }
  .faq-answer { font-size: 13px !important; padding-left: 24px !important; }

  /* --- CTA bar --- */
  .cta-bar-section { padding: 28px 20px !important; }
  .cta-bar-section .btn-main { font-size: 22px !important; padding: 20px 20px !important; }

  /* --- Contact Form --- */
  .form-section { padding: 40px 20px !important; }
  .form-title { font-size: 22px !important; }
  .form-card { padding: 24px 16px !important; }

  /* --- Section headings global --- */
  h2[style*="font-size: 30px"] { font-size: 22px !important; line-height: 1.5 !important; }
  h2[style*="font-size: 28px"] { font-size: 20px !important; line-height: 1.5 !important; }
  h3[style*="font-size: 24px"] { font-size: 20px !important; }
  h3[style*="font-size: 22px"] { font-size: 18px !important; }
  /* h2内のbrを非表示 */
  h2 br { display: none !important; }
}

/* ===== SMALLER PHONES (< 414px) ===== */
@media (max-width: 413px) {
  .fv-main-copy { font-size: 24px !important; letter-spacing: -0.5px !important; }
  .fv-line2 { font-size: 21px !important; }
  .catch-copy { font-size: 18px !important; }
  .catch-copy span[style*="font-size: 50px"] { font-size: 22px !important; }
  .compare-grid { grid-template-columns: 42px 1fr 1fr 1fr !important; }
  .compare-grid p br { display: none !important; }
}
/* Pain section responsive overrides */
@media (max-width: 960px) {
  .pain-section { padding: 56px 20px 0 !important; }
  .pain-section h2 { font-size: 24px !important; }
  .pain-section h2 br { display: none; }
  .pain-section .pain-list span { font-size: 14px !important; }
  .pain-section .pain-card { flex-direction: column !important; }
  .pain-illust { display: none !important; }
  .tria-nara-section { padding: 16px 20px 48px !important; }
  .tria-nara-section span { font-size: 24px !important; }
  .catch-section { padding: 0 20px 40px !important; }
  .catch-section div[style*="padding: 36px 56px"] { padding: 28px 24px !important; }
  .catch-badges { gap: 8px !important; flex-wrap: nowrap !important; }
  .catch-badges > div[style*="max-width: 240px"] { max-width: none !important; flex: 1 !important; padding: 16px 10px 14px !important; }
  .catch-badges > div[style*="max-width: 240px"] span[style*="font-size: 20px"] { font-size: 15px !important; }
  .catch-badges > div[style*="max-width: 240px"] div[style*="width: 44px"] { width: 34px !important; height: 34px !important; }
  .catch-badges > div[style*="max-width: 240px"] div[style*="width: 44px"] svg { width: 18px !important; height: 18px !important; }
  .catch-badges > div[style*="display: flex"][style*="align-items: center"]:not([style*="max-width"]) > div { width: 30px !important; height: 30px !important; }
  .catch-badges > div[style*="display: flex"][style*="align-items: center"]:not([style*="max-width"]) span { font-size: 16px !important; }
  .catch-copy { font-size: 30px !important; white-space: normal !important; }
  .catch-copy span[style*="font-size: 50px"] { font-size: 38px !important; }
  .strengths-section { padding: 0 20px 56px !important; }
  .strength-card { flex-direction: column !important; gap: 24px !important; }
  .strength-visual { flex: unset !important; width: 100% !important; padding: 20px 12px !important; }
  .strength-visual svg { width: 100% !important; max-width: 100% !important; height: auto !important; }
  .strength-text h3 { font-size: 22px !important; }
  .strength-text h3 br { display: none; }
  .sim-cards { flex-direction: column !important; }
  .flow-steps { flex-direction: column !important; gap: 20px !important; }
  .flow-step { padding: 0 !important; }
  .flow-step div[style*="position: absolute; top: 32px"] { display: none; }
  .flow-grid { flex-direction: column !important; gap: 40px !important; }
}
@media (max-width: 480px) {
  .pain-section { padding: 40px 16px 0 !important; }
  .pain-section h2 { font-size: 20px !important; }
  .pain-section .pain-list span { font-size: 13px !important; }
  .pain-section .pain-card { padding: 20px 20px !important; }
  .pain-section .pain-label { font-size: 13px !important; padding: 8px 28px !important; }
  .tria-nara-section span { font-size: 22px !important; }
  .tria-nara-section img { height: 32px !important; }
  .catch-section { padding: 0 16px 32px !important; }
  .catch-badges { gap: 6px !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: stretch !important; }
  .catch-badges > div[style*="max-width: 240px"] { max-width: none !important; flex: 1 !important; padding: 12px 6px 10px !important; }
  .catch-badges > div[style*="max-width: 240px"] span[style*="font-size: 20px"] { font-size: 13px !important; }
  .catch-badges > div[style*="max-width: 240px"] div[style*="width: 44px"] { width: 30px !important; height: 30px !important; margin-bottom: 6px !important; }
  .catch-badges > div[style*="max-width: 240px"] div[style*="width: 44px"] svg { width: 16px !important; height: 16px !important; }
  .catch-badges > div[style*="display: flex"][style*="align-items: center"]:not([style*="max-width"]) > div { width: 24px !important; height: 24px !important; }
  .catch-badges > div[style*="display: flex"][style*="align-items: center"]:not([style*="max-width"]) span { font-size: 14px !important; }
  .catch-copy { font-size: 22px !important; white-space: normal !important; }
  .catch-copy span[style*="font-size: 50px"] { font-size: 28px !important; }
  .catch-section div[style*="padding: 36px 56px"] { padding: 20px 16px !important; }
  .strengths-section { padding: 0 16px 40px !important; }
  .strength-card { margin-bottom: 36px !important; }
  .strength-visual { padding: 16px 8px !important; }
  .strength-visual svg { width: 100% !important; max-width: 100% !important; height: auto !important; }
  .strength-text h3 { font-size: 18px !important; }
  .strength-text h3 br { display: none !important; }
  .strength-text p { font-size: 12px !important; }
}
/* Simulation / Flow / FAQ responsive */
@media (max-width: 960px) {
  .achieve-section { padding: 48px 20px !important; }
  .achieve-bubble { padding: 14px 24px !important; }
  .achieve-bubble p { font-size: 16px !important; }
  .achieve-num-row { gap: 12px !important; }
  .achieve-laurel { width: 36px !important; height: 64px !important; flex-shrink: 0 !important; }
  .achieve-big-num { font-size: 72px !important; letter-spacing: -3px !important; }
  .achieve-big-unit { font-size: 22px !important; }
  .achieve-section div[style*="gap: 20px"][style*="justify-content: center"]:not(.achieve-num-row) { flex-wrap: wrap !important; }
  .achieve-section p[style*="margin-bottom: 40px"] br { display: none !important; }
  .sim-section { padding: 56px 20px !important; }
  .sim-section h2 { font-size: 24px !important; }
  .sim-section h2 br { display: none; }
  .compare-section { padding: 56px 16px !important; }
  .cta-bar-section { padding: 32px 20px !important; }
  .compare-section h2 { font-size: 24px !important; }
  .resolve-section { padding: 48px 20px !important; }
  .resolve-needs { gap: 16px !important; flex-wrap: wrap !important; justify-content: center !important; }
  .resolve-cards { gap: 12px !important; }
  .resolve-cards div[style*="font-size: 28px"] { font-size: 22px !important; }
  .resolve-cards div[style*="font-size: 20px"] { font-size: 17px !important; }
  .resolve-section h2 { font-size: 24px !important; }
  .why-cheap-section { padding: 48px 20px !important; }
  .why-cheap-grid { flex-direction: column !important; gap: 16px !important; }
  .why-cheap-grid > div:nth-child(2) { display: none !important; }
  .why-cheap-grid > div:first-child svg, .why-cheap-grid > div:last-child svg { width: 100% !important; max-width: 100% !important; height: auto !important; }
  .case-studies { flex-direction: column !important; gap: 16px !important; }
  .case-card { padding: 28px 24px !important; text-align: center !important; }
  .case-card .case-section-label { font-size: 14px !important; text-align: center !important; }
  .case-card .case-row { gap: 16px !important; justify-content: center !important; }
  .case-card .case-row > div[style*="flex: 1"] { flex: 1 !important; min-width: 0 !important; }
  .case-card .case-past-box, .case-card .case-after-box { padding: 14px 12px !important; width: 100% !important; }
  .case-card .case-past-label, .case-card .case-after-label { font-size: 13px !important; }
  .case-card .case-past-text { font-size: 16px !important; }
  .case-card .case-past-num { font-size: 28px !important; }
  .case-card .case-after-text { font-size: 16px !important; }
  .case-card .case-after-num { font-size: 32px !important; }
  .case-card .case-cost-before { font-size: 22px !important; }
  .case-card .case-cost-after { font-size: 28px !important; }
  .case-card .case-cost-unit { font-size: 14px !important; }
  .case-card .case-arrow svg { width: 40px !important; height: 24px !important; }
  .case-card .case-badge { display: block !important; text-align: center !important; }

  .team-section { padding: 56px 20px !important; }
  .team-card-main { flex-direction: row !important; padding: 20px !important; gap: 14px !important; align-items: flex-start !important; }
  .team-card-main > div:first-child { width: auto !important; }
  .team-card-main > div:first-child > div:first-child { width: 90px !important; height: 100px !important; border-radius: 10px !important; }
  .team-card-main > div:nth-child(2) { padding-top: 2px !important; }
  .team-card-main > div:nth-child(2) > div:first-child { margin-bottom: 8px !important; }
  .team-card-main > div:nth-child(2) > div:first-child > div:first-child { font-size: 10px !important; }
  .team-card-main > div:nth-child(2) > div:first-child > div:nth-child(2) > div:first-child { font-size: 17px !important; }
  .team-card-main > div:nth-child(2) > div:first-child > div:nth-child(2) > div:nth-child(2) { font-size: 11px !important; }
  .team-card-main h3 { font-size: 14px !important; white-space: normal !important; margin-bottom: 6px !important; }
  .team-card-main p { font-size: 12px !important; }
  .team-row { flex-direction: column !important; gap: 16px !important; }
  .compare-grid { grid-template-columns: 60px 1fr 1fr 1fr !important; }
  .compare-grid p { font-size: 11px !important; }
  .compare-grid div[style*="font-size: 20px"] p { font-size: 14px !important; }
  .compare-grid div[style*="font-size: 26px"] { font-size: 20px !important; }
  .compare-grid div[style*="font-size: 22px"] { font-size: 17px !important; }
  .flow-section { padding: 56px 20px !important; }
  .flow-section h2 { font-size: 24px !important; }
  .flow-section h2 br { display: none; }
  .flow-section p br { display: none !important; }
  .flow-section .flow-grid > div > div[style*="position: absolute"][style*="width: 3px"] { display: none !important; }
  .compare-section h2 br { display: none !important; }
  .faq-section { padding: 56px 20px !important; }
  .faq-section h2 { font-size: 24px !important; }
}
@media (max-width: 480px) {
  .achieve-section { padding: 40px 16px !important; }
  .achieve-bubble { padding: 12px 20px !important; }
  .achieve-bubble p { font-size: 15px !important; }
  .achieve-num-row { gap: 8px !important; }
  .achieve-laurel { width: 28px !important; height: 50px !important; }
  .achieve-big-num { font-size: 52px !important; letter-spacing: -2px !important; }
  .achieve-big-unit { font-size: 16px !important; }
  .achieve-section div[style*="gap: 20px"][style*="justify-content: center"]:not(.achieve-num-row) { flex-direction: column !important; align-items: center !important; }
  .achieve-section div[style*="gap: 20px"][style*="justify-content: center"]:not(.achieve-num-row) > div[style*="max-width: 240px"] { max-width: 100% !important; width: 100% !important; }
  .sim-section h2 { font-size: 22px !important; }
  .compare-section { padding: 48px 10px !important; }
  .cta-bar-section { padding: 28px 16px !important; }
  .compare-section h2 { font-size: 20px !important; }
  .compare-section h2 br { display: none; }
  .resolve-section { padding: 40px 16px !important; }
  .resolve-needs { flex-direction: column !important; align-items: center !important; gap: 10px !important; }
  .resolve-cards { flex-direction: column !important; gap: 24px !important; align-items: center !important; }
  .resolve-cards > div[style*="max-width: 220px"] { max-width: 100% !important; }
  .resolve-cards div[style*="font-size: 28px"] { font-size: 20px !important; }
  .resolve-cards div[style*="font-size: 20px"] { font-size: 16px !important; }
  .resolve-section h2 { font-size: 20px !important; }
  .why-cheap-section { padding: 40px 16px !important; }
  .why-cheap-section h2 { font-size: 22px !important; }
  .why-cheap-grid > div:first-child, .why-cheap-grid > div:last-child { padding: 24px 16px !important; }
  .team-section { padding: 40px 16px !important; }
  .team-section h2 { font-size: 24px !important; }
  .case-card { padding: 24px 12px !important; text-align: center !important; }
  .case-card .case-badge { font-size: 13px !important; padding: 5px 12px !important; margin-bottom: 16px !important; display: block !important; text-align: center !important; }
  .case-card .case-section-label { font-size: 12px !important; margin-bottom: 8px !important; text-align: center !important; }
  .case-card .case-row { gap: 8px !important; }
  .case-card .case-row > div[style*="flex: 1"] { flex: 1 !important; min-width: 0 !important; }
  .case-card .case-past-box, .case-card .case-after-box { padding: 10px 6px !important; border-radius: 8px !important; width: 100% !important; }
  .case-card .case-past-label, .case-card .case-after-label { font-size: 11px !important; }
  .case-card .case-past-text { font-size: 13px !important; }
  .case-card .case-past-num { font-size: 22px !important; }
  .case-card .case-after-text { font-size: 13px !important; }
  .case-card .case-after-num { font-size: 26px !important; }
  .case-card .case-cost-before { font-size: 18px !important; }
  .case-card .case-cost-after { font-size: 22px !important; }
  .case-card .case-cost-unit { font-size: 12px !important; }
  .case-card .case-arrow svg { width: 28px !important; height: 18px !important; }
  .team-card { padding: 16px !important; }
  .team-card-main { padding: 16px !important; }
  .team-card-main h3 { font-size: 13px !important; white-space: normal !important; }
  .team-row { flex-direction: column !important; gap: 12px !important; }
  .compare-grid { grid-template-columns: 42px 1fr 1fr 1fr !important; }
  .compare-grid p { font-size: 9px !important; }
  .compare-grid div[style*="font-size: 20px"] p { font-size: 12px !important; }
  .compare-grid div[style*="font-size: 26px"] { font-size: 16px !important; }
  .compare-grid div[style*="font-size: 22px"] { font-size: 14px !important; }
  .compare-grid > div[style*="font-size: 13px"], .compare-grid > div[style*="font-size: 12px"] { font-size: 9px !important; }
  .compare-section .compare-bottom-note br { display: none; }
  .flow-section { padding: 48px 16px !important; }
  .flow-section h2 { font-size: 20px !important; }
  .flow-section p br { display: none !important; }
  .faq-section h2 { font-size: 22px !important; }
  .faq-section .faq-item summary { font-size: 14px !important; }
  .faq-section .faq-answer { font-size: 13px !important; }
}

/* ===== COMPARE SP CARD LAYOUT ===== */
.compare-sp { display: none; }

@media (max-width: 960px) {
  .compare-pc { display: none !important; }
  .compare-sp { display: block !important; }
}

.compare-sp-block {
  margin-bottom: 24px;
}
.compare-sp-block:last-child { margin-bottom: 0; }

.compare-sp-label {
  font-size: 14px; font-weight: 800; color: #555;
  text-align: center; margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.compare-sp-row {
  display: flex; flex-direction: column; gap: 8px;
}

.compare-sp-card {
  background: #fff; border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(0,0,0,0.06);
}
.compare-sp-card p {
  font-size: 14px; color: #999; font-weight: 600;
  line-height: 1.7; text-align: center;
}

.compare-sp-tria {
  background: linear-gradient(135deg, #FFF8F4, #FFF0E8);
  border: 2px solid #FF6B35;
  box-shadow: 0 4px 16px rgba(255,107,53,0.1);
}
.compare-sp-tria p {
  font-size: 15px; font-weight: 800; color: #C4480A;
}

.compare-sp-card-head {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 900; color: #fff;
  background: #FF6B35; border-radius: 6px;
  display: inline-block; padding: 4px 16px;
  margin-bottom: 10px;
}
.compare-sp-card-head.compare-sp-other {
  background: #888; font-size: 15px;
  padding: 3px 14px;
}

.compare-sp-num {
  font-size: 20px !important; font-weight: 900 !important;
  color: #D95A1B !important;
}
.compare-sp-num span {
  font-family: 'Inter', sans-serif;
  font-size: 26px; font-weight: 900;
}

/* ===== FAQ STYLES ===== */
      .faq-item { border-top: 1px solid rgba(44,95,124,0.1); }
      .faq-item:last-child { border-bottom: 1px solid rgba(44,95,124,0.1); }
      .faq-item summary {
        padding: 22px 0; cursor: pointer; list-style: none;
        display: flex; align-items: center; gap: 12px;
        font-size: 15px; font-weight: 800; color: #1E3A4C;
        transition: color 0.2s;
      }
      .faq-item summary::-webkit-details-marker { display: none; }
      .faq-item summary::before {
        content: 'Q.'; flex-shrink: 0; font-family: 'Inter', sans-serif;
        font-weight: 900; color: #2C5F7C; font-size: 15px;
      }
      .faq-item summary::after {
        content: '+'; margin-left: auto; flex-shrink: 0;
        font-size: 22px; font-weight: 500; color: #5B8DA8;
        width: 28px; height: 28px; display: flex; align-items: center;
        justify-content: center; border-radius: 50%;
        background: #EDF4F8; transition: all 0.2s;
      }
      .faq-item[open] summary::after {
        content: '−'; background: #2C5F7C; color: #fff;
      }
      .faq-item summary:hover { color: #2C5F7C; }
      .faq-item .faq-answer {
        padding: 0 0 22px 32px;
        font-size: 14px; color: #5A7A8C; line-height: 1.8;
        animation: fadeIn 0.2s ease;
      }
      @keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }


/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

