@charset "utf-8";

/* CSS Document */
/* 右寄せメニュー */
.accessibleBtn {
  position: fixed;
  bottom: 50px;
  list-style-type: none;
  text-align: center;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 0;
  z-index: 1002;
}

.accessibleBtn-list {
  position: relative;
  right: 0;
  /* background: #ffcfa2; */
  background: #efffd8;
  color: #000;
  border-radius: 8px 0 0 8px;
  font-size: 0.875em;
  /* 14px */
  line-height: 1.28571;
  display: flex;
  margin-top: 10px;
  height: 80px;
  padding: 0.375em 0;
  /* 6px */
  font-weight: bold;
  transition: all 0.25s ease-in-out, width 0.25s ease-in-out,
    padding 0.25s ease-in-out;
  border: 2px solid #e0e0e0;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  width: 160px;
  font-size: 14px !important;
}

.accessibleBtn-list:hover {
  border: 2px solid #6bd985;
}

/* チェックボックスを非表示 */
.accessibleBtn-checkbox {
  display: none;
}

/* ボタン共通スタイル */
.accessibleBtn-list-label {
  display: flex;
  align-items: center;
  padding: 0 1em;
  min-width: 80px;
  justify-content: center;
  cursor: pointer;
}

.accessibleBtn-list-label .material-symbols-outlined {
  font-size: 1.714em;
  /* 24px */
  margin-right: 0.3em;
}

/* 展開コンテンツエリア */
.accessibleBtn-list-content {
  display: flex;
  gap: 0.5em;
  align-items: center;
  padding: 0 1em;
  border-left: 1px solid #444;
  margin-left: 1em;
  opacity: 0;
  max-width: 0;
  transition: opacity 0.25s ease-in-out, max-width 0.25s ease-in-out,
    padding 0.25s ease-in-out;
  overflow: hidden;
}

/* チェックボックスがチェックされたときの展開 */
.accessibleBtn-checkbox:checked ~ .accessibleBtn-list-content {
  opacity: 1;
  max-width: 500px;
}

.accessibleBtn-list:has(.accessibleBtn-checkbox:checked) {
  width: auto;
  padding-right: 1em;
}

/* 内部ボタンスタイル */
.accessibleBtn-inner-btn {
  background: #fff;
  color: #000;
  border: 1px solid #e0e0e0;
  padding: 0.5em 1em;
  border-radius: 0.8rem;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 3.5em;
}

/* 配色ボタンスタイル */
.accessibleBtn-inner-btn.orange {
  background: #136740;
  color: #fff;
}

.accessibleBtn-inner-btn.blue {
  background: #4169e1;
  color: #fff;
}

.accessibleBtn-inner-btn.black {
  background: #000;
  color: #fff;
}

/* .accessibleBtn-inner-btn:hover {
    background: #136740;
    color: #fff;
} */

/* .accessibleBtn-inner-btn.is-active {
    background: #4caf50;
    color: #fff;
} */

/* シンプルボタン（ヘルプ・上下移動） */
.accessibleBtn-list--simple {
  background: #f2f2f2;
  height: 40px;
  width: 90px;
  justify-content: center;
  right: 20px;
  border-radius: 8px;
}

.accessibleBtn-list--simple .accessibleBtn-list-label {
  text-decoration: none;
  color: inherit;
}

.accessibleBtn-list--simple:active {
  background: #222;
}

/* ========== 配色テーマ ========== */
body.theme-orange {
  background: #fff5e6;
}

body.theme-orange .demo-content {
  background: #fffaf0;
  border: 2px solid #136740;
}

body.theme-blue {
  background: #e3f2fd;
}

body.theme-blue .demo-content {
  background: #f0f8ff;
  border: 2px solid #136740;
}

body.theme-black {
  background: #1a1a1a;
  color: #f0f0f0;
}

body.theme-black .demo-content {
  background: #2a2a2a;
  color: #f0f0f0;
  border: 2px solid #666;
}

body.theme-black h1 {
  color: #ffa726;
}

.section-title.theme-orange {
  background: #136740;
}

.section-title.theme-blue {
  background: #136740;
}

.section-title.theme-black {
  background: #1a1a1a;
}

.short_cut .button-icon.theme-orange {
  background: #136740;
}

.short_cut .button-icon.theme-blue {
  background: #136740;
}

.short_cut .button-icon.theme-black {
  background: #1a1a1a;
}

.notice-tab.active.theme-orange {
  background: #ecf9d9;
}

.notice-tab.active.theme-blue {
  background: #00caf7;
}

.notice-tab.active.theme-black {
  background: #1a1a1a;
}

.notes-accordion.theme-orange {
  background: #ecf9d9;
}

.notes-accordion.theme-blue {
  background-color: #00caf7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notes-accordion.theme-black {
  background-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notes-accordion.theme-orange:hover {
  background-color: #f5fde8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notes-accordion.theme-blue:hover {
  background-color: #00a9f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notes-accordion.theme-black:hover {
  background-color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notes-accordion.active.theme-orange {
  background: #f5fde8;
}

.notes-accordion.active.theme-blue {
  background: #00a9f7;
}

.notes-accordion.active.theme-black {
  background: #1a1a1a;
}

.accessibleBtn-list.theme-orange {
  background: #f5fde8;
}

.accessibleBtn-list.theme-blue {
  background: #00a9f7;
}

.accessibleBtn-list.theme-black {
  background: #1a1a1a;
}

/* ========== 文字サイズ変更 ========== */
body.font-small {
  font-size: 1.4rem;
  /* 14px */
}

body.font-medium {
  font-size: 1.6rem;
  /* 16px */
}

body.font-large {
  font-size: 1.8rem;
  /* 18px */
}

/* ハンバーガーメニュー（デフォルトは非表示） */
.hamburger-menu {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1003;
}

.hamburger-menu-toggle {
  display: none;
}

.hamburger-menu-btn {
  width: 50px;
  height: 50px;
  background: #136740;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  position: relative;
  z-index: 1004;
}

/* .hamburger-menu-btn:hover {
    border: 2px solid #136740;
} */

.hamburger-menu-btn .material-symbols-outlined {
  color: #fff;
  font-size: 2em;
  transition: transform 0.3s;
}

.hamburger-menu-panel {
  position: absolute;
  top: 60px;
  right: 0;
  width: 400px;
  max-height: 0;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  font-size: 1em;
}

.hamburger-menu-toggle:checked ~ .hamburger-menu-panel {
  max-height: 600px;
  opacity: 1;
}

.hamburger-menu-item {
  /* margin-bottom: 1em;
    padding: 1em; */
  background: #efffd8;
  /* border-radius: 0.5rem; */
  /*border: 1px solid transparent;*/
  border-color: #222;
  transition: all 0.3s;
  font-weight: bold;
  border-width: 1px 1px 0 1px;
  border-style: solid;
}

.hamburger-menu-item:last-child {
  margin-bottom: 0;
  border-width: 1px 1px 1px 1px;
  border-style: solid;
}

/* .hamburger-menu-item:hover {
    border: 2px solid #136740;
} */

.hamburger-menu-item-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #222;
  font-size: 0.9em;
}

.hamburger-menu-item-title .material-symbols-outlined {
  margin-right: 0.5em;
  font-size: 1.3em;
}

/* 展開可能なアイテム */
.hamburger-menu-item--expandable {
  cursor: pointer;
}

.hamburger-menu-item--expandable .hamburger-menu-item-title {
  cursor: pointer;
  padding: 0.5em;
  margin: 0 auto;
  border-radius: 0.3rem;
  transition: background 0.3s;
}

/* .hamburger-menu-item--expandable .hamburger-menu-item-title:hover {
    background: #efffd8;
} */

/* 展開用チェックボックス */
.hamburger-menu-expand-toggle {
  display: none;
}

.hamburger-menu-buttons {
  display: none;
  gap: 0.5em;
  flex-wrap: wrap;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out,
    margin-top 0.4s ease-in-out;
}

.hamburger-menu-expand-toggle:checked ~ .hamburger-menu-buttons {
  display: flex;
  max-height: 200px;
  opacity: 1;
}

.hamburger-menu-button {
  background: #fff;
  color: #000;
  border: 2px solid #ddd;
  padding: 0.5em 1em;
  border-radius: 0.3rem;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  min-width: 60px;
}

.hamburger-menu-button.orange {
  background: #136740;
  color: #fff;
}

.hamburger-menu-button.blue {
  background: #4169e1;
  color: #fff;
}

.hamburger-menu-button.black {
  background: #000;
  color: #fff;
}

/* aタグの要素リセット */
.hamburger-menu-link,
.hamburger-menu-link:visited,
.hamburger-menu-link:hover,
.hamburger-menu-link:active {
  text-decoration: none;
  color: inherit;
}
a.hamburger-menu-link {
  display: flex;
  align-items: center;
}

/* ヘルプ */
.help-menu {
  background-color: #f2f2f2;
}

@media (max-width: 768px) {
  /* サイドメニューを非表示 */
  .accessibleBtn {
    display: none;
  }

  /* ハンバーガーメニューを表示 */
  .hamburger-menu {
    display: block;
  }

  .hamburger-menu-item {
    padding: 0.8em;
  }
}

@media (max-width: 639px) {
  .hamburger-menu-panel {
    width: 280px;
    right: -10px;
  }

  .hamburger-menu-btn {
    width: 45px;
    height: 45px;
  }

  .hamburger-menu-item {
    padding: 0.8em;
  }

  .hamburger-menu-item-title {
    font-size: 0.85em;
  }

  .hamburger-menu-button {
    font-size: 0.85em;
    padding: 0.4em 0.8em;
  }
}

@media (max-width: 480px) {
  .hamburger-menu {
    top: 10px;
    right: 10px;
  }

  .hamburger-menu-panel {
    right: -10px;
  }
}
