@charset "UTF-8";
/* WordPress 化で足した部分（ニュース・メニューの NEWS・記事の本文）。ほかは site.css */

html body .top-news-title,
html body .news-item-date,
html body .news-article-date {
  font-family: var(--font-display);
}

.site-menu-top a + a {
  margin-left: 1.2em;
}

.admin-bar .site-header,
.admin-bar .site-menu {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .site-menu {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}

.global-nav {
  display: none;
}

.model-bands {
  scroll-margin-top: var(--header-h);
}

@media (min-width: 1200px) {
  .global-nav {
    display: block;
    margin: 0 30px 0 auto;
  }

  .global-nav > ul {
    display: flex;
    gap: 26px;
  }

  .global-nav > ul > li {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--header-h);
  }

  .global-nav a {
    color: var(--text-sub);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
  }

  .global-nav > ul > li > a {
    padding: 6px 0;
    border-bottom: 1px solid transparent;
  }

  .global-nav a:hover,
  .global-nav a:focus-visible,
  .global-nav > ul > li:hover > a,
  .global-nav > ul > li:focus-within > a {
    color: var(--text-strong);
  }

  .global-nav > ul > li > a.current {
    color: var(--text-strong);
    border-bottom-color: var(--accent);
  }

  .global-sub {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 230px;
    padding: 10px 0;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }

  .global-nav li:hover > .global-sub,
  .global-nav li:focus-within > .global-sub {
    opacity: 1;
    visibility: visible;
  }

  .global-sub a {
    display: block;
    padding: 8px 18px;
  }

  .global-sub a[aria-current] {
    color: var(--text-strong);
  }
}

@media (min-width: 1200px) and (max-width: 1440px) {
  .site-header .logo span {
    display: none;
  }
}

/* 日本語のメニューが語の途中で折り返さないように（「プッシュロッド サスペンション」はスペースで折り返す） */
.site-menu li a {
  word-break: keep-all;
}

/* ---------- トップのニュース ---------- */

.top-news {
  padding: 70px 0 10px;
  border-top: 1px solid var(--line);
}

.top-news-title {
  margin-bottom: 30px;
  color: var(--text-strong);
  font-size: 20px;
  letter-spacing: 0.25em;
}

.top-news-more {
  margin-top: 36px;
  text-align: center;
}

/* ---------- ニュースの一覧 ---------- */

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px;
}

.news-item a {
  display: block;
  text-decoration: none;
}

.news-item-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 12px;
  background: #111;
}

.news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.news-item a:hover .news-item-img img {
  transform: scale(1.04);
}

.news-item-date {
  display: block;
  color: var(--text-sub);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.news-item-title {
  display: block;
  margin-top: 4px;
  color: var(--text-strong);
  line-height: 1.6;
}

.news-item a:hover .news-item-title {
  color: var(--accent);
}

.news-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
}

.news-pager .page-numbers {
  min-width: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--text-strong);
  text-align: center;
  text-decoration: none;
}

.news-pager .current,
.news-pager a:hover {
  border-color: var(--text-strong);
}

/* ---------- ニュースの記事 ---------- */

.news-article {
  padding-top: 60px;
}

.news-article-date {
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.news-article-title {
  margin: 8px 0 30px;
  color: var(--text-strong);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
}

.news-article-photo {
  margin-bottom: 36px;
}

.news-back {
  margin-top: 60px;
  text-align: center;
}

/* 記事の本文（エディタで書いたもの） */
.entry-content > * + * {
  margin-top: 1.2em;
}

.entry-content h2 {
  margin-top: 2.2em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 20px;
}

.entry-content h3 {
  margin-top: 1.8em;
  color: var(--text-strong);
  font-size: 17px;
}

.entry-content a {
  color: var(--text-strong);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--accent);
}

.entry-content ul {
  margin-left: 1.5em;
  list-style: disc;
}

.entry-content ol {
  margin-left: 1.5em;
  list-style: decimal;
}

.entry-content figure {
  margin: 1.6em 0;
}

.entry-content figcaption {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 12px;
}

.entry-content table {
  width: 100%;
  border-top: 1px solid var(--line);
}

.entry-content th,
.entry-content td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.entry-content iframe {
  max-width: 100%;
}

.entry-content .news-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.entry-content .news-video--portrait video {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

.entry-content .news-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.entry-content .news-gallery a {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0b0b0b;
}

.entry-content .news-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.entry-content .news-gallery a:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.entry-content .news-gallery--even a,
.entry-content .news-gallery--even a:first-child {
  grid-column: auto;
  aspect-ratio: 3 / 4;
}

.entry-content .news-gallery a:hover img {
  opacity: 0.8;
}

.entry-content .news-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-content .news-source {
  margin-top: 2em;
  color: var(--text-sub);
  font-size: 12px;
}

.entry-content .news-source a {
  color: var(--text-sub);
}

.entry-content .wp-block-image img,
.entry-content img {
  height: auto;
}

.entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.entry-content .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%;
}

.entry-content .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Story（/heritage/story/ の日本語表示） ---------- */

.page-body .story-intro {
  margin-bottom: 50px;
}

.page-body .story-section {
  margin-bottom: 60px;
}

.page-body .story-section h3 {
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: var(--text-strong);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

/* 章の写真。縦長は文の右に置いて文を左に流す。横長（--wide）は見出しの下に幅いっぱい */
.story-photo {
  float: right;
  width: 36%;
  margin: 4px 0 16px 30px;
}

.story-photo--wide {
  float: none;
  width: auto;
  margin: 0 0 24px;
}

.story-photo figcaption {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 12px;
}

.story-section::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 900px) {
  .story-photo {
    float: none;
    width: 70%;
    margin: 0 auto 20px;
  }

  .story-photo--wide {
    width: auto;
  }
}

.trail-text {
  max-width: 820px;
}

.media-row.story-section::after {
  display: none;
}

.media-row > div.trail-figures {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}

.trail-figures img {
  width: 100%;
}

@media (max-width: 900px) {
  .media-row > div.trail-figures {
    position: static;
  }
}

.story-people-lead {
  margin-bottom: 30px;
}

:lang(ja) .story-section h3 {
  word-break: auto-phrase;
  text-wrap: balance;
}

/* ---------- Movie（/video/） ---------- */

html body .movie-group-title,
html body .movie-year,
html body .movie-time {
  font-family: var(--font-display);
}

.movie-lead {
  margin-top: -16px;
  color: var(--text-sub);
}

.page-body .movie-group {
  margin: 60px 0 0;
}

.movie-group-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18px !important;
  letter-spacing: 0.25em;
}

.movie-group-lead {
  margin: -8px 0 22px;
  color: var(--text-sub);
  font-size: 14px;
}

.movie-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 22px;
}

/* 2本だけの段（ALYEN）は大きく */
.movie-list--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: none;
  background: #111;
  cursor: pointer;
}

/* YouTube のサムネイルは 4:3 で上下に黒帯があるので、16:9 に切り抜く */
.movie-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s, opacity 0.3s;
}

.movie-player:hover img {
  transform: scale(1.04);
  opacity: 0.8;
}

.movie-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.movie-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border: 1px solid var(--text-strong);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-strong);
  font-size: 18px;
  transition: background-color 0.3s;
}

.movie-play .fa {
  margin-left: 4px;
}

.movie-player:hover .movie-play {
  background: var(--accent);
  border-color: var(--accent);
}

.movie-time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 6px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-strong);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.movie-year {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.page-body .movie-title {
  margin: 2px 0 6px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.movie-date,
.movie-desc,
.movie-alt {
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.8;
}

.page-body .movie-desc p + p {
  margin-top: 0.6em;
}

.movie-alt {
  margin-top: 6px;
}

.movie-alt a {
  color: var(--text-strong);
}

.movie-channel {
  margin-top: 60px;
  text-align: center;
}

@media (max-width: 900px) {
  .movie-list,
  .movie-list--2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-body .movie-group {
    margin-top: 44px;
  }
}

@media (max-width: 900px) {
  .news-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .top-news {
    padding-top: 44px;
  }

  .news-article {
    padding-top: 36px;
  }

  .news-article-title {
    font-size: 21px;
  }
}
