@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
 * ロスフラワー商品カード スタイル
 ************************************/

/* 商品グリッドレイアウト */
.loss-flower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* 商品カード基本スタイル */
.loss-flower-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    background-color: #fff;
}

.loss-flower-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 販売終了商品 */
.loss-flower-card.ended {
    opacity: 0.7;
}

/* 商品画像 */
.loss-flower-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.loss-flower-card img.img-grayscale {
    filter: grayscale(50%);
}

/* 商品タイトル */
.loss-flower-card h3 {
    padding: 16px;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* ステータスバッジ */
.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.status-badge.status-active {
    background-color: #4CAF50;
    color: white;
}

.status-badge.status-ended {
    background-color: #757575;
    color: white;
}

/* 詳細ボタン */
.btn-detail {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: #4CAF50;
    color: white !important;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background-color: #45a049;
}

.loss-flower-card.ended .btn-detail {
    background-color: #9E9E9E;
}

.loss-flower-card.ended .btn-detail:hover {
    background-color: #757575;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .loss-flower-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .loss-flower-card h3 {
        font-size: 16px;
    }
}

/************************************
 * ロスフラワー商品詳細ページ スタイル
 ************************************/

/* 全体コンテナ */
.loss-flower-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* ステータスバッジ(大) */
.status-badge-large {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 24px;
}

.status-badge-large.status-active {
    background-color: #4CAF50;
    color: white;
}

.status-badge-large.status-ended {
    background-color: #757575;
    color: white;
}

/* 画像ギャラリー */
.product-gallery {
    margin-bottom: 32px;
}

.product-gallery .main-image {
    margin-bottom: 16px;
}

.product-gallery .main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.product-gallery .sub-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.product-gallery .sub-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-gallery .sub-images img:hover {
    transform: scale(1.05);
}

/* 商品情報セクション */
.product-info {
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.product-info .info-row {
    margin-bottom: 12px;
    line-height: 1.6;
}

.product-info .info-section {
    margin-top: 20px;
}

.product-info .info-section h3 {
    font-size: 18px;
    margin-bottom: 8px;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 4px;
}

/* 価格表 */
.price-table {
    background-color: #fff;
    padding: 24px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    margin-bottom: 24px;
}

.price-table h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.price-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.price-table td strong {
    color: #4CAF50;
    font-size: 18px;
}

.price-table .shipping-note {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

/* 注意事項ボックス */
.notice-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.notice-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.notice-box ul {
    margin: 0;
    padding-left: 20px;
}

.notice-box li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 注文ボタン */
.order-buttons {
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 32px;
}

.order-buttons h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.btn-order {
    display: inline-block;
    padding: 16px 32px;
    margin: 8px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-line {
    background-color: #06C755;
    color: white !important;
}

.btn-form {
    background-color: #4285F4;
    color: white !important;
}

.sold-out-message {
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.sold-out-message p {
    margin: 8px 0;
}

/* 関連商品 */
.related-products {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #e0e0e0;
}

.related-products h3 {
    margin-bottom: 24px;
    font-size: 22px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .loss-flower-detail {
        padding: 12px;
    }
    
    .product-gallery .sub-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn-order {
        display: block;
        margin: 8px 0;
    }
    
    .price-table table {
        font-size: 14px;
    }
    
    .price-table th,
    .price-table td {
        padding: 8px;
    }
}

/* 固定ページのみ全幅ブロックを有効にする */
.page .entry-content .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw !important;
    max-width: 100vw !important;
}

/* 固定ページのヘッダー直下の余白をすべて削除 */
.page #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 固定ページ：main 要素の上余白を削除 */
.page main.main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


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

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

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