:root {
--primary-color: #0056b3;
--bg-color: #f4f7f9;
--panel-bg: #ffffff;
--input-bg: #ffffff;
--tool-bg: #eef2f5;
--text-color: #333333;
--text-muted: #666666;
--border-color: #dddddd;
--error-color: #dc3545;
--success-color: #28a745;
--hover-bg: #f0f0f0;
--shadow: 0 2px 8px rgba(0,0,0,0.08);
--header-height: 60px;
}
[data-theme="dark"] {
--primary-color: #4da3ff;
--bg-color: #121212;
--panel-bg: #1e1e1e;
--input-bg: #2d2d2d;
--tool-bg: #252525;
--text-color: #e0e0e0;
--text-muted: #a0a0a0;
--border-color: #444444;
--error-color: #ff6b6b;
--success-color: #4cd964;
--hover-bg: #333333;
--shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body {
font-family: "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color);
margin: 0; padding: 0;
transition: background-color 0.3s, color 0.3s;
}
a { text-decoration: none; color: var(--primary-color); }
a:hover { text-decoration: underline; }
header {
background-color: var(--panel-bg);
border-bottom: 1px solid var(--border-color);
height: var(--header-height);
position: sticky; top: 0; z-index: 100;
box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.nav-container {
max-width: 1000px; margin: 0 auto; padding: 0 20px;
height: 100%; display: flex; justify-content: space-between; align-items: center;
position: relative;
}
.logo { font-size: 20px; margin: 0; font-weight: bold; color: var(--text-color); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; margin-right: 20px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary-color); text-decoration: none; }
.nav-links a.current { color: var(--primary-color); font-weight: bold; position: relative; }
.nav-links a.current::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 2px; background-color: var(--primary-color); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
#theme-toggle { background: none; border: 1px solid var(--border-color); border-radius: 20px; width: 40px; height: 32px; padding: 0; cursor: pointer; color: var(--text-color); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
#theme-toggle:hover { background-color: var(--hover-bg); }
.hamburger { display: none; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 101; color: var(--text-color); }
.container {
max-width: 800px; margin: 40px auto; background: var(--panel-bg);
padding: 40px; border-radius: 8px; box-shadow: var(--shadow);
border: 1px solid var(--border-color);
}
.section-title { margin: 0 0 15px 0; font-size: 20px; border-left: 5px solid var(--primary-color); padding-left: 10px; color: var(--text-color); font-weight: bold; line-height: 1.2; scroll-margin-top: 80px; }
.clear-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--panel-bg); border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px 18px; font-size: 13px; font-weight: bold; border-radius: 6px; cursor: pointer; transition: all 0.2s; white-space: nowrap; min-height: 42px; }
.clear-btn:hover { background: rgba(220, 53, 69, 0.08); border-color: var(--error-color); color: var(--error-color); }
.secondary-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--panel-bg); border: 1px solid var(--border-color); color: var(--text-color); padding: 10px 14px; font-size: 13px; font-weight: bold; border-radius: 6px; cursor: pointer; transition: all 0.2s; white-space: nowrap; min-height: 42px; }
.secondary-btn:hover { background: var(--hover-bg); border-color: var(--primary-color); color: var(--primary-color); }
.usage-list { padding-left: 20px; color: var(--text-color); margin-bottom: 30px; }
.usage-list li { margin-bottom: 8px; line-height: 1.6; }
.tool-container { background-color: var(--tool-bg); padding: 24px; border-radius: 10px; border: 1px solid var(--border-color); margin-bottom: 14px; }
.input-group { margin-bottom: 18px; }
.input-group:last-of-type { margin-bottom: 0; }
.input-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.input-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; position: relative; }
.input-box-container { flex-grow: 1; display: flex; flex-direction: column; position: relative; }
textarea {
width: 100%; padding: 13px 14px; font-size: 16px; border: 1px solid var(--border-color); border-radius: 6px;
background-color: var(--input-bg); color: var(--text-color); transition: border-color 0.2s; box-sizing: border-box;
font-family: "Menlo", "Consolas", "Monaco", "Courier New", monospace; min-height: 80px; resize: vertical; line-height: 1.5;
}
textarea:focus { border-color: var(--primary-color); outline: none; }
textarea.is-invalid { border-color: var(--error-color); background-color: rgba(220, 53, 69, 0.05); }
.error-msg { color: var(--error-color); font-size: 12px; margin-top: 6px; font-weight: bold; display: none; line-height: 1.5; }
.copy-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 42px; padding: 0 16px; background-color: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: bold; color: var(--text-color); transition: all 0.2s; min-width: 76px; white-space: nowrap; }
.copy-btn:hover:not(:disabled) { background-color: var(--hover-bg); border-color: var(--primary-color); color: var(--primary-color); }
.copy-btn.copied { background-color: var(--success-color); color: #fff; border-color: var(--success-color); }
.copy-btn.copied:hover:not(:disabled) { background-color: var(--success-color); color: #fff; border-color: var(--success-color); }
.copy-btn:disabled { opacity: 0.5; cursor: not-allowed; background-color: var(--panel-bg) !important; color: var(--text-muted) !important; border-color: var(--border-color) !important; }
.tool-footer { display: flex; justify-content: flex-end; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-color); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-btn { border: 1px solid var(--border-color); background: var(--panel-bg); color: var(--text-color); border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: bold; cursor: pointer; transition: all 0.2s; }
.chip-btn:hover { border-color: var(--primary-color); color: var(--primary-color); background: var(--hover-bg); }
.copy-toast { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: #fff; padding: 6px 10px; border-radius: 4px; font-size: 11px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s; z-index: 100; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.copy-toast::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -4px; border-width: 4px; border-style: solid; border-color: rgba(0,0,0,0.8) transparent transparent transparent; }
[data-theme="dark"] .copy-toast { background: var(--primary-color); color: #fff; }
[data-theme="dark"] .copy-toast::after { border-color: var(--primary-color) transparent transparent transparent; }
.advanced-settings { margin-top: 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--panel-bg); overflow: hidden; scroll-margin-top: 80px; }
.advanced-settings > summary { padding: 16px 18px; display: flex; justify-content: space-between; gap: 15px; align-items: center; background: var(--panel-bg); cursor: pointer; list-style: none; }
.advanced-settings > summary::-webkit-details-marker { display: none; }
.advanced-settings > summary::after { content: "開く ＋"; color: var(--primary-color); font-size: 12px; white-space: nowrap; }
.advanced-settings[open] > summary::after { content: "閉じる −"; }
.advanced-summary-title { display: block; font-size: 15px; font-weight: bold; color: var(--text-color); }
.advanced-summary-desc { display: block; margin-top: 2px; color: var(--text-muted); font-size: 12px; font-weight: normal; }
.advanced-body { padding: 0 20px 22px; border-top: 1px solid var(--border-color); }
.settings-panel { padding: 22px 0; border-bottom: 1px solid var(--border-color); }
.settings-panel:last-of-type { border-bottom: 0; }
.settings-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.settings-header h3 { margin: 0; font-size: 16px; color: var(--text-color); }
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.setting-item { display: flex; flex-direction: column; gap: 8px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.setting-label { font-weight: bold; color: var(--text-color); font-size: 14px; min-width: 100px; }
.setting-desc { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.4; background-color: var(--bg-color); padding: 8px 12px; border-radius: 4px; }
select { padding: 8px 12px; min-width: 180px; border-radius: 4px; border: 1px solid var(--border-color); background-color: var(--input-bg); color: var(--text-color); font-size: 14px; cursor: pointer; }
.analysis-panel { margin-top: 20px; background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.analysis-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--border-color); background: var(--tool-bg); }
.analysis-header h2 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--text-color); }
.analysis-status { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.analysis-body { padding: 18px 20px 20px; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.analysis-card { border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; background: var(--input-bg); min-width: 0; }
.analysis-card.full { grid-column: 1 / -1; }
.analysis-label { display: block; color: var(--text-muted); font-size: 12px; font-weight: bold; margin-bottom: 5px; }
.analysis-value { display: block; color: var(--text-color); font-family: "Menlo", "Consolas", "Monaco", "Courier New", monospace; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.bit-row { display: grid; grid-template-columns: 80px minmax(90px, auto) 1fr; gap: 8px; align-items: stretch; margin-top: 10px; font-family: "Menlo", "Consolas", "Monaco", "Courier New", monospace; font-size: 12px; }
.bit-cell { border: 1px solid var(--border-color); border-radius: 6px; padding: 9px; background: var(--input-bg); overflow-wrap: anywhere; }
.bit-cell strong { display: block; font-family: "Helvetica Neue", Arial, sans-serif; color: var(--text-muted); font-size: 11px; margin-bottom: 4px; }
.special-note { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.table-wrap { overflow-x: auto; margin: 18px 0 28px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--input-bg); }
.lookup-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.lookup-table th, .lookup-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: middle; }
.lookup-table th { background: var(--tool-bg); color: var(--text-color); font-weight: bold; white-space: nowrap; }
.lookup-table tr:last-child td { border-bottom: 0; }
.lookup-table code { font-family: "Menlo", "Consolas", "Monaco", "Courier New", monospace; font-size: 12px; color: var(--text-color); white-space: nowrap; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 30px; }
.info-box { border: 1px solid var(--border-color); border-radius: 8px; padding: 14px; background: var(--input-bg); }
.info-box h3 { margin: 0 0 8px; font-size: 15px; color: var(--text-color); }
.info-box p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.faq-section { margin-top: 50px; }
.faq-title { margin-top: 54px; }
details.faq-item { border: 1px solid var(--border-color); border-radius: 6px; background: var(--input-bg); margin-bottom: 10px; overflow: hidden; }
details.faq-item summary { padding: 15px; cursor: pointer; font-weight: bold; color: var(--text-color); outline: none; transition: background-color 0.2s; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 18px; color: var(--primary-color); font-weight: normal; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item summary:hover { background-color: var(--hover-bg); }
.faq-answer { padding: 15px; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border-color); background-color: var(--bg-color); line-height: 1.6; }
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--primary-color); color: #fff; border: none; border-radius: 50%; font-size: 24px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.3s ease; z-index: 1000; display: flex; align-items: center; justify-content: center; }
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-5px); filter: brightness(1.1); }
.share-section { text-align: center; margin: 60px 0 20px; padding: 0 20px; }
.share-section h3 { font-size: 16px; margin-bottom: 20px; color: var(--text-muted); font-weight: bold; }
.share-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 0; border-radius: 4px; color: #fff; font-weight: bold; text-decoration: none; transition: opacity 0.2s, transform 0.2s; font-size: 14px; width: 100px; }
.share-btn:hover { opacity: 0.9; text-decoration: none; color: #fff; transform: translateY(-2px); }
.btn-x { background-color: #000; }
.btn-fb { background-color: #1877f2; }
.btn-line { background-color: #06c755; }
.btn-hatena { background-color: #00a4de; }
footer { background-color: var(--tool-bg); border-top: 1px solid var(--border-color); padding: 40px 0 20px; margin-top: 60px; font-size: 14px; }
.footer-content { max-width: 1000px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 20px; font-size: 12px; } .footer-links a { color: var(--text-muted); }
.copyright { text-align: center; margin-top: 30px; color: var(--text-muted); font-size: 12px; }
@media (min-width: 600px) {
.setting-item { display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 20px; }
.setting-row { flex-direction: column; align-items: flex-start; width: 100%; }
select { width: 100%; }
.setting-desc { margin-top: 0; }
}
@media (max-width: 600px) {
.container { padding: 20px; margin: 20px auto; }
.logo { font-size: 18px; }
.nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background-color: var(--panel-bg); flex-direction: column; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); box-shadow: 0 10px 20px rgba(0,0,0,0.1); gap: 15px; margin: 0; }
.nav-links.active { display: flex; animation: slideDown 0.3s ease; }
.nav-links a { display: block; width: 100%; text-align: center; padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--tool-bg); }
.nav-links a:last-of-type { border-bottom: none; }
.nav-links a.current::after { display: none; }
.nav-links a.current { background-color: var(--tool-bg); border-radius: 4px; }
.hamburger { display: flex; align-items: center; justify-content: center; }
.tool-container { padding: 18px; border-radius: 8px; }
.input-wrapper { grid-template-columns: 1fr; gap: 8px; }
.copy-btn { width: 100%; height: 40px; }
.tool-footer { justify-content: stretch; margin-top: 18px; padding-top: 16px; }
.clear-btn { width: 100%; }
.secondary-btn { width: 100%; white-space: normal; }
.footer-content { flex-direction: column; text-align: center; } .footer-links { justify-content: center; }
.advanced-settings > summary { align-items: flex-start; }
.advanced-body { padding: 0 16px 18px; }
#back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 20px; }
.share-btn { width: 45%; }
.analysis-header { flex-direction: column; padding: 16px; }
.analysis-body { padding: 16px; }
.analysis-grid { grid-template-columns: 1fr; }
.bit-row { grid-template-columns: 1fr; }
.info-grid { grid-template-columns: 1fr; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
