/* --- Design Tokens --- */
:root {
  --primary: #F36F21; /* LIXIL Orange */
  --primary-hover: #D25C15;
  --secondary: #374151; /* Charcoal Grey */
  --accent: #00A99D; /* Instabase Teal */
  --danger: #E02020; /* Spacemarket Red */
  --heading: #1F2937;
  --text: #4B5563;
  --text-light: #9CA3AF;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--white);
}

h1, h2, h3, h4, .outfit {
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  color: var(--heading);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, #FF8C42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* --- Buttons --- */
.btn-primary, .btn-primary-large {
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 4px 14px 0 rgba(243, 111, 33, 0.3);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary-large {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
}

.btn-primary:hover, .btn-primary-large:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(243, 111, 33, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: var(--transition);
  text-decoration: none;
}

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

/* --- Header --- */
header {
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.map-iframe {
  border: 0;
  border-radius: var(--radius-md);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  text-decoration: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--secondary);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid #ccc;
}

.desktop-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.desktop-nav a {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.95rem;
  text-decoration: none;
}

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

/* --- Enhanced Full-Screen Hero --- */
.hero-portal.full-screen {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
}

.hero-content-center {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-title.white-text {
  color: #fff;
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-subtext.white-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.badge-trust.dark-mode {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.badge-trust.dark-mode i {
  color: #fbbf24;
  margin-right: 0.3rem;
}

.hero-actions.center-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-note.white-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* --- Space Hub --- */
.space-hub {
  padding: 120px 0;
  background-color: var(--bg-light);
}

.section-header {
  margin-bottom: 4rem;
}

.section-header.center {
  text-align: center;
}

.sub-title {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 800;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.space-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.space-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.space-card:hover .card-img img {
  transform: scale(1.1);
}

.card-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
}

.card-body {
  padding: 2rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  height: 3.4em;
  overflow: hidden;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.card-tags span {
  font-size: 0.7rem;
  background: #f1f1f1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-light);
}

/* --- Case Studies --- */
.cases {
  padding: 120px 0;
}

.case-item {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 80px;
}

.case-item.reverse {
  flex-direction: row-reverse;
}

.case-content {
  flex: 1;
}

.case-num {
  font-size: 4rem;
  font-weight: 800;
  color: #f1f1f1;
  line-height: 1;
  margin-bottom: 1rem;
}

.case-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.case-visual {
  flex: 1;
}

.case-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

/* --- Equipment --- */
.equipment {
  padding: 100px 0;
  background: var(--secondary);
  color: white;
}

.equipment-box h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
}

.equipment-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.eq-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.eq-tag i {
  color: var(--primary);
  font-size: 1.1rem;
}

.eq-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- Reviews --- */
.reviews {
  padding: 120px 0;
  background-color: var(--bg-light);
}

.review-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.reviewer {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--heading);
}

/* --- CTA Section --- */
.final-cta {
  padding: 120px 0;
  text-align: center;
}

.final-cta h2 {
  font-size: 3rem;
  margin-bottom: 4rem;
}

.cta-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.booking-group, .phone-group {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: center;
}

.booking-group h3, .phone-group h3 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--secondary);
  font-weight: 700;
}

.booking-group h3::after, .phone-group h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-instabase, .btn-spacemarket {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-instabase { background-color: var(--accent); }
.btn-spacemarket { background-color: var(--danger); }
.btn-instabase:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 169, 157, 0.3); }
.btn-spacemarket:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(224, 32, 32, 0.3); }

.tel-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.tel-number:hover {
  opacity: 0.8;
}

/* --- Access --- */
.access-section {
  padding: 80px 0;
  background: #fdfdfd;
}

.access-grid-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

/* --- Footer --- */
footer {
  background: #111;
  color: #999;
  padding: 60px 0 20px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-info h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #999;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 20px;
}


/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  text-decoration: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-5px);
  color: white;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid, .space-grid, .case-item, .equipment-grid-complex, .equipment-tags, .review-slider, .cta-links, .access-grid-main {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 3rem;
  }
  
  .hero-title { font-size: 2.5rem; }
  .case-item.reverse { flex-direction: column; }
  .desktop-nav { display: none; }
}
