/* Marine Page Styles */

/* Variables (extends root) */
:root {
  --marine-bg-light: #e8f4f3;
  --marine-gold: #c4a962;
}

/* ========================================
   Hero Section
   ======================================== */
.marine-hero {
  background-color: #fff;
  padding-top: 60px;
}

.marine-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px 60px;
}

.marine-hero-title {
  font-family: var(--font-serif-jp);
  font-size: 55px;
  font-weight: 400;
  letter-spacing: 4.125px;
  line-height: 66px;
  margin-bottom: 25px;
}

.marine-hero-subtitle {
  font-family: var(--font-serif-jp);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1.35px;
  line-height: 21.6px;
}

.marine-hero-image {
  position: relative;
  width: 100%;
}

.marine-hero-image img {
  width: 100%;
  aspect-ratio: 1500 / 617;
  object-fit: cover;
}

.marine-hero-tagline {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 300;
  letter-spacing: 28px;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Concept Section
   ======================================== */
.marine-concept {
  /* padding: 80px 0; */
  background-color: #fff;
}

.marine-concept-heading {
  font-family: var(--font-serif);
  font-size: 100px;
  font-weight: 400;
  letter-spacing: 7.5px;
  color: transparent;
  margin-bottom: 60px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.marine-concept-heading::before {
  content: 'MIYAKO BLUE YOUR WAY   MIYAKO BLUE YOUR WAY   MIYAKO BLUE YOUR WAY   ';
  position: absolute;
  left: 0;
  top: 0;
  color: #D5E3E3;
  animation: scroll-text 20s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.33%);
  }
}

.marine-concept-main {
  font-family: var(--font-serif);
  max-width: 100%;
  margin: 0 0 60px;
  padding-right: 40px;
  display: flex;
  gap: 60px;
  align-items: center;
}

.marine-concept-image {
  flex: 0 0 60%;
  overflow: hidden;
}

.marine-concept-image img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.marine-concept-text {
  flex: 1;
  white-space: nowrap;
}

.marine-concept-title {
  font-family: var(--font-serif-jp);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1.8px;
  line-height: 28.8px;
  margin-bottom: 25px;
}

.marine-concept-desc {
  font-family: var(--font-serif-jp);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  line-height: 40px;
}

.marine-concept-gallery {
  width: 100%;
  padding: 0 40px;
}

.marine-concept-gallery-track {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.marine-concept-gallery-track img {
  flex-shrink: 0;
  width: 350px;
  height: 248px;
  object-fit: cover;
}

/* Concept Section Accent Line */
.marine-concept::after {
  content: '';
  display: block;
  width: 100%;
  height: 8px;
  background-color: var(--marine-primary);
  margin-top: 60px;
}

/* ========================================
   Tour Menu Section
   ======================================== */
.marine-tour {
  padding: 70px 20px 80px;
  background-color: #E4F2F2;
}

.marine-tour-header {
  max-width: 1118px;
  margin: 0 auto 40px;
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.marine-tour-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.marine-tour-title-row {
  display: flex;
  align-items: flex-start;
  gap: 79px;
}

.marine-tour-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 50px;
}

.marine-tour-title-ja {
  font-family: var(--font-serif-jp);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1.35px;
  line-height: 21.6px;
}

.marine-tour-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.125px;
  line-height: 32px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
  margin-top: 25px;
  position: relative;
  padding-bottom: 12px;
}

.marine-tour-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -3px;
  width: calc(100% + 6px);
  height: 1px;
  background-color: var(--color-text);
}

.marine-tour-link:hover {
  color: var(--marine-primary);
}

.marine-tour-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
}

.marine-tour-link-icon::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  margin-left: -1px;
}

.marine-tour-grid {
  max-width: 1118px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px 80px;
  align-items: start;
}

/* Zigzag layout for tour cards */
.marine-tour-card:nth-child(even) {
  margin-top: 60px;
}

.marine-tour-card {
  background-color: transparent;
}

.marine-tour-card-image {
  margin-bottom: 16px;
  overflow: hidden;
}

.marine-tour-card-image img {
  width: 100%;
  aspect-ratio: 519 / 323;
  object-fit: cover;
  transition: transform 0.3s;
}

.marine-tour-card:hover .marine-tour-card-image img {
  transform: scale(1.03);
}

.marine-tour-card-title {
  font-family: var(--font-serif-jp);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1.95px;
  line-height: 31.2px;
  margin-bottom: 21px;
}

.marine-tour-card-desc {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.125px;
  line-height: 32px;
}

/* ========================================
   Footer (Marine Page Override)
   ======================================== */
.marine-page ~ .footer,
body > .footer {
  background-color: #fff;
  padding: 35px 20px 30px;
  text-align: center;
  border-top: none;
  margin-top: 0;
}

.marine-page ~ .footer .footer-links a,
body > .footer .footer-links a {
  color: var(--marine-text);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.marine-page ~ .footer .copyright,
body > .footer .copyright {
  font-size: 11px;
  color: #888;
  margin-top: 15px;
}

/* ========================================
   Responsive - Tablet (768px - 1199px)
   ======================================== */
@media (max-width: 1024px) {
  .marine-hero-title {
    font-size: 48px;
  }

  .marine-hero-tagline {
    font-size: 32px;
    letter-spacing: 8px;
  }

  .marine-concept-main {
    flex-direction: column;
    gap: 40px;
  }

  .marine-concept-image {
    max-width: 100%;
  }

  .marine-concept-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
  }

  .marine-concept-title {
    text-align: center;
  }

  .marine-concept-desc {
    text-align: left;
  }

  .marine-tour-grid {
    gap: 40px;
  }

}

/* ========================================
   Responsive - Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .marine-hero {
    padding-top: 40px;
  }

  .marine-hero-content {
    padding: 0 20px 40px;
  }


  .marine-hero-title {
    font-size: 28px;
    letter-spacing: 2.1px;
    line-height: 33.6px;
    margin-bottom: 15px;
  }

  .marine-hero-subtitle {
    font-size: 14px;
    letter-spacing: 1.05px;
    line-height: 16.8px;
  }

  .marine-hero-image img {
    aspect-ratio: 376 / 219;
    object-fit: cover;
  }

  .marine-hero-tagline {
    font-size: 20px;
    letter-spacing: 4px;
    bottom: 20px;
  }

  /* SP: Concept section - use flexbox for reordering */
  .marine-concept {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 13px;
  }

  /* SP: Hide accent line (not in Figma SP design) */
  .marine-concept::after {
    display: none;
  }

  /* SP: Main container - use display:contents to flatten hierarchy */
  .marine-concept-main {
    display: contents;
  }

  /* SP: MIYAKO BLUE YOUR WAY - scrolling text, order: 1 */
  .marine-concept-heading {
    order: 1;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 0;
    margin-top: 0;
  }

  .marine-concept-heading::before {
    content: 'MIYAKO BLUEYOURWAY   MIYAKO BLUEYOURWAY   MIYAKO BLUEYOURWAY   ';
    animation: scroll-text 20s linear infinite;
  }

  /* SP: Slider below heading, order: 2 */
  .marine-concept-image {
    order: 2;
    flex: none;
    width: 100%;
    padding: 0 20px 0 0;
  }

  .marine-concept-image img {
    aspect-ratio: 2 / 1;
  }

  /* SP: Text below slider, order: 3 */
  .marine-concept-text {
    order: 3;
    padding: 30px 20px;
  }

  .marine-concept-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .marine-concept-title {
    text-align: left;
    align-self: stretch;
    font-size: 20px;
    letter-spacing: 1.5px;
    line-height: 24px;
  }

  .marine-concept-desc {
    text-align: left;
    align-self: stretch;
    font-size: 14px;
    letter-spacing: 1.05px;
    line-height: 36px;
  }

  /* SP: Gallery, order: 4 - 画面端から端まで余白なし */
  .marine-concept-gallery {
    order: 4;
    margin-bottom: 40px;
    padding: 0;
  }

  .marine-concept-gallery-track {
    justify-content: flex-start;
    gap: 4px;
  }

  .marine-concept-gallery-track img {
    width: calc((100% - 8px) / 3);
    height: auto;
    aspect-ratio: 120 / 85;
    object-fit: cover;
  }

  .marine-tour {
    padding: 60px 20px;
  }

  .marine-tour-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .marine-tour-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .marine-tour-title-row {
    display: contents;
  }

  .marine-tour-title {
    order: 1;
    font-size: 32px;
    letter-spacing: 2.4px;
    line-height: 50px;
  }

  .marine-tour-title-ja {
    order: 2;
    text-align: center;
    font-size: 14px;
    letter-spacing: 1.05px;
    line-height: 16.8px;
  }

  .marine-tour-link {
    order: 3;
    margin-left: 0;
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: 1.05px;
    line-height: 32px;
  }

  .marine-tour-link::after {
    width: 100%;
    left: 0;
  }

  .marine-tour-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .marine-tour-card:nth-child(even) {
    margin-top: 0;
  }

  .marine-tour-card-title {
    font-size: 20px;
    letter-spacing: 1.5px;
    line-height: 24px;
  }

  .marine-tour-card-desc {
    font-size: 14px;
    letter-spacing: 1.05px;
    line-height: 28px;
  }

}

/* ========================================
   Responsive - Small Mobile (max-width: 480px)
   Figma SP design is 375px - 768px values are correct
   ======================================== */
