@charset "UTF-8";

/* 旧テーマのヘッダー・フッター（差し替え前）を非表示 */
body.autech-news #header,
body.autech-news #footer,
body.autech-news #copyright,
body.autech-news .cb-header,
body.autech-news .topborder,
body.autech-news .toggle,
body.autech-news .hamburger {
  display: none !important;
}

/*
 * 本文エリアをヘッダー用 html 文字サイズの影響から完全に切り離す
 * （ヘッダーは rem、本文は旧 minimaga の px 基準）
 */
#autech-main-content {
  font-family: "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 190%;
  color: #333;
  background: #fff;
}

#autech-main-content a {
  color: #378893;
}

#autech-main-content a:hover {
  color: #666;
  text-decoration: none;
}

/* 旧 minimaga のレイアウト余白に合わせる */
#autech-main-content .top-header {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#autech-main-content .top-wide-contents {
  width: 100%;
  margin: 0;
}

#autech-main-content .row {
  margin-bottom: 0;
}

#autech-main-content #main {
  margin: 0;
  padding: 0;
}

#autech-main-content .wrapper {
  margin: auto;
  max-width: 960px;
  padding: 50px 30px;
}

#autech-main-content .pagetitle-top {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.01em;
  padding: 0 0 5px 0;
  margin: 0 auto 30px auto;
  border-bottom: 3px double #ccc;
  max-width: 300px;
  text-align: center;
}

@media only screen and (max-width: 767px) {
  #autech-main-content .wrapper {
    width: 300px;
    max-width: 100%;
    padding: 0 0 50px 0;
  }

  #autech-main-content .pagetitle-top {
    font-size: 14px;
    letter-spacing: 0.05em;
    padding: 0 0 30px 0;
    margin-top: 20px;
    margin-bottom: -20px;
    border-bottom: none;
    max-width: none;
  }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
  #autech-main-content .wrapper {
    width: 728px;
    max-width: 100%;
    padding: 50px 20px;
  }
}

/*
 * 記事一覧：float 3列は高さ差で4件目以降に隙間が出るため Grid に変更
 * align-items: start で行内の高さ揃え（余白）も防ぐ
 */

#autech-main-content ul.block-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 4%;
  row-gap: 40px;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#autech-main-content ul.block-three > li.item {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  position: relative;
  list-style: none;
}

#autech-main-content ul.block-three > li.item p,
#autech-main-content ul.block-three > li.item .item-text {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 170%;
  color: #555;
}

#autech-main-content ul.block-three > li.item .item-date {
  margin: 0 0 10px 0;
}

#autech-main-content ul.block-three > li.item .item-img {
  margin: 0 0 10px 0;
}

#autech-main-content ul.block-three > li.item .item-title {
  margin: 0;
  padding: 5px 0 0 0;
}

@media only screen and (max-width: 767px) {
  #autech-main-content ul.block-three {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
}

/* フッター：旧テーマの p / a 指定を打ち消し（白文字） */
body.autech-news > footer,
body.autech-news > footer p,
body.autech-news > footer a,
body.autech-news > footer li,
body.autech-news > footer #footer-access p,
body.autech-news > footer #footer-copyright p {
  color: #fff;
}

body.autech-news > footer p {
  padding: 0;
  line-height: 1.75;
}

body.autech-news > footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* 記事詳細：お問い合わせボタン（関連記事の直前） */
#autech-main-content .autech-contact-cta {
  margin: 40px auto 50px;
  text-align: center;
  max-width: 28rem;
}

#autech-main-content .autech-contact-cta a {
  display: block;
  padding: 1rem 2rem;
  background-color: #d31212;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: opacity 0.3s ease;
}

#autech-main-content .autech-contact-cta a::after {
  content: "\25b6";
  margin-left: 0.5em;
  transition: margin-left 0.3s ease;
}

#autech-main-content .autech-contact-cta a:hover {
  color: #fff !important;
  opacity: 0.7;
  text-decoration: none;
}

#autech-main-content .autech-contact-cta a:hover::after {
  margin-left: 1em;
}
