
/* =========================================================
   ② 船のカテゴリー 専用CSS
   既存サイトの共通CSSから見た目を隔離するため、
   #ship-category .hc-* のみで完結させる。
   ========================================================= */

#ship-category{
  background:#fff;
  color:#111;
  padding:34px 0 18px !important;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  line-height:1.5 !important;
}

#ship-category, #ship-category *{ box-sizing:border-box; }

#ship-category .hc-wrap{
  width:min(1600px, calc(100% - 36px));
  margin:0 auto;
}

#ship-category .hc-header{
  text-align:center;
}

#ship-category .hc-title{
  margin:0 !important;
  color:#102653 !important;
  font-family:"Yu Mincho","Hiragino Mincho ProN","MS PMincho",serif !important;
  font-size:56px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  letter-spacing:.04em !important;
  text-align:center !important;
}

#ship-category .hc-ornament{
  display:flex;
  align-items:center;
  gap:22px;
  width:76%;
  margin:16px auto 14px;
  color:#c49a58;
}
#ship-category .hc-ornament::before,
#ship-category .hc-ornament::after{
  content:"";
  display:block;
  height:1px;
  background:#c49a58;
  flex:1;
}
#ship-category .hc-ornament span{
  font:700 26px/1 serif;
  letter-spacing:.14em;
  white-space:nowrap;
}

#ship-category .hc-intro{
  max-width:1266px;
  margin:0 auto 22px !important;
  color:#15224b !important;
  font-family:"Yu Mincho","Hiragino Mincho ProN","MS PMincho",serif !important;
  font-size:24px !important;
  font-weight:400 !important;
  line-height:1.65 !important;
  text-align:center !important;
}

#ship-category .hc-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}

#ship-category .hc-card{
  --hc-accent:#1049a8;
  --hc-soft:#f4f7ff;
  display:grid;
  grid-template-rows:
    224px  /* 完成上部画像：タイトル帯＋船＋背景 */
    56px   /* 船名 */
    47px   /* 良いところ */
    195px  /* 本文 */
    47px   /* 知っておきたいこと */
    174px  /* 本文 */
    47px   /* 向いている人 */
    99px   /* 本文 */
    87px;  /* stats */
  min-width:0;
  background:#fff;
  border:1px solid #d7d7d7;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(0,0,0,.14);
}

#ship-category .hc-card--casual{ --hc-accent:#1049a8; --hc-soft:#f4f7ff; }
#ship-category .hc-card--premium{ --hc-accent:#2f6d25; --hc-soft:#f3f8ef; }
#ship-category .hc-card--luxury{ --hc-accent:#67116e; --hc-soft:#fbf2fc; }

#ship-category .hc-visual{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:fill !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}

#ship-category .hc-ship-name{
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#102653 !important;
  font-family:Georgia,"Times New Roman","Yu Mincho",serif !important;
  font-size:29px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  text-align:center !important;
}
#ship-category .hc-card--premium .hc-ship-name{ color:#1f4f1d !important; }
#ship-category .hc-card--luxury .hc-ship-name{ color:#55115b !important; }

#ship-category .hc-block{ display:contents; }

#ship-category .hc-subtitle{
  margin:0 !important;
  padding:0 22px !important;
  display:flex !important;
  align-items:center !important;
  gap:11px !important;
  color:var(--hc-accent) !important;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  font-size:20px !important;
  font-weight:700 !important;
  line-height:1 !important;
  text-align:left !important;
}

#ship-category .hc-mark{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 32px;
  font-size:22px;
}

#ship-category .hc-list{
  list-style:disc !important;
  margin:0 !important;
  padding:2px 25px 0 49px !important;
  color:#111 !important;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  font-size:16px !important;
  font-weight:400 !important;
  line-height:1.52 !important;
  text-align:left !important;
  overflow:hidden;
}
#ship-category .hc-list li{
  display:list-item !important;
  list-style:disc !important;
  margin:0 0 2px !important;
  padding-left:1px !important;
}

#ship-category .hc-fit-text{
  margin:0 !important;
  padding:2px 28px 0 49px !important;
  color:#111 !important;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  font-size:16px !important;
  font-weight:400 !important;
  line-height:1.55 !important;
  text-align:left !important;
  overflow:hidden;
}

#ship-category .hc-stats{
  display:grid;
  grid-template-columns:1fr 1fr 1.12fr;
  background:var(--hc-soft);
  border-top:1px solid #e0e0e0;
}
#ship-category .hc-stat{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-right:1px solid #d8d8d8;
  color:var(--hc-accent);
  text-align:center;
  padding:9px 5px 8px;
}
#ship-category .hc-stat:last-child{ border-right:0; }

#ship-category .hc-stat strong{
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
#ship-category .hc-stat span{
  color:#15224b !important;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  font-size:18px !important;
  font-weight:700 !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
}
#ship-category .hc-card--premium .hc-stat span{ color:#2f5e28 !important; }
#ship-category .hc-card--luxury .hc-stat span{ color:#56105c !important; }

#ship-category .hc-note{
  margin:15px 0 0 !important;
  padding-left:16px !important;
  color:#111 !important;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif !important;
  font-size:15px !important;
  line-height:1.4 !important;
  text-align:left !important;
}

@media(max-width:900px){
  #ship-category{ padding:20px 0 14px !important; }
  #ship-category .hc-wrap{ width:calc(100% - 20px); }
  #ship-category .hc-title{ font-size:34px !important; }
  #ship-category .hc-intro{ font-size:16px !important; }
  #ship-category .hc-grid{
    grid-template-columns:repeat(3,430px);
    overflow-x:auto;
    padding-bottom:10px;
    scroll-snap-type:x mandatory;
  }
  #ship-category .hc-card{ scroll-snap-align:start; }
}

/* スマホ用「詳しく見る」ボタン：PC版では非表示（グリッド行構成に影響させない） */
#ship-category .hc-more-btn,
#ship-category .hc-swipe-hint,
#ship-category .hc-note-sp{ display:none; }

/* =========================================================
   スマートフォン専用（2026-08-28 第2段階）
   ・max-width:768px のみ。PC版（769px以上）には影響しない
   ・文章は一切削除せず、折りたたみで初期表示量のみ調整する
   ========================================================= */
@media(max-width:768px){

  /* --- セクション境界の余白（内部余白より広く） --- */
  #ship-category{ padding:28px 0 28px !important; }

  /* --- 見出し：自然な2行に収める（PC版タイトルは変更しない） --- */
  #ship-category .hc-title{
    font-size:23px !important;
    line-height:1.35 !important;
  }
  #ship-category .hc-ornament{ width:88%; margin:12px auto 12px; }
  #ship-category .hc-ornament span{ font-size:20px; }
  #ship-category .hc-intro{
    font-size:17px !important;
    line-height:1.7 !important;
    text-align:left !important;
    margin-bottom:16px !important;
  }

  /* --- カード：画面幅に収める＋固定行グリッドを解除して文字を切らない --- */
  #ship-category .hc-grid{
    grid-template-columns:repeat(3,100%);
    gap:14px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    padding-bottom:12px;
  }
  #ship-category .hc-card{
    display:flex;
    flex-direction:column;
    grid-template-rows:none;
    scroll-snap-align:start;
  }
  /* ブロックを透過させ、カード内の並びを order で組み立てる
     良いところ → 乗船人数等 → 注記 → 詳しく見る →（開いたとき）知っておきたいこと → 向いている人 */
  #ship-category .hc-block{ display:contents; }
  #ship-category .hc-visual{ order:1; }
  #ship-category .hc-ship-name{ order:2; }
  #ship-category .hc-block:nth-of-type(1) > .hc-subtitle{ order:3; }
  #ship-category .hc-block:nth-of-type(1) > .hc-list{ order:4; }
  #ship-category .hc-stats{ order:5; }
  #ship-category .hc-note-sp{ order:6; }
  #ship-category .hc-more-btn{ order:7; }
  #ship-category .hc-block:nth-of-type(2) > .hc-subtitle{ order:8; }
  #ship-category .hc-block:nth-of-type(2) > .hc-list{ order:9; }
  #ship-category .hc-block:nth-of-type(3) > .hc-subtitle{ order:10; }
  #ship-category .hc-block:nth-of-type(3) > .hc-fit-text{ order:11; }

  /* カテゴリー名＋写真：縦横比をそのまま維持 */
  #ship-category .hc-visual{
    height:auto !important;
    object-fit:contain !important;
  }

  /* 船名 */
  #ship-category .hc-ship-name{
    padding:18px 12px 16px !important;
    font-size:26px !important;
    line-height:1.25 !important;
    white-space:normal !important;
  }

  /* 小見出し（20〜22px）と本文（17px）の強弱を明確にする */
  #ship-category .hc-subtitle{
    padding:20px 18px 10px !important;
    font-size:21px !important;
    line-height:1.35 !important;
    align-items:flex-start !important;
  }
  #ship-category .hc-mark{ margin-top:-4px; }

  #ship-category .hc-list{
    padding:0 18px 10px 40px !important;
    font-size:17px !important;
    line-height:1.65 !important;
    overflow:visible;          /* 文章を切らない */
  }
  #ship-category .hc-fit-text{
    padding:0 18px 20px 40px !important;
    font-size:17px !important;
    line-height:1.7 !important;
    overflow:visible;          /* 文章を切らない */
  }
  #ship-category .hc-fit-text br{ display:none; }  /* PC用の改行は自然折返しに任せる */

  /* 注記：シニア配慮で 15px → 16px */
  #ship-category .hc-note{
    font-size:16px !important;
    line-height:1.6 !important;
  }

  /* --- 乗船人数／期間／1泊の単価：縦3段で必ず画面内に収める --- */
  #ship-category .hc-stats{ grid-template-columns:1fr; }
  #ship-category .hc-card:not(.is-open) .hc-stats{ margin-top:auto; }
  #ship-category .hc-stat{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    padding:12px 18px;
    border-right:0;
    border-bottom:1px solid #d8d8d8;
    text-align:left;
  }
  #ship-category .hc-stat:last-child{ border-bottom:0; }
  #ship-category .hc-stat strong{ font-size:17px !important; }
  #ship-category .hc-stat span{
    font-size:19px !important;
    white-space:normal !important;
    text-align:right;
  }

  /* --- 「詳しく見る ▼」開閉（スマホのみ表示） --- */
  #ship-category .hc-more-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:calc(100% - 36px);
    margin:2px 18px 14px;
    min-height:48px;
    padding:10px 16px;
    background:var(--hc-soft);
    border:1px solid var(--hc-accent);
    border-radius:8px;
    color:var(--hc-accent);
    font-family:inherit;
    font-size:17px;
    font-weight:700;
    line-height:1.4;
    cursor:pointer;
  }
  #ship-category .hc-more-btn::after{ content:"▼"; font-size:13px; }
  /* カード内に複製した注記（乗船人数等のすぐ下・小さめ） */
  #ship-category .hc-note-sp{
    display:block;
    margin:10px 0 4px !important;
    padding:0 18px;
    color:#444;
    font-size:15px;
    line-height:1.55;
    text-align:left;
  }
  /* カード外の元の注記は、複製できたときだけ隠す */
  #ship-category.is-sp-note .hc-note{ display:none; }
  #ship-category .hc-more-btn[aria-expanded="true"]::after{ content:"▲"; }

  /* スワイプ案内（本文より目立たせない補助情報） */
  #ship-category .hc-swipe-hint{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:10px 0 0 !important;
    padding:9px 8px;
    border-radius:8px;
    background:#f6f9fc;
    color:#15224b;
    font-size:16px;
    line-height:1.5;
    font-weight:700;
    text-align:center;
  }

  /* 閉じている間だけ、良いところ4項目め以降と「知っておきたいこと」を隠す
     （文章は削除していないため、開けば全文が表示される） */
  #ship-category .hc-card:not(.is-open) .hc-block:first-of-type .hc-list li:nth-child(n+4){
    display:none !important;
  }
  #ship-category .hc-card:not(.is-open) .hc-block:nth-of-type(2),
  #ship-category .hc-card:not(.is-open) .hc-block:nth-of-type(3){ display:none; }
}
