/* style.css */

/* --- 1. CSSリセット --- */
/* 全ての要素のデフォルトマージンとパディングをリセットし、計算しやすくする */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- 2. 基本変数定義 --- */
/* サイト全体で使う色やフォントを定義 */
:root {
  --primary-color: #005a9c; /* yoshizumi.tech のメインカラー（深い青） */
  --line-color: #06c755; /* らくらくLINE予約ページのメインカラー */
  --secondary-color: #f0f4f8; /* 共通の背景色 */
  --text-color: #333333;
  --heading-font: "Noto Sans JP", sans-serif;
  --body-font: "Noto Sans JP", sans-serif;
}

/* --- 3. サイト全体の基本スタイル --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  line-height: 1.8;
  color: var(--text-color);
  background-color: #ffffff;
  padding-top: 70px; /* 固定ヘッダー分の余白 */
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 20px;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
  font-weight: 700;
}

h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 60px;
  position: relative;
  color: var(--primary-color);
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 20px auto 0;
}

section {
  width: 100%;
}

section:nth-child(even) {
  background-color: var(--secondary-color);
}

.cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- 4. 共通コンポーネント（ヘッダー・フッター） --- */
header {
  background-color: #fff;
  padding: 15px 30px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  transition: color 0.3s;
}

header nav a:hover {
  color: var(--primary-color);
}

footer {
  background-color: var(--text-color);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

/* --- 5. レスポンシブ対応 --- */
@media (max-width: 768px) {
  body {
    padding-top: 60px; /* ヘッダーの高さを調整 */
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .container {
    padding: 60px 20px;
  }
}

/* style.css */

/* --- 6. フォーム関連の共通スタイル --- */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: var(--body-font);
}

.submit-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-button:hover {
  opacity: 0.9;
}
