@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');

:root {
  --dark: #21252f;
  --body: #888;
  --light: #fff;
  --hover-gray: #ccc;
}

body {
  font-family: "Noto Serif JP", serif;
  line-height: 1.7;
  color: var(--body);
}

/* Common section styles */
section {
  padding-top: 6rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Footer */
.footer-container {
  display: flex;
  width: 100%;
  height: 27vh;
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-width: 100%;
  background-color: rgb(45,39,62);
}

.footer {
  background-color: transparent;
  color: var(--light);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-left: 0;
  height: 100%;
  padding: 0;
}

.footer .container {
  margin-left: 8vw;
  width: 100%;
}

.footer .row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-right {
  width: 7%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: transparent;
  position: relative;
}

.back-to-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--light);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-bg {
  display: none;
}

.footer h5 {
  color: var(--light);
  font-size: 25px;
  margin-bottom: 1.5rem;
}

.footer .wrapper {
  display: flex;
  width: 100%;
  place-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.wrapper .button {
  height: 36px;
  width: 36px;
  margin: 0;
  background-color: transparent;
  border: 1.5px solid var(--light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper .button .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  border-radius: 7px;
  transition: all 0.3s ease;
}

.wrapper .button .icon i {
  font-size: 18px;
  color: var(--light);
}

.wrapper .button:hover {
  background-color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wrapper .button:hover .icon i {
  color: var(--dark);
}

.wrapper .button:nth-child(1):hover {
  background-color: var(--light);
  border-color: var(--light);
}

.wrapper .button:nth-child(2):hover {
  background-color: var(--light);
  border-color: var(--light);
}

.footer p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.back-to-top:hover {
  color: var(--hover-gray);
}

.back-to-top i {
  font-size: 36px;
  margin-bottom: 5px;
}

.back-to-top span {
  font-size: 24px;
  font-weight: bold;
  writing-mode: vertical-rl;
  margin-top: 5px;
}

/* メディアクエリ */
@media (max-width: 768px) {
  .footer-container {
    height: auto;
    min-height: 27vh;
    display: flex;
    align-items: center;
  }

  .footer {
    padding: 2rem 0;
    width: 88%;
    margin: 0 auto;
    display: flex;
    align-items: center;
  }

  .footer .container {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .footer .row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer h5 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: left;
  }

  .footer .wrapper {
    margin-bottom: 1.2rem;
    justify-content: flex-start;
  }

  .footer p {
    font-size: 11px;
    text-align: center;
    width: 100%;
  }

  .footer-right {
    width: 12%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
  }

  .back-to-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 2rem;
  }
  
  .back-to-top i {
    margin-bottom: 0;
  }
  
  .back-to-top span {
    margin-top: 0;
  }

  .wrapper .button {
    transform: none;
    margin: 0;
  }

  .wrapper {
    gap: 8px;
  }

  body {
    padding-top: 70px;
  }

  /* モバイルメニュー用のスタイル */
  .navbar-collapse {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    background-color: rgb(45,39,62) !important;
    overflow: hidden !important;
    transition: all 1.2s ease-in-out !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: block !important;
    transform: translateY(-20px) !important;
  }

  .navbar-collapse.show {
    height: 360px !important;
    opacity: 0.9 !important;
    visibility: visible !important;
    padding: 2rem 0 !important;
    transform: translateY(0) !important;
  }

  .navbar-nav {
    opacity: 0 !important;
    transition: opacity 2.2s ease-in !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .navbar-collapse.show .navbar-nav {
    opacity: 1 !important;
  }

  .nav-item {
    text-align: center;
    padding: 0.8rem 0;
  }

  .nav-link {
    font-size: 0.9rem !important;
    padding: 0.8rem 0 !important;
  }

  .navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.75rem !important;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .navbar-toggler:focus {
    box-shadow: none !important;
  }

  .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
  }
  
  /* アイコンコンテナと×マークのスタイル */
  .toggler-icon-container {
    position: relative;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .navbar-toggler-close-icon {
    display: none;
    color: var(--light);
    font-size: 1.8em;
    line-height: 1;
    font-weight: 300;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .navbar-toggler-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  section h5, section h5 + p {
    font-size: 1.8rem !important;
    text-align: center !important;
  }

  section h5 + p {
    font-size: 0.8rem !important;
  }
}

/* Navigation */
.navbar {
  background-color: rgb(45,39,62);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 70px;
}

.navbar::before {
  display: none;
}

.navbar-brand {
  font-size: 18px;
  padding: 0;
  color: var(--light) !important;
  margin-right: auto;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  padding-top: 16px !important;
  color: var(--light) !important;
}

.navbar .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-toggler {
  border-color: rgba(0,0,0,0);
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-nav .nav-item:hover .nav-link,
.navbar-nav .nav-link:hover,
.navbar-brand:hover {
  color: var(--hover-gray) !important;
}

.navbar-nav {
  margin-right: 2rem; /* メニューとSNSの間隔を確保 */
}

.header-sns-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 1rem;
}

.header-sns-wrapper .button {
  height: 32px;
  width: 32px;
  background-color: transparent;
  border: 1.5px solid var(--light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-sns-wrapper .button .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  border-radius: 7px;
  transition: all 0.3s ease;
}

.header-sns-wrapper .button .icon i {
  font-size: 16px;
  color: var(--light);
}

.header-sns-wrapper .button:hover {
  background-color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-sns-wrapper .button:hover .icon i {
  color: var(--dark);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .header-sns-wrapper {
    margin: 1rem auto;
    justify-content: center;
  }
}

.mobile-right-items {
  display: none;
}

@media (max-width: 768px) {
  .mobile-right-items {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .mobile-right-items .header-sns-wrapper {
    margin: 0;
    gap: 20px;
  }

  .mobile-right-items .button {
    height: 32px;
    width: 32px;
  }

  .mobile-right-items .button .icon i {
    font-size: 16px;
  }

  .navbar-collapse .header-sns-wrapper {
    display: none;
  }
}

.wrapper .button a,
.header-sns-wrapper .button a {
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.wrapper .button a:focus,
.header-sns-wrapper .button a:focus {
  outline: none;
}
