/* 北九州スマホ終活サポート - Static Site CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --primary: #4A90E2;
  --primary-foreground: #FFFFFF;
  --secondary: #5CC5A8;
  --secondary-foreground: #FFFFFF;
  --background: #FFFFFF;
  --foreground: #333333;
  --card: #F8FBFF;
  --card-foreground: #333333;
  --muted: #E8F4F8;
  --muted-foreground: #666666;
  --border: #E0E8F0;
  --input: #F0F5FA;
  --radius: 1rem;
  --destructive: #EF4444;
}

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

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; padding: 0; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 3rem;
    padding-right: 3rem;
    max-width: 1200px;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Check Button with animations */
.check-button {
  position: relative;
  overflow: hidden;
  animation: bounce-custom 3s ease-in-out infinite, pulse-custom 2s ease-in-out infinite;
  background: linear-gradient(90deg, #4A90E2 0%, #5CC5A8 50%, #4A90E2 100%);
  background-size: 1000px 100%;
}

.check-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes bounce-custom {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-custom {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7); }
  50% { box-shadow: 0 0 0 12px rgba(74, 144, 226, 0); }
}

@keyframes shine {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Header */
.header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.header-nav {
  display: none;
  gap: 2rem;
  font-size: 1.125rem;
}

.header-nav a {
  color: var(--foreground);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

/* Fixed Phone Button */
.fixed-phone-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: #F97316;
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
}

.fixed-phone-btn:hover {
  background-color: #EA580C;
}

/* Sections */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

@media (min-width: 1024px) {
  .section { padding: 8rem 0; }
}

.section-white { background-color: var(--background); }
.section-muted { background-color: var(--muted); }
.section-primary-light { background-color: rgba(74, 144, 226, 0.05); }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

/* Max width containers */
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 24rem; }

/* Hero */
.hero-badge {
  display: inline-block;
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
}

.hero-image {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.card-white {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

/* Plan Cards */
.plan-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .plan-card { padding: 3rem; }
}

.plan-card-primary {
  border: 2px solid var(--primary);
}

.plan-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Grid */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* List items */
.list-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.list-icon {
  color: var(--secondary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.list-check {
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Testimonials */
.testimonial {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  margin-bottom: 2rem;
}

/* Flow Steps */
.flow-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.flow-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Safety Cards */
.safety-card {
  display: flex;
  gap: 1rem;
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.safety-icon {
  color: var(--primary);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* Contact Section */
.contact-card {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  text-align: center;
}

.contact-phone {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.line-btn {
  display: inline-block;
  background-color: #DCFCE7;
  color: #15803D;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s;
}

.line-btn:hover {
  background-color: #BBF7D0;
}

/* Footer */
.footer {
  background-color: var(--foreground);
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  color: #D1D5DB;
}

.footer-links a {
  color: #D1D5DB;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
}

/* Utility classes */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--muted-foreground); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.pt-4 { padding-top: 1rem; }
.border-t { border-top: 1px solid var(--border); }
.w-full { width: 100%; }
.rounded-2xl { border-radius: 1rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* SVG Icons inline */
.icon-phone { width: 24px; height: 24px; }
.icon-lg { width: 40px; height: 40px; }

/* Subscription section */
.subscription-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .subscription-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Legal pages */
.legal-page {
  padding: 4rem 0;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.legal-page p,
.legal-page li {
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-list {
  padding-left: 0;
}

.legal-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.legal-list li .num {
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* Info box */
.info-box {
  background-color: var(--muted);
  padding: 2rem;
  border-radius: 0.75rem;
  margin-top: 3rem;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2rem;
}

.back-link:hover {
  opacity: 0.8;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F0F5FA; }
::-webkit-scrollbar-thumb { background: #4A90E2; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3A7BC8; }
