@charset "UTF-8";

/* ===============================
   全体共通設定
=============================== */
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #fafafa;
  overflow-x: hidden;
}

/* ヘッダー */
header {
  background: #111;
  color: #fff;
  padding: 1rem 2rem;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.header-element {
  display: flex;
}

header .logo {
  width: 80px;
  height: auto;
}

header h3 {
  font-size: 2.1rem;
  margin-left: 1.5rem;
  margin-top: 0.8rem;
  flex: 1;
}

header strong {
  color: #ff0000;
  font-style: italic;
  font-size: 2.8rem;
  padding-bottom: 0.5%;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
  font-size: 1.3rem;
}
.main-nav a:hover {
  color: #fdd835;
}

/* ハンバーガーアイコン（スマホ用） */
header nav {
  display: flex;
  align-items: center;
  position: relative;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 32px;
  gap: 7px;
  z-index: 10001;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.45s cubic-bezier(0.28, 0.84, 0.42, 1), 
              opacity 0.3s ease;
}

/* ▼▼ ハンバーガー → X へ柔らかく変形 ▼▼ */
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* スマホ時にメニューを隠す */
@media (max-width: 768px) {

  header nav {
    justify-content: space-between;
  }

  header h3 {
    display: none;
  }

  .hamburger{
    display: flex;
    margin-top: 1.9rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 220px;
    height: 100vh;
    background: rgba(17,17,17,0.95);
    flex-direction: column;
    padding: 6rem 1.2rem 1rem;
    gap: 1rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 10002;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .main-nav.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* 背景の暗転用オーバーレイ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
    スライドショー
=============================== */
main{
  order: 2;
  background-color: rgba(0,0,0,0.6);
  padding-left: 2%;
  padding-right: 2%;
  padding-top: 3%;
  padding-bottom: 3%;
}

.fade-slider {
  order: 1;
  position: relative;
  width: 100%;
  height: 90vh;
  margin: auto;
  margin-bottom: 0.5%;
  overflow: hidden;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .fade-slider {
    width: 100%;
    height: 300px;
    margin-top: 0%;
    border-radius: 0%;
  }
}

/* 各スライド */
.fade-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.fade-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 表示中のスライド */
.fade-slide.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .fade-slider {
    height: 300px;
  }
}

/* ===============================
   OVERVIEW SECTION
=============================== */
.overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #fff;
}

.overview h2 {
  font-size: 2rem;
  color: #222;
  border-left: 5px solid #fdd835;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.overview p {
  flex: 1;
  line-height: 1.8;
  font-size: 1rem;
}

.overview img {
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .overview {
    flex-direction: column;
    text-align: center;
  }
  .overview img {
    width: 100%;
  }
  .main-nav {
    flex-wrap: wrap;
  }
}

/* ===============================
   FOOTER共通設定
=============================== */
footer {
  background: #222;
  color: #ddd;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

/* FOOTER CONTENTS */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
  max-width: 1000px;
}

footer .item,
footer .contact {
  flex: 1 1 300px;
  min-width: 280px;
}

footer h4 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

footer a {
  display: block;
  margin: 0.3rem 0;
  color: #ddd;
  transition: 0.3s;
}
footer a:hover {
  color: #fdd835;
}

/* COPYRIGHT SECTION */
.copyright {
  border-top: 1px solid #444;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #aaa;
  width: 100%;
  text-align: center;
}
