/* ===========================
   HCS LifeCube
   CSS Styles
   =========================== */

:root {
    --navy: #0a1628;
    --navy-light: #112240;
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --white: #ffffff;
    --light-gray: #f8f9fb;
    --mid-gray: #e5e7ea;
    --text-dark: #1a1a2e;
    --text-mid: #4a5568;
    --text-light: #718096;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Serif JP', serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-weight: 600;
    line-height: 1.3;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-label {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-desc {
    color: var(--text-mid);
    font-size: 1rem;
    margin-top: 16px;
    line-height: 1.9;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gold);
    color: var(--navy);
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--white);
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}
.btn-outline:hover { background: var(--gold); color: var(--navy); }

.btn-full { width: 100%; text-align: center; }

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent; transition: var(--transition); padding: 20px 0;
}
.navbar.scrolled { background: var(--navy); padding: 12px 0; box-shadow: var(--shadow-md); }

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.nav-logo { display: flex; flex-direction: column; gap: 2px; }

.logo-en {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 600; color: var(--white);
    letter-spacing: 0.08em; line-height: 1.2;
}
.logo-ja { font-size: 0.65rem; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; }

.nav-menu { display: flex; align-items: center; list-style: none; gap: 28px; }
.nav-menu a { font-size: 0.82rem; color: rgba(255,255,255,0.85); letter-spacing: 0.05em; }
.nav-menu a:hover { color: var(--gold); }
.nav-cta { padding: 10px 24px !important; background: var(--gold) !important; color: var(--navy) !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* ===========================
   Hero
   =========================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #040d1a 0%, #0a1628 50%, #0e1f3a 100%);
    display: flex; align-items: center; justify-content: flex-start;
    position: relative; overflow: hidden; padding: 140px 0 80px;
}

.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><circle cx="400" cy="400" r="350" fill="none" stroke="rgba(201,168,76,0.05)" stroke-width="1"/><circle cx="400" cy="400" r="250" fill="none" stroke="rgba(201,168,76,0.04)" stroke-width="1"/><circle cx="400" cy="400" r="150" fill="none" stroke="rgba(201,168,76,0.03)" stroke-width="1"/></svg>') center/cover no-repeat;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(4,13,26,0.6) 100%);
}

.hero-content {
    position: relative; z-index: 2; text-align: left;
    max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px;
}

.hero-badge {
    display: flex; align-items: center; gap: 16px;
    color: rgba(255,255,255,0.65);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82rem; letter-spacing: 0.2em;
    margin-bottom: 36px; text-transform: uppercase;
}
.badge-line { display: block; width: 40px; height: 1px; background: var(--gold); flex-shrink: 0; }

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 5.2vw, 3.8rem);
    font-weight: 300; line-height: 1.2;
    margin-bottom: 32px; letter-spacing: 0.02em;
}
.hero-title-gold { color: var(--gold); }

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: clamp(0.88rem, 1.3vw, 1rem);
    line-height: 2; margin-bottom: 48px; max-width: 640px;
}

.hero-cta { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }

.hero-stats {
    display: flex; justify-content: flex-start; gap: 48px;
    margin-top: 56px; flex-wrap: wrap;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: left; }
.stat-num {
    display: block; font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600;
    color: var(--gold); line-height: 1.1;
}

.stat-num-ja {
    font-family: 'Noto Serif JP', serif;
}
.stat-label { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; margin-top: 4px; }

/* ===========================
   About
   =========================== */
.about { padding: 100px 0; background: var(--white); }

.about-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }

.about-card {
    padding: 40px 32px; border: 1px solid var(--mid-gray);
    background: var(--white); transition: var(--transition);
    position: relative; overflow: hidden;
}
.about-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 0; background: var(--gold);
    transition: height 0.4s ease;
}
.about-card:hover::before { height: 100%; }
.about-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.about-card-icon {
    width: 52px; height: 52px; background: var(--navy);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.about-card-icon i { font-size: 1.2rem; color: var(--gold); }
.about-card h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--navy); }
.about-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.9; }

/* ===========================
   Services
   =========================== */
.services { padding: 100px 0; background: var(--light-gray); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.service-card {
    padding: 44px 36px; border: 1px solid var(--mid-gray);
    background: var(--white); transition: var(--transition); position: relative;
}
.service-card.featured { border-top: 3px solid var(--gold); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem; font-weight: 300; color: var(--gold); opacity: 0.4; line-height: 1; margin-bottom: 8px;
}
.service-icon { font-size: 1.6rem; color: var(--navy); margin-bottom: 16px; }
.service-card h3 { color: var(--navy); margin-bottom: 16px; font-size: 1.1rem; line-height: 1.4; }
.service-card > p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 20px; }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
    font-size: 0.82rem; color: var(--text-mid);
    padding-left: 16px; position: relative; line-height: 1.6;
}
.service-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; }

/* ===========================
   Value
   =========================== */
.value { padding: 100px 0; background: var(--navy); }
.value .section-label { color: var(--gold); }
.value h2 { color: var(--white); }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.value-card {
    padding: 44px 40px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
    position: relative;
}
.value-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(201,168,76,0.3); }
.value-card.highlight { border-color: var(--gold); background: rgba(201,168,76,0.08); }

.value-card-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem; font-weight: 300; color: var(--gold);
    opacity: 0.5; line-height: 1; margin-bottom: 16px;
}
.value-card h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 16px; line-height: 1.4; }
.value-card p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.85; margin-bottom: 20px; }

.value-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.value-tags span {
    font-size: 0.72rem; padding: 4px 12px;
    border: 1px solid rgba(201,168,76,0.4); color: var(--gold);
    letter-spacing: 0.05em;
}

/* ===========================
   Message
   =========================== */
.message { padding: 100px 0; background: var(--white); }

.message-content { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }

.message-photo { display: flex; flex-direction: column; align-items: center; gap: 0; }

.message-photo-placeholder {
    width: 240px; height: 300px; background: var(--light-gray);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--mid-gray); margin-bottom: 0;
}
.message-photo-placeholder i { font-size: 4rem; color: var(--mid-gray); }

.message-name-block {
    width: 100%; padding: 20px 24px;
    background: var(--navy); text-align: center;
}
.message-company { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-bottom: 4px; letter-spacing: 0.05em; }
.message-title { font-size: 0.75rem; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.08em; }
.message-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--white); letter-spacing: 0.1em; }

.message-text { display: flex; flex-direction: column; gap: 20px; }
.message-text p { font-size: 0.92rem; color: var(--text-mid); line-height: 2; }
.message-closing {
    font-size: 1rem !important; color: var(--navy) !important;
    font-weight: 600 !important; padding-left: 20px;
    border-left: 3px solid var(--gold); margin-top: 8px;
}

/* ===========================
   Company
   =========================== */
.company { padding: 100px 0; background: var(--light-gray); }

.company-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
    padding: 16px 20px; font-size: 0.9rem;
    border-bottom: 1px solid var(--mid-gray); text-align: left; vertical-align: top;
}
.company-table th { background: var(--white); color: var(--navy); font-weight: 600; width: 38%; letter-spacing: 0.03em; }
.company-table td { background: var(--white); color: var(--text-mid); }

.company-values h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; color: var(--navy); margin-bottom: 28px;
    padding-bottom: 12px; border-bottom: 1px solid var(--mid-gray); letter-spacing: 0.1em;
}
.values-list { display: flex; flex-direction: column; gap: 28px; }
.value-item { display: flex; flex-direction: column; gap: 8px; }
.value-label { font-family: 'Cormorant Garamond', serif; font-size: 0.8rem; letter-spacing: 0.25em; color: var(--gold); text-transform: uppercase; }
.value-item p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.85; }
.promise-lines { display: flex; flex-direction: column; gap: 12px; }
.promise-lines p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.9; padding-left: 12px; border-left: 2px solid var(--gold); }

/* ===========================
   Group
   =========================== */
.group { padding: 100px 0; background: var(--navy); }
.group .section-label { color: var(--gold); }
.group h2 { color: var(--white); }

.group-intro {
    text-align: center; color: rgba(255,255,255,0.7);
    font-size: 0.92rem; line-height: 1.9;
    max-width: 700px; margin: -32px auto 56px;
}

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.group-card {
    padding: 28px 24px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
}
.group-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(201,168,76,0.3); }
.group-card.core { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.group-card.current { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }

.group-badge {
    display: inline-block; padding: 3px 10px;
    font-size: 0.7rem; letter-spacing: 0.1em;
    background: var(--gold); color: var(--navy); font-weight: 700; margin-bottom: 12px;
}
.current-badge { background: rgba(255,255,255,0.85); }
.group-card h4 { font-size: 0.95rem; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.group-rep { font-size: 0.78rem; color: var(--gold); margin-bottom: 8px; }
.group-card > p:last-child { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* ===========================
   Contact
   =========================== */
.contact { padding: 100px 0; background: var(--white); }

.contact-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }

.contact-note { padding: 36px 32px; background: var(--navy); color: var(--white); }
.contact-note h3 { font-size: 1.05rem; color: var(--gold); margin-bottom: 20px; }
.contact-note ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-note ul li {
    font-size: 0.86rem; color: rgba(255,255,255,0.78);
    padding-left: 18px; position: relative; line-height: 1.7;
}
.contact-note ul li::before { content: '·'; position: absolute; left: 0; color: var(--gold); font-size: 1.2rem; line-height: 1.1; }

.contact-waiting {
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.4);
    color: rgba(255,255,255,0.9);
    font-size: 0.84rem;
    padding: 14px 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.contact-group-link {
    margin-top: 28px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-group-link p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

.contact-form-desc { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; color: var(--text-dark); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.required { font-size: 0.7rem; background: var(--navy); color: var(--white); padding: 2px 6px; letter-spacing: 0.05em; }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px; border: 1px solid var(--mid-gray);
    background: var(--light-gray); font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem; color: var(--text-dark); outline: none; transition: var(--transition);
    -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); background: var(--white); }

/* ===========================
   Footer
   =========================== */
.footer { background: var(--navy); padding: 64px 0 32px; }

.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand .logo-en { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.footer-brand .logo-ja { font-size: 0.65rem; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-address { font-size: 0.78rem !important; margin-top: 12px !important; line-height: 1.7 !important; }

.footer-nav h5 { font-family: 'Cormorant Garamond', serif; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 16px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-nav ul a:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.35); letter-spacing: 0.05em; }

/* ===========================
   Floating CTA
   =========================== */
.floating-cta {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    opacity: 0; transform: translateY(20px); transition: var(--transition); pointer-events: none;
}
.floating-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-cta a {
    display: block; padding: 14px 28px;
    background: var(--gold); color: var(--navy);
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg); transition: var(--transition);
}
.floating-cta a:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ===========================
   Scroll Reveal
   =========================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .company-content { grid-template-columns: 1fr; gap: 40px; }
    .message-content { grid-template-columns: 1fr; gap: 40px; }
    .message-photo { flex-direction: row; align-items: stretch; }
    .message-photo-placeholder { width: 180px; height: 220px; flex-shrink: 0; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--navy); flex-direction: column;
        justify-content: center; align-items: center; gap: 32px; z-index: 999;
    }
    .nav-menu.active { display: flex; }
    .nav-menu a { font-size: 1.1rem; }
    .hamburger { display: flex; z-index: 1000; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
    .group-grid { grid-template-columns: 1fr; }
    .message-photo { flex-direction: column; align-items: center; }
    .message-photo-placeholder { width: 200px; height: 250px; }
    .floating-cta { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .about-cards { grid-template-columns: 1fr; }
}
