@charset "UTF-8";

/* 基本リセット */
body {
    font-family: "Noto Sans JP", Arial, sans-serif;
    color: #333; /* 文字色#333 */
    line-height: 1.6;
    margin: 0;
}

/* 画像のレスポンシブ対応 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ホバーした時に少し薄くする */
a:hover {
    opacity: 0.7;
}

.red{
    background-color: red;
    color: #fff;
    margin-right: 5px;
    padding: 5px;
    font-size: 12px;
    border-radius: 3px;
}

.green{
    background-color: green;
    color: #fff;
    margin-right: 5px;
    padding: 5px;
    font-size: 12px;
    border-radius: 3px;
}


/* =========================================
   指定されたCSSコード
   ========================================= */
.page-header {
    /* 下(#666)から上(#ccc)へ薄くなるグラデーション ※指定色のグラデーションに変更済 */
    background: linear-gradient(to top, #e0e0e0 26%, #efefef 48%, #d9d9d9 75%, #bcbcbc 100%);
    padding: 50px 0; /* 少し高さを広げてグラデーションを見やすくしました */
    text-align: center;
    border-bottom: none; /* 下の線はグラデーションと馴染ませるため削除 */
}

.page-header h1 {
    color: #fff; /* 白文字 */
    font-size: 24px;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* 文字の影を少し濃くして読みやすく */
}

/* コンテナ */
.container1 {
    max-width: 960px;
    margin: 100px auto;
    padding: 0 20px;
}

/* =========================================
   追加CSSコード
   ========================================= */

/* セクション設定 */
.material-section {
    margin-bottom: 80px;
}

/*ページトップのリンク一覧*/
.menu-flex{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* 中見出し（タイトル） */
.section-title {
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #0056b3;
    padding-bottom: 2px;
    margin-bottom: 30px;
}

/* 商品概要エリア（架空作成部分） */
.product-overview {
    margin-bottom: 50px;
}

.product-image {
    width: 250px; 
    margin: 0 auto;
    margin-bottom: 10px;
}

.product-img {
    width: 500px; 
    max-width: 90%;  
    margin: 0 auto;
    margin-bottom: 10px;
}

.product-image img {
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.product-image img:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.product-desc {
    text-align: center;
}

.product-desc-span {
    text-align: center;
    font-size: 14px;
}

.product-desc h3 {
    margin-top: 0;
    color: #333;
    font-size: 14px;
    font-weight: 400;
}


/* 小項目（PDFの不正内容見出し部分） */
.category-header {
    background-color: #eef4f9; /* 薄い青背景 */
    font-size: 16px;
    color: #0056b3; /* 青文字 */
    font-weight: bold;
    padding: 10px 15px;
    margin-top: 40px;
    margin-bottom: 10px;
    border-left: 5px solid #0056b3;
}

.category-desc {
    margin-bottom: 20px;
    font-size: 16px;
}

/* デザイン一覧のグリッドレイアウト（横並び・左揃え） */
.design-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 105px;
    margin-top: 50px;
    margin-bottom: 100px;
}

.design-item {
    width: 500px; 
    max-width: 90%;         /* スマホでハミ出さないための設定 */
    text-align: center;
}

.design-item img {
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.design-item p {
    font-size: 14px;
    color: #0056b3;
    font-weight: bold;
}

img[id] {
    scroll-margin-top: 200px; /* ヘッダーの高さ分 */
}

/* サンプルボタン */
.btn-sample {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0056b3; /* 青背景 */
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background-color 0.3s;
}

.btn-sample:hover {
    background-color: #003d82; /* ホバー時は少し濃く */
}

button:active, a:active {
    transform: translateY(1px);
    filter: brightness(0.9);
}

.qty { 
    text-align: right; 
    width: 100px; 
    height: 25px; 
    font-size: 20px; 
    margin-right: 5px;
    border-radius: 3px; 
    border: 1px solid #000000;
}

.add-btn { 
    background: #0056b3; 
    color: #fff; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    padding: 5px 20px; 
    font-size: 15px;
    transition: opacity 0.3s;
    margin-left: 20px;
}

.add-btn:hover { 
    opacity: 0.8 !important;
}

.default-text {
    color: initial;
    font-weight: normal;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .container1 {
        margin: 50px auto;
    }
    
    .product-overview {
        flex-direction: column;
    }
    
    .design-grid {
        justify-content: center; /* スマホでは中央揃えの方が見やすい場合がある */
    }

  }

/* =========================================
   配信記事・動画用テーブルCSS
   ========================================= */
.table-responsive {
    overflow-x: auto;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.article-table th, 
.article-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.article-table th {
    background-color: #eef4f9; /* 薄い青 */
    color: #0056b3; /* 青文字 */
    font-weight: bold;
    white-space: nowrap;
}

.article-table .col-title {
    width: 35%; 
    font-size: 16px;
}

.article-table .col-desc { 
    width: 60%;
    font-size: 16px;
}

.article-table .col-link {
    width: 15%;
    font-size: 16px;
}


.article-title {
    font-weight: bold;
    color: #0056b3;
}

.article-link{
    text-decoration: none;
}

.article-btn-cell {
    text-align: center;
}



/* スマホ対応 */
@media (max-width: 768px) {
    .container1 {
        margin: 50px auto;
    }
    
    .product-overview {
        flex-direction: column;
    }
    
    .design-grid {
        justify-content: center; /* スマホでは中央揃えの方が見やすい場合がある */
    }

    .article-table th, 
    .article-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .article-table thead {
        display: none; /* スマホではヘッダーを隠す */
    }
    
    .article-table tr {
        margin-bottom: 20px;
        display: block;
        border: 1px solid #ddd;
    }
    
    .article-table td {
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .article-table td::before {
        content: attr(class); /* 簡易的なラベル表示 */
        display: block;
        font-weight: bold;
        color: #0056b3;
        margin-bottom: 5px;
        font-size: 0.8em;
    }
}

/* 拡大画面（背景） */
.modal {
  display: none; /* 最初は隠す */
  position: fixed;
  z-index: 9999; /* 一番手前に表示 */
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.85); /* 背景を黒っぽく */
  cursor: pointer;
}

/* 拡大画像本体 */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: zoom 0.3s; /* ふわっと出す演出 */
}

@keyframes zoom {
  from {transform: translate(-50%, -50%) scale(0.8); opacity: 0;}
  to {transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
}