/* ==========================
   TOPページ専用スタイル
   ========================== */

.top-container {
    width: 100%;
    overflow-x: hidden; /* 横スクロールを防止 */
}

/* ==========================
   ヒーローセクション
   ========================== */
.hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem 6rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-circle-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #ffe4e1, #ffb6c1);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ffc0cb, #ff69b4);
    bottom: -10%;
    right: -5%;
    animation-delay: 7s;
}

.hero-circle-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #fff0f5, #ffe4e1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #d63384;
    font-weight: 500;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.1);
    border: 1px solid rgba(214, 51, 132, 0.1);
    animation: fadeInDown 0.8s ease-out;
    max-width: calc(100vw - 3rem);
}

.hero-title {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    word-wrap: break-word;
}

.hero-title-main {
    display: block;
    color: #2d2d2d;
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, #d63384 0%, #e685b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6c4c58;
    margin: 0 0 3rem 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* 検索フォーム */
.search-form {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(214, 51, 132, 0.15);
    width: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.search-wrapper:focus-within {
    box-shadow: 0 12px 32px rgba(214, 51, 132, 0.25);
    border-color: rgba(214, 51, 132, 0.2);
}

.search-icon {
    color: #d63384;
    flex-shrink: 0;
    margin-right: 1rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #2d2d2d;
    background: transparent;
    min-width: 0;
}

.search-input::placeholder {
    color: #a67991;
    opacity: 0.7;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #d63384 0%, #e685b5 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(214, 51, 132, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.button-arrow {
    transition: transform 0.3s ease;
}

.search-button:hover .button-arrow {
    transform: translateX(4px);
}

/* ========================================
   ヒーロー内サブアクション（検索フォーム下）
   ======================================== */
.hero-subaction {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.subaction-text {
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
}

.subaction-link {
    color: #2d3748;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.625rem 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(214, 51, 132, 0.15);
    border: 1px solid rgba(214, 51, 132, 0.2);
}

.subaction-link:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.25);
    color: #d63384;
    border-color: rgba(214, 51, 132, 0.3);
}

.subaction-arrow {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.subaction-link:hover .subaction-arrow {
    transform: translateX(4px);
}

/* 人気タグ */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    padding: 0 1rem;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #b04f83;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(214, 51, 132, 0.15);
}

.tag:hover {
    background: white;
    color: #d63384;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.15);
}

/* ========================================
   コンテンツ発見セクション
   ======================================== */
.content-discovery-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f7 100%);
    position: relative;
}

.content-discovery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #2d3748;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #d63384 0%, #e685b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #718096;
    font-size: 1rem;
    margin-bottom: 3rem;
}

.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(214, 51, 132, 0.1);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d63384 0%, #e685b5 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(214, 51, 132, 0.15);
}

.content-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d63384 0%, #e685b5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.content-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-icon {
    color: #fff;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.card-description {
    color: #718096;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    color: #d63384;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.3s ease;
}

.content-card:hover .card-link {
    gap: 0.5rem;
}

/* ==========================
   レスポンシブ対応（強化版）
   ========================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding: 3rem 0.75rem 5rem;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .search-form {
        padding: 0 0.75rem;
    }

    .search-wrapper {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
        gap: 1rem;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        padding: 0.5rem 0;
        text-align: center;
        font-size: 0.95rem;
    }

    .search-button {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-subaction {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-tags {
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-circle-1 {
        width: 300px;
        height: 300px;
    }

    .hero-circle-2 {
        width: 250px;
        height: 250px;
    }

    .hero-circle-3 {
        width: 200px;
        height: 200px;
    }

    /* コンテンツ発見セクション */
    .content-discovery-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }

    .content-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-card {
        padding: 1.5rem;
    }
}

/* 小さいスマホ（iPhone SE等）用 */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.8rem;
    }

    .search-form {
        padding: 0 0.5rem;
    }

    .search-button {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
}