html, body {
  overflow-x: hidden;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

/* レスポンシブデザイン */
@media (min-width: 960px) {
  body{
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
  }
  .overall-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: left;
    padding-top: 40px;
    box-sizing: border-box;
  }
  .pc-only {
    z-index: 2;
    width: 40%;
    height: 100vh;
    margin: 200px 0px 0px 80px;
  }
  .pc-only-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .pc-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1D2088;
    margin: 0;
  }
  .pc-logo {
    margin-top: 20px;
    height: auto;
    width: 60%;
  }
  .pc-list {
    margin-top: 20px;
  }
  .pc-item {
    margin-top: 10px;
  }
  .pc-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1D2088;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  .pc-link:hover {
    background-color: rgba(29, 32, 136, 1);
    color: #fff;
  }
  .pc-link.active {
    background-color: #1D2088;
    color: #fff;
  }
  .main-container {
    width: 420px;
    height: auto;
    overflow: hidden;
    margin: 0px auto;
    border-radius: 20px 20px 0px 0px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .header {
    border-radius: 20px 20px 0px 0px;
    z-index: 2;
  }
  .scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    box-sizing: border-box;
    z-index: 1;
    position: fixed;
  }
  main {
    height: auto;
    z-index: 2;
  }
  .bg-img {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 100vh;
  }
  .first-view {
    height: calc(100vh - 60px);
  }
  .hamburger {
    display: none;
  }
  .expand-img {
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .expand-img:hover {
    transform: scale(1.02);
  }
}
@media (max-width: 960px) {
  .pc-only {
    display: none;
  }
  .main-container {
    width: 100%;
    overflow-x: hidden;
  }
  .header {
    width: 100% !important;
  }
  .bg-img {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100vh;
  }
}

.main-container {
  height: auto;
  z-index: 2;
  box-sizing: border-box;
}
.scroll-container {
  background-color: #fff;
  z-index: 1;
  position: relative;
}

/* 背景画像 */


/* 共通（テキスト） */
h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1D2088;
  text-align: center;
  cursor: pointer;
}
h3 {
  font-size: 1.25rem;
  margin: 0;
  padding: 0px 8px;
}
.h3-blue {
  color: #1D2088;
}
.h3-green {
  color: #B0D224;
}
p {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin: 20px 0px 0px 0px;
}
.btn-over-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1D2088;
  margin: 40px 0px 0px 0px;
}

main{
  z-index: 2;
}

/* 共通（セクション） */
.section {
  z-index: 2;
  width: 100%;
  height: auto;
  padding: 80px 20px 0px;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: transparent;
}
.section-title {
  width: 100%;
  height: auto;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}
.section-title-line {
  width: 120px;
  border-top: 2px solid #1D2088;
}
.section-title-sub-blue {
  margin-top: 40px;
  border-left: 4px solid #1D2088;
  padding: 0px 12px 0px 0px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.section-title-sub-green {
  margin-top: 40px;
  border-left: 4px solid #B0D224;
  padding: 0px 12px 0px 0px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: #fff;
  margin: 0px;
  padding: 4px 12px;
  border-radius: 50px;
}
.tag-blue {
  background-color: #1D2088;
}
.tag-green {
  background-color: #B0D224; 
}

/* 共通（ボタン） */
.button {
  width: 70%;
  height: auto;
  margin: 8px 0px;
  padding: 16px 0px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0px 8px 8px 0px rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
.blue-btn {
  background-color: #0068B7;
}
.red-btn {
  background-color: #E60012;
}
.green-btn {
  background-color: #B0D224;
}
.btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 共通（画像） */
.content-img {
  width: 100%;
  height: auto;
  margin: 20px 0px 0px 0px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    height: 60px;
    width: 420px; /* PC版のmain-container幅 */
    background-color: #1D2088;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 8px 20px;
    box-sizing: border-box;
}
.header-logo {
    width: auto;
    height: 32px;
}
.header-right {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.exchange-language-en.en-en {
  background-color: #E60012 !important;
}
.exchange-language-jp.en-jp {
  background-color: #1D2088 !important;
}
.exchange-language-jp {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #E60012;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 6px 8px 4px 12px;
  border-radius: 50px;
  text-align: center;
  border-radius: 12px 0px 0px 12px;
}
.exchange-language-container {
  display: flex;
  flex-direction: row;
}
.exchange-language-en {
  width: 28px;
  height: 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 6px 12px 4px 8px;
  border-radius: 0px 12px 12px 0px;
  text-align: center;
}
.hamburger-icon {
    color: #fff;
    width: auto;
    height: 24px;
    cursor: pointer;
    justify-content: center;
}

/* ハンバーガーメニュー */
.hamburger {
  justify-content: center;
  align-items: center;
}
.hamburger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(29, 32, 136, 0.95);
  z-index: 1000;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.hamburger-menu.active {
  opacity: 1;
  visibility: visible;
}
.nav-morph__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-morph__item {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.5s ease-out forwards;
}
.nav-morph__item:nth-child(1) { animation-delay: 0.1s; }
.nav-morph__item:nth-child(2) { animation-delay: 0.2s; }
.nav-morph__item:nth-child(3) { animation-delay: 0.3s; }
.nav-morph__item:nth-child(4) { animation-delay: 0.4s; }
.nav-morph__item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-morph__link {
  display: block;
  text-decoration: none;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.nav-morph__link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(8px);
}
.nav-morph__text {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* ハンバーガーメニューを閉じるボタン */
.hamburger-menu::before {
  content: '×';
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

/* スクロール防止 */
body.menu-open {
  overflow: hidden;
}

/* ファーストビュー */
.first-view {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.fv-title {
  margin: 16px 0px;
  font-size: 20px;
  font-weight: 600;
  color: #1D2088;
}
.fv-logo {
  width: 80%;
  height: auto;
  margin-bottom: 160px;
}
.scroll-down {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-bounce 2s infinite;
  width: 24px;
  height: auto;
  pointer-events: none;
}
@keyframes scroll-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* バス停一覧カルーセル */
.carousel-container {
  position: relative;
  width: 100%;
  margin: 40px auto 0;
  overflow: hidden;
  box-sizing: border-box;
}
.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.bus-stop-name {
  text-align: left;
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1D2088;
}
.bus-stop-route {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.bus-stop-route-blue {
  display: flex;
  width: 50%;
  gap: 4px;
}
.bus-stop-route-green {
  display: flex;
  width: 50%;
  gap: 4px;
}
.bus-stop-route-text {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin: 4px 0px 0px 0px;
}

/* ナビゲーションボタン */
.carousel-button {
  position: absolute;
  top: 22%;
  transform: translateY(-50%);
  background: #fff;
  color: #1D2088;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.en-carousel-button {
  position: absolute;
  top: 21%;
  transform: translateY(-50%);
  background: #fff;
  color: #1D2088;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}

/* インジケーター */
.carousel-indicators {
  position: absolute;
  bottom: 340px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.en-carousel-indicators {
  position: absolute;
  bottom: 365px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  border: 0.2px solid #6a6ed7;
  cursor: pointer;
  transition: background-color 0.3s;
}
.indicator.active {
  background: #1D2088;
}

/* チケット情報 */
.section-title-sub-ticket {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.ticket-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1D2088;
  margin: 0;
}
.wide-img-container {
  display: flex;
  justify-content: center;
  margin: 20px 0px 0px 0px;
}
.wide-img {
  width: 70%;
  height: auto;
}
.caution-container {
  display: flex;
  justify-content: center;
  margin: 20px 0px 40px 0px;
  padding: 24px 16px;
  background-color: #FFFED5;
  border-radius: 16px;
}
.caution-text {
  font-size: 1rem;
  font-weight: 600;
  color: #E60012;
  margin: 0;
}
.choice-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 20px;
  box-sizing: border-box;
}
.choice-item {
  width: 48%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}
.choice-title-blue {
  background-color: #1D2088;
  border: 1px solid #1D2088;
  width: 100%;
  text-align: center;
  padding: 4px 0px;
}
.choice-title-white {
  background-color: #fff;
  border: 1px solid #1D2088;
  width: 100%;
  text-align: center;
  padding: 4px 0px;
}
.choice-title-text-blue {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.choice-title-text-white {
  color: #1D2088;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* 自動運転バスの注意事項 */
.caution-autonomous {
  margin-top: 40px;
  background-color: #FFFED5;
  padding: 4px 0px;
}
.caution-img {
  width: 100%;
  height: auto;
}
.caution-img2 {
  width: 100%;
  height: auto;
  margin-top: 20px;
}
.caution-autonomous-text-container {
  padding: 20px 20px 0px 20px;
}
.caution-autonomous-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #E60012;
  margin: 0;
  text-align: center;
}
.caution-autonomous-text {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin-top: 8px;
}

/* FAQアコーディオン */
.faq-list {
  max-width: 430px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(29, 32, 136, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.faq-item[open] {
  border-color: #1D2088; /* 青 */
  box-shadow: 0 2px 12px rgba(33,150,243,0.10);
}
.faq-item.faq-red[open] {
  border-color: #ffb3b3; /* 赤 */
  box-shadow: 0 2px 12px rgba(255,0,0,0.10);
}
.faq-question {
  font-weight: bold;
  font-size: 1.08rem;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  border: none;
  background: none;
  list-style: none;
}
.faq-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
  position: relative;
}
.faq-icon::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid #2196f3;
  border-bottom: 2.5px solid #2196f3;
  transform: rotate(45deg);
  margin: 0 auto;
  margin-top: 2px;
}
.faq-item[open] .faq-icon::before {
  transform: rotate(-135deg);
  margin-top: 6px;
}
.faq-answer {
  padding: 18px 20px 18px 20px;
  font-size: 1rem;
  color: #333;
  background: #fff;
  border-top: 1px solid rgba(29, 32, 136, 0.5);
}

/* フッター */
footer {
  width: 100%;
  height: auto;
  background-color: #1D2088;
  display: flex;
  flex-direction: column;
  padding: 20px 20px;
  margin-top: 80px;
  box-sizing: border-box;
  overflow-x: hidden;
}
.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.footer-logo {
  width: 60%;
  height: auto;
  margin-top: 20px;
}
.footer-list {
  gap: 16px;
  margin: 20px 0px 0px 0px;
  padding: 0px 20px;
}
.footer-item {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
}
.footer-link {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.footer-copyright {
  font-size: 0.75rem;
  font-weight: 400;
  color: #fff;
  margin: 20px 0px 0px 0px;
  padding: 0;
  text-align: center;
}
.osakametro-logo {
  width: 50%;
  height: auto;
  margin: 20px auto 0px;
}

/* モバイル版ではヘッダーの幅を調整 */
@media (max-width: 768px) {
  header {
    width: 100% !important;
  }
}

/* 全画面表示モーダル */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.763);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.image-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 38px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #000000;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
}

.close-modal:hover {
  color: #ccc;
}

.explain-img {
  font-size: 0.9rem;
  font-weight: 400;
  color: #000;
  margin: 10px 0px 0px 0px;
  text-align: center;
}

.strong {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #E60012;
  text-decoration: none;
}

.strong-link {
  border-bottom: 1px solid #E60012;
  cursor: pointer;
}

.external-link {
  font-size: 1rem;
  font-weight: 400;
  border-bottom: 1px solid #2196f3;
  color: #2196f3;
  text-decoration: none;
  cursor: pointer;
}

.bus-stop-name-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1D2088;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 50px;
  background-color: #fff;
  border: 1px solid #1D2088;
}