/* CSS Document */

@charset "utf-8";

/**
 * 現代的なCSS設計へのリファクタリング
 * 1. clamp() 関数によるレスポンシブな文字サイズ（老眼対応）
 * 2. 視認性の高い行間（line-height）と可読性の確保
 * 3. 不要な重複の削除とモダンな記述への統合
 */

:root {
  --main-bg-color: #121115;
  --brand-color: #001727;
  --brand-color2: #003046;
  --text-white: #F7F7F7;
  
  /* 標準テキスト: スマホで24px(1.5rem)を最低ラインとし、PCで最大28px(1.75rem) */
  --font-size-base:  clamp(1.25rem, 1.25rem + 1.2vw, 1.75rem);
  
  --font-size-h1:    clamp(2.25rem, 1.8rem + 3.0vw, 3.5rem);
  --font-size-h2:    clamp(2.0rem, 1.6rem + 2.0vw, 2.75rem);
  --font-size-h5:    clamp(1.6rem, 1.4rem + 1.2vw, 2.0rem);
  --font-size-small: clamp(1.1rem, 1.0rem + 0.5vw, 1.25rem);
}

/* 全体設定 */
body {
  background-color: var(--main-bg-color);
  color: var(--text-white);
  background-image: url("back.jpg");
  min-height: 100vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  /* 読みやすさのために行間を広めに設定 */
  line-height: 1.25;
  font-family: sans-serif;
  margin: 0;
}

/* ヘッダー制御 */
#header {
  height: auto;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 20px 0;
}

#header img {
  display: inline-block;
  width: 100%;
}

/* 追従時（JavaScriptでHeightMinが付与された際） */
#header.HeightMin {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 60px;
  z-index: 999;
  padding: 5px;
  background-color: var(--brand-color);
  opacity: 0.9 !important;
  text-align: left;
  animation: DownAnime 0.5s forwards;
}

#header.HeightMin img {
  display: inline;
  height: 55px;
  width: auto;
  margin: 0;
}
.spec_table td{
	padding-left: 0.75rem;
	
}

/* カラーチャートの文字重なり・はみ出しを防止 */
.color_name {
    /* 長い英単語を強制的に改行させる魔法のプロパティ */
    overflow-wrap: break-word; 
    word-break: break-all;
    
    /* 文字サイズは老眼対応のまま維持 */
    font-size: var(--font-size-h5) !important;
    line-height: 1.4 !important;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    
    /* 1行が長くなりすぎないように調整 */
    display: block;
}

/* ついでに下のJANコード部分も微調整 */
.jancode_col {
    display: block;
    word-break: break-all;
}


@keyframes DownAnime {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* 記事・カード・要素デザイン（色は変えず構造のみ最適化） */
article {
  font-size: var(--font-size-base);
  border: 3px solid var(--brand-color2);
  border-radius: 2px;
  background-color: var(--brand-color);
  padding: clamp(1rem, 5%, 3rem); /* 余白も画面幅で可変 */
  margin-bottom: 3rem;
  opacity: 0.8;
}

h1 { font-size: var(--font-size-h1); font-weight: bold; margin-bottom: 1.5rem; }
h2 { font-size: var(--font-size-h2); font-weight: bold; margin-bottom: 1.25rem; }
h5 { font-size: var(--font-size-h5); margin-bottom: 1rem; }

p { margin-bottom: 1.5rem; }

figcaption {
  font-size: var(--font-size-small);
  margin-top: 0.5rem;
}

.apply {
  padding: 0.25rem 0.5rem;
  background-color: var(--brand-color);
  font-weight: bold;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* レイアウト要素 */
.w-33 {
  width: 100%;
  margin-bottom: 1rem;
}

.color_chart_box {
  margin-bottom: 4rem;
}

.jancode_col {
  font-size: 0.8rem; /* 極小サイズも少し底上げ */
}

/* Bootstrap系クラスの調整 */
.card {
  background-color: var(--main-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.125);
  color: #FFF;
}

.list-group-item {
  background-color: var(--brand-color2);
  border: 1px solid rgba(255, 255, 255, 0.125);
  color: var(--text-white);
}

p {
  font-size: var(--font-size-base) !important;
  line-height: 1.8;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
  color: var(--text-white);
}
/* --- H2のボーダー色と余白の強制上書き --- */
h2.border-bottom, 
.h2.border-bottom {
  /* 白い線をブランドカラーに変更 */
  border-bottom-color: var(--brand-color2) !important;
  border-bottom-width: 2px !important;
  border-bottom-style: solid !important;
  
  /* Bootstrapの pb-3 などを強制的に上書きして余白を調整 */
  padding-bottom: 1rem !important; 
  margin-bottom: 2rem !important;
}

/* --- 全体の P タグのサイズ（再徹底） --- */
/* * 記事の外にある P も含め、サイト内の全 P を大きくします。
 * body 直下の P も対象にするため、セレクタを強化しました。
 */
html body p,
html body article p {
  font-size: var(--font-size-base) !important;
  line-height: 1.8 !important;
  margin-bottom: 2rem !important;
  letter-spacing: 0.03em !important;
  color: var(--text-white) !important;
}

/* スペック表の文字も老眼対応で大きくする場合 */
.spec_table th,
.spec_table td {
  font-size: var(--font-size-base) !important;
  padding: 0.75rem !important;
  color: var(--text-white);
}
/* メディアクエリ（必要最小限に整理） */
@media (min-width: 992px) {
  .color_chart_box {
    width: 50%;
  }
}

@media (min-width: 1200px) {
  .w-33 {
    width: 32%;
    margin-right: 1%;
  }
}

/* サイドメニュー全体の横幅制限を解除または拡張 */
/*-https://gemini.google.com/app/aa5237e278e80107?hl=ja-*/
#side_menu {
    max-width: 100% !important; /* 親の col-lg-3 等の幅いっぱいに広げる */
    width: 100%;
}
/* サイドメニュー全体の横幅制限を解除または拡張 */
#side_menu {
    max-width: 100% !important;
    width: 100%;
}

/* 16:9の比率を維持するカード */
.side_169_card {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Ratio */
    background-color: var(--brand-color);
    border: 1px solid var(--brand-color2);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s;
    margin-bottom: 5px;
}

/* --- スマホ(1列)の時の調整 --- */
@media (max-width: 767px) {
    .side_169_card {
        /* スマホ1列で16:9だとデカすぎるので、少し高さを抑える(任意で調整してください) */
        padding-top: 45%; 
    }
}

/* カード内の中身を絶対配置で固定 */
.card_content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
}

/* 上部の画像エリア */
.thumb_box {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}
.thumb_box img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

/* 下部のテキストエリア */
.info_box {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2px 5px;
    text-align: center;
}

/* 商品名（日本語） */
.jname_mini {
    color: #fff;
    /* 冨樫様の調整値を反映：最小1.25remを確保 */
    font-size: clamp(1.25rem, 0.7rem + 1.5vw, 1.5rem) !important;
    font-weight: bold;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 商品名（英語） */
.ename_mini {
    color: #aaa;
    font-size: 1rem !important;
    line-height: 1rem;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* アクティブ・ホバー時 */
.side_169_card.active_item {
    border: 2px solid #007bff !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}
/* =============================================
   SEAREVO CYBER-DARK DECORATION (Full Coverage)
   ============================================= */

/* --- 1. すべてのリンク要素（画像・ボタン・カード）への共通設定 --- */
a, #topcontrol, .side_169_card, article {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- 2. 個別要素のホバー反応（ネオン・グロー） --- */

/* 画面上部のロゴ・カラーチャート・単体画像リンク */
a img {
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* ロゴやカラーチャートの画像に触れた時の反応 */
a:hover img {
    transform: scale(1.03);
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

/* 画面右下の「UP」ボタン */
#topcontrol {
    background-color: var(--brand-color2) !important;
    border: 1px solid #00f2ff !important;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
    transition: all 0.3s ease !important;
}

#topcontrol:hover {
    background-color: #00f2ff !important;
    color: #000 !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.6);
}

/* 3. リンク付きの大きな塊（記事・サイドメニュー） */
a article:hover, 
a .side_169_card:hover, 
a .card:hover,
.side_tile_link:hover .side_tile {
    border-color: #00f2ff !important;
    box-shadow: 0 0 20px rgba(8,17,177,0.40), 
                inset 0 0 10px rgba(0, 242, 255, 0.1);
    transform: translateY(-8px);
}

/* 4. テキストリンクのグロー（見出し等） */
a:hover h1, a:hover h2, a:hover h5, a:hover .color_name {
    color: #00f2ff !important;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
}

/* --- スクロール演出（変更なし） --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s cubic-bezier(0.19, 1, 0.22, 1), 
                transform 1.0s cubic-bezier(0.19, 1, 0.22, 1);
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}