@charset "UTF-8";


  /* --- 基本設定 --- */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: "メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    min-height: 100vh;
  }
  a {
    color: #0086a3;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
  }

  /* --- レイアウト全体 --- */
  #wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
  }

  /* --- ヘッダー --- */
  header {
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 2px solid #e0e0e0;
  }
  header h1 {
    font-size: 1.1rem;
    line-height: 1;
  }

  /* お問い合わせボタンエリア */
  #gNavi {
    text-align: center;
  }
  #gNavi .btn-contact {
    background: #0086a3;
    color: #fff;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  #gNavi .btn-contact:hover {
    background: #006880;
    text-decoration: none;
  }

  /* --- グローバルナビゲーション --- */
  nav#menu {
    background-color: #f2f2f2;
    border-bottom: 3px solid #0086a3;
  }
  nav#menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
  }
  nav#menu li {
    flex: 0 0 20%;
    width: 20%;
    text-align: center;
    box-sizing: border-box;
  }
  nav#menu a {
    display: block;
    padding: 10px 4px;
    color: #333;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  nav#menu li:nth-child(5n) a {
    border-right: none;
  }

  @media (hover: hover) {
    nav#menu a:hover {
      background-color: #009cb3;
      color: #fff;
      text-decoration: none;
    }
  }

  nav#menu a.active {
    background-color: #0086a3;
    color: #fff;
    font-weight: bold;
  }

  /* --- コンテンツ領域 --- */
  #contents {
    display: flex;
    padding: 20px;
    gap: 25px;
    align-items: flex-start;
  }

  /* --- サイドバー（#sub） --- */
  aside#sub {
    flex: 0 0 25%;
    order: 1;
    background: transparent;
    padding: 0;
    border: none;
  }

  aside#sub h3 {
    font-size: 1rem;
    line-height: 1.2;
    margin: 0 0 12px 0;
    padding: 8px 10px;
    background-color: #0086a3;
    color: #fff;
    text-align: center;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
  }

  aside#sub ul {
    list-style: none;
    margin-bottom: 20px;
  }
  aside#sub li {
    margin-bottom: 6px;
    border-bottom: none;
  }
  aside#sub a {
    display: block;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: #0086a3;
    font-weight: bold;
    background-color: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #0086a3;
    border-radius: 2px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
  }
  aside#sub a.active {
    background-color: #e6f5f8;
  }

  @media (hover: hover) {
    aside#sub a:hover {
      background-color: #e6f5f8;
      padding-left: 13px;
      text-decoration: none;
    }
  }

  .banner-group {
    text-align: center;
  }
  .banner-group p {
    margin-bottom: 10px;
  }

  /* --- メインコンテンツ領域 --- */
  main#main {
    flex: 1 1 70%;
    order: 2;
    min-width: 0;
  }

  main#main h3 {
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0 12px 0;
    padding: 0 0 5px 0;
    border-bottom: 2px solid #0086a3;
    color: #0086a3;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* 案内・メッセージボックス */
  .info-box {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-radius: 4px;
  }

  /* 改行された場合も行頭文字を垂直に揃える設定 */
  .text-aligned-label {
    padding-left: 5.5em;
    text-indent: -5.5em;
    margin-bottom: 5px;
  }
  .text-aligned-note {
    padding-left: 1em;
    text-indent: -1em;
  }

  /* タイムカラーアイコン表示エリア */
  .time-color-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
  }
  .time-color-grid img {
    height: auto;
    max-width: 120px;
    width: 100%; /* 2. 親要素に合わせて縮小可能に */
    min-width: 0; /* 3. Flexアイテムの最小幅制限を解除 */
    object-fit: contain; /* 4. 縦横比を綺麗に維持 */
  }

  .msg-area {
    margin-left: auto;
    text-align: right;
  }

  /* --- タブ切り替えデザイン --- */
  .tabbox {
    width: 100%;
    margin-top: 15px;
  }
  ul.tabs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 2px solid #0086a3;
    padding: 0;
    margin: 0;
  }
  ul.tabs li.tab {
    flex: 1 1 auto;
    min-width: 110px;
    text-align: center;
  }
  ul.tabs li.tab a {
    display: block;
    background-color: #f2f2f2;
    color: #333;
    padding: 8px 5px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    text-decoration: none;
  }
  ul.tabs li.tab a:hover {
    background-color: #e0e0e0;
  }

  /* iframe 表示領域 */
  .tab-content-container {
    width: 100%;
    padding-top: 10px;
  }
  .tab-content-container iframe {
    width: 100%;
    height: 800px;
    border: 1px solid #e0e0e0;
  }

  /* --- フッター --- */
  footer {
    background-color: #eceff1;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #ddd;
  }
  footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
  }
  .copyright {
    color: #666;
  }
  #pageTop {
    text-align: right;
    margin-top: 15px;
    font-size: 0.85rem;
  }

  .sp-text {
    display: none;
  }
  .pc-text {
    display: inline;
  }
  /* 通常時（PC）はスマホ用改行を非表示 */
  .sp-only {
    display: none;
  }
  /* 動的に付与される土曜・日曜の文字色 */
  ul.tabs li.tab a.text-sat {
    color: #0066cc !important; /* 土曜日：青 */
  }
  ul.tabs li.tab a.text-sun {
    color: #cc0000 !important; /* 日曜日：赤 */
  }

  /* レスポンシブ (スマホ表示用) */
  @media (max-width: 768px) {
    header {
      justify-content: center;
      text-align: center;
      gap: 15px;
    }
    #gNavi {
      width: 100%;
    }
    aside#sub {
      display: none;
    }
    main#main {
      flex: 1 1 100%;
      width: 100%;
    }
    nav#menu a {
      font-size: 0.75rem;
      padding: 8px 2px;
    }
    .pc-text {
      display: none;
    }
    .sp-text {
      display: inline;
    }
    /* スマホ時のみ改行を表示 */
    .sp-only {
      display: inline;
    }
    .text-aligned-label {
      padding-left: 5.5em; /* <strong>表示期間：</strong> の文字数分の余白 */
      text-indent: -5.0em;
    }
    .msg-area {
      margin-left: 0;
      text-align: left;
    }
    .tab-content-container iframe {
      height: 600px;
    }
  }