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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*＝＝＝並び替えボタンのCSS*/
.sort-btn{
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	padding:50px 20px;
}

.sort-btn li{
	background:#eee;
list-style:none;
	border-radius:10px;
	cursor: pointer;
	padding: 10px;
	margin:0 10px;
}

.sort-btn li.active{/*ボタンに現在地＝activeというクラス名がついたら背景色を変更*/
	background:#ccc;	
}

/*＝＝＝Muuriのレイアウトのための調整 */
.grid {
  position: relative;/*並び替えの基準点を指定*/
}

/*各画像の横幅などの設定*/
.item {
  display: block;
  position: absolute;
  width: 33%;/*横並びで3つ表示*/
  padding:0 10px 10px 10px;/*画像に余白をつける*/
  z-index: 1;
list-style:none;
}

/*内側のボックスの高さが崩れないように維持*/
.item-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/*画像の横幅を100%にしてレスポンシブ化*/
.grid img{
	width:100%;
	height:auto;
	vertical-align: bottom;/*画像の下にできる余白を削除*/
}

/*横幅が768px以下になった際の指定*/
@media only screen and (max-width: 768px) {
.item {
  width: 49.5%;/*横並びで2つ表示*/
  padding: 0 5px 10px 5px;
}
}
  /* オーバーレイのスタイル */
  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒色 */
    z-index: 9999; /* 画像よりも手前に表示 */
  }

  /* 画像のスタイル */
  #overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    z-index: 10000; /* 一番手前に表示 */
  }
/* バツボタンのスタイル */
  #close-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10001; /* 画像よりも手前に表示 */
  }
/************************************
** 問い合わせフォーム
************************************/
.form-header {
            background: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%);
            color: white;
            padding: 40px 30px;
            text-align: center;
            position: relative;
        }

        .form-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.3"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.4"/><circle cx="30" cy="70" r="1" fill="white" opacity="0.5"/><circle cx="70" cy="80" r="2.5" fill="white" opacity="0.2"/></svg>');
            background-size: 100px 100px;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .form-header h1 {
            font-size: 2rem;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
            font-weight: 700;
        }

        .form-header p {
            font-size: 1rem;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }

        .form-body {
            padding: 40px 30px;
            background: white;
        }

        .form-group {
            margin-bottom: 24px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #444;
            font-size: 0.9rem;
        }

        .required {
            color: #ff6b6b;
            margin-left: 4px;
        }

        .form-control {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #fafafa;
            color: #333;
        }

        .form-control:focus {
            outline: none;
            border-color: #ff6b6b;
            background: white;
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
        }

        .form-control:hover {
            border-color: #ff8a8a;
            background: white;
        }

        textarea.form-control {
            min-height: 120px;
            resize: vertical;
            line-height: 1.6;
        }

        .radio-group {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        .radio-item {
            position: relative;
            cursor: pointer;
            display: flex;
            align-items: center;
            padding: 10px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            transition: all 0.3s ease;
            background: #fafafa;
            min-width: 130px;
        }

        .radio-item:hover {
            border-color: #ff6b6b;
            background: white;
        }

        .radio-item input[type="radio"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .radio-item input[type="radio"]:checked + .radio-label {
            color: #ff6b6b;
            font-weight: 600;
        }

        .radio-item input[type="radio"]:checked ~ .checkmark {
            background: #ff6b6b;
            border-color: #ff6b6b;
        }

        .radio-item input[type="radio"]:checked ~ .checkmark::after {
            display: block;
        }

        .radio-label {
            margin-left: 25px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .checkmark {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            height: 16px;
            width: 16px;
            background: white;
            border: 2px solid #ddd;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .checkmark::after {
            content: "";
            position: absolute;
            display: none;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: white;
        }

input[type="submit"].submit-btn {
    width: 100% !important;
    padding: 16px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
    margin-top: 20px !important;
    position: relative !important;
    overflow: hidden !important;
}

input[type="submit"].submit-btn::before {
    display: none !important;
}

input[type="submit"].submit-btn:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff9999 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2) !important;
}

input[type="submit"].submit-btn:active {
    background: linear-gradient(135deg, #e63b3b 0%, #ff8888 100%) !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1) !important;
}


        /* CF7用のフォームコード */
        .cf7-form-code {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            padding: 20px;
            margin: 20px 0;
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            line-height: 1.5;
            overflow-x: auto;
        }

        .cf7-form-code h3 {
            color: #495057;
            margin-bottom: 15px;
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 1.1rem;
        }

        .cf7-form-code pre {
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        /* 装飾要素 */
        .decoration {
            position: absolute;
            width: 60px;
            height: 60px;
            background: rgba(255, 107, 107, 0.1);
            border-radius: 50%;
            animation: float 4s ease-in-out infinite;
        }

        .decoration:nth-child(1) {
            top: 10%;
            left: 5%;
            animation-delay: 0s;
        }

        .decoration:nth-child(2) {
            top: 70%;
            right: 5%;
            animation-delay: 2s;
        }

        /* レスポンシブデザイン */
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .container {
                border-radius: 6px;
            }
            
            .form-header {
                padding: 30px 20px;
            }
            
            .form-header h1 {
                font-size: 1.7rem;
            }
            
            .form-body {
                padding: 30px 20px;
            }
            
            .radio-group {
                flex-direction: column;
                gap: 12px;
            }
            
            .radio-item {
                min-width: auto;
            }
        }

        @media (max-width: 480px) {
            .form-header h1 {
                font-size: 1.5rem;
            }
            
            .form-control {
                padding: 10px 14px;
                font-size: 0.9rem;
            }
            
            .submit-btn {
                padding: 14px;
                font-size: 0.9rem;
            }
        }

        /* 入力フィールドのプレースホルダー */
        .form-control::placeholder {
            color: #999;
            opacity: 0.7;
        }
