/* ========================================
   BASE
========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #f2f2f2;
  color: #ff5600;

  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ========================================
   COLORS
========================================= */

:root {
  --orange: #ff5600;
  --gray: #f2f2f2;
  --gray-dark: #777;
  --marker: #e5e5e5;
  --blue: #69bfff;
  --blue-light: #cceeff;
}


/* ========================================
   HEADER
========================================= */

.header {
  height: 72px;

  padding: 0 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--orange);
  color: white;

  border-bottom: 2px solid var(--orange);
}

.header-copy {
  margin: 0;

  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.08em;
}


/* Windowsっぽいボタン */

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  background: #eee;
  color: #111;

  border: 2px solid #444;

  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}


/* ========================================
   MAIN
========================================= */

.main {
  min-height: calc(100vh - 72px);

  display: grid;
  grid-template-columns: 34% 66%;
}


/* ========================================
   DOT BACKGROUND
========================================= */

.dot-bg {
  background-color: var(--gray);

  background-image:
    radial-gradient(
      circle,
      var(--orange) 1.5px,
      transparent 1.7px
    );

  background-size: 32px 32px;
}


/* ========================================
   TITLE AREA
========================================= */

.title-area {
  min-height: 900px;

  position: relative;

  padding: 70px 40px;

  border-right: 1px solid #ddd;

  overflow: hidden;
}


/* 縦英字 */

.english-copy {
  position: absolute;

  top: 100px;
  left: 70px;

  margin: 0;

  padding: 18px 9px;

  background: var(--orange);
  color: white;

  writing-mode: vertical-rl;

  font-size: 15px;
  font-weight: bold;

  letter-spacing: 0.4em;
}


/* タイトル */

.title-group {
  position: absolute;

  top: 110px;
  left: 145px;

  display: flex;
  gap: 25px;

  writing-mode: vertical-rl;
}

.sub-title {
  margin: 0;

  font-size: 20px;
  font-weight: bold;

  letter-spacing: 0.18em;
}

.site-title {
  margin: 0;

  font-size: clamp(48px, 6vw, 92px);
  font-weight: normal;

  line-height: 1.05;
  letter-spacing: 0.04em;
}


/* ========================================
   DECORATIONS
========================================= */

.decoration {
  position: absolute;

  user-select: none;
  pointer-events: none;
}

.star {
  line-height: 1;
}

.star-01 {
  top: 55px;
  right: 30px;

  font-size: 130px;
  font-weight: normal;
}

.star-02 {
  bottom: 160px;
  left: 60px;

  font-size: 90px;
}

.cross {
  bottom: 90px;
  right: 60px;

  font-size: 90px;
}

.diamond {
  top: 390px;
  left: 35px;

  font-size: 50px;
}


/* ========================================
   CONTENT AREA
========================================= */

.content-area {
  position: relative;

  min-height: 900px;

  padding:
    60px
    clamp(30px, 7vw, 120px)
    420px;

  background: var(--gray);

  overflow: hidden;
}


/* ========================================
   WARNING WINDOW
========================================= */

.warning-window {
  width: min(680px, 100%);

  border: 2px solid var(--orange);

  background: rgba(242, 242, 242, 0.94);

  box-shadow:
    5px 5px 0 rgba(255, 86, 0, 0.25);
}

.window-title {
  height: 34px;

  padding-left: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 2px solid var(--orange);

  font-weight: bold;
}

.mini-controls {
  height: 100%;

  display: flex;
}

.mini-controls span {
  width: 32px;

  display: grid;
  place-items: center;

  border-left: 1px solid var(--orange);
}

.warning-content {
  padding: 18px 20px;

  color: #222;

  line-height: 1.8;
}


/* ========================================
   TEXT MARKERS
========================================= */

.gray-marker {
  padding: 2px 5px;

  background: var(--marker);

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.orange-marker {
  padding: 3px 7px;

  background: var(--orange);
  color: white;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* ========================================
   STORY COPY
========================================= */

.story-copy {
  width: min(600px, 100%);

  margin-top: 40px;

  font-size: 17px;
  font-weight: bold;
  line-height: 1.8;
}

.story-copy p {
  margin: 0 0 28px;
}

.story-copy span {
  padding: 2px 5px;

  background: rgba(225, 225, 225, 0.75);

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.dotted-line {
  width: 75%;

  margin: 8px 0 25px;

  border-top: 2px dotted var(--orange);
}


/* ========================================
   FACTION
========================================= */

.faction-area {
  position: relative;
  z-index: 5;

  margin-top: 70px;

  display: flex;
  gap: 35px;
}

.faction-window {
  width: 310px;

  display: block;

  background: var(--gray);

  border: 2px solid currentColor;

  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);

  transition:
    transform 0.1s linear,
    box-shadow 0.1s linear;
}

.faction-window:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
}


/* タイトルバー */

.faction-titlebar {
  padding: 4px 10px;

  border-bottom: 2px solid currentColor;

  font-size: 14px;
}


/* 中 */

.faction-content {
  min-height: 100px;

  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 20px;
}

.faction-content strong {
  font-size: 24px;
}


/* オレンジ派 */

.faction-orange {
  color: var(--orange);
}


/* グレー派 */

.faction-gray {
  color: #555;
}


/* ========================================
   SEA
========================================= */

.sea {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 380px;

  pointer-events: none;
}


/*
 * ここは最終的には海・雲の透過PNGなどに
 * 差し替える前提。
 * 今はCSSだけで仮の雰囲気を作る。
 */

.cloud {
  position: absolute;

  background: #ddd;

  opacity: 0.65;

  border-radius: 50%;
}

.cloud::before,
.cloud::after {
  content: "";

  position: absolute;

  background: inherit;
  border-radius: inherit;
}

.cloud-01 {
  width: 280px;
  height: 110px;

  right: 80px;
  bottom: 150px;
}

.cloud-01::before {
  width: 160px;
  height: 160px;

  left: 40px;
  bottom: 10px;
}

.cloud-01::after {
  width: 130px;
  height: 130px;

  right: 20px;
  bottom: 5px;
}


.cloud-02 {
  width: 240px;
  height: 90px;

  left: 80px;
  bottom: 110px;
}

.cloud-02::before {
  width: 130px;
  height: 130px;

  left: 30px;
  bottom: 5px;
}

.cloud-02::after {
  width: 100px;
  height: 100px;

  right: 20px;
  bottom: 0;
}


/* 仮の波 */

.wave {
  position: absolute;

  left: -10%;
  width: 120%;

  border-radius: 50% 50% 0 0;
}

.wave-01 {
  height: 130px;
  bottom: -20px;

  background: var(--blue);
}

.wave-02 {
  height: 110px;
  bottom: -5px;

  background: var(--blue-light);

  transform: translateX(8%);
  opacity: 0.8;
}

.wave-03 {
  height: 70px;
  bottom: 0;

  background: #fff;

  transform: translateX(-12%);
  opacity: 0.45;
}


/* ========================================
   FOOTER
========================================= */

.footer {
  min-height: 70px;

  padding: 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--orange);
  color: white;
}

.footer nav {
  display: flex;
  gap: clamp(20px, 5vw, 70px);
}

.footer a {
  font-family: monospace;

  letter-spacing: 0.15em;
}

.footer a:hover {
  text-decoration: underline;
}


/* ========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

  .header {
    height: 60px;
    padding: 0 15px;
  }

  .header-copy {
    font-size: 13px;
  }

  .window-controls span {
    width: 30px;
    height: 30px;

    font-size: 20px;
  }


  .main {
    display: block;
  }


  .title-area {
    min-height: 520px;

    border-right: 0;
    border-bottom: 1px solid #ddd;
  }

  .english-copy {
    top: 55px;
    left: 35px;
  }

  .title-group {
    top: 60px;
    left: 110px;
  }

  .site-title {
    font-size: 52px;
  }


  .content-area {
    min-height: 1000px;

    padding:
      35px
      20px
      400px;
  }


  .faction-area {
    flex-direction: column;

    gap: 20px;
  }

  .faction-window {
    width: 100%;
  }


  .footer {
    padding: 20px;

    display: block;
  }

  .footer nav {
    flex-wrap: wrap;

    gap: 15px 25px;

    margin-bottom: 20px;
  }

}

.header {
  height: 72px;
  padding: 0 28px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--orange);
  color: white;
}

.header-nav {
  display: flex;
  gap: 48px;
}

.header-nav a {
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.18em;
}

.header-nav a:hover {
  background: white;
  color: var(--orange);
}

.footer {
  min-height: 70px;
  padding: 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--orange);
  color: white;
}

.footer-copy {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.08em;
}

/* ========================================
   追加調整
   2000年代 / Windows風 / 白抜き文字 / 独自カーソル
========================================= */


/* ========================================
   CUSTOM CURSOR
========================================= */

body {
  cursor: url("img/cursor.png") 6 2, auto;
}

a,
button {
  cursor: url("img/cursor-pointer.png") 8 2, pointer;
}


/* ========================================
   TITLE TEXT
========================================= */

/* タイトル全体 */

.site-title {
  display: flex;
  gap: 12px;

  writing-mode: vertical-rl;

  line-height: 1;
}


/* 白抜き文字 */

.outline-text {
  color: var(--gray);

  -webkit-text-stroke: 1.5px var(--orange);

  font-weight: normal;
}


/* ベタ文字 */

.solid-text {
  color: var(--orange);
}


/* ========================================
   WARNING WINDOW
========================================= */

.warning-window {
  width: min(680px, 100%);

  background: #f3f3f3;

  border: 2px solid var(--orange);

  box-shadow:
    3px 3px 0 #cecece,
    5px 5px 0 rgba(255, 86, 0, 0.18);

  font-family:
    "MS Gothic",
    "ＭＳ ゴシック",
    monospace;
}


/* タイトルバー */

.window-title {
  height: 34px;

  padding-left: 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 2px solid var(--orange);

  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #f6f6f6 40%,
      #dedede 100%
    );

  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 #bdbdbd;

  font-size: 14px;
  font-weight: bold;

  letter-spacing: 0.05em;
}


/* 右上ボタン */

.mini-controls {
  height: 100%;

  display: flex;
}

.mini-controls span {
  width: 32px;
  height: 100%;

  display: grid;
  place-items: center;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #e8e8e8
    );

  color: #333;

  border-left: 1px solid var(--orange);

  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #aaa;

  font-family: Arial, sans-serif;
}


/* 本文部分 */

.warning-content {
  position: relative;

  padding: 22px 20px;

  color: #222;

  line-height: 1.8;

  background-color: #f2f2f2;

  background-image:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.018) 25%,
      transparent 25%
    );

  background-size: 4px 4px;
}


/* ========================================
   MARKER TEXT
========================================= */

.gray-marker {
  display: inline;

  padding: 2px 5px;

  background: #e3e3e3;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;

  box-shadow:
    inset 0 -1px 0 rgba(255, 86, 0, 0.25);
}


.orange-marker {
  display: inline;

  padding: 3px 7px;

  background: var(--orange);
  color: white;

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* ========================================
   STORY COPY
========================================= */

.story-copy span {
  padding: 2px 5px;

  background: rgba(225, 225, 225, 0.8);

  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* ========================================
   WINDOWS-STYLE FACTION BUTTONS
========================================= */

.faction-window {
  background: #f3f3f3;

  box-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.12);

  transition:
    transform 0.08s linear,
    box-shadow 0.08s linear;
}


/* タイトルバー */

.faction-titlebar {
  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #e8e8e8
    );

  box-shadow:
    inset 0 1px 0 white,
    inset 0 -1px 0 #bbb;
}


/* 押した感じ */

.faction-window:hover {
  transform: translate(2px, 2px);

  box-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.15);
}


.faction-window:active {
  transform: translate(4px, 4px);

  box-shadow: none;
}


/* ========================================
   HEADER NAV
========================================= */

.header-nav {
  display: flex;
  gap: 48px;

  align-items: center;
}


.header-nav a {
  position: relative;

  padding: 6px 8px;

  font-family: monospace;
  font-size: 14px;
  font-weight: bold;

  letter-spacing: 0.18em;
}


/* hoverしたら昔のメニューっぽく反転 */

.header-nav a:hover {
  background: white;
  color: var(--orange);

  text-decoration: none;
}


/* リンク末尾に >> */

.header-nav a::after {
  content: " >>";

  margin-left: 5px;

  font-size: 10px;
}


/* ========================================
   FOOTER COPY
========================================= */

.footer-copy {
  margin: 0;

  font-size: 16px;
  font-weight: bold;

  letter-spacing: 0.08em;
}


/* ========================================
   EXTRA PIXEL FEEL
========================================= */

/* 画像素材を荒く拡大したいとき */

.pixel-image {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}


/* ========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

  .header-nav {
    gap: 16px;
  }

  .header-nav a {
    font-size: 11px;

    letter-spacing: 0.08em;
  }

  .header-nav a::after {
    display: none;
  }


  .site-title {
    gap: 6px;
  }

  .outline-text {
    -webkit-text-stroke: 1px var(--orange);
  }

}

body,
button,
input,
textarea,
select,
.warning-window,
.window-title,
.mini-controls span,
.header-nav a,
.faction-titlebar,
.faction-content,
.footer {
  font-family: "DotGothic16", sans-serif;
}

.sea-visual {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 420px;

  overflow: hidden;
  pointer-events: none;
}


/* 入道雲 */

.cumulonimbus {
  position: absolute;

  width: 650px;

  right: -30px;
  bottom: 80px;

  z-index: 1;
}


/* イルカ */

.dolphin {
  position: absolute;

  width: 280px;

  left: 7%;
  bottom: 80px;

  z-index: 3;

  transform: rotate(10deg);
}


/* 海 */

.ocean {
  position: absolute;

  width: 100%;

  left: 0;
  bottom: 0;

  z-index: 2;
}


/* 荒いドットを維持 */

.pixel-image {
  image-rendering: pixelated;
}

/* ========================================
   SEA / CLOUD VISUAL 調整版
========================================= */

.sea-visual {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  /* 420px固定をやめて、右側のかなり上まで使う */
  height: 75%;

  /* 雲を切らない */
  overflow: visible;

  pointer-events: none;

  /* テキストより後ろ */
  z-index: 1;
}


/* 入道雲 */

.cumulonimbus {
  position: absolute;

  /* ここでサイズ調整 */
  width: min(850px, 75vw);
  height: auto;

  /* 右下を基準に置く */
  right: -40px;
  bottom: 0;

  z-index: 1;

  image-rendering: pixelated;
}


/* イルカ */

.dolphin {
  position: absolute;

  width: 280px;
  height: auto;

  left: 4%;
  bottom: 80px;

  z-index: 3;

  transform: rotate(10deg);

  image-rendering: pixelated;
}


/* 海 */

.ocean {
  position: absolute;

  width: 100%;
  height: auto;

  left: 0;
  bottom: 0;

  z-index: 2;

  image-rendering: pixelated;
}


/* WARNINGや文章、ENTERは雲より前 */

.warning-window,
.story-copy,
.faction-area {
  position: relative;
  z-index: 10;
}

.title-area {
  min-height: 900px;
  padding: 0;

  background-image: url("img/2.png");
  background-repeat: no-repeat;

  /* 全体を必ず表示 */
  background-size: contain;

  /* 上中央基準 */
  background-position: center top;

  background-color: #f2f2f2;
}

/* ========================================
   MOBILE FINAL ADJUSTMENT
========================================= */

@media (max-width: 800px) {

  .title-area {
    min-height: 0;
    height: auto;

    /* FV画像の比率に合わせる */
    aspect-ratio: 1000 / 1600;

    background-size: 100% auto;
    background-position: center top;
  }

}


@media (max-width: 800px) {

  .warning-content {
    font-size: 13px;
    line-height: 1.7;
    padding: 18px 14px;
  }

}

/* ========================================
   image3
========================================= */

.cumulonimbus {
  display: none;
}

@media (max-width: 800px) {
  .cumulonimbus {
    display: block;
    width: 120vw;
  }
}

/* ========================================
   SITE MENU
========================================= */

.site-menu {
  position: relative;
  z-index: 10;

  width: min(680px, 100%);

  margin-top: 70px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}


/* 共通ウィンドウ */

.menu-window {
  display: block;

  background: #f2f2f2;

  color: #555;

  border: 1px solid #888;

  box-shadow:
    2px 2px 0 #bbb,
    4px 4px 0 rgba(0, 0, 0, 0.08);

  font-size: 13px;
}


/* タイトルバー */

.menu-titlebar {
  min-height: 25px;

  padding: 3px 7px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background:
    linear-gradient(
      to bottom,
      #ffffff,
      #dddddd
    );

  border-bottom: 1px solid #888;

  color: #555;

  font-size: 11px;
  letter-spacing: 0.08em;
}


/* 中身 */

.menu-content {
  padding: 13px 15px;
}


/* 通常リンク */

.menu-link-content {
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 16px;
  font-weight: bold;

  letter-spacing: 0.08em;
}


/* hover */

.menu-link:hover {
  color: var(--orange);

  border-color: var(--orange);

  transform: translate(1px, 1px);

  box-shadow:
    1px 1px 0 #bbb,
    2px 2px 0 rgba(0, 0, 0, 0.08);
}

.menu-link:hover .menu-titlebar {
  border-color: var(--orange);
}


/* 更新履歴 */

.update-window {
  grid-column: 1 / -1;
}

.update-list {
  margin: 0;
  padding: 0;

  list-style: none;
}

.update-list li {
  display: flex;
  gap: 14px;

  padding: 4px 0;

  border-bottom: 1px dotted #bbb;
}

.update-list time {
  flex-shrink: 0;

  font-family: monospace;

  color: var(--orange);
}

.menu-more {
  display: block;

  margin-top: 10px;

  text-align: right;

  font-family: monospace;
  font-size: 11px;

  text-decoration: underline;
}

.menu-more:hover {
  color: var(--orange);
}


/* ========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

  .site-menu {
    margin-top: 55px;

    grid-template-columns: 1fr;

    gap: 14px;
  }

  .update-window {
    grid-column: auto;
  }

  .menu-link-content {
    min-height: 48px;

    font-size: 14px;
  }

  .menu-window {
    font-size: 12px;
  }

}

/* ========================================
   Q&A PAGE
======================================== */

.qa-page {
  width: min(900px, calc(100% - 32px));
  margin: 50px auto 80px;
  color: #222;
}


/* 外枠 */

.qa-window {
  border: 1px solid #888;
  background: rgba(245, 243, 235, 0.96);
}


/* オレンジのタイトルバー */

.qa-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 16px;

  background: var(--orange);
  color: #fff;

  font-family: monospace;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.08em;
}


/* 中身 */

.qa-inner {
  padding: 26px 28px 30px;
}


/* 説明文 */

.qa-intro {
  margin-bottom: 26px;
  padding-bottom: 22px;

  border-bottom: 1px solid #555;

  font-size: 14px;
  font-weight: bold;
  line-height: 1.9;
}

.qa-intro p {
  margin: 0;
}


/* ========================================
   INDEX
======================================== */

.qa-index {
  margin-bottom: 30px;

  border: 1px solid #777;
  background: rgba(255, 255, 255, 0.25);
}

.qa-index-title {
  padding: 9px 12px;

  border-bottom: 1px solid #aaa;

  font-family: monospace;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.qa-index ul {
  margin: 0;
  padding: 12px 16px;

  list-style: none;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}

.qa-index li {
  margin: 0;
}

.qa-index a {
  color: #0000ee;
  text-decoration: underline;

  font-size: 14px;
  line-height: 1.5;
}

.qa-index a:visited {
  color: #551a8b;
}

.qa-index a span {
  display: inline-block;
  margin-right: 12px;

  font-family: monospace;
  font-weight: bold;
}


/* ========================================
   Q&A ITEM
======================================== */

.qa-item {
  margin-bottom: 24px;

  border: 1px solid #777;
  background: rgba(255, 255, 255, 0.38);
}


/* 質問 */

.qa-question {
  display: grid;
  grid-template-columns: 90px 1fr;

  min-height: 52px;

  background: linear-gradient(
    to bottom,
    #eeeeee,
    #d7d7d7
  );

  border-bottom: 1px solid #888;
}

.qa-question .qa-number {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;

  border-right: 1px solid #888;

  font-family: monospace;
  font-weight: bold;
  font-size: 15px;
}

.qa-question p {
  display: flex;
  align-items: center;

  margin: 0;
  padding: 10px 16px;

  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
}


/* 回答 */

.qa-answer {
  display: grid;
  grid-template-columns: 90px 1fr;
}

.qa-answer-number {
  padding: 16px 10px;

  text-align: center;

  color: var(--orange);

  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
}

.qa-answer-body {
  padding: 15px 16px 12px;
}

.qa-answer-body p {
  margin: 0;

  font-size: 14px;
  line-height: 1.9;
}


/* 更新日＋PAGE TOP */

.qa-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;

  margin-top: 14px;

  font-family: monospace;
  font-size: 11px;
}

.qa-meta a {
  color: #0000ee;
  text-decoration: underline;
}

.qa-meta a:visited {
  color: #551a8b;
}


/* ========================================
   BOTTOM NAV
======================================== */

.qa-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;

  margin-top: 36px;

  font-family: monospace;
  font-size: 12px;
}

.qa-bottom-nav a {
  color: #0000ee;
  text-decoration: underline;
}

.qa-bottom-nav a:visited {
  color: #551a8b;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 800px) {

  .qa-page {
    width: calc(100% - 20px);
    margin: 25px auto 50px;
  }

  .qa-titlebar {
    padding: 9px 11px;
    font-size: 12px;
  }

  .qa-inner {
    padding: 18px 12px 22px;
  }

  .qa-intro {
    margin-bottom: 20px;
    padding-bottom: 16px;

    font-size: 12px;
    line-height: 1.8;
  }


  /* INDEXはスマホでは1列 */

  .qa-index {
    margin-bottom: 22px;
  }

  .qa-index-title {
    padding: 8px 10px;
    font-size: 12px;
  }

  .qa-index ul {
    grid-template-columns: 1fr;

    gap: 8px;

    padding: 11px 12px;
  }

  .qa-index a {
    font-size: 12px;
  }

  .qa-index a span {
    margin-right: 7px;
  }


  /* 質問 */

  .qa-item {
    margin-bottom: 18px;
  }

  .qa-question {
    grid-template-columns: 58px 1fr;
    min-height: 46px;
  }

  .qa-question .qa-number {
    padding: 8px 4px;

    font-size: 12px;
  }

  .qa-question p {
    padding: 9px 10px;

    font-size: 12px;
    line-height: 1.5;
  }


  /* 回答 */

  .qa-answer {
    grid-template-columns: 58px 1fr;
  }

  .qa-answer-number {
    padding: 13px 4px;

    font-size: 13px;
  }

  .qa-answer-body {
    padding: 12px 10px 10px;
  }

  .qa-answer-body p {
    font-size: 12px;
    line-height: 1.8;
  }


  /* 更新情報 */

  .qa-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;

    margin-top: 12px;

    font-size: 9px;
  }


  /* 下部ナビ */

  .qa-bottom-nav {
    gap: 5px;

    margin-top: 26px;

    font-size: 10px;
  }

}


.qa-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 0.5em;
  padding: 0.15em 0.6em;

  border-radius: 999px;
  background: #ff6b35;
  color: #fff;

  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.08em;
  vertical-align: 0.15em;
}


.qa-text-link,
.qa-text-link:visited {
  color: #0000ee;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.qa-text-link:hover {
  color: #5050ff;
  text-decoration-thickness: 2px;
}


/* ========================================
   EXPLORE MAPS
======================================== */

.explore-page {
  width: 100%;
  padding: 40px 20px 100px;
}

.explore-section {
  width: min(1400px, 100%);
  margin: 0 auto 80px;
}

.explore-section:last-child {
  margin-bottom: 0;
}

.explore-frame {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
}

/* 校内見取り図 */
.explore-frame--map {
  height: clamp(760px, 90vw, 1100px);
}

/* 校舎・寮の断面図 */
.explore-frame--building {
  height: clamp(860px, 100vw, 1250px);
}

@media (max-width: 600px) {
  .explore-page {
    padding: 24px 8px 70px;
  }

  .explore-section {
    margin-bottom: 48px;
  }

  .explore-frame--map {
    height: 720px;
  }

  .explore-frame--building {
    height: 760px;
  }
}

.teacher-link {
  text-align: center;
  margin: 70px 0 40px;
}

.teacher-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #ff5a1f;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.08em;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.teacher-link a::before,
.teacher-link a::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.teacher-link a:hover {
  opacity: 0.65;
  transform: translateY(-2px);
}
