:root {
    --main1: #fd8c94;
    --main2: #fec4d4;
    --base1: #ffffff;
    --base2: #faeff1;
    --accent: #b7a35c;
    --mainfont: "Zen Maru Gothic", sans-serif;
    --titlefont: "Noto Sans JP", sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--mainfont);
    scroll-behavior: smooth;
}

body.home {
    height: 100%;
}

.btn {
    width: auto;
    background-color: var(--main1);
    border-radius: 30px;
    padding: 0.5rem 4rem;
    color: #F3F3F3;
    font-size: large;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--main2);
    color: #fff;
}

.back_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* PCレイアウト */
body.home .content {

    display: grid;

    grid-template-columns:
        minmax(320px, 320px) minmax(376px, 4fr) minmax(240px, 1fr);

    align-items: start;
}

.overlay-section {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 51;
    width: 100%;
    height: 100vh;
    background-color: var(--main2);
}

/* 左右 */
.main-section--1,
.main-section--3 {
    position: sticky;
    height: 100%;
    contain: paint;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0);
}

/* 中央だけスクロール */
.main-section--2 {

    overflow-y: auto;
    overflow-x: hidden;
    min-width: 376px;

    min-height: 0;
}

.main-section--1 {
    z-index: 52;
    height: 100%;
}


.main-section--2 {
    background: var(--base1);
}

.main-section--2 .container {
    margin: 2rem 0;
}

.main-section--3 {
    background: var(--main1);
    padding: 0 1rem;
}

.sidemenu {
    position: sticky;
    font-size: x-large;
    top: 40px;
    z-index: 2;
}

.sidebar-menu {
    padding: 2rem 1rem;
}

.sidebar-menu__inner {
    padding: 1.25rem;
}

.sidebar-menu__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.sidebar-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu__item,
.sidebar-menu__list .menu-item {
    margin-bottom: 0.75rem;
}

.sidebar-menu__item a,
.sidebar-menu__list .menu-item>a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-menu__item a:hover,
.sidebar-menu__list .menu-item>a:hover {
    color: var(--main1);
    -webkit-text-stroke: 2px var(--base1);
    paint-order: stroke;
}

.sidebar-menu__fallback {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}


.topsection {
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: 0;
}

.topsection img {
    width: auto;
    height: 50vh;
    object-fit: contain;
    margin-left: auto;
    margin-right: 0;
}

.topsection {
    display: flex;
    width: 100%;
    height: auto;

}




.first-view {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--main2)
}

.first-view--2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    height: 100%;
    width: auto;
}

.first-view--img {
    margin-left: auto;
}

.first-view--img--img {
    object-fit: contain;
    opacity: 0;
}

.first-view--text {
    font-size: large;
    text-align: center;
    margin-top: 9rem;
    margin-left: 3rem;
}

.first-view--logo {
    display: block;
    width: 180px;
    margin-top: 8rem;
    margin-left: 3rem;
}

.first-view--logo img {
    object-fit: cover;
}

.cta-section {
    display: flex;
    margin: 12px 0;
}

.cta-btn {
    height: 80px;
    width: 220px;
    display: flex;
    margin: auto;
    background-color: #c2c467;
    border-radius: 50%;
    font-size: large;
}

.cta-btn a {
    display: flex;
    height: 100%;
    width: 100%;
    color: #000;
    padding: 4px 12px;
    justify-content: space-between;
    align-items: center;
}

.scrollbar {
    position: fixed;
    bottom: 1rem;
    line-height: 32px;
    animation: fuwafuwa 3s ease-in-out infinite alternate;
}

@keyframes fuwafuwa {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(0, -8px);
    }

    100% {
        transform: translate(0, 0);
    }
}



.scrollbar::before {
    animation: scroll 2s infinite;
    content: "";
    background-color: #000;
    height: 40px;
    width: 1px;
    border-radius: 8px;
    margin-left: -12px;
    position: absolute;
}

@keyframes scroll {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }

    50% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }

    51% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }

    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}

.left-static {
    height: 100vh;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
}

.side--logo {
    z-index: 100;
    width: auto;
    margin-top: 4rem;
    margin-left: 1rem;
}

.side--logo img {
    object-fit: contain;
    width: 180px;
}

.side--img {
    text-align: end;
    width: auto;
    bottom: 4.5rem;
    left: 60px;
    opacity: 0;
}

.side--img--img {
    object-fit: contain;
    max-width: 260px;
}

.catchphrase--prof {
    text-align: start;
}

.catchphrase--text {
    text-align: center;
    margin-bottom: 1rem;
}


body.portfolio-page {
    background: #faf5f7;
    color: #2f2f2f;
}

.portfolio-header {
    background: linear-gradient(135deg, #fd8c94, #fec4d4);
    color: #fff;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.portfolio__title {
    font-size: large;
    font-weight: bolder;
    line-height: 2.5rem;
}

.portfolio-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portfolio-header__title {
    display: flex;
    flex-direction: column;
}


.portfolio-header__brand {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.portfolio-header__title {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    font-size: 4rem;
}

.portfolio-header__menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portfolio-header__menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.portfolio-header__menu a:hover {
    text-decoration: underline;
}

.portfolio-page__content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.portfolio__thumbnail img {
    height: 360px;
    width: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
}

.portfolio__link {
    align-self: center;
    margin-top: 2rem;
}

.portfolio__footer {
    display: flex;
    flex-direction: column;
    font-size: medium;


    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: auto;
}

.back_section {
    margin-top: 3rem;
}

.archive {
    background-color: var(--main2);
}

.entry-title {
    line-height: 2rem;
}

.entry-meta {
    display: none;
}

body.archive-portfolio {
    background: #faf5f7;
    color: #2f2f2f;
}

.portfolio-filters-switch-mb {
    display: flex;
    width: 240px;
    font-size: small;
    margin-bottom: 1rem;
    position: relative;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.portfolio-filters-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.2s ease;
}

.portfolio-filters-wrapper.is-open {
    max-height: 2500px;
    opacity: 1;
    margin-top: 1rem;
}



.portfolio-filters-switch-mb::after {
    content: "▾";
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.portfolio-filters-switch-mb.is-open::after {
    transform: rotate(180deg);
}


.portfolio-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
}

.portfolio-archive__main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.portfolio-archive__sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.portfolio-filter {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 1rem;
    font-family: var(--mainfont);
    font-size: small;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portfolio-filter__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #2f2f2f;
    font-family: var(--titlefont);
}

.portfolio-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-filter__item {
    margin: 0;
}

.portfolio-filter__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.portfolio-filter__link:hover {
    background-color: #f0f0f0;
    color: var(--main1);
}

.portfolio-filter__link.is-active {
    background-color: var(--main2);
    color: var(--main1);
    font-weight: 600;
}

.portfolio-filter__count {
    font-size: 0.85rem;
    color: #999;
}

.portfolio-filter__link.is-active .portfolio-filter__count {
    color: var(--accent);
    font-weight: 600;
}


.portfolio-archive__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    box-shadow: 0 8px 16px rgba(253, 140, 148, 0.2);
    transform: translateY(-4px);
}

.portfolio-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.portfolio-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card__image img {
    transform: scale(1.05);
}

.portfolio-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    flex: 1;
}

.portfolio-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #2f2f2f;
    font-family: var(--titlefont);
    line-height: 1.4;
}

.portfolio-card__excerpt {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.portfolio-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.portfolio-card__tag {
    display: inline-block;
    background-color: var(--main2);
    color: var(--main1);
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.portfolio-archive__pagination {
    margin-top: 2rem;
    text-align: center;
}

.portfolio-archive__pagination .page-numbers {
    display: inline-flex;
    gap: 0.5rem;
}

.portfolio-archive__pagination .page-numbers a,
.portfolio-archive__pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.portfolio-archive__pagination .page-numbers a:hover {
    background-color: var(--main1);
    color: #fff;
    border-color: var(--main1);
}

.portfolio-archive__pagination .page-numbers .current {
    background-color: var(--main1);
    color: #fff;
    border-color: var(--main1);
}

.portfolio-archive__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 1.1rem;
}

.portfolio-template-default .sidebar-menu__item a,
.portfolio-template-default .sidebar-menu__list .menu-item>a,
.archive .sidebar-menu__item a,
.archive .sidebar-menu__list .menu-item>a {
    color: var(--main1);
}

.portfolio-template-default .sidebar-menu__item a:hover,
.portfolio-template-default .sidebar-menu__list .menu-item>a:hover,
.archive .sidebar-menu__item a:hover,
.archive .sidebar-menu__list .menu-item>a:hover {
    color: var(--main2);
    -webkit-text-stroke: 2px var(--main1);
}

.portfolio-template-default .sidebar-menu__list,
.archive .sidebar-menu__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem 1rem;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}