* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #f2f8ff;
  font-family: "ヒラギノ丸ゴ Pro W4", "Hiragino Maru Gothic Pro", "游ゴシック体", "Yu Gothic", sans-serif;
}

/* ------------------------------
  ハンバーガーメニュー
------------------------------ */
.nav {
  position: fixed;
  top: 0;
  right: 7px;
  z-index: 100;
  font-size: 0.9rem;
}
.drawer_hidden {
  display: none;
}
.drawer_open {
  display: flex;
  height: 60px;
  width: 60px;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 99;
  cursor: pointer;
}
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: "";
  display: block;
  height: 3.2px;
  width: 30px;
  border-radius: 3px;
  background: #fff;
  transition: 0.5s;
  position: absolute;
}
.drawer_open span:before {
  bottom: 9px;
}
.drawer_open span:after {
  top: 9px;
}
#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}
#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
  background: #333;
}
#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
  background: #333;
}
.nav_content {
  height: 94%;
  position: fixed;
  top: 0;
  left: 100%;
  z-index: 98;
  background: #ffffff;
  transition: 0.5s;
  text-align: left;
  padding-top: 40px;
  padding-left: 10px;
  border: 1px solid #d6d6d6;
  box-shadow: 3px 0px 3px #d6d6d6 inset;
  overflow-y: scroll;
}
.nav_content::-webkit-scrollbar {
  background: #eee;
  width: 7px;
}
.nav_content::-webkit-scrollbar-thumb {
  background-color: #0078d4;
}
.nav_list {
  list-style: none;
  padding-bottom: 15px;
}
.nav_list a {
  text-decoration: none;
}
.nav_list a:link {
  color: #6b6b6b;
}
.nav_list a:visited {
  color: #59627e;
}
.nav_list li {
  margin-left: 30px;
  padding: 6px;
}
#drawer_input:checked ~ .nav_content {
  left: calc(100vw - 340px);
}
.current {
  background-color: rgba(0, 120, 212, 0.12);
}
.current a {
  pointer-events: none;
  color: #0078d4 !important;
  font-weight: bold;
}

/* ------------------------------
  ヘッダー・全体レイアウト
------------------------------ */
#container {
  min-width: 320px;
  margin: auto;
}
header {
  position: fixed;
  background-color: #0078d4;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 3px;
  width: 100%;
  border-bottom: 5px solid #4fa8ea;
  z-index: 97;
}
.header-box {
  display: flex;
  align-items: baseline;
  margin: 0 auto;
  max-width: 1000px;
}
header > :last-of-type {
  margin-left: auto;
}
#lesson-title {
  margin-left: 20px;
  margin-top: auto;
  margin-bottom: auto;
  font-size: 1.4em;
  color: #fff;
  font-weight: bold;
}
.header-img {
  margin-left: 5px;
  margin-right: 5px;
  position: relative;
}
.header-img a {
  text-decoration: none;
  display: inline-block;
}
.header-img a:hover {
  opacity: 0.6;
}
.header-img:hover .balloon {
  display: inline;
}
.balloon {
  position: absolute;
  display: none;
  padding: 2px;
  background-color: rgba(0, 40, 90, 0.6);
  width: 160px;
  left: -3%;
  top: 85%;
  margin-top: 12px;
  font-size: 80%;
  text-align: center;
  color: #fff;
  z-index: 999;
  border-radius: 4px;
}
#logo-img {
  height: 38px;
  vertical-align: middle;
}
h1 {
  display: inline-block;
  color: #fffcf0;
  font-size: 1.1rem;
  line-height: 1.1;
}
h1 span {
  font-size: 0.65rem;
}
article {
  background-color: #ffffff;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 0;
  padding-top: 74px;
  padding-bottom: 50px;
  border-radius: 10px;
  box-shadow: 0px 0px 2px #d6d6d6;
}
section {
  max-width: 800px;
  margin: 0 auto;
}
p {
  margin-left: 30px;
  line-height: 1.7;
}

/* 見出し */
h2 {
  margin-top: 30px;
  position: relative;
  background: #e5f2ff;
  padding: 8px 5px 8px 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #35414d;
  border-radius: 0 10px 10px 0;
}
h2::before {
  display: inline-block;
  line-height: 40px;
  position: absolute;
  color: white;
  background: #0078d4;
  font-weight: 900;
  width: 40px;
  text-align: center;
  height: 40px;
  left: -1.35em;
  top: 50%;
  content: "\1F5A5";
  font-size: 1.1rem;
  transform: translateY(-50%);
  border-radius: 50%;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.29);
}
h3 {
  margin-top: 25px;
  margin-left: 30px;
  color: #0078d4;
}
.description {
  width: 90%;
  margin: 15px auto;
}

/* トップページの学習項目 */
.top-menu {
  margin: 50px auto 20px;
  padding: 20px 40px;
  border-radius: 0;
}
.lesson-cards {
  list-style: none;
  padding: 0 20px 10px;
}
.lesson-cards li {
  margin: 10px auto;
}
.lesson-cards a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #24313d;
  background-color: #f5faff;
  border: 2px solid #bfe0ff;
  border-radius: 10px;
  padding: 12px 18px;
  transition: all 0.2s;
}
.lesson-cards a:hover {
  transform: scale(1.02);
  border-color: #0078d4;
  background-color: #eaf5ff;
}
.lesson-cards .num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #0078d4;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-cards.solo a {
  background-color: #fff8ea;
  border-color: #ffdd9a;
}
.lesson-cards.solo .num {
  background-color: #f5a623;
}

/*------------------------------
  イラスト
------------------------------*/
.illustrate {
  max-width: 90%;
  margin: auto;
  text-align: center;
}
.illustrate img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  padding: 20px 0;
}

/*------------------------------
  画像付き吹き出し(会話)
------------------------------*/
.talk {
  width: 88%;
  margin: auto;
  padding-top: 5px;
}
.talk-word {
  margin: 0 auto;
}
.containerL,
.containerR {
  display: flex;
  align-items: flex-start;
  margin-bottom: 6px;
}
.containerR {
  justify-content: end;
}
.image-left,
.image-right {
  flex: 0 0 auto;
  width: 60px;
  text-align: center;
}
.image-left img,
.image-right img {
  width: 56px;
}
.role-label {
  font-size: 0.65rem;
  color: #8a8a8a;
  margin-top: 2px;
}
.balloon-left {
  padding: 12px 14px;
  margin: 8px;
  background-color: #eef6ff;
  border-radius: 12px;
  box-shadow: 2px 2px 5px #dbe8f5;
  position: relative;
}
.balloon-left::before {
  content: "";
  border-top: 10px solid transparent;
  border-right: 10px solid #eef6ff;
  border-bottom: 10px solid transparent;
  position: absolute;
  left: -10px;
  top: 14px;
}
.balloon-right {
  padding: 12px 14px;
  margin: 8px;
  background-color: #fff4e9;
  color: #000000;
  border-radius: 12px;
  box-shadow: 2px 2px 5px #f0e0cc;
  position: relative;
}
.balloon-right::after {
  content: "";
  border-top: 10px solid transparent;
  border-left: 10px solid #fff4e9;
  border-bottom: 10px solid transparent;
  position: absolute;
  right: -10px;
  top: 14px;
}

/*------------------------------
  ポイントブロック
------------------------------*/
.point_front {
  position: relative;
  margin: 40px auto;
  width: 85%;
  padding: 0.7em 1.2em;
  border: solid 3px #0078d4;
  border-radius: 6px;
  background: #f5faff;
}
.point_front .point_front_title {
  position: absolute;
  display: inline-block;
  top: -16px;
  left: 12px;
  padding: 0 9px;
  height: 25px;
  line-height: 25px;
  font-size: 1em;
  font-weight: bold;
  background: #0078d4;
  color: #ffffff;
  border-radius: 5px;
}
.point_front ul,
.point_front ol {
  list-style: none;
  margin: 14px 5px 4px;
  font-size: 0.95em;
  color: #333;
}
.point_front li {
  padding: 3px 0;
}

/*------------------------------
  Windows操作モックアップ
------------------------------*/
.winmock {
  width: 92%;
  max-width: 640px;
  margin: 25px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 30, 60, 0.25);
  border: 1px solid #c7d6e3;
  background: #fff;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
}
.winmock-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #5b6b7a;
  margin-top: 8px;
}

/* デスクトップ */
.win-desktop {
  height: 260px;
  background: linear-gradient(160deg, #2a8fd8 0%, #1560ac 100%);
  position: relative;
  padding: 14px;
}
.win-icon {
  width: 62px;
  text-align: center;
  color: #fff;
  font-size: 0.68rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}
.win-icon .glyph {
  font-size: 1.7rem;
  display: block;
  margin-bottom: 2px;
}
.win-taskbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 42px;
  background: rgba(32, 33, 36, 0.92);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 14px;
}
.win-start-btn {
  width: 22px;
  height: 22px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2px;
}
.win-start-btn span {
  background: #4fa8ea;
  border-radius: 1px;
}
.win-taskbar .search {
  background: rgba(255, 255, 255, 0.12);
  color: #cfd8e3;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 14px;
  flex: 0 0 auto;
}
.win-taskbar .tray {
  margin-left: auto;
  color: #cfd8e3;
  font-size: 0.72rem;
  display: flex;
  gap: 10px;
  align-items: center;
}
.win-taskbar .pinned {
  display: flex;
  gap: 14px;
  color: #e8f0fa;
  font-size: 1rem;
}

/* スタートメニュー */
.win-start-menu {
  background: rgba(245, 248, 252, 0.98);
  border-radius: 10px;
  margin: 26px auto;
  width: 84%;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.win-start-menu .search-bar {
  background: #fff;
  border: 1px solid #d6dee6;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 0.75rem;
  color: #8a94a0;
  margin-bottom: 14px;
}
.win-start-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.win-start-grid .app {
  text-align: center;
  font-size: 0.62rem;
  color: #35414d;
}
.win-start-grid .app .glyph {
  background: #fff;
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 3px;
}
.win-start-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dde5ec;
  padding-top: 10px;
  font-size: 0.75rem;
  color: #35414d;
}

/* 汎用ウィンドウ */
.win-window {
  background: #fff;
  border: 1px solid #b9c6d1;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.win-titlebar {
  background: #f3f6f9;
  border-bottom: 1px solid #dbe3ea;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  font-size: 0.78rem;
  color: #35414d;
  gap: 6px;
}
.win-titlebar .app-icon {
  font-size: 0.95rem;
}
.win-titlebar .title-text {
  flex: 1;
}
.win-btns {
  display: flex;
  gap: 2px;
}
.win-btns span {
  width: 30px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #45525e;
  border-radius: 3px;
}
.win-btns .close:hover,
.win-btns .close {
  background: transparent;
}
.win-btns .highlight {
  background: #e2ecf5;
  outline: 2px solid #0078d4;
}
.win-btns .close.highlight {
  background: #e81123;
  color: #fff;
  outline: 2px solid #b60f1e;
}
.win-body {
  padding: 18px;
  min-height: 90px;
  font-size: 0.85rem;
  color: #3d4a56;
  background: #fbfdff;
}
.win-body.blank {
  background: #ffffff;
}

/* エクスプローラー */
.win-explorer {
  display: flex;
  min-height: 200px;
}
.win-ex-side {
  width: 34%;
  background: #f6f9fc;
  border-right: 1px solid #e2e8ee;
  padding: 10px 8px;
  font-size: 0.72rem;
  color: #35414d;
}
.win-ex-side .grp {
  color: #7c8894;
  margin: 8px 0 2px 4px;
  font-size: 0.66rem;
}
.win-ex-side li {
  list-style: none;
  padding: 5px 6px;
  border-radius: 4px;
}
.win-ex-side li.active {
  background: #dbeafd;
  color: #0067c0;
  font-weight: bold;
}
.win-ex-main {
  flex: 1;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: start;
}
.win-file {
  text-align: center;
  font-size: 0.66rem;
  color: #35414d;
}
.win-file .glyph {
  font-size: 1.5rem;
  margin-bottom: 3px;
}
.win-file .ext {
  color: #8a94a0;
}

/* 右クリックメニュー */
.win-context {
  background: #fbfdff;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
}
.win-menu {
  background: #ffffff;
  border: 1px solid #d6dee6;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  width: 190px;
  overflow: hidden;
  font-size: 0.75rem;
}
.win-menu li {
  list-style: none;
  padding: 8px 14px;
  color: #35414d;
  display: flex;
  justify-content: space-between;
}
.win-menu li:hover,
.win-menu li.pick {
  background: #e5f2ff;
}
.win-menu hr {
  border: none;
  border-top: 1px solid #eef1f4;
}

/* ダイアログ */
.win-dialog-body {
  padding: 0;
}
.win-dialog-row {
  display: flex;
  border-top: 1px solid #eef1f4;
}
.win-dialog-side {
  width: 32%;
  background: #f6f9fc;
  padding: 10px 8px;
  font-size: 0.68rem;
  color: #35414d;
}
.win-dialog-side li {
  list-style: none;
  padding: 5px 4px;
}
.win-dialog-side li.active {
  background: #dbeafd;
  border-radius: 4px;
  color: #0067c0;
}
.win-dialog-main {
  flex: 1;
  padding: 12px;
}
.win-dialog-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #35414d;
  margin-bottom: 10px;
}
.win-dialog-field input {
  flex: 1;
  border: 1px solid #c7d1da;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.72rem;
  color: #35414d;
}
.win-dialog-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.win-dialog-btns button {
  border: 1px solid #b9c6d1;
  background: #f3f6f9;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 0.72rem;
  color: #35414d;
}
.win-dialog-btns button.primary {
  background: #0078d4;
  border-color: #0067c0;
  color: #fff;
}

/*------------------------------
  ページング
------------------------------*/
#paging {
  width: 100%;
  max-width: 1000px;
  margin: 10px auto;
}
#paging.top {
  margin: 20px auto;
}
.paging {
  margin-top: 5px;
  width: 100%;
  font-size: 1.2em;
  display: flex;
  justify-content: space-between;
}
.prev,
.next {
  background-color: #0078d4;
  width: 40%;
  padding: 22px;
  text-align: center;
  border-radius: 5px;
  position: relative;
}
.prev.none,
.next.none {
  opacity: 0;
}
.prev a,
.next a {
  color: #ffffff;
  text-decoration: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  background-color: #0078d4;
  color: #fff;
  padding-top: 3px;
  padding-bottom: 3px;
  text-align: center;
  font-size: 0.9em;
}

/* 小型タブレット・スマートフォン */
@media (max-width: 640px) {
  #container {
    width: 100%;
  }
  .header-box {
    width: 100%;
    padding: 0 52px 0 6px;
  }
  #lesson-title {
    font-size: 0.95rem;
  }
  article {
    width: 100%;
    padding-top: 68px;
    border-radius: 0;
  }
  section {
    width: calc(100% - 24px);
  }
  p {
    margin-left: 0;
  }
  .talk,
  .description,
  .point_front {
    width: 100%;
  }
  .win-start-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .win-ex-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .prev,
  .next {
    padding: 16px 4px;
    font-size: 0.85em;
  }
}
