/* ===== RESET & BASE ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --orange: #FB923C;
  --orange-dark: #FF7626;
  --green: #4ade80;
  --red: #EF4444;
  --text: #f8fafc;
  --muted: #94a3b8;
  --font: 'Noto Sans JP', sans-serif;
}

body {
  font-family: var(--font);
  background: #87CEEB;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* ===== 草原背景画像（1枚・固定） ===== */
#bg-image {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh; z-index: -1;
  background: url('assets/meadow-bg2.png') no-repeat center center;
  background-size: cover; filter: brightness(1.10);
}

/* ===== CANVAS（透過・3D要素描画用） ===== */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 50;
  pointer-events: none;
}

/* ===== CONTENT LAYER ===== */
.m-wrapper {
  position: relative;
  z-index: 10;
  pointer-events: none; /* タッチはインタラクティブ要素のみ受け付ける */
}
a, button, input, textarea, select, label, section, header, footer {
  pointer-events: auto !important;
}

/* ===== GLASS PANELS ===== */
.glass {
  background: rgba(30, 45, 80, 0.72);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-orange {
  background: rgba(60, 35, 15, 0.7);
  border: 1px solid rgba(251,146,60,0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ===== TYPOGRAPHY ===== */
.section-label {
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.text-shadow {
  text-shadow:
    0 2px 6px rgba(0,0,0,0.95),
    0 6px 20px rgba(0,0,0,0.9),
    0 12px 40px rgba(0,0,0,0.85);
}

/* 小さいテキストの視認性強化（明るい背景対応） */
.m-section p,
.m-section span,
.m-hero p,
.m-hero span,
.m-hero div {
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 3px 8px rgba(0,0,0,0.3);
}

/* ===== BUTTONS ===== */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #FF7626, #FB923C);
  color: white;
  font-weight: 900;
  font-size: 1rem;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(251,146,60,0.5);
  text-decoration: none;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  pointer-events: auto;
}
.btn-main:active { transform: scale(0.97); }

/* ===== HEADER ===== */
.m-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,8,20,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}
.m-logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.m-header-cta {
  font-size: 0.72rem;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  width: auto;
}

/* ===== SECTIONS ===== */
.m-section {
  padding: 3.5rem 1rem;
  pointer-events: auto;
}

/* ===== HERO ===== */
.m-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 5rem 1rem 14rem; /* 下部はアンドロイドのスペース確保 */
  pointer-events: auto;
}
.m-hero-inner {
  width: 100%;
  text-align: center;
}
.m-badge-urgent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20,10,10,0.75);
  border: 2px solid rgba(239,68,68,0.7);
  border-radius: 9999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fca5a5;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.m-h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: white;
}
.m-killer-copy {
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.9;
  text-align: left;
  margin-bottom: 1.25rem;
}

/* ===== LOSS CARDS ===== */
.loss-card {
  background: rgba(40, 25, 50, 0.72);
  border: 1px solid rgba(239,68,68,0.45);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-bottom: 1rem;
  pointer-events: auto;
}
.loss-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ===== COMPARISON TABLE ===== */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
}
.compare-table {
  width: 100%;
  min-width: 340px;
  border-collapse: separate;
  border-spacing: 0;
}
.compare-table th {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  background: rgba(0,0,0,0.3);
}
.compare-table td {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: middle;
}
.col-ai-head { color: var(--orange); background: rgba(251,146,60,0.12); }
.col-ai { background: rgba(251,146,60,0.06); }
.compare-good {
  color: var(--green);
  font-weight: 900;
}

/* ===== FORM ===== */
.m-form-wrap {
  background: rgba(40,70,140,0.50);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 1.25rem;
}
.m-form-label {
  display: block;
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.m-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem; /* 16px以上でiOSのズーム防止 */
  outline: none;
  box-sizing: border-box;
  font-family: var(--font);
  margin-bottom: 1rem;
  -webkit-appearance: none;
  appearance: none;
}
.m-input:focus {
  border-color: rgba(251,146,60,0.5);
}
select.m-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  background-color: rgba(10,15,30,0.8);
}
select.m-input option {
  background: #0a0f1e;
  color: white;
}

/* ===== STEPS ===== */
.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.5,0,0,1), transform 0.7s cubic-bezier(0.5,0,0,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ===== FOOTER ===== */
.m-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  background: rgba(5,8,20,0.85);
  pointer-events: auto;
  line-height: 2;
}

/* ===== PULSE ANIMATIONS ===== */
@keyframes pulse-red {
  0%,100% { opacity:1; }
  50% { opacity:0.5; }
}
@keyframes blink-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.3; transform:scale(0.7); }
}
@keyframes urgency-pulse {
  0%,100% { box-shadow:0 0 20px rgba(239,68,68,0.3); }
  50% { box-shadow:0 0 30px rgba(239,68,68,0.6), 0 0 50px rgba(239,68,68,0.2); }
}

/* ===== NATURE LAYER ===== */
#nature-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.nature-sun {
  position: absolute;
  top: 4%;
  right: 5%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffef8 0%, #fff8d0 30%, #ffe55a 65%, rgba(255,210,50,0) 100%);
  box-shadow: 0 0 40px 16px rgba(255,235,80,0.55), 0 0 80px 40px rgba(255,200,40,0.25);
  animation: sun-glow-m 5s ease-in-out infinite;
}
.sun-halo {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,220,0.55) 0%, rgba(255,240,180,0.2) 50%, transparent 75%);
  transform: translate(-50%,-50%);
  animation: sun-flare-m 9s ease-in-out infinite;
}
#rays-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.nature-cloud { position: absolute; pointer-events: none; }
.cloud-puff {
  position: absolute;
  background: white;
  border-radius: 50%;
  box-shadow: inset -3px -3px 6px rgba(170,210,240,0.35);
}
#grass-canvas {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 20vh;
}
@keyframes sun-glow-m {
  0%,100% { box-shadow: 0 0 40px 16px rgba(255,235,80,0.55), 0 0 80px 40px rgba(255,200,40,0.25); }
  50% { box-shadow: 0 0 60px 25px rgba(255,245,100,0.90), 0 0 110px 55px rgba(255,220,60,0.40); }
}
@keyframes sun-flare-m {
  0%,78%,100% { opacity:0; transform:translate(-50%,-50%) scale(0.85); }
  85%,92% { opacity:1; transform:translate(-50%,-50%) scale(1); }
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 1.25rem;
  transition: background 0.3s ease;
}
.faq-item:active {
  background: rgba(40, 55, 95, 0.78);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  gap: 0.75rem;
}
.faq-question span { flex: 1; }
.faq-arrow {
  color: #FB923C;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.1rem;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 1.1rem 1rem;
}
.faq-answer p {
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.8;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.85rem;
}
