@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Outfit:wght@600;900&display=swap');

/* ==========================================================================
   Design System & Reset
   ========================================================================== */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #f5c518; /* 力強い建設業イエロー */
  --accent-rgb: 245, 197, 24;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-jp);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

li {
  list-style: none;
}

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

/* ==========================================================================
   Layout Helpers & Common Sections
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

.section-header {
  margin-bottom: 80px;
  text-align: left;
}

.section-header__subtitle {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--accent-color);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-header__title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-header__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

/* スクロール時のヘッダー背景変化 */
.header.scrolled {
  padding: 16px 48px;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__logo {
  display: flex;
  flex-direction: column;
}

.header__logo-en {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  line-height: 1;
}

.header__logo-jp {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  margin-top: 4px;
  font-weight: 700;
}

.nav__list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav__link:hover {
  color: var(--accent-color);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__item-contact {
  display: none;
}

.burger {
  display: none;
}

.header__cta {
  background-color: var(--accent-color);
  color: #000000;
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-radius: 0; /* 田口のようにシャープな角 */
  border: 2px solid var(--accent-color);
  transition: var(--transition-smooth);
  cursor: pointer;
  text-align: center;
}

.header__cta:hover {
  background-color: transparent;
  color: var(--accent-color);
}

/* ==========================================================================
   Hero Section (Pop Art & Dot Lace Layout)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8%;
  overflow: hidden;
}

/* ポップアート背景画像 */
.hero__bg-popart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* 黒いドットレース（網点オーバーレイ） */
.hero__overlay-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.45) 20%, transparent 22%);
  background-size: 6px 6px;
  z-index: 2;
  pointer-events: none;
}

/* 暗めのグラデーションオーバーレイ */
.hero__overlay {
  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: 3;
}

/* コンテンツ部分 */
.hero__content {
  position: relative;
  z-index: 4;
  max-width: 800px;
}

/* ギザギザ吹き出し（SHOUT!風） */
.popart-badge {
  display: inline-block;
  background-color: var(--accent-color);
  padding: 12px 36px;
  margin-bottom: 24px;
  transform: rotate(-5deg);
  /* ギザギザの多角形クリップパス */
  clip-path: polygon(
    0% 15%, 12% 0%, 25% 12%, 38% 0%, 50% 15%, 62% 2%, 75% 18%, 88% 5%, 100% 20%,
    92% 38%, 98% 55%, 90% 70%, 96% 85%, 82% 80%, 75% 95%, 60% 82%, 48% 100%, 35% 85%,
    22% 98%, 15% 80%, 0% 90%, 5% 65%, 0% 45%, 8% 30%
  );
  box-shadow: 6px 6px 0 #000000;
  animation: pulseBadge 3s infinite ease-in-out;
}

.popart-badge--contact {
  transform: rotate(3deg);
  animation: pulseBadgeContact 3s infinite ease-in-out;
}

@keyframes pulseBadge {
  0% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(-3deg) scale(1.05); }
  100% { transform: rotate(-5deg) scale(1); }
}

@keyframes pulseBadgeContact {
  0% { transform: rotate(3deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.05); }
  100% { transform: rotate(3deg) scale(1); }
}

.popart-badge__text {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 3rem;
  color: #e50914; /* 鮮烈なアメコミレッド */
  letter-spacing: 0.05em;
  display: block;
  /* アメコミ風の極太黒フチ + 白影 */
  text-shadow: 
    3px 3px 0 #000, 
    -3px -3px 0 #000, 
    3px -3px 0 #000, 
    -3px 3px 0 #000,
    0px 3px 0 #000,
    0px -3px 0 #000,
    3px 0px 0 #000,
    -3px 0px 0 #000,
    6px 6px 0 #fff;
}

.hero__subtitle {
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--accent-color);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.hero__subtitle::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  margin-right: 16px;
}

.hero__title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.hero__title span {
  display: block;
}

.hero__title .highlight {
  color: var(--accent-color);
  font-size: 5rem;
}

.hero__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
  transition: var(--transition-smooth);
}

.hero__btn:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

/* 丸バッジ (RECRUITバッジ風) */
.popart-circle-badge {
  position: absolute;
  bottom: 120px;
  right: 8%;
  z-index: 5;
  width: 150px;
  height: 150px;
  background-color: #1e3a8a; /* 深いロイヤルブルー */
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  transition: var(--transition-smooth);
}

.popart-circle-badge:hover {
  transform: rotate(0deg) scale(1.1);
}

.popart-circle-badge__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-family: var(--font-en);
  text-align: center;
}

.popart-circle-badge__top {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 4px;
  width: 80%;
}

.popart-circle-badge__middle {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 4px 0;
  color: var(--accent-color);
}

.popart-circle-badge__bottom {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
}

.hero__scroll-down {
  position: absolute;
  bottom: 40px;
  left: 8%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

.hero__scroll-line {
  width: 1px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: var(--accent-color);
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% { transform: translateY(-40px); }
  100% { transform: translateY(80px); }
}

/* ==========================================================================
   Strength Section
   ========================================================================== */
.strength {
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.strength__item {
  position: relative;
  padding: 40px;
  background-color: var(--bg-secondary);
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
}

.strength__item:hover {
  border-left-color: var(--accent-color);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.strength__num {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(245, 197, 24, 0.1);
  line-height: 1;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.strength__item:hover .strength__num {
  color: rgba(245, 197, 24, 1);
  transform: scale(1.05);
}

.strength__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.strength__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  background-color: var(--bg-secondary);
}

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

.services__card {
  background-color: var(--bg-primary);
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.services__card:hover {
  transform: translateY(-10px);
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.services__card-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.services__card:hover .services__card-img {
  transform: scale(1.05);
}

.services__card-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.services__card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 12px;
}

.services__card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.services__card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================================================
   Company Overview Section
   ========================================================================== */
.company {
  background-color: var(--bg-primary);
}

.company__table-wrapper {
  background-color: var(--bg-secondary);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.company__table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.company__table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.company__table tr:last-child {
  border-bottom: none;
}

.company__table th {
  width: 25%;
  padding: 24px 16px;
  font-weight: 700;
  color: var(--accent-color);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.company__table td {
  padding: 24px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact Banner Section (with Pop Art & Dot Lace)
   ========================================================================== */
.contact-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ポップアート背景画像 */
.contact-banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* 黒いドットレース（網点オーバーレイ） */
.contact-banner__overlay-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.5) 20%, transparent 22%);
  background-size: 6px 6px;
  z-index: 2;
  pointer-events: none;
}

/* 暗めのグラデーションオーバーレイ */
.contact-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.6) 100%);
  z-index: 3;
}

.contact-banner__content {
  position: relative;
  z-index: 4;
}

.contact-banner__title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.contact-banner__desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* アメコミ調お問い合わせボタン */
.contact-banner__btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #000000;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  padding: 18px 54px;
  border: 3px solid #000000;
  box-shadow: 5px 5px 0 #000000;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.contact-banner__btn:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #000000;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #050505;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__brand {
  text-align: center;
}

.footer__logo-en {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  display: block;
  line-height: 1;
}

.footer__logo-jp {
  font-size: 0.8rem;
  color: var(--accent-color);
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-top: 6px;
  display: block;
}

.footer__nav {
  display: flex;
  gap: 24px;
}

.footer__nav a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

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

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Animations & Interaction (Scroll Fade-In)
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Responsive Settings
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__title .highlight {
    font-size: 4rem;
  }
  .strength__grid,
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .company__table th {
    width: 30%;
  }
  .popart-circle-badge {
    bottom: 40px;
    width: 120px;
    height: 120px;
  }
  .popart-circle-badge__middle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
  .header {
    padding: 16px 24px;
  }
  .header.scrolled {
    padding: 12px 24px;
  }
  .header__cta {
    display: none;
  }
  .burger {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }

  .burger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    left: 0;
    transition: var(--transition-smooth);
  }

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

  /* アクティブ時のバツ印アニメーション */
  .burger.is-open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    background-color: var(--accent-color);
  }
  .burger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .burger.is-open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    background-color: var(--accent-color);
  }

  /* ドロワーメニュー */
  .nav {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%; /* 初期位置は右外 */
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 100px 30px 40px;
    transition: var(--transition-smooth);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav.is-open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }

  .nav__link {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav__item-contact {
    display: block;
    width: 100%;
  }
  .nav__item-contact .nav__link {
    color: var(--accent-color);
  }
  .hero {
    padding: 0 24px;
  }
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__title .highlight {
    font-size: 2.8rem;
  }
  .hero__description {
    font-size: 0.95rem;
  }
  .popart-badge__text {
    font-size: 2rem;
    text-shadow: 
      2px 2px 0 #000, 
      -2px -2px 0 #000, 
      2px -2px 0 #000, 
      -2px 2px 0 #000,
      4px 4px 0 #fff;
  }
  .popart-circle-badge {
    display: none;
  }
  .strength__grid,
  .services__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .company__table-wrapper {
    padding: 24px;
  }
  .company__table th,
  .company__table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
  .company__table th {
    padding-bottom: 4px;
  }
  .company__table tr {
    padding-bottom: 12px;
    display: block;
  }
  .contact-banner__title {
    font-size: 1.8rem;
  }
  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
