
@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@300;400;500&family=Yomogi&display=swap');

:root {
    --paper: #f7f4ed;
    --ink: #45483d;
    --pink: #f18bb7;
    --orange: #f39a50;
    --mint: #57c9b9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#top_back {
    margin: 0;
    color: var(--ink);
    font-family: 'Kiwi Maru', sans-serif;
    background: var(--paper) url('images/top/other_sozai_haikei.jpg') center top / 100% auto repeat-y;
    overflow-x: hidden;
    max-width: 1920px;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.sp_only {
    display: none;
}

.pc_only {
    display: block;
}

/* =========================
   LOADER
========================= */

.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #f8f5ee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity .8s, visibility .8s;
}

.loader img {
    width: 125px;
    animation: logoPop 1s both;
}

.loader span {
    font: 10px Georgia;
    letter-spacing: .3em;
    color: #777;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
}

@keyframes logoPop {
    from {
        opacity: 0;
        transform: scale(.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    z-index: 120;
    top: 15px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-shop {
    font: 11px Georgia;
    letter-spacing: .14em;
    color: #fff;
    text-shadow: 0 1px 5px #555;
}

.menu-btn {
    position: relative;
    z-index: 121;
    width: 40px;
    height: 36px;
    border: 0;
    background: #fff9;
    border-radius: 50%;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s;
}

.menu-btn:hover {
    transform: rotate(-9deg) scale(1.12);
    background: #fff;
}

.menu-btn i {
    height: 1px;
    background: #555;
    width: 100%;
    transition: width .3s, transform .3s;
}

.menu-btn i:last-child {
    width: 70%;
    justify-self: end;
}

.menu-btn:hover i:last-child {
    width: 100%;
}

/* =========================
   MENU
========================= */

.menu {
    position: fixed;
    z-index: 110;
    inset: 0;
    background: rgba(249, 245, 237, .48);
    -webkit-backdrop-filter: blur(15px) saturate(1.18);
    backdrop-filter: blur(15px) saturate(1.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: .45s;
    overflow: hidden;
}
.lineup_menu{
        margin: 0;
    padding: 0;

}
.menu .lineup_menu a{
        font-size: 15px;
}
.menu.open {
    opacity: 1;
    visibility: visible;
}
  .menu_box{
    margin: auto;
  }
.menu::before,
.menu::after {
    content: '✦';
    position: absolute;
    color: rgba(241, 139, 183, .55);
    font-size: clamp(35px, 7vw, 76px);
    pointer-events: none;
    animation: menuTwinkle 2.8s ease-in-out infinite;
}

.menu::before {
    top: 15%;
    left: 15%;
}

.menu::after {
    right: 14%;
    bottom: 13%;
    color: rgba(87, 201, 185, .55);
    animation-delay: .8s;
}

@keyframes menuTwinkle {
    0%, 100% {
        transform: translateY(0) rotate(0) scale(.85);
        opacity: .45;
    }
    50% {
        transform: translateY(-18px) rotate(24deg) scale(1.18);
        opacity: .95;
    }
}

.menu a {
    position: relative;
    z-index: 1;
    font: clamp(25px, 5vw, 42px) Georgia;
    letter-spacing: .15em;
    opacity: 0;
    transform: translateY(28px) scale(.94) rotate(-2deg);
    transition: opacity .65s ease, transform .75s cubic-bezier(.18, .85, .25, 1.25), color .25s;
    font-size: 17px;
    letter-spacing: 10px;
    display: block;
    line-height: 2.5;
}

.menu.open a {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
}

.menu.open a:nth-of-type(1) {
    transition-delay: .08s;
}

.menu.open a:nth-of-type(2) {
    transition-delay: .18s;
}

.menu.open a:nth-of-type(3) {
    transition-delay: .28s;
}

.menu.open a:nth-of-type(4) {
    transition-delay: .38s;
}

.menu a:hover {
    color: var(--pink);
    transform: translateY(-3px) rotate(-1deg);
}

.menu button {
    position: absolute;
    right: 6%;
    top: 25px;
    z-index: 2;
    border: 0;
    background: none;
    font: 13px Georgia;
    cursor: pointer;
}

/* =========================
   HERO SLIDESHOW
========================= */

.hero {
    position: relative;
    width: 100%;
    max-width: 1920px;
    aspect-ratio: 1920 / 660;
    margin: 0 auto;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.intro-copy{
        max-width: 550px;
}

.hero-slides picture {
    position: absolute;
    top: 226px;
    right: 0;
    width: min(1470px, 100%);
    height: 100%;
    display: block;
}

/* スライド画像 */
.hero-slides img {
    position: absolute;
    top: 50%;
    right: 0;
    left: auto;

    width: 100%;
    height: auto;
    max-height: none;
    max-width: none;

    object-fit: contain;
    object-position: right center;

    opacity: 0;
    transform: translateY(-50%) scale(1);
    transform-origin: right center;

    transition:
        opacity 1.25s ease,
        transform 6s ease;
}

.hero-slides img.active {
    opacity: 1;
    transform: translateY(-50%) scale(1.025);
}

.hero-badge {
    position: absolute;
    z-index: 2;
    left: 7%;
    top: 17%;
    width: 32%;
    max-width: 300px;
    filter: drop-shadow(0 5px 10px #9b6a7020);
    animation: badgeIn 1.2s .4s both;
    will-change: transform, opacity;
}

@keyframes badgeIn {
    from {
        opacity: 0;
        transform: translateY(18px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-badge.logo-pop {
    animation: badgePop .75s cubic-bezier(.2, .8, .25, 1.25) both;
}

@keyframes badgePop {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(.72) rotate(-9deg);
    }
    65% {
        opacity: 1;
        transform: translateY(-5px) scale(1.06) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
}

.hero-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 1px solid white;
    background: transparent;
    border-radius: 50%;
}

.hero-dots button.active {
    background: #fff;
}

/* =========================
   INTRO
========================= */

.intro {
    position: relative;
    text-align: center;
    padding: 15px 20px 12px;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
margin-bottom: 70px;
}

.intro-logo {
max-width: 180px;
    height: auto;
    margin: 50px auto 15px;
    width: 100%;
}

.intro-text {
    line-height: 1.9;
    letter-spacing: .04em;
    margin: 0;
    color: #66665e;
    text-align: left;
    max-width: 450px;
    font-size: 15px;
}

.lineup-title {
    font: clamp(27px, 4vw, 38px) 'Yomogi', cursive;
    margin: 0 0 12px;
    color: #77776f;
}

/* =========================
   DECORATION
========================= */

.paint {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    height: auto;
    transform-origin: center;
    animation: paintDrift 7s ease-in-out infinite;
}

.p-blue {
    width: 19%;
    left: -2%;
    top: 2%;
}

.p-yellow {
    width: 22%;
    right: -3%;
    top: 15%;
    animation-delay: -2.5s;
}

.p-green {
    width: 17%;
    left: -3%;
    top: 50%;
    animation-delay: -4.5s;
}

.p-red {
    width: 13%;
    left: -3%;
    top: 3%;
    animation-delay: -3s;
}

.p-mint {
    width: 22%;
    right: -5%;
    top: 4%;
    animation-delay: -2.5s;
}

.p-purple {
    width: 20%;
    right: -4%;
    top: 48%;
    animation-delay: -4.5s;
}

.p-orange {
    width: 7%;
    left: -1%;
    top: 15%;
    animation-delay: -4.5s;
}

.p-yellow2 {
    width: 11%;
    right: -2%;
    top: 0;
    transform: rotate(8deg);
    animation: paintFloatTilt 7s ease-in-out infinite;
}

@keyframes paintDrift {
    0%, 100% {
        translate: 0 0;
        rotate: 0deg;
    }
    50% {
        translate: 0 -13px;
        rotate: 2deg;
    }
}

@keyframes paintFloatTilt {
    0%, 100% {
        translate: 0 0;
        rotate: 8deg;
    }
    50% {
        translate: 0 -10px;
        rotate: 13deg;
    }
}

/* =========================
   COLLECTION
========================= */

.collection {
    position: relative;
    padding: 10px 0 38px;
    overflow: hidden;
}

.collection-inner {
    width: min(76%, 1000px);
    margin: auto;
    position: relative;
    z-index: 1;
}

.banner {
    width: 100%;
    height: auto;
    margin: 0 auto 28px;
    filter: drop-shadow(0 4px 7px #b6a99c18);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5%;
    align-items: start;
}

.item {
    display: block;
    text-align: center;
    min-width: 0;
    position: relative;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.item:hover {
    transform: translateY(-6px);
}

.item img {
    width: 100%;
    aspect-ratio: 1.28 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 9px #6f5d4c22;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s, box-shadow .7s;
}

.item:hover img {
    transform: translateY(-11px) rotate(2deg) scale(1.045);
    filter: saturate(1.13) brightness(1.035);
    box-shadow: 0 14px 24px rgba(160, 105, 120, .2);
}

.item::after {
    content: '✦';
    position: absolute;
    top: -12px;
    right: 4px;
    color: var(--pink);
    font-size: 21px;
    opacity: 0;
    transform: scale(.3) rotate(-35deg);
    pointer-events: none;
    transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.item:hover::after {
    opacity: 1;
    transform: scale(1) rotate(12deg);
}

.item span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-top: 16px;
    white-space: nowrap;
}

.sanrio .item span {
    color: #ed76ad;
}

.roll .item span {
    color: #a65d17;
}

.shinchan .item span {
    color: #37b5a8;
}

.view-all {
    width: 120px;
    display: block;
    margin: 22px auto 0;
    transition: transform .4s;
    animation: viewBob 3.4s ease-in-out infinite;
}

.view-all:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.07) rotate(-2deg);
}

.view-all img {
    width: 100%;
}

@keyframes viewBob {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -7px;
    }
}

/* =========================
   ROLL
========================= */

.roll {
    padding-top: 45px;
    padding-bottom: 52px;
}

.roll-banner {
    margin-bottom: 18px;
}

.roll .cards {
    gap: 4%;
}

.roll .item img {
    aspect-ratio: 1.3 / 1;
}

/* =========================
   SHINCHAN
========================= */

.shinchan {
    padding-top: 32px;
    padding-bottom: 30px;
}

.shinchan .banner {
    margin-bottom: 16px;
}

.shinchan .item img {
    aspect-ratio: 1.25 / 1;
}

/* =========================
   SHOP / FOOTER
========================= */

.shop {
    position: relative;
    margin-top: 0;
    padding: 36px 12% 42px;
    background: url('images/top/footer_sozai.png') center top / 100% 100% no-repeat;
    text-align: center;
    min-height: 420px;
}

.shop h2 {
    font: 34px 'Yomogi', cursive;
    color: #777;
    margin: 70px 0 30px;
}

.shop-photo {
    margin: 0 auto 38px;
}

.shop-info {
    max-width: 800px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    text-align: left;
}

.address {
    font-size: 14px;
    line-height: 1.8;
    color: #69665f;
}

.address strong {
    font-size: 20px;
}

.map {
    background: #eee;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #222;
    text-align: center;
    max-height: 300px;
}

.footer {
    margin: 60px 0 30px;
    font-size: 13px;
}

/* =========================
   SCROLL REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
    z-index: 2;
}

.intro-logo.in {
    animation: logoFloat 4.8s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-7px) rotate(-1deg);
    }
}

/* =========================
   PC
========================= */

@media (min-width: 900px) {

    .intro {
        min-height: 500px;
        padding-top: 28px;
    }

    .intro-copy {
        max-width: 560px;
        margin: 0 auto 18px;
        width: 100%;
    }

    .collection-inner {
        width: min(76%, 980px);
        margin-bottom: 80px;
    }

    .shop {
        padding-top: 100px;
    }

    .shop-photo {
        width: 800px;
    }
}

/* =========================
   TABLET
========================= */

@media (min-width: 651px) and (max-width: 899px) {

    .hero-slides picture {
        width: 100%;
    }


    .hero-badge {
        width: 28%;
    }

    .collection-inner {
        width: 85%;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .sp_only {
        display: block;
    }

    .pc_only {
        display: none;
    }

    body {
        background-size: auto 650px;
    }

    .header {
        top: 10px;
        right: 4%;
    }

    .header-shop {
        font-size: 9px;
    }

    .hero {
        width: 100%;
        aspect-ratio: 1650 / 1920;
        min-height: 0;
        max-height: none;
    }

    .hero-slides picture {
        width: 100%;
        height: 100%;
    }

    .hero-slides img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        top: 50%;
        right: 0;
        object-fit: contain;
        object-position: right center;
        transform: translateY(-50%) scale(1);
    }

    .hero-slides img.active {
        transform: translateY(-50%) scale(1);
    }

    .hero-badge {
        left: 4%;
        top: 4%;
        width: 40%;
    }

    .intro {
        min-height: 390px;
        padding: 10px 14px 0;
    }

    .intro-logo {
        width: 150px;
        height: auto;
        margin: 50px auto 15px;
    }

    .intro-copy {
        margin-bottom: 13px;
        width: 100%;
        
    }

    .intro-text {
        z-index: 30;
        font-size: 14px;
        line-height: 1.75;
        margin: 0 auto 0px;
        text-align: left;
    }

    .lineup-title {
        font-size: 29px;
        margin-bottom: 7px;
    }

    .collection {
        padding: 5px 0 26px;
    }

    .collection-inner {
        width: 85%;
    }

    .banner {
        margin-bottom: 17px;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3.5%;
        align-items: start;
        justify-items: center;
    }

    .cards> :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: 48.25%;
    }

    .item img {
        border-radius: 5px;
    }

    .item span {
        font-size: 13px;
        margin-top: 5px;
        letter-spacing: -.03em;
    }

    .item:hover {
        transform: none;
    }

    .item:hover img {
        transform: scale(1.015);
    }

    .view-all {
        width: 92px;
        margin-top: 17px;
        animation-duration: 4.5s;
    }

    .roll {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .roll-banner {
        margin-bottom: 14px;
    }

    .shinchan {
        padding-top: 25px;
    }

    .shop {
        padding: 26px 8% 30px;
        min-height: 350px;
        background: url(images/top/footer_sozai.png) center top / 200% 100% no-repeat;
    }

    .shop h2 {
        font-size: 29px;
    }

    .shop-photo {
        width: 100%;
        margin-bottom: 28px;
    }

    .shop-info {
        width: 90%;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        display: block;
    }

    .address {
        font-size: 14px;
    }

    .address strong {
        font-size: 20px;
    }

    .map {
        font-size: 15px;
        width: 100%;
        margin-top: 30px;
    }

    .p-blue {
        width: 22%;
    }

    .p-yellow {
        width: 23%;
    }

    .p-green {
        width: 19%;
    }

    .footer {
        margin: 60px 0 30px;
        font-size: 13px;
    }

    .menu {
        background: rgba(249, 245, 237, .53);
    }
.menu a {
     font-size: 17px;   
}
.menu .lineup_menu a {
    font-size: 13px;
            letter-spacing: 6px;
}

    .hero {
        touch-action: pan-y;
    }

    .hero-badge {
        animation-duration: .7s;
    }

    .paint {
        animation-duration: 8s;
    }
}

/* =========================
   DOJIMA ROLL AUTO SLIDER
   PC：3商品表示 / SP：横スワイプ
========================= */

.roll-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    cursor: grab;
    padding: 10px 0 5px;
}

.roll-carousel.is-dragging {
    cursor: grabbing;
}

.roll-carousel img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.roll .roll-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 4%;
    align-items: flex-start;
    width: 100%;
    will-change: transform;
    transition: transform .72s cubic-bezier(.22, .75, .25, 1);
}

.roll .roll-track .item {
    flex: 0 0 30.666%;
    width: 30.666%;
    min-width: 0;
}

.roll .roll-track .item img {
    width: 100%;
}

@media (max-width: 767px) {

    .roll .roll-track {
        gap: 4%;
    }

    .roll .roll-track .item {
        flex: 0 0 78%;
        width: 78%;
    }

    .roll-carousel {
        padding-bottom: 5px;
    }
}

/* =========================
   SLIDER TOUCH FIX
========================= */

.roll-carousel,
.roll-carousel .roll-track,
.roll-carousel .item {
    touch-action: pan-y pinch-zoom;
}

.roll-carousel .item img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.cards .item.is-touched img {
    transform: translateY(-11px) rotate(2deg) scale(1.045);
    filter: saturate(1.13) brightness(1.035);
    box-shadow: 0 14px 24px rgba(160, 105, 120, .2);
}

/* =========================
   LINEUP / SHOP DECORATION
========================= */

.lineup-title,
.shop h2 {
    position: relative;
    text-align: center;
}



@keyframes underlineWiggle {
    0%, 100% {
        transform: rotate(-4deg) scaleX(.9);
    }
    50% {
        transform: rotate(4deg) scaleX(1.1);
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .paint,
    .intro-logo.in,
    .view-all,
    .lineup-title::after,
    .shop h2::after,
    .menu::before,
    .menu::after {
        animation: none !important;
    }

    .roll .roll-track {
        transition: none !important;
    }
}


/* ハンバーガーを常に画面右上に固定 */
.header {
    position: fixed;
    top: 15px;
    right: 5%;
    z-index: 1200;
}

/* メニュー表示中もボタンを最前面に */
.menu-btn {
    position: relative;
    z-index: 1201;
}


/* ハンバーガーの開閉アニメーション */
.menu-btn i {
    display: block;
    transition: transform .3s ease, opacity .3s ease;
}

/* メニューを開いた状態 */
.menu-btn.is-open i:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-btn.is-open i:last-child {
    width: 100%;
    transform: translateY(-3.5px) rotate(-45deg);
}

/* =========================
   メインビジュアル
========================= */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* スライド全体 */
.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 右側の画像エリア：幅80％・右端・上端 */
.hero-slides picture {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 80%;
    height: 100%;
    display: block;
}

/* 画像を切らずに全体表示 */
.hero-slides img {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: contain;
    object-position: right top;

    opacity: 0;
    transform: none;
    transition: opacity 1.25s ease;
}

.hero-slides img.active {
    opacity: 1;
    transform: none;
}

/* 左側ロゴ：画像より手前 */
.hero-badge {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 5%;
    right: auto;
    width: 30%;
    max-width: none;
}

/* スマホも同じ配置 */
@media (max-width: 767px) {
    .hero-slides picture {
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

    .hero-slides img {
        object-fit: contain;
        object-position: right top;
    }

    .hero-badge {
        top: 60%;
        left: 1%;
        width: 57%;
}