/* ============================================================
   HCSライフキューブ株式会社 - Corporate Site Styles
   Design: Dark Navy × Gold × White
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --navy: #0a1628;
  --navy-mid: #0f2040;
  --navy-light: #1a3060;
  --gold: #c9a84c;
  --gold-light: #e0c06a;
  --white: #ffffff;
  --off-white: #f8f6f2;
  --light-bg: #f4f2ee;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #888888;
  --border: rgba(201, 168, 76, 0.3);
  --shadow: 0 8px 40px rgba(10, 22, 40, 0.15);
  --font-en: 'Cormorant Garamond', serif;
  --font-ja: 'Noto Serif JP', serif;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ja);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-en {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.logo-ja {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  margin-left: 0.5rem;
}
.nav-links .nav-cta:hover { background: var(--gold-light); color: var(--navy); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  display: block;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0d1f3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 2rem 60px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23c9a84c' fill-opacity='0.04'%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");
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(201,168,76,0.06) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
}
.hero-label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-title {
  font-family: var(--font-ja);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-unit {
  font-family: var(--font-ja);
  font-size: 1rem;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
  display: block;
  margin-top: 0.3rem;
}
.hero-btn {
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255,255,255,0.4);
}
.scroll-indicator span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin: 0 auto 0.4rem;
  animation: scrollLine 2s infinite;
}
.scroll-indicator p { font-size: 0.65rem; letter-spacing: 0.15em; font-family: var(--font-en); }

/* --- Sections --- */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-light { background: var(--light-bg); }
.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-ja);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 3rem;
  line-height: 1.9;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-ja);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-large { font-size: 1.05rem; padding: 1.1rem 2.8rem; }

/* --- Cards --- */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.three-col { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(201,168,76,0.2);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 1.3rem;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.card-dark .card-title { color: var(--white); }
.card-text {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
}

/* --- Approach --- */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.approach-text h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.approach-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.9;
}
.approach-points { margin-top: 1.5rem; }
.approach-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
}
.approach-point i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }

/* Diagram */
.approach-diagram {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.diagram-box {
  flex: 1;
  background: var(--off-white);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e0dbd0;
}
.diagram-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  margin-bottom: 1rem;
  text-align: center;
}
.diagram-flow { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.flow-item {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  text-align: center;
  width: 100%;
  color: var(--text-dark);
}
.flow-item.margin { border-color: #e88; color: #c33; background: #fff8f8; }
.flow-item.highlight { border-color: var(--gold); color: var(--navy); background: #fffbf0; font-weight: 600; }
.flow-item.end { background: #f0f0f0; }
.flow-item.end-good { background: #f0fff4; border-color: #6c9; color: #363; font-weight: 600; }
.flow-arrow { color: #aaa; font-size: 0.8rem; }
.flow-arrow.gold { color: var(--gold); }
.diagram-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}
.diagram-vs {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* --- Solutions --- */
.solutions-category { }
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.4rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.solutions-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.solution-card {
  background: var(--white);
  border: 1px solid #e8e4da;
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--gold);
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.solution-number {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.solution-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.solution-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.solution-text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.solution-list { }
.solution-list li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #f0ece4;
}
.solution-list li:last-child { border-bottom: none; }
.solution-list li i { color: var(--gold); font-size: 0.75rem; flex-shrink: 0; }

/* --- Creed --- */
.creed-section { background: var(--navy-mid); }
.creed-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.creed-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.creed-quote {
  font-family: var(--font-en);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.6;
}
.creed-item p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  font-weight: 400;
}

/* --- Representative Message --- */
.message-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}
.message-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.message-caption {
  background: var(--navy-mid);
  padding: 1rem 1.5rem;
  border-top: 2px solid var(--gold);
  margin-top: 0;
}
.caption-company { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-bottom: 0.2rem; }
.caption-title { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.caption-name {
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}
.message-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.message-content p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.95;
  margin-bottom: 1rem;
}
.message-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.message-stat { text-align: center; }
.stat-val {
  display: block;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-u { font-family: var(--font-ja); font-size: 0.9rem; }
.stat-l { font-size: 0.72rem; color: rgba(255,255,255,0.55); display: block; margin-top: 0.3rem; }

/* --- Company Table --- */
.company-table-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th, .company-table td {
  padding: 1rem 1.5rem;
  font-size: 0.93rem;
  line-height: 1.8;
  border-bottom: 1px solid #e8e4da;
  vertical-align: top;
}
.company-table th {
  width: 160px;
  font-weight: 600;
  color: var(--navy);
  background: var(--off-white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.company-table td { color: var(--text-mid); }
.company-table td a {
  color: var(--gold);
  text-decoration: underline;
  transition: opacity var(--transition);
}
.company-table td a:hover { opacity: 0.7; }

/* --- Mission / Value / Promise --- */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mvp-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e8e4da;
  border-top: 3px solid var(--gold);
}
.mvp-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.mvp-text {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.9;
}

/* --- Group Companies --- */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.group-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  transition: transform var(--transition), border-color var(--transition);
}
.group-card:hover { transform: translateY(-3px); border-color: rgba(201,168,76,0.4); }
.group-core {
  grid-column: 1 / -1;
  background: rgba(201,168,76,0.06);
  border-color: var(--gold);
}
.group-self {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.6);
}
.group-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}
.group-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.group-rep {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.group-biz {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* --- Contact --- */
.contact-wrap {
  text-align: center;
  padding: 3rem 0;
}
.contact-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}
.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-address, .footer-copy { font-size: 0.75rem; }

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition);
  z-index: 900;
}
.floating-cta.visible { transform: translateY(0); opacity: 1; }
.floating-cta:hover { background: var(--gold-light); transform: translateY(-2px); }

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .group-grid { grid-template-columns: repeat(2, 1fr); }
  .group-core { grid-column: auto; }
  .approach-grid { grid-template-columns: 1fr; gap: 2rem; }
  .approach-diagram { flex-direction: column; align-items: stretch; }
  .diagram-vs { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .header { padding: 0.8rem 1rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    gap: 0.3rem;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.95rem; padding: 0.7rem 0; width: 100%; }
  .nav-links .nav-cta { padding: 0.7rem 1.2rem; margin-left: 0; margin-top: 0.5rem; }
  .hero { padding: 80px 1.5rem 60px; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.8rem; }
  .cards-grid.three-col { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solutions-grid.two-col { grid-template-columns: 1fr; }
  .message-grid { grid-template-columns: 1fr; }
  .message-photo { max-width: 300px; margin: 0 auto; }
  .mvp-grid { grid-template-columns: 1fr; }
  .group-grid { grid-template-columns: 1fr; }
  .company-table th { width: 110px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .floating-cta span { display: none; }
  .floating-cta { padding: 0.9rem; border-radius: 50%; }
  .creed-item { flex-direction: column; gap: 0.5rem; }
  .creed-quote { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-title { font-size: 1.7rem; }
  .section-title { font-size: 1.4rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .message-stats { flex-wrap: wrap; gap: 1rem; }
}
