/* ========================================
   合同会社 START — スタイルシート
   テーマ: レッド × ホワイト × ダークグレー
   ======================================== */

/* ---------- CSS変数 ---------- */
:root {
  --red:        #C8222A;
  --red-dark:   #A01820;
  --red-light:  #e84044;
  --white:      #ffffff;
  --dark:       #1a1a1a;
  --dark-2:     #242424;
  --dark-3:     #2e2e2e;
  --gray:       #555555;
  --gray-light: #f4f4f4;
  --border:     rgba(200,34,42,0.3);
  --font-en:    'Barlow Condensed', sans-serif;
  --font-ja:    'Noto Sans JP', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:     0 8px 32px rgba(200,34,42,0.15);
}

/* ---------- リセット & 基本 ---------- */
*, *::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(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- 共通ユーティリティ ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 100px 0;
}

.sp-only { display: none; }

/* ---------- セクションヘッダー ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-ja);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.title-bar {
  width: 50px;
  height: 4px;
  background: var(--red);
  margin: 0 auto;
  position: relative;
}
.title-bar::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 0;
  width: 16px;
  height: 4px;
  background: var(--red);
  opacity: 0.4;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0% 100%);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,34,42,0.4);
}

.btn--outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  clip-path: polygon(3% 0, 100% 0, 100% 100%, 0% 100%);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

.header.scrolled {
  background: var(--dark);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  padding: 8px 16px;
  border-radius: 2px;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.nav-link:hover { color: var(--red-light); }

.nav-link.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 8px 20px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.nav-link.nav-cta:hover {
  background: var(--red-dark);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

/* 背景の斜めライン装飾 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-diagonal {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: var(--red);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.08;
}

/* 幾何学ライン */
.geo-lines { position: absolute; inset: 0; overflow: hidden; }

.geo-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.2;
}
.geo-line--1 { width: 60%; top: 25%; left: -10%; transform: rotate(-8deg); }
.geo-line--2 { width: 40%; top: 55%; left: 30%; transform: rotate(-8deg); opacity: 0.12; }
.geo-line--3 { width: 80%; top: 75%; left: -5%; transform: rotate(-8deg); opacity: 0.08; }

/* 右側の赤い大型アクセント */
.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  border: 2px solid var(--red);
  border-radius: 2px;
  opacity: 0.08;
  transform: translateY(-50%) rotate(15deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-sub {
  font-family: var(--font-ja);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
  line-height: 1;
}

.hero-title-en {
  font-family: var(--font-en);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 0.9;
  /* 斜めカット文字の演出 */
  -webkit-text-stroke: 1px rgba(200,34,42,0.5);
  text-shadow: 4px 4px 0 var(--red), 0 0 60px rgba(200,34,42,0.3);
}

.hero-title-ja {
  font-family: var(--font-ja);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--red-light);
  letter-spacing: 0.3em;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  line-height: 1.9;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--red));
  animation: scrollLine 1.8s ease-in-out infinite;
}
.hero-scroll p {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   SECTION DIAGONAL (clip-path区切り)
   ======================================== */
.section-diagonal-top {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
  z-index: 2;
}
.section-diagonal-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--white);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}
.about-diag-top {
  background: var(--gray-light);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}
.about-diag-bottom {
  background: var(--gray-light);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

/* ========================================
   BUSINESS
   ======================================== */
.business {
  background: var(--gray-light);
  overflow: hidden;
}

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

.business-card {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.business-card:hover {
  border-bottom-color: var(--red);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.business-card__icon {
  width: 60px;
  height: 60px;
  background: var(--red);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.business-card__icon i {
  font-size: 1.4rem;
  color: var(--white);
}

.business-card__num {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(200,34,42,0.08);
  position: absolute;
  top: 20px;
  right: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.business-card__title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.business-card__text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.8;
}

.business-card__accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.4s ease;
}
.business-card:hover .business-card__accent { width: 100%; }

/* ========================================
   STRENGTH
   ======================================== */
.strength {
  background: var(--dark);
  overflow: hidden;
}
.strength .section-title { color: var(--white); }

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

.strength-item {
  background: var(--dark-2);
  padding: 36px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-left: 4px solid var(--red);
  transition: var(--transition);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.strength-item:hover {
  background: var(--dark-3);
  transform: translateX(4px);
  box-shadow: -4px 0 24px rgba(200,34,42,0.2);
}

.strength-item__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: rgba(200,34,42,0.12);
  border: 1px solid rgba(200,34,42,0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strength-item__icon i {
  font-size: 1.3rem;
  color: var(--red-light);
}

.strength-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.strength-item__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  background: var(--gray-light);
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-wrap {
  background: var(--red);
  padding: 40px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  box-shadow: 8px 8px 0 var(--red-dark);
}

.about-logo { width: 180px; }

/* 幾何学バー装飾 */
.about-geo {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-geo__bar {
  height: 4px;
  background: var(--red);
  border-radius: 0;
}
.about-geo__bar--1 { width: 60px; }
.about-geo__bar--2 { width: 40px; opacity: 0.6; }
.about-geo__bar--3 { width: 24px; opacity: 0.3; }

/* テーブル */
.about-table {
  width: 100%;
  border-collapse: collapse;
}
.about-table tr {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.about-table th {
  width: 130px;
  padding: 18px 16px 18px 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  vertical-align: top;
  white-space: nowrap;
}
.about-table td {
  padding: 18px 0;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
}

.tel-link {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.tel-link:hover { color: var(--red-dark); }

/* ========================================
   CONTACT
   ======================================== */
.contact {
  background: var(--dark);
  text-align: center;
}
.contact .section-title { color: var(--white); }

.contact-inner {
  background: var(--dark-2);
  padding: 60px 40px;
  max-width: 640px;
  margin: 0 auto;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  border: 1px solid rgba(200,34,42,0.2);
}

.contact-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding: 16px 36px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0% 100%);
  transition: var(--transition);
}
.contact-tel:hover {
  background: var(--red-dark);
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(200,34,42,0.5);
}
.contact-tel i {
  font-size: 1.3rem;
  animation: ring 2s ease-in-out infinite;
}
@keyframes ring {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-20deg); }
  20% { transform: rotate(20deg); }
  30% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.contact-hours {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
  letter-spacing: 0.1em;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #0d0d0d;
  border-top: 3px solid var(--red);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.footer-logo-img {
  height: 56px;
  width: auto;
}

.footer-company {
  font-weight: 900;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-address, .footer-tel {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-tel a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-tel a:hover { color: var(--red-light); }

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.footer-nav a:hover { color: var(--red-light); }

.footer-bottom {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

/* ========================================
   スクロールアニメーション
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========================================
   レスポンシブ（タブレット）
   ======================================== */
@media (max-width: 1024px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ========================================
   レスポンシブ（スマートフォン）
   ======================================== */
@media (max-width: 768px) {
  .sp-only { display: block; }

  /* ヘッダー */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--dark);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: 2px solid var(--red);
    z-index: 999;
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link {
    display: block;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    clip-path: none;
  }
  .nav-link.nav-cta {
    clip-path: none;
    margin: 16px 24px;
    text-align: center;
  }

  /* ヒーロー */
  .hero-content {
    padding: 100px 24px 100px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .hero-scroll { display: none; }

  /* セクション */
  .section { padding: 70px 0; }
  .section-header { margin-bottom: 40px; }

  /* ビジネスカード */
  .business-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ストレングス */
  .strength-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* フッター */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-nav ul { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; }

  /* コンタクト */
  .contact-inner {
    padding: 40px 24px;
    clip-path: none;
  }

  /* セクション区切り */
  .section-diagonal-top,
  .section-diagonal-bottom { height: 40px; }
}
