/* =========================================================
   REYUA
   BESPOKE ACCESSORIES
   ========================================================= */

:root {
    --bg: #f7f3eb;
    --bg-soft: #fcfaf5;
    --paper: #fffdf8;
    --dark: #171512;
    --dark-soft: #29251f;
    --text: #302c26;
    --muted: #777066;
    --gold: #b79555;
    --gold-light: #d8c08b;
    --gold-pale: #eee3c8;
    --line: #ddd4c4;
    --shadow: 0 18px 50px rgba(33, 27, 18, 0.09);
    --radius: 24px;
    --radius-small: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        "Noto Sans JP",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

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

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

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sp-only {
    display: none;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 243, 235, 0.94);
    border-bottom: 1px solid rgba(183, 149, 85, 0.22);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    letter-spacing: 0.17em;
    color: var(--dark);
}

.brand-sub {
    margin-top: 8px;
    font-size: 8px;
    letter-spacing: 0.28em;
    color: var(--gold);
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.global-nav a {
    position: relative;
    padding: 10px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: 0.11em;
    color: #49433b;
}

.global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.global-nav a:hover::after {
    width: 100%;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 1px;
    margin: 6px 0;
    background: var(--dark);
}


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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(255, 255, 255, 0.95),
            rgba(246, 239, 226, 0.74) 45%,
            rgba(226, 213, 188, 0.62) 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(183, 149, 85, 0.09) 50%,
            transparent 100%
        );
}

.hero-decoration {
    position: absolute;
    border: 1px solid rgba(183, 149, 85, 0.2);
    border-radius: 50%;
}

.hero-decoration-one {
    width: 440px;
    height: 440px;
    left: -220px;
    top: 70px;
}

.hero-decoration-two {
    width: 560px;
    height: 560px;
    right: -280px;
    bottom: -160px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    text-align: center;
}

.hero-small {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: 0.38em;
    color: var(--gold);
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 9vw, 116px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.16em;
    color: var(--dark);
}

.hero-kana {
    margin: 22px 0 0;
    font-size: 12px;
    letter-spacing: 0.55em;
    color: var(--muted);
}

.hero-line {
    width: 64px;
    height: 1px;
    margin: 35px auto;
    background: var(--gold);
}

.hero-copy {
    margin: 0;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: 0.16em;
    color: var(--dark);
}

.hero-english {
    margin: 16px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--gold);
}

.hero-description {
    max-width: 580px;
    margin: 34px auto;
    color: #5c554c;
}


/* =========================================================
   COMMON SECTION
   ========================================================= */

.section {
    padding: 110px 20px;
}

.section-inner {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.section-inner.narrow {
    width: min(820px, 100%);
}

.section-en {
    margin: 0 0 10px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--gold);
}

.section h2 {
    margin: 0;
    text-align: center;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: var(--dark);
}

.gold-line {
    width: 45px;
    height: 1px;
    margin: 26px auto 38px;
    background: var(--gold);
}

.section-lead {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--muted);
}

.button {
    min-height: 52px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-gold {
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #9c793b,
            #c3a363
        );
    box-shadow: 0 12px 30px rgba(148, 111, 49, 0.22);
}

.button-dark {
    color: #fff;
    background: var(--dark);
}

.full-button {
    width: 100%;
}


/* =========================================================
   CONCEPT
   ========================================================= */

.concept {
    background: var(--paper);
}

.concept-text {
    margin: 0 0 22px;
    text-align: center;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 17px;
    line-height: 2.2;
    color: #514a42;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.products-section {
    background: var(--bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.product-card {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(183, 149, 85, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-number {
    position: absolute;
    z-index: 4;
    top: 18px;
    left: 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--gold);
}

.product-visual {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle,
            #fff 0%,
            #f0e9dd 68%,
            #e5dac6 100%
        );
}

.product-content {
    padding: 30px;
}

.product-en {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.product-content h3 {
    margin: 0 0 20px;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 24px;
    line-height: 1.5;
    color: var(--dark);
}

.product-content p {
    color: #696158;
}

.price-box {
    margin: 26px 0;
    padding: 18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 15px;
}

.price-box span {
    font-size: 13px;
    color: var(--muted);
}

.price-box strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    color: var(--dark);
}

.price-box small {
    grid-column: 1 / -1;
    color: var(--gold);
}


/* SAMPLE BRACELET */

.sample-bracelet {
    position: relative;
    width: 165px;
    height: 165px;
}

.sample-bead {
    width: 38px;
    height: 38px;
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow:
        inset 7px 7px 11px rgba(255,255,255,0.32),
        inset -6px -7px 10px rgba(0,0,0,0.12),
        0 4px 9px rgba(0,0,0,0.12);
}

.sample-bracelet .sample-bead:nth-child(1) {
    left: 64px;
    top: 0;
}

.sample-bracelet .sample-bead:nth-child(2) {
    right: 12px;
    top: 23px;
}

.sample-bracelet .sample-bead:nth-child(3) {
    right: 0;
    top: 64px;
}

.sample-bracelet .sample-bead:nth-child(4) {
    right: 22px;
    bottom: 12px;
}

.sample-bracelet .sample-bead:nth-child(5) {
    left: 64px;
    bottom: 0;
}

.sample-bracelet .sample-bead:nth-child(6) {
    left: 12px;
    bottom: 22px;
}

.sample-bracelet .sample-bead:nth-child(7) {
    left: 0;
    top: 64px;
}

.sample-bracelet .sample-bead:nth-child(8) {
    left: 22px;
    top: 22px;
}

.bead-pink {
    background: #e7b5bd;
}

.bead-purple {
    background: #80649a;
}

.bead-clear {
    background: #ece9e2;
}

.bead-blue {
    background: #82b9c6;
}

.bead-black {
    background: #252525;
}

.bead-gold {
    background: #b68d3e;
}

.bead-green {
    background: #6f9a79;
}

.bead-white {
    background: #f3eee4;
}


/* MACRAME PRODUCT SAMPLE */

.macrame-demo {
    width: 82%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.macrame-demo .cord {
    height: 4px;
    flex: 1;
    background:
        repeating-linear-gradient(
            135deg,
            #2368a2 0px,
            #2368a2 5px,
            #ffffff 5px,
            #ffffff 10px
        );
    border: 1px solid rgba(0,0,0,0.08);
}

.macrame-demo .macrame-beads {
    display: flex;
    align-items: center;
}

.macrame-demo .sample-bead {
    position: relative;
    width: 30px;
    height: 30px;
    margin: 0 2px;
}


/* DOG TAG SAMPLE */

.dogtag {
    width: 220px;
    min-height: 126px;
    padding: 30px 34px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background:
        linear-gradient(
            145deg,
            #e4e4e2,
            #b8b8b5
        );
    border: 2px solid #999;
    box-shadow:
        inset 0 0 0 4px rgba(255,255,255,0.24),
        0 14px 25px rgba(0,0,0,0.18);
    color: #4d4d4a;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 0.05em;
}


/* =========================================================
   STONES
   ========================================================= */

.stones-section {
    background: var(--dark);
    color: #fff;
}

.stones-section h2 {
    color: #fff;
}

.stones-section .section-lead {
    color: #c6bfb4;
}

.stone-category {
    margin-top: 60px;
}

.category-heading {
    margin-bottom: 25px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(216,192,139,0.25);
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.category-heading h3 {
    margin: 7px 0 0;
    font-family: "Yu Mincho", serif;
    font-size: 26px;
    font-weight: 500;
}

.category-label {
    font-family: Georgia, serif;
    font-size: 10px;
    letter-spacing: 0.24em;
    color: var(--gold-light);
}

.category-count {
    font-family: Georgia, serif;
    font-size: 11px;
    color: #8e877c;
}

.stone-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.stone-card {
    min-height: 155px;
    padding: 20px 12px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.stone-card:hover {
    transform: translateY(-3px);
    border-color: rgba(216,192,139,0.55);
    background: rgba(255,255,255,0.07);
}

.stone-circle {
    width: 48px;
    height: 48px;
    margin-bottom: 13px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.38);
    box-shadow:
        inset 9px 8px 13px rgba(255,255,255,0.25),
        inset -8px -9px 14px rgba(0,0,0,0.22),
        0 5px 10px rgba(0,0,0,0.22);
}

.stone-card strong {
    font-size: 13px;
}

.stone-card small {
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: 9px;
    color: #a9a298;
}

.premium-category {
    margin-top: 75px;
}

.premium-label {
    color: #e7c876;
}

.premium {
    border-color: rgba(216,192,139,0.24);
}

.stone-note {
    margin-top: 35px;
    text-align: center;
    font-size: 12px;
    color: #9f988d;
}

.stone-clear { background: #e9e7df; }
.stone-amethyst { background: #80649a; }
.stone-rose { background: #e7b5bd; }
.stone-onyx { background: #242424; }
.stone-tiger { background: #8a5a24; }
.stone-aquamarine { background: #9bcbd1; }
.stone-garnet { background: #6e2733; }
.stone-lapis { background: #284b91; }
.stone-aventurine { background: #6f9a79; }
.stone-moonstone { background: #eee9df; }
.stone-rutile { background: #c69b43; }
.stone-larimar { background: #66c1cf; }
.stone-superseven { background: #76536c; }
.stone-sugilite { background: #6e3d7e; }
.stone-charoite { background: #80569c; }
.stone-citrine { background: #d6b15a; }
.stone-incarose { background: #d46c7b; }


/* =========================================================
   PRICE TABLE
   ========================================================= */

.price-section {
    background: var(--paper);
}

.price-table-wrap {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.price-table th,
.price-table td {
    padding: 20px;
    border-bottom: 1px solid #e9e3d9;
    text-align: center;
}

.price-table thead th {
    background: var(--dark);
    color: #fff;
}

.price-table tbody th {
    color: var(--gold);
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
    border-bottom: 0;
}

.price-note {
    max-width: 760px;
    margin: 25px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}


/* =========================================================
   SIMULATORS COMMON
   ========================================================= */

.simulator-section {
    background: var(--bg);
}

.simulator-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.simulator-controls,
.simulator-board-area {
    background: var(--paper);
    border: 1px solid rgba(183,149,85,0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.simulator-controls {
    padding: 28px;
    position: sticky;
    top: 100px;
}

.simulator-board-area {
    padding: 30px;
}

.control-block {
    margin-bottom: 27px;
}

.control-block label,
.control-title {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

input[type="number"],
input[type="text"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d9d0c1;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--dark);
}

input:focus,
select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(183,149,85,0.12);
}

.input-with-unit,
.custom-size-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-unit input,
.custom-size-input input {
    flex: 1;
}

.input-with-unit span,
.custom-size-input span {
    color: var(--muted);
}

.fit-options {
    display: grid;
    gap: 8px;
}

.fit-options label {
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #e1d9cb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.size-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.size-button,
.macrame-size-button {
    min-height: 44px;
    padding: 8px;
    border: 1px solid #d9d0c1;
    border-radius: 10px;
    background: #fff;
    color: var(--dark);
}

.size-button.active,
.macrame-size-button.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

.custom-size-wrap {
    margin-top: 13px;
    padding: 15px;
    border: 1px solid var(--gold-pale);
    border-radius: 12px;
    background: #fbf7ee;
}

.custom-size-note {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
}

.simulator-tool-buttons {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tool-button {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d7cdbd;
    border-radius: 10px;
    background: #fff;
    color: #4e473e;
}

.tool-button:hover {
    border-color: var(--gold);
}

.board-heading {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.board-heading > div:first-child {
    display: flex;
    flex-direction: column;
}

.board-heading span {
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.board-heading strong {
    font-size: 18px;
    color: var(--dark);
}

.board-heading .remaining {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.board-heading .remaining strong {
    font-size: 16px;
}

.drag-help,
.board-help,
.adjustment-note {
    font-size: 12px;
    color: var(--muted);
}

.drag-help {
    margin: 18px 0;
    text-align: center;
}

.board-help {
    text-align: center;
}

.adjustment-note {
    margin: 20px 0 0;
}

.simulator-summary {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.simulator-summary > div {
    padding: 16px 10px;
    border: 1px solid #e5ded2;
    border-radius: 12px;
    text-align: center;
    background: #fff;
}

.simulator-summary span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--muted);
}

.simulator-summary strong {
    color: var(--dark);
}

.total-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background: var(--dark);
    color: #fff;
}

.total-row {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.total-row:last-child {
    border-bottom: 0;
}

.total-row span {
    font-size: 13px;
    color: #c6bfb4;
}

.grand-total {
    margin-top: 6px;
    padding-top: 15px;
}

.grand-total strong {
    font-size: 22px;
    color: var(--gold-light);
}


/* =========================================================
   STANDARD BRACELET BOARD
   ========================================================= */

.bracelet-board {
    width: min(520px, 100%);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    padding: 22px;
}

.bead-track {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px dashed #d6c7aa;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            #fff 0%,
            #fbf8f1 58%,
            #eee5d5 100%
        );
    touch-action: none;
}

.bead-track::before {
    content: "";
    position: absolute;
    inset: 18%;
    border: 1px solid rgba(183,149,85,0.17);
    border-radius: 50%;
    pointer-events: none;
}

.empty-board-message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 13px;
    color: #aaa196;
    pointer-events: none;
}

.bracelet-center-info {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 115px;
    height: 115px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,253,248,0.92);
    border: 1px solid #e5dbc8;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    pointer-events: none;
}

.bracelet-center-info span {
    font-family: Georgia, serif;
    font-size: 8px;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.bracelet-center-info strong {
    margin-top: 4px;
    font-size: 18px;
}

.design-bead {
    position: absolute;
    z-index: 5;
    padding: 0;
    border: 2px solid rgba(255,255,255,0.76);
    border-radius: 50%;
    box-shadow:
        inset 7px 7px 11px rgba(255,255,255,0.32),
        inset -7px -8px 12px rgba(0,0,0,0.16),
        0 4px 10px rgba(0,0,0,0.18);
    touch-action: none;
    cursor: grab;
    transition:
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.design-bead:hover {
    z-index: 7;
    box-shadow:
        inset 7px 7px 11px rgba(255,255,255,0.32),
        inset -7px -8px 12px rgba(0,0,0,0.16),
        0 0 0 3px rgba(183,149,85,0.18),
        0 6px 13px rgba(0,0,0,0.2);
}

.design-bead.selected {
    z-index: 9;
    border: 3px solid #c59b48;
    box-shadow:
        inset 7px 7px 11px rgba(255,255,255,0.32),
        inset -7px -8px 12px rgba(0,0,0,0.16),
        0 0 0 4px rgba(197,155,72,0.23),
        0 7px 17px rgba(0,0,0,0.22);
}

.design-bead.dragging {
    z-index: 20;
    cursor: grabbing;
    opacity: 0.7;
}

.design-bead.drag-target {
    box-shadow:
        inset 7px 7px 11px rgba(255,255,255,0.32),
        inset -7px -8px 12px rgba(0,0,0,0.16),
        0 0 0 5px rgba(183,149,85,0.4);
}


/* SELECTED BEAD */

.selected-bead-panel {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid rgba(183,149,85,0.4);
    border-radius: 14px;
    background: #fbf6eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.selected-bead-info {
    display: flex;
    flex-direction: column;
}

.selected-bead-info span {
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: 0.17em;
    color: var(--gold);
}

.selected-bead-info strong {
    margin-top: 4px;
    font-size: 14px;
}

.delete-bead-button {
    flex-shrink: 0;
    border-color: #b47c72;
    color: #7e3e36;
    background: #fff;
}

.delete-bead-button:hover {
    border-color: #8f5149;
}


/* PARTS */

.parts-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e1d8ca;
    border-radius: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.parts-box > div:first-child {
    display: flex;
    flex-direction: column;
}

.parts-box small {
    color: var(--muted);
}

.parts-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.parts-counter button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #d8cdbb;
    border-radius: 50%;
    background: #fff;
    font-size: 19px;
}

.parts-counter span {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}


/* =========================================================
   MACRAME DESIGN
   ========================================================= */

.macrame-order-section {
    background:
        linear-gradient(
            180deg,
            #fffdf8 0%,
            #f5efe4 100%
        );
}

.macrame-simulator-layout {
    margin-top: 10px;
}


/*
   ???????????????
   ??6mm ? ????? ? ??? ? ????? ? ??6mm
   ??????????
*/

.macrame-design-board {
    width: 100%;
    min-height: 245px;
    padding: 45px 22px;
    overflow-x: auto;
    border: 1px solid #dfd4c2;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #fff 0%,
            #f7f1e6 100%
        );
    display: grid;
    grid-template-columns:
        48px
        minmax(90px, 1fr)
        minmax(170px, auto)
        minmax(90px, 1fr)
        48px;
    align-items: center;
    gap: 0;
}


/* LEFT / RIGHT REAL END */

.macrame-fixed-end {
    position: relative;
    z-index: 6;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.macrame-fixed-end small {
    position: absolute;
    top: calc(50% + 24px);
    font-family: Georgia, serif;
    font-size: 9px;
    color: var(--gold);
    white-space: nowrap;
}

.macrame-fixed-part {
    position: relative;
    z-index: 5;
    display: block;
    width: 25px;
    height: 25px;
    border: 2px solid #b99758;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 32% 28%,
            #fff 0%,
            #e5d8bd 27%,
            #b9985a 72%,
            #796039 100%
        );
    box-shadow:
        inset 4px 4px 6px rgba(255,255,255,0.45),
        0 4px 8px rgba(0,0,0,0.16);
}


/* CORD BETWEEN REAL END AND CENTER STONES */

.macrame-board-cord {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 4px;
    background:
        repeating-linear-gradient(
            135deg,
            var(--macrame-cord-color, #2368a2) 0px,
            var(--macrame-cord-color, #2368a2) 5px,
            var(--macrame-cord-color-secondary, #ffffff) 5px,
            var(--macrame-cord-color-secondary, #ffffff) 10px
        );
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

.macrame-board-cord::before,
.macrame-board-cord::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.25);
}

.macrame-board-cord::before {
    top: 0;
}

.macrame-board-cord::after {
    bottom: 0;
}


/* CENTER STONES */

.macrame-stone-track {
    --macrame-cord-color: #2368a2;
    --macrame-cord-color-secondary: #ffffff;

    position: relative;
    min-width: 170px;
    min-height: 100px;
    padding: 20px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    touch-action: none;
}


/*
   ?????????????????
   ??0???????????????????
*/

.macrame-stone-track::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    transform: translateY(-50%);
    background:
        repeating-linear-gradient(
            135deg,
            var(--macrame-cord-color) 0px,
            var(--macrame-cord-color) 5px,
            var(--macrame-cord-color-secondary) 5px,
            var(--macrame-cord-color-secondary) 10px
        );
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.macrame-empty-message {
    position: relative;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,253,248,0.92);
    border: 1px solid #e6dccb;
    font-size: 11px;
    color: #978e81;
    white-space: nowrap;
    pointer-events: none;
}


/* USER-SELECTABLE MACRAME STONES */

.macrame-design-bead {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid rgba(255,255,255,0.82);
    border-radius: 50%;
    box-shadow:
        inset 6px 6px 9px rgba(255,255,255,0.34),
        inset -6px -7px 10px rgba(0,0,0,0.15),
        0 4px 9px rgba(0,0,0,0.18);
    cursor: grab;
    touch-action: none;
    transition:
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.macrame-design-bead:hover {
    z-index: 7;
    transform: translateY(-2px);
}

.macrame-design-bead.selected {
    z-index: 9;
    border: 3px solid #c59b48;
    box-shadow:
        inset 6px 6px 9px rgba(255,255,255,0.34),
        inset -6px -7px 10px rgba(0,0,0,0.15),
        0 0 0 4px rgba(197,155,72,0.25),
        0 6px 14px rgba(0,0,0,0.2);
}

.macrame-design-bead.dragging {
    z-index: 20;
    opacity: 0.68;
    cursor: grabbing;
    transform: scale(1.08);
}

.macrame-design-bead.drag-target {
    box-shadow:
        inset 6px 6px 9px rgba(255,255,255,0.34),
        inset -6px -7px 10px rgba(0,0,0,0.15),
        0 0 0 5px rgba(183,149,85,0.42);
}


/* FIXED PART DESCRIPTION */

.macrame-fixed-info {
    margin: 17px 0 0;
    padding: 13px 16px;
    border: 1px solid var(--gold-pale);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #fbf7ee;
    text-align: center;
}

.macrame-fixed-info strong {
    font-size: 13px;
    color: var(--dark);
}

.macrame-fixed-info span {
    font-size: 11px;
    color: var(--gold);
}


/* =========================================================
   DOG TAG ORDER
   ========================================================= */

.dogtag-order-section {
    background: var(--bg);
}

.sheet-selector {
    max-width: 500px;
    margin: 0 auto 35px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}

.sheet-button {
    min-height: 45px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
}

.sheet-button.active {
    background: var(--dark);
    color: #fff;
}

.dogtag-form {
    display: none;
    max-width: 780px;
    margin: 0 auto;
}

.dogtag-form.active {
    display: block;
}

.dogtag-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dogtag-form label,
.free-lines label {
    display: block;
}

.dogtag-form label > span,
.free-lines label > span {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
}

.full-field {
    grid-column: 1 / -1;
}

.free-lines {
    display: grid;
    gap: 13px;
}

.line-input {
    position: relative;
}

.line-input input {
    padding-right: 58px;
}

.line-input small {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #91887b;
}

.dogtag-preview-area {
    max-width: 780px;
    margin: 45px auto 0;
    padding: 30px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(183,149,85,0.22);
    box-shadow: var(--shadow);
}

.preview-title {
    margin: 0 0 20px;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.dogtag-large {
    position: relative;
    width: min(390px, 100%);
    min-height: 220px;
    margin: 0 auto;
    padding: 43px 52px;
    overflow: hidden;
    border: 3px solid #999995;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            #eeeeeb 0%,
            #c7c7c2 48%,
            #a7a7a3 100%
        );
    box-shadow:
        inset 0 0 0 5px rgba(255,255,255,0.28),
        inset -8px -10px 18px rgba(0,0,0,0.12),
        0 18px 30px rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    color: #50504c;
    font-family: "Courier New", monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.55);
}

.dogtag-large::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #8f8f8b;
    box-shadow:
        inset 2px 2px 3px rgba(0,0,0,0.28),
        1px 1px 2px rgba(255,255,255,0.7);
}

.dogtag-price-summary {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.dogtag-price-summary > div {
    padding: 14px 8px;
    border: 1px solid #e2d9cb;
    border-radius: 11px;
    text-align: center;
    background: #fff;
}

.dogtag-price-summary span {
    display: block;
    font-size: 10px;
    color: var(--muted);
}

.dogtag-price-summary strong {
    font-size: 15px;
}

.dogtag-price-summary .dogtag-total {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.dogtag-price-summary .dogtag-total span {
    color: #bbb4a9;
}

.dogtag-price-summary .dogtag-total strong {
    color: var(--gold-light);
}

.dogtag-note {
    margin: 22px 0 0;
    font-size: 12px;
    color: var(--muted);
}


/* =========================================================
   ORDER
   ========================================================= */

.order-section {
    background: var(--paper);
}

.order-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.flow-item {
    padding: 24px 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    text-align: center;
}

.flow-item > span {
    display: block;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    font-size: 11px;
    color: var(--gold);
}

.flow-item strong {
    color: var(--dark);
}

.flow-item p {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.payment-notice {
    margin-top: 35px;
    padding: 22px;
    border-radius: 14px;
    background: #f6f0e4;
    text-align: center;
}

.payment-notice p {
    margin: 8px 0 0;
    color: var(--muted);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    background: var(--dark);
    color: #fff;
}

.contact-section h2 {
    color: #fff;
}

.contact-section .section-lead {
    color: #bbb4a9;
}

.contact-mail {
    max-width: 580px;
    margin: 0 auto;
    padding: 24px 28px;
    border: 1px solid rgba(216,192,139,0.42);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.035);
}

.contact-mail span {
    font-family: Georgia, serif;
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--gold-light);
}

.contact-mail strong {
    margin-top: 6px;
    font-size: 18px;
    word-break: break-all;
}


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

.site-footer {
    padding: 55px 20px;
    background: #0f0e0c;
    color: #fff;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 400;
    letter-spacing: 0.18em;
}

.footer-brand span {
    margin-top: 7px;
    font-family: Georgia, serif;
    font-size: 8px;
    letter-spacing: 0.26em;
    color: var(--gold);
}

.footer-copy {
    margin: 24px 0 0;
    font-family: "Yu Mincho", serif;
    color: #d2cbc0;
}

.footer-company,
.copyright {
    margin: 12px 0 0;
    font-size: 10px;
    color: #716b62;
}


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

@media (max-width: 980px) {

    .product-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }

    .product-card {
        display: grid;
        grid-template-columns: 44% 56%;
    }

    .product-visual {
        height: auto;
        min-height: 360px;
    }

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

    .simulator-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 20px;
    }

    .simulator-controls,
    .simulator-board-area {
        padding: 22px;
    }

    .macrame-design-board {
        grid-template-columns:
            42px
            minmax(55px, 1fr)
            minmax(150px, auto)
            minmax(55px, 1fr)
            42px;
        padding-left: 12px;
        padding-right: 12px;
    }

}


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

@media (max-width: 760px) {

    .sp-only {
        display: initial;
    }

    .section {
        padding: 78px 16px;
    }

    .header-inner {
        width: calc(100% - 28px);
        min-height: 68px;
    }

    .brand-name {
        font-size: 24px;
    }

    .menu-button {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .global-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 25px 20px 30px;
        border-bottom: 1px solid var(--line);
        background: rgba(247,243,235,0.99);
        flex-direction: column;
        gap: 3px;
    }

    .global-nav.active {
        display: flex;
    }

    .global-nav a {
        width: 100%;
        padding: 11px 5px;
        text-align: center;
    }

    .hero {
        min-height: 620px;
        padding-top: 85px;
        padding-bottom: 85px;
    }

    .hero h1 {
        font-size: clamp(52px, 18vw, 76px);
        letter-spacing: 0.1em;
        padding-left: 0.1em;
    }

    .hero-description {
        font-size: 14px;
    }

    .product-card {
        display: block;
    }

    .product-visual {
        height: 250px;
        min-height: 0;
    }

    .product-content {
        padding: 25px 22px 28px;
    }

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

    .stone-card {
        min-height: 140px;
        padding: 16px 7px;
    }

    .category-heading {
        align-items: center;
    }

    .category-heading h3 {
        font-size: 21px;
    }

    .simulator-layout {
        display: block;
    }

    .simulator-controls {
        position: static;
        margin-bottom: 20px;
    }

    .simulator-board-area {
        padding: 18px 13px;
    }

    .board-heading {
        align-items: center;
    }

    .board-heading strong {
        font-size: 15px;
    }

    .bracelet-board {
        width: 100%;
        padding: 8px;
    }

    .bracelet-center-info {
        width: 90px;
        height: 90px;
    }

    .bracelet-center-info strong {
        font-size: 15px;
    }

    .simulator-summary {
        gap: 6px;
    }

    .simulator-summary > div {
        padding: 12px 5px;
    }

    .simulator-summary strong {
        font-size: 13px;
    }

    .selected-bead-panel {
        display: block;
    }

    .delete-bead-button {
        width: 100%;
        margin-top: 12px;
    }

    .parts-box {
        align-items: flex-start;
        flex-direction: column;
    }


    /* -----------------------------------------------------
       MACRAME MOBILE
       ----------------------------------------------------- */

    .macrame-design-board {
        min-height: 205px;
        padding: 36px 8px;

        /*
           ????????6mm???
           ?????????????????
        */
        grid-template-columns:
            34px
            minmax(45px, 1fr)
            minmax(125px, auto)
            minmax(45px, 1fr)
            34px;
    }

    .macrame-fixed-end {
        width: 34px;
    }

    .macrame-fixed-part {
        width: 22px;
        height: 22px;
    }

    .macrame-fixed-end small {
        top: calc(50% + 21px);
        font-size: 8px;
    }

    .macrame-board-cord {
        height: 3px;
    }

    .macrame-stone-track {
        min-width: 125px;
        min-height: 90px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .macrame-stone-track::before {
        height: 3px;
    }

    .macrame-empty-message {
        max-width: 120px;
        padding: 6px 8px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    .macrame-fixed-info {
        display: block;
    }

    .macrame-fixed-info strong,
    .macrame-fixed-info span {
        display: block;
    }

    .macrame-fixed-info span {
        margin-top: 4px;
    }


    /* DOG TAG */

    .dogtag-form-grid {
        grid-template-columns: 1fr;
    }

    .full-field {
        grid-column: auto;
    }

    .dogtag-preview-area {
        padding: 22px 12px;
    }

    .dogtag-large {
        min-height: 195px;
        padding: 35px 24px 35px 35px;
        font-size: 14px;
    }

    .dogtag-price-summary {
        grid-template-columns: 1fr 1fr;
    }

    .order-flow {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .simulator-controls {
        padding: 19px 15px;
    }

    .simulator-board-area {
        padding: 16px 8px;
    }

    .size-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .bracelet-center-info {
        width: 78px;
        height: 78px;
    }

    .bracelet-center-info span {
        font-size: 7px;
    }

    .bracelet-center-info strong {
        font-size: 13px;
    }

    /*
       ?????????????
       ??6mm??????
    */

    .macrame-design-board {
        grid-template-columns:
            29px
            minmax(28px, 1fr)
            minmax(105px, auto)
            minmax(28px, 1fr)
            29px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .macrame-fixed-end {
        width: 29px;
    }

    .macrame-fixed-part {
        width: 20px;
        height: 20px;
    }

    .macrame-stone-track {
        min-width: 105px;
    }

    .simulator-summary span {
        font-size: 9px;
    }

    .simulator-summary strong {
        font-size: 12px;
    }

    .total-row {
        gap: 10px;
    }

    .total-row span {
        font-size: 11px;
    }

    .total-row strong {
        font-size: 13px;
        text-align: right;
    }

    .grand-total strong {
        font-size: 18px;
    }

    .order-flow {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   ACCESSIBILITY / MOTION
   ========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}

/* =========================================================
   STANDARD BRACELET ACCESSORIES
   ========================================================= */

.accessory-parts-box {
    display: block;
}

.parts-heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.accessory-controls {
    width: 100%;
}

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

.accessory-select-row label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.accessory-select-row label > span {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.accessory-select-row select {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #d8cdbb;
    border-radius: 9px;
    background: #fff;
}

.accessory-add-button {
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
    border-color: #b79555;
    color: #6f5526;
    background: #fffaf0;
    font-weight: 700;
}

.accessory-help {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}

.accessory-status {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8dfd1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.accessory-status > span {
    font-size: 12px;
    color: var(--muted);
}

.accessory-status strong {
    margin-right: auto;
}

.design-rondelle {
    position: absolute;
    z-index: 8;
    width: 10px;
    height: 25px;
    border: 1px solid rgba(80,70,55,0.35);
    border-radius: 48% / 28%;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    padding: 0;
    appearance: none;
    box-shadow: inset 2px 2px 3px rgba(255,255,255,0.75), 0 2px 5px rgba(0,0,0,0.2);
}

.design-rondelle.selected {
    outline: 3px solid #c9a24d;
    outline-offset: 3px;
}

.design-rondelle.dragging {
    z-index: 20;
    opacity: 0.78;
    cursor: grabbing;
}

.design-rondelle.drag-target {
    outline: 3px dashed #c9a24d;
    outline-offset: 4px;
}

.design-rondelle.gold,
.design-bead-cap.gold {
    background: linear-gradient(90deg, #8f6b24 0%, #f3d37a 35%, #b88a31 68%, #fff0b2 100%);
}

.design-rondelle.silver,
.design-bead-cap.silver {
    background: linear-gradient(90deg, #7e8388 0%, #f4f5f6 35%, #a7adb2 68%, #ffffff 100%);
}

.design-bead-cap {
    position: absolute;
    z-index: 6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.38), 0 2px 5px rgba(0,0,0,0.2);
}

.design-bead-cap::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fffdf8;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.22);
}

.design-bead.has-cap {
    z-index: 9;
}

@media (max-width: 700px) {
    .accessory-select-row {
        grid-template-columns: 1fr;
    }

    .accessory-status {
        align-items: stretch;
    }

    .accessory-status .tool-button {
        width: 100%;
    }
}
