@charset "UTF-8";
body {
  background-color: #EEECE8;
  font-family: "Kiwi Maru", serif;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

button {
  border: none;
}

a {
  text-decoration: none;
  color: #4B4644;
}

h1, section {
  margin: 0;
}

#topimage {
  height: 700px;
  background-color: #d0cccc;
  overflow: hidden;
  position: relative;
}

#logo {
  position: absolute;
  top: 50%;
  margin: auto 0;
  z-index: 5;
  width: 300px;
  left: 50%;
  transform: translate(-50%, -50%);
}
#logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;
  height: 100vh;
  overflow: hidden;
  background: #EEECE8;
}
.hero-grid img {
  width: 160px;
  margin: 0 auto;
  margin: 40px 0;
}

.column {
  display: flex;
  flex-direction: column;
}

@keyframes scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-50% - 8px));
  }
}
@keyframes scroll-down {
  0% {
    transform: translateY(calc(-50% - 8px));
  }
  100% {
    transform: translateY(0);
  }
}
.scroll-up {
  animation: scroll-up 20s linear infinite;
}

.scroll-down {
  animation: scroll-down 20s linear infinite;
}

#gheader {
  display: flex;
  justify-content: right;
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 10;
  position: fixed;
}

#gheader nav {
  background-color: #F8F8F8;
  padding: 15px 80px;
  border-radius: 80px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#gheader ul {
  display: flex;
  gap: 60px;
}

#gheader li {
  color: #4B4644;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

/* アニメーション */
#gheader li {
  transition: all 0.2s ease;
  cursor: pointer;
}

#gheader li:hover {
  opacity: 0.6;
  transform: translateY(-2px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

/* ハンバーガーアイコン＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
#nav_check {
  display: none !important;
}

#nav_button, #nav_back {
  display: none;
}

@media (max-width: 750px) {
  #gheader nav {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
  #nav_button {
    display: block;
    position: fixed;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: #F8F8F8;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    cursor: pointer;
  }
  #nav_button span, #nav_button span::before, #nav_button span::after {
    content: "";
    display: block;
    height: 2px;
    width: 25px;
    background: #E63717;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
  }
  #nav_button span::before {
    top: -8px;
  }
  #nav_button span::after {
    top: 8px;
  }
  #gheader ul {
    display: block; /* 横並び解除 */
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #F8F8F8;
    padding: 100px 40px;
    transition: 0.5s;
    z-index: 90;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    gap: 0;
  }
  #gheader ul li {
    margin-bottom: 30px;
  }
  #nav_check:checked ~ ul {
    right: 0;
  }
  #nav_check:checked ~ #nav_button span {
    background: transparent;
  }
  #nav_check:checked ~ #nav_button span::before {
    transform: rotate(45deg);
    top: 0;
  }
  #nav_check:checked ~ #nav_button span::after {
    transform: rotate(-45deg);
    top: 0;
  }
}
#about {
  background-color: #E63717;
  color: #EEECE8;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 0;
  background-image: url("../images/about-bottom.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  padding-bottom: 150px;
  background-position: center bottom -50px;
}

.about-top-icon {
  width: 50px;
  height: auto;
  margin-bottom: 20px;
  margin: 0 auto;
}

.title {
  font-size: 1.8rem;
  margin: 20px 0;
  letter-spacing: 0.1em;
}

.about-text {
  font-size: 1rem;
  line-height: 170%;
  padding: 0 20px;
}

.zukan-grid {
  display: grid;
}

#zukan {
  padding: 80px 20px;
  text-align: center;
  margin: 0 auto;
}

.title_black {
  font-size: 2rem;
  color: var(--font-color);
  margin-bottom: 50px;
  letter-spacing: 0.2em;
  font-weight: normal;
}

.filter-nav ul {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.filter-nav .btn {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 10px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
  color: #E63717;
  border: solid 1px #E63717;
  font-family: "Kiwi Maru", serif;
}

.filter-nav .btn:hover,
.filter-nav .btn.active {
  background-color: #E63717;
  color: #EEECE8;
}

.zukan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 600px;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .zukan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .filter-nav .btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
}
.zukan-item {
  max-width: 130px;
}

.zukan-btn {
  width: 100%;
  padding: 0;
  transition: transform 0.3s;
  background: transparent;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.zukan-btn:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.zukan-btn img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

/* --- モーダルの土台 --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #F8F8F8;
  width: 90%;
  max-width: 600px;
  padding: 60px;
  border-radius: 100px;
  position: relative;
  animation: fadeIn 0.5s ease;
}

.modal-content h2 {
  left: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-flex {
  display: flex;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.modal-flex img {
  width: 40%;
  height: auto;
  border-radius: 10px;
}

.tag-box {
  background: #FAF8EC;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 8px;
  margin: 40px 0;
  font-size: 0.9rem;
  color: #E63717;
  text-align: left;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ナビゲーションボタン共通 */
.nav-btn {
  padding: 10px 30px;
  border-radius: 30px;
  border: 1px solid #E63717;
  background: #F8F8F8;
  color: #E63717;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  width: 160px;
}

.nav-btn.next-btn {
  background: #E63717;
  color: #F8F8F8;
  margin-left: 40px;
}

.nav-btn:hover {
  opacity: 0.8;
}

@media (max-width: 750px) {
  .filter-nav {
    max-width: 300px;
    margin: 0 auto;
  }
}
@media (max-width: 750px) and (max-width: 750px) {
  .zukan-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 10px;
  }
  .zukan-item {
    margin: 0 auto;
  }
}
@media (max-width: 750px) {
  #gheader nav {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
}
@media (max-width: 750px) {
  /* --- モーダルのスマホ対応 --- */
  .modal-content {
    border-radius: 50px;
  }
  .modal-flex {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .modal-flex img {
    width: 70%;
    height: auto;
  }
  .modal-text {
    width: 100%;
    text-align: left;
  }
  .tag-box {
    margin: 20px 0; /* 上下の余白を調整 */
  }
  .modal-footer {
    display: flex;
    flex-direction: column; /* ボタンも縦並びにする場合 */
    gap: 10px;
    align-items: center;
  }
  .nav-btn {
    width: 100%; /* ボタンを横いっぱいに */
    margin-left: 0 !important; /* 次へボタンの左マージンを解除 */
  }
}
#history {
  background-color: #FAF8EC;
  padding: 100px 50px;
  text-align: center;
}

#history_textimg {
  width: 100px;
  height: 50px;
  background-image: url("../images/logo-icon-red.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 50% auto;
  margin: 40px auto;
}

#gfooter {
  background-color: #E63717;
  color: #EEECE8;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: o auto;
}/*# sourceMappingURL=style.css.map */