/* ===== ベース設定 ===== */
body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  color: #333;
  margin: 0;
  background-color: #faf7f4;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== ヘッダー ===== */
header {
  background-color: #a15c1a; /* オレンジブラウン系 */
  color: #fff;
  padding: 0.6rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 44px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
header nav a:hover {
  opacity: 0.85;
}

/* ===== ヒーロー ===== */
.hero {
  background-color: #b46c2a;
  text-align: center;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== メッセージ ===== */
.message-section {
  background-color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.section-title {
  font-size: 1.6rem;
  color: #7a3f00;
  margin-bottom: 1rem;
}

.deadline {
  display: block;
  margin-top: 0.5rem;
  color: #b43c00;
  font-weight: 700;
}

/* ===== 相談会セクション ===== */
.consult-section {
  padding: 3rem 1rem;
  background-color: #fff8f3;
}
.consult-card {
  background: #fff;
  border-radius: 12px;
  margin: 2rem 0;
  padding: 2rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  position: relative;
}

.consult-title {
  font-size: 1.4rem;
  color: #7a3f00;
  margin-top: 0.5rem;
}
.consult-text {
  margin-top: 0.5rem;
  line-height: 1.7;
}

/* 詳細パネル */
.consult-details {
  background-color: #fcf1e4;
  border-left: 4px solid #e6c4a0;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
}
.consult-details ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* ===== 2級・1級用カラー ===== */
.consult-2kyu {
  border-top: 6px solid #3b9a60;
}
.consult-1kyu {
  border-top: 6px solid #2a6dbb;
}

/* ===== アイコン ===== */
.consult-icon {
  font-size: 1.8rem;
  color: #b46c2a;
}

/* ===== CTAボタン ===== */
.btn-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-green {
  background-color: #3b9a60;
}
.btn-green:hover {
  background-color: #2f7d4f;
}
.btn-blue {
  background-color: #2a6dbb;
}
.btn-blue:hover {
  background-color: #1d5190;
}
.btn-cta i {
  margin-right: 0.5rem;
}

/* ===== フッター ===== */
.footer {
  background: #a15c1a;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

/* ===== 追従バナー ===== */
.floating-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 260px;
  z-index: 1000;
  transition: opacity 0.3s ease;
}
.floating-banner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.floating-banner:hover {
  opacity: 0.9;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 768px) {
  .hero-title { font-size: 1.6rem; }
  .consult-card { padding: 1.5rem; }
  .floating-banner {
    width: 200px;
    bottom: 12px;
    right: 12px;
  }
}

/* ===== 動画エリア ===== */
.video-section {
  margin-top: 1.5rem;
  text-align: center;
}
.video-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7a3f00;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.video-title i {
  color: #b46c2a;
}

/* YouTube埋め込み共通 */
.yt-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 級別カラーアクセント */
.video-2kyu .video-title i {
  color: #3b9a60; /* 緑 */
}
.video-1kyu .video-title i {
  color: #2a6dbb; /* 青 */
}

/* モバイル調整 */
@media screen and (max-width: 640px) {
  .video-title { font-size: 1rem; }
  .yt-embed { border-radius: 8px; }
}

/* ===== 動画モーダル用ボタン ===== */
.video-btn-wrap {
  text-align: center;
  margin-top: 1.25rem;
}
.btn-video {
  background-color: #fff3e0;
  color: #a15c1a;
  border: 2px solid #a15c1a;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-video:hover {
  background-color: #a15c1a;
  color: #fff;
}
.btn-video i {
  margin-right: 0.4rem;
  color: inherit;
}

/* ===== モーダル本体 ===== */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
}
.video-modal.active {
  display: flex;
}
.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.video-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.video-close:hover {
  opacity: 0.7;
}

/* ===== モバイル調整 ===== */
@media (max-width: 640px) {
  .video-close {
    top: -35px;
    font-size: 1.8rem;
  }
}