/* -----------------------------------------------------------------------
   site.css — サイト共通スタイル（トップページ等、フォーム以外のページ用）
   form.css はフォームページ専用。本ファイルはサイト全体の骨格を担う。
   クラス命名は FLOCSS に準拠（l-: Layout / c-: Component / p-: Project / u-: Utility）。
----------------------------------------------------------------------- */

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

html {
  font-size: 16px;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

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

/* -----------------------------------------------------------------------
   Layout: サイト全体の骨格
----------------------------------------------------------------------- */

/* サイト全体コンテナ */
.l-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ヘッダー */
.l-header {
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

/* ヘッダー: ロゴテキスト */
.l-header__logo {
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: .03em;
}

/* メインコンテンツ領域 */
.l-main {
  flex: 1;
}

/* フッター */
.l-footer {
  padding: 1.2rem 1.5rem;
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
  text-align: center;
}

/* -----------------------------------------------------------------------
   Component: 汎用ボタン
----------------------------------------------------------------------- */

/* プライマリCTAボタン */
.c-btn {
  display: inline-block;
  padding: .85rem 2.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  text-decoration: none;
}

.c-btn--primary {
  background: #0066cc;
  color: #fff;
  border: none;
}

.c-btn--primary:hover {
  background: #0052a3;
}

.c-btn--primary:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 3px;
}

/* -----------------------------------------------------------------------
   Project: センタリングセクション共通（p-top-hero / p-thanks で共有）
   案B: セレクタグループ化で重複プロパティを DRY 化する。
   プリプロセッサ不使用のため @extend は使わず、セレクタを並べてグループ化する。
----------------------------------------------------------------------- */

.p-top-hero,
.p-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  text-align: center;
}

/* -----------------------------------------------------------------------
   Project: トップページ固有
----------------------------------------------------------------------- */

/* ヒーローセクション（p-top-hero 固有スタイルはここに追加） */

.p-top-hero__title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.p-top-hero__desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* -----------------------------------------------------------------------
   Project: サンクスページ固有
----------------------------------------------------------------------- */

/* 見出し */
.p-thanks__title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* 本文段落 */
.p-thanks__body {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  max-width: 480px;
  line-height: 1.8;
}

/* 戻るリンク */
.p-thanks__back-link {
  margin-top: 2rem;
}

/* -----------------------------------------------------------------------
   Utility
----------------------------------------------------------------------- */

/* スクリーンリーダー専用（単一機能を表現するために複数プロパティが不可分な確立ユーティリティ） */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------------------
   レスポンシブ
----------------------------------------------------------------------- */
@media (max-width: 480px) {
  .p-top-hero,
  .p-thanks {
    padding: 3rem 1rem;
  }

  .p-top-hero__title,
  .p-thanks__title {
    font-size: 1.35rem;
  }

  .c-btn {
    width: 100%;
    text-align: center;
    padding: .85rem 1.5rem;
  }
}
