/*
Theme Name: Arkhe Child
Template: arkhe
Version: 1.0.0
*/

/* サイトタイトル非表示 */
.c-headLogo {
    display: none;
}

/* ========================================
TOPへ戻るボタン
======================================== */

#pagetop {
    position: fixed;

    right: 20px;
    bottom: 20px;
    z-index: 999;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #FFF9F4;
    box-shadow: 0 4px 12px rgba(91, 70, 54, 0.1);

    transition: 0.3s;
}


/* hover */

#pagetop:hover {
    transform: translateY(-4px);
}


/* デフォルト矢印を消す */

#pagetop svg,
#pagetop i {
    display: none;
}


/* 矢印をCSSで作る */

#pagetop::before {
    content: "";

    width: 14px;
    height: 14px;

    border-top: 3px solid #BFA998;
    border-left: 3px solid #BFA998;

    transform: rotate(45deg);
}


/* ========================================
Display Posts Shortcode
投稿一覧カード
======================================== */


/* グリッドレイアウト */
.display-posts-listing.grid {
    display: grid;

    /* 3カラム・レスポンシブ */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    /* カード間余白 */
    gap: 20px;

    /* ul初期化 */
    margin: 0;
    padding: 0;
    list-style: none;
}


/* 投稿カード */
.display-posts-listing.grid .listing-item {
    display: flex;
    flex-direction: column;

    border: 1px solid #FDBEBA;
    border-radius: 10px;
    padding: 15px;

    transition: transform 0.3s, box-shadow 0.3s;
}

.display-posts-listing.grid .listing-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(91, 70, 54, 0.08);
}


/* タイトル */
.display-posts-listing.grid .listing-item .title {
    display: block;

    margin: 4px 0 8px;

    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}


/* サムネイル画像 */
.display-posts-listing.grid .listing-item img {
    max-width: 100%;
    height: auto;

    /* 横長固定 */
    aspect-ratio: 2 / 1;

    object-fit: cover;
    border-radius: 7px;
}


/* 投稿日 */
.display-posts-listing.grid .listing-item .date {
    display: block;

    order: 2;

    font-size: 0.7em;
}


/* 抜粋 */
.display-posts-listing.grid .listing-item .excerpt {
    display: block;

    order: 1;

    font-size: 0.8em;
    text-decoration: none;
}


/* 「-」非表示 */
.display-posts-listing.grid .listing-item .excerpt-dash {
    display: none;
}

/* ========================================
base
======================================== */

body {
    font-family: "M PLUS Rounded 1c", sans-serif;
}

/* ========================================
FV
======================================== */

.fv {
    position: relative;

    padding: 40px 20px;
    background: #fbf7f2;

    overflow: visible;
}

.fv__inner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    max-width: 1100px;
    margin: 0 auto;
}

.fv__content {
    flex: 0 0 40%;
    padding-left: 88px;
}

.fv__title {
    margin-bottom: 24px;

    font-size: 40px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #5b4636;
}

.fv__lead {
    margin-bottom: 20px;

    font-size: 20px;
    line-height: 1.8;
    font-weight: 400;
    color: #5b4636;
}

.fv__text {
    margin-bottom: 32px;

    font-size: 12px;
    line-height: 1.8;
    font-weight: 400;
    color: #7a6a5d;
}

.fv__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    padding: 8px 32px;

    border-radius: 999px;

    background: #FDBEBA;
    color: #FBF7F1;

    font-weight: 400;
    font-size: 14px;
    text-decoration: none;

    transition: 0.3s;
}

.fv__button:hover {
    opacity: 0.8;
}


/* ========================================
FV visual
======================================== */

.fv__visual {
    position: relative;
    flex: 0 0 55%;
}

.fv__main {
    position: relative;

    width: 100%;
    height: auto;
    display: block;
}

.fv__cloud {
    position: absolute;

    top: -2%;
    left: 4%;

    width: 18%;
    max-width: 122px;
}

.fv__sun {
    position: absolute;

    top: 2%;
    right: -1%;

    width: 15%;
    max-width: 100px;
}

.fv__bush {
    position: absolute;

    right: -18%;
    bottom: -2%;

    width: 52%;
    max-width: 353px;
}


/* ========================================
FV decoration
======================================== */

.fv-deco {
    position: absolute;

    display: block;
    height: auto;
    pointer-events: none;
}

/* 左上の旗：画面幅基準 */
.fv-deco--flag {
    top: 0;
    left: 0;

    width: 200px;
}

/* ここから下は .fv__inner 基準 */
.fv-deco--attention {
    top: 12%;
    left: 5%;
    width: 28px;
}

.fv-deco--star-pink {
    top: 9%;
    left: 24%;
    width: 24px;
}

.fv-deco--star-yellow {
    top: 2%;
    left: 28%;
    width: 24px;
}

.fv-deco--circle-blue {
    top: 57%;
    left: 1%;
    width: 14px;
}

.fv-deco--flower-pink {
    top: 64%;
    left: 3%;
    width: 26px;
}

.fv-deco--dots-blue {
    top: 78%;
    left: 34%;
    width: 50px;
}

.fv-deco--circle-green {
    top: 74%;
    left: 44%;
    width: 12px;
}

/* ========================================
FV layer
======================================== */

/* その他装飾 */
.fv-deco,
.fv__cloud,
.fv__sun {
    z-index: 1;
}

/* メインイラスト */
.fv__main {
    z-index: 2;
}

/* 草 */
.fv__bush {
    z-index: 3;
}

/* 旗 */
.fv-deco--flag {
    z-index: 4;
}

/* テキスト */
.fv__content {
    position: relative;
    z-index: 5;
}


/* ========================================
responsive
======================================== */

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

    .fv {
        padding: 40px 20px;
        overflow-x: hidden;
    }

    .fv__inner {
        flex-direction: column-reverse;
        gap: 40px;

        text-align: center;
    }

    .fv__content {
        flex: none;
        width: 100%;
        padding-left: 0;
    }

    .fv__visual {
        flex: none;
        width: 100%;

        margin-top: 40px;
    }

    .fv__title {
        font-size: 28px;
    }

    .fv__lead {
        font-size: 16px;
        line-height: 1.6;
    }

    .fv__text {
        font-size: 12px;
    }

    .fv__button {
        min-width: 160px;
    }

    .fv__cloud {
        width: 20%;
    }

    .fv__sun {
        width: 16%;
    }

    .fv__bush {
        width: 45%;
        right: -10%;
    }

    .fv-deco--flag {
        width: 140px;
    }

    .fv-deco--star-pink {
        top: 50%;
        left: 0;
        width: 16px;
    }

    .fv-deco--star-yellow {
        top: 45%;
        left: 12%;
        width: 18px;
    }

    .fv-deco--circle-blue {
        top: 87%;
        left: 97%;
        width: 10px;
    }

    .fv-deco--flower-pink {
        top: 90%;
        left: 86%;
        width: 26px;
    }

    .fv-deco--attention,
    .fv-deco--dots-blue,
    .fv-deco--circle-green {
        display: none;
    }
}

/* ========================================
What I Do
======================================== */

.what {
    position: relative;

    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    padding: 40px 20px 80px;
    background: #fbf2e9;
}


/* 波 */

.what__wave {
    position: absolute;
    top: -32px;
    left: 0;

    width: 100%;
    height: 32px;

    background-image: url("https://norico-design.net/wp-content/uploads/2026/05/wave-1.svg");
    background-repeat: repeat-x;
    background-size: auto 32px;
    background-position: left top;

    line-height: 0;
    overflow: hidden;
    z-index: 2;
}

.what__wave img {
    display: none;
}


/* inner */

.what__inner {
    position: relative;

    max-width: 1100px;
    margin: 0 auto;
}


/* 見出し */

.what__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    margin-bottom: 40px;
}


/* 装飾画像 */

.what__heading-icon {
    width: auto;
    height: 30px;
    max-width: none;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
}


/* タイトル */

.what__title {
    margin: 0;

    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.02em;

    color: #5b4636;
}


/* カード一覧 */

.what__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}


/* カード */

.what-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    min-height: 200px;

    padding: 24px 18px 22px;

    border-radius: 24px;
    background: #FBF7F1;

    text-align: center;
}


/* アイコン */

.what-card__icon {
    width: 88px;
    height: auto;

    margin-bottom: 16px;
}


/* 小タイトル */

.what-card__title {
    margin-bottom: 10px;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;

    color: #5b4636;
}


/* 説明文 */

.what-card__text {
    margin: 0;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;

    color: #7a6a5d;
}

/* ========================================
What decoration
======================================== */

.what__heading {
    position: relative;
}

.what-deco {
    position: absolute;
    pointer-events: none;
}

/* 虹 */

.what-deco--rainbow {
    width: 72px;

    top: 4px;
    left: -2%;
}

/* ピンクドット */

.what-deco--dots {
    width: 48px;

    top: -4px;
    right: 4%;
}


/* ========================================
What I Do responsive
======================================== */

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

    .what__cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}


@media screen and (max-width: 520px) {
    .what__wave {
        margin-bottom: 48px;
    }

    .what__heading {
        margin-bottom: 28px;
    }

    .what__heading-icon {
        height: 24px;
    }

    .what__cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .what-card {
        max-width: 280px;
        margin: 0 auto;
    }

    /* ========================================
    What decoration
    ======================================== */

    /* 虹 */

    .what-deco--rainbow {
        width: 52px;

        top: 8px;
    }

    /* ピンクドット */

    .what-deco--dots {
        width: 36px;

        top: 4px;
        right: -1%;
    }

}


/* ========================================
Works detail
======================================== */

.works-detail {
    padding: 0 20px 80px;
}


/* タイトル */

.works-detail h2,
.works-detail__title {
    text-align: center;
    margin-bottom: 20px;
}


/* ========================================
Works tags
======================================== */

.works-detail__tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;

    margin: 12px 0 32px;
}

.works-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 20px;
    padding: 0 14px;

    border-radius: 999px;

    background: #FDBEBA;
    color: #FBF7F1;

    font-size: 12px;
    line-height: 1;

    white-space: nowrap;
}


/* ========================================
Works swiper
======================================== */

.works-detail__swiper {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 0 16px;
}

.works-swiper {
    position: relative;

    border-radius: 32px;
    overflow: hidden;

    box-shadow: 0 8px 24px rgba(91, 70, 54, 0.08);
}

.works-swiper img {
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;

    display: block;
}


/* インジケーター */

.works-swiper .swiper-pagination {
    bottom: 12px;
}

.works-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;

    background: #FBF7F1;
    opacity: 0.75;
}

.works-swiper .swiper-pagination-bullet-active {
    background: #FDBEBA;
    opacity: 1;
}

/* ========================================
Works info
======================================== */

.works-info-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;

    margin: 0 0 32px;
}

.works-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 36px;
    padding: 6px 14px;

    border-radius: 999px;
    border: 1px solid;

    font-size: 12px;
    line-height: 1.4;
    color: #554531;
}

.works-info img {
    width: auto;
    height: 22px;

    display: block;
}


/* 担当範囲 */

.works-info--scope {
    background: #EDF5F9;
    border-color: #98C5DF;
}


/* ツール */

.works-info--tool {
    background: #FFEFEE;
    border-color: #FDBDB9;
}


/* 制作時間 */

.works-info--time {
    background: #FFF1D6;
    border-color: #FDC454;
}


/* 制作時期 */

.works-info--year {
    background: #E6F0E0;
    border-color: #74D634;
}

/* ========================================
Works description
======================================== */

.works-description {
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
    padding: 24px 0 60px;
}

.works-description p {
    margin: 0;

    font-size: 15px;
    line-height: 2;
    color: #554531;
}

/* ========================================
Works section
======================================== */
.works-section {
    max-width: 1000px;
    margin: 0 auto 80px;
}

/* 見出し */

.works-section__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;

    margin-bottom: 24px;

    font-size: 20px;
    font-weight: 400;
    color: #554531;
}

.works-section__line {
    width: 120px;
    height: auto;

    display: block;
}


/* 説明文 */

.works-section__text {
    max-width: 700px;
    margin: 0 auto 32px;

    font-size: 14px;
    line-height: 2;
    color: #554531;

    text-align: left;
}


/* 画像 */

.works-section__images {
    display: flex;
    justify-content: center;

    margin-top: 32px;
}

.works-section__images img {
    width: 100%;
    max-width: 700px;

    height: auto;
    display: block;

    border-radius: 24px;
}

/* ========================================
Works title
======================================== */

.c-pageTitle__main {
    text-align: center;
}

/* ========================================
Default tag style
======================================== */

.c-postTerms__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 20px;
    padding: 0 14px;
    margin: 0 6px 6px 0;

    border-radius: 999px;

    background: #FDBEBA;
    color: #FBF7F1;

    font-size: 12px;
    line-height: 1;

    text-decoration: none;

    transition: 0.3s;
}

.c-postTerms__link:hover {
    opacity: 0.7;
}

/* タグアイコン非表示 */

.c-postMetas__icon {
    display: none;
}

/* タグのカンマ削除 */

.c-postTerms__link::after {
    display: none;
}

/* 投稿タグ中央寄せ */

.c-postMetas {
    justify-content: center;
}

/* ========================================
Works 上部タグ一覧
======================================== */
.works-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;

    margin: 32px 0 40px;
}

.works-filter__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 28px;
    padding: 0 18px;

    border-radius: 999px;
    background: #FDBEBA;
    color: #FBF7F1;

    font-size: 13px;
    text-decoration: none;
}

.works-filter__item:hover {
    opacity: 0.75;
}

/* ========================================
Works Grid
======================================== */

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
    justify-content: center;
    gap: 24px;
}


/* ========================================
Works Card
======================================== */

.works-card {
    width: 100%;
    border: 1px solid #FDBEBA;
    border-radius: 18px;
    padding: 12px;
    background: #FBF7F1;
    overflow: hidden;

    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.works-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 8px 24px rgba(91, 70, 54, 0.08);
}

.works-card.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.works-card.is-showing {
    animation: worksFadeIn 0.3s ease;
}


/* ========================================
Works Card Link
======================================== */

.works-card__link {
    display: block;

    color: inherit;
    text-decoration: none;
}


/* ========================================
Works Card Image
======================================== */

.works-card__image {
    border-radius: 12px;
    overflow: hidden;

    margin-bottom: 18px;
}

.works-card__image img {
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;

    display: block;

    transition: transform 0.4s;
}

.works-card:hover .works-card__image img {
    transform: scale(1.03);
}

@keyframes worksFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.works-filter__item {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.works-filter__item.is-active {
    background: #FDC454;
    border-color: #FDC454;
    color: #FBF7F1;
}


/* ========================================
Works Card Title
======================================== */

.works-card__title {
    margin-bottom: 12px;

    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;

    color: #554531;
}


/* ========================================
Works Card Excerpt
======================================== */

.works-card__excerpt {
    font-size: 12px;
    line-height: 1.2;

    color: #554531;
}

/* ========================================
Works detail responsive
======================================== */

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

    .works-detail {
        padding: 0 20px 64px;
    }

    .works-detail h2,
    .works-detail__title,
    .c-pageTitle__main {
        font-size: 28px;
        line-height: 1.45;
        text-align: center;
    }

    .works-detail__tags {
        justify-content: center;
        gap: 8px;
    }

    .works-detail__swiper {
        max-width: 100%;
        margin-bottom: 32px;
    }

    .works-swiper {
        border-radius: 28px;
    }

    .works-info-list {
        gap: 12px;
    }

    .works-info {
        min-height: 40px;
        padding: 8px 18px;
    }

    .works-description {
        padding: 24px 0 48px;
    }

    .works-description p {
        font-size: 15px;
        line-height: 2;
    }
}

@media screen and (max-width: 520px) {
    .works-grid {
        grid-template-columns: minmax(0, 360px);
        justify-content: center;
        gap: 24px;
    }

    .works-card {
        padding: 16px;
    }

    .works-card__title {
        font-size: 20px;
        line-height: 1.45;
    }

    .works-card__excerpt {
        font-size: 13px;
    }

    .works-filter {
        gap: 10px;
        margin: 32px 0 40px;
    }

    .works-filter__item {
        min-width: 88px;
        height: 32px;
        font-size: 14px;
    }
}

/* ========================================
Works title
======================================== */

.p-page__title {
    justify-content: center;
}

/* ========================================
Archive Works Card
カテゴリ・タグ一覧ページ
======================================== */

.archive .p-postList.-type-card {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
    justify-content: center;
    gap: 24px;

    margin: 48px auto 0;
    padding: 0;

    list-style: none;
}

.archive .p-postList__item {
    width: 100%;

    border: 1px solid #FDBEBA;
    border-radius: 18px;
    padding: 12px;

    background: #FBF7F1;
    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive .p-postList__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(91, 70, 54, 0.08);
}

.archive .p-postList__link {
    display: block;

    color: inherit;
    text-decoration: none;
}

.archive .p-postList__thumb {
    border-radius: 12px;
    overflow: hidden;

    margin: 12px 0 18px;
}

.archive .p-postList__thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;
    display: block;

    transition: transform 0.4s;
}

.archive .p-postList__item:hover .p-postList__thumb img {
    transform: scale(1.03);
}

.archive .p-postList__thumb::before {
    display: none;
}

.archive .p-postList__body {
    padding: 0;
    margin-bottom: 4px;
}

.archive .p-postList__title {
    margin: 0 0 12px;

    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;

    color: #554531;
}

.archive .p-postList__excerpt {
    font-size: 12px;
    line-height: 1.4;

    color: #554531;
}

/* アーカイブタイトル中央寄せ */
.archive .p-archive__title,
.archive .c-pageTitle__main {
    text-align: center;
}

.archive .p-archive__title {
    justify-content: center;
}

/* SP */
@media screen and (max-width: 520px) {
    .archive .p-postList.-type-card {
        grid-template-columns: minmax(0, 360px);
        gap: 24px;
    }

    .archive .p-postList__item {
        padding: 16px;
    }

    .archive .p-postList__title {
        font-size: 20px;
        line-height: 1.45;
    }

    .archive .p-postList__excerpt {
        font-size: 13px;
    }
}

/* ========================================
Works section SP
======================================== */

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

    .works-section__title {
        gap: 12px;

        font-size: 16px;
        line-height: 1.4;
    }

    .works-section__line {
        width: 64px;
    }

}

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

    .works-section__line {
        display: none;
    }

    .works-section__title {
        gap: 0;
        justify-content: center;

        font-size: 16px;
    }

}

/* ========================================
Pagination
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 48px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #FDBEBA;
    color: #FBF7F1;

    text-decoration: none;
}

/* 現在ページ */

.page-numbers.current {
    background: transparent;
    border: 1px solid #FDBEBA;

    color: #FDBEBA !important;
}
.page-numbers:hover {
    opacity: 0.75;
}

/* ========================================
Header nav hover
======================================== */

.l-header a:hover,
.c-gnav a:hover,
.c-gnav .__mainText:hover {
    color: #554531;
    opacity: 0.7;
}

/* ========================================
Header current menu color
======================================== */

.c-gnav .current-menu-item a,
.c-gnav .current-menu-ancestor a,
.c-gnav .current_page_item a {
    color: #554531 !important;
}