:root {
  --boat-navy: #02162e;
  --boat-gold: #c89b3c;
  --boat-cream: #f7f4ed;
  --boat-white: #ffffff;
  --boat-text: #4b4b4b;
  --boat-line: rgba(2, 22, 46, 0.18);
}

.boat-page {
  overflow: hidden;
  color: var(--boat-navy);
  background: var(--boat-cream);
}

.boat-container {
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}


/* ==================================================
   HERO
================================================== */

.boat-hero {
  position: relative;
  display: flex;
  align-items: flex-start;

  width: 100%;
  min-height: 660px;
  padding-top: 50px;

  overflow: hidden;

  /* 白いグラデーションを削除 */
  background-image: url("../images/w32-hero.jpg");
  background-repeat: no-repeat;
  background-position: 62% center;
  background-size: cover;
}

/* 画像全体にネイビーを重ねる */
.boat-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(2, 22, 46, 0.78) 0%,
      rgba(2, 22, 46, 0.66) 38%,
      rgba(2, 22, 46, 0.42) 68%,
      rgba(2, 22, 46, 0.18) 100%
    );

  pointer-events: none;
}


/* ---------- パンくず ---------- */

.boat-breadcrumb {
  position: absolute;
  top: 26px;
  left: max(40px, calc((100% - 1400px) / 2));
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 10px;

  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 500;
}


/* ---------- ヒーロー内の文章 ---------- */

.boat-hero__content {
  position: relative;
  z-index: 3;

  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;

  /* 上からの位置 */
  padding-top: 70px;

  /* 左からの位置 */
  padding-left: 60px;
  padding-right: 70px;
}

.boat-hero__label {
  width: fit-content;
  margin: 0 0 22px;

  color: var(--boat-gold);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.boat-hero h1 {
  margin: 0 0 12px;

  color: var(--boat-white);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(52px, 6vw, 65px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.03em;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 0, 0, 0.22);
}

.boat-hero__type {
  margin: 0 0 18px;

  color: var(--boat-white);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(23px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.5;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 0, 0, 0.22);
}

.boat-hero__gold-line {
  display: block;
  width: 72px;
  height: 3px;
  margin-bottom: 30px;

  background: var(--boat-gold);
}

.boat-hero__description {
  color: var(--boat-white);
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.02em;

  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.5),
    0 0 12px rgba(0, 0, 0, 0.25);
}
/* ==================================================
   PERFORMANCE
================================================== */

.boat-performance {
  padding: 54px 0;
  background: var(--boat-cream);
}

.boat-performance__inner {
  display: grid;
  grid-template-columns: 28% 36% 36%;
  align-items: stretch;
  border-bottom: 1px solid var(--boat-line);
}

.boat-performance__title,
.boat-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.boat-performance__title {
  align-items: flex-start;
  border-right: 1px solid var(--boat-line);
}

.boat-performance__title p {
  margin: 0;
  color: var(--boat-gold);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.boat-rating {
  border-right: 1px solid var(--boat-line);
}

.boat-rating:last-child {
  border-right: 0;
}

.boat-rating h2 {
  margin: 0 0 12px;
  color: var(--boat-navy);
  font-size: 18px;
  font-weight: 700;
}

.boat-rating__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #b8b8b8;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.boat-rating__stars .is-active {
  color: var(--boat-gold);
}


/* ==================================================
   SECTION HEADING
================================================== */

.boat-section-heading {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.boat-section-heading h2 {
  flex-shrink: 0;
  margin: 0;
  color: var(--boat-gold);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.boat-section-heading span {
  width: 100%;
  height: 1px;
  background: var(--boat-line);
}


/* ==================================================
   EQUIPMENT
================================================== */

.boat-equipment {
  padding: 24px 0 75px;
  background: var(--boat-cream);
}

.boat-equipment__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.boat-equipment__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 190px;
  padding: 26px 20px;
  border-right: 1px solid var(--boat-line);
  border-bottom: 1px solid var(--boat-line);
  text-align: center;
}

.boat-equipment__item:nth-child(4n) {
  border-right: 0;
}

.boat-equipment__item:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.boat-equipment__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
}

.boat-equipment__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.boat-equipment__item p {
  margin: 0;
  color: var(--boat-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}


/* ==================================================
   GALLERY
================================================== */

.boat-gallery {
  padding: 65px 0 50px;
  background: var(--boat-navy);
}

.boat-gallery .boat-section-heading {
  margin-bottom: 34px;
}

.boat-gallery .boat-section-heading h2 {
  color: var(--boat-gold);
}

.boat-gallery .boat-section-heading span {
  background: rgba(255, 255, 255, 0.28);
}

.boat-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.boat-gallery__grid img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.boat-gallery__grid img:hover {
  opacity: 0.86;
  
}




/* ==================================================
   CAPACITY
================================================== */

.boat-capacity {
  padding: 70px 0 35px;
  background: var(--boat-cream);
}

.boat-capacity__box {
  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;
}

.boat-capacity__box img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}


.boat-capacity__title {
  color: var(--boat-navy);
  font-size: 20px;
  font-weight: 700;
  font-family: "Shippori Mincho", serif;
}

.boat-capacity__number {
  color: var(--boat-gold);
  font-family: "Shippori Mincho", serif;
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
}

.boat-capacity__unit {
  align-self: flex-end;
  margin-bottom: 13px;
  color: var(--boat-navy);
  font-size: 18px;
  font-weight: 700;
  font-family: "Shippori Mincho", serif;
}


/* ==================================================
   BACK BUTTON
================================================== */

.boat-back {
  padding: 20px 0 90px;
  background: var(--boat-cream);
}

.boat-back__button {
  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);
  color: var(--boat-white);  
}


/* ==================================================
   船ページ切り替えナビ
================================================== */

.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) {

  .boat-container,
  .boat-hero__content {
    width: min(100% - 56px, 960px);
  }

  .boat-hero {
    min-height: 580px;
    background-position: 58% center;
  }

  .boat-breadcrumb {
    left: 28px;
  }

  .boat-performance__inner {
    grid-template-columns: 26% 37% 37%;
  }

  .boat-equipment__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boat-equipment__item:nth-child(4n) {
    border-right: 1px solid var(--boat-line);
  }

  .boat-equipment__item:nth-child(2n) {
    border-right: 0;
  }

  .boat-equipment__item:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--boat-line);
  }

  .boat-equipment__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .boat-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boat-gallery__grid img {
    height: 240px;
  }
  .boat-hero__content{

    width: calc(100% - 60px);

    padding-left: 80px;
    padding-right: 80px;

  }

}


/* ==================================================
   スマートフォン：768px以下
================================================== */

@media screen and (max-width: 768px) {

.boat-container,
  .boat-hero__content {
    width: min(100% - 40px, 700px);
  }

  .boat-hero {
    position: relative;

    min-height: 620px;
    padding: 0;

    background-image: url("../images/w32-hero.jpg");
    background-position: 62% center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  /* ヒーロー内の文章を上側へ配置 */
  .boat-hero__content {
    position: absolute;
    top: 130px;
    left: 50%;
    z-index: 2;

    width: calc(100% - 40px);
    padding: 0 25px;

    transform: translateX(-50%);
  }

  .boat-hero__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(2, 22, 46, 0.76) 0%,
        rgba(2, 22, 46, 0.62) 45%,
        rgba(2, 22, 46, 0.36) 72%,
        rgba(2, 22, 46, 0.12) 100%
      );
  }

  .boat-hero h1,
  .boat-hero__type,
  .boat-hero__description {
    color: var(--boat-white);

    text-shadow:
      0 2px 5px rgba(0, 0, 0, 0.45),
      0 0 12px rgba(0, 0, 0, 0.22);
  }

  .boat-hero__label {
    margin-bottom: 12px;
    color: var(--boat-gold);
    font-size: 15px;
  }

  .boat-hero h1 {
    margin-bottom: 8px;
    font-size: 42px;
  }

  .boat-hero__type {
    font-size: 22px;
  }

  .boat-hero__gold-line {
    width: 55px;
    margin-bottom: 18px;
    background: var(--boat-gold);
  }

  .boat-hero__description {
    font-size: 13px;
    line-height: 1.8;
  }

  .boat-hero__description br {
    display: none;
  }


  .boat-performance {
    padding: 35px 0;
  }

  .boat-performance__inner {
    grid-template-columns: 1fr;
  }

  .boat-performance__title,
  .boat-rating {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--boat-line);
  }

  .boat-performance__title {
    align-items: center;
  }

  .boat-rating:last-child {
    border-bottom: 0;
  }

  .boat-equipment {
    padding-bottom: 55px;
  }

  .boat-equipment__item {
    min-height: 155px;
    padding: 20px 10px;
  }

  .boat-equipment__icon {
    width: 58px;
    height: 58px;
  }

  .boat-equipment__item p {
    font-size: 12px;
  }

  .boat-gallery {
    padding: 50px 0 40px;
  }

  .boat-gallery__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .boat-gallery__grid img {
    height: 280px;
  }

  .boat-gallery__grid img:hover {
    opacity: 1;
    transform: none;
  }

  .boat-capacity {
    padding-top: 50px;
  }

  .boat-capacity__box {
    min-height: 125px;
    padding: 24px 25px;
    gap: 13px;
  }

  .boat-capacity__box img {
    width: 40px;
    height: 40px;
  }

  .boat-capacity__title {
    font-size: 17px;
  }

  .boat-capacity__number {
    font-size: 48px;
  }

  .boat-capacity__unit {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .boat-back {
    padding-bottom: 65px;
  }

  .boat-back__button {
    width: 100%;
    min-height: 52px;
    font-size: 13px;
    
    background:#C89B3C;
    border-color:#C89B3C;
    color:#fff;
    transform:none;
  

  }

  .boat-back__button:hover {
    transform: none;
  }
  .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-hero__content{

    width: calc(100% - 40px);

    padding-left: 45px;
    padding-right: 45px;

  }


}


/* ==================================================
   小さいスマートフォン：480px以下
================================================== */

@media screen and (max-width: 480px) {

  .boat-container {
    width: calc(100% - 32px);
  }
  

  .boat-hero {
    background-image: url("../images/w32-hero-mobile.jpg");
    background-position: 68% 30%;
    background-size: cover;
    background-repeat: no-repeat;
    align-items:flex-start;
    min-height:550px;
    padding-top:90px;   /* ←105pxより小さくする */
    padding-bottom:30px;
  }
  .boat-hero__content {
  width: calc(100% - 32px);
  margin: 0 auto;
  margin-top: -45px;

  padding-left: 25px;   /* 40px → 25px */
  padding-right: 40px;
}

  /* 小さい画面では少し濃くする */
  .boat-hero__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(2, 22, 46, 0.80) 0%,
        rgba(2, 22, 46, 0.66) 48%,
        rgba(2, 22, 46, 0.40) 75%,
        rgba(2, 22, 46, 0.16) 100%
      );
  }

  .boat-breadcrumb {
    left: 16px;
  }

  .boat-hero__label {
    font-size: 13px;
  }

  .boat-hero h1 {
    font-size: 34px;
  }

  .boat-hero__type {
    font-size: 19px;
  }

  .boat-hero__description {
    font-size: 12px;
  }

  .boat-performance__title p {
    font-size: 16px;
  }

  .boat-rating h2 {
    font-size: 16px;
  }

  .boat-rating__stars {
    font-size: 31px;
  }

  .boat-section-heading {
    gap: 18px;
    margin-bottom: 30px;
  }

  .boat-section-heading h2 {
    font-size: 15px;
  }

  .boat-equipment__item {
    min-height: 140px;
    padding: 18px 8px;
  }

  .boat-equipment__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .boat-equipment__item p {
    font-size: 11px;
  }

  .boat-gallery__grid img {
    height: 235px;
  }

  .boat-gallery__dots {
    margin-top: 20px;
  }

  .boat-capacity__box {
    min-height: 112px;
    padding: 20px 18px;
  }

  .boat-capacity__box img {
    width: 36px;
    height: 36px;
  }

  .boat-capacity__title {
    font-size: 15px;
  }

  .boat-capacity__number {
    font-size: 42px;
  }

  .boat-capacity__unit {
    font-size: 13px;
  }
  
   .boat-switch{

      width:40px;
      height:64px;

      padding:0 8px;

  }

  .boat-switch-arrow{

      font-size:34px;

  }



  
  
}
/* ==================================================
   小さいスマートフォン：430px以下
================================================== */

@media screen and (max-width:430px){

  .boat-hero {
    background-position: 68% 28%;
    align-items: flex-start;
    min-height: 480px;
    padding-top: 105px;
    padding-bottom: 30px;
  }


   .boat-hero__content {
    width: calc(100% - 32px);
    margin: -65px auto 0;

    padding-top: -10px;
    padding-left: 22px;
    padding-right: 20px;
  }

  .boat-hero__label {
    margin-bottom: 8px;
  }

  .boat-hero__gold-line {
    margin-bottom: 15px;
  }

  .boat-hero__description {
    line-height: 1.75;
  }
  
}


/* ==================================================
   小さいスマートフォン：390px以下
================================================== */

@media screen and (max-width:390px){

  .boat-hero {
    background-position: 68% 28%;
    align-items: flex-start;
    min-height: 480px;
    padding-top: 105px;
    padding-bottom: 30px;
  }


   .boat-hero__content {
    width: calc(100% - 32px);
    margin: -65px auto 0;

    padding-top: -10px;
    padding-left: 22px;
    padding-right: 20px;
  }


}
/* ==================================================
   さらに小さいスマートフォン：360px以下
================================================== */

@media screen and (max-width: 360px) {

  .boat-container {
    width: calc(100% - 26px);
  }
  .boat-hero {
    background-position: 68% 28%;
    align-items: flex-start;
    min-height: 480px;
    padding-top: 105px;
    padding-bottom: 30px;
  }


   .boat-hero__content {
    width: calc(100% - 32px);
    margin: -65px auto 0;

    padding-top: -10px;
    padding-left: 22px;
    padding-right: 20px;
  }
  

  .boat-hero h1 {
    font-size: 30px;
  }

  .boat-hero__type {
    font-size: 17px;
  }

  .boat-hero__description {
    font-size: 11px;
  }

  .boat-equipment__item {
    min-height: 132px;
  }

  .boat-equipment__icon {
    width: 48px;
    height: 48px;
  }

  .boat-equipment__item p {
    font-size: 10px;
  }

  .boat-gallery__grid img {
    height: 210px;
  }

  .boat-capacity__box {
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .boat-capacity__number {
    font-size: 38px;
  }

  .boat-back__button {
    font-size: 12px;
  }
}