/* メインスタイルシート - 全ページで使用 */

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本設定 */
body {
  font-family: "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    sans-serif;
  color: #333;
  background-color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

li {
  list-style: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ヘッダー */
.header-container {
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.header {
  text-align: center;
  margin: 0 auto;
}
.header-container {
  padding-top: 1rem;
}

.heading-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}
.heading-text__line {
  display: inline-block;
}

.logo__image,
.footer-logo__image {
  max-width: 80%;
  width: 30rem;
  margin: 0 auto;
}

/* ナビゲーション */
.nav-menu {
  background-color: #cecece;
  color: #2e3740;
  margin-top: 20px;
}

.nav-menu__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-menu__item {
  width: 12rem;
  position: relative;
}

.nav-menu a {
  display: block;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.nav-menu a:hover {
  background-color: #ddd;
}

.nav-menu__item--close::before {
  content: "\f00d";
  font-family: "Font Awesome 5 Free";
  font-size: 1.5rem;
  font-weight: 900;
  margin-right: 0.8rem;
}
.nav-menu__item--close {
  display: flex;
  align-items: center;
  width: auto;
  cursor: pointer;
}
.nav-menu__item a::before {
  margin-right: 0.5rem;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.nav-menu__item--home > a::before {
  content: "\f015";
}
.nav-menu__item--about > a::before {
  content: "\f6d3";
}
.nav-menu__item--gallery > a::before {
  content: "\f015";
}
.nav-menu__item--price > a::before {
  content: "\f157";
}
.nav-menu__item--access > a::before {
  content: "\f3c5";
}
.nav-menu__item--phone > a::before {
  content: "\f095";
}
.nav-menu__item--instagram > a::before {
  font-family: "Font Awesome 5 Brands";
  content: "\f16d";
}

.nav-menu__sub-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #cecece;
  z-index: 10;
}

@media screen and (min-width: 1024px) {
  .nav-menu__item:hover .nav-menu__sub-list {
    display: block;
    width: 100%;
  }
}

/* モバイルヘッダー */
.mobile-header {
  display: none;
}

@media (max-width: 1023px) {
  .logo {
    display: none;
  }
  .header-container {
    margin-top: 5rem;
  }
  .heading-text {
    padding: 0 1rem;
  }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.8rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  }
  .mobile-logo {
    width: 100%;
    flex: 1;
  }
  .mobile-logo__image,
  .footer-logo__image {
    width: auto;
    max-width: 22rem;
    margin: 0 auto;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.5rem;
    padding-top: 0.8rem;
    cursor: pointer;
  }
  .hamburger-menu::before {
    content: "\f0c9";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.3rem;
    color: #2e3740;
    line-height: 1.2;
  }
  .mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background-color: rgba(46, 55, 64, 0);
    transition: display 0.3s, opacity 0.3s;
    transition-behavior: allow-discrete;
  }

  .mobile-nav-menu.active {
    display: block;
    background-color: rgba(46, 55, 64, 0.8);
  }

  .mobile-nav-menu__list {
    background-color: #fff;
    width: 30%;
    min-width: 20rem;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    text-align: left;
    padding: 2rem;
    line-height: 2.5;
  }

  .mobile-nav-menu.active .mobile-nav-menu__list {
    transform: translateX(0);
    overflow: scroll;
    @starting-style {
      transform: translateX(-100%);
    }
  }
  .mobile-nav-menu__sub-list {
    margin-left: 1.5rem;
  }
}

/* メインコンテンツ */
.main {
  background-color: #f4f5f7;
  padding: 2rem 0;
}

.container {
  background-color: #fff;
  width: 100%;
  max-width: 78.5rem;
  margin: 0 auto;
  padding: 4rem;
}

.page-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.link-button {
  display: inline-block;
  color: #fff;
  background-color: #2e3740;
  padding: 1rem 2rem;
  border-radius: 100vh;
  transition: all 0.3s ease;
}
.link-button:hover {
  opacity: 0.8;
}

.info-container {
  border: 3px solid #949495;
  padding: 2rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 1023px) {
  .container {
    max-width: 100%;
    padding: 2rem;
  }
}

/* フッター */
.footer {
  padding: 2rem 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.copyright {
  font-size: 0.9rem;
  color: #666;
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 45rem;
    padding: 2rem 1.2rem;
    margin: 0 auto;
  }
  .info-container {
    padding: 2rem 1.2rem;
  }
  .instagram-media {
    min-width: 15.6rem !important;
  }
}
