@charset "utf-8";
/* CSS Document */
/* NEWS（TOP・サブ 共通） */

/* ==========================================================================
   NEWSセクション　幅ラッパー（TOPページで使用）
   ========================================================================== */
.news-wrap{max-width:none;width:90%;max-width:1300px;margin: 25px auto 15px;padding:0;}
@media (max-width:1023px){
  .news-wrap{ width:auto; max-width:90%; padding:0 32px; margin:0 auto; }
}
@media (max-width:760px){
  .news-wrap{ width:auto; padding-left:8px; padding-right:8px; }
}

/* ==========================================================================
   NEWS本体（TOP・保険 共通構造）
   ========================================================================== */
.news{ padding:0 0 55px; font-weight:500; }
.news-wrap + .contact{ margin-top:49px; }
.news h2{ font-family:'BIZ UDMincho', serif; }
.news-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:20px; }
.news-head a{ display:inline-flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--accent); text-decoration:none; font-family:'Zen Kaku Gothic New', sans-serif !important; }
.news-head a .arrow-wrap{ position:relative; width:16px; height:16px; overflow:hidden; }
.news-head a .arrow-wrap img{ position:absolute; inset:0; width:16px; height:16px; transition:transform .35s cubic-bezier(.4,0,.2,1); }
.news-head a .arrow-wrap img.arrow-a{ transform:translateX(0); }
.news-head a .arrow-wrap img.arrow-b{ transform:translateX(-200%); transition-delay:.05s; }
.news-head a:hover .arrow-wrap img.arrow-a{ transform:translateX(200%); }
.news-head a:hover .arrow-wrap img.arrow-b{ transform:translateX(0); }
.news-list{ border-top:1px solid var(--line); list-style:none; margin:0; padding:0; }
.news-item{
  display:flex;
  align-items:center;
  gap: 20px;
  padding: 18px 10px;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  color:inherit;
  transition:background-color .3s;
}
.news-item .date{font-size:14px;color:var(--ink-soft);width: 7.8em;flex-shrink:0;font-family:'Zen Kaku Gothic New', sans-serif;letter-spacing:1px;}
.news-item .chip{font-size:12px;font-weight:600;letter-spacing:5px;padding: 1px 15px 2px 20px;border-radius:999px;flex-shrink:0;transition:background-color .3s;border:1.5px solid;margin-left: -8px;}
.news-item .title{ font-size:14px; flex:1; letter-spacing:1px; }
.news-item:hover .chip{ background-color:rgba(255,255,255,0.5); }
@media (max-width:767px){
  .news-item .date{width: 7.1em;}
  .news-item .chip{padding: 1px 12px 2px 17px;margin-left:-10px;}
  .news-item{ flex-wrap:wrap; row-gap:6px; }
  .news-item .title{ flex-basis:100%; }
}

/* ==========================================================================
   NEWS：TOPページ用（車販／保険で色分けするchip・ホバー）
   ========================================================================== */
.news-item.ins:hover{ background-color:rgba(30,135,90,0.05); }
.news-item.auto:hover{ background-color:rgba(10,48,94,0.05); }
.chip.auto{ background:#fff; color:var(--auto-600); border-color:var(--auto-600); }
.chip.ins{ background:#fff; color:var(--ins-600); border-color:var(--ins-600); }
.chip.chip-wide{letter-spacing: 1px!important;}

/* ==========================================================================
   NEWS：保険ページ用（単色chip・単色ホバー）
   ========================================================================== */
.news-item:hover{ background-color:rgba(30,135,90,0.05); }
.news-item .chip{background:#fff;}

/* ==========================================================================
   NEWS：タッチデバイス用ホバー／タップ無効化（style.cssの共通ブロックから分離）
   ========================================================================== */
@media (hover:none){
  .news-item:hover{
    background-color:transparent !important;
    color:inherit !important;
    opacity:1;
  }
  .news-item:active{ opacity:.8; }
}

/* ==========================================================================
   NEWS：iframe埋め込み時の高さ指定（top-umekomi.php用）
   ========================================================================== */
#iframe-news{
  width:100%;
  height:420px;
  border:none;
}
@media (max-width:767px){
  #iframe-news{ height:620px; }
}

/* ==========================================================================
   NEWS：チップをゴシックに、日付の曜日カッコ部分の字間調整
   ========================================================================== */
.news-item .chip{
  font-family:'Zen Kaku Gothic New', sans-serif;
}
.news-item .date .dow{
  letter-spacing:normal;
  margin-left:-5px;
}
.newMark{
  font-size:12px;
  color:red;
  padding:0 2px 1px 2.5px;
  font-weight:500;
  border:1.2px solid red;
  font-family:'Zen Kaku Gothic New', sans-serif;
}

/* ==========================================================================
   NEWS：一覧ページ（news.php）専用
   ========================================================================== */
.news-page{ padding-top:10px; }
.pager{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:30px 0 0;
  font-family:'Zen Kaku Gothic New', sans-serif;
  font-size:14px;
}
.pager a,
.pager span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:32px;
  padding:0 6px;
  border-radius:4px;
  text-decoration:none;
  color: var(--auto-600);
}
.pager a{ border:1px solid var(--line); transition:opacity .3s; }
.pager a:hover{ opacity:.8; }
.pager .now,
.pager .current{background: var(--auto-600);border: 1px solid var(--auto-600);color:#fff;font-weight:600;}

/* ==========================================================================
   NEWS：詳細ページ（news-detail.php）専用
   ========================================================================== */
.news-detail{ padding-top:10px; }
.page-head-news-detail h1{ font-size:20px; }
.news-detail-meta{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:24px;
}
.news-detail-meta .date{
  font-size: 18px;
  color:var(--ink-soft);
  font-family:'Zen Kaku Gothic New', sans-serif;
  letter-spacing: 2px;
}
.news-detail-meta .dow{letter-spacing:normal;font-size: 16px;margin-left: -5px;}
.news-detail-meta .chip{
  display:inline-block;
  font-size: 14px;
  font-weight:600;
  letter-spacing:5px;
  padding: 0px 15px 1px 20px;
  border-radius:999px;
  border:1.5px solid;
  font-family:'Zen Kaku Gothic New', sans-serif;
  background:#fff;
}
.news-detail-body{
  min-height:500px;
  min-font-size:16px;
  line-height:1.9;
}
.news-detail-body img{ max-width:100%; height:auto; margin:15px 0; }
.detailUpfile{ margin:10px 0; }

/* 詳細ページ：ダウンロードボタン（画像以外のファイルのリンク・.detailUpfile内で中央寄せ／罫線・文字・アイコンは var(--accent)） */
.detailDownload{
  display:flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  max-width:100%;
  box-sizing:border-box;
  margin:15px auto 10px;
  font-size:13px;
  line-height:1.6;
  color:var(--accent);
  text-decoration:none;
  padding:8px 20px;
  border:2px solid var(--accent);
  border-radius:4px;
  transition:opacity .3s;
}
.detailDownload:hover{ opacity:.8; }
.detailDownload-icon{
  flex-shrink:0;
  width:18px;
  height:18px;
  background-color:currentColor;
  -webkit-mask-image:url(../images/icons/download.svg);
  mask-image:url(../images/icons/download.svg);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
@media (max-width:600px){
  .detailDownload{ width:100%; justify-content:center; }
}
.news-detail-back{ margin-top:40px; text-align:center; }
.news-detail-back a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:var(--accent);
  text-decoration:none;
  padding:8px 20px;
  border:1px solid var(--line);
  border-radius:4px;
  transition:opacity .3s;
}
.news-detail-back a:hover{ opacity:.8; }

/* ==========================================================================
   詳細ページ：前後ナビ（アンケート）　« 前のアンケートへ｜一覧へ戻る｜次のアンケートへ »
   ========================================================================== */
.news-detail-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:40px;
}
.news-detail-nav .news-detail-back{ margin-top:0; }
.news-detail-nav-prev,
.news-detail-nav-next{ flex:1 1 0; min-width:0; }
.news-detail-nav-prev{ text-align:left; }
.news-detail-nav-next{ text-align:right; }
.news-detail-nav-list{ flex:0 0 auto; text-align:center; }
.news-detail-nav-prev a,
.news-detail-nav-next a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:var(--accent);
  text-decoration:none;
  padding:8px 20px;
  border:1px solid var(--line);
  border-radius:4px;
  transition:opacity .3s;
}
.news-detail-nav-prev a:hover,
.news-detail-nav-next a:hover{ opacity:.8; }
@media (max-width:600px){
  .news-detail-nav{ flex-wrap:wrap; row-gap:16px; }
  .news-detail-nav-prev a,
  .news-detail-nav-next a{
    display:flex;
    justify-content:center;
    width:100%;
    box-sizing:border-box;
    font-size:12px;
    padding:8px 6px;
  }
  .news-detail-nav-list{ order:3; flex:0 0 100%; }
}

/* ==========================================================================
   中古車情報 詳細ページ（news-detail.php／categoryNum=4）：画像左・テキスト右（50/50）
   ========================================================================== */
.usedcar-detail-row{
  display:flex;
  gap:30px;
  align-items:flex-start;
  margin:0 0 20px;
}
.usedcar-detail-row .detailUpfile{
  flex:0 0 40%;
  margin:0;
}
.usedcar-detail-row .detailUpfile img{
  width:100%;
  height:auto;
  margin:0;
  border-radius:8px;
}
.usedcar-detail-row .detailText{
  flex:0 0 60%;
}
@media (max-width:767px){
  .usedcar-detail-row{
    flex-direction:column;
  }
  .usedcar-detail-row .detailUpfile,
  .usedcar-detail-row .detailText{
    flex:none;
    width:100%;
  }
}

/* ==========================================================================
   中古車在庫情報 見出し（used-car-sales.html）：アイコン＋見出し文字色の罫線
   ========================================================================== */
.usedcar-label .eyebrow-style{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:12px 0;
  border-top:1px solid currentColor;
  border-bottom:1px solid currentColor;
}
.usedcar-label-icon{
  width:44px;
  height:auto;
  flex-shrink:0;
}

/* ==========================================================================
   中古車情報一覧ページ（news-usedcar.php）：サムネ左・テキスト右
   ========================================================================== */
.news-item-thumb-wrap{
  display:flex;
  align-items:center;
  gap:20px;
  padding:18px 10px;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  color:inherit;
  transition:background-color .3s;
}
.news-item-thumb-wrap:hover{ background-color:rgba(10,48,94,0.05); }
.news-item-thumb{
  width:160px;
  flex-shrink:0;
  aspect-ratio:4/3;
  border-radius:8px;
  overflow:hidden;
  background:#f2f2f2;
}
.news-item-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.news-item-body{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}
@media (max-width:600px){
  .news-item-thumb{ width:110px; }
}
@media (hover:none){
  .news-item-thumb-wrap:hover{ background-color:transparent !important; }
  .news-item-thumb-wrap:active{ opacity:.8; }
}

/* ==========================================================================
   中古車情報一覧ページ（news-usedcar.php）：4カラムのカード表示（サムネ → 日付 → タイトル・中央寄せ）
   ========================================================================== */
.news-usedcar-page .news-list{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:36px 30px;
  border-top:none;
  padding-top:20px;
}
.news-usedcar-page .news-list > li{ min-width:0; }
.news-usedcar-page .news-item-thumb-wrap{
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  padding:0;
  border-bottom:none;
}
.news-usedcar-page .news-item-thumb{
  width:100%;
  aspect-ratio:1/1;
  background:transparent;
  transition:opacity .3s;
}
.news-usedcar-page .news-item-body{
  align-items:center;
  text-align:center;
  gap:4px;
}
.news-usedcar-page .news-item-body .date{
  font-size:14px;
  color:var(--ink-soft);
  font-family:'Zen Kaku Gothic New', sans-serif;
  letter-spacing:1px;
}
.news-usedcar-page .news-item-body .date .dow{
  letter-spacing:normal;
  margin-left:-5px;
}
.news-usedcar-page .news-item-body .title{
  font-size:16px;
  line-height:1.6;
}
.news-usedcar-page .news-item-thumb-wrap:hover{ background-color:transparent; }
.news-usedcar-page .news-item-thumb-wrap:hover .news-item-thumb{ opacity:.8; }
@media (hover:none){
  .news-usedcar-page .news-item-thumb-wrap:hover .news-item-thumb{ opacity:1; }
}
@media (max-width:1023px){
  .news-usedcar-page .news-list{ grid-template-columns:repeat(3, 1fr); }
}
@media (max-width:767px){
  .news-usedcar-page .news-list{ grid-template-columns:repeat(2, 1fr); gap:28px 16px; }
}
@media (max-width:480px){
  .news-usedcar-page .news-list{ grid-template-columns:1fr; }
}

/* ==========================================================================
   中古車情報（usedcar-umekomi.php）：height指定はJSのpostMessageで自動上書きされるまでの初期値
   ========================================================================== */
#iframe-usedcar{
  width:100%;
  height:460px;
  border:none;
}

/* ==========================================================================
   お客様の声（voice-umekomi.php）：サムネイル＋日付＋タイトル、3列×2行グリッド
   height指定はJSのpostMessageで自動上書きされるまでの初期値
   ========================================================================== */
#iframe-voice{
  width:100%;
  height:600px;
  border:none;
}
.voice-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap: 30px;
  list-style:none;
  margin: 30px auto 0;
  padding:0;
  max-width: 1100px;
}
@media (max-width:767px){
  .voice-grid{ grid-template-columns:1fr; max-width:320px; }
}
.voice-card{ display:block; }
.voice-card-link{
  display:block;
  text-decoration:none;
  color:inherit;
}
.voice-thumb{
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:8px;
  margin-bottom:10px;
}
.voice-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s;
}
.voice-card-link:hover .voice-thumb img{ transform:scale(1.05); }
/* 中古車情報：画像をトリミングせず全体を表示 */
.usedcar-thumb{
  background:#f2f2f2;
}
.usedcar-thumb img{
  object-fit:contain;
}
.voice-card-link:hover .usedcar-thumb img{ transform:none; }

/* ==========================================================================
   中古車情報カルーセル（usedcar-umekomi.php）
   ========================================================================== */
.usedcar-carousel{
  display:flex;
  align-items:center;
  gap:8px;
  padding:20px 0 4px;
  max-width:1200px;
  margin:0 auto;
}
.uc-viewport{
  flex:1;
  overflow:hidden;
}
.uc-track{
  display:flex;
  align-items:flex-start;
  gap:24px;
  list-style:none;
  margin:0;
  padding:0;
  transition:transform .4s ease;
}
.uc-slide{
  flex:0 0 calc((100% - 48px) / 3);
}
.uc-slide-link{
  display:block;
  text-decoration:none;
  color:inherit;
}
.uc-thumb{
  border-radius:8px;
  overflow:hidden;
  margin-bottom:10px;
  box-shadow:0 4px 16px rgba(0,0,0,.12);
}
.uc-thumb img{
  display:block;
  width:100%;
  height:auto;
}
.uc-date{
  display:block;
  font-size:14px;
  color:var(--ink-soft);
  font-family:'Zen Kaku Gothic New', sans-serif;
  letter-spacing:1px;
  margin-bottom:4px;
}
.uc-date .dow{ letter-spacing:normal; margin-left:-5px; }
.uc-title{
  display:block;
  font-size:18px;
  font-weight:bold;
  line-height:1.6;
  font-family:'Zen Kaku Gothic New', sans-serif;
  position:relative;
  top:-3px;
}
.uc-arrow{
  flex-shrink:0;
  width:40px;
  height:40px;
  border-radius:999px;
  border:none;
  background:var(--auto-600);
  cursor:pointer;
  transition:opacity .3s;
  position:relative;
}
.uc-arrow:hover{ opacity:.7; }
.uc-arrow::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:18px;
  height:18px;
  transform:translate(-50%,-50%);
  background-color:#fff;
  -webkit-mask-image:url(../images/icons/icon-arrow.svg);
  mask-image:url(../images/icons/icon-arrow.svg);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
.uc-prev::before{
  transform:translate(-50%,-50%) rotate(180deg);
}
.uc-pager{
  width:fit-content;
  margin:20px auto 20px;
  text-align:center;
  font-size:13px;
  font-weight:bold;
  color:var(--auto-600);
  font-family:'Zen Kaku Gothic New', sans-serif;
  letter-spacing:1px;
  padding:4px 14px;
  border:1px solid var(--auto-600);
  border-radius:4px;
}
@media (max-width:600px){
  .uc-slide{ flex:0 0 100%; }
  .uc-track{ gap:16px; }
}
.voice-date{
  display:block;
  font-size: 16px;
  color:var(--ink-soft);
  font-family:'Zen Kaku Gothic New', sans-serif;
  letter-spacing:1px;
  margin-bottom:4px;
}
.voice-date .dow{
  letter-spacing:normal;
  margin-left:-5px;
}
.voice-title{
  display:block;
  font-size: 16px;
  line-height:1.6;
}
