body{
    background-color: beige;
}

h4{
    text-align:center;
}
div.container{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    background-color: white;
}
.item1{
    float: left;
    width:20%;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    /*border: solid 1px #999999;*/
    padding: 0em;
    font-size: middle;
    line-height: 1em;
    height:400px;
}
.item2{
    float: left;
    width: 80%;
    margin-top: 0%;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
    font-size: middle;
    max-width: 100%;
    height: auto;
}
.photobox1, .photobox2{
    width: 40vw;
    margin: 5px;
}
.back{
    text-align: center;
    margin: auto;
}
div.textcontent{
    margin: auto;
    width: 80%;
    background-color: white;
    
}
div.textcontent h3{
    border-left: solid 10px #b866c5;
}
div.container_box{
    width: 80%;
    margin: auto;
    /*display: flex;*/
    border: solid 1px #999;
    background-color: white;
    align-items: center;
}
div.chart{
    float:left;
    width: 50%;
    margin: auto;
    /*padding: 1em;*/
    background-color: white;
}
div.title{
    width: 80%;
    margin: auto;
    text-align: center;
    font-size:2em;
    font-weight: bold;
    /*background-color: white;*/
    color: #00BCD4;
    text-shadow: 2px 2px #fff, 5px 5px rgba(0, 188, 212, 0.4);
}
div.img_c50{
    text-align: center;

}
div.all_map{
    width: 80%;
    height:900px;
    margin: auto;
    border:solid 1px #999;
}
table#id_table{
    width:80%;
    margin: auto;
    background-color: white;
    border: #999;
}

#map{
    z-index: 0;
}

div.container2{
    width: 80%;
    margin: auto;
    display: grid;
    gap: 5px;
    background-color: white;
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: 250px 100px auto;
}

  
.item{
    background-color: rgb(247, 224, 181);
    width: 100%;
    font-size: small;
    text-align: center;
}
.rocktype{
    background-color: rgb(247, 224, 181);
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}
.Fe-Mg-NK{
    background-color: rgb(247, 224, 181);
    grid-row: 2 / 3;
    grid-column: 1 /2;
}
.salic{
    background-color: rgb(247, 224, 181);
    grid-row: 1 / 2;
    grid-column: 2 /3;
}
.femic{
    background-color: rgb(247, 224, 181);
    grid-row: 1 / 3;
    grid-column: 3 /4;
}
.or-ab-an{
    background-color: rgb(247, 224, 181);
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}
.info{
    background-color: rgb(247, 224, 181);
    grid-row: 3/4;
    grid-column: 1/4;
}
@media (max-width: 600px){
    .container2 {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
    .rocktype,
    .Fe-Mg-NK,
    .salic,
    .femic,
    .or-ab-an,
    .info {
      grid-column: 1;
      grid-row: auto;
    }
  }

div.map{
    width: 60%;
    height: 500px;
    margin: auto;
    border:solid 1px #999;
}
#id{
    font-size: middle;
    background-color: white;
    /*border:solid 1px;*/
}
#id td{
    padding-left: 20px;
    padding-right: 20px;
}

.icon-red { /* icon-redは最初に指定したクラス名 */
    filter: hue-rotate(150deg);
  }

#footer{
    color: black;
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
}

p.caption_text{
    width: 50%;
    margin: auto;
    font-size: smaller;
}

details {
    width: 100%;
    /*margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    border-color: #b866c5;
    margin-bottom: 32px;*/
    
    --arrow-size: 18px;
    
}
details summary{
    position: relative;
    display: block;
    font-weight: 700;
    margin-top: 20px;
    background-color:#b866c5;
    cursor: pointer;
    color: white;
    padding: 0.5em calc(var(--arrow-size) + 3em) 0.5em 3.5em;
    font-size: large;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::before{
    position: absolute;
    top: 1em;
    left: 1em;
}

details summary::after {
    content:"";
    position: absolute;
    top: 0;
    right: 1.5em;
    bottom: 0;
    display: block;
    width: 18px;
    height: calc(var(--arrow-size) * 0.6);
    margin: auto 5% auto 90%;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    background: #ffffff;
    clip-path: polygon(100% 13%, 50% 100%, 0 13%, 8% 0, 50% 73%, 92% 0);
    /*color: #ff0000;*/
    /*aspect-ratio: 1/0.6;*/
    /* ※追記 Windows版Chrome124にてaspect-ratioを指定した要素と、position: absoluteの位置調整の組み合わせに不具合が発生したため、height値をcalcの計算に切り替え */    
  }

  details[open] summary::after {
    transform: rotate(180deg);
  }

  details .inner {
    position: relative;
    padding: 1.5em 1.5em 1.5em 1.5em;
    /*background: #eff4f8;*/
  }
  
  details .inner::before {
    content:"";
    position: absolute;
    top: 1em;
    left: 1em;
    font-weight: 700;
  }

  /*ポップアップウインドウ用*/

/*css only popup from https://777-webdesigner.net/portfolio2/264/*/
.tmb {
    width: 50%;
    /*margin: auto;*/
    position: relative;
    margin: 0px auto 0px auto;
  }
  .tmb_img {
    width: 100%;
    /*height: auto;*/
    margin: 0px auto 0px auto;
  }
  .tmb_img:hover {
    cursor: pointer;
  }
  .popup {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(0);
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s, transform 0s 0.3s;
  }
  .popup__btn {
    display: block;
    z-index: 13;
    position: absolute;
    top: 1vh;
    right: 1vh;
    width: 5vh;
    height: 5vh;
    cursor: pointer;
  }
  .popup__btn::before,
  .popup__btn::after {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    background-color: #fff;
    content: '';
  }
  .popup__btn::before {
    transform: rotate(45deg);
  }
  .popup__btn::after {
    transform: rotate(-45deg);
  }
  .popup__btnarea {
    z-index: 12;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .popup__img {
    z-index: 11;
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
  }
  .popup__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  input[type="checkbox"] {
    display: none;
  }
  input[type="checkbox"]:checked ~ .popup {
    transform: scale(1);
    opacity: 1;
    transition: opacity 0.3s;
  }
