/* ================================================
   やまだピアノ教室 - メインスタイルシート
   ================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* --- カラー変数 --- */
:root {
  --color-primary:   #3a5c3d;   /* 深緑 */
  --color-gold:      #b8974c;   /* ゴールド */
  --color-light-bg:  #f8f5f0;   /* 温かみのある白 */
  --color-section2:  #eef3ee;   /* 薄緑背景 */
  --color-text:      #333333;
  --color-muted:     #666666;
  --color-border:    #d8d0c5;
  --font-serif:      'Noto Serif JP', serif;
  --font-sans:       'Noto Sans JP', sans-serif;
}

/* --- リセット & ベース --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: #fff;
  margin: 0;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 600;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-gold); }

img { max-width: 100%; height: auto; }

/* ================================================
   ヘッダー
   ================================================ */
#site-header {
  background: #fff;
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* トップバー */
.header-topbar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  padding: 4px 0;
}

.header-topbar a { color: #fff; opacity: .85; }
.header-topbar a:hover { opacity: 1; }

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  margin-left: 4px;
  transition: background .2s;
}
.social-icons a:hover { background: var(--color-gold); }
.social-icons a img { width: 16px; height: 16px; }

.social-icons .line-icon-text {
  display: inline-block;
  font-size: 0.52rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ロゴエリア */
.header-brand {
  padding: 12px 0;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .05em;
  margin: 0;
}

.site-subtitle {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
  letter-spacing: .03em;
}

/* ナビゲーション */
#mainNav .navbar {
  padding: 0;
  background: #fff !important;
}

#mainNav .navbar-nav .nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 10px 10px;
  transition: color .2s;
  letter-spacing: .03em;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  color: var(--color-primary);
}

#mainNav .navbar-toggler {
  border-color: var(--color-primary);
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233a5c3d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-trial {
  background: var(--color-gold);
  color: #fff !important;
  border-radius: 20px;
  padding: 6px 18px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  transition: background .2s, transform .15s;
}
.btn-trial:hover {
  background: #9a7c38;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ================================================
   フッター
   ================================================ */
#site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.9);
  padding: 40px 0 20px;
  font-size: 0.88rem;
}

#site-footer a { color: rgba(255,255,255,.8); }
#site-footer a:hover { color: #fff; }

.footer-site-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding: 4px 0;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.6);
}

/* ================================================
   ページ共通
   ================================================ */

/* パンくずリスト */
.breadcrumb-wrap {
  background: var(--color-light-bg);
  padding: 8px 0;
  font-size: 0.8rem;
}

.breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
}

.breadcrumb-item a { color: var(--color-primary); }

/* ページヒーロー（各ページタイトル） */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2d4a30 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/main.jpg') center/cover no-repeat;
  opacity: .15;
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: .1em;
}

.page-hero .subtitle {
  font-size: 0.88rem;
  opacity: .85;
  margin-top: 6px;
  letter-spacing: .05em;
}

/* セクション共通 */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--color-light-bg);
}

.section-green {
  background: var(--color-section2);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.75rem;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-gold);
  margin: 10px auto 0;
}

.section-title p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-top: 8px;
}

/* カード */
.card-feature {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}

.card-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.card-feature .card-body { padding: 24px; }

.card-feature .card-title {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* アイコンボックス */
.icon-box {
  width: 56px;
  height: 56px;
  background: var(--color-section2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--color-primary);
}

/* ポイントリスト */
.point-list {
  list-style: none;
  padding: 0;
}

.point-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.point-list li::before {
  content: '♪';
  position: absolute;
  left: 0;
  color: var(--color-gold);
}

/* CTAバナー */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), #2d4a30);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-banner p { opacity: .9; margin-bottom: 24px; }

.btn-cta-primary {
  background: var(--color-gold);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 40px;
  border-radius: 30px;
  border: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}

.btn-cta-primary:hover {
  background: #9a7c38;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-primary-custom {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 24px;
  transition: all .2s;
  display: inline-block;
}

.btn-outline-primary-custom:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ================================================
   トップページ専用
   ================================================ */

/* ヒーローセクション */
.hero-section {
  position: relative;
  background: #1a2e1b;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/main.jpg') center/cover no-repeat;
  opacity: .45;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-content .catchphrase {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
  margin-bottom: 16px;
}

.hero-content .sub-catch {
  font-size: 1rem;
  opacity: .9;
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ニュース */
.news-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.news-date {
  color: var(--color-muted);
  white-space: nowrap;
  min-width: 100px;
}

/* アクセスマップ */
.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

.access-info dt {
  color: var(--color-primary);
  font-weight: 600;
}

/* ================================================
   コース・料金
   ================================================ */
.course-card {
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.course-card-header {
  background: var(--color-primary);
  color: #fff;
  padding: 20px;
  text-align: center;
}

.course-card-header h3 {
  font-size: 1.15rem;
  margin: 0;
  color: #fff;
}

.course-card-body {
  padding: 24px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.price-table th {
  background: var(--color-section2);
  color: var(--color-primary);
  font-weight: 600;
}

.price-tag {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ================================================
   プロフィール
   ================================================ */
.profile-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
}

.timeline-year {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* ================================================
   FAQ
   ================================================ */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  background: var(--color-section2);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s;
}

.faq-question:hover { background: #dce8dc; }

.faq-q-icon {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.faq-answer {
  padding: 16px 20px;
  display: flex;
  gap: 12px;
}

.faq-a-icon {
  width: 28px;
  height: 28px;
  background: var(--color-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ================================================
   お問い合わせ・無料体験フォーム
   ================================================ */
.form-section {
  background: var(--color-light-bg);
  border-radius: 12px;
  padding: 36px;
}

.form-label-req::after {
  content: '必須';
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-control, .form-select {
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 .2rem rgba(58,92,61,.2);
}

/* ================================================
   無料体験フロー
   ================================================ */
.flow-step {
  text-align: center;
  padding: 24px;
}

.flow-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 12px;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.4rem;
  padding-top: 12px;
}

/* ================================================
   レスポンシブ
   ================================================ */
@media (max-width: 991px) {
  #mainNav .navbar-nav {
    padding: 16px 0;
  }
  #mainNav .navbar-nav .nav-link {
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .btn-trial {
    margin: 8px 16px;
    display: inline-block;
  }
  .hero-section {
    min-height: 60vh;
  }
}

@media (max-width: 767px) {
  .page-hero h1 { font-size: 1.5rem; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 1.4rem; }
  .hero-content .catchphrase { font-size: 1.6rem; }
  .form-section { padding: 24px 16px; }
  .course-card { margin-bottom: 24px; }
}
