/* ===================================
   株式会社グルー コーポレートサイト
   共通スタイルシート
   =================================== */

/* --- CSS変数（サイト全体のカラー・フォント設定） --- */
:root {
  --color-primary: #1a1a2e;      /* メインカラー（濃紺） */
  --color-accent: #c9a96e;       /* アクセントカラー（ゴールド） */
  --color-text: #333333;         /* 本文テキスト */
  --color-text-light: #666666;   /* 補助テキスト */
  --color-bg: #ffffff;           /* 背景色 */
  --color-bg-alt: #f8f7f4;       /* セクション背景（交互） */
  --color-border: #e0ddd5;       /* ボーダー */
  --font-sans: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif JP", "Georgia", serif;
  --max-width: 960px;
  --header-height: 72px;
}

/* --- リセット --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* --- ヘッダー --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.site-logo a {
  color: inherit;
}

/* --- ナビゲーション --- */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* --- ハンバーガーメニュー（モバイル） --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 6px 0;
  transition: 0.3s;
}

/* --- メインコンテンツ --- */
main {
  margin-top: var(--header-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- セクション --- */
.section {
  padding: 5rem 0;
}

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

.section__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

/* --- ヒーローセクション --- */
.hero {
  background: var(--color-primary);
  background-image: url('/img/hero-cosmic.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 8rem 2rem 3rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  max-width: 100%;
  padding: 0 4rem;
}

/* テキスト読みやすさ用オーバーレイ */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(6, 6, 18, 0.8) 0%,
    rgba(6, 6, 18, 0.5) 45%,
    rgba(6, 6, 18, 0.05) 100%
  );
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__text {
  max-width: 560px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.8;
  max-width: 520px;
}

.hero__cta-wrap {
  align-self: flex-start;
  margin-top: 2rem;
}

.hero__cta {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.875rem 2.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s;
}

.hero__cta:hover {
  background: #b8943e;
  opacity: 1;
}

/* --- ページヒーロー（下層ページ用） --- */
.page-hero {
  background: var(--color-primary);
  color: #ffffff;
  padding: 7rem 2rem 3rem;
  text-align: center;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.page-hero__description {
  font-size: 1rem;
  opacity: 0.8;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- カード --- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.card__number {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.card__text {
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.card__meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.card__meta strong {
  color: var(--color-text);
}

/* --- テーブル --- */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

th {
  background: var(--color-bg-alt);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

/* --- 課題リスト --- */
.pain-list {
  list-style: none;
  margin: 2rem 0;
}

.pain-list li {
  padding: 1rem 1rem 1rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}

.pain-list li::before {
  content: "✓";
  position: absolute;
  left: 0.5rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* --- 引用 --- */
blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: var(--color-bg-alt);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.9;
}

/* --- Before/After --- */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.before-after__col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.before-after__col--before h4 {
  color: #888;
}

.before-after__col--after h4 {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.before-after__col ul {
  list-style: none;
}

.before-after__col li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.before-after__col--before li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #888;
}

.before-after__col--after li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* --- CTA（問い合わせ誘導） --- */
.cta-section {
  background: var(--color-primary);
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-section__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cta-section__text {
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-section__btn {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.875rem 2.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s;
}

.cta-section__btn:hover {
  background: #b8943e;
  opacity: 1;
}

/* --- フォーム --- */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.form__label .required {
  color: #c0392b;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form__textarea {
  min-height: 160px;
  resize: vertical;
}

.form__submit {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.875rem 3rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.form__submit:hover {
  background: #b8943e;
}

/* --- フッター --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer__links {
  margin-bottom: 1.5rem;
}

.footer__links a {
  margin: 0 1rem;
}

.footer__copy {
  opacity: 0.6;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .site-header {
    padding: 0 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .site-nav li {
    width: 100%;
    text-align: center;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 6rem 1.5rem 2.5rem;
    min-height: 400px;
    background-position: 75% center;
  }

  .hero .container {
    min-height: 280px;
    padding: 0 1.5rem;
  }

  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(6, 6, 18, 0.85) 0%,
      rgba(6, 6, 18, 0.6) 50%,
      rgba(6, 6, 18, 0.3) 100%
    );
  }

  .hero__title {
    font-size: 1.625rem;
  }

  .hero__cta-wrap {
    align-self: flex-start;
    margin-top: 1.5rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .page-hero {
    padding: 5.5rem 1.5rem 2.5rem;
  }

  .page-hero__title {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section__title {
    font-size: 1.375rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }
}

/* --- ユーティリティ --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- 本文中の強調 --- */
.highlight {
  background: linear-gradient(transparent 60%, rgba(201, 169, 110, 0.2) 60%);
}

/* --- タイムライン（略歴用） --- */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-left: -3px;
}

.timeline__date {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline__text {
  font-size: 0.95rem;
  line-height: 1.7;
}
