/* CANSAY トップページ（デザイン案 2026-10-28） */

:root {
    --color-text: #1a1311;
    --color-brown: #6e4135;
    --color-pink: #f7e0d6;              /* フッターなど（指示: #F7E0D6） */
    --color-pink-box: rgb(247 224 214 / 30%); /* 商品カードの箱（指示: #F7E0D6 の 30%、すべて統一） */
    --color-pink-light: #fdf6f3;        /* ABOUT・おすすめ商品の背景（指示: #FDF6F3） */
    --radius-card: 40px;                /* 商品カードの角（指示: 半径 40） */
    --content-width: 1080px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: #fff;
    font-family: "Noto Sans JP", "游ゴシック体", YuGothic, "Yu Gothic", sans-serif;
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

button {
    font: inherit;
    cursor: pointer;
}

@media (max-width: 767px) {
    .pc {
        display: none;
    }
}

/* ---------- 共通部品 ---------- */

.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
}

.section-title span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.nav {
    display: flex;
    gap: 40px;
    font-size: 13px;
    font-weight: 500;
}

.button-contact {
    display: inline-block;
    padding: 6px 22px;
    border: 1px solid var(--color-text);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.button-contact:hover {
    background: var(--color-text);
    color: #fff;
}

.button-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-width: 220px;
    padding: 10px 24px;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.button-more::after {
    content: "";
    width: 14px;
    height: 1px;
    background: currentColor;
}

.button-more:hover {
    opacity: 0.8;
}

/* ---------- ヘッダー（白い帯にして上に固定する。現行サイトと同じ） ---------- */

:root {
    --header-height: 88px;
}

html {
    scroll-padding-top: var(--header-height);
}

body {
    padding-top: var(--header-height);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 48px;
    background: #fff;
    box-shadow: 0 1px 6px rgb(26 19 17 / 8%);
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header__logo img {
    width: 180px;
    height: auto;
}

.header__sns {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__sns a {
    display: block;
    transition: opacity 0.2s;
}

.header__sns a:hover {
    opacity: 0.6;
}

.header__sns svg {
    display: block;
    width: 22px;
    height: 22px;
}

.header__corporate {
    padding-left: 16px;
    border-left: 1px solid #ccc;
    font-size: 12px;
    font-weight: 500;
    line-height: 22px;
    white-space: nowrap;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 48px;
}

.header__nav .nav a {
    white-space: nowrap;
}

.header__toggle {
    display: none;
}

/* 幅が狭い PC では、ロゴとメニューが詰まらないよう余白を減らす */
@media (min-width: 1024px) and (max-width: 1279px) {
    .header {
        padding: 0 24px;
    }

    .header__brand {
        gap: 20px;
    }

    .header__logo img {
        width: 150px;
    }

    .header__nav,
    .header__nav .nav {
        gap: 24px;
    }
}

@media (max-width: 1023px) {
    :root {
        --header-height: 64px;
    }

    .header {
        padding: 0 16px;
    }

    .header__brand {
        gap: 14px;
    }

    .header__logo img {
        width: 110px;
    }

    .header__sns {
        gap: 10px;
    }

    .header__sns svg {
        width: 18px;
        height: 18px;
    }

    .header__corporate {
        padding-left: 10px;
        font-size: 11px;
        line-height: 18px;
    }

    .header__toggle {
        position: relative;
        z-index: 2;
        display: block;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgb(255 255 255 / 85%);
    }

    .header__toggle span {
        position: absolute;
        left: 13px;
        width: 18px;
        height: 2px;
        background: var(--color-text);
        transition: transform 0.2s, opacity 0.2s;
    }

    .header__toggle span:nth-child(1) {
        top: 15px;
    }

    .header__toggle span:nth-child(2) {
        top: 21px;
    }

    .header__toggle span:nth-child(3) {
        top: 27px;
    }

    .header.is-open .header__toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .header.is-open .header__toggle span:nth-child(2) {
        opacity: 0;
    }

    .header.is-open .header__toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .header__nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        background: var(--color-pink-light);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, visibility 0.25s;
    }

    .header.is-open .header__nav {
        opacity: 1;
        visibility: visible;
    }

    .header__nav .nav {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        font-size: 16px;
    }

}

/* ---------- メインビュー（スライダー） ---------- */

.hero__viewport {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    max-height: calc(100vh - var(--header-height));
    width: 100%;
}

.hero__track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease;
}

.hero__slide {
    flex: 0 0 100%;
    height: 100%;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    padding: 0;
    border: 0;
    background: none;
}

.hero__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border-top: 4px solid #fff;
    border-left: 4px solid #fff;
    filter: drop-shadow(0 0 4px rgb(0 0 0 / 30%));
}

.hero__arrow--prev {
    left: 24px;
}

.hero__arrow--prev::before {
    transform: translate(-30%, -50%) rotate(-45deg);
}

.hero__arrow--next {
    right: 24px;
}

.hero__arrow--next::before {
    transform: translate(-70%, -50%) rotate(135deg);
}

.hero__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 0;
}

.hero__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d5d5d5;
}

.hero__dot[aria-selected="true"] {
    background: #7d7573;
}

@media (max-width: 767px) {
    .hero__viewport {
        aspect-ratio: 4 / 5;
    }

    .hero__arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .hero__arrow::before {
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .hero__arrow--prev {
        left: 4px;
    }

    .hero__arrow--next {
        right: 4px;
    }
}

/* ---------- ABOUT ---------- */

.about {
    margin-top: 40px;
    padding: 72px 24px 80px;
    background: var(--color-pink-light);
    text-align: center;
}

.about__title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.about__text {
    margin-top: 32px;
    font-size: 13px;
    line-height: 2.2;
}

@media (max-width: 767px) {
    .about {
        margin-top: 0;
        padding: 48px 20px 56px;
    }

    .about__text {
        text-align: left;
    }
}

/* ---------- 商品一覧 ---------- */

.products {
    padding-top: 72px;
}

.brand-banner {
    position: relative;
    display: block;
    margin-top: 48px;
    overflow: hidden;
    height: 420px;
}

.brand-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.brand-banner:hover img {
    transform: scale(1.03);
}

/* 明るく細かい写真でも白い文字が読めるよう、下のほうを薄く暗くする（2026-10-30 に写真を替えたときに追加） */
.brand-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75%;
    background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 45%));
    pointer-events: none;
}

.brand-banner__body {
    position: absolute;
    z-index: 1;
    left: 0;
    bottom: 0;
    padding: 0 48px 40px;
    color: #fff;
    text-shadow: 0 0 12px rgb(0 0 0 / 30%);
}

.brand-banner__name {
    font-size: 96px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
}

.brand-banner__text {
    margin-top: 12px;
    font-size: 13px;
    line-height: 2;
}

/* nu board の写真と、その下のカードの間に置く小見出し */
.products__subtitle {
    margin-top: 96px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

.products__subtitle span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 400;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 48px;
    max-width: var(--content-width);
    margin: 48px auto 0;
    padding: 0 24px;
}

.card {
    display: block;
    text-align: center;
}

.card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 33 / 25;
    border-radius: var(--radius-card);
    background: var(--color-pink-box);
    box-shadow: 0 2px 8px rgb(26 19 17 / 8%);
    overflow: hidden;
}

.card__image img {
    height: 80%;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__name {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

.card__text {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.9;
}

.novelty {
    position: relative;
    display: flex;
    max-width: 1240px;
    margin: 64px auto 0;
    min-height: 310px;
    border-radius: 30px;
    overflow: hidden;
    background: #d9b8aa;
}

.novelty__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

/* 右側を淡いピンクにぼかして文字を載せる */
.novelty::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(217 184 170 / 0%) 40%, rgb(217 184 170 / 85%) 65%);
}

.novelty__body {
    position: relative;
    z-index: 1;
    margin-left: auto;
    width: 38%;
    padding: 56px 48px 48px 0;
    color: #fff;
}

.novelty__title {
    font-size: 36px;
    font-weight: 400;
    font-style: italic;
}

.novelty__text {
    margin-top: 12px;
    font-size: 13px;
}

.novelty .button-more {
    margin-top: 32px;
    color: var(--color-text);
}

@media (max-width: 1023px) {
    .cards {
        gap: 40px 24px;
    }

    .novelty {
        margin-left: 24px;
        margin-right: 24px;
    }

    .novelty__body {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .products {
        padding-top: 56px;
    }

    /* スマホでは説明文を写真の下に出す（写真の上だと読みにくいため） */
    .brand-banner {
        margin-top: 32px;
        height: auto;
    }

    .brand-banner img {
        height: 240px;
    }

    /* スマホは説明文を写真の下に出すので、写真の部分（高さ 240px）だけ暗くする */
    .brand-banner::after {
        top: 120px;
        bottom: auto;
        height: 120px;
    }

    .brand-banner__body {
        position: relative;
        padding: 0 20px;
        color: var(--color-text);
        text-shadow: none;
    }

    .brand-banner__name {
        margin-top: -0.95em;
        color: #fff;
        font-size: 56px;
        text-shadow: 0 0 12px rgb(0 0 0 / 30%);
    }

    .brand-banner__text {
        margin-top: 16px;
        font-size: 12px;
    }

    .brand-banner__text br {
        display: none;
    }

    .products__subtitle {
        margin-top: 56px;
        font-size: 17px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
        margin-top: 28px;
        padding: 0 16px;
    }

    .card__image {
        border-radius: 24px;
    }

    .card__name {
        margin-top: 12px;
        font-size: 14px;
    }

    .card__text {
        font-size: 11px;
        text-align: left;
    }

    .card__text br {
        display: none;
    }

    .novelty {
        flex-direction: column;
        margin: 48px 16px 0;
        min-height: 0;
        border-radius: 20px;
    }

    .novelty__image {
        position: static;
        height: 200px;
    }

    .novelty::after {
        display: none;
    }

    .novelty__body {
        width: auto;
        padding: 24px 20px 28px;
    }
}

/* ---------- おすすめ商品 ---------- */

.featured {
    margin-top: 64px;
    padding: 64px 0 120px;
    background: var(--color-pink-light);
}

.feature {
    display: flex;
    align-items: center;
    margin-top: 64px;
    min-height: 380px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(26 19 17 / 6%);
    overflow: hidden;
}

.feature--left {
    width: 87%;
}

.feature--right {
    width: 85%;
    margin-left: auto;
}

.feature__body {
    flex: 1 1 50%;
    padding: 48px;
}

.feature__name {
    color: var(--color-brown);
    font-size: 84px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.feature--right .feature__body {
    text-align: right;
}

.feature--right .feature__text {
    margin-left: auto;
    max-width: 440px;
    text-align: left;
}

.feature__text {
    margin-top: 24px;
    font-size: 13px;
}

.feature__image {
    flex: 1 1 50%;
    align-self: stretch;
    width: 50%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature:hover .feature__image {
    transform: scale(1.03);
}

@media (max-width: 1023px) {
    .feature__name {
        font-size: 56px;
    }
}

@media (max-width: 767px) {
    .featured {
        margin-top: 48px;
        padding: 48px 0 64px;
    }

    .feature,
    .feature--left,
    .feature--right {
        flex-direction: column;
        width: auto;
        margin: 40px 16px 0;
        min-height: 0;
    }

    .feature--right .feature__image {
        order: -1;
    }

    .feature__image {
        width: 100%;
        height: 220px;
    }

    .feature__body {
        padding: 24px 20px 28px;
    }

    .feature--right .feature__body {
        text-align: left;
    }

    .feature__name {
        font-size: 40px;
    }

    .feature__text {
        margin-top: 12px;
    }
}

/* ---------- Instagram（ループで流れる） ---------- */

.instagram {
    padding: 80px 0 96px;
}

.instagram__title {
    padding: 0 48px;
    font-size: 26px;
    font-weight: 700;
}

.instagram__title a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.instagram__title svg {
    width: 34px;
    height: 34px;
    color: #d6249f;
}

.instagram__title span {
    margin-left: 16px;
    font-size: 12px;
    font-weight: 400;
}

.instagram__viewport {
    margin-top: 24px;
    overflow: hidden;
}

.instagram__track {
    display: flex;
    width: max-content;
    animation: instagram-loop 50s linear infinite;
}

.instagram__track:hover {
    animation-play-state: paused;
}

.instagram__track li {
    width: 280px;
    flex: 0 0 auto;
}

/* 横に並べた写真は、高さをそろえたまま横長（4:3）の枠にして左右が切れないようにする */
.instagram__track li.instagram__item--wide {
    width: 467px;
}

.instagram__track a {
    display: block;
    overflow: hidden;
}

.instagram__track img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: opacity 0.2s;
}

.instagram__item--wide img {
    aspect-ratio: 4 / 3;
}

/* 大判（A3）は白地の余白が広いので、拡大して商品を大きく見せる */
.instagram__item--zoom img {
    transform: scale(1.3);
}

.instagram__track a:hover img {
    opacity: 0.8;
}

/* 同じ並びを 2 組つないでいるので、半分ずらすと最初に戻る */
@keyframes instagram-loop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .instagram__track {
        animation: none;
    }

    .hero__track {
        transition: none;
    }
}

@media (max-width: 767px) {
    .instagram {
        padding: 56px 0 64px;
    }

    .instagram__title {
        padding: 0 16px;
        font-size: 20px;
    }

    .instagram__title span {
        margin-left: 4px;
    }

    .instagram__track li {
        width: 180px;
    }

    .instagram__track li.instagram__item--wide {
        width: 300px;
    }
}

/* ---------- フッター ---------- */

.footer {
    background: var(--color-pink);
    padding: 48px 48px 40px;
    font-size: 11px;
}

.footer__inner {
    max-width: 1340px;
    margin: 0 auto;
}

.footer__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 48px;
}

.footer__nav .button-contact {
    background: transparent;
}

.footer__shop-title {
    margin-top: 16px;
    font-size: 11px;
    font-weight: 500;
}

.footer__shops {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer__shops li + li::before {
    content: "・";
}

.footer__shops a,
.footer__links a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.footer__copy {
    margin-top: 12px;
}

@media (max-width: 767px) {
    .footer {
        padding: 40px 16px 32px;
    }

    .footer__nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer__nav .nav {
        flex-wrap: wrap;
        gap: 12px 24px;
    }

    .footer__shop-title {
        margin-top: 32px;
    }
}

/* ---------- 2026-10-30 採用（試作の案C）: メインビューを低くして、最初の画面で ABOUT まで見せる ---------- */

/* PC だけ。メインビューの高さを「画面の高さ − ヘッダー − 210px」にして（最低 360px、横幅の 3:2 を超えない）、
   写真は上下を切り詰めて見せる。ABOUT の上の余白も詰める */
@media (min-width: 768px) {
    .hero__viewport {
        aspect-ratio: auto;
        height: min(calc(100vw * 2 / 3), max(360px, calc(100vh - var(--header-height) - 210px)));
        max-height: none;
    }

    .about {
        margin-top: 0;
        padding-top: 56px;
    }
}

/* ---------- 2026-10-30 採用（試作の案A）: nu board の写真をカードのように見せる ---------- */

/* 画面の端まで広げず、ノベルティと同じ幅に収めて、Other Products のカードと同じ角丸にする */
.brand-banner {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-card);
    box-shadow: 0 2px 8px rgb(26 19 17 / 8%);
}

@media (max-width: 1287px) {
    .brand-banner {
        margin-left: 24px;
        margin-right: 24px;
    }
}

@media (max-width: 767px) {
    /* スマホは説明文が写真の下に出るので、写真の部分だけ角を丸くする */
    .brand-banner {
        margin-left: 16px;
        margin-right: 16px;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .brand-banner img {
        border-radius: 24px;
        box-shadow: 0 2px 8px rgb(26 19 17 / 8%);
    }

    .brand-banner::after {
        border-radius: 0 0 24px 24px;
    }

    .brand-banner__body {
        padding: 0 4px;
    }
}
