* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  /* border: #007BFF 1px solid; */
}

/* スムーズなスクロール */
html {
  scroll-behavior: smooth;
}
:target {
  scroll-margin-top: 80px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  color: #313131;
  background-color: #FCFCFC;

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

a{
  color: #313131;
  transition: all 0.3s ease;
  text-decoration: none;
}


/*********************************
    ヘッダー
*********************************/
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background-color: #313131;
  z-index: 999;
}

.header-container{
  width: 95%;
  height: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;

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

.logo a{
  color: #FCFCFC;
}

.green{
  color: #06C755;
}

nav {
  position: relative;
}

/******** リンクボタン **********/
.link-button {
  position: relative;
  padding: 10px 50px;
  background-color: #06C755;
  color: #FCFCFC;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;

  @media screen and (max-width: 1100px) {
    right: 50px;
  }

  @media screen and (max-width: 768px) {
        position: fixed; /* 固定位置 */
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        display: block;
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        border-radius: 0;
    }
}

.link-button:hover{
  background-color: #05e060;
}

/******** ハンバーガーメニュー **********/
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  margin: 10px;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.menu-icon div {
  width: 100%;
  height: 3px;
  background-color: #06C755;
  transition: all 0.3s ease;
}

.menu-icon.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-icon.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* レスポンシブ */
@media (max-width: 1100px) {
  .menu-icon {
    display: flex;
  }

  .menu.show {
    display: flex;
  }
}

/******** メニュー **********/
.menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  position: fixed;
  top: 60px;
  right: 0;
  width: 20%;
  height: 100%;
  padding: 30px 1rem;
  gap: 1rem;
  border-left: #cccccc 1px solid;
  z-index: 1000;

  @media screen and (max-width: 1100px) {
    display: none;
    width: 30%;
    background-color: rgba(49, 49, 49, 0.8);
    
    border-left:none
  }

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

.menu li a {
  text-decoration: none;
  display: inline-block;
  border-bottom: #06C755 2px solid;

  @media screen and (max-width: 1100px) {
    color: #FCFCFC;
  }
}

.menu li a:hover{
  color: #06C755;
}


/*********************************
    main
*********************************/
.container {
  display: flex;
  width: 100%;
  margin-top: 60px;
}


/*********************************
    左カラム
*********************************/
.left {
  width: 40%;
  height: 100vh; /* 左カラムの高さを100vhに設定 */
  position: fixed; /* 左カラムを固定表示 */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #7494C0; /* 背景色を設定 */
  color: #FCFCFC;

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


/*********************************
    中央カラム
*********************************/
.center {
  width: 40%;
  margin-left: 40%; /* 左カラムの幅を考慮してマージンを設定 */

  @media screen and (max-width: 1100px) {
    width: 60%;
  }

  @media screen and (max-width: 768px) {
    width: 100%; /* 中央カラムを全幅に */
    margin-left: 0; /* マージンをリセット */
    margin-bottom: 50px;
  }
}

/******** メインビジュアル **********/
.mainvisual {
  width: 90%;
  text-align: center;
  margin: 30px auto 50px auto;
  padding: 2rem 10px;
  border: #06C755 2px solid;
  border-radius: 10px;

  @media screen and (max-width: 600px) {
    margin-top: 20px;
  }

  & svg{
    display: block;
    margin: 0 auto 0.5rem auto;
  }

  & h2{
    border-bottom: #06C755 1px solid;
    display: inline-block;
    padding-bottom: 0.5rem;
  }

  & p{
    margin: 1rem 0;
  }

  & dt{
    font-weight: 700;
  }
}

.external-link{
  color: #06C755;
  transition: all 0.3s ease;
  border-bottom: solid 1px #06C755;
}

.external-link::after{
  content: "";
  display: inline-block;
  background-image: url(/img/icon_external-link.svg);
  background-size: contain;
  width: 1rem;
  height: 1rem;
  margin-left: 1px;
}

.external-link:hover{
  color: #05e060;
  border-bottom: solid 1px #05e060;
}

/******** セクション共通 **********/
.sections section {
  width: 90%;
  margin: 0 auto 180px auto;
  height: auto;

  @media screen and (max-width: 1100px) {
    margin: 0 auto 120px auto;
  }
}

.sections section:last-child{
  margin-bottom: 50px;
}

/******** スタンプ **********/
.stamp-set-container {
  width: 100%;
}

/******** スタンプ-イメージ画像+説明 **********/
.column-container {
  display: flex;         /* 2カラムにする */
  gap: 10px;             /* 画像とテキストの間にスペースを追加 */
  margin-bottom: 20px;   /* スタンプリストとのスペース */
  padding-bottom: 10px;
  border-bottom: #cccccc 1px solid;
}

.stamp-set-image {
  width: 240px;
  height: 240px;
  object-fit: cover;

  @media screen and (max-width: 600px) {
    width: 150px;
    height: 150px;
  }
}

.stamp-set-info {
  display: flex;
  flex-direction: column;
}

.stamp-set-info h2{

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

/******** スタンプ-リスト **********/
/* #stampListContainer {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, auto);
  gap: 10px;
} */

.stampListContainer {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(8, auto);
  grid-gap: 10px;
}

.stamp-image {
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  cursor: pointer;
}

/******** ポップアップ **********/
.popup {
  display: none; /* 初期は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background-color: #7494C0;
  justify-content: center;
  align-items: center;
  z-index: 800;
  color: #FCFCFC;

  @media screen and (max-width: 768px) {
    width: 100%;
    background-color: rgba(116, 148, 192, 0.9);
  }
}

.popup-content {
  max-width: 90%;
  max-height: 80%;
}

.close {
  position: absolute;
  width: 50px;
  top: 150px;
  right: 10px;
  /* font-size: 30px; */
  cursor: pointer;
  display: none;
  opacity: 0.7;

  @media screen and (max-width: 768px) {
    display: block;
    top: 100px;
  }
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* font-size: 30px; */
  /* font-weight: 600; */
  /* color: #313131; */
  cursor: pointer;

  @media screen and (max-width: 1100px) {
    /* font-size: 20px; */
  }
}


#prev {
  /* text-align: center; */
  width: 50px;
  height: 50px;
  /* background-color: rgba(252, 252, 252, 0.8); */
  /* border-radius: 50%; */
  left: 50px;
  opacity: 0.7;

  @media screen and (max-width: 1100px) {
    left: 10px;
  }
}

#next {
  /* text-align: center; */
  width: 50px;
  height: 50px;
  /* background-color: rgba(252, 252, 252, 0.8); */
  /* border-radius: 50%; */
  right: 50px;
  opacity: 0.7;

  @media screen and (max-width: 1100px) {
    right: 10px;
  }
}


/******** フッター **********/
.footer {
  width: 100%;
  background-color: #313131;
  color: #FCFCFC;
  text-align: center;
  padding: 10px;

  @media screen and (max-width: 768px) {
    margin-bottom: 10px;
}

& img{
  margin-left: 5px;
  width: 20px;
  margin: 0 auto;
  transition: transform 0.3s ease; /* 1秒かけて拡大 */
}

& img:hover {
  transform: scale(1.3); /* 1.5倍に拡大 */
}
}



/*********************************
    404ページ
*********************************/
.container-404{
  width: 100%;
  max-width: 40%;
  margin: 0 auto;

  @media screen and (max-width: 1100px) {
    max-width: 100%;
}
}

.link-button-404-container{
  text-align: center;
}

.link-button-404 {
  padding: 10px 50px;
  background-color: #06C755;
  color: #FCFCFC;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  margin: 0 auto;
}

.link-button-404:hover{
  background-color: #05e060;
}


.footer-404{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #313131;
  color: #FCFCFC;
  text-align: center;
  padding: 10px;

& img{
  margin-left: 5px;
  width: 20px;
  margin: 0 auto;
  transition: transform 0.3s ease; /* 1秒かけて拡大 */
}

& img:hover {
  transform: scale(1.3); /* 1.5倍に拡大 */
}
}