@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* 作品基本情報のボックス */
.product-info-box {
    background-color: #f0f7ff;
    border: 2px solid #2096f3;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}
.product-info-box p {
    font-weight: bold;
    color: #2096f3;
    margin: 0 0 10px 0;
}
.product-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* サンプル画像ギャラリーの強化版 */
.sample-gallery {
    display: grid;
    /* 画像の数に合わせて自動でサイズ調整（最低200px） */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 12px;
    margin: 20px 0;
}

.sample-item img {
    width: 100%;
    height: 180px; /* 高さを揃えるとタイル状に綺麗に並びます */
    object-fit: cover; /* 画像を歪ませずに枠に収める */
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    display: block;
}

/* スマホ表示の最適化 */
@media screen and (max-width: 480px){
    .sample-gallery {
        grid-template-columns: 1fr; /* スマホは1列でドカンと見せる */
    }
    .sample-item img {
        height: auto; /* スマホでは画像本来の比率で */
    }
}

/* 公式サイトボタン */
.mgs-official-button {
    background-color: #ff9800;
    color: white !important;
    padding: 18px 35px;
    text-decoration: none !important;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    font-size: 1.2em;
    box-shadow: 0 4px 0 #e67e22;
    transition: 0.2s;
}
.mgs-official-button:hover {
    opacity: 0.9;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #e67e22;
}

/* 480px以下（スマホ） */
@media screen and (max-width: 480px) {
    .sample-gallery {
        grid-template-columns: 1fr; /* スマホは1列で迫力アップ */
    }
}