/* =====================================================================
   まとメモ スタイル
   色・角丸・影はトークン(カスタムプロパティ)で定義し、ダークモードでは値だけを差し替える
   ===================================================================== */

/* ---------------------------------------------------------------------
   トークン
   --------------------------------------------------------------------- */
:root {
    color-scheme: light;

    --c-bg: #f5f7fb;
    --c-surface: #ffffff;
    --c-surface-muted: #eef2f8;
    --c-border: #e2e8f0;
    --c-border-strong: #c5cfdd;
    --c-text: #0f172a;
    --c-text-muted: #556074;
    --c-text-subtle: #8792a6;

    /* 文字・アイコン用と、白文字を載せる塗り用を分ける(ダークモードでコントラストを保つため) */
    --c-primary: #2563eb;
    --c-primary-fill: #2563eb;
    --c-primary-fill-hover: #1d4ed8;
    --c-primary-soft: #e7eeff;
    --c-on-primary: #ffffff;

    --c-danger: #dc2626;
    --c-danger-fill: #dc2626;
    --c-danger-soft: #fdecec;
    --c-success: #15803d;
    --c-success-soft: #e6f6ec;

    /* 操作メニューのラベルなど、背景と反転させる要素 */
    --c-inverse: #1e293b;
    --c-on-inverse: #f8fafc;

    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
    --gradient-accent: linear-gradient(90deg, #2563eb, #06b6d4);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05);
    --shadow: 0 1px 3px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.07);
    --shadow-lg: 0 16px 48px rgb(15 23 42 / 0.2);
    --shadow-fab: 0 8px 24px rgb(37 99 235 / 0.35), 0 2px 6px rgb(15 23 42 / 0.12);

    --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

    --content-width: 720px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --c-bg: #0b1120;
        --c-surface: #131c2e;
        --c-surface-muted: #1a2539;
        --c-border: #243049;
        --c-border-strong: #3a4865;
        --c-text: #e8edf6;
        --c-text-muted: #a4afc3;
        --c-text-subtle: #75819b;

        --c-primary: #7aa7ff;
        --c-primary-fill: #3b6ef0;
        --c-primary-fill-hover: #4d7ef5;
        --c-primary-soft: #18264a;

        --c-danger: #f87171;
        --c-danger-soft: #3a1720;
        --c-success: #4ade80;
        --c-success-soft: #10291c;

        --c-inverse: #e8edf6;
        --c-on-inverse: #0b1120;

        --gradient-accent: linear-gradient(90deg, #60a5fa, #22d3ee);

        --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
        --shadow: 0 2px 4px rgb(0 0 0 / 0.25), 0 8px 24px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 16px 48px rgb(0 0 0 / 0.55);
        --shadow-fab: 0 8px 24px rgb(0 0 0 / 0.45);
    }
}

/* ---------------------------------------------------------------------
   ベース
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* ダイアログを開いている間は背面をスクロールさせない */
body:has(dialog[open]) {
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

main {
    flex: 1 0 auto;
}

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

a {
    color: var(--c-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.icon {
    flex: none;
    display: block;
}

/* 日本語の見出しや短い文は、文節の途中や1〜2文字だけの行で折り返さない(対応ブラウザのみ) */
h1,
h2,
h3,
.hero__lead,
.hero__note,
.section-lead,
.cta-card__lead,
.cta-card__note,
.empty__text,
.dialog__message,
.dialog__detail {
    word-break: auto-phrase;
    text-wrap: pretty;
}

[v-cloak] {
    display: none !important;
}

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

/* 画面幅で改行位置を変える */
.br-wide {
    display: none;
}

@media (min-width: 640px) {
    .br-wide {
        display: inline;
    }

    .br-narrow {
        display: none;
    }
}

/* ---------------------------------------------------------------------
   ロゴ
   --------------------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand:hover {
    text-decoration: none;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgb(37 99 235 / 0.3);
}

.brand__mark--small {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 12px;
    box-shadow: none;
}

/* ---------------------------------------------------------------------
   ボタン
   --------------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s, opacity 0.15s;
}

.button:hover {
    text-decoration: none;
}

.button:active:not(:disabled) {
    transform: scale(0.97);
}

.button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.button--primary {
    background: var(--c-primary-fill);
    color: var(--c-on-primary);
}

.button--primary:hover:not(:disabled) {
    background: var(--c-primary-fill-hover);
}

.button--ghost {
    background: transparent;
    color: var(--c-text-muted);
}

.button--ghost:hover {
    background: var(--c-surface-muted);
    color: var(--c-text);
}

.button--danger {
    background: var(--c-danger-fill);
    color: #fff;
}

.button--small {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
}

.button--large {
    height: 52px;
    min-width: 248px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 15px;
}

.button--x {
    background: #0f1419;
    color: #fff;
}

.button--x:hover {
    background: #272c30;
}

.button--facebook {
    background: #1877f2;
    color: #fff;
}

.button--facebook:hover {
    background: #0f66d8;
}

@media (prefers-color-scheme: dark) {
    .button--x {
        box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
    }
}

.icon-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.icon-button:hover {
    background: var(--c-surface-muted);
    color: var(--c-text);
}

/* ファイル選択はlabelでボタンに見せているため、中のinputのフォーカスを外側に出す */
.icon-button:has(input:focus-visible) {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------
   アプリのヘッダー
   --------------------------------------------------------------------- */
.appbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--c-bg) 80%, transparent);
    border-bottom: 1px solid var(--c-border);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
}

.appbar__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1040px;
    height: 60px;
    margin: 0 auto;
    padding: 0 12px 0 16px;
}

.appbar__nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--c-text-muted);
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover {
    background: var(--c-surface-muted);
    color: var(--c-text);
    text-decoration: none;
}

.nav-link.is-active {
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.nav-link__label,
.nav-link--wide {
    display: none;
}

@media (min-width: 640px) {
    .nav-link {
        padding: 0 14px 0 12px;
    }

    .nav-link__label {
        display: inline;
    }

    .nav-link--wide {
        display: inline-flex;
    }
}

.avatar-button {
    margin-left: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #3b82f6);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 3px var(--c-border);
}

.avatar--large {
    width: 48px;
    height: 48px;
    font-size: 20px;
    box-shadow: none;
}

/* ---------------------------------------------------------------------
   ダイアログ共通(ドロワー・ボトムシート・確認)
   ::backdropはカスタムプロパティを継承しない環境があるため、色を直接書く
   --------------------------------------------------------------------- */
dialog {
    padding: 0;
    border: 0;
    color: var(--c-text);
    background: var(--c-surface);
}

dialog::backdrop {
    background: rgb(15 23 42 / 0.45);
}

/* ダークモードは背景との明暗差が小さいため、暗転を強めて縁取りを付ける */
@media (prefers-color-scheme: dark) {
    dialog {
        border: 1px solid var(--c-border);
    }

    dialog::backdrop {
        background: rgb(0 0 0 / 0.6);
    }
}

dialog[open] {
    animation: dialog-in 0.24s var(--ease-out);
}

dialog[open]::backdrop {
    animation: fade-in 0.24s ease;
}

dialog.is-closing {
    animation: dialog-out 0.18s ease-in forwards;
}

dialog.is-closing::backdrop {
    animation: fade-out 0.18s ease-in forwards;
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
}

@keyframes dialog-out {
    to {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

/* ドロワー(右から出るメニュー) */
.drawer {
    width: min(320px, 86vw);
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0 0 0 auto;
    box-shadow: var(--shadow-lg);
}

.drawer[open] {
    animation-name: drawer-in;
    animation-duration: 0.28s;
}

.drawer.is-closing {
    animation-name: drawer-out;
}

@keyframes drawer-in {
    from {
        transform: translateX(100%);
    }
}

@keyframes drawer-out {
    to {
        transform: translateX(100%);
    }
}

.drawer__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 12px calc(16px + var(--safe-bottom));
}

.drawer__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 20px 8px;
    border-bottom: 1px solid var(--c-border);
}

.drawer__user {
    flex: 1;
    min-width: 0;
}

.drawer__name {
    margin: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.drawer__email {
    margin: 0;
    font-size: 13px;
    color: var(--c-text-muted);
    overflow-wrap: anywhere;
}

.drawer__nav {
    display: grid;
    gap: 2px;
    padding: 12px 0;
}

.drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--c-text);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.drawer__link .icon {
    color: var(--c-text-muted);
}

.drawer__link:hover {
    background: var(--c-surface-muted);
    text-decoration: none;
}

.drawer__link.is-active {
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.drawer__link.is-active .icon {
    color: var(--c-primary);
}

.drawer__foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
}

/* ボトムシート(メモ・メモ帳の入力) */
.sheet {
    width: 100%;
    max-width: 640px;
    max-height: calc(100dvh - 24px);
    margin: auto auto 0;
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-lg);
}

.sheet[open] {
    animation-name: sheet-in;
    animation-duration: 0.3s;
}

.sheet.is-closing {
    animation-name: sheet-out;
}

@keyframes sheet-in {
    from {
        transform: translateY(100%);
    }
}

@keyframes sheet-out {
    to {
        transform: translateY(100%);
    }
}

/* 広い画面では中央のダイアログとして出す */
@media (min-width: 720px) {
    .sheet {
        max-height: min(760px, calc(100dvh - 64px));
        margin: auto;
        border-radius: 24px;
    }

    .sheet[open] {
        animation-name: dialog-in;
        animation-duration: 0.24s;
    }

    .sheet.is-closing {
        animation-name: dialog-out;
    }
}

.sheet__form {
    display: flex;
    flex-direction: column;
    padding: 8px 16px calc(16px + var(--safe-bottom));
}

/* つまみ */
.sheet__form::before {
    content: "";
    align-self: center;
    width: 36px;
    height: 4px;
    margin-bottom: 4px;
    border-radius: 2px;
    background: var(--c-border-strong);
}

@media (min-width: 720px) {
    .sheet__form {
        padding: 12px 20px 20px;
    }

    .sheet__form::before {
        display: none;
    }
}

.sheet__header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 -6px;
    padding: 4px 0 10px;
}

.sheet__title {
    flex: 1;
    margin: 0 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}

.sheet__header .button--primary {
    margin-left: 6px;
}

.text-input,
.textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    background: var(--c-surface-muted);
    color: var(--c-text);
    /* 16px未満だとiOSのSafariがフォーカス時に拡大してしまう */
    font-size: 16px;
    line-height: 1.75;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.textarea {
    min-height: 9em; /* 6行分最初から開けておく */
    max-height: 50dvh;
    overflow-y: auto;
    resize: none;
}

.text-input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    background: var(--c-surface);
    box-shadow: 0 0 0 4px var(--c-primary-soft);
}

.text-input::placeholder,
.textarea::placeholder {
    color: var(--c-text-subtle);
}

.counter {
    margin: 6px 4px 0;
    color: var(--c-text-subtle);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.counter.is-over {
    color: var(--c-danger);
    font-weight: 700;
}

.field-error {
    margin: 8px 4px 0;
    color: var(--c-danger);
    font-size: 13px;
}

.image-preview {
    position: relative;
    align-self: flex-start;
    max-width: 100%;
    margin-top: 12px;
}

.image-preview img {
    display: block;
    width: auto;
    max-height: 36dvh;
    border: 1px solid var(--c-border);
    border-radius: 12px;
}

.image-preview__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(15 23 42 / 0.72);
    color: #fff;
    cursor: pointer;
}

/* 確認ダイアログ */
.dialog {
    width: calc(100% - 48px);
    max-width: 380px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.dialog__inner {
    padding: 24px 20px 16px;
}

.dialog__message {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
}

.dialog__detail {
    margin: 8px 0 0;
    color: var(--c-text-muted);
    font-size: 14px;
}

.dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

/* ---------------------------------------------------------------------
   ログイン後のページ
   --------------------------------------------------------------------- */
.page {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 20px 16px 24px;
}

.page-header {
    margin: 4px 4px 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 6px -4px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    color: var(--c-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.back-link:hover {
    background: var(--c-surface-muted);
    color: var(--c-text);
    text-decoration: none;
}

.page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
    font-feature-settings: "palt";
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--c-text-muted);
    font-size: 13px;
}

.app-footer {
    padding: 24px 16px calc(104px + var(--safe-bottom));
    color: var(--c-text-subtle);
    font-size: 12px;
    text-align: center;
}

.app-footer p {
    margin: 0;
}

/* 処理結果のメッセージ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}

.alert .icon {
    margin-top: 2px;
}

.alert--success {
    background: var(--c-success-soft);
    color: var(--c-success);
}

.alert--error {
    background: var(--c-danger-soft);
    color: var(--c-danger);
}

.alert__body {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-wrap: anywhere;
}

.alert__body p {
    margin: 0;
}

/* 空のとき */
.empty {
    padding: 48px 24px;
    border: 1.5px dashed var(--c-border-strong);
    border-radius: var(--radius-lg);
    color: var(--c-text-muted);
    text-align: center;
}

.empty__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.empty__title {
    margin: 0 0 4px;
    color: var(--c-text);
    font-size: 16px;
    font-weight: 800;
}

.empty__text {
    margin: 0;
    font-size: 14px;
}

/* チェックボックス */
.checkbox {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid var(--c-border-strong);
    border-radius: 7px;
    background: var(--c-surface) no-repeat center / 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}

.checkbox:checked {
    border-color: var(--c-primary-fill);
    background-color: var(--c-primary-fill);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.checkbox:active {
    transform: scale(0.9);
}

/* カードの一覧 */
.card-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* メモ帳 */
.pad-item {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.pad-item:has(.checkbox:checked) {
    border-color: var(--c-primary-fill);
    background: var(--c-primary-soft);
}

.pad-item__select {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 8px 14px 16px;
    cursor: pointer;
}

.pad-item__body {
    display: grid;
    min-width: 0;
}

.pad-item__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.pad-item__meta {
    color: var(--c-text-subtle);
    font-size: 12.5px;
}

.pad-item__open {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    border-left: 1px solid var(--c-border);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--c-text-subtle);
    transition: background-color 0.15s, color 0.15s;
}

.pad-item__open:hover {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    text-decoration: none;
}

/* チュートリアル: メモ帳を開くボタンを示す */
.pad-item__open.is-highlighted {
    color: var(--c-primary);
}

.pad-item__open.is-highlighted::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 12px;
    animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 0 0 rgb(37 99 235 / 0.55);
    }

    to {
        box-shadow: 0 0 0 14px rgb(37 99 235 / 0);
    }
}

.coachmark {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 5;
    width: min(280px, 80vw);
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--c-primary-fill);
    color: #fff;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.coachmark::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: inherit;
    transform: rotate(45deg);
}

.coachmark__title {
    margin: 0 0 4px;
    font-weight: 800;
}

.coachmark__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
}

/* メモ */
.memo-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.memo-card:has(.checkbox:checked) {
    border-color: var(--c-primary-fill);
    box-shadow: 0 0 0 1px var(--c-primary-fill), var(--shadow-sm);
}

.memo-card__select {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
}

.memo-card__select .checkbox {
    margin-top: 2px;
}

.memo-card__content {
    display: grid;
    flex: 1;
    gap: 12px;
    min-width: 0;
}

.memo-card__content--static {
    padding: 16px 18px;
}

.memo-card__image {
    display: block;
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-surface-muted);
}

.memo-card__body {
    display: block;
    margin: 0;
    font-size: 15.5px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.memo-card__body:empty {
    display: none;
}

.memo-card__body a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* メモ帳ごとのまとまり(一覧・検索結果) */
.group + .group {
    margin-top: 28px;
}

.group__title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
}

.group__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    background: var(--c-surface-muted);
    color: var(--c-text-muted);
}

.group__link span {
    overflow-wrap: anywhere;
}

.group__link:hover {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    text-decoration: none;
}

/* 検索 */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
}

.search-form__icon {
    position: absolute;
    left: 14px;
    color: var(--c-text-subtle);
    pointer-events: none;
}

.search-form__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1.5px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-form__input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px var(--c-primary-soft);
}

.search-form__input::placeholder {
    color: var(--c-text-subtle);
}

.search-form .button {
    height: 48px;
    padding: 0 20px;
    border-radius: 14px;
}

.result-count {
    margin: 0 4px 16px;
    color: var(--c-text-muted);
    font-size: 13px;
}

/* ---------------------------------------------------------------------
   右下のボタン(FAB)と、選択時の操作メニュー
   --------------------------------------------------------------------- */
.fab-area {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + var(--safe-bottom));
    z-index: 20;
}

@media (min-width: 720px) {
    .fab-area {
        right: 32px;
        bottom: 32px;
    }
}

/* 新規作成ボタンと操作メニューを同じ位置で入れ替える */
.fab-area > * {
    position: absolute;
    right: 0;
    bottom: 0;
}

.fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 56px;
    height: 56px;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    background: var(--c-primary-fill);
    color: var(--c-on-primary);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: var(--shadow-fab);
    cursor: pointer;
    transition: background-color 0.15s, transform 0.12s;
}

.fab:hover {
    background: var(--c-primary-fill-hover);
}

.fab:active {
    transform: scale(0.95);
}

.fab--extended {
    padding: 0 22px 0 18px;
}

.fab__icon-close,
.speed-dial.is-open .fab__icon-open {
    display: none;
}

.speed-dial.is-open .fab__icon-close {
    display: block;
}

.fab__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: inset 0 0 0 1.5px var(--c-primary-fill), 0 1px 4px rgb(15 23 42 / 0.2);
}

.speed-dial {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

/* 開いている間は背後を淡く覆い、ラベルを読みやすくする */
.speed-dial::before {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;
    z-index: -1;
    width: 380px;
    height: 420px;
    background: radial-gradient(ellipse at 100% 100%,
        color-mix(in srgb, var(--c-bg) 96%, transparent) 0%,
        color-mix(in srgb, var(--c-bg) 80%, transparent) 45%,
        transparent 72%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.speed-dial.is-open::before {
    opacity: 1;
}

.speed-dial__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.speed-dial__actions li {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transform-origin: right center;
    transition: opacity 0.16s, transform 0.2s var(--ease-out), visibility 0s 0.2s;
}

.speed-dial.is-open .speed-dial__actions li {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.16s, transform 0.24s var(--ease-out), visibility 0s;
}

/* 下(FAB側)から順に出す */
.speed-dial.is-open .speed-dial__actions li:nth-last-child(2) { transition-delay: 0.03s; }
.speed-dial.is-open .speed-dial__actions li:nth-last-child(3) { transition-delay: 0.06s; }
.speed-dial.is-open .speed-dial__actions li:nth-last-child(4) { transition-delay: 0.09s; }

.speed-dial__action {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 4px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.speed-dial__label {
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--c-inverse);
    color: var(--c-on-inverse);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.speed-dial__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--c-surface);
    color: var(--c-primary);
    box-shadow: var(--shadow), inset 0 0 0 1px var(--c-border);
    transition: background-color 0.15s, transform 0.1s;
}

.speed-dial__action:hover:not(:disabled) .speed-dial__icon {
    background: var(--c-primary-soft);
}

.speed-dial__action:active:not(:disabled) .speed-dial__icon {
    transform: scale(0.94);
}

.speed-dial__action--danger .speed-dial__icon {
    color: var(--c-danger);
}

.speed-dial__action:disabled {
    cursor: not-allowed;
}

/* 背後のメモと重なっても読めるよう、無効時も半透明にせず色だけ落とす */
.speed-dial__action:disabled .speed-dial__label,
.speed-dial__action:disabled .speed-dial__icon {
    background: var(--c-surface-muted);
    color: var(--c-text-subtle);
    box-shadow: inset 0 0 0 1px var(--c-border);
}

.fab-swap-enter-active,
.fab-swap-leave-active {
    transform-origin: right bottom;
    transition: opacity 0.18s ease, transform 0.22s var(--ease-out);
}

.fab-swap-enter-from,
.fab-swap-leave-to {
    opacity: 0;
    transform: scale(0.8);
}

/* ---------------------------------------------------------------------
   ランディングページ
   --------------------------------------------------------------------- */
.lp-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.lp-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: env(safe-area-inset-top, 0px);
    background: color-mix(in srgb, var(--c-bg) 78%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
}

.lp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* ヒーロー */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 40px 0 64px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10% -20% 0;
    z-index: -1;
    background:
        radial-gradient(38% 45% at 12% 18%, rgb(59 130 246 / 0.2), transparent 70%),
        radial-gradient(34% 42% at 88% 28%, rgb(6 182 212 / 0.18), transparent 70%),
        radial-gradient(30% 40% at 55% 92%, rgb(139 92 246 / 0.14), transparent 70%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    align-items: center;
    gap: 48px;
}

.hero__copy {
    text-align: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 6px 14px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-primary);
    font-size: 13px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgb(34 197 94 / 0.2);
}

.hero__title {
    margin: 0;
    font-size: clamp(30px, 8.2vw, 60px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-feature-settings: "palt";
}

.hero__accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin: 20px 0 0;
    color: var(--c-text-muted);
    font-size: clamp(15px, 3.8vw, 18px);
    line-height: 1.9;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

@media (min-width: 600px) {
    .login-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.hero__note {
    margin: 14px 0 0;
    color: var(--c-text-subtle);
    font-size: 13px;
}

@media (min-width: 960px) {
    .hero {
        padding: 72px 0 104px;
    }

    .hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .hero__copy {
        text-align: left;
    }

    .hero .login-buttons {
        justify-content: flex-start;
    }
}

/* アプリ画面のイメージ */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 8px 0 16px;
}

.phone {
    width: 280px;
    padding: 10px;
    border-radius: 46px;
    background: linear-gradient(145deg, #1e293b, #020617);
    box-shadow: 0 40px 80px -30px rgb(15 23 42 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.phone__screen {
    position: relative;
    height: 540px;
    overflow: hidden;
    padding: 14px 14px 0;
    border-radius: 36px;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 12px;
}

/* ノッチ */
.phone__screen::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 84px;
    height: 24px;
    border-radius: 12px;
    background: #020617;
    transform: translateX(-50%);
}

.mock-appbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 30px 2px 10px;
    font-size: 14px;
    font-weight: 800;
}

.mock-back {
    margin: 4px 0 0;
    color: var(--c-text-muted);
    font-size: 11px;
    font-weight: 700;
}

.mock-title {
    margin: 2px 0 12px;
    font-size: 19px;
    font-weight: 800;
}

.mock-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    background: var(--c-surface);
    font-size: 12.5px;
    line-height: 1.6;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.mock-check {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    border: 1.5px solid var(--c-border-strong);
    border-radius: 5px;
}

.mock-check.is-on {
    border-color: var(--c-primary-fill);
    background: var(--c-primary-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 10px;
}

.mock-image {
    display: block;
    height: 72px;
    margin-bottom: 8px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 75% 30%, #fef3c7 0 10px, transparent 11px),
        linear-gradient(160deg, #93c5fd, #a5b4fc 55%, #f9a8d4);
}

.mock-fab {
    position: absolute;
    right: 14px;
    bottom: 20px;
    padding: 11px 16px;
    border-radius: 15px;
    background: var(--c-primary-fill);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgb(37 99 235 / 0.4);
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-surface);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.float-chip--merge {
    top: 46%;
    left: calc(50% - 220px);
    color: var(--c-success);
}

.float-chip--search {
    top: 14%;
    right: calc(50% - 210px);
    color: var(--c-text);
    animation-delay: -3s;
}

.float-chip--search .icon {
    color: var(--c-primary);
}

@media (max-width: 520px) {
    .float-chip--merge {
        left: 0;
    }

    .float-chip--search {
        right: 0;
    }
}

@keyframes float {
    50% {
        transform: translateY(-8px);
    }
}

/* セクション */
.lp-section {
    padding: 72px 0;
}

.lp-section--tint {
    background: linear-gradient(180deg, var(--c-surface-muted), var(--c-bg));
}

@media (min-width: 960px) {
    .lp-section {
        padding: 104px 0;
    }
}

.section-head {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(24px, 5.6vw, 36px);
    font-weight: 800;
    line-height: 1.4;
    font-feature-settings: "palt";
}

.section-lead {
    margin: 16px 0 0;
    color: var(--c-text-muted);
    font-size: 15px;
    line-height: 1.9;
}

.feature-grid {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature {
    padding: 24px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.feature__title {
    margin: 16px 0 6px;
    font-size: 17px;
    font-weight: 800;
}

.feature__text {
    margin: 0;
    color: var(--c-text-muted);
    font-size: 14px;
    line-height: 1.85;
}

/* スマホではアイコンを左に置き、縦に長くなりすぎないようにする */
@media (max-width: 639px) {
    .feature {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 16px;
        padding: 20px;
    }

    .feature__icon {
        grid-row: span 2;
    }

    .feature__title {
        margin-top: 0;
    }
}

/* 「まとめる」の紹介 */
.spotlight {
    display: grid;
    align-items: center;
    gap: 40px;
}

@media (min-width: 960px) {
    .spotlight {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.checklist {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.checklist .icon {
    color: var(--c-primary);
}

.merge-demo {
    display: grid;
    justify-items: center;
    gap: 16px;
    max-width: 440px;
    margin: 0 auto;
    padding: 28px 20px;
    border: 1px solid var(--c-border);
    border-radius: 24px;
    background: var(--c-surface);
    box-shadow: var(--shadow);
}

.merge-demo .mock-card {
    width: 100%;
    margin: 0;
    font-size: 14px;
}

.merge-demo__inputs {
    display: grid;
    gap: 8px;
    width: 100%;
}

.merge-demo__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 8px 20px rgb(37 99 235 / 0.35);
}

.merge-demo__arrow .icon {
    transform: rotate(180deg);
}

.merge-demo__result {
    border-color: var(--c-primary-fill);
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}

@media (min-width: 560px) {
    .merge-demo {
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .merge-demo__arrow .icon {
        transform: rotate(90deg);
    }
}

/* はじめ方 */
.steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    padding: 24px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
}

.step__number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-weight: 800;
}

.step__title {
    margin: 14px 0 6px;
    font-size: 17px;
    font-weight: 800;
}

.step__text {
    margin: 0;
    color: var(--c-text-muted);
    font-size: 14px;
}

.pwa-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 0;
    color: var(--c-text-muted);
    font-size: 14px;
    text-align: left;
}

/* 最後の登録導線 */
.lp-section--cta {
    padding-top: 0;
}

.cta-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 52px 24px;
    border-radius: 28px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb 45%, #0891b2);
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 60px -28px rgb(37 99 235 / 0.6);
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 0%, rgb(255 255 255 / 0.2), transparent 40%),
        radial-gradient(circle at 100% 100%, rgb(255 255 255 / 0.14), transparent 45%);
}

.cta-card__title {
    margin: 0;
    font-size: clamp(24px, 6vw, 36px);
    font-weight: 800;
}

.cta-card__lead {
    margin: 10px 0 0;
    opacity: 0.9;
}

.cta-card .login-buttons {
    margin-top: 28px;
}

.cta-card .button--x {
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}

/* 青い背景に溶けないよう、Facebookは白地にする */
.cta-card .button--facebook {
    background: #fff;
    color: #1877f2;
}

.cta-card .button--facebook:hover {
    background: #eef4ff;
}

.cta-card__note {
    margin: 22px 0 0;
    font-size: 12px;
    opacity: 0.85;
}

/* スマホ用の下部の登録導線 */
.sticky-cta {
    position: fixed;
    right: 12px;
    bottom: calc(12px + var(--safe-bottom));
    left: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 18px;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--c-surface) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.3s var(--ease-out), opacity 0.3s, visibility 0s 0.3s;
}

.sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s, visibility 0s;
}

.sticky-cta__text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

@media (min-width: 720px) {
    .sticky-cta {
        display: none;
    }
}

.circle-button {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
}

.circle-button--x {
    background: #0f1419;
}

.circle-button--facebook {
    background: #1877f2;
}

/* フッター */
.lp-footer {
    padding: 40px 0 calc(40px + var(--safe-bottom));
    border-top: 1px solid var(--c-border);
}

/* 下部の登録導線に隠れないよう余白を取る */
@media (max-width: 719px) {
    .lp-body:has(.sticky-cta) .lp-footer {
        padding-bottom: calc(104px + var(--safe-bottom));
    }
}

.lp-footer__inner {
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
}

.lp-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 13px;
}

.lp-footer__links a {
    color: var(--c-text-muted);
}

.lp-footer__copy {
    margin: 0;
    color: var(--c-text-subtle);
    font-size: 12px;
}

@media (min-width: 720px) {
    .lp-footer__inner {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        text-align: left;
    }
}

/* 規約などの文書ページ */
.doc {
    padding: 40px 0 80px;
}

.doc__inner {
    max-width: 800px;
}

.doc__title {
    margin: 0 0 24px;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 800;
    line-height: 1.4;
}

.doc__body {
    padding: 28px 24px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.doc__body > :first-child {
    margin-top: 0;
}

.doc__body > :last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------
   動きを減らす設定のとき
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after,
    ::backdrop {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}
