@charset "UTF-8";
/* ========================================================

	お気に入り

======================================================== */
.c-lower__search {
	@media (max-width: 767px) {
		display: none;
	}
}
/* -----------------------------------------------------------
	.p-mypage__heading
----------------------------------------------------------- */
.p-mypage__heading {
	margin: 64px auto 104px;
	@media (max-width: 767px) {
		margin: 40px auto;
	}
	.p-mypage__lead {
		margin-top: 40px;
		letter-spacing: 0.08em;
		@media (max-width: 767px) {
			margin-top: 24px;
		}
	}
}

/* -----------------------------------------------------------
	.p-mypage-recipe
----------------------------------------------------------- */
.p-mypage-recipe {
	margin-bottom: 240px;
	@media (max-width: 767px) {
		margin-bottom: 160px;
	}
  .p-mypage-recipe__tabs {
    display: flex;
    justify-content: center;
    gap: 80px;
    border-bottom: 1px solid var(--color-border);
	@media (max-width: 767px) {
		gap:3%;
	}
	.p-mypage-recipe__tab {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-width: 126px;
		padding-bottom: 24px;
		border: 0;
		background: transparent;
		color: #666;
		font-weight: 700;
		cursor: pointer;
		transition: color 0.3s ease;
		@media (max-width: 767px) {
			min-width: initial;
			width: 30%;
			padding-bottom: 16px;
			gap:6px;
			font-size: 12px;
			&:nth-child(1) {
				.p-mypage-recipe__tab-icon {
					width: 12px;
				}
			}
		}
		&::after {
			position: absolute;
			right: 0;
			bottom: -1px;
			left: 0;
			height: 2px;
			background: transparent;
			content: "";
			transition: 0.3s;
		}
		&:hover,
		&:focus-visible {
			color: var(--color-orange);
			.p-mypage-recipe__tab-icon {
				svg {
					fill:var(--color-orange);
				}
			}
		}
		&:focus-visible {
			outline: 2px solid var(--color-orange);
			outline-offset: -4px;
		}
		&.is-active {
			color: var(--color-orange);
			&::after {
				background: var(--color-orange);
			}
			.p-mypage-recipe__tab-icon {
				svg {
					fill:var(--color-orange);
				}
			}
		}
		.p-mypage-recipe__tab-icon {
			width: 24px;
			line-height: 1;
			@media (max-width: 767px) {
				width: 20px;
			}
			svg {
				fill: #666;
				transition: 0.3s;
				@media (max-width: 767px) {
					width: 100%;
				}
			}
		}
	}
  }
  .p-mypage-recipe__toolbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0 40px;
	@media (max-width: 767px) {
		gap:16px;
	}
	.p-mypage-recipe__count {
		display: flex;
		align-items: baseline;
		flex-shrink: 0;
		gap: 4px;
		margin: 0;
		font-weight: 600;
		line-height: 1;
		[data-recipe-count] {
			font-size: 177.8%;
		}
	}
	.p-mypage-recipe__filters {
		display: flex;
		flex-wrap: wrap;
		gap: 20px;
		border-left: 1px solid var(--color-border);
		padding-left: 24px;
		@media (max-width: 767px) {
			gap:8px;
			flex: 1;
			padding-left: 8px;
		}
		.p-mypage-recipe__filter {
			display: flex;
			align-items: center;
			gap: 10px;
			font-size: 0.875rem;
			select {
				-webkit-appearance: none;
				appearance: none;
				min-width: 148px;
				min-height: 40px;
				padding: 13px 32px 13px 16px;
				border: 1px solid var(--color-border);
				border-radius: 4px;
				background: #fff url(../images/common/icon-polygon.svg) calc(100% - 16px) center no-repeat;
				cursor: pointer;
				@media (max-width: 767px) {
					padding: 8px 24px 8px 16px;
					background: #fff url(../images/common/icon-polygon.svg) calc(100% - 8px) center no-repeat;
				}
			}
		}
	}
  }
  .p-mypage-recipe__panel {
    &[hidden] {
      display: none;
    }
  }
  .p-mypage-recipe__list {
    display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-column-gap: 40px;
	grid-row-gap: 48px;
	@media (min-width: 768px) and (max-width: 1024px) {
		grid-template-columns: repeat(3, 1fr);
	}
	@media (max-width: 767px) {
		grid-template-columns: repeat(1, 1fr);
		grid-column-gap: 0;
	}
	.c-recipe-card {
		.c-recipe-card__sub {
			.p-mypage-recipe__card-delete {
				border: 1px solid var(--color-border);
				border-radius: 9999px;
				background-color: #fff;
				padding: 6px 12px;
				font-size: 11px;
				letter-spacing: 0.08em;
				line-height: 1;
				cursor: pointer;
				@media (hover: hover) {
					transition: 0.3s;
					&:hover {
						background-color: var(--color-base);
						color: #fff;
					}
				}
			}
		}
	}
  }
  .p-mypage-recipe__bulk-delete {
	text-align: center;
	margin: 80px auto 0;
	@media (max-width: 767px) {
		margin-top: 40px;
	}
	.p-mypage-recipe__bulk-delete-button {
		border: 1px solid var(--color-border);
		border-radius: 9999px;
		background-color: #fff;
		font-size: calc(16 * var(--rem));
		letter-spacing: 0.08em;
		line-height: 1;
		padding: 20px 56px;
		cursor: pointer;
		@media (hover: hover) {
			transition: 0.3s;
			&:hover {
				background-color: var(--color-base);
				color: #fff;
			}
		}
		@media (max-width: 767px) {
			font-size: calc(14 * var(--rem));
			padding: 16px 40px;
		}
	}
  }
  .p-mypage-recipe__empty,
  .p-mypage-recipe__no-results {
    margin: 0;
    padding: 64px 20px;
    color: var(--recipe-muted);
    text-align: center;
    line-height: 1.8;
  }
}

@media (max-width: 767px) {
  .p-mypage-recipe {
    .p-mypage-recipe__tabs {
      justify-content: space-around;
    }
    .p-mypage-recipe__tab {
      flex: 1;
      min-width: 0;
      gap: 6px;
      font-size: 0.875rem;
    }
    .p-mypage-recipe__toolbar {
      align-items: flex-start;
      gap: 16px;
    }
    .p-mypage-recipe__count {
      padding-right: 0;
      border-right: 0;
      [data-recipe-count] {
        font-size: 1.5rem;
      }
    }
    .p-mypage-recipe__filters {
      display: grid;
      grid-template-columns: 1fr;
      width: 100%;
      gap: 12px;
    }
    .p-mypage-recipe__filter {
      justify-content: space-between;
      gap: 12px;
      select {
        flex: 1;
        min-width: 0;
      }
    }
  }
}