/* 
Theme Name:保護猫サイト
Theme URI: https://hamaoka-catnursary.plum-pj.com
Author: PLUM PROJECT
Author URI: https://plum-pj.com
Description: 保護猫活動の紹介・里親募集サイト
Version: 1.0.0
Requires at least: 6.9
Requires PHP: 8.4
Text Domain: hamaoka-catnursary
*/

p,
h3,
h4,
body,
html,
footer {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    background-color: #FAF8F2;
    display: flex;
    flex-direction: column;
}

ul {
    list-style-type: none;
}

p {
    line-height: 2;
}

main {
    flex: 1;
}

/* title */
.title-tag {
    position: relative;
    padding: 0.25em 1em;
    border-top: solid 2px #412727;
    border-bottom: solid 2px #412727;
}

.title-tag:before,
.title-tag:after {
    content: '';
    position: absolute;
    top: -7px;
    width: 2px;
    height: -webkit-calc(100% + 14px);
    height: calc(100% + 14px);
    background-color: #412727;
}

.title-tag:before {
    left: 7px;
}

.title-tag:after {
    right: 7px;
}

/* cat */
.cat-body-green {
    background-color: #8DCEA9;
    width: 350px;
    /* height: 800px; */
    border-radius: 75px 75px 0 0;
    position: relative;
}

.cat-body-yellow {
    background-color: #F4EAA9;
    width: 350px;
    /* height: 500px; */
    border-radius: 75px 75px 0 0;
    position: relative;
    margin-top: -150px;
}

.cat-body-orange {
    background-color: #E59A62;
    width: 350px;

    border-radius: 75px 75px 0 0;
    position: relative;

}

.cat-ear-green-right {
    position: absolute;
    background-color: #8DCEA9;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    width: 100px;
    height: 50px;
    top: -25px;
    right: 30px;

}

.cat-ear-green-left {
    position: absolute;
    background-color: #8DCEA9;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    width: 100px;
    height: 50px;
    top: -25px;
    left: 30px;

}

.cat-ear-yellow-right {
    position: absolute;
    background-color: #F4EAA9;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    width: 100px;
    height: 50px;
    top: -25px;
    right: 30px;

}

.cat-ear-yellow-left {
    position: absolute;
    background-color: #F4EAA9;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    width: 100px;
    height: 50px;
    top: -25px;
    left: 30px;

}

.cat-ear-orange-right {
    position: absolute;
    background-color: #E59A62;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    width: 100px;
    height: 50px;
    top: -25px;
    right: 30px;

}

.cat-ear-orange-left {
    position: absolute;
    background-color: #E59A62;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    width: 100px;
    height: 50px;
    top: -25px;
    left: 30px;

}

.cat-eye-left {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #707070;
    left: 100px;
    top: 40px;
    border-radius: 50px;

}

.cat-eye-right {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #707070;
    right: 100px;
    top: 40px;
    border-radius: 50px;

}

.cat-mouth {
    transform: translate(-50%, -50%);
    position: absolute;
    top: 70px;
    left: 50%;
    color: #707070;
}

.collar-green {
    position: absolute;
    background-color: #B2EACA;
    top: 120px;
}

.collar-yellow {
    position: absolute;
    background-color: #EBD964;
    top: 120px;
}

.collar-orange {
    position: absolute;
    background-color: #EBB68E;
    top: 120px;
}

.cat-contents {
    position: absolute;
    top: 170px;

}

.cat-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;

}

.cat-icon2 {
    width: 50px;
}

/* 横スクロール */
.horizontal-list {
    width: 350px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}



.item {

    /* 横スクロール用 */
    display: inline-block;
    width: 90%;

    /* 見た目調整 */
    height: 400px;
    margin: 16px;
}

/* footer */
footer {
    background-color: #412727;
    z-index: 100;
}

.sidemenu {
    position: fixed;
    right: calc(100vw / 2 - 500px);
    background-color: #FAF8F2;
    top: 200px;

}

.memo-frame {
    position: relative;
    background: #EBB68E;
    box-shadow: 0px 0px 0px 5px #EBB68E;
    border: dashed 2px #FAF8F2;
    padding: 0.2em 0.5em;
    color: #454545;
}

.memo-frame :after {
    position: absolute;
    content: '';
    left: -7px;
    top: -7px;
    border-width: 0 0 15px 15px;
    border-style: solid;
    border-color: #FAF8F2 #FAF8F2 #f79950;
}

.menu-btn {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 100;
}

@media (min-width: 800px) {
    .fa-bars {
        display: none;
    }

}

@media (max-width: 768px) {
    .sidemenu {
        display: none;
    }
}

.new-cat-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-top: 12px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.new-cat-scroll::-webkit-scrollbar {
    height: 6px;
}

.new-cat-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

.new-cat-item {
    flex: 0 0 auto;
    width: 100px;
}

.new-cat-item a {
    color: inherit;
    display: block;
}

.new-cat-item .cat-icon {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.cat-list-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #412727;
    border-radius: 999px;
    color: #412727;
    background-color: #FAF8F2;
    font-size: 14px;
}

.cat-list-btn:hover {
    background-color: #f3eee4;
    color: #412727;
}

.footer-menu-list {
    padding-left: 0;
}

.footer-menu-list li {
    margin: 4px 0;
    list-style: none;
}

.footer-menu-list li a {
    text-decoration: none;
    color: white;
}

.footer-menu-list li a:hover {
    opacity: 0.8;
}

.sidebar-menu-list {
    padding-left: 0;
}

.sidebar-menu-list li {
    margin: 1rem;
    list-style: none;
}

.sidebar-menu-list li a {
    text-decoration: none;
    color: #212529;
}

.sidebar-menu-list li a::before {
    content: "・";
}

.sidebar-menu-list li a:hover {
    opacity: 0.8;
}

.event-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
}

.event-modal-img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

@media (min-width: 992px) {
    .event-modal-img {
        max-width: 70vw;
        max-height: 80vh;
    }
}

.carousel-control-prev,
.carousel-control-next {
    background: rgba(0, 0, 0, 0.6);
    /* ←黒背景 */
    border-radius: 40%;
    width: 20px;
    height: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: none;
}

/* カレンダー */
#event-list {
    display: flex;
    flex-direction: column;
}

.event-card {
    background: #fff9dc;
    /* border: 1px solid #d8c95a; */
    border-radius: 16px;
    padding: 16px 18px;
    margin: 5px;
}

.event-header {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 6px;
}

.event-date {
    font-size: 14px;
    font-weight: bold;
    color: #7b6d1f;
}

.event-time {
    font-size: 14px;
    color: #7b6d1f;
}

.event-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.event-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.event-description {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}