:root {
    --paper: #f4f2ed;
    --card: #faf9f6;
    --ink: #191816;
    --soft: #68635d;
    --line: #d8d3ca;
    --accent: #702e3c;
    --header-height: 86px;
    --serif: "Cormorant Garamond", "Shippori Mincho B1", "Iowan Old Style", "Palatino Linotype", "Yu Mincho", serif;
    --sans: Inter, system-ui, "Yu Gothic UI", sans-serif
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.8;
    /* Cormorant Garamond の数字は既定でオールドスタイルになり型番が読みにくいため、ライニング数字にそろえる */
    font-variant-numeric: lining-nums
}

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

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    background: #fff;
    transform: translateY(-160%)
}

.skip-link:focus {
    transform: none
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 clamp(24px, 5vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition: background .25s, border-color .25s
}

.site-header.is-scrolled {
    background: rgba(244, 242, 237, .92);
    border-color: var(--line);
    backdrop-filter: blur(12px)
}

.site-header.is-menu-open {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none
}

.site-logo {
    font-family: var(--serif);
    font-size: 13px;
    line-height: 1.05;
    letter-spacing: .16em;
    display: flex;
    flex-direction: column;
}

.site-logo,
.site-menu-toggle {
    position: relative;
    z-index: 1
}

.site-menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    gap: 5px;
    place-content: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    padding: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer
}

.site-menu-toggle span {
    display: block;
    width: 16px;
    height: 1px;
    background: currentcolor;
    transition: transform .2s ease, opacity .2s ease
}

.site-header.is-menu-open .site-menu-toggle span:first-child {
    transform: translateY(6px) rotate(45deg)
}

.site-header.is-menu-open .site-menu-toggle span:nth-child(2) {
    opacity: 0
}

.site-header.is-menu-open .site-menu-toggle span:last-child {
    transform: translateY(-6px) rotate(-45deg)
}

.site-menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap
}

.favorites-open {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 12px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 0 16px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    letter-spacing: .04em
}

.favorites-open svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.4;
    stroke-linejoin: round
}

.favorites-open__count {
    min-width: 1ch;
    font-variant-numeric: tabular-nums
}

.favorites-open:hover {
    color: var(--accent);
    border-color: var(--accent)
}

.favorites-open:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px
}

.site-header.is-menu-open .favorites-open {
    visibility: hidden
}

@media (max-width: 560px) {
    .favorites-open {
        padding: 0 14px
    }

    .favorites-open__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap
    }
}

.site-menu {
    position: fixed;
    z-index: 0;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(110px, 10vh) clamp(24px, 8vw, 128px) 48px;
    overflow-y: auto;
    /* 後ろの暗いヒーローが透けないよう不透明にする */
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s
}

.site-header.is-menu-open .site-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s
}

.site-menu__inner {
    display: grid;
    width: min(100%, 960px);
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(40px, 6vw, 88px)
}

.site-menu__side {
    display: grid;
    gap: clamp(32px, 4vw, 48px)
}

/* グループの見出し: 英字の小見出し＋和文 */
.site-menu__title {
    margin: 0 0 14px;
    color: var(--ink);
    font: 16px/1.4 var(--sans)
}

.site-menu__title span {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase
}

.site-menu__list {
    margin: 0;
    border-top: 1px solid var(--line);
    padding: 0;
    list-style: none
}

.site-menu__list a {
    min-height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font: clamp(18px, 1.8vw, 22px)/1.4 var(--serif)
}

.site-menu__list a:hover {
    color: var(--accent)
}

.site-menu__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
}

.site-menu__buttons a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--accent);
    padding: 12px;
    background: var(--accent);
    color: var(--paper);
    font: 14px/1.4 var(--sans)
}

.site-menu__buttons .site-menu__line {
    border-color: #06c755;
    background: #06c755
}

.site-menu__buttons a:hover {
    background: transparent;
    color: var(--accent)
}

.site-menu__buttons .site-menu__line:hover {
    color: #067d38
}

.site-menu__tel {
    display: flex;
    min-height: 48px;
    align-items: baseline;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 0;
    font: 22px/1.3 var(--serif);
    letter-spacing: .04em;
    font-variant-numeric: lining-nums
}

.site-menu__tel span {
    color: var(--soft);
    font: 14px/1 var(--sans);
    letter-spacing: .04em
}

.site-menu__tel:hover {
    color: var(--accent)
}

.site-menu a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px
}

html.is-site-menu-open {
    overflow: hidden
}

/* 別サイトへのリンクに添える細い線の斜め矢印 */
.icon-external {
    display: inline-block;
    flex: 0 0 auto;
    width: .9em;
    height: .9em;
    vertical-align: -.05em;
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* セクションの小見出し。一覧の「Watch Index」（.product-catalog__index-heading）とそろえる */
.section-index {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent)
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    margin: 0
}

h1 {
    font-size: clamp(46px, 6.7vw, 104px);
    line-height: 1.14;
    letter-spacing: -.045em
}

h2 {
    font-size: clamp(34px, 4.5vw, 68px);
    line-height: 1.2;
    letter-spacing: -.035em
}

.section {
    padding: clamp(90px, 12vw, 180px) clamp(24px, 7vw, 112px)
}

.section-heading p,
.guide__content>p {
    color: var(--soft);
    max-width: 48em
}

.section-heading {
    display: grid;
    gap: 8vw;
    margin-bottom: 70px
}

[data-tone=rose] .collection-card__art {
    background: #d9c3c3
}

[data-tone=pearl] .collection-card__art {
    background: #dedbd3
}

[data-tone=blue] .collection-card__art {
    background: #b9c4cc
}

[data-tone=wine] .collection-card__art {
    background: #aa7b83
}

[data-tone=green] .collection-card__art {
    background: #aeb8ae
}

[data-tone=night] .collection-card__art {
    background: #252629
}

.watch__case:before,
.watch__case:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 30%;
    background: #514b43;
    transform-origin: 50% 100%
}

.watch__case:before {
    transform: translate(-50%, -100%) rotate(32deg)
}

.watch__case:after {
    height: 22%;
    transform: translate(-50%, -100%) rotate(145deg)
}

.guide {
    min-height: 720px;
    background: #171614;
    color: #eee9e0;
    display: grid;
    gap: 8vw;
    align-items: start
}

.guide .section-index {
    color: #bfa3a8
}

.guide__content {
    max-width: 800px
}

.guide__content>p {
    color: #aaa39a;
    margin: 28px 0
}

/* 見出しの背景に薄く敷く筆記体の飾り。読めなくても困らない装飾なので aria-hidden で読み上げから外す。
   左右はセクションの余白まで広げ、はみ出した分は切り取って横スクロールを出さない */
.script-deco {
    position: absolute;
    top: -.55em;
    left: calc(-1 * clamp(24px, 7vw, 112px));
    right: calc(-1 * clamp(24px, 7vw, 112px));
    overflow: hidden;
    padding-left: clamp(24px, 7vw, 112px);
    font-family: "Monsieur La Doulaise", cursive;
    font-size: clamp(96px, 15vw, 230px);
    line-height: 1.5;
    white-space: nowrap;
    color: var(--accent);
    opacity: .12;
    pointer-events: none;
    user-select: none
}

.section-heading,
.guide {
    position: relative
}

.section-heading>:not(.script-deco),
.guide>:not(.script-deco) {
    position: relative;
    z-index: 1
}

.guide>.script-deco {
    top: clamp(40px, 6vw, 90px);
    left: 0;
    right: 0;
    color: #eee9e0;
    opacity: .08
}

/* PCでは見出しを中央揃えにし、ルックブックの写真と中心線をそろえる。スマホは左揃えのまま */
@media(min-width:761px) {
    .section-heading,
    .guide {
        justify-items: center;
        gap: 0;
        text-align: center
    }

    .section-heading .section-index,
    .guide .section-index {
        margin: 0 0 30px
    }

    /* 中央揃えで最後の行だけ短く残らないよう、行の長さをそろえる */
    .section-heading p,
    .guide__content>p {
        margin-inline: auto;
        text-wrap: balance
    }

    .guide .guide__actions {
        justify-content: center
    }

    .script-deco {
        padding-left: 0;
        text-align: center
    }

    .section-heading>.script-deco {
        top: -.42em
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease-out, transform .8s ease-out
}

.reveal.is-visible {
    opacity: 1;
    transform: none
}

@media(max-width:760px) {
    :root {
        --header-height: 68px
    }

    .site-header {
        height: var(--header-height)
    }

    /* 縦に長くなるため、上から並べる（中央寄せだと上端がはみ出して見えなくなる） */
    .site-menu {
        align-items: start;
        padding-top: 92px
    }

    .site-menu__inner {
        grid-template-columns: minmax(0, 1fr)
    }

    .site-menu__list a {
        min-height: 56px
    }

    .section-index {
        margin-bottom: 30px
    }

}

@media(prefers-reduced-motion:reduce) {
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}
