/* 33msec.com（ポータル・共通ページ）のスタイル。共通ヘッダー・フッターは shared/common.css */
:root {
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #cbd5e1;
  --card-border-hover: #2563eb;
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --text: #0f172a;
  --text-muted: #334155;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; padding: 16px; }
.container { max-width: 1240px; margin: 0 auto; }

/* Hero */
.hero { background: #ffffff; border: 1px solid var(--card-border); border-radius: 12px; padding: 32px 28px; margin-bottom: 32px; box-shadow: var(--shadow-sm); }
.hero-title { font-size: 1.45rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 10px; }
.hero-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; font-weight: 500; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 24px; margin-bottom: 48px; }

/* Policy & Contact Sections */
.info-section { background: #ffffff; border: 1px solid var(--card-border); border-radius: 12px; padding: 28px 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.info-title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
.info-title::before { content: ""; display: inline-block; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.info-content { font-size: 0.88rem; color: var(--text); line-height: 1.8; font-weight: 500; }
.info-content p { margin-bottom: 12px; }
.info-content strong { color: var(--text); font-weight: 700; }

/* Table for Operator Information */
.info-table { width: 100%; border-collapse: collapse; margin-top: 10px; margin-bottom: 10px; font-size: 0.88rem; }
.info-table th, .info-table td { padding: 10px 12px; border: 1px solid var(--card-border); text-align: left; }
.info-table th { background: #f8fafc; width: 25%; font-weight: 700; color: var(--text); }

/* Contact Box */
.contact-box { background: #f8fafc; border: 1px solid var(--card-border); border-radius: 8px; padding: 18px; margin-top: 12px; }
.contact-btn { display: inline-block; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: background 0.15s; margin-top: 8px; }
.contact-btn:hover { background: #1d4ed8; }

/* ポータルのツール一覧（共通カード .w33-card を大きめに） */
.cards-grid .w33-card { padding: 22px 22px 20px; }
.cards-grid .w33-card-ja { font-size: 20px; }
.cards-grid .w33-card-en { font-size: 13px; }
.cards-grid .w33-card-sum { font-size: 14px; }

/* 更新履歴 */
.changelog { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 0.86rem; }
.changelog li { display: flex; gap: 16px; align-items: baseline; border-bottom: 1px dashed #e2e8f0; padding-bottom: 10px; }
.changelog li:last-child { border-bottom: 0; padding-bottom: 0; }
.changelog time { font-weight: 800; color: var(--primary); min-width: 95px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 560px) { .changelog li { flex-direction: column; gap: 2px; } }

/* 共通ページ（運営者情報・プライバシーポリシー・利用規約・お問い合わせ） */
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; margin-bottom: 14px; color: var(--text-muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--text-muted); }
.doc h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.3px; }
.doc h2 { font-size: 1.05rem; font-weight: 800; margin: 26px 0 8px; padding-left: 10px; border-left: 4px solid var(--primary); }
.doc p, .doc li { font-size: 0.92rem; line-height: 1.85; }
.doc p { margin-bottom: 10px; }
.doc ul.plain { list-style: none; margin-bottom: 10px; }
.doc ul.plain li::before { content: "・"; }
.doc .tools-list { list-style: none; margin: 8px 0 12px; }
.doc .tools-list li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.doc .tools-list small { color: var(--text-muted); display: block; font-size: 0.82rem; }
.doc .dates { margin-top: 28px; color: var(--text-muted); font-size: 0.85rem; }
.doc .todo { background: #fef9c3; }
.form-wrap { border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden; margin: 12px 0 8px; background: #fff; }
.form-wrap iframe { display: block; width: 100%; height: 1100px; border: 0; }
@media (max-width: 640px) { .form-wrap iframe { height: 1300px; } }

/* トップ: ツールと「こんなときに使えます」 */
.tool-item { display: flex; flex-direction: column; gap: 10px; }
.tool-item .w33-card { flex: 1; }
.tool-uses { background: #fff; border: 1px solid var(--card-border); border-radius: 10px; padding: 12px 16px; font-size: 0.86rem; }
.tool-uses p { font-weight: 800; margin-bottom: 4px; }
.tool-uses ul { padding-left: 1.2em; }
.tool-uses li { margin: 3px 0; line-height: 1.6; }
.more { margin-top: 12px; font-size: 0.88rem; font-weight: 700; }

/* 記事・解説の一覧 */
.article-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.article-list li { border-bottom: 1px dashed #e2e8f0; padding-bottom: 12px; }
.article-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.article-list a { font-weight: 800; font-size: 0.98rem; }
.article-list p { font-size: 0.86rem; color: var(--text-muted); margin: 4px 0 2px; line-height: 1.7; }
.article-list small { font-size: 0.78rem; color: var(--text-muted); }
.doc .article-list li::before { content: none; }

/* 記事ページ */
.article { max-width: 860px; }
.article-dates { color: var(--text-muted); font-size: 0.82rem; margin: -8px 0 20px; }
.doc h3 { font-size: 0.98rem; font-weight: 800; margin: 18px 0 6px; }
.doc ul:not(.plain):not(.tools-list):not(.article-list), .doc ol:not(.changelog) { padding-left: 1.4em; margin-bottom: 10px; }
.doc blockquote { border-left: 4px solid var(--card-border); padding: 4px 12px; color: var(--text-muted); margin: 10px 0; }
.draft-note { background: #fef9c3; border: 1px solid #facc15; border-radius: 8px; padding: 8px 12px; font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 12px 0 16px; }
.table-wrap table { border-collapse: collapse; font-size: 0.84rem; min-width: 100%; }
.table-wrap caption { text-align: left; font-weight: 700; font-size: 0.84rem; margin-bottom: 6px; }
.table-wrap th, .table-wrap td { border: 1px solid var(--card-border); padding: 6px 8px; text-align: left; white-space: nowrap; }
.table-wrap th { background: #f8fafc; }
.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; }
.chart-fig { margin: 14px 0 18px; }
.chart-fig figcaption { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.chart { width: 100%; max-width: 760px; height: auto; display: block; font-family: inherit; }
.chart .ch-bar { fill: var(--primary); }
.chart .ch-label, .chart .ch-value { font-size: 12px; fill: var(--text); }
.chart .ch-note { font-size: 11px; fill: var(--text-muted); }
.chart .ch-axis { font-size: 12px; fill: var(--text); font-weight: 700; }
.chart .ch-ref { stroke: #dc2626; stroke-dasharray: 4 3; }
.chart .ch-grid { stroke: #e2e8f0; }
.chart .ch-dot { fill: var(--primary); fill-opacity: 0.45; }
.chart .ch-fit { stroke: #dc2626; stroke-width: 1.5; }
.sources { font-size: 0.86rem; }
.author-box { background: #f8fafc; border: 1px solid var(--card-border); border-radius: 10px; padding: 16px 18px; margin: 28px 0 8px; }
.author-box p { font-size: 0.88rem; margin-bottom: 6px; }
.author-h { font-weight: 800; font-size: 0.8rem !important; color: var(--text-muted); }
.author-name { font-weight: 800; }
.cards-grid.small { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; margin-bottom: 20px; }
.doc img { display: block; max-width: 100%; height: auto; border: 1px solid var(--card-border); border-radius: 6px; margin: 8px 0 4px; background: #fff; }
.doc .img-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.doc .img-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0; }
