@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; }

.modal-trigger:hover {
  opacity: 0.75; }

.modal-doc {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: left; }
  .modal-doc > figure {
    width: 30%; }
  .modal-doc > div {
    width: 66.666%; }
    .modal-doc > div h6 {
      font-size: 1.3rem;
      margin: 0px; }
    .modal-doc > div p {
      font-size: 1.06rem;
      line-height: 1.5;
      margin: 0.5rem 0; }
      .modal-doc > div p.-ttl {
        font-weight: 300;
        margin-bottom: 1.5rem; }
  @media screen and (max-width: 560px) {
    .modal-doc {
      display: block; }
      .modal-doc > figure {
        float: left;
        width: 40%;
        margin: 0 1rem 1rem 0; }
      .modal-doc > div {
        width: 100%; }
        .modal-doc > div p {
          font-size: 0.96rem; }
          .modal-doc > div p.-ttl {
            font-size: 1rem; } }
