@charset "utf-8";

/*#####################
# Common
#####################*/

body {
  width: 100%;
  max-width: clamp(320px, 1200px);
  margin: auto; /* より良いエクスペリエンスのための追加分 */
  font-size: 1.25rem;
  color: #444;
  background-color: #fff;
  font-family: "Cormorant Garamond", serif;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p {
  padding-left: 1.5em;
  padding-right: 1.5em;
  line-height: 1.5em;
  font-weight: 300;
  text-align: center;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

main {
  /* fadeInAnimation */
  animation: fadeInAnimation ease 1s;
}

/*#####################
# Mobile - Default
#####################*/

.header-wrapper {
  width: 100%;
  /* fadeInAnimation */
  animation: fadeInAnimation ease 2s;
}

/* header */
.logo-wrapper {
  width: 80%;
  margin: 10px 0 0 10px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  position: relative;
}

.hamburger-menu input[type="checkbox"] {
  display: none;
}

.hamburger-menu .open,
.hamburger-menu .close {
  cursor: pointer;
  display: block;
  width: 1.5rem;  /* Mobile setting*/
  height: 1.5rem;  /* Mobile setting*/
  position: fixed;
  top: 1.5rem;  /* Mobile setting*/
  right: 1rem;  /* Mobile setting*/
  z-index: 3;
}

.hamburger-menu .open span,
.hamburger-menu .open span::before,
.hamburger-menu .open span::after {
  display: block;
  background-color: #333; /* 元の色 */
  height: 4px;
  width: 100%;
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-menu .open span {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-menu .open span::before {
  content: '';
  top: -10px;
}

.hamburger-menu .open span::after {
  content: '';
  top: 10px;
}

.hamburger-menu input[type="checkbox"]:checked ~ .open span,
.hamburger-menu input[type="checkbox"]:checked ~ .open span::before,
.hamburger-menu input[type="checkbox"]:checked ~ .open span::after {
  background-color: #222; /* チェックされたときに白色に変更 */
}

.hamburger-menu input[type="checkbox"]:checked ~ .open span {
  background-color: transparent;
}

.hamburger-menu input[type="checkbox"]:checked ~ .open span::before {
  transform: rotate(45deg);
  top: 0;
}

.hamburger-menu input[type="checkbox"]:checked ~ .open span::after {
  transform: rotate(-45deg);
  top: 0;
}

.hamburger-menu .back-screen {
  display: block; /* 常にブロック要素として表示 */
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: opacity 0.5s ease; /* フェードインのためのトランジションを0.5秒に設定 */
  opacity: 0; /* 初期状態は透明 */
  pointer-events: none; /* 初期状態ではクリックを無効にする */
}

.hamburger-menu input[type="checkbox"]:checked ~ .back-screen {
  opacity: 1; /* チェックされたときに表示 */
  pointer-events: auto; /* チェックされたときにクリックを有効にする */
}

.hamburger-menu nav {
  display: block; /* 常にブロック要素として表示 */
  position: fixed;
  top: 0;
  right: 0;
  width: 100%; /* 横幅を100%に */
  height: 100%;
  opacity: 0.9;
  background-color: #ddd; /* 紫色 */
  color: #000; /* 白文字 */
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: transform 0.5s ease, opacity 0.5s ease; /* スライドインとフェードインのためのトランジションを0.5秒に設定 */
  transform: translateX(100%); /* 初期状態は画面外 */
  opacity: 0; /* 初期状態は透明 */
  pointer-events: none; /* 初期状態ではクリックを無効にする */
}

.hamburger-menu input[type="checkbox"]:checked ~ nav {
  display: block;
  transform: translateX(0); /* チェックされたときに画面内にスライドイン */
  opacity: 1; /* チェックされたときに表示 */
  pointer-events: auto; /* チェックされたときにクリックを有効にする */
}

.hamburger-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left; /* 左寄せにする */
}

.hamburger-menu nav ul li {
  padding: 15px;
}

.hamburger-menu nav ul li a {
  color: #222;
  text-decoration: none;
}

.mail {
  font-weight: 400;
  font-size: medium;
}

.hamburger-menu nav ul li a:hover {
  text-decoration: underline; /* ホバー時に下線を表示 */
}

.nav-logo-wrapper {
  width: 80%;
}

.nav-contents-wrapper {
  margin-top: 40px;
}

.nav-contents-wrapper:last-child {
  margin-top: 60px;
}

.contents {
  font-size: 18px;
  font-weight: 600;
  text-decoration: underline
}

/* Footer Styles */
.sns-icons {
  display: flex;
  justify-content: flex-start; /* 左寄せにする */
}

.sns-icons a img {
  margin: auto;
  width: 2em;
  margin-right: 0.5em;
}

.sns-icons a img:last-child {
  margin: auto;
  width: 2em;
  margin-right: 0.5em;
}

.copyright {
  text-align: left; /* 左寄せにする */
  font-size: 12px;
}

/*#####################
# Tablet
#####################*/

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .hamburger-menu .open,
  .hamburger-menu .close {
    cursor: pointer;
    display: block;
    width: 2rem;  /* Mobile setting*/
    height: 2rem;  /* Mobile setting*/
    position: fixed;
    top: 2rem;  /* Mobile setting*/
    right: 2rem;  /* Mobile setting*/
    z-index: 3;
  }
  .hamburger-menu .open span,
  .hamburger-menu .open span::before,
  .hamburger-menu .open span::after {
    display: block;
    background-color: #333; /* 元の色 */
    height: 4px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
  }
  .hamburger-menu .open span {
    top: 50%;
    transform: translateY(-50%);
  }
  .mail {
    font-weight: 400;
    font-size: 30px;
  }
  .contents {
    font-size: 30px;
    font-weight: 600;
    text-decoration: underline
  }
  .copyright {
    text-align: left; /* 左寄せにする */
    font-size: 20px;
  }
}

/*#####################
# PC
#####################*/

@media screen and (min-width: 1025px) {
}
