/* 記事ページ(/record/…)とガイド(/guide/…)の共通の見た目。2026-11-15 に record/[slug].astro から外へ出した */ .rec { width: 620px; max-width: calc(100% - 48px); margin: 0 auto; padding: 104px 0 64px; } .rec .hero { aspect-ratio: 16 / 9; position: relative; border-radius: 4px; overflow: hidden; background: #0d0d0d; } .rec .hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; } .rec .hero-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; display: block; } .rec .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 16px; font: 400 13px/20px var(--sans); color: var(--ink-3); } .rec .crumbs a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; } .rec .crumbs a:hover { color: var(--ink); } .rec a.tag:hover { background: #e4e4e4; color: var(--ink-2); } .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 64px 0 0; padding-top: 32px; border-top: 1px solid #ddd; } .pg { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 8px; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08); } .pg:hover .pg-t { text-decoration: underline; } .pg-next .pg-k { text-align: right; } .pg-k { font: 400 12px/18px var(--sans); color: var(--ink-3); } .pg-t { font: 600 14px/1.6 var(--sans); color: var(--ink); overflow-wrap: anywhere; } .rel-more { display: flex; justify-content: center; margin-top: 40px; } .rel-more .btn-dark { height: auto; min-height: 40px; padding: 8px 20px; white-space: normal; text-align: center; } @media (max-width: 599px) { .pager { grid-template-columns: 1fr; } .pg-next .pg-k { text-align: left; } } .consult { margin: 56px 0 0; padding: 24px; border-radius: 8px; background: #f0f0f0; } .consult p { margin: 0 0 16px; font: 400 16px/28px var(--sans); color: var(--ink); } .consult .btn-dark { height: auto; min-height: 40px; padding: 8px 20px; white-space: normal; } .rec .meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; } .rec .day { font: 400 28px/28px var(--sans); } .rec .title { margin: 12px 0 40px; font: 600 28px/42px var(--sans); overflow-wrap: anywhere; } .rec .title:has(+ .now-bar), .rec .title:has(+ .files-jump) { margin-bottom: 24px; } .now-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; margin: 0 0 24px; padding: 12px 16px; border-radius: 4px; background: var(--ink); color: #fff; text-decoration: none; } .now-bar .nb-k { grid-column: 1; font: 400 13px/20px var(--sans); color: rgba(255,255,255,.72); } .now-bar .nb-t { grid-column: 1; font: 600 15px/24px var(--sans); overflow-wrap: anywhere; } .now-bar .ms { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; transition: transform .2s ease; } .now-bar:hover .ms { transform: translateX(3px); } .files-jump { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; padding: 12px 16px; border-radius: 4px; background: #f0f0f0; color: var(--ink); font: 600 14px/22px var(--sans); text-decoration: none; } .files-jump .ms { font-size: 20px; flex: none; } .files-jump:hover { background: #e6e6e6; } #files { scroll-margin-top: 88px; } /* AIで読む(2026-11-01)。形は「この記事の素材」と同じ灰色の帯。押すと AI の一覧が開く */ .rec .title:has(+ .ai-read) { margin-bottom: 24px; } .ai-read { margin: 0 0 32px; border-radius: 4px; background: #f0f0f0; color: var(--ink); } .ai-read summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: 4px; } .ai-read summary::-webkit-details-marker { display: none; } .ai-read summary:hover { background: #e6e6e6; } .ai-read .ar-t { grid-column: 1; font: 600 14px/22px var(--sans); } .ai-read .ar-s { grid-column: 1; font: 400 13px/20px var(--sans); color: var(--ink-2); } .ai-read summary .ms { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; transition: transform .2s ease; } .ai-read[open] summary .ms { transform: rotate(180deg); } .ai-read .ar-list { list-style: none; margin: 0; padding: 4px 8px 8px; display: grid; gap: 4px; } .ai-read .ar-list a, .ai-read .ar-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-radius: 4px; background: #fff; color: var(--ink); font: 600 14px/22px var(--sans); text-align: left; text-decoration: none; cursor: pointer; } .ai-read .ar-list a:hover, .ai-read .ar-list button:hover { background: var(--ink); color: #fff; } .ai-read .ar-list .ms { font-size: 18px; flex: none; margin-left: auto; } .ai-read .ar-n { font: 400 12px/18px var(--sans); color: inherit; opacity: .7; } .ai-read .ar-last a::before { content: "前回"; flex: none; padding: 0 6px; border: 1px solid currentColor; border-radius: 4px; font: 400 11px/18px var(--sans); } html[lang="en"] .ai-read .ar-last a::before { content: "Last used"; } .ai-read .ar-msg { margin: 0; padding: 0 16px; font: 400 13px/20px var(--sans); color: var(--ink-2); } .ai-read .ar-msg:not(:empty) { padding-bottom: 12px; } .ai-read .ar-prompt { display: block; width: calc(100% - 32px); margin: 0 16px 12px; min-height: 120px; font: 400 13px/20px var(--sans); } .ai-read .ar-prompt[hidden] { display: none; } .richText { color: var(--ink); font-family: var(--sans); } .richText p { font-size: 18px; line-height: 36px; margin: 8px 0 12px; overflow-wrap: anywhere; } .richText h2 { font-size: 24px; line-height: 36px; font-weight: 600; margin: 40px 0 16px; } .richText h3 { font-size: 20px; line-height: 30px; font-weight: 600; margin: 36px 0 16px; padding-left: 12px; border-left: 2px solid var(--ink); } .richText h4 { font-size: 18px; line-height: 30px; font-weight: 600; margin: 24px 0 8px; } .richText h5 { font-size: 14px; line-height: 1.8; font-weight: 400; color: #555; margin: 48px 0 0; } .richText hr { border: 0; border-top: 1px solid #ddd; margin: 10px 0; } .richText strong { font-weight: 600; } .richText a { color: inherit; text-decoration: underline; } .richText pre { background: #eee; border-radius: 4px; padding: 25px 35px; margin: 4px 0; overflow-x: auto; font: 400 16px/24px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; } .richText pre code { font: inherit; } .richText :not(pre) > code { background: #eee; padding: 0 5px; margin: 2px; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; font: 400 18px/36px var(--sans); overflow-wrap: anywhere; } .richText blockquote { margin: 10px 0; padding: 10px 15px; border-left: 3px solid rgba(0,0,0,.15); color: #333; } .richText blockquote p { font: 400 16px/28.8px 'Noto Sans JP', sans-serif; margin: 10px 0; } .richText figure { margin: 16px 0; } .richText figure img { width: 100%; height: auto; } .richText figcaption:empty { display: none; } .richText ul, .richText ol { padding-left: 1.5em; } .richText li { font-size: 18px; line-height: 36px; margin: 10px 0; } /* 表は本文の幅に押し込まず、はみ出す分は横にスクロールする(縦に1文字ずつ折り返して読めなくなっていた。LOG355) */ .richText .table { margin: 10px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; } .richText table { border-collapse: collapse; width: auto; min-width: 100%; font-size: 14px; } /* 表は見出しの行を少し濃く、線をはっきり、本文の行は白に(ページの地色と見分けられるように) */ .richText th, .richText td { border: 1px solid #d2d2d2; vertical-align: top; text-align: left; } .richText th { background: #e9e9e9; padding: 24px; font: 600 16px/24px var(--sans); } .richText td { background: #fff; padding: 16px; font: 400 18px/27px var(--sans); } .richText th p, .richText td p { margin: 0; font: inherit; } .richText .embed { margin: 16px 0; } .richText .embed iframe { display: block; width: 100%; height: 150px; border: 0; } .richText .video { margin: 16px 0; } .richText .video video { display: block; width: 100%; height: auto; } .richText .yt { aspect-ratio: 16 / 9; margin: 16px 0; } /* 長いコード・ログの枠(LOG364 から。tools/split_files.py) */ /* 記事の中のバナー(【バナー】gpu-buy-or-rent。src/lib/remark-markers.mjs)。色と背景の写真はトップのカード(GuideCards)と同じ、大きさは記事用に小さく */ .richText a.art-bn { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; margin: 20px 0 28px; padding: 18px 20px; border-radius: 8px; box-shadow: 0 8px 16px rgba(0,0,0,.08); background: #0b0c0e; color: #fff; text-decoration: none; overflow-wrap: normal; word-break: normal; } .richText a.art-bn::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(/site/gbr/reverse.webp) right center / cover no-repeat; transition: transform .6s ease; } .richText a.art-bn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,12,14,.95) 0%, rgba(11,12,14,.86) 55%, rgba(11,12,14,.55) 100%); } .richText a.art-bn:hover::before { transform: scale(1.03); } .richText .art-bn .ab-figs { display: grid; gap: 2px; font-family: 'Manrope', 'Inter', 'Noto Sans JP', sans-serif; font-variant-numeric: tabular-nums; line-height: 1.1; text-align: right; } .richText .art-bn .ab-buy { font-size: 13px; font-weight: 800; color: #8d939d; text-decoration: line-through; text-decoration-thickness: 2px; } .richText .art-bn .ab-rent { font-size: 22px; font-weight: 800; color: #f2600c; letter-spacing: -.01em; } .richText .art-bn .ab-text { display: grid; gap: 2px; min-width: 0; word-break: auto-phrase; } .richText .art-bn .ab-label { font: 700 11px/16px var(--sans); color: #b9bec7; letter-spacing: .08em; } .richText .art-bn .ab-title { font: 900 15px/1.5 var(--sans); color: #fff; } .richText .art-bn .ab-sub { font: 400 12px/1.6 var(--sans); color: #c8ccd4; } .richText .art-bn .ab-go { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: #f2600c; color: #fff; font-size: 18px; transition: background .15s, color .15s; } .richText a.art-bn:hover .ab-go { background: #fff; color: #121418; } /* 配膳ロボットの導入前シミュレーション:トップのカードと同じ明るい面と店の立体の絵(左に小さく) */ .richText a.art-bn-light { background: #eceef1; color: #121418; box-shadow: 0 8px 16px rgba(0,0,0,.08); } .richText a.art-bn-light::before, .richText a.art-bn-light::after { content: none; } .richText .art-bn-light .ab-img { display: block; width: 112px; overflow: hidden; } .richText .art-bn-light .ab-img img { display: block; width: 100%; height: auto; transition: transform .6s ease; } .richText a.art-bn-light:hover .ab-img img { transform: scale(1.04); } .richText .art-bn-light .ab-label { color: #5c616b; } .richText .art-bn-light .ab-title { color: #121418; } .richText .art-bn-light .ab-sub { color: #4a4f58; } .richText a.art-bn-light:hover .ab-go { background: #121418; color: #fff; } @media (max-width: 479px) { .richText a.art-bn { grid-template-columns: minmax(0, 1fr) auto; } .richText a.art-bn::after { background: rgba(11,12,14,.84); } .richText .art-bn .ab-figs { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; text-align: left; } .richText .art-bn-light .ab-img { grid-column: 1 / -1; width: 140px; } } .richText .filebox { margin: 8px 0 16px; border: 1px solid #d2d2d2; border-radius: 4px; background: #fff; } .richText .fb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid #e4e4e4; } .richText .fb-name { font: 600 14px/20px var(--mono); overflow-wrap: anywhere; text-decoration: none; border-bottom: 1px solid currentColor; } .richText .fb-meta { font: 400 13px/20px var(--sans); color: #666; } .richText .filebox .fb-pre { margin: 0; border-radius: 0; padding: 12px 16px; font-size: 13px; line-height: 20px; max-height: 180px; overflow: hidden; position: relative; } .richText .filebox.fb-full .fb-pre { max-height: 70vh; overflow: auto; } .richText .filebox.fb-full.fb-closed .fb-pre { max-height: 180px; overflow: hidden; } .richText .fb-act { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 16px; border-top: 1px solid #e4e4e4; font: 400 14px/20px var(--sans); } .richText .fb-open { font: 600 14px/20px var(--sans); padding: 6px 12px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; cursor: pointer; } .richText .fb-open:disabled { opacity: .6; cursor: default; } .richText .fb-all { padding: 8px 16px; background: #f6f6f6; } .richText .fb-all p { font-size: 16px; line-height: 28px; margin: 8px 0; } .richText .fb-all li { font-size: 16px; line-height: 28px; margin: 4px 0; } .richText .fb-all .fb-lh { font: 600 16px/28px var(--sans); margin: 16px 0 4px; } .richText .fb-list .fb-li { font-size: 14px; line-height: 22px; margin: 2px 0; overflow-wrap: anywhere; } .richText .yt iframe { width: 100%; height: 100%; border: 0; } .toc { background: #f0f0f0; border-radius: 4px; padding: 20px 20px 8px 8px; margin: 0 0 24px; } .toc ul { list-style: none; margin: 0; padding: 0; } .toc li { position: relative; padding-left: 32px; margin: 0 0 16px; font: 400 16px/32px var(--sans); color: var(--ink-2); } .toc a { text-decoration: none; color: inherit; } /* 本文より広いもの(表・画像)が画面の幅を押し広げないようにする */ .richText { max-width: 100%; min-width: 0; } .richText a, .richText code, .richText li, .richText td, .richText th, .richText blockquote, .richText h2, .richText h3 { overflow-wrap: anywhere; word-break: break-word; } /* 表の中は、英数字の語(ファイル名・数値)を途中で折らない。見出しの行は日本語も途中で折らない */ .richText td, .richText td code, .richText td a, .richText th, .richText th code { overflow-wrap: normal; word-break: normal; } .richText .nw, .richText .nw * { white-space: nowrap; } .richText .cw { min-width: 9em; } .richText pre code { white-space: pre-wrap; } .richText img { max-width: 100%; height: auto; } @media (max-width: 767px) { .rec { max-width: calc(100% - 48px); padding-top: 72px; } .rec .title { font-size: 24px; line-height: 36px; } }