* { box-sizing: border-box; }
body {
  margin: 0;
  color: #333;
  background: #fff;
  font: 16px/1.7 "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
a { color: #2098a8; overflow-wrap: anywhere; }
a:hover { color: #c03; }
.site-shell { width: 1070px; max-width: calc(100% - 24px); margin: auto; }
.site-header { min-height: 100px; padding: 16px 30px 5px; }
.site-title { color: #222; font-size: 30px; line-height: 1.2; text-decoration: none; }
.brand-copy { margin: 8px 0; color: #777; font-size: 15px; }
.global-nav { display: flex; flex-wrap: wrap; border: 1px solid #ddd; background: #f7f7f7; border-radius: 3px; }
.global-nav a { color: #111; font-size: 14px; line-height: 1.5; padding: .3em .7em; text-decoration: none; }
.global-nav a:hover, .global-nav a[aria-current="page"] { background: #ddd; }
.content-grid { display: grid; grid-template-columns: minmax(0, 740px) minmax(0, 300px); gap: 30px; margin: 15px 0 30px; align-items: start; }
.main-panel { min-width: 0; padding: 20px 29px; border: 1px solid #ddd; border-radius: 4px; background: #fff; }
.hero-panel h1 { font-size: 30px; line-height: 1.17; margin: 30px 0 20px; }
.breadcrumb { font-size: 13px; margin: 0; }
.home-tool h2 { border-left: 1px solid #000; font-size: 26px; line-height: 1.3; margin: 40px -29px 20px; padding: 25px 30px; }
.home-tool > p { padding-left: 30px; }
.home-tool-link { text-align: right; }
.sidebar { min-width: 0; }
.sidebar-title { font-size: 20px; margin: 0 0 10px; }
.tool-nav { margin: 0 0 30px; padding-left: 20px; }
.tool-nav li { margin: 5px 0; }
.site-footer { background: #555; color: #fff; text-align: right; padding: 12px max(15px, calc((100% - 1070px)/2)); }
.site-footer a { color: #fff; }
.stack-section { margin-top: 20px; }
.stack-section h3 { font-size: 23px; border-bottom: 5px solid #e7e7e7; margin: 20px 0; padding: 10px 0; }
.two-column { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.panel, .info-box { min-width: 0; }
.tool-form { display: grid; gap: 12px; }
.tool-form label { display: grid; gap: 4px; min-width: 0; }
.tool-form input:not([type]), .tool-form input[type="text"], .tool-form input[type="url"], .tool-form input[type="password"], .tool-form input[type="datetime-local"], .tool-form textarea, .tool-form select { width: 100%; min-width: 0; padding: 6px; border: 1px solid #aaa; border-radius: 3px; font: inherit; background: #fff; }
.tool-form textarea { min-height: 120px; resize: vertical; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
button { justify-self: start; font: inherit; color: #333; background: #f5f5f5; border: 1px solid #aaa; border-radius: 4px; padding: 3px 12px; cursor: pointer; }
button:hover { background: #e7e7e7; }
.info-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.info-table th, .info-table td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.info-table th { width: 30%; background: #f7f7f7; }
.mono, #tool-result pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: monospace; }
.ad-slot { width: 100%; text-align: center; margin: 20px 0; overflow-wrap: anywhere; }
.ad-slot img, .ad-slot iframe, .ad-slot ins { max-width: 100%; }
.ad-slot-placeholder { min-height: 90px; border: 1px dashed #ccc; color: #777; display: grid; place-content: center; gap: 4px; }
.ad-slot-sidebar.ad-slot-placeholder { min-height: 250px; }
.ad-slot-live { overflow: hidden; }
@media (max-width: 1110px) {
  .site-shell { width: 740px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 15px; }
}
@media (max-width: 639px) {
  .site-shell { max-width: 100%; }
  .site-header { padding: 12px; min-height: 0; }
  .site-title { font-size: 22px; }
  .main-panel { padding: 15px; }
  .home-tool h2 { margin-left: -15px; margin-right: -15px; padding: 15px; font-size: 22px; }
  .home-tool > p { padding-left: 0; }
  .hero-panel h1 { font-size: 25px; }
}
.menu-toggle { display: none; }
@media (max-width: 1110px) {
  .menu-toggle:not([hidden]) { display: block; margin: 0 12px 10px; }
  .global-nav.collapsible:not(.expanded) { display: none; }
  .global-nav { flex-direction: column; }
}


.hash-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hash-form label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.hash-form input[type="text"] { width: 300px; max-width: 100%; }
.hash-result-item { margin: 10px; padding-bottom: 30px; }
.hash-result-title { font-weight: bold; }
.hash-result-title button { font: 13px sans-serif; padding: 1px 5px; background: #fff; }
.hash-result-title button:disabled { color: #777; cursor: default; }
.hash-result-value { padding-left: 20px; min-height: 1.7em; }
.breadcrumb a { color: #777; text-decoration: none; }
.sidebar .ad-slot-live img { height: auto; }
@media (max-width: 639px) {
  .hash-form label { display: grid; width: 100%; }
}

.sidebar-search { display: flex; margin: 25px 0 35px; border: 1px solid #bbb; border-radius: 4px; }
.sidebar-search input { flex: 1; width: 100%; min-width: 0; padding: 4px 10px; font: inherit; border: 0; border-radius: 4px; }
.sidebar-search button { border: 0; padding: 2px 10px; font-size: 14px; background: #fff; }

.page-dates { background: #f5f5f5; color: #555; text-align: right; padding: 0 10px; margin: 0 0 10px; }
.page-dates time + time { margin-left: 12px; }
@media (max-width: 639px) {
  .site-header { padding: 12px 10px; }
  .site-title { font-size: 20px; }
  .brand-copy { font-size: 14px; }
  .main-panel { border: 0; padding: 10px; }
  .hero-panel h1 { font-size: 20px; }
  .home-tool h2 { font-size: 20px; margin-left: 0; margin-right: 0; padding: 15px 30px; }
  .home-tool > p { padding-left: 30px; }
  .page-dates { text-align: left; padding: 0; }
}

#mermaid-preview { max-width: 100%; height: auto; }
