/* Reset & basic styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Vollkorn", Ryumin Medium KL, serif;
}

body::before {
  content: "";
  position: fixed;       /* ページスクロールしても固定 */
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: url('../images/background/phalux_background.jpg'); /* 下の画像 */
  background-size: cover;       /* 全面に表示 */
  transform: translate(-50%, -50%); /* 常に画面中央に */
  filter: grayscale(25%);     /* 白黒化 */
  z-index: -1;
}

/* Header */
header {
  display: flex;
  justify-content: space-between; /* 左右に振り分け */
  align-items: center;
  padding: 1rem 1rem;
  background-color: rgba(0, 0, 0, 0.8); /* 不透明度80% */
  color: white;
}
a {
  color:#ffc341
}
.logo {
  font-family: 'Yu Mincho', '游明朝', serif;
  font-size: 30px;
  right: 0;
  font-weight: 900;
  padding-left: 14px;
  letter-spacing: 2px;
  margin-left: 10px;
  margin-right: 10px;
}
.logo a {
  color:#fff;
  text-decoration: none;
}
.logo img {
  width: 60px;
  filter: invert(100%);
  margin-left: 5px;
}
.hamburger-menu {
  right: 0;
  width: 50px;
  height: 50px;
  position: relative;
  border: none;
  background: transparent;
  appearance: none;
  padding: 0;
  cursor: pointer;
}
.hamburger-menu__bar {
  display: inline-block;
  width: 44%;
  height: 2px;
  background: #ffffff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: .5s;
}
.hamburger-menu__bar:first-child {
  top: 16px;
}
.hamburger-menu__bar:nth-child(2) {
  top: 24px;
}
.hamburger-menu__bar:last-child {
  top: 32px;
}
.hamburger-menu--open .hamburger-menu__bar {
  top: 50%;
}
.hamburger-menu--open .hamburger-menu__bar:first-child {
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.hamburger-menu--open .hamburger-menu__bar:last-child {
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}
.hamburger-menu--open .hamburger-menu__bar:nth-child(2) {
  display: none;
}
.navigation {
  display: none;
  background: rgba(0, 0, 0, 0.8); /* 不透明度80% */
  position: absolute;
  top: 82px;
  left: 0;
  width: 100%;
  z-index: 9999;
  font-family: "Vollkorn", Ryumin Medium KL, serif;
  font-size: 1.7rem;
}
.navigation__list {
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navigation__list-item {
  border-bottom: solid 1px #474747;
}
.navigation__list-item:first-child {
  border-top: solid 1px #474747;
}
.navigation__link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: block;
  padding: 24px 0;
  transition: .5s;
}
@media (hover: hover) and (pointer: fine) {
  .navigation__link:hover {
    background: rgba(132, 86, 86, 0.7);
  }
}
/* Main content */
main {
  display: flex;
  min-height: 80vh;
  position: relative;
}
.container {
  position: relative;
  margin-left: 60px; /* サイドバー分 */
  width: calc(100% - 60px); 
}
section.contents {
  margin: 80px;
}
h3.title {
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #ccc;
}
h4.subtitle {
  color: #fff;
}
.slider{
  margin-left: 60px;
  width: calc(100% - 60px);
  padding-top: 56.25%; /* 元の 16:9 高さを確保 */
  position: relative;
}
.items{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    list-style: none;
}
.item{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}
.current{
  opacity: 1;
}
img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.container {
  width: 100%;
}
/* YouTube */
.youtube-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vw * 9 / 16); /* 16:9 のアスペクト比を保つ */
  max-height: 365.625px; /* 最大高さを設定 */
  max-width: 650px; /* 最大幅を設定 */
  /* padding-bottom: 56.25%; */
  overflow: hidden;
  margin: 0 auto;
  margin-top: 120px;
  margin-bottom: 120;
}
.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.text {
  margin: 60px;
}
.text > p {
  text-align: center;
  color: #ffffff;
  font-size: 1.5em;
  line-height: 2;
}
.text > p.highlight {
  font-size: 3em;
}

/* Sidebar */
.sidebar {
  position: absolute;
  top: 0;
  left:0;
  width: 60px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.0)
}

/* SNS Sidebar */
.sns-sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem;
}
.sns-sidebar a img {
  width: 40px;
  height: 40px;
  filter: invert(1);
  box-shadow: 0px 0px 10px rgb(0, 0, 0);
}

/* Footer */
footer {
  bottom: 0;
  left: 0;
  height: 80px;
  width: 100%;
  background: rgba(233, 233, 233, 0.0); /* 不透明度80% */
  color: #ffffffae;
  text-align: center;
  padding: 2rem 1rem;
  font-family: "Vollkorn", Ryumin Medium KL, serif;
  font-weight: 300;
  font-size:x-small;
}
footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
footer .footer-links li a {
  color: #ffffffae;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
footer .footer-links li a:hover {
  color: #f0a500;
}
footer p {
  font-size: xx-small;
  padding: 3px;
}
footer a {
  color: #ffffffae;
  text-decoration: none;
  font-weight:lighter;
  transition: color 0.3s;
}

@media screen and (max-width: 768px) {
  body::before {
    content: "";
    position: fixed;       /* ページスクロールしても固定 */
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: url('../images/background/phalux_background_sp.jpg'); /* 下の画像 */
    background-size: cover;       /* 全面に表示 */
    transform: translate(-50%, -50%); /* 常に画面中央に */
    filter: grayscale(25%);     /* 白黒化 */
    z-index: -1;
  }
  h3.title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #ccc;
  }

  .logo {
    font-family: 'Yu Mincho', '游明朝', serif;
    font-size: 20px;
    right: 0;
    font-weight: 900;
    padding-left: 14px;
    letter-spacing: 2px;
  }

  .logo img {
    width: 40px;
    filter: invert(100%);
  }

  /* Navigation */
  .navigation {
    display: none;
    background: rgba(0, 0, 0, 0.8); /* 不透明度80% */
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    z-index: 9999;
    font-family: "Vollkorn", Ryumin Medium KL, serif;
    font-size: 1.2rem;
  }
  .navigation__list {
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .navigation__list-item {
    border-bottom: solid 1px #474747;
  }
  .navigation__list-item:first-child {
    border-top: solid 1px #474747;
  }
  .navigation__link {
    color: #fff;
    font-weight: 400;
    text-decoration: none;
    display: block;
    padding: 24px 0;
    transition: .5s;
  }
  section.contents {
    margin: 40px;
  }
  /* YouTube */
  .youtube-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vw * 9 / 16); /* 16:9 のアスペクト比を保つ */
    max-height: 168.75px; /* 最大高さを設定 */
    max-width: 300px; /* 最大幅を設定 */
    /* padding-bottom: 56.25%; */
    overflow: hidden;
    margin: 0 auto;
    margin-top: 120px;
    margin-bottom: 120px;
  }
  .youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  .text {
    margin: 30px;
  }
  .text > p {
    text-align: center;
    color: #ffffff;
    font-size: 0.9em;
    line-height: 2;
  }
  .text > p.highlight {
    font-size: 1.5em;
  }
}