@charset "utf-8";

.header {
    padding: 20px 0;
    display: none;
}

.h-logo-img {
    height: 30px;
}

/*共通*/
body {
    font-family: "M PLUS Rounded 1c", sans-serif;
    scroll-behavior: smooth;
}

.wrapper {
    width: 768px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

.friends_hero_block {
    background: #CDE6E6;
    text-align: center;
    padding: 30px;
    padding-bottom: 0;
}

.friendslogo {
    height: 100px;
    margin-bottom: 30px;
    object-fit: contain;
}

.charaslider {
    background: #EFF8F8;
    padding: 50px 10px;
}

.info {
    background: #FFFFE8;
    padding: 50px 10px;
}

.character-h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #0F9934;
}

.character-slider-arrows-page {
    --stage-width: min(920px, 92vw);
    --card-padding: 20px;
    --gap: 16px;
    --bg: #0f0f10;
    --fg: #eaeaea;
    --muted: #b8b8b8;
    --accent: #0f9934;
    background: var(--bg);
    color: var(--fg);
}

.character-slider-arrows {
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #EFF8F8;
    overflow: hidden;
}

.character-slider-arrows::before {
    content: "";
    position: absolute;
    inset: 0;
    background: center / cover no-repeat url("../img/yagifriends/seasonback.jpg");
    opacity: 0.3;
    pointer-events: none;
}

/* ステージ */
.slider-stage {
    width: var(--stage-width);
    margin: 0 auto 18px;
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    /* 左ナビ / カード / 右ナビ */
    gap: 10px;
    align-items: center;
}



/* カード */
.character-card {
    background: #ffffff;
    border: 5px solid #004D40;
    border-radius: 30px;
    /*display: grid;
    grid-template-columns: minmax(280px, 40%) 1fr;
    gap: var(--gap);*/
    padding: 30px;
}

.character-media img {
    width: 200px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.character-body {
    display: grid;
    gap: 10px;
    align-content: start;
}

.character-name {
    font-size: 40px;
    color: #004D40;
    margin: 0;
}

.character-description {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.character-links {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 6px;
}

.character-links a {
    display: inline-block;
    position: relative;
    background: #FBDECF;
    border-radius: 20px;
    padding: 5px 30px 5px 15px;
    font-weight: bold;
    font-size: 14px;
}

.character-links a::after {
    position: absolute;
    content: url(../img/yagifriends/icon_link.svg);
    width: 10px;
    height: 10px;
    right: 10px;
}

/* ナビ（左右の矢印＋サムネ） */
.nav-button {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 8px;
    background: #ffffff;
    border: 5px solid #004D40;
    border-radius: 50%;
    cursor: pointer;
    width: 80px;
    height: 80px;
    transition: .3s;
}

.nav-button:focus {
    outline: 2px solid var(--accent);
}

.nav-button:hover {
    border-color: #E95B10;
}

.nav-thumb img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.nav-thumb .nav-name {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-thumb img {
    width: 70px;
    height: 70px;
    overflow: hidden;
    object-fit: contain;
}

.nav-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    line-height: 1;
    color: #004D40;
    pointer-events: none;
}

.nav-prev .nav-icon {
    left: 6px;
}

.nav-next .nav-icon {
    right: 6px;
}

/* インデックス（下部サムネ） */
.slider-index {
    width: var(--stage-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-bottom: 8px;
    justify-content: center;
}

.index-thumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFFFE8;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    /*transition: transform .1s ease, background .2s ease, border-color .2s ease;*/
    user-select: none;
    width: 50px;
    height: 50px;
}

.index-thumb:hover {
    transform: translateY(-1px);
    border: 3px solid #FBDECF;
}

.index-thumb[aria-selected="true"] {
    border: 3px solid #E95B10;
}

.slider-index img {
    display: block;
}

.thumb-name {
    font-size: 14px;
    white-space: nowrap;
}

/* 切替時の軽いアニメーション */
.slider-stage.is-switching .character-card .character-media img,
.slider-stage.is-switching .character-card .character-body {
    animation: fadeSwap .18s ease;
}

@keyframes fadeSwap {
    from {
        opacity: .6;
        transform: scale(.995);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.appeal-block {
    padding-top: 50px;
    padding-bottom: 50px;
    background: #FFFFE8;
}

.appeal-h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #E94840;
}

.appeal-list {
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.appeal-item {
    width: calc(100% / 3 - 20px);
}

.appeal-category {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    background: #FFCCCC;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #E95B10;
    top: 20px;
    left: -10px;
}

.appeal-thumbnail {
    border-radius: 20px;
    margin-bottom: 10px;
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.appeal-title {
    font-size: 18px;
}

.appeal-txt {
    font-size: 14px;
    margin-bottom: 10px;
}

.appeal-btn {
    position: relative;
    display: block;
    font-weight: bold;
    color: #ffffff;
    background: #E3165C;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    overflow: hidden;
}

.appeal-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #FFFFE8;
    /* 下地色と同じ */
    /* 右端に丸い穴を開けるように clip-path を当てる */
    clip-path: circle(0px at 100% 50%);
    transition: clip-path 0.7s ease-in-out;
}

/* ホバーで円を大きくして右端が欠けて見える */
.appeal-btn:hover::after {
    clip-path: circle(60px at 100% 50%);
}


@media screen and (max-width: 640px) {
    .wrapper {
        width: 100%;
    }

    .nav-thumb {
        display: none;
    }

    .nav-button {
        display: none;
    }
}

@media (max-width: 860px) {
    .slider-stage {
        grid-template-columns: 1fr;
    }

    .character-card {
        grid-template-columns: 1fr;
    }

    .appeal-item {
        width: 100%;
    }
}