@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Noto+Serif+JP:wght@200;300;400;500;600&display=swap');

:root {
  /* Colors - Light Theme based on requirements */
  --bg-base: #ffffff;
  --bg-sub: #f4f7fb;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-heavy: rgba(255, 255, 255, 0.9);
  
  --text-main: #111111; /* より漆黒に近づける */
  --text-sub: #64748b;
  --text-light: #94a3b8;
  
  --accent-electric: #0f172a; 
  --accent-cyan: #3b82f6;     
  --accent-emerald: #64748b;  
  --accent-gold: #c5a059;     /* ゴージャスなゴールド */
  --accent-gradient: linear-gradient(135deg, #1e293b, #334155);
  
  /* Borders & Shadows */
  --border-light: rgba(0, 102, 255, 0.1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.15);
  
  /* Typos */
  --font-en: 'Cormorant Garamond', serif;
  --font-jp: 'Noto Serif JP', serif;
  
  /* Others */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-jp);
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.8;
  font-size: 1rem;
  font-weight: 400; /* 少し太くして力強さを出す */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700; /* 見出しは太く力強く */
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--text-main);
  letter-spacing: 0.05em; /* 文字間をしっかり取って大人っぽく */
}

.en {
  font-family: var(--font-en);
}

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

a:hover {
  color: var(--accent-cyan);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1600px; /* 大幅に拡張！ */
  margin: 0 auto;
  padding: 0 4vw; /* 横幅に応じてパディングも動的に広くとる */
}

.section {
  padding: 200px 0; /* 余白をさらに劇的に増加 */
  position: relative; /* 背景アニメーションなどを入れるため */
}

.section-bg-sub {
  background-color: var(--bg-sub);
}

.section-header {
  text-align: center;
  margin-bottom: 80px; /* 見出しの下の余白も大胆に */
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-en);
  font-weight: 600; /* 太くして存在感アップ */
  color: var(--text-main);
  display: inline-block;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  font-weight: 500;
  color: var(--text-sub); 
  letter-spacing: 0.2em; /* 非常に広く取って余白を感じさせる */
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Offset Layout (画像2枚目、3枚目のような配置) */
.offset-layout {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 40px 0;
}

.offset-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%; /* 左から3/4を画像が占める */
  height: 90%;
  background-color: #e5e7eb; /* 画像が入るまでのダミー色 */
  background-size: cover;
  background-position: center;
}

.offset-card {
  position: relative;
  z-index: 2;
  background: #fff;
  width: 45%; /* 右側に被さるカード */
  padding: 60px 80px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05); /* 高級感のある影 */
}

@media (max-width: 992px) {
  .offset-bg { width: 100%; height: 50vh; }
  .offset-card { width: 90%; margin: 40vh auto 0; padding: 40px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 0;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--text-main); /* シンプルな線のボタンに変更 */
}

.btn-primary {
  background: var(--text-main);
  color: #fff;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-main);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
}
.btn-outline:hover {
  background: var(--text-main);
  color: #fff;
}

/* Glass Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(0,102,255,0.2), rgba(0,212,255,0.05)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 0;
  background: transparent; /* 初期は透過 */
  border-bottom: 1px solid rgba(0,0,0,0);
  z-index: 1000;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), padding 0.6s ease, background 0.6s ease, border 0.6s ease;
  transform: translateY(0); /* 最初から表示 */
}

/* スクロール時のスタイル */
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
  padding: 15px 0;
}

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

.logo {
  font-family: var(--font-en);
  font-size: 1.8rem; /* 少し大きく */
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-accent {
  color: var(--accent-electric);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 48px; /* こぢんまり感をなくすため幅を広くとる */
}

.nav-link {
  font-family: var(--font-en);
  font-size: 1.05rem; /* サイズ拡大 */
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 2px; /* 少し広く */
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-electric);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 16px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  margin-bottom: 40px;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background-color: #0b1120; /* 濃い空間色 */
  color: #fff;
  padding: 80px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: block;
}

.footer-logo-accent {
  color: var(--accent-cyan);
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 24px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background: var(--accent-gradient);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-cyan);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-light);
}

.footer-bottom-links a:hover {
  color: #fff;
}

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
  .nav-desktop, .nav-actions {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-links {
    flex-wrap: wrap;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Giant Number for Why Us */
.giant-number {
  font-family: Arial, sans-serif; /* ダサさを払拭するためソリッドなサンセリフに */
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 0.75;
  letter-spacing: -0.05em;
  opacity: 0.1; /* 透明度で背景に溶け込ませる */
  min-width: 140px;
  margin-top: -10px; /* 見出しとの頭合わせ用 */
}


/* Header Contact Button FORCE OVERRIDE */
.btn-header {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  padding: 12px 36px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}
.btn-header:hover {
  background-color: transparent !important;
  color: #000 !important;
}

/* View More Button */
.btn-view-more {
  border-color: var(--text-main) !important;
  color: var(--text-main) !important;
  background-color: transparent !important;
}
.btn-view-more:hover {
  background-color: var(--text-main) !important;
  color: #fff !important;
}

/* Bigger Hero Buttons */
.hero-btn-giant {
  padding: 24px 64px !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

/* Stats Dark Band */
.stats-dark-band {
  background-color: #111;
  color: #fff;
  padding: 100px 0;
  margin: 80px 0;
}
.stats-dark-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.stats-dark-title {
  flex: 0 0 300px;
  border-right: 1px solid rgba(255,255,255,0.15);
  padding-right: 40px;
}
@media (max-width: 900px) {
  .stats-dark-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-dark-title {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-right: 0;
    padding-bottom: 30px;
    margin-bottom: 20px;
    width: 100%;
  }
}
.stats-dark-title h2 {
  font-family: var(--font-en);
  font-size: 3.5rem;
  color: rgba(218, 165, 32, 0.9);
  line-height: 1.1;
  margin-bottom: 12px;
  font-weight: 600;
}
.stats-dark-title p {
  color: #aaa;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

/* Footer Info */
.footer-info-table {
  width: 100%;
  border-collapse: collapse;
}
.footer-info-table th, .footer-info-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  color: var(--text-sub);
  text-align: left;
  vertical-align: top;
}
.footer-info-table th {
  width: 100px;
  font-weight: 600;
  color: var(--text-main);
}
.footer-info-table tr:last-child th, .footer-info-table tr:last-child td {
  border-bottom: none;
}

/* ====== NEW LAYOUT ADJUSTMENTS FOR MOBILE ====== */

/* 3. Hero content overlap fix */
@media (max-width: 768px) {
  .hero-content {
    /* margin-top: 100px; removed since .hero now has native padding-top */
  }
}

/* 4. Center Hero CTA buttons on mobile */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .hero-actions {
    justify-content: center;
  }
}

/* 5. Mission offset card mobile positioning */
.mission-offset-card {
  margin-top: 120px;
}
@media (max-width: 992px) {
  .mission-offset-card {
    margin-top: 250px !important; /* Move down significantly more on mobile to avoid overlap */
  }
}

/* 6. Track Record bottom margin */
@media (max-width: 768px) {
  .stats-dark-band {
    padding: 60px 0 40px !important;
    margin: 40px 0 20px !important;
  }
}

/* 7. Why Us layout */
.why-us-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-us-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.why-us-reverse {
  flex-direction: row-reverse;
}
.why-us-img {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}
.why-us-text {
  flex: 1;
  padding: 60px 60px 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.why-us-reverse .why-us-text {
  padding: 60px 80px 60px 60px;
}
.why-us-bg-num {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: 'Shippori Mincho B1', serif;
  font-size: 24rem;
  font-weight: 800;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 0;
}
.why-us-reverse .why-us-bg-num {
  right: auto;
  left: -10px;
}

@media (max-width: 992px) {
  .why-us-row, .why-us-reverse {
    flex-direction: column;
  }
  .why-us-img {
    flex: 1 1 100%;
    min-height: 250px;
  }
  .why-us-img div {
    min-height: 250px !important;
  }
  .why-us-text, .why-us-reverse .why-us-text {
    padding: 40px 24px;
    flex: 1 1 100%;
  }
  .why-us-bg-num, .why-us-reverse .why-us-bg-num {
    font-size: 14rem;
    top: -10px;
    right: 0;
    left: auto;
  }
}

/* 8. Process Section Spacing */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-line {
  position: absolute;
  top: 36px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 2px;
  background: rgba(197,160,89,0.3);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 24px;
}
.process-num {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: var(--accent-gold);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 32px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px; /* Fix left/right padding on mobile */
  }
  .process-line {
    /* Make vertical on mobile */
    top: 0;
    bottom: 0;
    left: 56px;
    right: auto;
    width: 2px;
    height: 100%;
  }
  .process-step {
    padding: 0 0 0 100px;
    text-align: left;
  }
  .process-num {
    position: absolute;
    left: 20px;
    top: 0;
    margin-bottom: 0;
  }
}


/* Page Banner for Subpages */
.page-banner {
    width: 100%;
    height: 200px;
    background-image: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 60px;
    filter: brightness(0.6) grayscale(100%);
}
@media (max-width: 768px) {
    .page-banner {
        height: 120px;
        margin-top: 40px;
    }
}

/* ページトップへボタン */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--accent-gold);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}
