/* ★修正: CSSファイルに不要な<style>タグが含まれていたため除去 */

/* --- 全体ベース --- */
body {
    font-family: "游明朝", "YuMincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "MS P明朝", serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: #444;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- ヘッダー・ナビゲーション --- */
header {
    background-color: #FFFFFF;
    width: 100%;
    position: relative;
    z-index: 100;
    border-bottom: 3px solid #FF8C00;
    margin-bottom: 0;
}

.header-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    height: 42px;
}

.logo-area img {
    height: 30px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
nav ul li {
    position: relative;
    border-left: 1px solid #f0f0f0;
}
nav ul li:first-child { border-left: none; }

nav ul li a {
    display: block;
    padding: 0 15px;
    line-height: 42px;
    text-decoration: none;
    color: #330000;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
nav ul li a:hover { background-color: #f9f9f9; }

.btn-red { background-color: #e63946 !important; color: #ffffff !important; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #FFFFFF;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 101;
    text-align: left;
    border: 1px solid #eeeeee;
}
.dropdown-menu li { border: none; border-bottom: 1px solid #f9f9f9; width: 100%; }
.dropdown-menu li a { color: #FF8C00; padding: 10px 15px; line-height: 1.5; font-size: 11px; background-color: transparent !important; }
.dropdown-menu li a:hover { background-color: #f5f5f5 !important; }
li:hover > .dropdown-menu { display: block; }

.page-capsule {
    max-width: 700px;
    margin: 0 auto 20px;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
}
/* --- メインビジュアル --- */
.main-visual {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    height: 350px;
    position: relative;
    overflow: hidden;
}
.main-visual img { width: 100%; height: 100%; object-fit: cover; }
.main-visual-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.main-visual-text h1 { font-size: 32px; margin: 0; letter-spacing: 0.1em; }
.main-visual-text p { font-size: 18px; margin-top: 10px; font-weight: bold; }

/* ===== セクション共通 ===== */
section {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.section {
    padding: 70px 20px;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #222;
    text-align: center;
    border-bottom: 2px solid #0055a1;
    padding-bottom: 10px;
}

/* ===== カードレイアウト ===== */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px;
    gap: 20px;
}

.card {
    width: 400px;
    padding: 15px 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover { transform: translateY(-1px); }

.card-green { border-top: 5px solid #2e8b57; }
.card-gold  { border-top: 5px solid #c9a227; }
.card-brown { border-top: 5px solid #8b5a2b; }

.card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.card p   { font-size: 0.95rem; margin-bottom: 20px; }

/* --- コンテンツ共通エリア --- */
.main-content { flex: 1; width: 100%; max-width: 700px; margin: 0 auto; box-sizing: border-box; }
.content-area {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

h2 { border-bottom: 2px solid #FF8C00; padding-bottom: 8px; color: #b35959; font-size: 20px; }

/* 個人情報セクションの調整 */
.privacy h2 { font-size: 14px; padding-bottom: 5px; }
.privacy ol { padding-left: 20px; }
.privacy li { margin-bottom: 4px; list-style-type: decimal; }
.privacy h5 { font-size: 11px; margin: 0 0 3px 0; color: #330000; }
.privacy p  { font-size: 10px; margin: 0; line-height: 1.3; }

.privacy > div {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== スケジュール・カレンダー ===== */
.schedule-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

/* カレンダーを囲む枠 */
.calendar-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

/* カレンダー本体 */
.calendar-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
    padding: 5px;
    height: 80px;
}

.calendar-table th {
    background-color: #f8f8f8;
    text-align: center;
    height: auto;
}

/* 講習ラベル（イベント） */
.event {
    display: block;
    font-size: 11px;
    margin-top: 4px;
    padding: 2px 4px;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1.2;
}

/* カテゴリ色分け */
.cat1 { background-color: #e74c3c; }
.cat2 { background-color: #3498db; }
.cat3 { background-color: #2ecc71; }
.cat4 { background-color: #f1c40f; }
.cat5 { background-color: #9b59b6; }
.cat6 { background-color: #e67e22; }
.cat7 { background-color: #1abc9c; }
.cat8 { background-color: #34495e; }

/* 凡例 */
.legend-container {
    margin-top: 20px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
}
.legend-list { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.l-item { font-size: 13px; display: flex; align-items: center; }
.chip { display: inline-block; width: 15px; height: 15px; margin-right: 6px; border-radius: 2px; }

/* スクロールバーデザイン */
.calendar-wrapper::-webkit-scrollbar { height: 8px; }
.calendar-wrapper::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.calendar-wrapper::-webkit-scrollbar-track { background: #f1f1f1; }

 body {
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    gap: 20px;
    font-family: sans-serif;
  }

  p { color: #666; font-size: 13px; margin: 0; }

/* FullCalendar ツールバーボタンの文字サイズ */
.fc-button {
    font-size: 8px !important;
    padding: 4px 8px !important;
}

.fc-toolbar-title {
    font-size: 16px !important;
}


  /* ===== バナー本体 ===== */
  .banner {
    display: flex;
    align-items: center;
    width: 400px;
    max-width: 100%;        /* ★スマホはみ出し防止 */
    box-sizing: border-box; /* ★パディング込みで幅計算 */
    height: 70px;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6000 5%, #E84E00 100%);
    border-radius: 10px;
    box-shadow:
      0 4px 15px rgba(232, 78, 0, 0.5),
      inset 0 1px 0 rgba(255,255,255,0.3),
      inset 0 -2px 0 rgba(0,0,0,0.15);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid rgba(255,255,255,0.2);
  }

  /* 光沢ハイライト */
  .banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0));
    border-radius: 10px 10px 0 0;
    pointer-events: none;
  }

  .banner:hover {
    transform: translateY(-2px);
    box-shadow:
      0 6px 20px rgba(232, 78, 0, 0.6),
      inset 0 1px 0 rgba(255,255,255,0.3),
      inset 0 -2px 0 rgba(0,0,0,0.15);
  }

  .banner:active {
    transform: translateY(1px);
    box-shadow:
      0 2px 8px rgba(232, 78, 0, 0.4),
      inset 0 1px 0 rgba(255,255,255,0.2);
  }

  /* 左側アイコン */
  .banner-icon {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .arrow-icon {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arrow-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid rgba(255,255,255,0.9);
    margin-left: 2px;
  }

  /* テキスト */
  .banner-text {
    flex: 1;
    color: #fff;
    font-size: 20px;            /* ★26px → 20px に縮小 */
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-family: "游ゴシック", "YuGothic", "ヒラギノ角ゴ ProN W6", "Hiragino Kaku Gothic ProN", sans-serif;
    white-space: normal;        /* ★nowrap → normal（折り返し許可） */
    word-break: keep-all;
  }
/* --- フッター --- */
footer {
    background-color: #FF8C00;  /* ★小豆色 → オレンジ */
    color: #ffffff;
    padding: 30px 20px 15px;
    margin-top: 5px;
    font-family: inherit;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}
.footer-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo { font-size: 18px; font-weight: bold; color: #ffffff; margin-bottom: 8px; }
.footer-address { font-size: 14px; font-style: normal; line-height: 1.8; color: #ffffff; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; }
.footer-nav a { color: #ffffff; text-decoration: none; font-size: 14px; }
.copyright {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 25px;
    padding-top: 15px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 900px) {
    .header-inner { flex-direction: column; height: auto; padding: 10px; }
    .logo-area { margin-bottom: 10px; }
    nav ul li a { line-height: 35px; padding: 0 10px; font-size: 11px; }
    .dropdown-menu { position: static; width: 100%; box-shadow: none; border: none; }
}

/* ★スマホ用バナー調整 */
@media screen and (max-width: 480px) {
    .banner {
        width: 100%;
        height: auto;
        min-height: 56px;
        padding: 8px 0;
    }
    .banner-text {
        font-size: 15px;
        letter-spacing: 0.05em;
    }
    .banner-icon { width: 40px; }
    .arrow-icon { width: 24px; height: 24px; }
}