@charset "utf-8";

/* ===================================================
   畠山自動車 - Modernized CSS
   メインカラー: #f68020 (オレンジ)
=================================================== */

:root {
  --orange: #f68020;
  --orange-dark: #d96b10;
  --orange-light: #fde8cc;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --bg-light: #f8f8f8;
  --white: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.14);
  --radius: 8px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

body {
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  font-size: 15px;
  line-height: 1.85;
  background: #f0f0f0;
  border-top: 4px solid var(--orange);
}
h1,h2,h3,h4,h5,p,ul,ol,li,dl,dt,dd,form,figure { margin:0; padding:0; }
ul { list-style-type:none; }
img { border:none; max-width:100%; height:auto; }
input,textarea,select { font-size:1em; }
form { margin:0; }
table { border-collapse:collapse; font-size:100%; border-spacing:0; }

a { color:var(--text-light); transition:color var(--transition); }
a:hover { color:var(--orange); text-decoration:none; }

/* ヘッダー */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
header .inner {
  width: 997px;
  height: 80px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .inner h1 { padding:0; }
header .inner h1 a { display:block; }
header .inner address {
  font-style: normal;
  font-size: 13px;
  text-align: right;
  line-height: 1.5;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
header .inner address .tel {
  font-size: 22px;
  color: var(--orange);
  font-weight: bold;
  display: block;
  letter-spacing: 0.05em;
}

/* グランドメニュー（PC） */
nav#menubar {
  background: var(--orange);
  margin-bottom: 0;
}
nav#menubar ul {
  width: 997px;
  margin: 0 auto;
  display: flex;
}
nav#menubar ul li {
  flex: 1;
  text-align: center;
  position: relative;
}
nav#menubar ul li + li::before {
  content:"";
  position:absolute; left:0; top:10px; bottom:10px;
  width:1px; background:rgba(255,255,255,0.25);
}
nav#menubar ul li a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  line-height: 1.3;
  transition: background var(--transition);
  min-height: 52px;
}
nav#menubar ul li a:hover {
  background: rgba(0,0,0,0.15);
  color: #fff;
}
nav#menubar ul li a span {
  font-size: 9px;
  font-weight: normal;
  letter-spacing: 0.12em;
  opacity: 0.7;
  display: block;
  margin-top: 3px;
  text-transform: uppercase;
}

/* ハンバーガーボタン（PC時は非表示） */
#menubar_hdr { display:none; }

/* コンテンツ */
#contents {
  clear: left;
  width: 997px;
  margin: 20px auto 0;
}
#contents-in {
  float: right;
  width: 990px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
body.c2 #contents-in { float:none; width:100%; }

/* メインコンテンツ */
#main {
  float: right;
  width: 752px;
  padding: 24px 24px 36px;
}
body.c2 #main { width:100%; padding:24px; }

#main h2 {
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 6px 6px 0 0;
  clear: both;
  letter-spacing: 0.05em;
}
#main h2.mb15 { margin-bottom:0; }

#main h3 {
  background: var(--bg-light);
  color: var(--orange);
  font-size: 14px;
  font-weight: bold;
  padding: 8px 14px;
  border-left: 4px solid var(--orange);
  border-bottom: 1px solid var(--border);
  clear: both;
  margin: 16px 0 8px;
}
#main p {
  padding: 8px 4px 14px;
  color: var(--text-light);
  line-height: 1.9;
}
#main section { margin-bottom: 28px; }

/* サブ（左）コンテンツ */
#sub {
  float: left;
  width: 218px;
  padding: 18px 0 30px 14px;
}
#side { float:right; width:200px; padding-bottom:30px; }
body.c2 #side { display:none; }

#sub h2, #side h2 {
  font-size: 11px;
  text-align: center;
  background: #555;
  padding: 7px 0;
  color: #fff;
  border-radius: 5px 5px 0 0;
  letter-spacing: 0.12em;
  font-weight: bold;
}
#sub .box1 h2, #side .box1 h2 { border-radius:0; }
#sub .box1, #side .box1 {
  background: #fafafa;
  border: 1px solid var(--border);
  padding: 0;
  margin-bottom: 14px;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}
#sub h2 + ul, #side h2 + ul,
#sub h2 + .box1, #side h2 + .box1 { border-top:none; }
#sub .box1 > ul, #side .box1 > ul { margin-bottom:0; }

#sub ul, #side ul {
  border: 1px solid var(--border);
  border-top: none;
  margin-bottom: 14px;
}
#sub ul li a, #side ul li a {
  text-decoration: none;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 10px 10px 10px 12px;
  background: #fff;
  font-size: 13px;
  transition: background var(--transition), padding-left var(--transition);
}
#sub ul li a::before {
  content: "▶";
  font-size: 7px;
  color: var(--orange);
  margin-right: 6px;
  flex-shrink: 0;
}
#sub ul li a:hover, #side ul li a:hover {
  background: var(--orange-light);
  color: var(--orange);
  padding-left: 16px;
}

/* SUBMENU下部画像 */
.submenu-img-wrap { margin-top: 6px; }
.submenu-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* box2 物件ボックス */
#sub article.box2, #side article.box2 {
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
  transition: box-shadow var(--transition);
}
#sub article.box2:hover, #side article.box2:hover { box-shadow: var(--shadow-hover); }
#sub article.box2 a, #side article.box2 a { padding:8px; text-decoration:none; display:block; overflow:hidden; }
#sub article.box2 h4, #side article.box2 h4 { color:var(--orange); margin-left:70px; font-size:100%; padding:0; background:none; }
#sub article.box2 p, #side article.box2 p { margin-left:70px; padding:0; }
#sub article.box2 figure, #side article.box2 figure { float:left; padding:0; }
#sub article.box2 figure img, #side article.box2 figure img { border:1px solid var(--border); vertical-align:bottom; border-radius:3px; }

/* フッター */
footer {
  clear: both;
  text-align: center;
  padding: 20px;
  color: #fff;
  background: var(--orange);
  margin-top: 16px;
}
footer .pr { display:block; font-size:80%; opacity:0.8; }
footer a { text-decoration:none; color:#fff; }
footer a:hover { color:#fff; }

/* スライドショー */
#mainimg { background-color:#584d44; }
#mainimg aside { width:997px; height:295px; position:relative; margin:0 auto; }
#mainimg .slide_file { display:none; }
#slide_image { z-index:2; position:absolute; left:0; top:0; }
#slide_image2 { z-index:1; position:absolute; left:0; top:0; }

/* 物件一覧 */
#main section.list article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
#main section.list article:hover { box-shadow:var(--shadow-hover); transform:translateY(-2px); }
#main section.list article a { padding:14px; text-decoration:none; display:block; overflow:hidden; transition:background var(--transition); }
#main section.list article a:hover { background:var(--orange-light); }
#main section.list article p { padding:0; margin-left:220px; color:var(--text-light); }
#main section.list article figure img { float:left; background:#fff; padding:4px; border:1px solid var(--border); margin-right:12px; border-radius:4px; }
#main section.list article h4 { padding:4px 0 4px 10px; font-size:100%; border-bottom:1px solid var(--border); border-left:4px solid var(--orange); margin-bottom:8px; color:var(--orange); }
#main section.list article table { font-size:11px; background:#fff; }
#main section.list article table,
#main section.list article table td,
#main section.list article table th { border:1px solid var(--border); line-height:1.6; }
#main section.list article table th { width:60px; text-align:center; font-weight:normal; background:#f0ede0; padding:2px; }
body.c2 #main section.list article table th { width:100px; }
#main section.list article table td { width:100px; padding:0 4px; }
body.c2 #main section.list article table td { width:160px; }

/* お知らせ */
#new dl { overflow:auto; height:150px; padding-left:10px; }
#new dt { font-weight:bold; float:left; width:8em; }
#new dd { border-bottom:1px solid var(--border); padding-left:8em; }
#new dd img { vertical-align:middle; }

/* テーブル .ta1 */
.ta1 { width:100%; }
.ta1, .ta1 td, .ta1 th { border:1px solid var(--border); line-height:2; }
.ta1 td { padding:10px 14px; }
.ta1 th { width:140px; padding:10px 14px; text-align:center; background:var(--bg-light); color:var(--text-light); font-size:13px; }
.ta1 th.tamidashi { width:auto; text-align:left; background:#ccc; }
.ta1 caption { padding:10px 14px; border:1px solid var(--border); border-bottom:none; text-align:left; background:var(--orange-light); font-weight:bold; font-size:13px; border-radius:6px 6px 0 0; }

/* ボタン */
input[type="submit"], input[type="button"], input[type="reset"] {
  width:220px; padding:12px; margin-bottom:20px;
  border-radius:30px;
  background:var(--orange);
  box-shadow:0 3px 10px rgba(246,128,32,0.35);
  font-size:15px; color:#fff; border:none; cursor:pointer;
  font-weight:bold; letter-spacing:0.05em;
  transition:background var(--transition), transform var(--transition), box-shadow var(--transition);
}
input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover {
  background:var(--orange-dark);
  transform:translateY(-2px);
  box-shadow:0 5px 16px rgba(246,128,32,0.45);
}

/* PAGE TOP */
#pagetop { clear:both; margin-top:8px; }
#pagetop a {
  color:#fff; font-size:11px; background:var(--orange);
  text-decoration:none; text-align:center; width:90px; padding:6px 0;
  display:block; float:right; border-radius:4px 4px 0 0;
  transition:background var(--transition); letter-spacing:0.05em;
}
#pagetop a:hover { background:var(--orange-dark); color:#fff; }

/* バッジ */
.osusume { font-size:10px; color:#fff; background:#e00; text-align:center; display:block; width:120px; position:absolute; right:0; bottom:0; transform:rotate(-45deg) translate(37px,20px); }
h2 span.osusume { position:static; transform:none; display:inline-block; }
.sumi { font-size:10px; color:#fff; background:#069; text-align:center; display:block; width:120px; position:absolute; right:0; bottom:0; transform:rotate(-45deg) translate(37px,20px); }
h2 span.sumi { position:static; transform:none; display:inline-block; }

/* FAQ */
dl.faq { padding:0 10px; }
dl.faq dt { padding:8px 8px 8px 28px; font-weight:bold; color:var(--orange); background:url(../images/faq_q.png) no-repeat left 10px; border-bottom:1px solid var(--border); }
dl.faq dd { padding:8px 8px 12px 28px; background:url(../images/faq_a.png) no-repeat left 10px; border-bottom:1px solid var(--border); color:var(--text-light); }

/* ユーティリティ */
.look { background:#dcdcdc; }
.mb15, .mb1em { margin-bottom:15px; }
.clear { clear:both; }
ul.disc { padding:0 25px 15px; list-style:disc; }
.color1 { color:#f61468; }
.pr { font-size:11px; }
.btn { font-size:13px; }
.wl { width:96%; }
.ws { width:50%; }
.c { text-align:center; }
.mini1 { font-size:12px; line-height:1.5; }
figcaption { font-size:11px; }
.ta1 td .specialbox { float:left; width:180px; height:40px; }
.ta1 td .specialbox img { vertical-align:middle; }

/* 社長あいさつ */
.company-message {
  background: var(--bg-light);
  border-left: 4px solid var(--orange);
  padding: 18px 22px;
  margin-top: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  line-height: 2.1;
  color: var(--text);
}

/* ===================================================
   タブレット用 481px〜800px
=================================================== */
@media (min-width:481px) and (max-width:800px) {

header .inner { width:auto; height:auto; padding:14px 16px; flex-wrap:wrap; justify-content:center; gap:8px; }
header .inner address { text-align:center; }

nav#menubar { margin:0 6px; }
nav#menubar ul { width:auto; flex-wrap:wrap; }
nav#menubar ul li { width:33.33%; flex:none; }
nav#menubar ul li + li::before { display:none; }

#contents { width:auto; margin:12px 6px 0; }
#contents-in, #main, body.c2 #main, #sub { float:none; width:auto; }
#side { display:none; }

#mainimg { margin:0 6px 1%; }
#mainimg aside { height:auto; width:100%; }
#mainimg aside img { vertical-align:bottom; }
#slide_image { height:auto; width:100%; position:relative; }
#slide_image2 { height:auto; width:100%; position:absolute; left:0; top:0; }

body.s-n #sub { display:none; }
td iframe { height:300px; width:100%; }

}

/* ===================================================
   スマートフォン用 〜480px
=================================================== */
@media (max-width:480px) {

/* ヘッダー：sticky固定 */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
header .inner {
  width: 100%;
  height: 58px;
  padding: 0 12px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}
header .inner h1 { padding:0; }
header h1 img { width:auto; height:34px; }
header .inner address { display:none; }

/* スマホ電話ボタン */
.sp-tel-btn {
  display: inline-flex !important;
  align-items: center;
  background: var(--orange);
  color: #fff !important;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
}
.sp-tel-btn:hover { background:var(--orange-dark); color:#fff !important; }

/* ハンバーガーボタン */
#menubar_hdr {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 6px;
  cursor: pointer;
  border: none;
  padding: 0;
  z-index: 1100;
  flex-shrink: 0;
}
#menubar_hdr span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
#menubar_hdr.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
#menubar_hdr.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
#menubar_hdr.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* スマホナビ（ドロップダウン） */
nav#menubar {
  position: fixed;
  top: 58px; left: 0;
  width: 100%;
  z-index: 999;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(246,128,32,0.97);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
nav#menubar.open { max-height: 520px; }
nav#menubar ul { width:100%; flex-direction:column; padding:6px 0 14px; }
nav#menubar ul li { width:100%; flex:none; }
nav#menubar ul li + li::before { display:none; }
nav#menubar ul li a {
  flex-direction: row;
  justify-content: flex-start;
  padding: 14px 20px;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  min-height: auto;
}
nav#menubar ul li a::before { content:"→ "; opacity:0.7; margin-right:4px; }
nav#menubar ul li a span { display:none; }

/* コンテンツ */
#contents { width:auto; margin:10px 8px 0; }
#contents-in, #main, body.c2 #main, #sub { float:none; width:auto; }
#main { padding:14px; }
#side { display:none; }
body.s-n #sub { display:none; }

/* スライド */
#mainimg { margin:0 8px 1%; }
#mainimg aside { height:auto; width:100%; }
#mainimg aside img { vertical-align:bottom; }
#slide_image { height:auto; width:100%; position:relative; }
#slide_image2 { height:auto; width:100%; position:absolute; left:0; top:0; }

/* お知らせ */
section#new h2.open { background:url(../images/btn_minus.png) no-repeat right center, linear-gradient(#fde8cc, var(--orange)); }
section#new h2.close { background:url(../images/btn_plus.png) no-repeat right center, linear-gradient(#fde8cc, var(--orange)); }
#new { margin-bottom:15px; }
#new dl { height:auto; padding-left:0; }
#new dt { float:none; width:auto; }
#new dd { padding-left:0; }

/* テーブル */
.ta1 td { width:auto; padding:6px 8px; }
.ta1 th { width:90px; padding:6px 8px; }

/* 物件リスト */
#main section.list article p { margin-left:0; }
#main .list article figure img { float:none; width:100%; height:auto; margin-right:0; margin-bottom:10px; box-sizing:border-box; }

/* テーブルiframe */
.ta1 td iframe { height:300px; width:100%; }

/* サブをスマホで下に表示 */
#sub {
  padding: 12px 10px 16px;
  background: #fafafa;
  border-top: 2px solid var(--border);
  margin-top: 12px;
}

}
