/*
Theme Name: 鈴木自動車工業
Theme URI: https://www.suzukijidosyakogyo.com/
Author: 株式会社鈴木自動車工業
Description: 青森市の鈑金・塗装・車検工場、株式会社鈴木自動車工業のサイト。スマートフォンでも読みやすく、写真での鈑金見積に対応しています。
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: suzuki-auto
*/

:root {
  --navy: #102848;
  --navy-2: #1a3d6d;
  --red: #d0121a;
  --red-d: #a50e14;

  --ink: #434343;
  --muted: #777;
  --yellow: #f6ec57;
  --sky-top: #1daef1;
  --sky: #7ec1eb;
  --blue: #31aee9;
  --news-blue: #47bbe6;
  --side: #f0eecb;
  --side-line: #c3cca5;
  --cream: #faf7ed;
  --pink: #ff3366;
  --quote: #ef70bf;
  --maroon: #8b2323;
  --title: #615845;
  --tel-red: #c8463a;
  --green: #a2b63c;
  --max: 960px;
  --cond: "Yanone Kaffeesatz", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    url("assets/images/bg-bottom.jpg") center bottom / max(1024px, 100%) auto no-repeat,
    url("assets/images/bg-top.jpg") left top / 1px 900px repeat-x,
    var(--sky);
  font-family: "Noto Sans JP", "MS PGothic", Osaka, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #2a7fb8; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 400; color: var(--ink); }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 20px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: relative;
  z-index: 30;
  background: linear-gradient(90deg, var(--yellow) 50%, #fff 50%);
}

.header-bar {
  width: min(1024px, 100%);
  margin: 0 auto;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  padding-right: 30px;
}

.brand { display: flex; }
.brand img { width: 300px; height: 110px; }

.header-tel img { width: 342px; height: auto; }

.nav-toggle {
  display: none;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: #333;
}

.site-nav {
  background: #000 url("assets/images/menu-bar.gif") left top repeat-x;
}

.nav-list {
  width: min(1024px, 100%);
  margin: 0 auto;
  padding: 0 0 0 40px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.nav-list a {
  display: block;
  width: 100px;
  height: 47px;
  overflow: hidden;
  text-indent: -9999px;
  color: #fff;
  text-decoration: none;
  background: center / 100px 30px no-repeat;
  border-bottom: 3px solid transparent;
}

.nav-list .m-home > a { background-image: url("assets/images/menu-home.png"); }
.nav-list .m-seibi > a { background-image: url("assets/images/menu-seibi.png"); }
.nav-list .m-bankin > a { background-image: url("assets/images/menu-bankin.png"); }
.nav-list .m-used > a { background-image: url("assets/images/menu-blog.png"); }
.nav-list .m-blog > a { background-image: url("assets/images/menu-blog_old.png"); }
.nav-list .m-sbm > a { background-image: url("assets/images/menu-sbm.png"); }

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-parent > a {
  border-bottom-color: #7cc576;
}

/* Hero (unchanged) */

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(10, 24, 44, 0.88) 0%, rgba(10, 24, 44, 0.55) 52%, rgba(10, 24, 44, 0.25) 100%),
    var(--hero) center/cover no-repeat;
}

.hero-inner { padding: 72px 0; }

.eyebrow {
  margin: 0 0 8px;
  letter-spacing: 0.14em;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffd56a;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
  font-weight: 700;
}

.hero-lead {
  max-width: 36em;
  margin-bottom: 24px;
  font-size: 20px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
}

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-line { background: transparent; color: #fff; border-color: #fff; }
.btn-line:hover { background: #fff; color: var(--navy); }

/* Page frame */

.container {
  width: min(982px, 100%);
  margin: 40px auto 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 18px;
}

.paper {
  background: #fff url("assets/images/note.gif") left top repeat-y;
  padding: 20px 14px 20px 30px;
  min-height: 400px;
}

.page-title {
  margin: 0 0 24px;
  padding: 10px 16px 10px 24px;
  background: url("assets/images/h1-bar.png") left center / 100% 100% no-repeat;
  color: var(--title);
  font-family: var(--cond);
  font-size: 24px;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.12);
}

.paper h2,
.paper h3 {
  margin: 1.6em 0 0.8em;
  padding: 5px;
  font-size: 20px;
  border-bottom: 1px solid var(--blue);
}

.paper h2:first-of-type { margin-top: 0; }

.paper h4 {
  margin: 1.2em 0 0.6em;
  font-size: 17px;
  color: var(--maroon);
  border-bottom: 1px dotted #3a8f2a;
}

.paper ul,
.paper ol { padding-left: 1.5em; }

.paper table { width: 100%; border-collapse: collapse; background: #fff; }
.paper th,
.paper td { border: 1px solid #ccc; padding: 6px 8px; text-align: center; }
.paper th { background: #f5f5f5; font-weight: 400; }

.paper .img-right { float: right; width: 45%; margin: 0 0 12px 14px; }
.paper .img-left { float: left; width: 45%; margin: 0 14px 12px 0; }
.paper .clear { clear: both; }

.note { color: var(--muted); font-size: 15px; }

/* Home */

.home-banner {
  display: block;
  border: 3px solid #e60012;
  background: #fff;
  margin-bottom: 26px;
}

.home-banner img {
  width: 100%;
  height: auto;
}

.news-box {
  position: relative;
  margin: 26px 0 28px;
  padding: 22px 8px 8px;
  background: var(--news-blue) url("assets/images/dot.png");
  border-radius: 4px;
}

.news-label {
  position: absolute;
  left: -6px;
  top: -24px;
  margin: 0;
  width: 200px;
  height: 40px;
  background: url("assets/images/news-label.png") left top / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.news-scroll {
  max-height: 440px;
  overflow-y: auto;
  background: #fff;
}

.news-list { list-style: none; margin: 0; padding: 0; }

.news-list li {
  padding: 12px 10px 10px 26px;
  background: #fff url("assets/images/note.gif") left top repeat-y;
  border-bottom: 2px solid #eaeaea;
}

.news-list h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: #644343;
}

.news-list h3 a { color: inherit; text-decoration: none; }
.news-list h3 a:hover { color: var(--pink); }
.news-list .news-date { display: block; font-size: 14px; color: var(--muted); }
.news-list p { margin: 0 0 0.4em; font-size: 16px; }

.news-more { margin: 8px 0 0; text-align: right; }
.news-more a { color: #fff; font-weight: 700; }

.home-section { margin: 0 0 34px; }

.cond-title {
  margin: 0;
  font-family: var(--cond);
  font-size: 36px;
  line-height: 1.2;
}

.cond-sub { margin: 4px 0 12px; font-size: 18px; }

.home-section img { width: 100%; margin-bottom: 10px; }

.thumbs { display: flex; gap: 6px; margin: -4px 0 10px; }
.thumbs button {
  padding: 0;
  border: 2px solid #fff;
  background: none;
  cursor: pointer;
  line-height: 0;
}
.thumbs button.is-current { border-color: var(--pink); }
.thumbs img { width: 60px; height: 45px; object-fit: cover; border: 0; margin: 0; }

.dupont-logo { width: 106px !important; margin: 18px 0 8px !important; }

.wrecker {
  margin: 0 0 30px;
  padding: 26px 10px 40px;
  background:
    url("assets/images/clover.png") left top repeat-x,
    url("assets/images/clover.png") left bottom repeat-x,
    var(--cream);
}

.wrecker h2 {
  margin: 0 0 12px;
  padding-bottom: 4px;
  font-size: 24px;
  border-bottom: 3px dashed var(--pink);
}

.wrecker h4 {
  margin: 16px 0 8px;
  font-size: 16px;
  color: var(--maroon);
  border-bottom: 1px dotted #3a8f2a;
}

.wrecker p,
.wrecker li { font-size: 16px; }

.info-box {
  margin: 12px 0;
  padding: 12px;
  background: #fff;
  border: 2px solid #e6dccb;
  font-weight: 700;
  font-size: 16px;
}

.info-box p { margin: 0.3em 0; }

.sonpo-box {
  display: flex;
  justify-content: center;
  padding: 12px;
  margin: 12px 0;
  background: #fff;
  border: 2px solid #e6dccb;
}

.fb-embed {
  margin: 0 0 30px;
}

.fb-embed iframe {
  display: block;
  max-width: 100%;
  height: 427px;
  border: 0;
  overflow: hidden;
}

/* Sidebar */

.sidebar {
  background: var(--side);
  border-left: 5px solid var(--side-line);
  padding: 8px 8px 20px;
}

.side-block {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.side-block:last-child { border-bottom: 0; }

.side-service {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  color: #333;
  text-decoration: none;
}

.side-service img { width: 40px; height: 40px; }
.side-service strong { display: block; font-size: 22px; font-weight: 400; line-height: 1.3; }
.side-service span { font-size: 14px; color: #555; }
.side-service:hover strong { color: var(--pink); }

.noxudol-head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px;
  align-items: start;
}

.noxudol-head img { width: 40px; margin-top: 6px; }
.noxudol-head h3 { margin: 0; font-family: var(--cond); font-size: 22px; }
.noxudol-head h4 { margin: 2px 0 8px; font-size: 14px; font-style: italic; color: #999; }
.side-block p { font-size: 15px; }
.noxudol-price { width: 120px; margin: 6px 0 0 auto; }

.side-quote {
  margin: 0;
  padding: 0 0 0 34px;
  background: url("assets/images/blockquote.png") left top no-repeat;
  color: var(--quote);
  font-size: 20px;
  line-height: 1.5;
}

.side-banner { display: block; margin-bottom: 8px; }

/* Lists / posts */

.post-list { list-style: none; margin: 0; padding: 0; }

.post-list article {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--blue);
}

.post-list h2 { margin: 0 0 4px; font-size: 22px; border: 0; padding: 0; }
.post-list h2 a { color: #644343; text-decoration: none; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 6px; }

.pagination { margin-top: 18px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a,
.pagination span {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid #ccc;
  text-decoration: none;
}

.empty { padding: 20px 0; }

.estimate-banner {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  border: 3px solid #e60012;
}

/* Footer */

.site-footer {
  width: min(982px, 100%);
  margin: 0 auto 30px;
  padding: 10px 0 0;
  background: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  background: rgba(0, 0, 0, 0.55);
  color: #ccc;
  padding: 10px 16px 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.site-footer h2 {
  margin: 0 0 10px;
  padding-bottom: 4px;
  color: #ccc;
  font-family: var(--cond);
  font-size: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.site-footer p,
.site-footer li,
.site-footer dd,
.site-footer dt { font-size: 14px; }

.site-footer a { color: var(--green); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 4px; }

.footer-photo { border: 2px solid var(--green); margin-bottom: 8px; width: 100%; max-width: 206px; }

.contact-list li {
  padding-left: 25px;
  background: url("assets/images/contact-icons.png") 0 0 no-repeat;
}
.contact-list .tel { background-position: 0 -50px; }
.contact-list .fax { background-position: 0 -150px; }
.contact-list .mail { background-position: 0 -100px; }

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 6px;
  margin: 0;
}

.hours dt { color: #fff; text-align: right; }
.hours dd { margin: 0; }

.site-footer .copyright {
  margin: 0;
  padding: 10px 0;
  text-align: center;
  color: #999;
  font-size: 16px;
}

.mobile-bar { display: none; }

/* Smartphone */

@media (max-width: 860px) {
  .layout,
  .footer-grid { grid-template-columns: 1fr; }

  .footer-grid { gap: 8px; }

  .site-header { background: linear-gradient(90deg, var(--yellow) 50%, #fff 50%); }
  .header-bar { padding-right: 10px; height: 64px; }
  .brand img { width: 175px; height: 64px; }
  .header-tel { display: none; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 25;
  }

  body.nav-open .site-nav { display: block; }

  .nav-list { flex-direction: column; padding: 4px 0 8px; gap: 0; }
  .nav-list a {
    width: auto;
    height: auto;
    text-indent: 0;
    background: none !important;
    padding: 0 20px;
    line-height: 46px;
    font-weight: 700;
    font-size: 17px;
    border-bottom: 1px solid #222;
  }
  .nav-list a:hover,
  .nav-list .current-menu-item > a { border-bottom-color: #7cc576; }

  .hero { min-height: 0; }
  .hero-inner { padding: 48px 0 42px; }

  .container { margin-top: 0; padding: 8px; }
  .paper { padding: 16px 10px 16px 26px; min-height: 0; }
  .paper .img-right,
  .paper .img-left { float: none; width: 100%; margin: 0 0 12px; }

  .sidebar { border-left: 0; border-top: 5px solid var(--side-line); }
  .side-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

  .news-scroll { max-height: 360px; }
  .cond-title { font-size: 30px; }

  .site-footer { margin-bottom: 0; }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.85);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-bar .bar-tel { background: var(--yellow); color: #333; }
  .mobile-bar .bar-estimate { background: var(--tel-red); color: #fff; }

  body { padding-bottom: 66px; }
}
