/* ====== ホームコンテンツ ====== */

.home-hero {
    max-width: 960px;
    margin: 24px auto 0;
    padding: 0 16px 72px;
}

.home-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: 0 2px 8px rgba(76, 41, 112, 0.1);
    color: #ffffff;
}

.store-button--google {
    background: #1d72e8;
}

.store-button--apple {
    background: #222222;
}

.store-button__icon {
    width: 24px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 6px;
}

.store-button__badge {
    font-size: 12px;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 7px;
}

.home-top-visual {
    width: 90%;
    margin: 16px auto 20px;
}

.home-top-image {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(96, 72, 136, 0.28);
}

.home-section {
    margin-top: 56px;
}

.home-section-title {
    font-size: 22px;
    margin: 1.4em 0;
    padding: 0.2em 0.4em 0.2em 1.2em;
    border: 2px solid var(--accent);
    box-shadow: inset 0.9em 0 var(--accent-soft);
    border-radius: 6px;
    text-align: center;
}

.home-section-subtitle {
    font-size: 18px;
    color: #000;
    margin: 20px 0 16px;
    padding: 0;
    display: inline-block;
    padding-bottom: 3px;
    position: relative;
    width: 50%;
    border-bottom: 3px solid orange;
    z-index: 0;
}

.home-section-subtitle::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    background: skyblue;
    width: 50px;
    height: 3px;
    display: block;
    z-index: 1;
}

.home-section-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 16px;
    color: var(--text-muted);
}
.home-section-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

.home-section-list li strong {
    color: var(--text-main);
    margin-right: 4px;
}

/* ====== 機能紹介：横スクロールカード ====== */

.feature-carousel-wrapper {
    position: relative;
    margin-top: 12px;
}

.feature-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 8px;
}

.feature-carousel::-webkit-scrollbar {
    height: 4px;
}

.feature-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.feature-carousel::-webkit-scrollbar-thumb {
    background: rgba(122, 106, 145, 0.35);
    border-radius: 999px;
}

.feature-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin-inline: auto;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.feature-card-title {
    align-self: flex-start;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px 10px 16px 16px;
    background: #fef3c7;
    color: #92400e;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(180, 83, 9, 0.25);
    margin-bottom: 10px;
    transform: rotate(-1.5deg);
}

.feature-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: radial-gradient(circle at top left, #fff4d7, #ffedd5 55%, #fff7e0 100%);
    border: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
}

.feature-card-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.7;
}

.feature-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.feature-carousel-arrow--left {
    left: -6px;
}

.feature-carousel-arrow--right {
    right: -6px;
}
/* タブレット以上：横スクロール帯ではなくカードをグリッドで並べる */
@media (min-width: 720px) {
    .feature-carousel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding: 8px 0 0;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .feature-card {
        flex: initial;
        max-width: none;
        margin-inline: 0;
    }
}

/* PC：3列グリッドで一画面に3枚見せる */
@media (min-width: 1024px) {
    .home-hero {
        padding: 0 32px 0;
    }

    .feature-carousel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1100px;
        margin: 0 auto;
    }

    .feature-carousel-arrow--left {
        left: -12px;
    }

    .feature-carousel-arrow--right {
        right: -12px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 80vh;
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 11px;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #16a34a);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.home-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
}

.home-title span {
    background: linear-gradient(120deg, #b38dff, #ec4899);
    -webkit-background-clip: text;
    color: transparent;
}

.home-title-main {
    display: block;
    font-size: 36px;
}

.home-title-sub {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-muted);
}

.home-hero-lead {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    color: var(--text-muted);
}

.home-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.home-list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #5b4a7c;
}

.home-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-list-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(179, 141, 255, 0.12);
    border: 1px solid rgba(179, 141, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--accent);
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(179, 141, 255, 0.9);
    background: linear-gradient(130deg, #b38dff, #f973b6);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(179, 141, 255, 0.45);
    cursor: pointer;
}

.btn-primary small {
    font-size: 11px;
    opacity: 0.9;
}

.home-note {
    font-size: 11px;
    color: var(--text-muted);
}

.home-note strong {
    color: var(--text-main);
}

.home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(122, 106, 145, 0.9);
}

.home-card-preview {
    border-radius: 22px;
    background: radial-gradient(circle at top left, #ffffff, #eadcff 65%);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.home-card-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.home-card-body {
    border-radius: 16px;
    background: #f9f5ff;
    border: 1px solid var(--border-subtle);
    padding: 12px;
}

.home-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.home-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    font-size: 10px;
}

.home-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.home-footnote {
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.home-footnote strong {
    color: var(--text-main);
}

/* ====== 検索ページ（左=検索条件、右=検索結果） ====== */

.search-page {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    min-height: 400px;
}

.search-page__left {
    width: 300px;
    min-width: 260px;
    flex-shrink: 0;
    background: #f3efff;
    padding: 20px 16px;
    border-radius: 12px 0 0 12px;
    border: 1px solid var(--border-subtle);
    border-right: none;
}

.search-page__right {
    flex: 1;
    min-width: 0;
    background: var(--card-bg);
    padding: 20px 18px;
    border-radius: 0 12px 12px 0;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 24px rgba(126, 96, 175, 0.08);
}

.search-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.search-page__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.search-page__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.search-page__select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.search-page__btn {
    padding: 10px 20px;
    background: #6b4c9a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.search-page__btn:hover:not(:disabled) {
    background: #5a3f82;
}

.search-page__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.search-page__result-count {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.search-page__results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-dancer-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-dancer-genre-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

/* ====== 動画カード（クラス編集など）スマホ縦並び ====== */
@media (max-width: 768px) {
    .video-card {
        flex-direction: column;
        align-items: stretch;
    }

    .video-card__info {
        flex: none;
    }

    .video-card__actions {
        flex-shrink: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }
}
