body {
  background-color: #E6522A;
  color: #002C49;
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

.mobile-content {
  width: 375px;
  max-width: 375px;
  margin: 0 auto;
  background-color: #ffffff;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
}

.mobile-content::-webkit-scrollbar {
  display: none;
}

header {
  background-color: #E6522A;
  color: #ffffff;
}

header .mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 375px;
  margin: 0 auto;
}

header .header-text {
  flex: 1;
}

header p {
  margin: 2% 0 1% 0;
}

header .header-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  text-align: left;
  display: block;
}

/* ハンバーガーメニューボタン */
.hamburger-menu {
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 2% 0 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

header .sub-title {
  font-size: 13px;
  display: flex;
  margin: 0 0 0 4%;
}

/* ナビゲーションメニュー */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: #002C49;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
  display: block;
  padding: 20px 30px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
  background-color: rgba(230, 82, 42, 0.3);
}

/* スクロールバーのスタイル */
.mobile-nav::-webkit-scrollbar {
  width: 6px;
}

.mobile-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.mobile-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

footer .footer-content {
  background-color: #DBCFC4;
  max-width: 375px;
  margin: 0 auto;
  padding: 2px 0;
}

footer .footer-links {
  list-style: none;
  column-count: 2;
}

footer .footer-links li {
  margin: 4% 0;
}

footer .footer-links a {
  color: #002C49;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

footer .footer-links a:hover {
  text-decoration: underline;
}

footer .copy-text {
  text-align: center;
  font-size: 13px;
  color: #002C49;
  margin: 4% 0;
}

.side-left, .side-right {
  display: none;
}

@media screen and (max-width: 1279px) {
  /* 固定チケットボタン */
  .fixed-ticket {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }

  .ticket-button {
    width: 80px;
    height: 80px;
    background: #E6522A;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    border: 5px solid #DBCFC4;
    transition: all 0.4s ease;
  }

  .ticket-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff;
  }

  .ticket-text {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
    color: #ffffff;
  }
}

/* タブレットサイズの処理（FAQ専用） */
@media screen and (min-width: 768px) and (max-width: 1279px) {
  #faq .mobile-content, #guide .mobile-content {
    min-height: auto;
    height: auto;
    overflow-y: visible;
  }
}

@media screen and (min-width: 1280px) {
  .fixed-ticket {
    display: none;
  }


  .side-left, .side-right {
    display: block;
  }

  .side-right {
    width: 50%;
  }

  .layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .page-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 20% 0 8% 8%;
  }

  .page-subtitle {
    margin: 0 0 0 12%;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
  }

  .page-links {
    list-style: none;
    margin: 20% 0 0 0;
  }

  .page-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    font-weight: bold;
    text-align: center;
    margin: 30% 0 30% 20%;
  }

  .page-links a:hover {
    text-decoration: underline;
  }

  .contact-button {
    display: block;
    width: 180px;
    color: #E6522A;
    background-color: #FFFFFF;
    border: 5px solid #DBCFC4;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    padding: 2%;
    margin: 0 0 0 25%;
  }

  .contact-button:hover {
    text-decoration: underline;
  }
}

