/* ============================================================
   株式会社リビバル コーポレートサイト v1（シンプル静的版）
   トンマナ: ダークネイビー × レッドのアクセント / ミニマル / 余白重視
            （ロゴ「Re vival」の配色に合わせる。c-h.co.jp 参考）

   ▼ 調整ポイントは下の :root に集約
     - 色を変えたい       → --c-*（アクセントの赤は --c-red）
     - フォントを変えたい → --font-*
     - コンテンツ幅       → --w-content
   ============================================================ */

:root {
  --c-black: #26303a;      /* メインのダークネイビー（ロゴ文字色。本文・ダークセクション背景） */
  --c-white: #ffffff;      /* 背景の白 */
  --c-gray: #f4f4f4;       /* 薄グレー背景（NEWSセクション） */
  --c-gray-mid: #9aa0a6;   /* 補助テキスト */
  --c-gray-line: #e2e4e7;  /* 罫線 */
  --c-red: #e8283a;        /* ロゴのレッド（アクセント。数字・ホバー・ボタン等に少量使う） */
  --c-red-dark: #c81f30;   /* 赤ホバー時の濃い赤 */
  --font-en: "Inter", sans-serif;            /* 英字 */
  --font-jp: "Noto Sans JP", sans-serif;     /* 本文の日本語 */
  --font-serif: "Shippori Mincho", serif;    /* 見出しの明朝 */
  --w-content: 1080px;     /* コンテンツ最大幅 */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--c-black);
  background: var(--c-white);
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--c-gray-line);
}

.header__inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: inline-flex;
  align-items: center;
}
.header__logo-img {   /* 公式ロゴ（横型 Re vival）を表示 */
  height: 40px;
  width: auto;
  display: block;
}
.header__logo-jp {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 10px;
  color: var(--c-gray-mid);
  margin-left: 12px;
  letter-spacing: 0.1em;
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.header__nav a { position: relative; padding: 4px 0; }
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta {
  border: 1px solid var(--c-red);
  color: var(--c-red);
  padding: 8px 20px !important;
  transition: background 0.3s, color 0.3s;
}
.header__cta::after { display: none; }
.header__cta:hover { background: var(--c-red); color: var(--c-white); }

.header__menu-btn { display: none; }

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--c-white);
  display: none;
  align-items: center;
  justify-content: center;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 20px;
  letter-spacing: 0.15em;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
}
.hero__inner {
  max-width: var(--w-content);
  margin: 0 auto;
  width: 100%;
}
.hero__label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--c-red);
  margin-bottom: 32px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 6.5vw, 82px);
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.hero__lead {
  margin-top: 48px;
  font-size: 15px;
  color: #444;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--c-gray-mid);
}
.hero__scroll-line {
  width: 64px; height: 1px;
  background: var(--c-gray-line);
}

/* ============ SECTION 共通 ============ */
.section { padding: 140px 24px; }
.section__inner { max-width: var(--w-content); margin: 0 auto; }

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

.section__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 72px;
}
.section__num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-red);
  letter-spacing: 0.1em;
}
.section__label {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.35em;
}

/* ============ PHILOSOPHY ============ */
.philosophy { max-width: 720px; }
.philosophy__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}
.philosophy__text {
  font-size: 15px;
  color: #444;
}

/* ============ BUSINESS ============ */
.business__catch {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.04em;
  margin-bottom: 80px;
}
.business__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #333;
  border: 1px solid #333;
}
.business__card {
  background: var(--c-black);
  padding: 48px 36px 56px;
  transition: background 0.4s;
}
.business__card:hover { background: #1c1c1c; }
.business__card-num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-red);
  letter-spacing: 0.15em;
}
.business__card-title {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.06em;
  margin: 24px 0 4px;
}
.business__card-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 24px;
}
.business__card-text {
  font-size: 13.5px;
  color: #ccc;
  line-height: 2;
}

/* ============ WORKS / STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 指標の数に合わせる（現在2項目） */
  border-top: 1px solid var(--c-gray-line);
}
.stats__item {
  border-bottom: 1px solid var(--c-gray-line);
  padding: 56px 8px;
  text-align: center;
}
.stats__item + .stats__item { border-left: 1px solid var(--c-gray-line); }
.stats__value {
  display: block;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.stats__label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--c-gray-mid);
  letter-spacing: 0.2em;
}
.works__note {
  margin-top: 48px;
  font-size: 14px;
  color: #666;
}

/* ============ NEWS ============ */
.news { border-top: 1px solid var(--c-gray-line); }
.news__item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 8px;
  border-bottom: 1px solid var(--c-gray-line);
  transition: background 0.3s;
}
.news__item:hover { background: rgba(0,0,0,0.03); }
.news__date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--c-gray-mid);
  flex-shrink: 0;
}
.news__tag {
  font-size: 11px;
  border: 1px solid var(--c-red);
  padding: 3px 14px;
  flex-shrink: 0;
  color: var(--c-red);
}
.news__title { font-size: 14px; }

/* ============ COMPANY ============ */
.company { max-width: 760px; }
.company__row {
  display: flex;
  padding: 28px 8px;
  border-bottom: 1px solid var(--c-gray-line);
  font-size: 14px;
}
.company__row:first-child { border-top: 1px solid var(--c-gray-line); }
.company__row dt {
  width: 180px;
  flex-shrink: 0;
  color: var(--c-gray-mid);
  font-weight: 400;
}

/* ============ CONTACT ============ */
.contact__catch {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(36px, 7vw, 80px);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.contact__text {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 56px;
}
.contact__btn {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 1px solid var(--c-white);
  padding: 20px 56px;
  transition: background 0.3s, color 0.3s;
}
.contact__btn:hover {
  background: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-white);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--c-black);
  color: var(--c-white);
  border-top: 1px solid #333;
}
.footer__inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__logo-img {   /* 白抜きロゴ（ダーク背景用） */
  height: 30px;
  width: auto;
  display: block;
}
.footer__copy {
  font-family: var(--font-en);
  font-size: 11px;
  color: #777;
  letter-spacing: 0.08em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .header__nav { display: none; }
  .header__menu-btn {
    display: block;
    background: none;
    border: none;
    width: 32px; height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 101;
  }
  .header__menu-btn span {
    position: absolute;
    left: 0;
    width: 100%; height: 1px;
    background: var(--c-black);
    transition: transform 0.3s, top 0.3s;
  }
  .header__menu-btn span:nth-child(1) { top: 6px; }
  .header__menu-btn span:nth-child(2) { top: 16px; }
  .header__menu-btn.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
  .header__menu-btn.is-open span:nth-child(2) { top: 11px; transform: rotate(-45deg); }

  .section { padding: 96px 24px; }
  .business__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats__item + .stats__item { border-left: none; }
  .news__item { flex-wrap: wrap; gap: 12px 20px; }
  .news__title { width: 100%; }
  .company__row { flex-direction: column; gap: 4px; }
  .company__row dt { width: auto; font-size: 12px; }
  .footer__inner { flex-direction: column; gap: 12px; }
}
