@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;
}

.container2 {
  display: flex; 
  gap: 20px; 
  align-items: center;
}
 @media (max-width:768px) {
            .container2{
                display: block;
            }
        }

.container2 .product-overview {
  flex: 0 0 30%;
  min-width: 0;
  margin-bottom: 0;
}

.container2 .product-desc {
  flex: 1;
  min-width: 0;
}

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

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

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

/* 中見出し（タイトル） */
.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-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;
    background-color: #e9e9e9;
}

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

.product-desc-i 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-wrap: wrap;
    gap: 30px;
    justify-content: flex-start; /* 左揃え */
    margin-bottom: 40px;
}

.design-item {
    width: 150px; /* デザイン画像の幅目安 */
    text-align: center;
}

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

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

.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: 70px; 
    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 10px; 
    margin-top: 10px;
    transition: opacity 0.3s;
}

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

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

.poster_old {
    font-size: 18px;      /* 全体の文字（数量、本）を大きく */
    margin: 20px 0;       /* 前後の余白を確保 */
    display: flex;        /* 横並びをきれいに整える */
    align-items: center;  /* 縦方向の真ん中に揃える */
    justify-content: center; /* 中央に寄せる */
    gap: 10px;            /* 要素同士の隙間 */
}

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

  }

/* 拡大画面（背景） */
.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;
}