﻿/* =========================================================
   共通CSS
   ---------------------------------------------------------
   このファイルでは、
   - 全体の初期設定
   - 横幅の基本
   - 共通見出し
   - 共通ボタン
   - 共通カード
   - ヘッダー・フッター
   など、他のLPにも使い回せるスタイルをまとめる
========================================================= */


/* ---------------------------------------------------------
   :root
   ---------------------------------------------------------
   色・フォント・角丸・影などを変数化しておく場所
   ここを変えると、サイト全体の雰囲気をまとめて変えやすい
--------------------------------------------------------- */
:root {
  /* メインカラー */
  --color-main: #69b86e;
  --color-main-dark: #4c9652;

  /* 補助カラー */
  --color-accent: #f4c96b;

  /* 文字色 */
  --color-text: #333333;
  --color-text-light: #666666;

  /* 背景色 */
  --color-bg: #fffdf8;
  --color-bg-soft: #f7f4ec;
  --color-white: #ffffff;

  /* 罫線色 */
  --color-border: #e5e1d8;

  /* 基本フォント */
  --font-base: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* 横幅 */
  --content-width: 1100px;
  --content-narrow: 900px;

  /* 角丸 */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --radius-pill: 9999px;

  /* 影 */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------------------------
   基本リセット
   ---------------------------------------------------------
   ブラウザごとの差を減らして扱いやすくする
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* paddingやborderを含めた幅計算にする */
}

html {
  scroll-behavior: smooth;
  /* ページ内リンクで移動した時に滑らかにスクロール */
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  /* 画像が親幅を超えず、縦横比を保って縮む */
}

a {
  color: inherit;
  text-decoration: none;
  /* リンク色と下線をいったんリセット */
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
  /* リストの黒丸や数字を消す */
}

p,
h1,
h2,
h3,
h4,
dl,
dt,
dd {
  margin: 0;
  /* デフォルト余白を消す */
}

strong {
  font-weight: 700;
}


/* ---------------------------------------------------------
   共通レイアウト
--------------------------------------------------------- */

/* 画面中央にコンテンツを寄せるための箱 */
.l-container {
  width: min(100% - 32px, var(--content-width));
  margin-inline: auto;
  /*
    100% - 32px = 左右16pxずつの余白を確保
    ただし最大幅は1100pxまで
  */
}

/* 各セクションの上下余白 */
.c-section {
  padding: 88px 0;
}

/* 背景色付きのセクション */
.c-section--bg {
  background: var(--color-bg-soft);
}


/* ---------------------------------------------------------
   共通見出し
   ---------------------------------------------------------
   各sectionで使い回せる見出しパーツ
--------------------------------------------------------- */
.c-heading {
  text-align: center;
  margin-bottom: 48px;
}

.c-heading__sub {
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-main);
}

.c-heading__title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.4;
  /*
    clamp(最小, 可変, 最大)
    画面幅に応じて文字サイズをほどよく変化させる
  */
}


/* ---------------------------------------------------------
   共通ラベル
   ---------------------------------------------------------
   「募集中」などの小さな丸み付きラベル
--------------------------------------------------------- */
.c-label {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(105, 184, 110, 0.15);
  color: var(--color-main-dark);
  font-size: 0.9rem;
  font-weight: 700;
}


/* ---------------------------------------------------------
   共通ボタン
   ---------------------------------------------------------
   - c-btn が土台
   - primary や ghost で見た目を切り替える
--------------------------------------------------------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: 0.3s;
}

/* メイン用の強いボタン */
.c-btn--primary {
  background: linear-gradient(135deg, var(--color-main), var(--color-main-dark));
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.c-btn--primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  /* 少し浮く感じを出す */
}

/* 枠線系のサブボタン */
.c-btn--ghost {
  border: 1px solid var(--color-main);
  background: var(--color-white);
  color: var(--color-main-dark);
}

.c-btn--ghost:hover {
  background: rgba(105, 184, 110, 0.08);
}


/* ---------------------------------------------------------
   共通カード
   ---------------------------------------------------------
   feature / voice など、白い箱型パーツに使える
--------------------------------------------------------- */
.c-card {
  padding: 28px;
  border-radius: var(--radius-m);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}


/* ---------------------------------------------------------
   ヘッダー
--------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  /*
    画面上部に張り付くヘッダー
    z-index で他要素の上に出しやすくする
  */
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

/* ロゴ全体 */
.header__logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ロゴの主文字 */
.header__logo-main {
  font-size: 1.8rem;
}

/* ロゴの副文字 */
.header__logo-sub {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

/* ナビを右へ寄せる */
.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.header__nav-list a {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ヘッダー用ボタンは少し小さめ */
.header__cta {
  min-width: 190px;
  min-height: 48px;
  padding: 10px 18px;
}


/* ---------------------------------------------------------
   フッター
--------------------------------------------------------- */
.footer {
  padding: 32px 0;
  background: #f0ede4;
}

.footer__inner {
  text-align: center;
}

.footer__logo {
  margin-bottom: 8px;
  font-weight: 700;
}

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


/* ---------------------------------------------------------
   タブレット用
--------------------------------------------------------- */
@media (max-width: 960px) {
  .header__inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 0;
  }

  .header__nav {
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .header__nav-list {
    justify-content: center;
  }
}


/* ---------------------------------------------------------
   スマホ用
--------------------------------------------------------- */
@media (max-width: 768px) {
  .c-section {
    padding: 64px 0;
    /* スマホでは上下余白を少し小さく */
  }

  .c-heading {
    margin-bottom: 36px;
  }

  .c-btn {
    width: 100%;
    min-width: auto;
    /* スマホではボタンを横幅いっぱいに近づける */
  }

  .header__nav {
    display: none;
    /* 今回は簡易版なのでスマホではナビ非表示 */
  }

  .header__inner {
    min-height: 72px;
    justify-content: space-between;
  }

  .header__logo-main {
    font-size: 1.5rem;
  }

  .header__logo-sub {
    font-size: 0.95rem;
  }

  .header__cta {
    min-width: auto;
    width: auto;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}