﻿@charset "UTF-8";

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.design-line{
    margin-top:;
   
}
.main{
   max-width: 80vw; /* 最大幅を80vwに設定 */  
   margin:10px auto; /* 水平方向の中央寄せ */   
   background-color:;
}
.line_decoration{
   height:2vh;
   background:linear-gradient(#444,#fff);
   border-top:#444;
   border-bottom:#fff;
}  

.method{   
   margin:auto;
   padding:10px 30px; 
   width:95%;
  /* background-color:#f0f6da;*/
   background-color:#fff;   
   border: 2px solid #eee;
   border-radius: 10px;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.museum_style{
  background-color:#a3d6cc;
  border:2px solid #54917f;
  padding-top:2vh;
  padding-bottom:2vh;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.method h2{
   font-size:1.6em;
}
.method p{
   font-size:1.4em;
   line-height:1.8;
}
@media (max-width: 768px) {
.method h2{
   font-size:1.1em;
}
.method p{
   font-size:0.9em;
   line-height:1.2;
}
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* グリッドアイテム間の隙間 */
    margin: 20px; /* 上下左右に余白を設ける */
    padding: 10px;
}

.grid-item {
    position: relative;
    display: flex;
    flex-direction: column;
    lign-items: flex-start;
    background-color: #f0f0f0;
    border: 2px solid #888;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.grid-item img {
    width: 100%;
    height: auto;
    cursor: pointer; /* クリック可能であることを示す */
    max-width: 90%;
    object-fit: contain;
    margin-left:auto;
    margin-right:auto;
    padding:10px;    
}

.caption1 {
    padding: 5px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 90%;    
    box-sizing: border-box;
    margin-left:auto;
    margin-right:auto;
}

.caption2 {
    padding: 2px;
    text-align: center;
    background: #222;
    color: #eee;
    width: 80%;
    font-size:1.1rem;
    font-weight:bold;
    box-sizing: border-box;
    margin-left:auto;
    margin-right:auto;
}

/* モーダルのスタイル */
.modal {
    display: none; /* デフォルトは非表示 */
    position: fixed; /* 固定位置 */
    z-index: 1; /* 最前面に表示 */
    padding-top: 10px; /* 上部に余白を追加 */
    left: 0;
    top: 0;
    width: 100%; /* 全画面 */
    height: 100%; /* 全画面 */
    overflow: auto; /* スクロール可能 */
    background-color: rgb(0, 0, 0); /* 背景色 */
    background-color: rgba(0, 0, 0, 0.9); /* 背景色の透明度 */
}

.modal-content {
    margin: auto;
    display: block;
    width: 65%; /* 画面幅の90%を最大幅に設定 */
    max-width: 90%; /* 画面高さの90%を最大高さに設定 */
    height:auto;
}
@media (max-width: 768px) {
.modal-content {
    margin: auto;
    display: block;
    width: 90%; /* 画面幅の90%を最大幅に設定 */
    max-width: 95%; /* 画面高さの90%を最大高さに設定 */
    height:auto;
}
}
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0);}
    to {transform: scale(1);}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* グリッドアイテム間の隙間 */
    }
    .main{
      max-width: 450px; /* 最大幅を1200pxに設定 */
      margin: 0 auto; /* 水平方向の中央寄せ */
   }

.grid-item {
    position: relative;
    display: flex;
    flex-direction: column;
    lign-items: flex-start;
    background-color: #f0f0f0;
    border: 2px solid #888;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.grid-item img {
    width: 100%;
    height: auto;
    cursor: pointer; /* クリック可能であることを示す */
    max-width: 100%;
    object-fit: contain;
    margin-left:auto;
    margin-right:auto;
    padding:5px;    
}

.caption1 {
    padding: 3px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size:0.6rem;
    width: 90%;    
    box-sizing: border-box;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:5px;
}

.caption2 {
    padding: 2px;
    text-align: center;
    background: #222;
    color: #eee;
    width: 90%;
    font-size:0.6rem;
    font-weight:bold;
    box-sizing: border-box;
    margin-left:auto;
    margin-right:auto;
    margin-top:5px;
}

    .method{
      margin:auto;
      padding:10px; 
      width:80%;
      font-size:1.0em;
   }
.design-line{
    margin-top:10px;
   
}
}
 .trm {
     resize:;
     width: 800px;
     height: 1800px;
     background-color: #fff;
     margin:25px;
     font-size: 0.9rem;
     border:solid 1px;
     } 

    .form-position{
     padding-left:70px;
     padding-top:20px;
     font-size:2.0rem;
     text-align:center;     
       }
.no-download {
            -webkit-user-drag: none;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
