@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');

/* 簡易リセットCSS */
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* 共通 */
html,
body,
p {
    margin: 0;
    padding: 0;
    font-size: 62.5%;
    color: #333;
}

body {
    background: #fafaf7;
    font-family: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', sans-serif;
}

body.is-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

p {
    font-size: 1.6rem;
    font-weight: 300;
}

.pt100 {
    padding-top: 100px;
}

.mt20 {
    margin-top: 20px;
}

.mt40 {
    margin-top: 40px;
}

.mb40 {
    margin-bottom: 40px;
}

.mb60 {
    margin-bottom: 60px;
}

.mb100 {
    margin-bottom: 100px;
}

@media (max-width: 480px) {
    p {
        font-size: 1.4rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .container {
        width: 90%;
    }

}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 48px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-mark-link {
    text-decoration: none;
}

.brand-mark-link:hover {
    opacity: .6;
    transition: .3s;
}

.brand-mark {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    letter-spacing: .25em;
    color: #1a1a18;
    font-weight: 400;
    line-height: 1.2;
}

.lang {
    font-size: 11px;
    letter-spacing: .18em;
    color: #aaa;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang .active {
    color: #1a1a18;
}

.lang span {
    cursor: pointer;
    transition: color .15s;
}

.lang span a {
    color: #555;
    text-decoration: none;
}

.lang span:not(.active):hover,
.lang span a:hover {
    color: #555;
}

.lang .sep {
    color: #ddd;
}

/* Hero with parallax */
.hero-wrap {
    position: relative;
    height: 46vh;
    min-height: 380px;
    max-height: 520px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../img/top/top_image.webp');
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.10) 50%, rgba(0, 0, 0, 0.50) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    color: #fff;
    text-align: center;
}

.hero-title {
    font-family: 'Instrument Serif', 'Georgia', serif;
    font-size: clamp(38px, 5.8vw, 72px);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: 1.1;
    text-shadow: 0 2px 36px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .header {
        padding: 16px 22px;
    }

    .hero-wrap {
        height: 40vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: 34px;
    }
}

.page-section {
    height: auto;
    padding-bottom: 100px;
    /* 上下の余白 */
    text-align: center;
}

/* 検索欄 */
:root {
    --bg: #f5f4f1;
    --surface: #ffffff;
    --border: rgba(0, 0, 0, 0.10);
    --border-strong: rgba(0, 0, 0, 0.22);
    --text: #1a1a18;
    --text2: #6b6b66;
    --text3: #aaa9a4;
    --accent: #1a1a18;
    --rad: 6px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.tagline-section {
    background: #fafaf7;
    padding: 56px 30px 40px;
    text-align: center;
}

.tagline-jp {
    font-family: 'Shippori Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 19px;
    color: #1a1a18;
    letter-spacing: .14em;
    font-weight: 400;
}

.tagline-en {
    font-size: 10px;
    color: #a0a0a0;
    letter-spacing: .22em;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 12px;
}

.chips-section {
    background: #fafaf7;
    padding: 0 30px 80px;
    text-align: center;
}

.section-label {
    font-size: 9px;
    letter-spacing: .3em;
    color: #b0b0a8;
    margin-bottom: 32px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

.chips-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.chip-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    transition: transform .2s, box-shadow .2s;
}

.chip:hover .chip-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chip-circle.active {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.chip-label {
    font-size: 11px;
    color: #555;
    letter-spacing: .05em;
    font-family: 'Helvetica Neue', sans-serif;
}

.cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 10px;
}

.cta-text {
    font-size: 11px;
    color: #5a5a55;
    letter-spacing: .14em;
    border-bottom: 0.5px solid #b0b0a8;
    padding-bottom: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: color .15s, border-color .15s;
}

.cta-text:hover {
    color: #1a1a18;
    border-color: #1a1a18;
}

.scroll-indicator {
    font-size: 9px;
    color: #b0b0a8;
    font-weight: 400;
    letter-spacing: .3em;
    margin: 36px 0;
}

/* For demo: extra content below to show scroll/parallax */
.demo-spacer {
    height: 800px;
    background: #fafaf7;
}

.filter-section {
    margin-bottom: 16px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 1.4rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text3);
    width: 70px;
    flex-shrink: 0;
    font-family: 'Helvetica Neue', sans-serif;
    white-space: nowrap;
}

/* Color chips */
.color-chip {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    position: relative;
    flex-shrink: 0;
}

.color-chip:hover {
    transform: scale(1.1);
}

.color-chip.active {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.color-chip[title]::after {
    content: attr(title);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--text2);
    white-space: nowrap;
    font-family: 'Helvetica Neue', sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.color-chip:hover::after {
    opacity: 1;
}

/* Gloss / surface buttons */
.filter-btn {
    padding: 5px 12px;
    border: 0.5px solid var(--border-strong);
    border-radius: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    background: transparent;
    color: var(--text2);
    transition: all .15s;
    font-family: 'Helvetica Neue', sans-serif;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--text);
    color: var(--text);
}

.filter-btn.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.adv-section {
    margin-top: 10px;
    padding-top: 10px;
    display: none;
}

.adv-section.open {
    display: block;
}

/* Results header */
.results-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 16px;
}

.result-count {
    font-size: 1.4rem;
    color: var(--text2);
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: .04em;
}

.clear-btn {
    margin-top: 20px;
    padding: 5px 12px;
    border: 0.5px solid #00000038;
    border-radius: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: #00000038;
    color: #fff;
    transition: all .15s;
    font-family: 'Helvetica Neue', sans-serif;
    white-space: nowrap;
}

.clear-btn:hover {
    color: var(--text);
    border-color: var(--text);
    background-color: transparent;
}

/* Swatch grid */
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.swatch {
    border: 0.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    transition: all .2s;
}

.swatch:hover {
    border-color: var(--border-strong);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.swatch-img {
    height: 80px;
}

.swatch-info {
    padding: 7px 8px 8px;
}

.swatch-name {
    font-size: 10px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    font-family: 'Helvetica Neue', sans-serif;
}

.swatch-tags {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    flex-wrap: wrap;
    pointer-events: none;
}

.tag {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    background: var(--bg);
    color: var(--text2);
    font-family: 'Helvetica Neue', sans-serif;
}

.tag-mat {
    background: #eee8df;
    color: #7a6a50;
}

.no-results {
    text-align: center;
    padding: 48px;
    color: var(--text3);
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 13px;
}

/* Legend */
.legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text2);
    font-family: 'Helvetica Neue', sans-serif;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

@media (max-width: 768px) {

    .tagline-section {
        padding: 40px 20px 28px;
    }

    .tagline-jp {
        font-size: 16px;
    }

    .chips-row {
        gap: 16px;
    }

    .chip-circle {
        width: 38px;
        height: 38px;
    }
}

/* 検索結果 */

.filter-results {
    width: 16rem;
    margin: 0 auto;
    font-size: 2rem;
    border-bottom: 1px solid #444348;
}

.filter-results span {
    padding: 0 10px;
    font-size: 4rem;
    color: #444348;
}

.materials-wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    pointer-events: none;
}

.materials-box {
    width: fit-content;
    pointer-events: none;
    position: relative;
}

.dl-icon {
    position: absolute;
    bottom: 5px;
    right: 10px;
    z-index: 2;
}

.dl-icon i {
    width: 30px;
    height: 30px;
    color: #444348;
}

.materials-box button {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    pointer-events: all;
    cursor: pointer;
    border: none;
}

.materials-box button .text_area {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 50%;
    position: absolute;
    top: 60%;
    left: 5%;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6rem;
    text-align: center;
    color: #444348;
    transition: .3s;
    z-index: 2;
}

.materials-box button .tag {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    z-index: 2;
}

.materials-box button:hover .text_area {
    height: 100%;
    top: 0%;
}

.materials-box button::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(238, 236, 234, 0.7);
    position: absolute;
    left: 0;
    bottom: -70%;
    transition: .3s;
    z-index: 1;
    pointer-events: none;
}

.materials-box button:hover::before {
    bottom: 0;
}

.materials-box button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.materials-box button:hover img {
    transform: scale(1.1);
}

@media (max-width: 980px) {
    .materials-wrap {
        grid-template-columns: repeat(4, 1fr);
    }

    .top-text-area {
        margin: 60px 0;
    }

    .top-text {
        margin: 60px auto;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .top-visual {
        height: fit-content;
        flex-wrap: wrap;
    }

    .top-title-area h2 {
        font-size: clamp(3rem, 3vw, 7rem);
    }

    .top-title-area small {
        font-size: clamp(1.6rem, 2vw, 2rem);
    }

    .materials-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .materials-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .materials-box button .text_area {
        font-size: clamp(1rem, 1.4vw, 1.2rem);
    }

    .dl-icon {
        bottom: 0px;
        right: 5px;
    }

}

/* モーダル */
#swiper01 {
    touch-action: none;
}

.swiper-wrapper,
.swiper-slide {
    touch-action: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    background-color: #fff;
    overflow-y: scroll;
}

/* モーダルがactiveの時 */
.modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* モーダル背景のオーバーレイ部分 */
.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* モーダルのコンテンツ */
.modal__content {
    position: relative;
    background-color: #fff;
    width: 100%;
    max-width: 1000px;
    height: 100%;
    max-height: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* モーダルを閉じるボタン */
.modal__close-btn {
    font-family: "Gill Sans", sans-serif;
    position: absolute;
    right: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    font-size: 3rem;
    font-weight: 300;
    line-height: 40px;
    color: #444348;
    background-color: #fff;
    border: solid 1px #444348;
    border-radius: 50px;
    cursor: pointer;
    z-index: 10;
}

.controls {
    position: absolute;
    right: 0;
    left: 0;
    top: 71vh;
    width: fit-content;
    /* margin: 0 auto; */
    margin-bottom: 16px;
    padding-left: 240px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    z-index: 110;
    pointer-events: none;
}

.controls button {
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: 300;
    color: #444348;
    background-color: #fff;
    border: solid 1px #444348;
    border-radius: 100px;
    cursor: pointer;
    pointer-events: auto;
}

.scale-value {
    display: inline-block;
    width: fit-content;
    font-size: 1.6rem;
    font-weight: bold;
}

.zoom-canvas {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 1000px;
    max-height: 1000px;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: grab;
    z-index: 110;
}

.zoom-image {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.materials-item {
    display: flex;
    justify-content: center;
    column-gap: 2rem;
    margin-top: 30px;
}

.materials-item-contents {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.materials-item-text-area p {
    font-size: 2rem;
}

.materials-item-cat-area {
    width: 366px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.materials-item-cat-area p {
    width: fit-content;
    padding: 5px 12px;
    border: 0.5px solid var(--border-strong);
    border-radius: 20px;
    font-size: 1.4rem;
    background: transparent;
    color: var(--text2);
    transition: all .15s;
    font-family: 'Helvetica Neue', sans-serif;
    white-space: nowrap;
}

.materials-item-right-dl {
    display: block;
    margin: 0 auto;
    margin-top: 20px;
    height: 40px;
    width: fit-content;
}

.materials-item-right-dl a {
    display: flex;
    height: 40px;
    width: 100%;
    color: #333;
    text-decoration: none;
}

.materials-item-right-dl a p {
    padding-left: 10px;
    display: block;
    font-size: 1.6rem;
    color: #333;
    flex-shrink: 0;
}

.materials-item-right-dl a:hover,
.materials-item-right-dl a:hover p {
    opacity: .8;
    transition: .3s;
}

.swiper-button-prev,
.swiper-button-next {
    height: 40px;
    width: 40px;
}

.swiper-button-prev {
    left: -50px;
}

.swiper-button-next {
    right: -50px;
}

/* 前へ次への矢印カスタマイズ */
.swiper-button-prev::after,
.swiper-button-next::after {
    margin: auto;
    content: "";
    height: 40px;
    width: 40px;
    background-repeat: no-repeat;
    background-size: contain;
}

/* 前への矢印カスタマイズ */
.swiper-button-prev::after {
    background-image: url(../img/slider_left_arrow.svg);
}

/* 次への矢印カスタマイズ */
.swiper-button-next::after {
    background-image: url(../img/slider_right_arrow.svg);
}

@media (max-width:1150px) {
    .modal {
        padding: 60px;
    }

    .controls {
        padding-left: 20vw;
    }
}

@media (max-width:980px) {
    .modal {
        padding: 30px;
        padding-top: 60px;
    }

    .controls {
        top: 0;
        margin: 0 auto;
        margin-bottom: 16px;
        padding-left: 55px;
    }

    .controls::before {
        content: "";
        display: block;
        width: 100%;
        height: 84vw;
        pointer-events: none;
        /* 1:1 */
    }

    .zoom-canvas {
        max-width: 90%;
        max-height: 90%;
    }

    .modal__content {
        display: block;
    }

    .materials-item {
        flex-wrap: wrap;
        margin-top: 0;
    }

    .materials-item-contents {
        width: 100%;
    }

    .materials-item-text-area {
        margin-top: 80px;
    }

    .materials-item-cat-area {
        width: fit-content;
    }

    .modal__close-btn {
        right: -10px;
        top: -50px;
    }

    .swiper-button-prev {
        left: -10px;
    }

    .swiper-button-next {
        right: -10px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        top: 43vw;
    }

}


/* Swiperの矢印部分 */
@media (max-width: 768px) {

    .modal .swiper-button-next,
    .modal .swiper-button-prev {
        display: none;
    }

    .materials-item {
        grid-template-columns: 1fr;
    }

    .materials-item-left img {
        width: 70%;
    }

    .controls::before {
        height: 82vw;
    }
}

@media (max-width: 480px) {
    .modal {
        padding-top: 30px;
    }

    .materials-item-left img {
        width: 100%;
    }

    .modal__content {
        height: 90%;
    }

    .controls::before {
        height: 80vw;
        /* 1:1 */
    }
}

/* ズーム */
.m-lens {
    position: absolute;
    top: 50px;
    left: 30px;
    z-index: 2;
    background: #E3E6E9;
    opacity: 0.5;
    height: 172px;
    width: 172px;
}

.zoom-area {
    margin: 0 auto;
    display: block;
    border: 1px solid #ccc;
    width: clamp(30rem, 5vw, 60rem);
    height: clamp(30rem, 5vw, 60rem);
    aspect-ratio: 1;
    overflow: hidden;
}


.zoom-area img {
    width: 1040px;
    /* JSで適切な値を設定する */
    margin-top: -30px;
    margin-left: -60px;
}

.m-lens {
    display: none;
}

.materials-item-left:hover .m-lens {
    display: block;
}

@media (max-width: 768px) {
    .m-lens {
        pointer-events: none;
        opacity: 0;
    }

    .zoom-area {
        display: none;
    }
}

.achivements__slider {
    width: 100%;
    height: 460px;
    position: relative;
}

.achivements_slide {
    width: 20%;
    height: 400px;
    overflow: hidden;
}

.achivements_slide a {
    height: 400px;
    width: 100%;
    position: relative;
    display: block;
}

.achivements_slide a img {
    height: auto;
    width: 100%;
    object-fit: cover;
}

.achivements_slide a:hover img {
    transform: scale(1.1);
    transition: .3s;
}

.achivements_slide a:hover::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(227, 230, 233, 0.5);
    z-index: 2;
}

.achivements_button_area {
    position: absolute;
    bottom: 20px;
    right: 0;
}

.achivements_button_prev.swiper-button-prev::after {
    position: absolute;
    bottom: 0;
    right: 120px;
}

.achivements_scrollbar {
    width: 60% !important;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .achivements__slider {
        height: 360px;
    }

    .achivements_slide,
    .achivements_slide a img {
        height: 300px;
    }
}

/* フッター */
footer {
    background: #444348;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* ボタンのスタイル */
.page-top {
    /* buttonタグのリセットCSS */
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;

    /* ボタンの装飾 */
    position: fixed;
    right: 30px;
    bottom: 70px;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 100px;
    background-color: #444348;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transition: .5s;
}

.page-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* 矢印のスタイル */
.page-top::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-bottom: -6px;
    border-top: solid 3px #fff;
    border-right: solid 3px #fff;
    transform: rotate(-45deg);
}

/* ホバー時のスタイル */
.page-top:hover {
    transform: scale(1.1);
}