@charset "UTF-8";
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center; }

.modal-content {
  position: relative;
  background-color: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center; }
  @media screen and (max-width: 560px) {
    .modal-content {
      width: 94%; } }

/* モーダル中のコンテンツ切替 */
.modal-item {
  display: none; }

.modal-item.active {
  display: block; }

/* 閉じるボタン（右上固定） */
.close-icon {
  position: absolute;
  top: 0.8em;
  right: 0.8em;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.2em;
  color: #666; }

.close-icon:hover {
  color: #000; }

/* 次・前ボタン（中央下） */
.modal-buttons {
  margin-top: 1.5em;
  display: flex;
  justify-content: center;
  gap: 2em; }

.modal-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  transition: color 0.2s, transform 0.2s; }

.modal-buttons button:hover {
  color: #007bff;
  transform: scale(1.2); }

.modal-buttons svg {
  width: 32px;
  height: 32px; }

.modal-trigger {
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
  cursor: pointer;
  display: inline-block; }

.modal-trigger:hover {
  opacity: 0.75; }

.modal-doc {
  text-align: left; }
  .modal-doc > div h6 {
    font-size: 1.5rem;
    margin: 0px;
    border-bottom: 1px solid #333;
    margin-bottom: 1rem;
    padding-bottom: 1rem; }
  .modal-doc > div p {
    font-size: 1.06rem;
    line-height: 1.5;
    margin: 1rem 0; }
    .modal-doc > div p.-ttl {
      font-weight: 300;
      margin-bottom: 1.5rem; }
  .modal-doc .s20 {
    width: 100px;
    vertical-align: middle;
    margin-right: 1rem; }
  @media screen and (max-width: 560px) {
    .modal-doc > div h6 {
      font-size: 1.3rem; }
    .modal-doc .s20 {
      width: 60px; } }
