/* ==========================================================================
   株式会社dareto コーポレートサイト
   モノトーン基調(黒・白・グレーのみ)/装飾は細い一本線と余白で構成
   ========================================================================== */

/* ------------------------------ 変数・リセット ------------------------------ */
:root {
  /* ロゴPNGの背景と同一の純黒(継ぎ目を見せないため変更しないこと) */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-bg: #e4e4e4;
  --color-gray-text: #666666;
  --color-gray-line: #cccccc;

  /* 見出し: ロゴに合わせたブロック感のある太い幾何学的サンセリフ */
  --font-heading: "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  /* 本文: 読みやすいゴシック体 */
  --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの高さぶんアンカー位置を下げる */
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

/* ------------------------------ 共通レイアウト ------------------------------ */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 4カラムのステップを収める幅広コンテナ(事業内容で使用) */
.container-wide {
  max-width: 1120px;
}

.section {
  padding: 112px 0;
}

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

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

.section-black {
  background: var(--color-black);
  color: var(--color-white);
}

/* セクション見出し: 英字ラベル+日本語見出し+ロゴ由来の一本線 */
.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gray-text);
  text-align: center;
}

.section-black .section-label {
  color: var(--color-gray-line);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin-top: 12px;
}

/* 見出し下のディバイダー(ロゴ下の一本線を踏襲) */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: currentColor;
  margin: 28px auto 0;
}

.section-lead {
  text-align: center;
  margin-top: 40px;
}

/* ボタン(黒地用・白地用) */
.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  padding: 16px 48px;
  border: 1px solid currentColor;
  transition: opacity 0.25s ease;
}

.button:hover {
  opacity: 0.6;
}

/* ボタン内アイコン(封筒など) */
.button-icon {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  margin-right: 10px;
}

.button-black {
  color: var(--color-white);
  background: var(--color-black);
  border-color: var(--color-black);
}

.button-white {
  color: var(--color-black);
  background: var(--color-white);
  border-color: var(--color-white);
}

/* ------------------------------ ヘッダー ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-line);
}

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

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

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-black);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.header-nav a:hover {
  opacity: 0.5;
}

/* ------------------------------ ヒーロー ------------------------------ */
.hero {
  position: relative;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 72px);
  padding: 96px 24px 120px;
  text-align: center;
}

/* スクロールインジケーター(細い縦線+SCROLL) */
.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll span {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--color-gray-line);
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--color-white), transparent);
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-logo {
  width: 220px;
  height: 220px;
  margin: 0 auto 40px;
}

.hero-copy {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: 0.12em;
  line-height: 2;
}

.hero-copy-line {
  display: block;
}

.hero-copy-note {
  /* 途中で改行されないよう塊のまま折り返す */
  display: inline-block;
  white-space: nowrap;
  font-size: 0.6em;
  font-weight: 600;
  color: var(--color-gray-line);
  letter-spacing: 0.08em;
}

.hero-lead {
  margin-top: 48px;
  font-size: 0.9375rem;
  color: var(--color-gray-line);
}

/* ------------------------------ 事業内容 ------------------------------ */
.steps {
  list-style: none;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step {
  border-top: 2px solid var(--color-black);
  padding-top: 24px;
}

.step-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.step-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  color: var(--color-gray-text);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-top: 8px;
}

.step-text {
  margin-top: 16px;
  font-size: 0.9375rem;
}

/* ------------------------------ 会社概要 ------------------------------ */
.company-table {
  margin-top: 64px;
}

.company-row {
  display: flex;
  gap: 32px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--color-gray-line);
}

.company-row:first-child {
  border-top: 1px solid var(--color-gray-line);
}

.company-row dt {
  flex: 0 0 8em;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.company-row dd {
  flex: 1;
}

/* ------------------------------ 実績 ------------------------------ */
#works .container {
  text-align: center;
}

.works-text {
  margin-top: 40px;
}

#works .button {
  margin-top: 40px;
}

/* ------------------------------ お問い合わせ ------------------------------ */
#contact .container {
  text-align: center;
}

.contact-text {
  margin-top: 40px;
  color: var(--color-gray-line);
}

#contact .button {
  margin-top: 40px;
}

/* ------------------------------ フッター ------------------------------ */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 48px 24px 56px;
  border-top: 1px solid #2a2a2a;
}

.footer-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto;
}

.footer-copyright {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-gray-line);
}

/* ------------------------------ フェードイン ------------------------------ */
/* JS有効時のみ .js-fade が付与され、初期状態が透明になる(JS無効でも全表示) */
.js-fade .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ------------------------------ レスポンシブ(〜1024px: タブレット) ------------------------------ */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------ レスポンシブ(〜768px) ------------------------------ */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .header-inner {
    height: 64px;
  }

  .header-logo img {
    width: 44px;
    height: 44px;
  }

  .header-nav {
    gap: 16px;
  }

  .header-nav a {
    font-size: 0.75rem;
  }

  html {
    scroll-padding-top: 64px;
  }

  .hero {
    min-height: calc(100vh - 64px);
    padding: 64px 24px 110px;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
    margin-bottom: 32px;
  }

  .hero-copy {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .hero-lead {
    margin-top: 32px;
    font-size: 0.875rem;
    text-align: left;
  }

  .br-desktop {
    display: none;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 56px;
  }

  .company-row {
    flex-direction: column;
    gap: 4px;
    padding: 20px 4px;
  }

  .company-row dt {
    flex: none;
    font-size: 0.8125rem;
    color: var(--color-gray-text);
  }
}
