/* AINews02 — layout lock + skin v2 (slate + amber, not green / not stock red) */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --brand: #c47a12;
  --brand-deep: #1b2430;
  --brand-soft: #fff3df;
  --ink: #1b2430;
  --muted: #66707d;
  --line: #d5dce0;
  --paper: #e8edf2;
  --card: #ffffff;
  --radius: 2px;
  --ease: 0.2s ease;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }

.container {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 992px) {
  .main > .row {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: start;
  }
  .main > .row:before,
  .main > .row:after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .main > .row > .col-md-8,
  .main > .row > .col-md-4,
  .main > .row > #sidebar {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .main > .row > #sidebar {
    display: block !important;
  }
  .main > .row > .col-md-8 {
    overflow: hidden;
  }
}

@media only screen and (max-width: 991px) {
  .main > .row {
    display: block !important;
  }
}

/* ---- Skin ---- */
body {
  font-family: Figtree, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--ink) !important;
  background:
    linear-gradient(180deg, #dfe6ee 0%, var(--paper) 220px),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(27, 36, 48, 0.015) 11px,
      rgba(27, 36, 48, 0.015) 12px
    ) !important;
}

body a { color: var(--ink); }
body a:hover,
.mxmenu li a:hover,
.mxmenu .active,
.logo a:hover,
.newstext a h3:hover,
.newstag a:hover,
.slideTxtBox .hd ul li.on h2 {
  color: var(--brand) !important;
}

header {
  background: var(--brand-deep) !important;
  border-bottom: 0;
}
header .logo a,
header .logo a strong,
header .mxmenu li a {
  color: #f4f7fa !important;
}
header .mxmenu li a:hover,
header .mxmenu .active {
  color: var(--brand) !important;
}
header .phone-menu .nav__icon,
header .phone-menu .nav__icon:before,
header .phone-menu .nav__icon:after {
  background: #fff !important;
}

.logo a {
  display: inline-block;
  vertical-align: middle;
  line-height: 70px;
  font-family: "Bricolage Grotesque", Georgia, serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.logo a strong {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  font-weight: inherit !important;
}
.logo a img {
  max-height: 40px;
  width: auto;
  margin-top: -8px;
}

.nymenu {
  background: #10161e !important;
  box-shadow: none !important;
  border-bottom: 2px solid var(--brand);
}
.nymenu .ymwrap,
.nymenu > .container {
  overflow: hidden;
}
.nymenu .ymtitle {
  white-space: nowrap;
}
.nymenu .ymtitle > li a {
  font-weight: 600;
  color: rgba(244, 247, 250, 0.72) !important;
}
.nymenu .ymtitle > li a:hover {
  color: var(--brand) !important;
}

.mainbox {
  background: var(--card) !important;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(16, 22, 30, 0.06);
}

.slideTxtBox .hd {
  border-bottom: 1px solid var(--line) !important;
}
.slideTxtBox .hd ul li h2 {
  font-family: "Bricolage Grotesque", Georgia, serif !important;
  font-size: 18px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep) !important;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--brand);
}
.slideTxtBox .hd ul li.on h2 {
  color: var(--brand) !important;
}

.sidebartitle {
  border-bottom: 1px solid var(--line) !important;
}
.sidebartitle h2 {
  font-family: "Bricolage Grotesque", Georgia, serif !important;
  font-size: 15px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep) !important;
}

.topnews,
.slideBox,
.slideBox .bd li a,
.topnewsleft,
.topnewsright,
.topnewsright-part,
.newsthumb,
.newsthumb > a,
.main img {
  max-width: 100%;
}

.slideBox .bd li a,
.topnewsright-part a {
  border-radius: var(--radius);
  overflow: hidden;
}
.slideBox .bd img,
.topnewsright-part a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: saturate(0.92) contrast(1.04);
}
.slideBox .bd li a:hover img,
.topnewsright-part a:hover img {
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}

.slidertext,
.topnews-title {
  background-image: linear-gradient(to top, rgba(16, 22, 30, 0.88), transparent) !important;
  filter: none !important;
}

.newsthumb > a {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #10161e;
  border-radius: var(--radius);
}
.hotnews .newsthumb.side > a {
  aspect-ratio: 4 / 3;
}
.newsthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  transition: transform 0.35s ease;
}
.newsthumb img:hover {
  opacity: 1;
  transform: scale(1.04);
}

.listcontent > li,
.slideTxtBox .bd > ul > li {
  border-bottom-color: var(--line) !important;
}
.newstext a h3 {
  font-family: Figtree, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  letter-spacing: 0;
  color: var(--ink) !important;
  transition: color var(--ease);
  margin: 0 0 8px !important;
  padding: 0 !important;
}
.newszy {
  color: var(--muted) !important;
}
.newstag span,
.newstag a {
  color: var(--muted) !important;
}
.newstag .smhidden {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--brand-soft);
  color: #8a5608 !important;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#divSearchPanel {
  display: flex;
  align-items: center;
  gap: 6px;
}
#divSearchPanel .keyword {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f9fb;
}
#divSearchPanel .keyword:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(196, 122, 18, 0.16);
}
#divSearchPanel .searchButton {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid var(--brand-deep);
  border-radius: var(--radius);
  background: var(--brand-deep);
  color: #fff;
  cursor: pointer;
}
#divSearchPanel .searchButton:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.widget_recent_entries ul li {
  border-bottom: 1px solid var(--line) !important;
}
.widget_recent_entries ul li a:hover {
  color: var(--brand) !important;
}
.tagcloud a {
  display: inline-block;
  border: 1px solid var(--line);
  line-height: 1;
  margin: 0 8px 8px 0;
  padding: 8px 10px;
  color: var(--muted) !important;
  border-radius: var(--radius);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.tagcloud a:hover {
  color: #fff !important;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.epagess {
  text-align: center;
  color: var(--muted);
  width: 100%;
  clear: both;
  padding-top: 10px;
  margin: 30px auto;
}
.pagination {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding-bottom: 20px;
}
.pagination a,
.pagination b {
  display: inline-block;
  padding: 7px 10px;
  margin-left: 5px;
  margin-bottom: 5px;
  color: var(--muted);
  line-height: 1;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.pagination a:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
}
.pagination b.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.footer {
  background: #0d1218 !important;
  color: rgba(244, 247, 250, 0.7) !important;
  padding: 28px 0 !important;
}
.footer a {
  color: var(--brand) !important;
}
.footer .sec-check a {
  margin: 0 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Typography / clip fixes (PC + mobile) ---- */
.listcontent .newstext a h3,
.slideTxtBox .newstext a h3,
.newstext a h3,
.hotnews .newstexttop h3,
.hotnews .newstext a h3 {
  font-family: Figtree, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  overflow: visible !important;
  max-height: none !important;
  white-space: normal !important;
  text-overflow: unset !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
}
.newstext a h3 {
  font-size: 17px !important;
  line-height: 1.75 !important;
  margin: 0 0 10px !important;
}
.hotnews .newstexttop h3,
.hotnews .newstext a h3 {
  font-size: 14px !important;
  line-height: 1.7 !important;
  margin: 0 0 6px !important;
}
.pagecon .pagetit {
  font-family: Figtree, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif !important;
  line-height: 1.55 !important;
  word-break: break-word;
}
.pagecon .pagecontent,
.pagecon .pagecontent p,
.pagecon .pagecontent li {
  line-height: 1.85 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pagecon .pagecontent img,
.pagecontent img {
  max-width: 100% !important;
  height: auto !important;
}
.slidertext h3 {
  font-family: Figtree, "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif !important;
  white-space: normal !important;
  line-height: 1.55 !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.logo a {
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
}
.logo a img {
  margin-top: 0 !important;
  max-height: 40px;
  width: auto;
}
.prenext {
  overflow: hidden;
}
.prenext p {
  white-space: normal !important;
  line-height: 1.55 !important;
  overflow: visible !important;
  text-overflow: unset !important;
}
.prenext p a {
  line-height: 1.55 !important;
  display: inline;
  white-space: normal !important;
}
.footer .sec-check {
  line-height: 1.7 !important;
  word-break: break-word;
}
.footer .sec-check a {
  display: inline-block;
  margin: 4px 6px !important;
}

@media (min-width: 992px) {
  .newstext a h3 {
    font-size: 18px !important;
    line-height: 1.7 !important;
  }
  .listcontent > li .row {
    align-items: flex-start;
  }
  .prenext p {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .prenext p a {
    white-space: nowrap !important;
  }
}

@media only screen and (max-width: 991px) {
  header {
    height: 56px !important;
    line-height: 56px !important;
  }
  .logo {
    line-height: 56px !important;
    padding: 0 48px;
    box-sizing: border-box;
  }
  .logo a {
    font-size: 18px !important;
    line-height: 56px !important;
    max-width: calc(100% - 8px);
    justify-content: center;
  }
  .logo a img {
    max-height: 28px !important;
  }
  .newstext a h3 {
    font-size: 15px !important;
    line-height: 1.75 !important;
    max-height: none !important;
    margin-bottom: 8px !important;
  }
  .hotnews .newstexttop h3,
  .hotnews .newstext a h3 {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }
  .pagecon .pagetit {
    font-size: 20px !important;
    line-height: 1.55 !important;
    margin-top: 12px !important;
    margin-bottom: 14px !important;
  }
  .pagecon .pagecontent p,
  .pagecon .pagecontent li {
    font-size: 15px !important;
    line-height: 1.85 !important;
  }
  .slidertext {
    padding: 10px 12px !important;
  }
  .slidertext h3 {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
  .listcontent > li {
    padding: 14px 0 !important;
  }
  .prenext p {
    float: none !important;
    width: 100% !important;
    padding: 8px 0 !important;
    border: 0 !important;
    white-space: normal !important;
  }
  .prenext .pre {
    border-bottom: 1px solid var(--line) !important;
    margin-bottom: 4px;
  }
  #comments-box .discuss-field input,
  #comments-box .discuss-field textarea {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .a2a-share-wrap .a2a_kit {
    justify-content: flex-start !important;
  }
  .mainbox.pd3040 {
    padding: 16px 12px !important;
  }
  .footer {
    padding: 20px 12px !important;
  }
  .footer .sec-check {
    font-size: 13px;
  }
}
