/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  background-color: white;
  color: #333;
}

ol,
ul {
  padding-left: 20px;
}

/* ヘッダー & フッター */
header,
footer {
  background-color: #3d6df3;
  color: white;
  text-align: center;
  padding: 15px 20px;
}

/* ヘッダー設定 */
header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ロゴ */
header .logo {
  display: flex;
}

header .logo #icon {
  width: 60px;
  height: 60px;
}

header .logo h1 {
  font-size: 16px;
  text-align: left;
}

img#title {
  width: 600px;
  height: auto;
}

.insta {
  position: fixed;
  top: 27px;
  right: 60px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.line {
  position: fixed;
  top: 27px;
  right: 100px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* スライドショー */
.slideshow-container {
  position: relative;
  max-width: 600px;
  /* スライドの最大幅 */
  margin: auto;
  overflow: hidden;
}

.slides {
  display: none;
  width: 100%;
}

.slides.active {
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  /* 半透明の背景 */
  color: white;
  font-size: 24px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
  /* 左端に配置 */
}

.next {
  right: 10px;
  /* 右端に配置 */
}

/* 画像のレスポンシブ対応 */
section img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

section#captain img {
  max-width: 40%;
  border-radius: 50%;
}

/* 料金表画像のスタイル */
section#pricing img[alt="ご案内プラン"] {
  max-width: 100%;
  width: 800px;
  height: auto;
  margin: 30px auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #3d6df3;
}

/* iframe をレスポンシブ対応 */
.iframe-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.iframe-container iframe {
  top: 0;
  left: 0;
  max-width: 100%;
  width: 800px;
  height: 600px;
  border: none;
}

/* ハンバーガーメニュー */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all 0.4s;
}

.hamburger__line:nth-of-type(1) {
  top: 14px;
}

.hamburger__line:nth-of-type(2) {
  top: 23px;
}

.hamburger__line:nth-of-type(3) {
  top: 32px;
}

.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}

.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

/* ナビゲーション */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.4s;
  z-index: 90;
}

.nav.active {
  transform: translateX(0);
}

.nav__list {
  padding: 100px 0 0;
  list-style: none;
}

.nav__item {
  padding: 0 20px;
}

.nav__link {
  display: block;
  padding: 15px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

/* ヒーローセクション */
#hero {
  background: url(../../images/ship/boat.jpg) no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 160px 10px;
}

#hero h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

#hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-btn {
  background-color: #e67e22;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
}

.cta-btn:hover {
  background-color: #d35400;
}

/* 各セクション */
section {
  padding: 50px 20px;
  text-align: left;
}

section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

section p {
  font-size: 18px;
  margin-top: 10px;
  text-align: center;
}

section#pricing p,
section#schedule p {
  font-size: 14px;
}

/* 料金表 & テーブル */
#pricing ul {
  list-style-type: none;
  font-size: 16px;
}

#pricing ul li {
  margin: 10px 0;
}

table {
  width: 95%;
  margin: 20px auto;
  border-collapse: collapse;
}

table th,
table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

table th {
  background-color: #f1f1f1;
}

.button {
  background-color: #007bff;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background-color: #0056b3;
}

/* お知らせセクション */
.news-list-container {
  max-width: 800px;
  margin: 0 auto;
  height: 150px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
}

/* スクロールバーのスタイル */
.news-list-container::-webkit-scrollbar {
  width: 8px;
}

.news-list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.news-list-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.news-list-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#news li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 40px;
  box-sizing: border-box;
}

#news li span {
  color: #666;
  flex-shrink: 0;
  white-space: nowrap;
}

#news li a {
  color: #3d6df3;
  text-decoration: none;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

#news li a:hover {
  text-decoration: underline;
}

/* お知らせ詳細ページ */
.news-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}

.news-date {
  color: #666;
  font-size: 16px;
  margin-bottom: 10px;
}

.news-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.news-body {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: #3d6df3;
  text-decoration: none;
  font-size: 16px;
}

.back-link:hover {
  text-decoration: underline;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .cta-btn {
    font-size: 16px;
    padding: 12px 25px;
  }

  /* モバイルでの料金表画像 */
  section#pricing img[alt="ご案内プラン"] {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
}
