@charset "UTF-8";

/* 
Theme Name: Kawaneko
Description:  埼玉県川口市の保護猫団体かわねこTNR部のホームページです。主に里親募集中の猫ちゃん達の紹介をしているサイトです。
Author: Mimi
*/


/* CSS変数 */
:root {
    --font-color: #716752;
    --bg-color: #ffe8e1;
    --bg-orange: #f8b6a8;
    --accent-orange: #f28368;
    --green: #519300;
    --hachi:  "Hachi Maru Pop";
    }

/* 全体の設定 */
html  { 
    scroll-behavior: smooth;
} 

body {
    font-family: "Kiwi Maru", "Hachi Maru Pop", "Noto Sans JP", serif;
    font-feature-settings: "palt";
    line-height: 1.5;
    font-size: 14.4px;
    letter-spacing: 0.1em;
    color: var(--font-color);
}

.main-bg {
    background-image: url(img/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

main {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #fffdf8;
}

img {
    width: 100%;
    height: auto;
}

.flex {
    display: flex;
    justify-content: space-between;
}

.inner {
        padding: 70px 20px;
        width: 100%;
}

.section-title_wrap {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 14px;
    color: #f28368;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 24px;
}

.section-disc {
    font-size: 12px;
    margin-top: 24px;
}

.smooth {
    animation: fadeup 2s cubic-bezier(0.9, 1, 0.9, 1) forwards;
}
@keyframes fadeup {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.anim-box.poyopoyo {
    animation: poyopoyo 2s ease-out infinite;
    opacity: 1;
}
@keyframes poyopoyo {
    0%, 40%, 60%, 80% {
        transform: scale(1.0);
    }
    50%, 70% {
        transform: scale(0.88);
    }
}

.scroll-up {
    opacity: 0; 
    transform: translateY(50px);
    transition: all 1s;
}
.scroll-up.is-show {
    opacity: 1;
    transform: translateY(0px);
}

.sp-only {
    display: none;
}

@media screen and (max-width: 1055px) {
    main {
        margin: 0 auto 0 300px;
    }
}
@media screen and (max-width: 820px) {
    main {
        margin: 60px auto 0;
    }

    .inner {
        padding: 35px 5%;
        width: 100%;
    }

    .section-subtitle {
        font-size: 20px;
    }
}

@media screen and (max-width: 440px) {
    .sp-only {
        display: block;
    }
}
/* --- 区切り線（猫とハート） --- */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
    color: #CFA789;
}

.divider .line {
    height: 1px;
    background-color: #CFA789;
    flex: 1;
    max-width: 80px;
}

.divider .cat {
    font-size: 1.5rem;
    color: #8D6E63;
}

.divider .heart {
    font-size: 0.8rem;
    color: #FFCCBC;
}

.btn {
    width: 250px;
    height: auto;
    text-align: center;
    padding: 10px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    margin: 0 auto;
}

/* TOP戻るボタン */
.page-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    line-height: 1;
    z-index: 1;
}

.btn-logo {
    width: 50px;
}

.page-top.show {
    opacity: 0.8;
    display: block;
}

.page-top a {
    background: #42291a;
    text-decoration: none;
    color: #fff;
    width: 60px;
    padding: 28px 5px;
    text-align: center;
    display: block;
    border-radius: 10px;
    letter-spacing: normal;
    transition: all .3s ease;
}

#page-top a:hover {
    text-decoration: none;
    opacity: .5;
}

/* headerの設定 */
.pc-header {
    width: 300px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-inner {
    padding: 30px;
    width: 100%;
}

.logo-wrap {
    font-family: var(--hachi);
    align-items: center;
    color: var(--accent-orange);
    font-size: 18px;
    justify-content: center;
    line-height: 1;
}

.logo-img {
    width: 32px;
}

.logo-text.small {
    font-size: 12px;
}

.nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: fit-content;
    height: 100%;
    margin: 60px auto 20px;
}

.nav-menu {
    align-items: center;
    text-align: start;
    line-height: 1;
    justify-content: flex-start;
}

.nav-menu img {
    width: 24px;
    height: 24px;
}

.nav-menu :hover {
    opacity: 70%;
}

.nav-title {
    margin-left: 20px;
}

.nav-en {
    font-size: 20px;
    margin-bottom: 8px;
}

.nav-jp {
    font-size: 12px;
}

.burger {
    display: none;
}

.nav-sns {
    display: flex;
    /* width: 210px; */
    margin: 0 auto;
    justify-content: space-evenly;
    align-items: center;
    padding: 24px 0;
}

.nav-sns a {
    text-align: center;
}

.nav-sns .sns-icon {
    width: 45px;
}

.nav-sns .blog-btn {
    width: 100px;
    margin: 0;
}

@media screen and (max-width: 820px) {
    .pc-header {
        width: 100%;
    }

    .header-inner {
        padding: 10px 5%;
        display: flex;
        justify-content: space-between;
        background-color: rgba(255,232,225,1);
    }
    
    .logo-wrap {
        font-size: 16px;
        justify-content: start;
    }
    
    .logo-img {
        width: 40px;
    }
    
    .nav-list {
        display: none;
    }
    
    .nav-menu {
        width: 100%;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .nav-en {
        display: none;
    }
    
    .nav-jp {
        font-size: 20px;
        margin-left: 10px;
    }
    
    .burger {
        --opacity: 1;
        display: grid;
        width: 38px;
        aspect-ratio: 1;
        place-items: center;
        cursor: pointer;
        &.active {
            --opacity: 0;
        }
    }
    
    .burger span {
        display: block;
        background-color: #716752;
        height: 2px;
        width: 70%;
        grid-area: 1/1/-1/-1;
        transition: all 0.5s ease;
        &:nth-child(1) {
            opacity: var(--opacity);
        }
        
        &:nth-child(2) {
            translate: 0 -0.5rem;
        }
        
        &:nth-child(3) {
            translate: 0 0.5rem;
        }
    }
    
    .burger.active span {
        translate: 0 0;
    }
    .burger.active span:nth-child(2){
        rotate: 135deg;
    }
    .burger.active span:nth-child(3){
        rotate: -135deg;
    }
    
    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        min-width: 320px;
        width: 85%;
        background-image: url(img/bg.jpg);
        transform: translateY(-120%);
        pointer-events: none;
        border-radius: 0 0 30px 30px;
        z-index: 90;
        transition: transform .4s ease;
    }

    .nav.active {
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav.active {
        top: 60px    
    }

    .nav-sns {
        width: 210px;
        justify-content: space-between;
    }
}
/* MVの設定 */
.mv {
    width: 100%;
    padding: 70px 0;
    flex-direction: column;
    align-items: center;
}

.mv-text {
    text-align: center;
    align-content: center;
    font-size: 0.85rem;
    line-height: 1.8;  
}

.mv-copy {
    font-size: 1.2rem;    
}

.mv-img-wrap {
    width: 85%;
    margin: 24px 0;
}

.mv-img {
    width: 100%;
}

@media screen and (max-width: 550px) {
    .mv {
        gap: 14px;
    }

    .mv-copy {
    font-size: 1.1rem;    
}
}
/* Aboutセクション設定 */

.about-content {
    width: 100%;
    gap: 30px;
    flex-direction: column;
    align-items: center;
}

.about-card {
    width: 100%;
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid var(--font-color);
}

.about-card img {
    border-radius: 16px 16px 0 0;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.card-text {
    padding: 0 20px 20px 20px;
}

.card-text h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
}

@media screen and (max-width: 939px) {
    

    .card-text {
        padding: 0 20px 20px 20px;
    }
    
    .card-text h3 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .card-text p {
        font-size: 14px;
    }
}

/* catsセクション設定 */

.image-gallery {
    width: 100%;
    display: flex;
    gap: 20px 10px;
    overflow: scroll;
    margin-bottom: 70px;
    justify-content: flex-start;
}

.cat-card a {
    display: block;
}

.image-gallery img {
    border-radius: 60px;
    width: 100px;
    height: 150px;
    object-fit: cover;
}

.cat-name {
    text-align: center;
    padding: 5px 0;
}

.cats-btn .btn {
    background-color: #FFF;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.cats-btn .btn:hover {
    border: 2px solid var(--accent-orange);
}

/* Newsセクション設定 */

.news-content {
    font-size: 16px;
    text-align: center;
}

.event-imgs {
    width: 100%;
    margin-bottom: 80px;
    justify-content: center;
    gap: 10px;
}

.event-img {
    width: 48%;
}

.blog-btn {
    display: inline-block;
    background-color: #FFF;
    color: var(--green);
    margin-top: 30px;
    border: 1px solid var(--green);
}

.fa-book-open {
    margin-right: 5px;
}

.btn:hover {
    border: var(--green) 2px solid;
}

@media screen and (max-width: 939px) {
    .news-content .btn {
        margin-top: 20px;
    }

    .event-imgs {
        margin: 0 auto;
        width: 90%;
        gap: 30px;
        /* flex-direction: column; */
        margin-bottom: 50px;
    }
}

/* FLOWセクション設定 */
.flow-img {
    width: 80%;
    margin: 0 auto 50px;
}

.flow-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.flow-step_title {
    justify-content: flex-start;
    gap: 8px;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.arrow-icon {
    font-size: 18px;
    margin: 0 auto;
}

.step::after {
    content: "|";
    margin-left: 8px;
}

.step-title {
    font-weight: bold;
    color: var(--accent-orange);
}

.flow-text {
    margin-bottom: 16px;
}

.list {
    margin-bottom: 16px;
}

.flow-text_sub {
    font-weight: bold;
    margin-bottom: 4px;
    border-bottom: #f28368 1px solid;
    width: fit-content;
}

.separator {
    height: 1px;
    width: 100%;
    background-color: #519300;
    margin: 70px 0;
}

.please-each {
    margin-bottom: 24px;
}

/* supportセクション設定 */
.support-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.support-box {
    width: 100%;
    height: 100%;
    background-color: #FFF;
    border-radius: 30px;
    border: var(--font-color) 1px solid;
}

.box-title {
    font-size: 20px;
    padding-top: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #000;
    text-align: center;
}

.box-text {
    padding: 30px 20px;
    /* font-size: 16px; */
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.box-content_big {
    font-size: 16px;
    margin-bottom: 4px;
}

.box-content_big i {
    margin-right: 4px;
}

.note {
    font-size: 12px;
}

.box-btn {
    flex: 1;
    color: #FFF;
    text-align: center;
    padding: 5px;
    border-radius: 100%;
    width: 100px;
    height: 100px;
    align-content: center;
    font-size: 0.8rem;
    position: absolute;
    right: 5px;
    bottom: -45px;
}

.box-btn.pink {
    background-color: #fb999f;
}
.box-btn.green {
    background-color: var(--green);
}

.box-btn:hover {
    transform: scale(110%);
}

.fa-hand-holding-heart {
    color: #fb999f;
}

.fa-credit-card {
    color: var(--green);
}

/* contactセクション設定 */
#contact .inner {
    padding-bottom: 120px;
}
.contact-content {
    text-align: center;
}

.sns-icon {
    width: 48px; 
}

.contact-info {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.contact-note {
    font-size: 12px;
    color: orangered;
    font-weight: bold;
}

/* Footer */
footer {
    padding: 45px;
    text-align: center;
    border-top: 1px dashed #CFA789;
}
/* archive-catsページの設定 */
.explanation {
    text-align: center;
    font-size: 14px;
    margin: 40px auto;
}

.explanation::before  {
    content: "＼";
    margin-right: 5px;
}
.explanation::after  {
    content: "／";
}

.cats-content_wrap {
    width: 100%;
    margin: 0 auto;
    padding: 20px 12px;
}

.cats-content_tab {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
}

.tab {
    font-weight: 500;
    text-align:center;
    width: 30%;
    padding: 10px;
    background-color: #fffdf8;
    border: 1px solid var(--font-color);
    cursor: pointer;
    border-radius: 30px;
}

.tab.active {
    background-color: #fbe5e5;
}

.content {
    display: none; /*必須*/
}

.content.show {
    display: block; /*必須*/
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 0px;
    margin-bottom: 64px;
}

.content-each {
    text-align: center;
    padding: 8px;
    width: 100%;
    cursor: pointer;
}
.archive-thumbnail__wrap {
    overflow: hidden;
    width: 150px;
    margin: 0 auto;
    position: relative;
}

/* トライアル中バッジ */
.trial-badge {
    position: absolute;
    top: 16px;
    left: -30px;
    background: #ff60c2ff;
    color: #fff;
    padding: 4px 30px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(-34deg);
    z-index: 10;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    pointer-events: none;
}

.cat-img {
    width: 150px;
    height: 225px;
    border-radius: 30px;
    object-fit: cover;
    margin-bottom: 12px;
}

.cat-text_wrap {
    width: 100%;
    height: 100%;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
}

.cat-text_wrap .flex {
    justify-content: start;
    align-items: center;
}

.name {
    font-size: 14px;
    font-weight: bold;
}

.message {
    letter-spacing: 0.05em;
    padding: 0 30px;
}

/* ===== モーダル全体 ===== */
.cat-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 10000;
}

.cat-modal.is-open {
    display: block;
}

/* 背景 */
.cat-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

/* 中身 */
.cat-modal__content {
    position: relative;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 8vh auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
}

/* 閉じるボタン */
.cat-modal__close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.cat-modal_detail {
    text-align: center;
}

/* 画像 */

.media-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 20px;
}

.media-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: #eee;
    cursor: pointer;
}

.media-tab.is-active {
    background: var(--font-color);
    color: #fff;
}

.media-content {
    display: none;
}

.media-content.is-show {
    display: block;
}

.cat-modal-name__box {
    margin-bottom: 8px;
    justify-content: start;
    gap: 8px;
    align-items: center;
}

.modal-trial-badge {
    color: #ff60c2ff;
}

.cat-modal__video,
.cat-modal__img {
    width: 88%;
    max-height: 65vh;
    aspect-ratio: 9 / 13;
    object-fit: cover;
    border-radius: 8px;
}

.cat-modal__name {
    font-size: 1.3em;
}

/* SP対応 */
@media (max-width: 768px) {
    .cat-modal__content {
        width: 90%;
        margin: 5vh auto;
    }
}


.cta-btn {
    background-color: var(--accent-orange);
    color: #FFF;
    border-radius: 30px;
    padding: 5px;
    width: 250px;
    font-size: 20px;
    text-align: center;
    margin: 0 auto;
}

.cta-btn:hover {
    opacity: 70%;
}

@media screen and (max-width: 890px) {
    .cat-img {
        object-fit: cover;
    }
}

@media screen and (max-width: 374px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .tab i {
        display: none;
    }

    .message {
        padding: 0;
    }
}

/* Cat-listページ */
#cat-list {
    padding: 70px 0;
}

/* single-catsページ */
#cat-detail {
    margin: 0 auto 90px;
    text-align: center;
    width: 80%;
}

#cat-detail img {
    width: 100%;
}

#cat-detail h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.detail-wrap {
    text-align: left;
    width: 100%;
    padding: 20px;
    align-content: center;
}

.detail-wrap p {
    margin-bottom: 10px;
}

@media screen and (max-width: 500px) {
    #cat-detail {
        margin: 20px auto 60px;
        width: 100%;
    }

    .detail-wrap {
        padding: 12px;
    }
}



.scroll-up {
    opacity: 0; 
    transform: translateY(50px);
    transition: all 1s;
}
.scroll-up.is-show {
    opacity: 1;
    transform: translateY(0px);
}

/* html, body {
    overflow-x: visible;
    overscroll-behavior: auto;
} */
/* 
.image-gallery {
    touch-action: pan-x ;
    -webkit-overflow-scrolling: touch ;
} */


/* 404ページ */
.main_404 {
    width: 100%;
    height: 80vh;
    text-align: center;
    align-content: center;
}

.error_404{
    font-size: 24px;
    margin-bottom: 30px;
}

.btn_404 {
    font-size: 18px;
    display: block;
    margin: 0 auto;
    background-color: #FFF;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn_404:hover {
    border: 2px solid var(--accent-orange);
}