/* ============================================================
   style.css
   会社LP スタイルシート
   フォント：源ノ角ゴシック（Noto Sans JP）
   ブレークポイント：768px（スマホ <→ PC）
   ============================================================ */

/* ============================================================
   1. CSS変数 / カラーパレット / フォントサイズ定義
   ============================================================ */
:root {
  /* --- カラー --- */
  --color-primary:    #1a3a5c;   /* メインブルー（タイトル等） */
  --color-accent:     #2e7db3;   /* アクセントブルー */
  --color-accent-lt:  #5ba4cc;   /* 薄めアクセント */
  --color-bg:         #f8f9fb;   /* ページ背景 */
  --color-bg-alt:     #eef3f8;   /* 交互背景 */
  --color-white:      #ffffff;
  --color-text:       #333333;   /* 本文テキスト */
  --color-text-light: #666666;   /* サブテキスト */
  --color-border:     #d0dce8;   /* ボーダー */
  --color-required:   #c0392b;   /* 必須マーク */

  /* --- フォントサイズ：サブタイトル --- */
  --fs-subtitle:      1.05rem;   /* コンテンツのサブタイトル */
  --fw-subtitle:      700;

  /* --- フォントサイズ：テキスト1（リスト・本文） --- */
  --fs-text1:         0.95rem;
  --color-text1:      #333333;

  /* --- フォントサイズ：テキスト2（注釈・補足） --- */
  --fs-text2:         0.82rem;
  --color-text2:      #666666;

  /* --- コンテンツ間余白 --- */
  --section-gap:      80px;

  /* --- ヘッダー高さ --- */
  --header-h:         60px;

  /* --- 最大幅 --- */
  --max-width:        1100px;
}

/* ============================================================
   2. リセット・ベース
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;        /* アンカーリンクをなめらかにスクロール */
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
}

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

ul {
  list-style: none;
}

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

/* ============================================================
   3. フォントクラス定義（サブタイトル / テキスト1 / テキスト2）
   ============================================================ */

/* サブタイトル */
.text-subtitle {
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-subtitle);
  color: var(--color-primary);
}

/* テキスト1（リスト・本文） */
.text-1 {
  font-size: var(--fs-text1);
  color: var(--color-text1);
}

/* テキスト2（注釈・補足） */
.text-2 {
  font-size: var(--fs-text2);
  color: var(--color-text2);
}

/* ============================================================
   4. ヘッダー
      - 常に上部に固定（position: sticky / fixed）
      - 白背景・opacity 0.8
   ============================================================ */
.site-header {
  position: fixed;              /* スクロールしても上部固定 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(33,53,88, 0.8);  /* 白・opacity 0.8 */
  backdrop-filter: blur(6px);            /* すりガラス効果（対応ブラウザ） */
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

/* ロゴ */
.header-logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

/* お問合せボタン */
.header-contact-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--color-white);
  color: var(--color-accent);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, transform 0.1s ease;
}

.header-contact-btn:hover {
  background: var(--color-accent-lt);
  transform: translateY(-1px);
}

/* ============================================================
   5. メインビジュアル
      - ヘッダー分のpaddingTopを確保
      - スマホ：480×600 / PC：1080×550 相当の比率でトリミング
   ============================================================ */
.main-visual {
  margin-top: var(--header-h);    /* ヘッダー固定分を相殺 */
  width: 100%;
  max-width: 1280px;
  height: 680px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.main-visual-inner {
  position: relative;
  width: 100%;
}

/* スマホ時：480×600 比率 */
.main-visual-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* PC時：1080×550 比率 */
@media (min-width: 768px) {
  .main-visual-img {
    height: 550px;
    max-height: 550px;
  }
}

/* メインビジュアル上のキャッチコピー */
.main-visual-text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  text-align: center;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.main-catch {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}

.main-sub {
  font-size: 0.95rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .main-catch {
    font-size: 2.2rem;
  }
  .main-sub {
    font-size: 1.1rem;
  }
}

/* ============================================================
   6. コンテンツセクション共通
      - 背景色を交互（白 / var(--color-bg-alt)）
      - セクション間は var(--section-gap) = 80px
   ============================================================ */
.content-section {
  padding: var(--section-gap) 0;
  background: var(--color-white);    /* デフォルト白背景 */
}

/* 交互背景 */
.content-section.bg-alt {
  background: var(--color-bg-alt);
}

/* セクション内の最大幅ラッパー */
.content-inner,
.section-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   7. コンテンツ1〜5：画像 + テキスト レイアウト
      スマホ：縦並び（画像→テキスト）
      PC    ：横2列（画像 | テキスト、alternating reverse）
   ============================================================ */
.content-inner {
  display: flex;
  flex-direction: column;         /* スマホ：縦並び */
  gap: 28px;
}

/* PC：横並び */
@media (min-width: 768px) {
  .content-inner {
    flex-direction: row;          /* PC：横並び */
    align-items: center;
    gap: 48px;
  }

  /* reverseクラス：画像を右側に配置 */
  .content-inner.reverse {
    flex-direction: row-reverse;
  }

  .content-image {
    flex: 0 0 360px;              /* 画像幅固定 */
  }

  .content-body {
    flex: 1;
  }
}

/* 画像ボックス */
.content-image img {
  width: 100%;
  max-width: 360px;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.1);
}

/* スマホ時は画像を中央寄せ */
@media (max-width: 767px) {
  .content-image {
    display: flex;
    justify-content: center;
  }
  .content-image img {
    max-width: 100%;
  }
}

/* コンテンツタイトル（大見出し） */
.content-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent-lt);
}

/* サブタイトル */
.content-subtitle {
  margin-bottom: 14px;
}

/* 箇条書きリスト */
.content-list {
  padding-left: 8px;
}

.content-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  line-height: 1.7;
}

/* カスタム bullet */
.content-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.75em;
  top: 0.15em;
}

/* ============================================================
   8. セクション見出し（会社概要・お問合せ・加入の流れ）
   ============================================================ */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-accent);
  text-align: center;

  /* PC時は左寄せ */
}

@media (min-width: 768px) {
  .section-heading {
    text-align: left;
  }
}

/* ============================================================
   9. 会社概要テーブル風リスト
   ============================================================ */
.company-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.company-label {
  flex: 0 0 100px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: var(--fs-text1);
}

.company-value {
  flex: 1;
  font-size: var(--fs-text1);
  color: var(--color-text1);
}

/* ============================================================
   10. ご相談内容例
   ============================================================ */
.consult-examples {
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  margin-bottom: 40px;
  border-radius: 0 6px 6px 0;
}

.consult-lead {
  margin-bottom: 12px;
}

/* ============================================================
   11. お問合せフォーム
   ============================================================ */
.contact-form-wrap {
  max-width: 700px;
}

/* フォームグループ */
.form-group {
  margin-bottom: 20px;
}

/* フォーム内の2列レイアウト（PC） */
.form-row {
  display: flex;
  flex-direction: column;       /* スマホ：縦 */
  gap: 0;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;        /* PC：横2列 */
    gap: 24px;
  }
  .form-row .form-group {
    flex: 1;
  }
}

/* ラベル */
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 6px;
}

/* 必須マーク */
.required {
  color: var(--color-required);
  font-weight: 700;
  margin-left: 2px;
}

/* 入力フィールド共通 */
.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--fs-text1);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(46, 125, 179, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* 同意チェックボックス */
.form-agree {
  margin-bottom: 28px;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: 6px;
}

.agree-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}

.agree-check {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.agree-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* 同意下の注釈リスト */
.agree-notes {
  padding-left: 8px;
}

.agree-notes li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}

.agree-notes li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-text2);
}

/* 送信ボタン */
.submit-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 14px 0;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.2);
}

.submit-btn:active {
  transform: translateY(0);
}

/* 送信メッセージ */
.form-message {
  margin-top: 16px;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.5em;
}

.form-message.success {
  color: #27ae60;
}

.form-message.error {
  color: var(--color-required);
}

/* ============================================================
   12. 加入の流れ
       - 5ステップ：白背景の長方形（枠なし）
       - スマホ：縦並び / PC：横5列
   ============================================================ */
.flow-steps {
  display: flex;
  flex-direction: column;         /* スマホ：縦 */
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .flow-steps {
    flex-direction: row;          /* PC：横並び */
    align-items: stretch;
    gap: 0;
  }
}

/* 各ステップの長方形（枠なし・白背景） */
.flow-step {
  background: var(--color-white);   /* #ffffff、枠なし */
  border-radius: 6px;
  padding: 24px 16px;
  flex: 1;
  text-align: center;
  box-shadow: 0 2px 10px rgba(26, 58, 92, 0.08);
}

@media (max-width: 767px) {
  .flow-step {
    width: 100%;
    max-width: 400px;
  }
}

.flow-step-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ステップ番号 */
.flow-num {
  display: inline-block;
  width: 42px;
  height: 42px;
  line-height: 42px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.flow-step-title {
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-subtitle);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.flow-step-text {
  font-size: var(--fs-text2);
  color: var(--color-text2);
  line-height: 1.7;
}

/* 矢印（スマホ：下矢印 / PC：非表示にして代わりにCSS矢印） */
.flow-arrow {
  color: var(--color-accent-lt);
  font-size: 1.2rem;
  padding: 6px 0;
  text-align: center;
  line-height: 1;
}

@media (min-width: 768px) {
  .flow-arrow {
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: 1.5rem;
  }
}

/* キットの説明ボックス */
.kit-description {
  background: var(--color-white);
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(26, 58, 92, 0.08);
}

.kit-title {
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-subtitle);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.kit-text {
  font-size: var(--fs-text2);
  color: var(--color-text2);
  line-height: 1.9;
}

/* ============================================================
   13. フッター
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
}

/* ============================================================
   14. スクロールアニメーション用クラス
       JavaScriptで .is-visible を付与してフェードイン
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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