@charset 'utf-8';

/* =============================================================
   規約などの文章のページ・404（デザインなし。ニュース一覧の冒頭とニュース詳細の本文の形に合わせる）
   /privacy-policy/・/tokushoho/・/customer-policy/・/symbol/・404
   冒頭は components/common/DocHero.astro
   ============================================================= */

/* -------------------------------------------------------------
   冒頭：生成りの帯にパンくず＋見出し。右に白いロゴマーク
   ------------------------------------------------------------- */
.p-doc__hero {
    padding: 169px 0 97px;
    background-color: var(--c-cream);
}

.p-doc__hero-inner {
    position: relative;
}

.p-doc__hero-logo {
    position: absolute;
    top: -27px;
    right: 49px;
    width: min(302px, var(--cw) * .2517);
    height: auto;
    color: var(--c-white);
    pointer-events: none;
}

.p-doc__ttl {
    position: relative;
    margin-top: 21px;
}

/* パンくずが無いとき（404）も見出しの位置をそろえる */
.p-doc__ttl--top {
    margin-top: 44px;
}

/* -------------------------------------------------------------
   本文：幅 897px で中央
   ------------------------------------------------------------- */
.p-doc__body {
    padding: 88px 0 140px;
}

.p-doc__content {
    max-width: 897px;
    font-size: 16px;
    line-height: 2;
    letter-spacing: .05em;
    overflow-wrap: anywhere;
}

/* 本文中のリンクだけ。ボタン（404 の TOP）には下線・ホバーの半透明を付けない（2026-11-26 指示） */
.p-doc__content a:not(.c-btn) {
    color: var(--c-green);
    text-decoration: underline;
}

@media (any-hover: hover) {
    .p-doc__content a:not(.c-btn):hover {
        opacity: .7;
    }
}

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

.p-doc__lead {
    margin-bottom: 64px;
}

.p-doc__sec + .p-doc__sec,
.p-doc__table + .p-doc__sec {
    margin-top: 64px;
}

.p-doc__h2 {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-beige);
    font-family: var(--ff-head);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: .05em;
    color: var(--c-green);
}

.p-doc__h3 {
    margin: 32px 0 8px;
    font-family: var(--ff-head);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .05em;
    color: var(--c-green);
}

.p-doc__h2 + .p-doc__h3,
.p-doc__sec--note .p-doc__h3 {
    margin-top: 0;
}

/* 箇条書き（・）と番号付き */
.p-doc__list {
    margin: 1em 0;
}

.p-doc__list > li {
    position: relative;
    padding-left: 1.4em;
}

.p-doc__list > li::before {
    content: "";
    position: absolute;
    top: .9em;
    left: .45em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: currentColor;
}

.p-doc__list--num {
    counter-reset: doc-num;
}

.p-doc__list--num > li {
    padding-left: 1.8em;
    counter-increment: doc-num;
}

.p-doc__list--num > li::before {
    content: counter(doc-num) ".";
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-family: var(--ff-en);
    font-weight: 600;
    color: var(--c-green);
}

.p-doc__note {
    font-size: 13px;
    line-height: 1.85;
}

.p-doc__sign {
    margin-top: 64px;
    text-align: right;
}

/* 付則などの補足 */
.p-doc__sec--note {
    padding: 24px 28px;
    border-radius: 10px;
    background-color: var(--c-cream);
    font-size: 14px;
}

/* -------------------------------------------------------------
   表（特定商取引法に基づく表記・製造所固有記号）
   ------------------------------------------------------------- */
.p-doc__table {
    width: 100%;
    border-top: 1px solid var(--c-beige);
    border-collapse: collapse;
}

.p-doc__table th,
.p-doc__table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-beige);
    text-align: left;
    vertical-align: top;
}

.p-doc__table th {
    width: 28%;
    background-color: var(--c-cream);
    font-family: var(--ff-head);
    font-weight: 500;
    color: var(--c-green);
}

.p-doc__table thead th {
    padding-block: 12px;
    font-size: 14px;
}

/* 列の幅：記号 20%・製造者 36%・所在地 残り */
.p-doc__table--symbol tr > :first-child {
    width: 20%;
    white-space: nowrap;
}

.p-doc__table--symbol tr > :nth-child(2) {
    width: 36%;
}

/* 製造所固有記号の掲載場所：文章の右に商品のイラスト */
.p-doc__symbol-place {
    display: flex;
    align-items: flex-start;
    column-gap: 48px;
}

.p-doc__symbol-place .p-doc__note {
    margin-top: 8px;
}

.p-doc__symbol-img {
    flex-shrink: 0;
    width: 89px;
}

.p-doc__symbol-img img {
    width: 100%;
}

/* -------------------------------------------------------------
   404
   ------------------------------------------------------------- */
.p-doc__btn {
    margin-top: 48px;
}

/* =============================================================
   SP
   ============================================================= */
@media screen and (max-width: 767.98px) {
    .p-doc__hero {
        padding: calc(93 * var(--u)) 0 calc(42 * var(--u));
    }

    .p-doc__hero-logo {
        top: calc(-29 * var(--u));
        right: 0;
        width: calc(112 * var(--u));
    }

    .p-doc__ttl {
        margin-top: calc(10 * var(--u));
    }

    .p-doc__ttl--top {
        margin-top: calc(33 * var(--u));
    }

    .p-doc__body {
        padding: calc(50 * var(--u)) 0 calc(80 * var(--u));
    }

    .p-doc__content {
        font-size: calc(15 * var(--u));
        line-height: 2;
    }

    .p-doc__lead {
        margin-bottom: calc(44 * var(--u));
    }

    .p-doc__sec + .p-doc__sec,
    .p-doc__table + .p-doc__sec {
        margin-top: calc(44 * var(--u));
    }

    .p-doc__h2 {
        margin-bottom: calc(18 * var(--u));
        padding-bottom: calc(10 * var(--u));
        font-size: calc(18 * var(--u));
    }

    .p-doc__h3 {
        margin: calc(24 * var(--u)) 0 calc(6 * var(--u));
        font-size: calc(15 * var(--u));
    }

    .p-doc__note {
        font-size: calc(12 * var(--u));
    }

    .p-doc__sign {
        margin-top: calc(44 * var(--u));
    }

    .p-doc__sec--note {
        padding: calc(18 * var(--u)) calc(20 * var(--u));
        font-size: calc(13 * var(--u));
    }

    /* 表は見出しを上、内容を下に積む */
    .p-doc__table,
    .p-doc__table tbody,
    .p-doc__table tr,
    .p-doc__table th,
    .p-doc__table td {
        display: block;
        width: 100%;
    }

    .p-doc__table th,
    .p-doc__table td {
        padding: calc(14 * var(--u)) calc(16 * var(--u));
    }

    .p-doc__table th {
        padding-block: calc(10 * var(--u));
        border-bottom: 0;
    }

    /* 製造所固有記号：1 件ずつ、項目名を付けて表示 */
    .p-doc__table--symbol thead {
        display: none;
    }

    .p-doc__table--symbol tr > :first-child,
    .p-doc__table--symbol tr > :nth-child(2) {
        width: 100%;
    }

    .p-doc__table--symbol td {
        border-bottom: 0;
        padding-block: calc(4 * var(--u));
    }

    .p-doc__table--symbol td:last-child {
        width: 100%;
        padding-bottom: calc(16 * var(--u));
        border-bottom: 1px solid var(--c-beige);
    }

    .p-doc__table--symbol tr > td:first-of-type {
        padding-top: calc(14 * var(--u));
    }

    .p-doc__table--symbol td::before {
        content: attr(data-label) "：";
        font-weight: 500;
        color: var(--c-green);
    }

    .p-doc__symbol-place {
        column-gap: calc(20 * var(--u));
    }

    .p-doc__symbol-img {
        width: calc(70 * var(--u));
    }

    .p-doc__btn {
        margin-top: calc(36 * var(--u));
    }
}
