:root {
  --main-sumi: #1a1a1a;
  --accent-gold: #9f824e;
  --bg-white: #ffffff;
  --bg-soft-gray: #f8f8f8;
  --text-color: #333333;
  --border-light: #e0e0e0;
}

/* --- 全体・基本設定 --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  line-height: 2.2;
  color: var(--text-color);
  background-color: var(--bg-white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 800px; }

/* --- ヘッダー・ナビゲーション --- */
header {
  background: var(--bg-white);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }

/* ロゴエリア */
.logo { display: flex; flex-direction: column; text-decoration: none; }
.sub-title { 
  font-size: 0.72rem; 
  color: var(--accent-gold); 
  letter-spacing: 0.08em; 
  margin: 0 0 4px 0; 
  line-height: 1.4;
}
header h1 { 
  margin: 0; 
  font-size: 1.7rem; 
  letter-spacing: 0.1em; 
  line-height: 1.2; 
}
header h1 a { color: var(--main-sumi); text-decoration: none; }

/* PCナビ */
.pc-nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
.pc-nav a { font-weight: 700; font-size: 0.85rem; color: var(--main-sumi); text-decoration: none; transition: 0.3s; }
.pc-nav a:hover { color: var(--accent-gold); }

/* スマホナビ（初期値） */
.sp-bottom-nav { display: none; }

/* --- セクション共通 --- */
.section { padding: 140px 0; }
.bg-soft { background-color: var(--bg-soft-gray); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 60px; }
.section-title::after { 
  content: ""; display: block; width: 40px; height: 1px; 
  background: var(--accent-gold); margin: 25px auto 0; 
}

/* --- ヘッダー画像（ヒーローセクション） --- */
.hero {
  width: 100%;
  height: 80vh; /* 画面の高さの80%分を表示 */
  min-height: 400px; /* 最低限の高さ */
  background-image: url('img/header-bg.jpg'); !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* スマホでのヘッダー画像調整 */
@media (max-width: 768px) {
  .hero {
    height: 50vh; /* スマホでは少し高さを抑える */
    min-height: 300px;
  }
}

/* --- 志セクション --- */
.kokorozashi-section { padding: 160px 0; background-color: var(--bg-white); }
.kokorozashi-flex { display: flex; align-items: center; gap: 80px; }
.kokorozashi-left-image { flex: 1; border: 1px solid var(--border-light); padding: 10px; background: #fff; overflow: hidden; }
.side-img { width: 100%; height: auto; display: block; transition: transform 1.2s ease-out; }
.kokorozashi-left-image:hover .side-img { transform: scale(1.08); }
.kokorozashi-right-text { flex: 1; }
.kokorozashi-right-text h2 { font-size: 2.8rem; font-weight: 700; line-height: 1.6; letter-spacing: 0.15em; margin-bottom: 40px; color: var(--main-sumi); }

/* --- 講座案内 --- */
.course-list { display: flex; flex-direction: column; gap: 40px; }
.course-item { 
  background: var(--bg-white); 
  display: flex; 
  border: 1px solid var(--border-light); 
  overflow: hidden; 
  transition: box-shadow 0.4s ease; 
}
.course-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.course-img { flex: 1; min-height: 300px; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease-out; }
.course-item:hover .course-img img { transform: scale(1.1); }
.course-detail { flex: 1.2; padding: 40px; }
.course-detail h3, .course-detail h4 { 
  font-size: 1.4rem; margin: 0 0 15px 0; 
  border-left: 4px solid var(--accent-gold); padding-left: 15px; 
}
.price { display: block; margin-top: 20px; font-weight: 700; color: var(--accent-gold); text-align: right; font-size: 1.1rem; }

/* --- ブログ一覧 --- */
.blog-list { max-width: 900px; margin: 0 auto; }
.blog-item { display: flex; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--border-light); text-decoration: none; color: var(--text-color); transition: 0.3s; }
.blog-item:hover { opacity: 0.6; }
.blog-date { font-size: 0.85rem; color: #888; width: 120px; }
.blog-category { font-size: 0.7rem; background: var(--bg-soft-gray); color: var(--accent-gold); padding: 2px 10px; margin-right: 30px; border: 1px solid var(--accent-gold); }
.blog-title { flex: 1; margin: 0; font-weight: 700; }

/* --- 質問・ボタン・フッター --- */
.qa-item { max-width: 800px; margin: 0 auto 30px; padding: 30px; border-bottom: 1px solid var(--border-light); }
.question { font-weight: 700; color: var(--main-sumi); margin-bottom: 10px; }
.question::before { content: "Q."; color: var(--accent-gold); margin-right: 10px; }

.btn { 
  display: inline-block; border: 1px solid var(--main-sumi); padding: 15px 50px; 
  font-weight: 700; text-decoration: none; color: var(--main-sumi); transition: 0.4s; 
}
.btn:hover { background: var(--main-sumi); color: var(--bg-white); }
.btn-text { color: var(--main-sumi); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--accent-gold); padding-bottom: 5px; }

footer { background: var(--main-sumi); color: var(--bg-white); padding: 100px 0; text-align: center; }
.footer-brand { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 15px; }
.copyright { opacity: 0.5; font-size: 0.75rem; margin-top: 30px; }

/* ============================================================
   レスポンシブ：スマホ対応（ここですべてを制御）
   ============================================================ */
@media (max-width: 768px) {
  body { padding-bottom: 80px; } /* メニュー分の底上げ */

  /* ヘッダー・ロゴ */
  header { padding: 12px 0; }
  .header-flex { justify-content: center; }
  .logo { text-align: center; }
  .sub-title { font-size: 0.6rem; margin-bottom: 2px; }
  header h1 { font-size: 1.4rem; }
  .pc-nav { display: none; }

  /* セクション共通 */
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }

  /* 志セクション */
  .kokorozashi-section { padding: 80px 0; }
  .kokorozashi-flex { flex-direction: column; gap: 30px; }
  .kokorozashi-right-text h2 { font-size: 1.8rem; margin-bottom: 20px; text-align: center; line-height: 1.4; }

  /* ★講座案内（縦並び解決） */
  .course-item { flex-direction: column; height: auto; }
  .course-img { width: 100%; height: 200px; min-height: 200px; flex: none; }
  .course-detail { width: 100%; padding: 25px; flex: none; }
  .course-detail h3, .course-detail h4 { font-size: 1.3rem; }

  /* ブログ一覧 */
  .blog-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 0; }
  .blog-date { width: auto; }

  /* 下部固定ナビ */
  .sp-bottom-nav {
    display: block; position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-light); z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sp-bottom-nav ul { display: flex; list-style: none; margin: 0; padding: 0; height: 65px; align-items: center; }
  .sp-bottom-nav li { flex: 1; height: 100%; display: flex; align-items: center; position: relative; }
  .sp-bottom-nav li:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background-color: var(--border-light);
  }
  .sp-bottom-nav a {
    text-decoration: none; color: var(--main-sumi); font-size: 0.85rem; font-weight: 700;
    width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;
  }
}
@media (max-width: 768px) {
  /* お問い合わせセクション全体を整える */
  #contact .container {
    display: flex;
    flex-direction: column;
    align-items: center; /* 中身を中央に寄せる */
    text-align: center;
  }

/* --- お問い合わせセクション（トップページ）専用のボタン設定 --- */
#contact .btn {
    display: block !important; 
    width: 100% !important; 
    max-width: 300px !important;
    margin: 20px auto 0 !important;
    padding: 18px 20px !important;
    font-size: 1.1rem !important;
    background-color: var(--main-sumi) !important;
    color: #fff !important;
    border-radius: 4px;
    text-align: center;
}

/* --- ブログ記事（blog-001.htmlなど）専用のボタン設定 --- */
.blog-footer .btn {
    display: inline-block !important; /* 横に広がらないようにする */
    width: 220px !important;           /* 幅を固定 */
    max-width: 220px !important;
    padding: 15px 0 !important;
    background-color: transparent !important; /* 背景は透明（枠線のみ） */
    color: var(--main-sumi) !important;
    border: 1px solid var(--main-sumi) !important;
    font-size: 0.95rem !important;
    margin: 0 auto !important;
    border-radius: 0; /* ブログはシャープな印象に */
    box-shadow: none !important;
}

/* ブログボタンのホバー（マウスを乗せた時） */
.blog-footer .btn:hover {
    background-color: var(--main-sumi) !important;
    color: #fff !important;
}