﻿/* =========================================
   Base Reset & Variables
   ========================================= */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: 'Noto Sans JP', sans-serif; scroll-behavior: smooth; }
body { margin: 0; line-height: 1.8; color: #333; background-color: #fff; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: inherit; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* Variables */
:root {
    --color-blue: #2563eb;
    --color-blue-dark: #1d4ed8;
    --color-red: #dc2626;
    --color-red-dark: #b91c1c;
    --color-green: #16a34a;
    --color-green-dark: #15803d;
    --color-yellow: #facc15;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-800: #1f2937;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
}

/* =========================================
   Utilities
   ========================================= */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.flex-start { display: flex; align-items: flex-start; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.z-10 { z-index: 10; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing */
.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; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Container Widths */
.container { width: 100%; padding-right: 1rem; padding-left: 1rem; margin-right: auto; margin-left: auto; }
.mw-3xl { max-width: 48rem; }
.mw-4xl { max-width: 56rem; }
.mw-5xl { max-width: 64rem; }
.mw-6xl { max-width: 72rem; }

/* Responsive */
.sp-only { display: block; }
.pc-only { display: none; }
@media (min-width: 768px) {
    .sp-only { display: none; }
    .pc-only { display: block; }
    .grid-cols-2-md { display: grid; grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3-md { display: grid; grid-template-columns: repeat(3, 1fr); }
    .flex-col-md-row { flex-direction: row; }
    .md-w-1-3 { width: 33.333%; }
    .md-w-2-3 { width: 66.666%; }
}
@media (min-width: 1024px) {
    .grid-cols-3-lg { display: grid; grid-template-columns: repeat(3, 1fr); }
}

/* Colors */
.text-white { color: #fff; }
.text-red { color: #dc2626; }
.text-red-200 { color: #fecaca; }
.text-red-400 { color: #f87171; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.text-green-400 { color: #4ade80; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-yellow { color: #facc15; }
.text-yellow-400 { color: #facc15; }
.text-yellow-600 { color: #ca8a04; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-slate-800 { color: #1e293b; }
.text-purple-600 { color: #9333ea; }
.text-pink-600 { color: #db2777; }

/* Backgrounds & Borders */
.bg-white { background-color: #fff; }
.bg-slate-900 { background-color: #0f172a; }
.bg-blue-900 { background-color: #1e3a8a; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-red { background-color: #dc2626; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-pink-100 { background-color: #fce7f3; }
.bg-pattern { background-color: #f8fafc; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-4 { border-bottom-width: 4px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-700 { border-color: #374151; }
.border-red-100 { border-color: #fee2e2; }
.border-red-200 { border-color: #fecaca; }
.border-red-500 { border-color: #ef4444; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-600 { border-color: #2563eb; }
.border-blue-700 { border-color: #1d4ed8; }
.border-green-600 { border-color: #16a34a; }
.border-red-600 { border-color: #dc2626; }
.border-yellow-300 { border-color: #fde047; }
.border-yellow-400 { border-color: #facc15; }
.border-yellow-500 { border-color: #eab308; }
.border-purple-600 { border-color: #9333ea; }
.border-pink-500 { border-color: #ec4899; }
.border-white { border-color: #fff; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Typography & Effects */
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-light { font-weight: 300; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.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; }
.text-5xl { font-size: 3rem; }
.leading-tight { line-height: 1.25; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }
.line-through { text-decoration: line-through; }
.uppercase { text-transform: uppercase; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-glow { box-shadow: 0 0 20px rgba(255, 165, 0, 0.6); }
.animate-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* =========================================
   Specific Components
   ========================================= */
.header-section { background: linear-gradient(to bottom right, #0f172a, #1e293b); padding: 2rem 0 4rem; position: relative; color: #fff; overflow: hidden; }
.hero-title { font-weight: 900; font-size: 1.875rem; line-height: 1.25; margin-bottom: 1.5rem; text-shadow: 0 10px 15px rgba(0,0,0,0.3); }
@media(min-width:768px){ .hero-title { font-size: 3rem; } }
.hero-subtitle { display: block; font-size: 1.25rem; font-weight: 400; margin-bottom: 0.5rem; color: #facc15; }
.text-gradient { background: linear-gradient(to right, #facc15, #f97316); -webkit-background-clip: text; color: transparent; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0)); transform: skewX(-25deg); animation: shine 3s infinite; }
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.cta-button { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(to bottom, #ef4444, #b91c1c); color: #fff; font-size: 1.25rem; font-weight: 900; padding: 1.25rem 2rem; border-radius: 9999px; box-shadow: 0 0 20px rgba(255, 165, 0, 0.6); width: 100%; }
@media(min-width:768px){ .cta-button { width: auto; padding: 1.25rem 4rem; font-size: 1.875rem; } }

.underline-red { color: #dc2626; border-bottom: 4px solid #dc2626; }
.section-py { padding-top: 4rem; padding-bottom: 4rem; }
.marker-yellow { background: linear-gradient(transparent 60%, #fff100 60%); }
.highlight-bg { color: #dc2626; background-color: #fef08a; padding: 0 0.5rem; border-radius: 0.25rem; }
.icon-lg { font-size: 1.25rem; }

.vs-badge { display: none; }
@media(min-width:768px){ .vs-badge { display: flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 9999px; padding: 0.5rem; z-index: 10; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; font-weight: 900; color: #1f2937; } }
.card { background: #fff; border-width: 2px; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transition: transform 0.3s; }
.card:hover { transform: translateY(-0.25rem); }
.card-bad { border-color: #fecaca; }
.card-good { border-color: #3b82f6; }
.recommend-label { position: absolute; top: 0; right: 0; background: #facc15; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.5rem; border-bottom-left-radius: 0.25rem; }

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media(min-width:768px){ .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.6); padding: 0.5rem; text-align: center; color: #fff; font-size: 0.875rem; font-weight: 700; }

.terminal-window { background: #000; border: 1px solid #374151; border-radius: 0.5rem; padding: 1.5rem; font-family: monospace; font-size: 0.875rem; color: #d1d5db; position: relative; }
.tech-badge { position: absolute; top: -1rem; right: -1rem; background: #eab308; color: #000; font-weight: 700; padding: 0.5rem 1rem; border-radius: 9999px; transform: rotate(6deg); box-shadow: 0 10px 15px rgba(0,0,0,0.1); }

.benefit-card { background: #fff; padding: 2rem; border-radius: 0.75rem; border-bottom-width: 4px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); transition: transform 0.3s; }
.benefit-card:hover { transform: translateY(-0.25rem); }
.benefit-icon { width: 4rem; height: 4rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 1.875rem; margin-bottom: 1.5rem; }

.user-avatar-wrap { width: 4rem; height: 4rem; border-radius: 9999px; overflow: hidden; margin-right: 1rem; border: 2px solid #fff; flex-shrink: 0; background: #d1d5db; }
.user-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.disclaimer-text { font-size: 10px; color: #9ca3af; margin-top: 1rem; line-height: 1.25; }

.form-select, .form-input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.25rem; background: #f9fafb; }
.submit-btn { width: 100%; padding: 1rem; border-radius: 0.5rem; color: #fff; font-weight: 700; font-size: 1.125rem; cursor: pointer; transition: transform 0.2s; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.submit-btn:hover { transform: translateY(-0.25rem); }
.btn-blue { background: linear-gradient(to right, #2563eb, #3b82f6); }
.btn-green { background: linear-gradient(to right, #16a34a, #22c55e); }

.sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 50; transform: translateY(100%); transition: transform 0.3s; background: #fff; border-top: 1px solid #e5e7eb; padding: 1rem; }
.sticky-cta.visible { transform: translateY(0); }

/* =========================================
   Footer Fix (確実に中央揃えにする設定)
   ========================================= */
.footer-section {
    background-color: #0f172a; /* bg-slate-900 */
    color: #64748b; /* text-slate-500 */
    padding: 2rem 0;
    font-size: 0.75rem; /* text-xs */
    line-height: 1.5;
    text-align: center; /* コンテンツ全体を中央揃え */
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center; /* リンクを中央揃え */
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #fff;
}

.footer-sep {
    margin: 0 0.25rem;
    color: #64748b;
}