/* ========== CLINICAL HIGH-TECH / BENTO BOX THEME — 極光ラボ札幌 ========== */
:root {
    --bg-main: #f0f2f5;
    --card-bg: #ffffff;
    --primary: #0066cc;
    --primary-hover: #004c99;
    --accent: #00d2ff;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
    --border: #e5e5ea;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Noto Sans JP', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Noto Sans JP', sans-serif;
    --shadow: 0 4px 24px rgba(0,0,0,0.04);
    --shadow-hover: 0 10px 40px rgba(0,0,0,0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Cool high-tech filter for images */
.tech-img { filter: saturate(0.8) contrast(1.05) brightness(1.05) hue-rotate(185deg); }

/* Navigation - Modern Floating Pill / Apple Style */
.top-nav {
    position: fixed; top: 20px; left: 0; width: 100%; z-index: 1000;
}
.nav-inner {
    max-width: 900px; margin: 0 auto;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5); border-radius: 40px;
    padding: 12px 30px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.brand { font-size: 18px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.brand-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
.nav-menu { display: flex; gap: 30px; list-style: none; }
.nav-menu a { font-size: 14px; font-weight: 500; color: var(--text-gray); }
.nav-menu a:hover { color: var(--primary); }

/* Buttons */
.btn-primary {
    display: inline-block; padding: 14px 32px; background: var(--primary); color: #fff;
    font-weight: 600; border-radius: 30px; font-size: 15px; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--primary-hover); transform: scale(1.02); }
.btn-secondary {
    display: inline-block; padding: 14px 32px; background: var(--card-bg); color: var(--text-dark);
    font-weight: 600; border-radius: 30px; font-size: 15px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.btn-secondary:hover { background: var(--bg-main); transform: scale(1.02); }

/* Sections */
.section { padding: 120px 0 60px; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 16px; }
.section-sub { text-align: center; color: var(--text-gray); font-size: 1.1rem; margin-bottom: 60px; }

/* Bento Box Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 320px;
    gap: 24px;
}

/* Bento Modules */
.bento-card {
    background: var(--card-bg); border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
    display: flex; flex-direction: column; transition: var(--transition);
}
.bento-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

/* Spans */
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x1 { grid-column: span 2; grid-row: span 1; }
.span-1x2 { grid-column: span 1; grid-row: span 2; }
.span-1x1 { grid-column: span 1; grid-row: span 1; }
.span-4x1 { grid-column: span 4; grid-row: span 1; }

/* Card Variations */
.card-dark { background: var(--text-dark); color: #fff; }
.card-dark h3, .card-dark h2 { color: #fff; }
.card-dark p { color: #a1a1a6; }
.card-blue { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.card-blue h3, .card-blue h2 { color: #fff; }

/* Card Content Alignments */
.content-bottom { justify-content: flex-end; z-index: 2; position: relative; }
.content-center { justify-content: center; align-items: center; text-align: center; }

/* Image Wraps within Bento */
.bento-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: var(--transition);
}
.card-dark .bento-bg-img { opacity: 0.6; }
.bento-card:hover .bento-bg-img { transform: scale(1.05); }
.gradient-overlay::after {
    content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); z-index: 1;
}

/* Typography inside cards */
.bento-tag {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--primary); margin-bottom: 12px; z-index: 2; position: relative;
}
.card-dark .bento-tag { color: var(--accent); }
.bento-card h2 { font-size: 2.2rem; margin-bottom: 16px; z-index: 2; position: relative; line-height: 1.2; }
.bento-card h3 { font-size: 1.5rem; margin-bottom: 12px; z-index: 2; position: relative; }
.bento-card p { color: var(--text-gray); z-index: 2; position: relative; }
.bento-price { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-top: auto; z-index:2; position:relative; }

/* Form Elements */
.white-form { background: var(--card-bg); padding: 50px; border-radius: var(--radius-lg); box-shadow: var(--shadow); max-width: 700px; margin: 0 auto; }
.input-group { margin-bottom: 24px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--text-dark); }
.bento-input {
    width: 100%; padding: 16px 20px; background: var(--bg-main); border: 1px solid var(--border);
    border-radius: var(--radius-md); font-family: var(--font-body); font-size: 15px; outline: none; transition: var(--transition);
}
.bento-input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,102,204,0.1); }

/* Footer */
.footer { background: var(--card-bg); padding: 60px 0 30px; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 30px; margin-bottom: 30px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 14px; color: var(--text-gray); }
.footer-links a:hover { color: var(--text-dark); }
.footer-copy { font-size: 13px; color: var(--text-gray); text-align: center; }

/* Responsive adjustments */
@media(max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
    .span-4x1 { grid-column: span 2; }
}
@media(max-width: 768px) {
    .bento-grid { flex-direction: column; display: flex; }
    .bento-card { min-height: 320px; }
    .nav-menu { display: none; }
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); transition: 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
