:root {
  --boat-navy: #02162e;
  --boat-gold: #c89b3c;
  --boat-ivory: #f7f4ed;
  --boat-white: #ffffff;
  --boat-text: #4b4b4b;
  --boat-line: #d4cec2;
  --boat-light-line: #ded9cf;
}


/* ==================================================
   基本設定
================================================== */

.boat-detail {
  overflow: hidden;
  color: var(--boat-navy);
  background: var(--boat-ivory);
}

.boat-detail img {
  display: block;
  max-width: 100%;
}

.boat-detail a {
  color: inherit;
  text-decoration: none;
}

.boat-container {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
}


/* ==================================================
   HERO
================================================== */

.boat-hero {
  position: relative;
  width: 100%;
  min-height: 690px;
  overflow: hidden;
  color: var(--boat-white);
}

.boat-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.boat-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(2, 22, 46, 0.72) 0%,
      rgba(2, 22, 46, 0.39) 33%,
      rgba(2, 22, 46, 0.08) 65%,
      rgba(2, 22, 46, 0.03) 100%
    );
  pointer-events: none;
}


/* ---------- パンくず ---------- */

.breadcrumb {
  position: absolute;
  top: 30px;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: min(1180px, calc(100% - 80px));
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--boat-gold);
}

.breadcrumb-arrow {
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}


/* ---------- ヒーロー内テキスト ---------- */

.boat-hero-content {
  position: absolute;
  top: 35%;
  left: 50%;
  z-index: 3;
  width: min(1180px, calc(100% - 80px));
  transform: translate(-46%, -42%);
}

.boat-category {
  margin: 0 0 18px;
  color: var(--boat-gold);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.boat-title {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(46px, 5vw, 65px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.boat-number {
  margin: 12px 0 0;
  font-family: "Shippori Mincho", serif;
  font-size: 33px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.boat-gold-line {
  display: block;
  width: 85px;
  height: 4px;
  margin-top: 25px;
  background: var(--boat-gold);
}

.boat-lead {
  margin-top: 35px;
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.boat-lead p {
  margin: 0;
}


/* ==================================================
   詳細部分
================================================== */

.boat-information {
  padding: 58px 0 100px;
  background: var(--boat-ivory);
}


/* ==================================================
   セクションタイトル
================================================== */

.section-heading-row {
  display: flex;
  align-items: center;
  gap: 38px;
}

.boat-section-title {
  flex-shrink: 0;
  margin: 0;
  color: var(--boat-gold);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.section-title-line {
  width: 100%;
  height: 1px;
  background: var(--boat-line);
}


/* ==================================================
   PERFORMANCE
================================================== */

.performance-section {
  padding-bottom: 52px;
  border-bottom: 1px solid var(--boat-line);
}

.performance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  margin-left: 215px;
}

.performance-item {
  min-width: 0;
  padding: 0 45px;
  text-align: center;
}

.performance-item + .performance-item {
  border-left: 1px solid var(--boat-line);
}

.performance-name {
  margin: 0 0 13px;
  font-family: "Shippori Mincho", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.performance-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.star {
  color: #aeb3b8;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1;
}

.star.active {
  color: var(--boat-gold);
}


/* ==================================================
   EQUIPMENT
================================================== */

.equipment-section {
  padding-top: 47px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 42px;
}

.equipment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 170px;
  padding: 16px 14px 20px;
  text-align: center;
}

.equipment-item:not(:nth-child(7n + 1)) {
  border-left: 1px solid var(--boat-light-line);
}

.equipment-item:nth-child(n + 8) {
  margin-top: 28px;
}

.equipment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  margin-bottom: 13px;
}

.equipment-icon img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.equipment-name {
  margin: 0;
  color: var(--boat-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
}


/* ==================================================
   GALLERY
================================================== */

.boat-gallery-section {
  padding-top: 70px;
}

.boat-gallery {
  margin-top: 38px;
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #dddddd;
  border-radius: 5px;
}

.gallery-item img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.gallery-item:hover img {
  opacity: 0.92;
  
}






/* ==================================================
   定員
================================================== */

.boat-capacity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 130px;
  margin-top: 45px;
  padding: 28px 30px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--boat-gold);
  border-radius: 7px;
}

.capacity-icon {
  width: 72px;
  color: var(--boat-gold);
}

.capacity-icon svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capacity-label {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.capacity-number {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  font-family: "Shippori Mincho", serif;
}

.capacity-number strong {
  color: var(--boat-gold);
  font-size: 67px;
  font-weight: 500;
  line-height: 1;
}

.capacity-number span {
  font-size: 28px;
  font-weight: 600;
}


/* ==================================================
   戻るボタン
================================================== */

.boat-back-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.boat-back-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(560px, 100%);
  min-height: 70px;
  margin: 0 auto;
  border: 1px solid var(--boat-navy);
  border-radius: 4px;
  font-family: "Shippori Mincho", serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  background:#02162E;
  color:#fff;
  transition:.3s;
}

.boat-back-button:hover{
    background:#C89B3C;
    border-color:#C89B3C;
    color:#fff;
    transform:translateY(-2px);

    
    
}

.boat-back-arrow {
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translateY(-53%);
  font-family: sans-serif;
  font-size: 38px;
  font-weight: 200;
}



.boat-back-button,
.boat-back-button span {
  color: #ffffff !important;
}

.boat-back-button:hover,
.boat-back-button:hover span {
  color: #ffffff !important;
}
/* ==================================================
   船ページ切り替えナビ
================================================== */

.boat-switch {
  position: absolute;
  top: 50%;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 14px;

  width: 58px;
  height: 92px;
  padding: 0 16px;

  overflow: hidden;

  color: #ffffff;
  background: rgba(2, 22, 46, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);

  transform: translateY(-50%);

  transition:
    width 0.4s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}


/* ---------- 左側 ---------- */

.boat-switch-left {
  left: 0;

  justify-content: flex-start;

  border-left: none;
  border-radius: 0 14px 14px 0;
}


/* ---------- 右側 ---------- */

.boat-switch-right {
  right: 0;

  justify-content: flex-end;

  border-right: none;
  border-radius: 14px 0 0 14px;
}


/* ---------- 矢印 ---------- */

.boat-switch-arrow {
  flex-shrink: 0;

  font-family: Arial, sans-serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}


/* ---------- 船名 ---------- */

.boat-switch-info {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;

  min-width: 145px;

  opacity: 0;

  transition:
    opacity 0.25s ease,
    transform 0.4s ease;
}

.boat-switch-info small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  opacity: 0.72;
}

.boat-switch-info strong {
  margin-top: 5px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  white-space: nowrap;
}


/* 左側の文字は左へ隠しておく */

.boat-switch-left .boat-switch-info {
  transform: translateX(-15px);
}


/* 右側の文字は右へ隠しておく */

.boat-switch-right .boat-switch-info {
  text-align: right;
  transform: translateX(15px);
}


/* ==================================================
   マウスを乗せたとき
================================================== */

.boat-switch:hover {
  width: 225px;

  background: rgba(2, 22, 46, 0.78);
  border-color: rgba(200, 155, 60, 0.85);
}

.boat-switch:hover .boat-switch-info {
  opacity: 1;
  transform: translateX(0);
}

.boat-switch:hover .boat-switch-arrow {
  color: var(--boat-gold);
}
/* ==================================================
   タブレット：1024px以下
================================================== */

@media screen and (max-width: 1024px) {

  /* ---------- 共通幅 ---------- */

  .breadcrumb,
  .boat-container {
    width: min(960px, calc(100% - 56px));
  }

  .boat-hero-content {
    width: min(960px, calc(100% - 56px));
    padding-right: 80px;
    padding-left: 80px;
    box-sizing: border-box;
  }


  /* ---------- ヒーロー ---------- */

  .boat-hero {
    min-height: 620px;
  }

  .boat-hero-image {
    object-position: 58% center;
  }


  /* ---------- 性能 ---------- */

  .performance-list {
    margin-left: 0;
  }


  /* ---------- 装備 ---------- */

  .equipment-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* PC用の7列ボーダーを解除 */
  .equipment-item:not(:nth-child(7n + 1)) {
    border-left: 0;
  }

  /* 4列表示の2～4列目に縦線 */
  .equipment-item:not(:nth-child(4n + 1)) {
    border-left: 1px solid var(--boat-light-line);
  }

  .equipment-item:nth-child(n + 5) {
    margin-top: 28px;
  }


  /* ---------- ギャラリー ---------- */

  .gallery-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item:nth-child(n + 4) {
    display: none;
  }

  .gallery-item img {
    height: 250px;
  }

}


/* ==================================================
   スマートフォン：768px以下
================================================== */

@media screen and (max-width: 768px) {

  /* ---------- 共通幅 ---------- */

  .breadcrumb,
  .boat-container {
    width: min(700px, calc(100% - 40px));
  }

  .boat-hero-content {
    top: 52%;
    width: min(700px, calc(100% - 40px));

    /* 左右の船切り替えボタンを避ける */
    padding-right: 45px;
    padding-left: 55px;

    box-sizing: border-box;
    transform: translate(-50%, -43%);
  }


  /* ---------- ヒーロー ---------- */

  .boat-hero {
    min-height: 590px;
  }

  .boat-hero-image {
    object-position: 65% center;
  }

  .boat-hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(2, 22, 46, 0.81) 0%,
        rgba(2, 22, 46, 0.52) 62%,
        rgba(2, 22, 46, 0.15) 100%
      );
  }


  /* ---------- パンくず ---------- */

  .breadcrumb {
    top: 20px;
    gap: 6px;
    font-size: 11px;
  }

  .breadcrumb-arrow {
    font-size: 16px;
  }


  /* ---------- ヒーロー内テキスト ---------- */

  .boat-category {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .boat-title {
    font-size: clamp(32px, 10vw, 45px);
    letter-spacing: 0.03em;
  }

  .boat-number {
    margin-top: 8px;
    font-size: 25px;
  }

  .boat-gold-line {
    width: 60px;
    height: 3px;
    margin-top: 18px;
  }

  .boat-lead {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.9;
  }


  /* ---------- 船切り替えボタン ---------- */

  .boat-switch {
    width: 42px;
    height: 66px;
    padding: 0 10px;
  }

  .boat-switch-arrow {
    font-size: 36px;
  }

  .boat-switch-info {
    display: none;
  }

  .boat-switch:hover {
    width: 42px;
  }


  /* ---------- 船情報エリア ---------- */

  .boat-information {
    padding: 42px 0 70px;
  }


  /* ---------- 見出し ---------- */

  .section-heading-row {
    gap: 20px;
  }

  .boat-section-title {
    font-size: 17px;
  }


  /* ---------- 性能 ---------- */

  .performance-section {
    padding-bottom: 38px;
  }

  .performance-list {
    grid-template-columns: 1fr;
    margin-top: 23px;
  }

  .performance-item {
    padding: 20px 10px;
  }

  .performance-item + .performance-item {
    border-top: 1px solid var(--boat-line);
    border-left: 0;
  }

  .performance-name {
    margin-bottom: 12px;
    font-size: 17px;
  }

  .star {
    font-size: 32px;
  }


  /* ---------- 装備 ---------- */

  .equipment-section {
    padding-top: 38px;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
  }

  /* タブレット用の4列ボーダーを解除 */
  .equipment-item:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  /* 2列表示の右側に縦線 */
  .equipment-item:nth-child(even) {
    border-left: 1px solid var(--boat-light-line);
  }

  .equipment-item:nth-child(n + 3) {
    margin-top: 20px;
  }

  .equipment-item {
    min-height: 145px;
    padding: 16px 8px;
  }

  .equipment-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 10px;
  }

  .equipment-icon img {
    width: 47px;
    height: 47px;
  }

  .equipment-name {
    font-size: 13px;
  }


  /* ---------- ギャラリー ---------- */

  .boat-gallery-section {
    padding-top: 50px;
  }

  .boat-gallery {
    margin-top: 25px;
  }

  .gallery-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-track::-webkit-scrollbar {
    display: none;
  }

  .gallery-item,
  .gallery-item:nth-child(n + 4) {
    display: block;
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .gallery-item img {
    height: 245px;
  }

  .gallery-item:hover img {
    opacity: 1;
    transform: none;
  }

  .gallery-dots {
    gap: 11px;
    margin-top: 20px;
  }

  .gallery-dot {
    width: 10px;
    height: 10px;
  }


  /* ---------- 定員 ---------- */

  .boat-capacity {
    min-height: 105px;
    margin-top: 36px;
    padding: 22px 15px;
    gap: 18px;
  }

  .capacity-icon {
    width: 50px;
  }

  .capacity-label {
    font-size: 22px;
  }

  .capacity-number {
    gap: 8px;
  }

  .capacity-number strong {
    font-size: 49px;
  }

  .capacity-number span {
    font-size: 21px;
  }


  /* ---------- 戻るボタン ---------- */

  .boat-back-wrap {
    margin-top: 24px;
  }

  .boat-back-button {
    min-height: 60px;
    padding: 13px 45px;
    font-size: 16px;
  }

  .boat-back-button:hover {
    color: #ffffff;
    background: #c89b3c;
    border-color: #c89b3c;
    transform: none;
  }

  .boat-back-arrow {
    left: 18px;
    font-size: 31px;
  }

}


/* ==================================================
   小さいスマートフォン：480px以下
================================================== */

@media screen and (max-width: 480px) {

  /* ---------- 共通幅 ---------- */

  .breadcrumb,
  .boat-container {
    width: calc(100% - 32px);
  }

  .boat-hero-content{
    width: calc(100% - 14px);
    padding-left: 42px;
    padding-right: 18px;
    
    box-sizing: border-box;
    transform: translate(-52%, -102%);
  }

  .boat-lead{
    margin-top:20px;
  }

  /* ---------- ヒーロー ---------- */

  .boat-hero {
    min-height: 550px;
  }

  .boat-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 62%;
  transform: scale(1.3);   
}


  /* ---------- ヒーロー内テキスト ---------- */

  .boat-category {
    font-size: 14px;
  }

  .boat-title {
    font-size: 34px;
  }

  .boat-number {
    font-size: 22px;
  }

  .boat-lead {
    font-size: 13px;
  }


  /* ---------- 船切り替えボタン ---------- */

  .boat-switch {
    width: 40px;
    height: 64px;
    padding: 0 8px;
  }

  .boat-switch-arrow {
    font-size: 34px;
  }

  .boat-switch:hover {
    width: 40px;
  }


  /* ---------- 見出し ---------- */

  .section-heading-row {
    gap: 16px;
  }

  .boat-section-title {
    font-size: 15px;
  }


  /* ---------- 性能 ---------- */

  .performance-name {
    font-size: 16px;
  }

  .star {
    font-size: 29px;
  }


  /* ---------- 装備 ---------- */

  .equipment-item {
    min-height: 136px;
    padding: 14px 7px;
  }

  .equipment-icon {
    width: 50px;
    height: 50px;
  }

  .equipment-icon img {
    width: 43px;
    height: 43px;
  }

  .equipment-name {
    font-size: 12px;
  }


  /* ---------- ギャラリー ---------- */

  .gallery-item {
    flex-basis: 88%;
  }

  .gallery-item img {
    height: 225px;
  }


  /* ---------- 定員 ---------- */

  .boat-capacity {
    gap: 13px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .capacity-icon {
    width: 44px;
  }

  .capacity-label {
    font-size: 19px;
  }

  .capacity-number strong {
    font-size: 44px;
  }

  .capacity-number span {
    font-size: 18px;
  }


  /* ---------- 戻るボタン ---------- */

  .boat-back-button {
    min-height: 56px;
    padding-right: 38px;
    padding-left: 38px;
    font-size: 14px;
  }

  .boat-back-arrow {
    left: 15px;
    font-size: 28px;
  }

}


/* ==================================================
   430px以下
================================================== */
@media screen and (max-width:430px){

  .boat-hero-content{
    width: calc(100% - 14px);
    padding-left: 42px;
    padding-right: 18px;
    box-sizing: border-box;

    /* ←ここを変更 */
    transform: translate(-52%, -100%);
  }

  .boat-lead{
    margin-top:18px;
  }

}



/* ==================================================
   390px以下
================================================== */

@media screen and (max-width:390px){

  .boat-hero-content{
    top: 45%;
    left:55%;
    transform:translate(-54%, -90%);
    padding-left:28px;
    padding-right:28px;
  }

  .boat-title{
    font-size:30px;
  }

  .boat-lead{
    font-size:12px;
    line-height:1.9;
  }

}

/* ==================================================
   さらに小さいスマートフォン：360px以下
================================================== */

@media screen and (max-width: 360px) {

  /* ---------- 共通幅 ---------- */

  .breadcrumb,
  .boat-container {
    width: calc(100% - 26px);
  }

  .boat-hero-content {
    top: 45%;
    left: 50%;
    width: calc(100% - 20px);

    padding-right: 20px;
    padding-left: 34px;

    box-sizing: border-box;
    transform: translate(-52%, -85%);
  }


  /* ---------- ヒーロー ---------- */

  .boat-hero {
    min-height: 520px;
  }


  /* ---------- ヒーロー内テキスト ---------- */

  .boat-title {
    font-size: 29px;
  }

  .boat-number {
    font-size: 20px;
  }

  .boat-lead {
    font-size: 12px;
  }


  /* ---------- 船切り替えボタン ---------- */

  .boat-switch {
    width: 36px;
    height: 58px;
    padding: 0 7px;
  }

  .boat-switch-arrow {
    font-size: 31px;
  }

  .boat-switch:hover {
    width: 36px;
  }


  /* ---------- 装備 ---------- */

  .equipment-item {
    min-height: 130px;
  }

  .equipment-name {
    font-size: 11px;
  }


  /* ---------- ギャラリー ---------- */

  .gallery-item img {
    height: 205px;
  }


  /* ---------- 定員 ---------- */

  .capacity-icon {
    width: 39px;
  }

  .capacity-label {
    font-size: 17px;
  }

  .capacity-number strong {
    font-size: 40px;
  }

  .capacity-number span {
    font-size: 16px;
  }


  /* ---------- 戻るボタン ---------- */

  .boat-back-button {
    font-size: 13px;
  }

}