/* 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; } }
