@charset "UTF-8";

/* =========================================
   0. 変数定義
   ========================================= */
:root {
  --color-bg: #f4f5f7;
  --color-text: #333333;
  --color-header-bg: #e3f2fd;
  --color-header-border: #90caf9;
  --color-aside-bg: #fff8e1;
  --color-footer-bg: #eeeeee;
  --max-width: 1100px;
  --header-height: 70px;
}

/* =========================================
   1. ベース・リセット
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* メニュー展開中の背面スクロール防止 */
body.is-fixed {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 画像が親要素の横幅をはみ出すのを防ぐ */
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* =========================================
   2. コンポーネント（c-）
   ========================================= */
.c-area-box {
  border: 2px #888;
  background-color: #fff;
  padding: 20px;
}

.c-area-label {
  display: inline-block;
  background: #333;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  margin-bottom: 8px;
  border-radius: 3px;
}

/* カードコンポーネント（アコーディオン対応） */
.c-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

/* タップする見出し領域（元の padding: 24px 16px をここに移動） */
.c-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s;
}

.c-card__header::-webkit-details-marker {
  display: none;
}

.c-card__header:hover {
  background-color: #f0f0f0;
}

/* 開閉アイコン（＋／－） */
.c-card__icon::before {
  content: "＋";
  font-size: 16px;
  color: #666;
}

.c-card[open] .c-card__icon::before {
  content: "－";
}

/* 開いたときのコンテンツ領域 */
.c-card__body {
  padding: 16px;
  background-color: #ffffff;
  border-top: 1px solid #ddd;
}

/* ハンバーガーボタン */
.c-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
  flex-shrink: 0; /* ボタンが潰れたり押し出されたりするのを防ぐ */
}

.c-hamburger__line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.c-hamburger.is-active .c-hamburger__line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.c-hamburger.is-active .c-hamburger__line:nth-child(2) {
  opacity: 0;
}
.c-hamburger.is-active .c-hamburger__line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* 背景暗転用オーバーレイ（追加） */
.c-overlay {
  position: fixed;
  inset: 0; /* top, right, bottom, left をすべて0に指定 */
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 40;
}

.c-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* 練習のご案内テーブル */
.c-schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
  background-color: #fff;
}

.c-schedule-table th,
.c-schedule-table td {
  border: 1px solid #d0d7de;
  padding: 10px 12px;
  text-align: left;
}

/* 曜日セルの装飾 */
.c-schedule-table th {
  width: 56px;
  text-align: center;
  background-color: var(--color-header-bg); /* ヘッダーと統一した水色 */
  color: #0d47a1;
  font-weight: bold;
}

/* 土日の曜日セルだけ少し色を変えて見やすくする（任意） */
.c-schedule-table tr:nth-child(3) th,
.c-schedule-table tr:nth-child(4) th {
  background-color: #fff3e0;
  color: #e65100;
}

/* ボタン配置用の余白 */
.c-btn-wrap {
  margin-top: 16px;
  text-align: center;
}

/* 体験・見学フォームへの目立つボタン */
.c-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 14px 20px;
  background-color: #1976d2; /* 信頼感と視認性の高いブルー */
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
  border-radius: 6px;
  box-shadow: 0 3px 0 #0d47a1; /* 立体感を出して押したくなるデザインに */
  transition: transform 0.1s, background-color 0.2s, box-shadow 0.1s;
}

/* 右端に矢印アイコンを自動付与 */
.c-btn-primary::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
}

/* PCホバー時・スマホタップ時の動き */
.c-btn-primary:hover {
  background-color: #1565c0;
}

.c-btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0d47a1;
}

/* =========================================
   3. レイアウト（l-）
   ========================================= */
.l-header {
  background-color: var(--color-header-bg);
  border-bottom: 2px solid var(--color-header-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.l-header__inner {
  max-width: var(--max-width);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.l-header__title {
  font-size: 18px;
  line-height: 1.2;
  max-width: calc(100% - 46px); /* ハンバーガーボタン(30px)＋余白(16px)のスペースを確保 */
}
/* ヘッダー内のロゴ画像をヘッダー高さ(70px)に収める */
.l-header__title img {
  max-height: 44px;
  width: auto;
}

/* ナビゲーション（スマホ時はドロワーメニュー） */
.l-nav {
  position: fixed;
  top: var(--header-height);
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - var(--header-height));
  background-color: #ffffff;
  border-left: 2px solid var(--color-header-border);
  padding: 24px 16px;
  transition: right 0.3s ease;
  z-index: 50;
}

.l-nav.is-open {
  right: 0;
}

.l-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.l-nav__link {
  display: block;
  padding: 10px 12px;
  background: #f0f7ff;
  border-radius: 4px;
  font-weight: bold;
}

/* メインコンテナ */
.l-container {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.l-main {
  flex: 1;
  min-height: 400px;
}

.l-aside {
  width: 100%;
  background-color: var(--color-aside-bg);
  min-height: 200px;
}

/* 「リンクなど」エリア内のバナー画像を小さめに表示 */
.l-aside img {
  margin-top: 8px;
}
.l-aside-banner {
  max-width: 180px; /* お好みの大きさに調整（例：180px〜220px） */
  width: 100%;
  height: auto;
}
.l-aside-insta {
  max-width: 120px;
  width: 100%;
  height: auto;
}

/* フッター */
.l-footer {
  background-color: var(--color-footer-bg);
  border-top: 2px solid #bdbdbd;
  text-align: center;
  padding: 24px 16px;
  margin-top: 40px;
}

/* =========================================
   4. プロジェクト固有ブロック（p-）
   ========================================= */
.p-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

/* =========================================
   5. PC向けレスポンシブ拡張（768px以上）
   ========================================= */
@media (min-width: 768px) {
  .c-hamburger,
  .c-overlay {
    display: none;
  }

  .l-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: none;
    border: none;
    padding: 0;
  }

  .l-nav__list {
    flex-direction: row;
    gap: 12px;
  }

  .l-nav__link {
    padding: 6px 14px;
    background: #bbdefb;
    font-size: 14px;
  }

  .l-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .p-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* PCでカードを開いたとき、2列分の横幅いっぱいに広げて見やすくする */
  .c-card[open] {
    grid-column: 1 / -1;
  }

  .l-aside {
    width: 300px;
    flex-shrink: 0;
  }
}
