/**
 * Medicare Theme - Front Page Styles
 * FVスライダー用スタイル
 */

/* ===================================
   ヒーロー検索フォーム
   =================================== */
.hero-search {
    background: linear-gradient(135deg, #fff9f5 0%, #fef6f0 50%, #fff5eb 100%);
    position: relative;
    overflow: hidden;
    padding: 50px 20px;
}

.hero-search::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 110, 20, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-search::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(210, 189, 178, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-search__container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-search__content {
    text-align: center;
}

.hero-search__lead {
    font-size: 1.5rem;
    font-weight: 600;
    color: #5b3d2d;
    margin: 0 0 24px 0;
    letter-spacing: 0.05em;
}

.hero-search__form {
    margin-bottom: 20px;
}

.hero-search__input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 60px;
    box-shadow: 
        0 4px 20px rgba(91, 61, 45, 0.08),
        0 2px 8px rgba(255, 110, 20, 0.06);
    padding: 8px 8px 8px 24px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.hero-search__input-wrapper:focus-within {
    box-shadow: 
        0 8px 32px rgba(255, 110, 20, 0.15),
        0 4px 12px rgba(91, 61, 45, 0.1);
    border-color: rgba(255, 110, 20, 0.3);
    transform: translateY(-2px);
}

.hero-search__icon {
    flex-shrink: 0;
    color: #d2bdb2;
    margin-right: 12px;
    transition: color 0.3s ease;
}

.hero-search__input-wrapper:focus-within .hero-search__icon {
    color: #ff6e14;
}

.hero-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.6rem;
    color: #5b3d2d;
    background: transparent;
    padding: 12px 0;
    min-width: 0;
}

.hero-search__input::placeholder {
    color: #b5a599;
}

.hero-search__button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6e14 0%, #ff8c42 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 110, 20, 0.3);
}

.hero-search__button:hover {
    background: linear-gradient(135deg, #e85d0a 0%, #ff7a2a 100%);
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(255, 110, 20, 0.4);
}

.hero-search__button-icon {
    transition: transform 0.3s ease;
}

.hero-search__button:hover .hero-search__button-icon {
    transform: translateX(4px);
}

/* 人気キーワードタグ */
.hero-search__tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-search__tags-label {
    font-size: 1.3rem;
    color: #837167;
}

.hero-search__tag {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e8ddd6;
    border-radius: 20px;
    font-size: 1.3rem;
    color: #5b3d2d;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-search__tag:hover {
    background: #ff6e14;
    border-color: #ff6e14;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 110, 20, 0.25);
}

/* レスポンシブ - タブレット */
@media (max-width: 768px) {
    .hero-search {
        padding: 40px 16px;
    }
    
    .hero-search__lead {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .hero-search__input-wrapper {
        padding: 6px 6px 6px 18px;
    }
    
    .hero-search__input {
        font-size: 1.5rem;
        padding: 10px 0;
    }
    
    .hero-search__button {
        padding: 12px 20px;
        font-size: 1.4rem;
    }
    
    .hero-search__button-text {
        display: none;
    }
    
    .hero-search__button-icon {
        width: 20px;
        height: 20px;
    }
}

/* レスポンシブ - スマートフォン */
@media (max-width: 480px) {
    .hero-search {
        padding: 32px 12px;
    }
    
    .hero-search__lead {
        font-size: 1.3rem;
    }
    
    .hero-search__input {
        font-size: 1.4rem;
    }
    
    .hero-search__icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .hero-search__tags {
        gap: 8px;
    }
    
    .hero-search__tags-label {
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
    }
    
    .hero-search__tag {
        padding: 5px 12px;
        font-size: 1.2rem;
    }
}

/* ===================================
   スライダーコンテナ
   =================================== */
   .top-slider-a {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

/* ===================================
   FOUC対策：Slick初期化前のちらつき防止
   =================================== */
/* 初期化前は2枚目以降を非表示 */
.js-slider-top:not(.slick-initialized) > p:not(:first-child) {
    display: none;
}

/* 初期化前の最初のスライドは表示 */
.js-slider-top:not(.slick-initialized) > p:first-child {
    display: block;
}



.top-slider-a-inner {
    width: 100%;
}

.top-slider-a-inner p {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.top-slider-a-inner p a {
    display: block;
    text-decoration: none;
}

.top-slider-a-inner picture {
    display: block;
    width: 100%;
}

.top-slider-a-inner img {
    width: 100%;
    height: auto;
    display: block;
}

/* FVビジュアル：ボタン画像を重ねて配置（fv_sample.png の配置に合わせた比率指定） */
.fv-visual {
    position: relative;
}

.fv-visual__button {
    position: absolute;
    left: 47.42%;
    top: 64.21%;
    width: 38.21%;
    display: block;
    transition: opacity 0.2s;
}

.fv-visual__button:hover {
    opacity: 0.8;
}

.fv-visual__button img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Slick スライダー カスタマイズ
   =================================== */
.js-slider-top .slick-slide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.js-slider-top .slick-slide.slick-active {
    opacity: 1;
}

.js-slider-top .slick-track {
    display: flex;
    align-items: center;
}

/* ===================================
   ドットナビゲーション
   =================================== */
.slick-nav {
    position: relative;
    text-align: center;
    padding: 15px 0;
    z-index: 10;
}

.slick-nav .slick-dots {
    position: relative;
    bottom: auto;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.slick-nav .slick-dots li {
    width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;
}

.slick-nav .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #d2bdb2;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slick-nav .slick-dots li button:before {
    display: none;
}

.slick-nav .slick-dots li button:hover {
    background-color: #ff6e14;
    transform: scale(1.1);
}

.slick-nav .slick-dots li.slick-active button {
    background-color: #ff6e14;
    transform: scale(1.2);
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 768px) {
    .top-slider-a {
        max-width: 100%;
    }
    
    .slick-nav {
        padding: 10px 0;
    }
    
    .slick-nav .slick-dots {
        gap: 8px;
    }
    
    .slick-nav .slick-dots li,
    .slick-nav .slick-dots li button {
        width: 10px;
        height: 10px;
    }
}

/* ===================================
   フェードアニメーション強化
   =================================== */
.js-slider-top.slick-initialized .slick-slide {
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
}

.js-slider-top.slick-initialized .slick-slide.slick-active {
    opacity: 1;
    z-index: 1;
}

/* Slickのデフォルトスタイルを上書き */
.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list {
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0;
    padding: 0;
}

.slick-list:focus {
    outline: none;
}

.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}

/* ===================================
   新着記事セクション
   =================================== */

/* トップページ用見出し */
.top-hdg-a-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.top-hdg-a {
    display: inline-block;
    font-size: 2.4rem;
    font-weight: 700;
    color: #5b3d2d;
    position: relative;
    padding-bottom: 15px;
}

/* 新着記事セクション専用調整 */
.sqd-content-gray .top-hdg-a-wrap {
    margin-bottom: 30px;
}

/* ===================================
   新着記事グリッドレイアウト
   （関連記事デザイン準拠）
   =================================== */
.latest-posts {
    margin-bottom: 20px;
}

.latest-posts__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.latest-posts__item {
    background-color: #fff;
    border: 1px solid #d2bdb2;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.latest-posts__item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.latest-posts__link {
    display: block;
    text-decoration: none;
}

.latest-posts__thumbnail {
    aspect-ratio: 16 / 9;
    background-color: #f5efec;
    overflow: hidden;
}

.latest-posts__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-posts__item:hover .latest-posts__thumbnail img {
    transform: scale(1.05);
}

.latest-posts__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d2bdb2;
}

.latest-posts__content {
    padding: 15px;
}

.latest-posts__date {
    display: block;
    font-size: 1.2rem;
    color: #837167;
    margin-bottom: 8px;
}

.latest-posts__item-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #5b3d2d;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-posts__item:hover .latest-posts__item-title {
    color: #ff6e14;
}

/* レスポンシブ対応 - タブレット */
@media (max-width: 900px) {
    .latest-posts__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* レスポンシブ対応 - スマートフォン */
@media (max-width: 600px) {
    .latest-posts__list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .latest-posts__item {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }
    
    .latest-posts__link {
        display: flex;
        align-items: stretch;
        width: 100%;
    }
    
    .latest-posts__thumbnail {
        flex-shrink: 0;
        align-self: center;
        width: 140px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .latest-posts__content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 12px 15px;
    }
    
    .latest-posts__date {
        margin-bottom: 5px;
    }
    
    .latest-posts__item-title {
        font-size: 1.3rem;
        -webkit-line-clamp: 3;
    }
}

/* 記事一覧へのリンク */
.sqd-more-link {
    text-align: center;
    margin-top: 30px;
}

.sqd-more-link a {
    display: inline-block;
    padding: 12px 40px;
    background-color: #fff;
    border: 2px solid #ff6e14;
    border-radius: 30px;
    color: #ff6e14;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sqd-more-link a:hover {
    background-color: #ff6e14;
    color: #fff;
}

.sqd-more-link a::after {
    content: ' →';
}

/* ===================================
   人気記事セクション
   =================================== */

/* 見出しアイコン */
.top-hdg-a__icon {
    margin-right: 8px;
}

/* 人気記事ボックス */
.sqd-box--popular {
    background: linear-gradient(135deg, #fff9f5 0%, #fff 100%);
    border: 1px solid #ffe4d4;
}

/* ランキング付き記事アイテム */
.sqd-box__item--ranked {
    position: relative;
    padding-left: 60px;
}

/* ランキング番号 */
.sqd-rank {
    position: absolute;
    left: 0;
    top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5efec;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    color: #5b3d2d;
}

/* トップ3のランキング番号 */
.sqd-rank--top {
    background: linear-gradient(135deg, #ff6e14 0%, #ffb347 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(255, 110, 20, 0.3);
}

/* 1位専用スタイル */
.sqd-box__item--ranked:first-child .sqd-rank {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    top: 36px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .top-hdg-a {
        font-size: 2rem;
    }
    
    .top-hdg-a::after {
        width: 40px;
    }
    
    .sqd-content-gray .top-hdg-a-wrap,
    .sqd-content-white .top-hdg-a-wrap {
        margin-bottom: 20px;
    }
    
    .sqd-more-link a {
        padding: 10px 30px;
        font-size: 1.4rem;
    }
    
    /* ランキング番号 - スマホ */
    .sqd-box__item--ranked {
        padding-left: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sqd-rank {
        position: static;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .sqd-box__item--ranked:first-child .sqd-rank {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
        top: auto;
    }

    .sqd-box__item--ranked .sqd-hdg-date {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        padding-top: 4px;
    }

    .sqd-box__item--ranked .sqd-media-lyt {
        width: 100%;
    }
}

/* お問い合わせエリア: マイページログインボタン中央寄せ */
.str-contact-area .list-btn-b--center {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.str-contact-area .list-btn-b--center > li {
    max-width: 360px;
    width: 100%;
}
