/* ==========================================
   CSS Reset & Base
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-main: #f0f4f8;
  --sidebar-bg: #e2e8f0;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-light: #64748b;
  --accent: #0284c7;
  --border-color: #cbd5e1;
  --card-bg: #ffffff;
  --table-th-bg: #f8fafc;
  --note-bg: #f8fafc;
  --number-color: #e2e8f0;
}

#hero,
#about,
#business,
#contact {
  scroll-margin-top: 100px;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.8;
  display: flex;
  min-height: 100vh;
}

body.is-fixed {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================
   Sidebar (PC Layout)
   ========================================== */
.site-sidebar {
  width: 280px;
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.logo a {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.logo span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent);
  margin-left: 4px;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

.hamburger-btn {
  display: none;
}

.nav-menu ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text-sub);
  transition: color 0.2s;
  font-weight: 500;
  display: inline-block;
}

.nav-menu a:hover,
.nav-menu a.is-current {
  color: var(--text-main);
  transform: translateX(4px);
  transition:
    transform 0.2s,
    color 0.2s;
}

.sidebar-footer {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.sp-nav-menu {
  display: none;
}

/* ==========================================
   Main Wrapper (PC Layout)
   ========================================== */
.main-wrapper {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-main {
  margin: 0 auto;
  padding: 80px 60px;
  max-width: 1000px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  margin-bottom: 100px;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero-content small {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ==========================================
   Sections Common
   ========================================== */
.section {
  margin-bottom: 100px;
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ==========================================
   About Section
   ========================================== */
.profile-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.company-table {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.company-table dt,
.company-table dd {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.company-table tr:last-child dt,
.company-table tr:last-child dd,
.company-table dt:last-of-type,
.company-table dd:last-of-type {
  border-bottom: none;
}

.company-table dt {
  color: var(--text-sub);
  font-weight: 500;
  background-color: var(--table-th-bg);
}

.company-table dd {
  color: var(--text-main);
}

/* ==========================================
   Business Section
   ========================================== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.business-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.card-number {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--number-color);
  margin-bottom: 16px;
}

.business-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.business-card p {
  font-size: 0.92rem;
  color: var(--text-sub);
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.contact-lead {
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-note {
  font-size: 0.82rem;
  color: var(--text-sub);
  background-color: var(--note-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  gap: 40px;
}

.info-item .label {
  display: block;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin-bottom: 4px;
}

.info-item .value {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ==========================================
   Animation
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in.is-show {
  opacity: 1;
  transform: translateY(0);
}

.pc-hidden {
  display: none;
}

.privacy-box {
  background-color: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  padding: 2.5rem;
}

.privacy-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main, #0f172a);
}

.privacy-box h3:first-of-type {
  margin-top: 1.5rem;
}

.privacy-box p {
  line-height: 1.8;
  color: var(--text-sub, #475569);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* ==========================================
   Mobile Responsive (1024px以下)
   ========================================== */
@media screen and (max-width: 1024px) {
  body {
    flex-direction: column;
  }

  .site-sidebar {
    width: 100%;
    height: 70px;
    position: fixed;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-inner {
    padding: 0 24px;
    flex-direction: row;
    align-items: center;
  }

  .logo-sub,
  .sidebar-footer {
    display: none;
  }

  .nav-menu {
    display: none;
  }

  /* ハンバーガーボタンを表示 */
  .hamburger-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 110;
  }

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

  .hamburger-btn span:nth-child(1) {
    top: 0;
  }
  .hamburger-btn span:nth-child(2) {
    top: 11px;
  }
  .hamburger-btn span:nth-child(3) {
    top: 22px;
  }

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

  /* スマホ用全画面メニュー */
  .sp-nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    background-color: var(--bg-main);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sp-nav-menu.is-active {
    transform: none;
  }

  .sp-nav-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .sp-nav-menu a {
    font-size: 1.2rem;
    font-weight: 500;
  }

  /* メインコンテンツの調整 */
  .main-wrapper {
    margin-left: 0;
    margin-top: 70px;
    width: 100%;
  }

  .site-main {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .company-table {
    display: block;
  }

  .company-table dt,
  .company-table dd {
    display: block;
    width: 100%;
  }

  .company-table dt {
    padding-bottom: 4px;
    border-bottom: none;
    font-size: 0.85rem;
  }

  .company-table dd {
    padding-top: 4px;
  }

  .business-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 24px 20px;
  }

  .contact-info {
    flex-direction: column;
    gap: 20px;
  }

  .pc-only {
    display: none;
  }

  .pc-hidden {
    display: block;
    text-align: center;
    padding: 20px;
    font-size: 0.75rem;
    color: var(--text-sub);
    background-color: var(--sidebar-bg);
  }

  .privacy-box {
    padding: 1.5rem;
  }
}
