/* ============================================
   PORTANCE INC. corporate site
   ============================================ */

:root {
    --ink: #000;
    --sub: #595959;
    --line: #e3e3e3;
    --bg: #fff;
    --latin: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--jp);
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

/* ---------- header ---------- */

.site-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px clamp(20px, 5vw, 60px);
}

.header-logo img {
    width: 130px;
    height: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 36px);
    margin-top: 20px;
    font-family: var(--latin);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.site-nav a {
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    border-bottom-color: var(--ink);
}

.menu-toggle {
    display: none;
    width: 28px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s, opacity 0.2s;
}

/* ---------- top (hero) ---------- */

.hero {
    padding: clamp(70px, 16vh, 180px) clamp(20px, 5vw, 60px);
    text-align: center;
}

.hero-logo img {
    width: min(540px, 76vw);
    margin: 0 auto;
}

.hero-copy {
    margin-top: 36px;
    font-size: 15px;
    letter-spacing: 0.1em;
}

/* ---------- sub pages ---------- */

main {
    flex: 1;
}

.page {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    padding: clamp(50px, 9vh, 100px) clamp(20px, 5vw, 60px) clamp(60px, 10vh, 110px);
}

.page-title {
    font-family: var(--latin);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sub);
    margin-bottom: 44px;
}

.page-body {
    min-width: 0;
}

.page-body p {
    overflow-wrap: anywhere;
}

.page-body p + p {
    margin-top: 1em;
}

/* ---------- company table ---------- */

.company-table .row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.company-table .row:first-child {
    border-top: 1px solid var(--line);
}

.company-table dt {
    font-weight: 500;
    color: var(--sub);
}

.sp-only {
    display: none;
}

/* ---------- brands ---------- */

.brand-list {
    max-width: 620px;
}

.brand-item {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.brand-item:first-child {
    padding-top: 0;
}

.brand-link {
    display: inline-block;
}

.brand-mark {
    width: min(300px, 58vw);
    transition: opacity 0.2s;
}

.brand-link:hover .brand-mark,
.brand-link:focus-visible .brand-mark {
    opacity: 0.55;
}

.brand-caption {
    display: block;
    margin-top: 18px;
    font-family: var(--latin);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--sub);
}

.desk-mark {
    width: min(250px, 52vw);
    height: auto;
    transition: opacity 0.2s;
}

.brand-link:hover .desk-mark,
.brand-link:focus-visible .desk-mark {
    opacity: 0.55;
}

.shop-address {
    margin-top: 10px;
    color: var(--sub);
}

.brand-meta {
    margin-top: 14px;
    font-family: var(--latin);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.brand-meta a {
    border-bottom: 1px solid var(--ink);
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: none !important;
}

.instagram-link span {
    border-bottom: 1px solid var(--ink);
}

.instagram-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.brand-meta a:hover,
.brand-meta a:focus-visible {
    opacity: 0.55;
}

/* ---------- contact ---------- */

.contact-mail {
    margin-top: 24px;
    font-family: var(--latin);
    font-size: clamp(18px, 3.4vw, 26px);
    letter-spacing: 0.04em;
}

.contact-mail a {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
}

.contact-mail a:hover {
    opacity: 0.55;
}

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 36px clamp(20px, 5vw, 60px);
    text-align: center;
    font-family: var(--latin);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--sub);
}

/* ---------- placeholder marker ---------- */

.tbd {
    font-size: 11px;
    color: #b4231f;
    background: #fdf1f0;
    padding: 1px 6px;
    margin-left: 8px;
    border-radius: 2px;
    letter-spacing: 0;
    white-space: nowrap;
    vertical-align: middle;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
    body.menu-open {
        overflow: hidden;
    }

    .site-header {
        position: relative;
        z-index: 40;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .header-logo {
        position: relative;
        z-index: 41;
    }

    .header-logo img {
        width: 104px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 50%;
        right: 22px;
        z-index: 42;
        width: 36px;
        height: 28px;
        flex-direction: column;
        justify-content: space-between;
        transform: translateY(-50%);
        outline: none;
    }

    .menu-toggle:focus-visible {
        opacity: 0.6;
    }

    .menu-toggle span {
        height: 2px;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(13px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 40;
        flex-direction: column;
        justify-content: flex-start;
        gap: 38px;
        margin-top: 0;
        padding: 150px 24px 40px;
        overflow: auto;
        background: rgba(255, 255, 255, 0.98);
        font-size: 16px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        border-bottom: none;
    }

    .company-table .row {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 14px 0;
    }

    .sp-only {
        display: inline;
    }
}
