/* メインコンテンツ */
        .main-content {
            max-width: 1000px;
            margin: 20px auto;
            padding: 80px 15px 0 15px;
        }

        .page-title {
            font-size: 24px;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 3px solid #e74c3c;
        }

        /* 検索フォーム */
        .search-form {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }

        .search-form label {
            display: inline-block;
            margin-right: 20px;
            margin-bottom: 10px;
        }

        .search-form input,
        .search-form select {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            margin-left: 8px;
        }

        .search-form button {
            background-color: #8BC34A;
            color: #fff;
            border: none;
            padding: 8px 20px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
        }

        .search-form button:hover {
            background-color: #7CB342;
        }

        .search-form a {
            color: #e74c3c;
            text-decoration: none;
            margin-left: 10px;
        }

        /* 結果カウント */
        .result-count {
            font-size: 16px;
            margin-bottom: 20px;
            color: #666;
        }

        /* 代行一覧 */
        .agency-list {
            margin-bottom: 40px;
            display: grid;
            grid-template-columns: 1fr 1fr; /* 2列（等幅） */
            gap: 20px;
        }

        /* レスポンシブ */
        @media (max-width: 768px) {
            .agency-list {
                grid-template-columns: 1fr; /* 1列 */
            }
        }

        .agency-item {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .agency-header {
            display: flex;
            justify-content: space-between;
            background: #8BC34A;
            color: #fff;
            padding: 15px;
        }

        .agency-name {
            font-size: 18px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }

        .agency-name a {
            color: #fff;
            text-decoration: none;
        }

        .agency-name a:hover {
            text-decoration: underline;
        }

        .icon-text {
            margin-right: 8px;
        }

        .agency-certification {
            display: flex;
            align-items: center;
            font-size: 14px;
        }

        .certification-badge {
            background-color: #ffd700;
            color: #333;
            padding: 4px 8px;
            border-radius: 50px;
            margin-right: 10px;
            font-size: 12px;
            font-weight: bold;
        }

        .agency-status {
            background-color: #e74c3c;
            color: #fff;
            padding: 10px 15px;
            font-weight: bold;
            display: flex;
            align-items: center;
        }

        .coupon-label {
            background-color: #fff;
            color: #e74c3c;
            padding: 3px 8px;
            border-radius: 4px;
            margin-right: 10px;
            font-size: 12px;
            font-weight: bold;
        }

        .coupon-content {
            flex: 1;
            font-size: 16px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }

        .agency-location {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
        }

        .area-tags {
            display: flex;
            flex-wrap: wrap;
        }

        .area-tag {
            background-color: #ecf0f1;
            color: #2c3e50;
            padding: 5px 15px;
            border-radius: 50px;
            margin-right: 8px;
            margin-bottom: 8px;
            font-size: 13px;
        }

        .agency-hours {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
        }

        .agency-phone {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
            font-size: 18px;
            font-weight: bold;
        }

        .agency-phone a {
            color: #333;
            text-decoration: none;
        }

        .agency-phone a:hover {
            color: #8BC34A;
        }

        .price-section {
            padding: 15px;
            border-bottom: 1px solid #eee;
        }

        .price-label {
            display: inline-block;
            background-color: #8BC34A;
            color: #fff;
            padding: 4px 15px;
            border-radius: 43px;
            margin-bottom: 4px;
            font-size: 12px;
        }

        .price-details {
            margin-top: 5px;
            font-size: 16px;
            color: #333;
            padding-left:1em;
        }

        .service-section {
            padding: 15px;
            border-bottom: 1px solid #eee;
        }

        .payment-section {
            padding: 15px;
            display: flex;
            flex-wrap: wrap;
        }

        .payment-label {
            display: inline-block;
            background-color: #ecf0f1;
            color: #2c3e50;
            padding: 5px 10px;
            border-radius: 4px;
            margin-right: 10px;
            margin-bottom: 10px;
            font-size: 14px;
        }

        .invoice-label {
            display: inline-block;
            background-color: #e74c3c;
            color: #fff;
            padding: 5px 10px;
            border-radius: 4px;
            margin-right: 10px;
            margin-bottom: 0;
            font-size: 14px;
        }

        .payment-methods {
            display: flex;
            flex-wrap: wrap;
            margin-top: 10px;
            width: 100%;
        }

        .payment-method {
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 5px 10px;
            margin-right: 8px;
            margin-bottom: 8px;
            font-size: 13px;
        }

        .agency-message {
            padding: 15px;
            border-top: 3px solid #ecf0f1;
            /* background-color: #f9f9f9; */
            line-height: 1.8;
        }

        .message-date {
            color: #7f8c8d;
            font-size: 14px;
            margin-bottom: 5px;
        }

        /* ページネーション */
        .pagination {
            display: flex;
            justify-content: center;
            list-style: none;
            margin: 30px 0;
        }

        .pagination a {
            display: block;
            padding: 8px 12px;
            background-color: #fff;
            border: 1px solid #ddd;
            color: #333;
            text-decoration: none;
            border-radius: 4px;
            margin: 0 5px;
        }

        .pagination a.active {
            background-color: #3498db;
            color: #fff;
            border-color: #3498db;
        }

        .pagination a:hover:not(.active) {
            background-color: #f5f5f5;
        }


        /* レスポンシブ */
        @media (max-width: 768px) {
          

            .search-form label {
                display: block;
                margin-bottom: 10px;
            }
        }


        .more{
            display:none;
        }
        .detail-btn{
            text-align:center !important;
            padding:2em;
        }
         .detail-btn a{
                background-color: #8BC34A;
            color: #fff;
            border: none;
            padding: 12px 30px;
            border-radius: 20px !important;
            font-size:14px;
            cursor: pointer;
         }

         .more {
            display: none; /* 初期状態では非表示 */
            max-height: 0;
            opacity: 0;
            transition: all 0.6s ease-in-out;
        }

        .more.show {
            display: block;
            max-height: 1000px; /* 十分に大きな値を設定 */
            opacity: 1;
        }

        /* より滑らかなアニメーション用の追加スタイル */
        .more.animating {
            display: block;
        }