@charset "UTF-8";
@import url("html5reset-1.6.1.css");
@import url("https://fonts.googleapis.com/css?family=Montserrat:300");
@import url("https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&display=swap");

/* ============================================================
   01. 基本パーツ
============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 横線（メッセージ用） */
hr {
  margin: 5px 0px;
  border-top: 1px #aaa;
  border-style: dashed;
}

/* 色ユーティリティ */
span.brown_d { color: #6f4b3e; }
span.brown_l { color: #996666; }
span.gray    { color: #C9B9A8; }
span.pink    { color: #E8B0A5; }
span.red     { color: #ff6666; }
span.trans   { color: transparent; }

span.orange_b {
  background-color: #ffe6b3;
  border-radius: 8px;
  padding: 2px 6px;
  display: inline-block;
}

span.blue_b {
  background-color: #E7D8D1;
  color: #2E2E2E;
  border-radius: 8px;
  padding: 2px 6px;
  display: inline-block;
}

/* ============================================================
   02. リスト（矢印のリストなど）
============================================================ */

.defaultlist,
.defaultlist li {
  padding: 0px;
  margin: 0px;
}

.defaultlist li {
  list-style-type: none !important;
  list-style-image: none !important;
  margin: 5px 0px 5px 0px !important;
}

/* list2：矢印装飾（li:before / li:after） */
.list2 li {
  position: relative;
  padding-left: 20px;
}

.list2 li:before {
  content: "";
  height: 0;
  width: 0;
  display: block;
  border: 5px transparent solid;
  border-right-width: 0;
  border-left-color: #aaa;
  position: absolute;
  top: 5px;
  left: 8px;
}

.list2 li:after {
  content: "";
  height: 2px;
  width: 10px;
  display: block;
  background: #aaa;
  position: absolute;
  top: 9px;
  left: 0px;
}

/* ============================================================
   03. レイアウト
============================================================ */

* { line-height: 150%; }

body {
  color: #333;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Verdana, sans-serif;
  background-color: #f8e9de;
}

.base {
  margin: 0 auto;
  width: 800px;
}

.header {
  padding: 15px 5px;
  text-align: center;
}

.footer {
  padding: 5px;
  text-align: center;
}

.work {
  float: right;
  width: 570px;
  padding: 15px 15px 5px 15px;
}

.menu {
  background-color: #d4a5a5;
  float: left;
  width: 180px;
  padding: 10px 5px;
  position: fixed;
  z-index: 1;
  top: 0;
  height: 100%;
}

.box {
  overflow: hidden;
}

.text {
  margin: 25px 0px;
  padding: 5px;
  line-height: 180%;
  font-size: 90%;
  text-align: left;
}

.textmenu {
  text-align: center;
  padding: 5px;
  margin: 5px;
  word-spacing: 20px;
  font-family: "Montserrat", sans-serif;
}

/* ============================================================
   04. 画像
============================================================ */

img {
  max-width: 90%;
  border: none;
  height: auto;
}

/* ============================================================
   05. 見出し・テキスト
============================================================ */

h1 {
  font-size: 100%;
  font-weight: normal;
  font-family: "Montserrat", sans-serif;
}

h2 {
  font-size: 70%;
  font-weight: normal;
  margin-top: 10px;
  font-family: "Montserrat", sans-serif;
}

h3 {
  font-size: 130%;
  font-weight: normal;
  text-align: center;
  margin: 25px 0px;
  font-family: "Montserrat", sans-serif;
}

h4 {
  color: #fff;
  background-color: #d4a5a5;
  font-size: 100%;
  font-weight: normal;
  text-align: center;
  margin: 15px 0px;
  padding: 1px 5px 1px 5px;
  box-shadow: 0px 0px 0px 3px #d4a5a5;
  border: solid 1px #FFF;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
}

h5 {
  font-size: 90%;
  font-weight: normal;
  margin: 10px 0px;
}

h6 {
  font-size: 80%;
  font-weight: normal;
  color: #d4a5a5;
}

em { background: linear-gradient(transparent 60%, #d6c6af 60%); }

strong {
  background-color: #a6d0e4;
  font-weight: normal;
}

small { font-size: 80%; }
i { font-style: italic; }

/* ============================================================
   06. リンク（統合済み）
============================================================ */

a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;

  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: transparent;
  box-sizing: border-box;
}

a:hover {
  background-color: #d6c6af;
  color: #fff;
  text-decoration: none;
}

a img {
  text-decoration: none;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  max-width: 100%;
  height: auto;
}

.link-row { font-size: 0; }

/* ============================================================
   07. 引用
============================================================ */

blockquote {
  padding: 1em 1.2em;
  margin: 1em auto;
  font-size: 100%;
  color: #6f4b3e;
  background-color: #fff;
  font-weight: bold;
  position: relative;
  box-sizing: border-box;
}

blockquote:before {
  content: "\201c";
  font-size: 120%;
  color: #000;
  margin: 0 1px;
  display: inline;
}

blockquote:after {
  content: "\201d";
  font-size: 120%;
  color: #000;
  margin: 0 5px;
  display: inline;
}

blockquote .toggle-text,
blockquote .toggle-text span {
  font-size: inherit;
  font-weight: inherit;
}

/* ============================================================
   08. 汎用要素
============================================================ */

li { padding: 5px; }

dl {
  padding-left: 3px;
  margin: 10px;
}

dt { padding-left: 5px; }
dd { padding-left: 10px; }

address {
  font-size: 80%;
  font-family: "Montserrat", sans-serif;
}

cite { font-size: smaller; }

/* ============================================================
   09. classタグ（装飾）
============================================================ */

.list1 {
  list-style: none;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}

.list2 {
  list-style-type: upper-roman;
  list-style-position: inside;
}

.hr1 {
  margin: 5px 0px;
  border-top: 1px #d6c6af;
  border-bottom: 1px #fff;
  border-style: solid;
}

.hr2 {
  margin: 5px 0px;
  border-top: 1px #aaa;
  border-style: dashed;
}

.hr3 {
  margin: 5px 0px;
  height: 35px;
  border-width: 0px;
}

.p1 {
  padding: 5px;
  margin: 5px 0px;
  font-size: 80%;
}

.p2 {
  border-style: double;
  border-width: 3px;
  padding: 3px;
  margin: 5px 0px;
  font-size: 80%;
  border-color: #d6c6af;
}

.p3 {
  border-style: dashed;
  border-width: 1px;
  padding: 5px;
  margin: 5px 0px;
  font-size: 80%;
  border-color: #d6c6af;
  background-color: #fff;
}

.dt1 {
  border-width: 0px 0px 0px 2px;
  border-style: solid;
  font-family: "Montserrat", sans-serif;
  border-color: #f7b977;
  padding: 5px;
}

.dd1 {
  font-size: 90%;
  border-width: 0px 0px 0px 2px;
  border-style: solid;
  border-color: #d6c6af;
}

.memo {
  background-color: #FFF;
  font-size: 80%;
  padding: 0px 10px;
  height: 140px;
  overflow: auto;
  margin: 5px 10px;
}

.img1 {
  box-shadow: 1px 1px 3px -1px #999999;
  -moz-box-shadow: 1px 1px 3px -1px #999999;
  -webkit-box-shadow: 1px 1px 3px -1px #999999;
}

.counter { font-family: "Montserrat", sans-serif; }

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   10. トップへもどる
============================================================ */

#page_top {
  position: fixed;
  bottom: 30px;
  right: 20px;
}

#page_top a {
  background-color: #999;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  line-height: 1;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
}

#page_top a:hover {
  background-color: #666;
  text-decoration: none;
}

/* ============================================================
   11. YouTube
============================================================ */

.youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.youtube iframe {
  width: 100%;
  height: 100%;
}

/* ============================================================
   12. 文字枠
============================================================ */

.mojiwaku {
  display: inline-block;
  border: 1px solid #d6c6af;
  font-size: 80%;
  padding: 5px 8px 5px 8px;
  background: #fff;
  margin: 3px 8px 3px 0;
  border-radius: 5px;
}

.mojiwaku2 {
  display: inline-block;
  border: 1px solid #d6c6af;
  font-size: 100%;
  padding: 5px 8px 5px 8px;
  background: #fff;
  margin: 3px 8px 3px 0;
  border-radius: 5px;
}

.harumoji {
  font-family: "Hachi Maru Pop", "HanziPen SC", "Hannotate SC", "Osaka", sans-serif;
  font-weight: 400;
  color: #ff6666;
  text-shadow: 0 0 0.5px #ff6666;
}

/* ============================================================
   13. iframe
============================================================ */

.iframe-wrap {
  position: relative;
  width: 100%;
  padding: calc(340 / 560 * 100%) 0 0;
}

.iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   14. 画像の並び
============================================================ */

.image-links-container {
  display: flex;
  flex-wrap: wrap;
}

.image-links-container a {
  margin: 0.3px;
}

/* ============================================================
   15. フッター
============================================================ */

.footer-note {
  text-align: center;
  font-style: italic;
  font-weight: 300;
  font-size: 0.9em;
  line-height: 1.6;
  margin-top: 3em;
  color: #333;
  font-family: "Montserrat", sans-serif;
}

.footer-note span { display: block; }
.footer-note .copyright { font-size: 1em; }
.footer-note .english { font-size: 0.95em; }
.footer-note .chinese { font-size: 0.9em; }

.footer-note .designer {
  font-size: 0.85em;
  margin-top: 0.5em;
}

.footer-note .designer a {
  text-decoration: underline;
  color: #333;
}

.footer-note .designer a:hover { color: #666; }

/* ============================================================
   16. ナビボタン / リンクボックス / アイコン
============================================================ */

.page-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
  margin: 2em 0;
  font-family: "Montserrat", sans-serif;
}

.nav-button {
  background-color: #fdf8f4;
  color: #6f4b3e;
  border: 1px solid #e6cfcf;
  padding: 0.4em 1.4em;
  border-radius: 8px;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: normal;
  box-shadow: none;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}

.nav-button:hover {
  background-color: #d6c6af;
  color: #fff;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  margin: 2.5em 0 4em;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95em;
  line-height: 2;
}

.nav-links a {
  display: inline-block;
  margin: 0.5em 1em;
  padding: 0.2em 0.8em;
  color: #6f4b3e;
  text-decoration: none;
  border-bottom: 1px solid #aaa;
  transition: all 0.2s ease;
  width: fit-content;
}

.nav-links a:hover {
  background-color: #d6c6af;
  color: #fff;
  border-radius: 5px;
  border-bottom: none;
}

.nav-series,
.nav-home,
.nav-novel,
.nav-characters,
.nav-sounds,
.nav-sozai,
.nav-manga,
.nav-intro,
.nav-games,
.nav-gacha,
.nav-tegami,
.nav-ency {
  display: inline-block;
  border-radius: 12px;
  padding: 0.6em 1.2em;
  color: #533b2f;
  font-weight: 500;
  font-size: inherit;
  transition: background-color 0.2s;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
}

.nav-series:hover,
.nav-home:hover,
.nav-novel:hover,
.nav-characters:hover,
.nav-sounds:hover,
.nav-sozai:hover,
.nav-manga:hover,
.nav-intro:hover,
.nav-games:hover,
.nav-gacha:hover,
.nav-tegami:hover,
.nav-ency:hover {
  background-color: #f1e3da;
}

.nav-series::before,
.nav-home::before,
.nav-novel::before,
.nav-characters::before,
.nav-sounds::before,
.nav-sozai::before,
.nav-manga::before,
.nav-intro::before,
.nav-games::before,
.nav-gacha::before,
.nav-tegami::before,
.nav-ency::before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 0.4em;
  vertical-align: -0.15em;
}

.nav-series::before      { background-image: url("img/img_icon/book_01_green.png"); }
.nav-home::before        { background-image: url("img/img_icon/ie_front_02_red.png"); }
.nav-novel::before       { background-image: url("img/img_icon/shelf_hondana_01.png"); }
.nav-characters::before  { background-image: url("img/img_icon/boshi_halloween_orange.png"); }
.nav-sounds::before      { background-image: url("img/img_icon/tsubaki_pink_01.png"); }
.nav-sozai::before       { background-image: url("img/img_icon/jewelry_green.png"); }
.nav-manga::before       { background-image: url("img/img_icon/book_01_blue.png"); }
.nav-intro::before       { background-image: url("img/img_icon/drink_hotcoffee.png"); }
.nav-games::before       { background-image: url("img/img_icon/game_controller_gray.png"); }
.nav-gacha::before       { background-image: url("img/img_icon/gacha_capsule_red.png"); }
.nav-tegami::before      { background-image: url("img/img_icon/letter_white.png"); }
.nav-ency::before        { background-image: url("img/img_icon/candle_01_white.png"); }

/* ============================================================
   17. ちいさなUI
============================================================ */

.hover-border {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  background-color: transparent;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.hover-border:hover {
  background-color: #d6c6af;
  border-radius: 4px;
}

details summary span {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

details summary span:hover {
  background-color: #b9a38e;
  color: #fff;
}

summary {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.icon-frame {
  font-size: 0.8em;
  line-height: 1.1;
  display: table-cell;
  border: 2px dotted #fff;
  padding: 10px;
  margin: 10px;
  background-color: #fff;
  text-align: center;
  vertical-align: top;
  width: 150px;
}

.shirushi-section { font-size: 0.9em; }
.shirushi-section .mojiwaku2 { font-size: 0.8em; }

.shirushi-section p {
  font-size: 1em;
  margin: 0.5em 0;
}

ul.plain-list {
  list-style-position: inside;
  padding-left: 0.8em;
  margin-left: 0;
}

/* ============================================================
   18. アニメーション
============================================================ */

@keyframes creatureBounce {
  0%   { transform: translateY(0) scale(1); }
  5%   { transform: translateY(-6px) scale(1.05, 0.95); }
  8%   { transform: translateY(0) scale(0.97, 1.03); }
  10%  { transform: translateY(-3px) scale(1.02, 0.98); }
  13%  { transform: translateY(0) scale(1, 1); }
  100% { transform: translateY(0) scale(1, 1); }
}

.poyo {
  display: inline-block;
  animation: creatureBounce 6s ease-in-out infinite;
}

/* ============================================================
   19. ロゴ・画像列・ゲーム
============================================================ */

.logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
}

.image-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
}

.image-row img {
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

.game-icons img {
  width: 200px;
  height: auto;
}

/* ============================================================
   20. カーソル
============================================================ */

.toggle-text,
.cursor-pointer,
.cursor-pointer-yubi {
  cursor: pointer;
}

.cursor-pointer-yubi:hover {
  background-color: #d6c6af;
}

/* ============================================================
   21. レスポンシブ（ここから下は「後ろが勝つ」を維持）
============================================================ */

/* 画像の並び（PC/スマホとも中央） */
@media screen and (min-width: 768px) {
  .image-links-container { justify-content: center; }
}

@media screen and (max-width: 768px) {
  .image-links-container { justify-content: center; }
}

/* スマホ対応（blockquote） */
@media (max-width: 768px) {
  blockquote {
    padding: 0.8em 1em;
    margin: 0.5em;
    font-size: 95%;
  }
}

/* ディスプレイ768px以下用（元の挙動） */
@media screen and (max-width: 768px) {
  .header { padding: 4px 5px; }
  .base { width: auto; }

  .work {
    float: none;
    width: auto;
    margin-top: 175px;
  }

  .text {
    float: none;
    width: auto;
    margin: 10px;
    padding: 10px;
  }

  .menu {
    float: none;
    width: 98%;
    margin: 0px;
    padding: 0px 15px 0px 5px;
    height: auto;
  }

  .list1 li {
    display: inline-block;
    font-size: 90%;
    padding: 0 5px;
    margin: 0;
  }

  .menu ul.list1 { margin-bottom: 0.3em; }

  h3 { font-size: 120%; }

  html { touch-action: manipulation; }

  .menu ul.list1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1px 4px;
    padding: 1px 0;
  }

  .menu ul.list1 li {
    display: block;
    padding: 0;
    margin: 0;
  }

  .menu ul.list1 li a {
    padding: 6px 8px;
    min-height: 36px;
    border-radius: 12px;
  }
}

/* 600px以下（header/menu まわり） ※同一内容の重複は統合済み */
@media screen and (max-width: 600px) {
  .header {
    padding-top: 20px;
    padding-bottom: 12px;
  }

  .header h3#top,
  .header h2 {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .header h3#top { line-height: 1.25; }
  .header h2 { line-height: 1.5; }

  .header h3#top small {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
  }
}

/* 768px以下：上メニューを薄くする（安定版） */
@media screen and (max-width: 768px) {

  .menu { padding: 4px 8px; }

  .menu .header { padding: 4px 0; }
  .menu .header h1 { margin: 0; }

  .menu .logo { max-width: 140px; }

  /* ▼ここからがズレ対策の本体 */
  .menu ul.list1 {
    list-style: none;          /* デフォルトリセット */
    margin: 0;                 /* Safari対策 */
    padding: 2px 10px;         /* 左右バランス固定 */
    box-sizing: border-box;    /* padding込みで中央安定 */

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: 2px 8px;              /* 行間 / 横間隔（好みで微調整OK） */
    text-align: center;
  }

  .menu ul.list1 li {
    margin: 0;
    padding: 0;
  }

  .menu ul.list1 li a {
    padding: 4px 6px;
    min-height: 30px;
    line-height: 1.2;
    font-size: 0.9em;
    border-radius: 12px;
  }
  /* ▲ここまでが安定化 */

  .work {
    margin-top: 120px;
  }
}


/* 360px以下（3ブロック→1ブロックに統合：順序維持） */
@media screen and (max-width: 360px) {
  .menu {
    position: static;
    height: auto;
  }

  .work { margin-top: 0; }

  .menu ul.list1 {
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    gap: 0px 2px;
  }
}
