/* =====================================
   共通スタイル
   - リセット / ベースタイポグラフィ
   - レイアウトコンテナ
   - ヘッダー / グローバルナビ
   - HERO / セクション見出し
   - ボタン / フォーム
   - フッター
   ===================================== */

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "游ゴシック体", "YuGothic", "游ゴシック", "Yu Gothic", "メイリオ",
    "Meiryo", sans-serif;
  color: #222;
  background-color: #f7f7f7;
}

body {
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* -------------------------
   レイアウトコンテナ
   ------------------------- */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px;
}

/* -------------------------
   ヘッダー / グローバルナビ
   ------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(10, 10, 10, 0.97);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  text-align: center;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.logo-main {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 17px;
}

.logo-sub {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bbbbbb;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 16px;
}

.global-nav a {
  padding: 4px 0;
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #222;
  transition: width 0.2s ease;
}

.global-nav a:hover::after {
  width: 100%;
}

/* -------------------------
   HERO / メインコピー
   ------------------------- */
.hero-section {
  padding: 96px 0 96px;
  min-height: 40vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 1)
    ),
    url("../images/bg_main.jpg") center center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tagline {
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #7b715d;
  margin: 0 0 8px;
}

h1 {
  font-size: 38px;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.lead {
  font-size: 17px;
  color: #444;
  margin: 0 0 48px 0;
}

/* HEROテキストの可読性向上（背景画像上に白い白色の影を付与） */
.hero-section .tagline,
.hero-section h1,
.hero-section .lead,
.hero-section .small-note {
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(255, 255, 255, 0.9);
}

/* -------------------------
   ボタン
   ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease, transform 0.08s ease;
  width: 100%;
}

.btn.primary {
  background-color: #222;
  color: #fff;
  border-color: #222;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn.primary:hover {
  background-color: #333;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.btn.secondary {
  background-color: #fff;
  border-color: #999;
  color: #333;
}

/* iOS Safari: リンクのデフォルト青色を上書き */
a.btn.primary {
  color: #fff;
}
a.btn.secondary,
a.btn.ghost {
  color: #333;
}

.btn.secondary:hover {
  border-color: #666;
  background-color: #fafafa;
}

.btn.ghost {
  background-color: #fff;
  border-color: #bbb;
  color: #333;
}

.btn.ghost:hover {
  border-color: #888;
  background-color: rgba(255, 255, 255, 0.9);
}

.btn.full {
  width: 100%;
}

/* -------------------------
   補足テキスト / セクション
   ------------------------- */
.small-note {
  font-size: 13px;
  color: #777;
  margin: 20px 0 0;
}

.small-note.center {
  text-align: center;
}

.section {
  padding: 56px 4%;
  background-color: #f7f7f7;
}

.section-alt {
  background-color: #ffffff;
}

.section-title {
  font-size: 26px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.section-lead {
  margin: 0 0 28px;
  font-size: 17px;
  color: #555;
}

/* 商品特徴リスト（コースや詳細ページで共通利用） */
.course-features {
  margin: 6px 0 10px;
  padding-left: 18px;
  font-size: 16px;
  color: #555;
}

.course-features li + li {
  margin-top: 3px;
}

/* -------------------------
   フォーム要素
   ------------------------- */
input,
textarea {
  font: inherit;
  border-radius: 999px;
  border: 1px solid #ccc;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease;
}

textarea {
  border-radius: 12px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #444;
  box-shadow: 0 0 0 1px #444;
  background-color: #fff;
}

/* -------------------------
   フッター
   ------------------------- */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  background-color: #000000;
  color: #ffffff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  color: #dddddd;
  gap: 12px;
}

.footer-logo {
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 0 0 2px;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.3);
}

.footer-links a:hover {
  text-decoration-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 640px) {
  .header-inner {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .logo-area {
    align-items: center;
  }

  .global-nav {
    font-size: 14px;
  }

  .hero-section {
    padding-top: 48px;
  }

  .section {
    padding: 40px 8%;
  }

  h1 {
    font-size: 31px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-links {
    order: 1;
    justify-content: center;
    margin-bottom: 12px;
  }

  .footer-left {
    order: 2;
  }
}


