@charset "utf-8";

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

:root {
  --page-space-inline: 1.6rem;
  --page-space-block: 2.5rem;
  --mincho:
    'Times New Roman', 'YuMincho', 'Hiragino Mincho ProN', 'Yu Mincho',
    'MS PMincho', serif;
}

@media screen and (max-width: 768px) {
  :root {
    --page-space-inline: 1.25rem;
    --page-space-block: 2rem;
  }
}

body {
  font-family:
    '游ゴシック体', YuGothic, 'ヒラギノ角ゴ ProN', 'ヒラギノ角ゴ Pro',
    'ＭＳ ゴシック', sans-serif;
  overflow: hidden auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  color: #4a3d2d;
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  line-height: 2;
  text-size-adjust: 100%;
}

ol,
ul,
ul ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 文字装飾 */
.red {
  color: #ff0000;
}

.green {
  color: #008000;
}

.keiko {
  color: #00ff00;
}

.pink {
  color: #ff00ff;
}

.cyan {
  color: #00ffff;
}

b {
  font-weight: 700;
}

.eng {
  font-size: 0.9em;
  letter-spacing: 0.15em;
}

.big {
  font-size: 2.5rem;
  background: #ffff00;
  color: #ff0000;
  padding: 0 4px;
}

.big2 {
  font-size: 2rem;
}

.small {
  font-size: 0.9em;
}

.underline {
  color: #00aa00;
  border-bottom: 2px dotted #00aa00;
}

.torikeshi {
  text-decoration: line-through;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

/* リンク */
a:not([class*='btn']) {
  color: #0000cc;
  text-decoration: underline;
}

a:visited:not([class*='btn']) {
  color: #551a8b;
}

a:hover:not([class*='btn']) {
  color: green;
}

h1 a {
  text-decoration: none;
}

.btn {
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  background: -webkit-linear-gradient(top, #fdfbfb 0%, #ebedee 100%);
  background: linear-gradient(to bottom, #fdfbfb 0%, #ebedee 100%);
  -webkit-box-shadow: inset 1px 1px 1px #fff;
  box-shadow: inset 1px 1px 1px #fff;
  transform: translateZ(0);
}

.btn:hover {
  background: -webkit-linear-gradient(bottom, #fdfbfb 0%, #ebedee 100%);
  background: linear-gradient(to top, #fdfbfb 0%, #ebedee 100%);
}

.btn-box {
  text-align: center;
}

.btn_gold {
  appearance: none;
  -webkit-appearance: none;
  transition: none;
  background: linear-gradient(180deg, #ffe066 0%, #d4a000 50%, #b8860b 100%);
  color: #4a2800;
  text-shadow: 1px 1px 0 #ffe066;
  border: 1px solid #777;
  box-shadow: 4px 4px 4px 0px rgba(0, 0, 0, 0.3);
  padding: 8px 20px;
  font-size: 1.4rem;
  font-family: inherit;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  margin: 0.5rem 0;
  display: inline-block;
  text-decoration: none;
}

.btn_gold:hover {
  background: linear-gradient(180deg, #ffec88 0%, #e0b000 50%, #c89a10 100%);
  box-shadow:
    1px 1px 0 #5a3e00,
    inset 0 1px 0 rgba(255, 255, 200, 0.6);
  transform: translate(2px, 2px);
}

.btn_gold:active {
  border-style: inset;
  transform: translate(3px, 3px);
  box-shadow: none;
}

p {
  margin-bottom: 1.2em;
}

.btn-social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  outline: 2px solid #3399ff;
  outline-offset: -4px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 0 rgba(0, 80, 160, 0.4),
    2px 2px 0 #0066cc,
    2px 2px 0 #003366;
  transition: 0.25s;
}

.btn-social-circle .social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  filter: drop-shadow(1px 1px 0 #ffffff);
}

.btn-social-circle:hover {
  transform: translateY(-6px) rotate(-5deg);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.9),
    2px 2px 0 #003366;
}

.btn-social-circle:active {
  transform: translate(4px, 4px) scale(0.92);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
}

.btn-social-circle--twitter {
  color: #00aaff;
  background-image: linear-gradient(#ccf5ff 0%, #66ddff 40%, #00aaff 100%);
}

.btn-social-circle--bsky {
  color: #0066ff;
  background-image: linear-gradient(#b3d9ff 0%, #66aaff 40%, #0066ff 100%);
}

.marquee {
  white-space: nowrap;
  display: grid;
  animation: marquee-alt 4s steps(30, end) infinite;
}

.marquee::before {
  content: '';
}

@keyframes marquee-alt {
  0%,
  100% {
    grid-template-columns: 1fr auto;
  }

  50% {
    grid-template-columns: 0fr auto;
  }
}

.marquee-box {
  margin-inline: auto;
  max-width: 300px;
  overflow: clip;
  font-size: 2rem;
}

/* PC用スタイル */
@media screen and (min-width: 769px) {
  .sp {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
}

.new-badge {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.1em 0.4em;
  font-size: 0.7em;
  font-weight: 700;
  color: #fff;
  background: #e74c3c;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.4;
  animation: blink-new 1.5s step-end infinite;
}

@keyframes blink-new {
  0%,
  80% {
    opacity: 1;
  }

  80.1%,
  100% {
    opacity: 0;
  }
}

.blink {
  animation: blinkAnime 1s infinite;
}

@keyframes blinkAnime {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ---------------------------------------------

  メニュー

--------------------------------------------- */
header {
  background: url('../images/bg-wood.webp') center fixed;
  background-position: center;
}

/* ========================
   Site Logo
   ======================== */
.site-logo {
  padding: 0;
  margin: -5px auto 0;
  line-height: 1;
  max-width: 200px;
}

.site-logo img {
  width: 100%;
}

.site-logo a {
  display: inline-block;
}

.site-logo a:hover,
.content a:hover:not(.btn) {
  opacity: 0.9;
  filter: opacity(0.9);
}

/* ========================
   Animation
   ======================== */
@keyframes sway {
  0%,
  50%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(1.2deg);
  }

  75% {
    transform: rotate(-1.2deg);
  }
}

.sway {
  animation: sway 2s ease-out 1;
}

/* ========================
   Menu Box and List
   ======================== */
.menu-box ul.menu-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 16px;
  line-height: 32px;
}

.menu-box ul.menu-list li a {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #4b3e2e;
  letter-spacing: 0.05em;
  text-align: left;
  position: relative;
  text-decoration: none;
  font-size: 16px;
  line-height: 32px;
  margin: 0;
  box-sizing: border-box;
}

.menu-title {
  /* display は上書きしない（iOS Safariでトグルが壊れるため） */
  cursor: pointer;
  font-size: 16px;
  line-height: 32px;
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
  /* デフォルトの▶マーカー非表示 */
  box-sizing: border-box;
}

.menu-label-text {
  display: block;
  text-align: center;
  width: 100%;
  font-size: 16px;
  line-height: 32px;
}

.menu-group button {
  margin: 0;
  padding: 0;
}

/* ========================
   PC Styles
   ======================== */
@media screen and (min-width: 768px) {
  header {
    flex: 0 0 250px;
    position: relative;
    width: 100%;
    border-right: 4px solid #d0d0d0;
    box-shadow: 2px 0 0 0 #000;
    z-index: 999;
  }

  .menu {
    position: fixed;
    width: 70%;
    max-width: 250px;
    min-width: 150px;
    height: 100vh;
    overflow-y: auto;
  }

  .menu-box ul.menu-list {
    padding: 0 10px;
  }

  .menu-box ul.menu-list > li {
    margin-bottom: 16px;
  }

  .menu-list li a {
    position: relative;
    padding-left: 24px;
    display: inline-block;
  }

  .menu-list li a::before {
    content: '⚫︎';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--marker-color, transparent);
  }

  .menu-list li a::after {
    display: block;
    font-size: 12px;
    color: #888;
    content: attr(data-sub);
  }

  .menu-label-text {
    font-weight: 700;
  }

  .menu-title {
    cursor: default;
    pointer-events: none;
  }
}

/* ========================
   Smartphone Styles
   ======================== */
@media (max-width: 768px) {
  header {
    border-bottom: 4px solid #d0d0d0;
    box-shadow: 0px 2px 0px 0 #000;
    width: 100%;
    background: url('../images/bg-wood.webp') center;
    background-attachment: scroll;
  }

  .container {
    flex-direction: column;
  }

  .site-logo {
    height: auto;
  }

  .menu {
    width: 100%;
  }

  .menu-box {
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
  }

  .menu-box ul.menu-list {
    flex-direction: row;
    width: max-content;
    overflow: visible;
  }

  .menu-box ul.menu-list li {
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    overflow: visible;
  }

  .menu-box ul.menu-list::before,
  .menu-box ul.menu-list::after {
    content: '';
    flex: 0 0 10px;
  }

  .menu-group {
    position: relative;
  }

  .menu-box .menu-title {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
    position: relative;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 14px;
  }

  .toggle {
    display: none;
  }

  .toggle.is-open {
    display: block;
  }

  .menu-box ul.menu-list > li {
    color: #fff;
    user-select: none;
    background: linear-gradient(
      #0d0 0%,
      #008100 50%,
      #005b00 51%,
      #003900 100%
    );
    border: solid 1px #003900;
    box-shadow:
      0 1px 2px #606060,
      0 0 2px #fff inset;
    text-shadow:
      3px 0 3px #003900,
      0 3px 3px #003900,
      -3px 0 3px #003900,
      0 -3px 3px #003900 !important;
    padding: 0;
  }

  .menu-box ul.menu-list > li > a {
    display: block;
    padding: 6px 14px;
  }

  .menu-box ul.menu-list li a {
    color: #fff;
  }

  .menu-box ul.menu-list > li:has(.toggle.is-open),
  .menu-box ul.menu-list > li:active {
    background: linear-gradient(
      #003900 0%,
      #005b00 50%,
      #008100 51%,
      #005b00 100%
    );
    box-shadow:
      0 1px 2px #606060,
      2px 2px 4px rgba(0, 0, 0, 0.6) inset,
      0 0 2px rgba(0, 0, 0, 0.4) inset;
  }

  .menu-group .toggle.is-open {
    background: linear-gradient(#f0fff0, #ccffcc);
    padding: 12px 8px;
    border-top: 3px solid #003900;
    border-bottom: 3px solid #003900;
    position: fixed;
    top: 0;
    /* JSで上書きされる */
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow:
      0 6px 0 #003900,
      0 10px 15px rgba(0, 0, 0, 0.3);
  }

  .menu-group .toggle.is-open li a {
    display: block;
    padding: 8px;
    text-shadow: none;
    color: #003900;
  }

  .menu-label-text {
    text-shadow:
      3px 0 3px #003900,
      0 3px 3px #003900,
      -3px 0 3px #003900,
      0 -3px 3px #003900;
  }
}

/* --- コンテンツ --- */
.content {
  flex: 1;
  overflow-x: hidden;
}

article {
  max-width: 1000px;
  width: 100%;
  padding: var(--page-space-inline);
  margin: 0 auto;
}

h2 {
  display: inline-block;
  line-height: 1;
}

.parent {
  display: grid;
  justify-items: center;
  /* inline-block の要素を中央寄せ */
}

h2.shadow {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: var(--page-space-block);
  color: #00ff00;
  letter-spacing: 0.2em;
  text-shadow:
    1px 1px 0 #004400,
    2px 2px 0 #004400,
    0 0 3px #00ff00;
  -webkit-font-smoothing: none;
}

article h2,
article h3 {
  text-align: center;
}

.top article h2 {
  margin-top: 0;
}

article h3 {
  margin-bottom: 10px;
}

.border-double {
  display: flex;
  justify-content: center;
}

.border-double h3 {
  position: relative;
  padding: 1rem 2rem;
  border: 4px solid #000;
}

.border-double h3:before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  content: '';
  border: 2px solid #000;
}

section {
  margin-bottom: 3rem;
}

.box-body {
  max-width: 1000px;
  margin: 0 auto 3rem;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  box-shadow: inset 0 0 0 1px #fff;
}

.box-body {
  border: 10px ridge green;
  width: 100%;
}

.box-body,
.border-table {
  background: #fff;
}

.toggle-content {
  display: none;
  margin-left: 1em;
}

.toggle-btn {
  cursor: pointer;
  color: blue;
  text-decoration: underline;
}

.container {
  min-height: 100vh;
  display: flex;
  background: #fffaf5;
}

.content-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-x: hidden;
  padding: var(--page-space-block) var(--page-space-inline)
    calc(var(--page-space-block) * 1.25);
  gap: var(--page-space-block);
}

/* ---------------------------------------------

  テーブル

--------------------------------------------- */
table {
  width: 100%;
  table-layout: fixed;
}

table.border-table {
  border: 10px ridge green;
}

th,
td {
  text-align: left;
  box-sizing: border-box;
  padding: 8px;
}

th {
  font-weight: 700;
  text-align: center;
  color: #000;
  font-weight: bold;
}

td p,
td ul {
  margin-bottom: var(--page-space-block);
}

.border-table tr:nth-child(even) {
  background: #ffffc4;
}

.border-table tr:nth-child(odd) {
  background: #ffffff;
}

@media screen and (max-width: 768px) {
  table {
    border-collapse: collapse;
    border-spacing: 0;
    display: block;
  }

  tbody {
    display: block;
  }

  tr {
    display: block;
  }

  .border-table tr {
    border-bottom: 2px solid #006400;
  }

  .border-table tbody:last-child tr:last-child {
    border-bottom: none;
  }

  th {
    background: none;
    display: block;
    width: 100%;
  }

  td {
    display: block;
    width: 100%;
  }

  .last td:last-child {
    border-bottom: solid 1px #ccc;
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  table.border-table th,
  table.border-table td {
    display: table-cell;
    border: 2px inset #006400;
  }

  tr th:first-child {
    width: 250px;
  }
}

/* ポップアップ */
.toast {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 1.2rem 2rem;
  border-radius: 2rem;
  font-size: 1.4rem;
  opacity: 0.9;
  z-index: 9999;
  box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
}

/* ---------------------------------------------

  フッター

--------------------------------------------- */
footer {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  font-size: 13px;
}

/* ---------------------------------------------

  youtube

--------------------------------------------- */
/* ---------------------------------------------

  警備

--------------------------------------------- */
.guard-wrapper {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  animation: moveGuardImg 5s ease-out forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guard-img {
  width: 120px;
  height: auto;
}

.guard-text {
  font-size: 16px;
  background: #fff3b0;
  border: 2px solid #ffcb05;
  border-radius: 8px;
  padding: 5px 10px;
  color: #7a4e00;
  font-weight: bold;
  box-shadow: 2px 2px 5px rgb(0 0 0 / 10%);
}

@keyframes moveGuardImg {
  0% {
    opacity: 1;
    transform: translateX(350px);
  }

  70% {
    transform: translateX(150px);
  }

  100% {
    opacity: 0;
    transform: translateX(50px);
  }
}

.guard {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff0f5;
  border: 2px solid #f08080;
  padding: 10px;
  border-radius: 12px;
  z-index: 9999;
  box-shadow: 2px 2px 10px rgb(0 0 0 / 20%);
  font-weight: bold;
}

#link th a {
  display: block;
  line-height: 1;
}

/* ========================
   Search Form
   ======================== */
.search-form input {
  padding: 5px 15px;
  border: none;
  box-sizing: border-box;
  background-color: #f2f2f2;
  font-size: 1em;
  outline: none;
}

.search-form input::placeholder {
  color: #777777;
}

/* ========================
   リンク
   ======================== */
.copy-input {
  width: 100%;
  box-sizing: border-box;
}

.link_table {
  max-width: 500px;
  margin: 0 auto;
}

.left p {
  text-align: left;
  display: inline-block;
}

/* 回転 */
.vertical-spin {
  animation: vertical-spin 2s linear infinite;
  display: inline-block;
}

@keyframes vertical-spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.help_area {
  position: fixed;
  right: 10%;
  bottom: 0;
}

.help_area a {
  position: relative;
  width: 100%;
  max-width: 150px;
  display: block;
}

.tooltip {
  position: absolute;
  background-color: #fffcdb;
  color: #000;
  border-radius: 0.3em;
  padding: 0;
  margin: 0.3em 0 0 0;
  display: none;
  top: -150px;
  left: 40%;
  transform: translateX(-50%);
  animation-name: fade-in;
  animation-duration: 0.5s;
  border: 1px solid #000;
}

.tooltip::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 20px 10px 0 10px;
  border-color: #000000 transparent transparent;
  translate: -50% 100%;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 17.8px 8.9px 0 8.9px;
  border-color: #fffcdb transparent transparent;
  translate: -50% 100%;
}

.tooltip_inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 20px 15px;
  flex-wrap: nowrap;
}

.tooltip_inner p {
  margin: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

dl.yoko {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5em 1em;
}

a img {
  display: block;
  margin: 0 auto;
}

.tags-box {
  margin-bottom: var(--page-space-block);
}

.random-hr {
  height: 40px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  margin: 2em 0;
}

.h-grad {
  text-align: center;
  margin: 1rem 0 2rem;
  position: relative;
  padding: 0.2em 0.5em;
  background: linear-gradient(to right, #9dc3e6, transparent);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.h-icon {
  text-align: center;
  font-size: 2em;
  color: green;
  font-weight: 700;
}

.h-icon::before {
  content: url(../images/hhl.gif);
  vertical-align: middle;
}

.h-icon::after {
  content: url(../images/hhr.gif);
  vertical-align: middle;
}

/* ==== SVG アイコン ==== */
.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  display: inline-block;
}

/* ==== サイトマップ ==== */
.sitemap-list {
  list-style: disc;
  padding-left: 2em;
  margin-bottom: 1.6rem;
  line-height: 2;
}

.sitemap-desc {
  color: #555;
  font-size: 0.9em;
}

.makimono-area svg {
  overflow: visible;
}

.h2soto h2 {
  display: block;
  width: 100%;
  padding: 1em;
  text-align: center;
}

.makimono-area {
  position: relative;
  isolation: isolate;
  width: 80%;
  margin: 0 auto;
  font-family: var(--mincho);
  font-weight: 700;
  margin-bottom: var(--page-space-block);
}

.maesvg,
.usirosvg {
  position: absolute;
  top: 0;
}

.usirosvg {
  z-index: -1;
}
.hatu,
.h2soto h2 {
  transform: translateX(-100%);
}

.makimono-area.is-animated .hatu,
.makimono-area.is-animated .h2soto h2 {
  animation: idou 2s ease-in-out forwards;
}

@keyframes idou {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
.h2soto {
  overflow: hidden;
}
.mikaesi {
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.makimono-area.is-animated .mikaesi {
  animation: kakudai 2s ease-in-out forwards;
}

@keyframes kakudai {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
