* {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

a{
  text-decoration: none;
}

body {
  width: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  background-color: #fcfcfc;
  color: #5D5765;

  @media screen and (max-width: 768px){
    font-size: 0.875rem;
}
}

img{
  /* 画像の下の余白を削除する */
  vertical-align:top;
}

h2{
  font-size: 3rem;
  font-family: "Montserrat Underline", sans-serif;
  font-weight: 400;
  margin-bottom: 1rem;
  
  @media screen and (max-width: 768px){
    font-size: 2rem;
}
}

.container{
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header{
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  
  height: max-content;
  background-color:  rgba(252, 252, 252,0.5);
}
.header-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  margin: 0 auto;
  width: 95%;
  max-width: 1400px;

  & .logo{
    font-size: 1.5rem;
    font-family: "Montserrat Underline", sans-serif;
    font-weight: 400;
  }

  & img{
    width: 30px;
    height: auto;
    transition: transform 0.3s;

    @media screen and (max-width: 768px){
    width: 20px;
}
  }
}

.header-container a:hover img {
  transform: scale(1.2);
}

#mygallery{
  margin: 60px 0;
}

#mygallery a {
  display: block;          /* 枠で囲むためにaタグをブロックに */
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

#mygallery img {
  transition: transform 0.6s;
}

#mygallery a:hover img {
  transform: scale(1.1);
}

/* タッチデバイスではホバー無効化 */
@media (hover: none) and (pointer: coarse) {
  #mygallery a:hover img {
    transform: none;
  }
}

/*********************************
    モーダル（拡大表示）
*********************************/
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  /* background: rgba(93, 87, 101,0.85); */
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain; /* 縦横比を保つ */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/******** 閉じるボタン  **********/
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fcfcfc;
  cursor: pointer;
  user-select: none;
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/******** 矢印ボタン  **********/
.arrow {
  position: absolute;
  top: 50%;
  font-size: 48px;
  color: #fcfcfc;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 10px;
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
  opacity: 0.7;
}

.arrow.left { 
  left: 30px;

  @media (max-width: 600px) {
  left: 20px;
}

}
.arrow.right { 
  right: 30px;

  @media (max-width: 600px) {
  right: 20px;
}
}

.arrow:hover, .close:hover { 
  color: #dddddd;
 }

 @media (hover: none) and (pointer: coarse) {
  .arrow:hover, .close:hover {
    color: #fcfcfc;
  }
}

/******** スマホ対応  **********/
@media (max-width: 600px) {
  .arrow { font-size: 36px; padding: 5px; }
  .close { font-size: 28px; top: 15px; right: 20px; }
}


/*********************************
    フッター
*********************************/
footer{
  width: 95%;
  margin: auto auto 0;
  text-align: center;
  font-size: 0.875rem;
  padding: 10px 0;

  & p{
    padding-bottom: 1rem;
  }

  & .copy{
    font-family: "Montserrat Underline", sans-serif;
  }
}


/*********************************
    404
*********************************/
.error{
  margin: 200px 0;
  text-align: center;

}

/*********************************
    リンクボタン
*********************************/
.button003 a {
    background: #5D5765;
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 50px auto;
    max-width: 260px;
    padding: 10px 25px;
    color: #fcfcfc;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.button003 a:hover {
    background: #fcfcfc;
    box-shadow: 0 0 10px rgb(221, 221, 221);
    color: #5D5765;
}