/*
Theme Name: imDOR Classic
Description: 旧imDORの画像とレイアウトを引き継ぐ、PHP 8対応テーマ。
Version: 1.0.0
Requires PHP: 7.4
Text Domain: imdor-classic
*/
/* Desktop dimensions follow the original 960px grid. */
body { background: #fff; }
#wrapper:after { content: ''; display: block; clear: both; }
#contents { min-height: 100px; }
#header h1 img, #contents img { vertical-align:bottom; }
#navi a { display: block; }
#navi img { display: block; }
#navi a:hover img, #navi a:focus-visible img { opacity: .9; }
.imdor-link-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.imdor-link-grid .linkbox { height:auto; min-height:140px; }
.imdor-link-grid img { max-width:100%; height:auto; }
.imdor-report-grid { display:grid; grid-template-columns:460px 280px; gap:20px; }
.imdor-report-grid img { max-width:100%; height:auto; }
.imdor-form input[type=text], .imdor-form input[type=email] { max-width:100%; box-sizing:border-box; }
.imdor-form textarea { width:100%; min-height:300px; box-sizing:border-box; }
.imdor-local-note { margin-top:12px; color:#555; }
@media (max-width: 959px) {
 .container_16 { width:100%; }
 .container_16 .grid_16 { width:calc(100% - 20px); }
 #contents img, #header h1 img { max-width:100%; height:auto; }
 #navi { display:flex; height:auto; flex-wrap:wrap; }
 #navi li { float:none; width:33.333%; }
 #navi img { width:100%; height:auto; }
 .imdor-link-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .reportpad { padding:0 15px; }
 .imdor-report-grid { grid-template-columns:minmax(0,1fr) minmax(0,.65fr); }
 .container_16 .grid_12, .container_16 .grid_14 { width:auto; float:none; display:block; margin:0; }
 .entry img { max-width:100%; }
 #contents iframe { max-width:100%; }
 .table_type3_sp th { width:25%; }
}
@media (max-width: 540px) {
 .imdor-link-grid, .imdor-report-grid { grid-template-columns:1fr; }
 #contents [class*="grid_"] { width:auto; max-width:100%; float:none; display:block; margin:0; }
 #contents table { max-width:100%; }
 .btwidth { width:65px; }
 .reportpad { padding:0 4px; }
 .table_type3_sp th, .table_type3_sp td { padding:6px; }
 .imdor-form input[type=text], .imdor-form input[type=email] { width:100%; }
}
