/*
Theme Name: GeneratePress-child
Template: generatepress
Version: 1.0.0
*/

/* =========================
    ヘッダー&ナビ
========================= */
/* ヘッダー：ロゴ上・ナビ下 */
.site-header .inside-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ロゴ下の余白 */
.site-header .site-branding {
  margin-bottom: 16px;
}

/* ナビ全体 */
.main-navigation {
  width: 100%;
}

/* ナビ内側を中央寄せ */
.main-navigation .inside-navigation {
  display: flex;
  justify-content: center;
  max-width: none;
  padding: 0;
}

/* メニュー本体 */
.main-navigation .main-nav {
  width: 100%;
}

/* 親メニューは横並び */
.main-navigation .main-nav > ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* 親メニューの間隔 */
.main-navigation .main-nav > ul > li {
  margin: 0 12px;
  white-space: nowrap;
}

/* 親リンク */
.main-navigation .main-nav > ul > li > a {
  white-space: nowrap;
}

/* サブメニューは縦並び（ここが重要） */
.main-navigation .main-nav ul ul {
  display: block;
  min-width: 220px;
  width: max-content;
  white-space: nowrap;
}

/* サブメニュー項目 */
.main-navigation .main-nav ul ul li {
  display: block;
  width: 100%;
  margin: 0;
}

/* サブメニューリンク */
.main-navigation .main-nav ul ul li a {
  display: block;
  width: 100%;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

/* 3階層目も縦並び */
.main-navigation .main-nav ul ul ul {
  display: block;
}

/* 中央に少し寄せる */
@media (min-width: 769px) and (max-width: 1100px) {
  .main-navigation .main-nav > ul > li {
    margin: 0 6px;
  }

  .main-navigation .main-nav > ul > li > a {
    font-size: 14px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* =========================
    Hero全体
========================= */
.hero-video-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  margin-bottom: 20px;
}

/* 黒オーバーレイ */
.hero-video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* 背景動画 */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* テキスト配置（箱） */
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  padding: 0 4%;
}

/* 見出しスタイル */
.hero-copy h1 {
  line-height: 1.6;
  font-size: 42px;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0;
}

/* ボタン配置（箱） */
.hero-fv-button {
  position: absolute;
  left: 50%;
  bottom: 60px; /* ←位置調整 */
  transform: translateX(-50%);
  z-index: 3;
}

@media (max-width: 768px) {
  .hero-fv-button {
    left: 50%;
    bottom: 40px;
    width: calc(100% - 48px);
    transform: translateX(-50%);
  }
}

/* スクロール矢印 */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
}

.hero-scroll span {
  display: inline-block;
  animation: hero-bounce 1.8s infinite;
}

@keyframes hero-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* スマホ調整 */

@media (max-width: 768px) {
  .hero-video-hero {
    min-height: 80vh;
  }

  .hero-copy {
    padding: 0 24px;
  }

  .hero-copy h1 {
    font-size: 24px;
    line-height: 1.5;
  }
}
/* ===== ngk追加 ===== */
h3.top-banner {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 56px;
  padding: 10px 18px;
  box-sizing: border-box;
  border-bottom: none;
  background: transparent;

  text-align: center;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1f2d3d;
}
h2.top-banner {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 56px;
  padding: 10px 18px;
  box-sizing: border-box;
  border-bottom: none;
  background: transparent;

  text-align: center;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1f2d3d;
}
h3.top-banner-color {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 56px;
  padding: 10px 18px;
  box-sizing: border-box;
  border-bottom: none;
  background: transparent;

  text-align: center;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}
h2.top-banner::after {
  content: "";
  position: absolute;
  left: 0em;
  bottom: 0;
  width: calc(100%);
  height: 3px;
  background: #c30000;
  transform: scaleX(0);
  transform-origin: left center;
}

h3.top-banner::after {
  content: "";
  position: absolute;
  left: 0em;
  bottom: 0;
  width: calc(100%);
  height: 3px;
  background: #c30000;
  transform: scaleX(0);
  transform-origin: left center;
}

h3.top-banner-color::after {
  content: "";
  position: absolute;
  left: 0em;
  bottom: 0;
  width: calc(100%);
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}

h3.top-banner-color.is-inview::after {
  animation: topBannerLineGrow 0.9s ease-out forwards;
}

h3.is-inview::after {
  animation: topBannerLineGrow 1s ease-out forwards;
}
h2.top-banner-color.is-inview::after {
  animation: topBannerLineGrow 0.9s ease-out forwards;
}
h2.is-inview::after {
  animation: topBannerLineGrow 1s ease-out forwards;
}

@keyframes topBannerLineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
/*
h3.top-banner::before,
h3.top-banner::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #c30000;
  border-radius: 50%;
  box-sizing: border-box;
}

h3.top-banner::before {
  top: -19px;
  left: -19px;
}

h3.top-banner::after {
  right: -19px;
  bottom: -19px;
}
*/
@media (max-width: 768px) {
  .add-nogap > .kt-row-column-wrap {
    gap: 0 !important;
  }
}
@media (max-width: 768px) {
  h3.top-banner {
    padding: 10px 18px 0 18px;
    margin-bottom: 40px;
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.4;
  }

  h3.top-banner::before,
/*  h3.top-banner::after {
    width: 18px;
    height: 18px;
  }
*/
  h3.top-banner::before {
    top: -14px;
    left: -14px;
  }

  h3.top-banner::after {
    right: -14px;
    bottom: -14px;
  }
}

.business-item2.left {
  margin-right: auto;
}

.business-item2.right {
  margin-left: auto;
}

.business-item2 {
  width: 70%;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}

.business-item2.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media screen and (max-width: 768px) {
  .site-branding .site-description {
    display: none !important;
  }
}
#footer-widgets {
  background-color: #c30000;
}

.site-footer .wp-block-columns,
.site-footer .wp-block-columns.is-layout-flex {
  gap: 0 !important;
}
.fotterpadding {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
@media screen and (min-width: 769px) {
  .fotterpadding {
    padding: 80px 0 60px 0;
  }
  .footer-links {
    max-width: 270px;
  }
}
@media screen and (max-width: 768px) {
  .footer-brand img {
    padding: 40px 0 40px 0;
    margin: 0 auto !important;
  }
}
@media screen and (max-width: 768px) {
  .footer-address {
    max-width: 80%;
    margin: 0 auto;
    padding-bottom: 40px;
  }
  .footer-links {
    margin: 0 auto !important;
    max-width: 80%;
  }
  .fotterpadding .footer-links > ul {
    display: block !important;
    margin: 0;
    padding: 0;
    list-style: none;
    /*    border-top: 1px solid #c30000;*/
    /*    border-left: 1px solid #c30000;*/
    /*   border-right: 1px solid #c30000;*/
    box-sizing: border-box;
  }

  .fotterpadding .footer-links > ul > li {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none !important;
    /*    border-bottom: 1px solid #c30000;*/
    box-sizing: border-box;
  }

  .fotterpadding .footer-links > ul > li > a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
  }
}
@media screen and (max-width: 768px) {
  .fotterpadding > .footer-brand + .footer-links > ul > li:last-child {
    border-bottom: none;
  }
}

.top-2column {
  /*width: 1920px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-top: 100px;*/
  /*はみ出しの原因になるため無効化*/
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0px;
}
.top-2column-left,
.top-2column-right {
  text-align: center;
}
.top-2column-left > ul {
  margin-left: 0;
}
.top-2column-right > ul {
  margin-left: 0;
}
.top-2column-left > .wp-block-list,
.top-2column-right > .wp-block-list {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
  padding-left: 1.2em;
}

/* ============================================================
   top-2column ニュース / お知らせ カード表示
   対象: .top-2column-left-news / .top-2column-right-news
   ============================================================ */

/* ----- セクション全体レイアウト ----- */
.top-2column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .top-2column {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ----- セクション見出し (h2,h3 共通) ----- */
.top-2column-left > h2,
.top-2column-left > h3,
.top-2column-right > h2,
.top-2column-right > h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8b6f47;
  border-bottom: 2px solid #c8a96e;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-2column-left > h2::before,
.top-2column-left > h3::before,
.top-2column-right > h2::before,
.top-2column-right > h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #c8a96e;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ----- ニュースコンテナ ----- */
.top-2column-left-news,
.top-2column-right-news {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ul/li 構造のリセット */
.top-2column-left-news ul,
.top-2column-right-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ----- カード本体 (li / article / .post 共通) ----- */
.top-2column-left-news li,
.top-2column-right-news li,
.top-2column-left-news article,
.top-2column-right-news article,
.top-2column-left-news .post,
.top-2column-right-news .post {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200, 185, 165, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
  cursor: pointer;
  /* スクロール reveal 用 */
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.28s ease;
}

/* Intersection Observer で付与 */
.top-2column-left-news li.tc-visible,
.top-2column-right-news li.tc-visible,
.top-2column-left-news article.tc-visible,
.top-2column-right-news article.tc-visible,
.top-2column-left-news .post.tc-visible,
.top-2column-right-news .post.tc-visible {
  opacity: 1;
  transform: translateY(0);
}

.top-2column-left-news li:hover,
.top-2column-right-news li:hover,
.top-2column-left-news article:hover,
.top-2column-right-news article:hover,
.top-2column-left-news .post:hover,
.top-2column-right-news .post:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 12px 28px rgba(120, 90, 40, 0.12);
}

/* ----- カード内リンク ----- */
.top-2column-left-news li > a,
.top-2column-right-news li > a,
.top-2column-left-news article > a,
.top-2column-right-news article > a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* ----- サムネイル画像 ----- */
.top-2column-left-news li img,
.top-2column-right-news li img,
.top-2column-left-news article img,
.top-2column-right-news article img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.top-2column-left-news li:hover img,
.top-2column-right-news li:hover img,
.top-2column-left-news article:hover img,
.top-2column-right-news article:hover img {
  transform: scale(1.06);
}

/* 画像ラッパーにoverflow:hiddenが必要（JS で付与） */
.tc-img-wrap {
  overflow: hidden;
  position: relative;
}

/* カテゴリバッジ (JS 生成) */
.tc-cat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(30, 30, 30, 0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* ----- カードのテキストエリア ----- */
.tc-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* コンテンツ部分が伸びてCTAを底に固定するための親 */
}

.tc-card-title {
  font-size: 13.5px;
  line-height: 1.7;
  color: #2a2015;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* flex: 1 はここでは外す。本文テキストが伸びて押し出すため */
}

/* ----- 投稿本文テキスト ----- */
.tc-card-body .entry-content,
.tc-card-body .post-content,
.tc-card-body .the-content,
.tc-card-body > p:not(.tc-card-title) {
  font-size: 16px;
  line-height: 1.75;
  color: #6b5c44;
  margin-top: 8px;
  flex: 1; /* ← 本文が伸びてmore-linkをカード底に押す */
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 3行でクリップ */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 本文内の余分なpタグ余白を除去 */
.tc-card-body .entry-content p,
.tc-card-body .post-content p,
.tc-card-body .the-content p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* 本文がない場合はtc-card-titleが伸びる */
.tc-card-body:not(:has(.entry-content)):not(:has(.post-content)):not(
    :has(.the-content)
  )
  .tc-card-title {
  flex: 1;
}

/* 画像がない場合のフォールバック */
.top-2column-left-news li:not(:has(img)) .tc-card-body,
.top-2column-right-news li:not(:has(img)) .tc-card-body {
  padding: 16px;
}

/* ----- Read more (.more-link) のスタイル統一 ----- */
/* WordPressデフォルトのmore-linkを「詳しく見る」デザインに統一 */
.tc-card-body a.more-link,
.tc-card-body .more-link a,
.tc-card-body .more-link {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(200, 169, 110, 0.25);
  font-size: 11px;
  font-weight: 700;
  color: #c8a96e;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
  /* WordPressが付けるデフォルトspanを隠す */
}

/* "Read more" "続きを読む" 等の文言を上書き */
.tc-card-body a.more-link::before,
.tc-card-body .more-link a::before {
  content: "詳しく見る";
  font-size: 11px;
}

/* WordPressが挿入するscreen-reader-text等のspan非表示 */
.tc-card-body a.more-link .screen-reader-text,
.tc-card-body .more-link .screen-reader-text {
  display: none;
}

/* 矢印を追加 */
.tc-card-body a.more-link::after,
.tc-card-body .more-link a::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.2s ease;
}

/* more-link が存在するとき、JS生成の .tc-arrow は非表示 */
.tc-card-body:has(a.more-link) .tc-arrow,
.tc-card-body:has(.more-link) .tc-arrow {
  display: none;
}

/* ホバー */
.top-2column-left-news li:hover a.more-link,
.top-2column-right-news li:hover a.more-link,
.top-2column-left-news li:hover .more-link a,
.top-2column-right-news li:hover .more-link a {
  gap: 8px;
  color: #b8943e;
}

.top-2column-left-news li:hover a.more-link::after,
.top-2column-right-news li:hover a.more-link::after,
.top-2column-left-news li:hover .more-link a::after,
.top-2column-right-news li:hover .more-link a::after {
  transform: translateX(4px);
}

/* ----- 矢印（JS生成 .tc-arrow / more-linkがない場合に表示） ----- */
.tc-arrow {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0.5px solid rgba(200, 169, 110, 0.25);
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #c8a96e;
  letter-spacing: 0.08em;
  transition: gap 0.2s ease;
}

.tc-arrow::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.2s ease;
}

.top-2column-left-news li:hover .tc-arrow,
.top-2column-right-news li:hover .tc-arrow {
  gap: 8px;
}

.top-2column-left-news li:hover .tc-arrow::after,
.top-2column-right-news li:hover .tc-arrow::after {
  transform: translateX(3px);
}

/* ============================================================
   WordPress Latest Posts ブロック専用上書き
   実DOM: ul.wp-block-latest-posts > li > {featured-image, a.title, time, div.excerpt}
   ============================================================ */

/* JS が a タグ内に誤注入した tc-card-body / tc-arrow を非表示 */
.wp-block-latest-posts li .tc-card-body,
.wp-block-latest-posts li .tc-arrow {
  display: none !important;
}

/* li を縦並びフレックスに（カード全体の高さ調整用） */
.top-2column-left-news.wp-block-latest-posts li,
.top-2column-right-news.wp-block-latest-posts li {
  display: flex;
  flex-direction: column;
}

/* 画像：インライン max-width/max-height を強制上書き */
.top-2column-left-news .wp-block-latest-posts__featured-image img,
.top-2column-right-news .wp-block-latest-posts__featured-image img {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

/* タイトルリンク */
.top-2column-left-news a.wp-block-latest-posts__post-title,
.top-2column-right-news a.wp-block-latest-posts__post-title {
  display: block;
  padding: 14px 16px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
  color: #2a2015;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-2column-left-news li:hover a.wp-block-latest-posts__post-title,
.top-2column-right-news li:hover a.wp-block-latest-posts__post-title {
  color: #8b6f47;
}

/* 投稿日 */
.top-2column-left-news time.wp-block-latest-posts__post-date,
.top-2column-right-news time.wp-block-latest-posts__post-date {
  display: block;
  padding: 4px 16px 0;
  font-size: 11px;
  color: #a08060;
  letter-spacing: 0.03em;
}

/* 本文エリア：flex で伸ばして Read more を底に固定 */
.top-2column-left-news .wp-block-latest-posts__post-excerpt,
.top-2column-right-news .wp-block-latest-posts__post-excerpt {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 16px 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #6b5c44;
}

/* Read more コンテナ：margin-top:auto で底に張り付く */
.top-2column-left-news .read-more-container,
.top-2column-right-news .read-more-container {
  margin-top: auto;
  padding-top: 10px;
  border-top: 0.5px solid rgba(200, 169, 110, 0.25);
}

/* Read more リンク → 「詳しく見る →」 */
.top-2column-left-news a.read-more,
.top-2column-right-news a.read-more {
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  /* button クラスの見た目リセット */
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  /* 元の "Read more" テキストを隠す */
  font-size: 0 !important;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

/* 「詳しく見る」テキストを ::before で挿入 */
.top-2column-left-news a.read-more::before,
.top-2column-right-news a.read-more::before {
  content: "詳しく見る";
  font-size: 11px;
  font-weight: 700;
  color: #c8a96e;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

/* → 矢印 */
.top-2column-left-news a.read-more::after,
.top-2column-right-news a.read-more::after {
  content: "→";
  font-size: 13px;
  font-weight: 700;
  color: #c8a96e;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

/* ホバー */
.top-2column-left-news li:hover a.read-more,
.top-2column-right-news li:hover a.read-more {
  gap: 8px;
}

.top-2column-left-news li:hover a.read-more::before,
.top-2column-right-news li:hover a.read-more::before {
  color: #b8943e;
}

.top-2column-left-news li:hover a.read-more::after,
.top-2column-right-news li:hover a.read-more::after {
  transform: translateX(4px);
  color: #b8943e;
}

.top-2column-name {
  position: relative;
  border: 1px solid #ccc;
  border-top: none;
  padding-left: 15px;
  padding-right: 15px;
  box-shadow: inset 0 1px 0 #fff;
  background: linear-gradient(to bottom, #e5e5e5, #fff);
  overflow: hidden;
}

/* 上端のベース線 */
.top-2column-name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d8d8d8;
  z-index: 1;
}

/* 動く赤線 */
.top-2column-name .top-2column-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px; /* 赤線の長さ */
  height: 2px;
  background: #c30000;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
}

/* ===== 2026.0401〜 川島追加 ===== */
/* =========================
   Catch Section
========================= */
/*.catch-section {
  background: #fdf2f2;
  padding: 30px 24px;
}*/

/* =========================
   TOP事業内容 Section
========================= */
.business-section {
  background-color: #c30000;
  padding: 80px 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 2px,
    transparent 2px,
    transparent 19px
  );
}

/* セクション全体 */
.business-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .top-sp-padding,
  .business-section {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

/* =========================
   youtube Section
========================= */
.youtube-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
  box-sizing: border-box;
}

.youtube-grid iframe {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  display: block;
  border: 0;
}

.youtube-time-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 6px 12px;

  color: #c30000 !important;
  background: transparent;
  border-bottom: 1.5px solid #c30000;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none !important;

  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.youtube-time-wrap a::after {
  content: "→";
  font-size: 14px;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.youtube-time-wrap a:hover {
  gap: 10px;
  color: #a00000 !important;
}

.youtube-time-wrap a:hover::after {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .youtube-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
    margin-bottom: 56px;
  }
}

/* =========================
   Footer layout adjust（3カラム版）
========================= */

/* 全体レイアウト */
.footer-links-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  padding: 40px 24px 0;
}

/* =========================
   左：ロゴエリア
========================= */

.footer-brand {
  max-width: 320px;
  line-height: 1.7;
}

.footer-brand img {
  max-width: 320px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

/* =========================
   リンク共通
========================= */

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 20px;
  line-height: 1.8;
  font-size: 16px;
}

.footer-links li::before {
  /*  content: "-"; */
  position: absolute;
  left: 0;
  top: 0;
  color: #c30000;
  font-size: 16px;
}

.footer-links a {
  color: #c30000;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* =========================
   スマホ対応
========================= */

@media (max-width: 768px) {
  .footer-links-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links li {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* ===== 2026.0403 川島追加 ===== */
body {
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading,
.kt-adv-heading,
.kb-advanced-heading,
.gb-headline {
  font-family:
    "Zen Maru Gothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic,
    Meiryo, sans-serif !important;
}

/* =========================
   パンくず 全体
========================= */
.aioseo-breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px 12px;

  /* フォントをサイトと統一 */
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;

  color: #333;
}

/* リンク */
.aioseo-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.aioseo-breadcrumbs a:hover {
  text-decoration: underline;
}

/* 区切り（»）の調整 */
.aioseo-breadcrumbs .aioseo-breadcrumb-separator {
  margin: 0 6px;
  opacity: 0.6;
}

/* ヘッダーとの位置調整 */
.inside-header + .aioseo-breadcrumbs {
  margin-top: 6px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .aioseo-breadcrumbs {
    padding: 6px 16px 10px;
    font-size: 13px;
  }
}

/* =========================
   投稿一覧ページ
========================= */
/* Looper全体：3カラム間の余白 */
.news-loop {
  gap: 40px 32px !important;
}

/* 各投稿カード */
.news-loop > * {
  min-width: 0;
  text-align: center;
}

/* アイキャッチ枠 */
.news-loop .wp-block-post-featured-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 auto 16px;
  display: block;
}

/* 画像を枠いっぱいに */
.news-loop .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル */
.news-loop .gb-headline,
.news-loop .wp-block-post-title {
  margin: 0 0 8px;
  line-height: 1.5;
}

/* 日付 */
.news-loop .gb-text,
.news-loop .wp-block-post-date {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* ===== カード全体ホバー ===== */
.news-loop > * {
  position: relative;
  transition: transform 0.3s ease;
}

.news-loop > *:hover {
  transform: translateY(-4px);
}

/* ===== 画像ホバー ===== */
.news-loop .wp-block-post-featured-image {
  overflow: hidden;
}

.news-loop .wp-block-post-featured-image img {
  transition: transform 0.3s ease;
}

.news-loop .wp-block-post-featured-image:hover img {
  transform: scale(1.05);
}

.news-loop .gb-text a {
  text-decoration: none !important;
  color: #c30000;
}

/* ホバー時 */
.news-loop .gb-text a:hover {
  text-decoration: underline !important;
}

/* スマホは1列 */
@media (max-width: 768px) {
  .news-loop {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* =========================
   Hero Section
========================= */
.hero-copy {
  letter-spacing: 0.05em;
  text-align: left;

  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.25),
    0 10px 25px rgba(0, 0, 0, 0.15);

  opacity: 0;
  transform: translateY(15px);
  animation: fadeUpSlow 1.5s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes fadeUpSlow {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   共通「詳しく見る」リンク
========================= */
.linked-section {
  position: relative;
  cursor: pointer;
}

/* セクションhover時に見出しも赤に */
.linked-section:hover .business-title {
  color: #c30000;
}

.business-title {
  transition: color 0.2s ease;
}

/* 「詳しく見る」本体 */
.more-link-common {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: flex-start;

  min-width: 220px;
  padding: 0 0 10px 0;
  margin-top: 20px;

  background: transparent;
  color: #191919;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;

  border-bottom: 1.5px solid #191919;
  transition:
    color 0.2s ease,
    border-bottom-color 0.2s ease;
}

.more-link-common a,
.more-link-common a:hover,
.more-link-common a:focus,
.more-link-common a:active,
.more-link-common a:visited {
  text-decoration: none !important;
  background-image: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* 矢印 */
.more-link-common::after {
  content: "›";
  font-size: 24px;
  line-height: 1;
  margin-left: 16px;
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

/* hover */
.more-link-common:hover {
  color: #c30000;
  border-bottom-color: #c30000;
}

.more-link-common:hover::after {
  transform: translateX(8px);
}

/* Sectionにhoverしたら詳しく見るも反応 */
.linked-section:hover .more-link-common {
  color: #c30000;
  border-bottom-color: #c30000;
}

.linked-section:hover .more-link-common::after {
  transform: translate(8px, -1px);
}

/* =========================
   Hero用（上書き）
========================= */
.hero-fv-button .more-link-common {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 20px;
  border-radius: 4px;
  border: none;
  display: inline-flex;
  align-items: center;
}

.hero-fv-button .more-link-common:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-bottom-color: transparent;
}

.hero-fv-button .more-link-common::after {
  color: #fff;
}

/* =========================
   事業コンテンツ用 浮かせカード
========================= */
.business-floating-card {
  max-width: 1300px;
  margin: 0 auto;
  background: #f7f7f7;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.business-floating-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
  background: #fbfbfb;
}

/* =========================
   写真フレーム
========================= */
.photo-frame {
  border: 10px solid #eae2dd;
  outline: 2px solid rgba(214, 58, 58, 0.6);
  background: #fff7f7;
  padding: 4px;
}

/* =========================
   SPではテキスト上・画像下
========================= */
@media (max-width: 768px) {
  .reverse-on-pc {
    display: flex;
    flex-direction: column;
  }

  .reverse-on-pc .section-text {
    order: 1;
  }

  .reverse-on-pc .section-image {
    order: 2;
  }
}

/* =========================
   ロボットの歴史 ロボット三原則
========================= */
.robot-law {
  border: 2px dotted #d96b6b;
  background: #fff7f7;
  padding: 32px 40px;
  margin: 32px 0;
  border-radius: 6px;
}

/* 条タイトル */
.robot-law h5 {
  color: #c30000;
  margin-bottom: 0;
}

/* 最後だけ余白消す */
.robot-law p:last-child {
  margin-bottom: 0;
}

/* =========================
   youtube Section
========================= */
.hover-up {
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =========================
   バナー Section
========================= */

.footer-banner-wrap {
  background: #c81f00;
  padding: 12px 20px 16px;
}

.footer-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* ===== 3カラム ===== */
.footer-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ←均等にする */
  gap: 20px;
  align-items: start;
}

/* ===== 各カラム ===== */
.footer-banner-col {
  max-width: 260px;
  margin: 0 auto; /* ←中央揃え */
}

.footer-banner-col h3 {
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  font-weight: 700;
}

/* =========================
   検索
========================= */
.footer-search {
  margin: 32px 0 10px;
}

.footer-search form {
  display: flex;
  max-width: 220px;
}

.footer-search input[type="search"] {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border: none;
  font-size: 13px;
}

/* フッター検索ボタン */
.footer-search button {
  width: 56px;
  padding: 0;
  font-size: 0;
  position: relative;
  background: #666;
  border: none;
  cursor: pointer;
}

/* 虫眼鏡アイコン */
.footer-search button::before {
  content: "⌕";
  font-size: 35px;

  color: #fff;

  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(-1);
}

/* =========================
   SNS 上段
========================= */
.sns-top {
  display: grid;
  grid-template-columns: repeat(2, 80px);
  gap: 10px;
  justify-content: center;
  margin-bottom: 12px;
}

.sns-top a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.sns-top img {
  width: 70px;
}

.sns-top span {
  margin-top: 4px;
  font-size: 11px;
}

/* =========================
   YouTube
========================= */
.sns-youtube {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.sns-youtube a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.sns-youtube img {
  width: 210px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.sns-youtube span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   中央（関連リンク）
========================= */
.middle-banner-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.middle-banner-list img {
  width: 220px;
}

/* =========================
   右（協力団体）
========================= */
.logo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.logo-list img {
  width: 220px;
}

.middle-banner-list img,
.logo-list img,
.sns-youtube img {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

/* スマホの見せ方 */
@media (max-width: 768px) {
  .footer-banner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-banner-col {
    max-width: 100%;
  }

  .sns-top {
    grid-template-columns: repeat(2, 80px);
  }

  .sns-youtube img,
  .middle-banner-list img,
  .logo-list img {
    width: 100%;
    max-width: 240px;
  }
}

/* =========================
   Footer Section
========================= */
/*フッターの住所小さく*/
.footer-address {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* =========================
   Copy right Section
========================= */
.footer-copyright-bar {
  background: #c30000;
  color: #fff;
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.footer-copyright-bar p {
  margin: 0;
  color: #fff;
}

/* =========================
   サイトマップPage
========================= */
/* サイトマップ見出し */
.section-title {
  position: relative;
  padding-left: 10px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: #d91e18;
  border-radius: 3px;
}

/* サイトマップ見出しリンク */
.section-title a,
.sitemap-top a,
a.sitemap-top {
  color: #444;
  text-decoration: none;
  transition: 0.3s ease;
}

/* ホバー時だけ下線 */
.section-title a:hover,
.sitemap-top a:hover,
a.sitemap-top:hover {
  color: #d91e18;
  text-decoration: underline;
}

/* リスト */
.sitemap-page ul {
  margin: 0;
  padding-left: 1.2em;
}

/* 項目 */
.sitemap-page li {
  margin-bottom: 14px;
  line-height: 1.8;
}

/* リンク */
.sitemap-page li a {
  color: #444;
  text-decoration: none;
  transition: 0.3s ease;
}

/* hover */
.sitemap-page li a:hover {
  color: #d91e18;
  text-decoration: underline;
}

/* SP */
@media (max-width: 768px) {
  .sitemap-page .sitemap-group {
    padding: 18px;
    min-height: auto;
  }

  .sitemap-page .sitemap-group h3 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .sitemap-page li {
    margin-bottom: 10px;
    line-height: 1.7;
  }

  .sitemap-page .sitemap-top a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* サイトマップ：子階層リスト */
.sitemap-page .sitemap-sub-list {
  margin-top: -8px;
  margin-left: 28px;
}

.sitemap-page .sitemap-sub-list .kt-svg-icon-list-item-wrap {
  font-size: 0.95em;
  color: #555;
}

/* ===============================
   お知らせ一覧Page
================================ */
/* お知らせ一覧ページ：リンク通常時 */
.news-list a {
  color: #333 !important;
  text-decoration: none !important;
}

/* お知らせ一覧ページ：リンクホバー時 */
.news-list a:hover {
  color: #c30000 !important;
  text-decoration: underline !important;
}

.news-list p,
.news-list h1,
.news-list h2,
.news-list h3,
.news-list h4,
.news-list h5,
.news-list h6 {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .news-list .gb-loop-item {
    margin-bottom: 0 !important;
  }

  .news-list .kb-row-layout-wrap,
  .news-list .kt-row-column-wrap {
    row-gap: 0 !important;
    gap: 0 !important;
  }
}

/* ===============================
   投稿Page
================================ */
/* 投稿タイトルデザイン */
.single-post h1 {
  background: #fdf2f2;
  padding: 3px 14px;
  border-radius: 8px;
  position: relative;
  font-weight: 700;

  margin: 32px 0 16px;
  text-align: left;
}

/* 左の赤ライン */
.single-post h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #c30000;
  border-radius: 2px;
}

/* 投稿ページのタイトルサイズ調整 */
.single-post h1 {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 16px;
}

/* 投稿ページのアイキャッチ非表示 */
.single-post .post-image,
.single-post .featured-image,
.single-post .wp-post-image {
  display: none;
}

/* ページネーション横はみ出し防止 */
@media (max-width: 768px) {
  .gb-query-loop-pagination {
    max-width: 100%;
    overflow-x: hidden;
  }

  .gb-query-loop-pagination nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    white-space: normal !important;
  }

  .gb-query-loop-pagination .page-numbers {
    min-width: 38px;
    box-sizing: border-box;
  }
}
/* =========================
   財団についてPage
========================= */
/* 会社概要 全体 */
.info-list {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 48px;
  background-image: linear-gradient(#ccc, #ccc);
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-position: 210px 0; /* ← 線の位置。後で微調整 */
}

/* 各行の間隔 */
.info-list .kb-row-layout-wrap {
  margin-bottom: 20px !important;
}

.info-list .kb-row-layout-wrap:last-child {
  margin-bottom: 0 !important;
}

/* 行の中の余白 */
.info-list .kt-row-column-wrap {
  padding: 8px 0;
}

/* 左カラム */
.info-list .kt-row-column-wrap > .wp-block-kadence-column:first-child {
  flex: 0 0 160px;
  max-width: 160px;
  padding-right: 30px;
  margin-right: 30px;
  border-right: none !important;
}

/* 左の文字 */
.info-list .kt-row-column-wrap > .wp-block-kadence-column:first-child p {
  margin: 0;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}

/* 右の文字 */
.info-list .kt-row-column-wrap > .wp-block-kadence-column:last-child p {
  margin: 0;
  line-height: 1.8;
}

/* URL */
.info-list a {
  color: #c30000;
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
}

/* SPでは縦線を消す */
@media (max-width: 768px) {
  .info-list {
    background-image: none;
  }

  .info-list .kt-row-column-wrap > .wp-block-kadence-column:first-child {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 6px;
  }
}

/* ===============================
   役員名簿テーブル
================================ */
@media (max-width: 768px) {
  .officer-table table,
  .officer-table thead,
  .officer-table tbody,
  .officer-table tr,
  .officer-table th,
  .officer-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* 見出し行を非表示 */
  .officer-table tr:first-child {
    display: none;
  }

  /* 1名ごとにカード化 */
  .officer-table tr {
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
  }

  .officer-table td {
    padding: 10px 12px !important;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
    text-align: left !important;
    line-height: 1.6;
  }

  .officer-table td:last-child {
    border-bottom: none !important;
  }

  /* ラベル表示 */
  .officer-table td::before {
    display: block;
    color: #666;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
  }

  .officer-table td:nth-child(1)::before {
    content: "役名";
  }

  .officer-table td:nth-child(2)::before {
    content: "氏名";
  }

  .officer-table td:nth-child(3)::before {
    content: "当法人以外の勤務先、関係する法人等の名称、役職";
  }

  .officer-table td:nth-child(4)::before {
    content: "常勤・非常勤";
  }

  /* 長い肩書きだけ少し読みやすく */
  .officer-table td:nth-child(3) {
    font-size: 16px;
    line-height: 1.8;
  }

  /* カード感を少し強める */
  .officer-table tr {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  /* ラベル色を財団カラー寄りに */
  .officer-table td::before {
    color: #c30000;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  /* 役名だけ少し目立たせる */
  .officer-table td:nth-child(1) {
    background: #fff7f7;
  }

  /* 本文余白少し広げる */
  .officer-table td {
    padding: 14px 16px !important;
  }
}

/* =========================
   定款Page
========================= */
.purpose-page {
  color: #c30000;
  margin-bottom: 0;
}

/* ===============================
   事業の紹介Page 親
================================ */
.card-hover-exhibition {
  overflow: hidden;
}

.card-hover-exhibition img {
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
  border-radius: 8px;
}

.card-hover-exhibition:hover img {
  transform: scale(1.04);
}

.card-hover-exhibition h5 {
  line-height: 1.4;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  transition: color 0.35s ease;
}

.card-hover-exhibition:hover h5 {
  color: #c30000;
}

/* ===============================
   事業の紹介page 子
================================ */
/*事業の紹介などに下線*/
.heading-underline-main {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  padding-bottom: 4px;
  line-height: 1.4;
  position: relative;
  border-bottom: none;
}

.heading-underline-main::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0;
  height: 3px;
  background: #c30000;

  animation: underline-slide 2.5s ease-out forwards;
}

@keyframes underline-slide {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/*事業の紹介などのサブタイトルデザイン*/
.section-title-box {
  background: #fdf2f2;
  padding: 3px 14px;
  border-radius: 8px;
  position: relative;
  font-weight: 700;
  margin: 32px 0 16px;
}

/* 左にライン入れる */
.section-title-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #c30000;
  border-radius: 2px;
}

/* ドットで囲う */
.info-dotted-box {
  border: 2px dotted #d96b6b;
  background: #fff7f7;
  padding: 32px 40px;
  margin: 32px 0;
  border-radius: 6px;
}
.info-dotted-box p {
  margin: 0 0 28px;
}

.info-dotted-box p:last-child {
  margin-bottom: 0;
}

.info-dotted-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 40px;
}

/* アイコンリストのスマホ表示 */
@media (max-width: 768px) {
  .kt-svg-icon-list .kt-svg-icon-list-item-wrap {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px;
  }

  .kt-svg-icon-list .kb-svg-icon-wrap {
    flex: 0 0 auto;
    margin-top: 0.25em;
  }

  .kt-svg-icon-list .kt-svg-icon-list-text {
    display: block;
    flex: 1;
  }
}

/* ===============================
   展示会写真ありの年表
================================ */
.history-table.exhibition-history-table table {
  width: 100%;
  table-layout: auto;
}

/* 開催年月日 */
.history-table.exhibition-history-table table th:nth-child(1),
.history-table.exhibition-history-table table td:nth-child(1) {
  width: 180px;
  min-width: 180px;
}

/* 会場名 */
.history-table.exhibition-history-table table th:nth-child(2),
.history-table.exhibition-history-table table td:nth-child(2) {
  width: 260px;
  min-width: 260px;
  text-align: center;
}

/* 内容 */
.history-table.exhibition-history-table table th:nth-child(3),
.history-table.exhibition-history-table table td:nth-child(3) {
  width: auto;
}

@media (min-width: 769px) {
  /* 開催年月日 */
  .history-table.exhibition-history-table table th:nth-child(1),
  .history-table.exhibition-history-table table td:nth-child(1) {
    background: #fff7f7;
    font-weight: 700;
  }

  /* 会場名ヘッダー */
  .history-table.exhibition-history-table table th:nth-child(2) {
    background: #fff7f7;
  }

  /* 会場本文 */
  .history-table.exhibition-history-table table td:nth-child(2) {
    background: #fff;
  }

  /* 内容・写真ヘッダー */
  .history-table.exhibition-history-table table th:nth-child(3) {
    background: #fff7f7;
  }

  /* 内容・写真本文 */
  .history-table.exhibition-history-table table td:nth-child(3) {
    background: #f5f5f5;
  }
}

/* スマホ表示 */
@media (max-width: 768px) {
  .history-table.exhibition-history-table table,
  .history-table.exhibition-history-table tbody,
  .history-table.exhibition-history-table tr,
  .history-table.exhibition-history-table th,
  .history-table.exhibition-history-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* 見出し行を非表示 */
  .history-table.exhibition-history-table tr:first-child {
    display: none;
  }

  .history-table.exhibition-history-table tr {
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
  }

  .history-table.exhibition-history-table td {
    padding: 10px 14px !important;
    text-align: left !important;
  }

  .history-table.exhibition-history-table td:nth-child(1) {
    color: #c30000;
    font-weight: 700;
    background: #fff7f7;
    padding: 6px 12px !important;
  }

  .history-table.exhibition-history-table td:nth-child(2) {
    font-weight: 700;
    padding: 6px 12px !important;
  }

  /* SP：展示会年表カードは白ベース */
  .history-table.exhibition-history-table tr {
    background: #fff !important;
  }

  .history-table.exhibition-history-table td {
    background: #fff !important;
  }

  /* 開催年月日だけピンク */
  .history-table.exhibition-history-table td:nth-child(1) {
    background: #fff7f7 !important;
  }
}

/* ===============================
   展示会資料Page
================================ */
/* PDFリスト：通常 */
.pdf-item a {
  color: #333 !important;
  text-decoration: none !important;
  cursor: pointer;
}

/* PDFリスト：ホバー */
.pdf-item a:hover {
  color: #c30000 !important;
  text-decoration: underline !important;
}

/* ===============================
   生涯学習事業・玩具製作企画事業Page
================================ */
/* 生涯学習推進の活動状況・シュタイフコラボ年表：年代列だけピンク */
.year-pink-table table tr > th:first-child,
.year-pink-table table tr > td:first-child {
  background: #fff7f7 !important;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

/* 写真付き2列年表 */
.image-history-table table {
  width: 100%;
  table-layout: fixed;
}

/* 左：年代 */
.image-history-table table td:first-child {
  width: 220px;
  min-width: 220px;
  background: #fff7f7;
  font-weight: 700;
  text-align: center;
  vertical-align: top;
  padding: 120px 20px 30px;
}
/* 右：本文＋写真 */
.image-history-table table th:nth-child(2),
.image-history-table table td:nth-child(2) {
  width: auto;
  background: #fff;
  vertical-align: top;
  padding: 28px 32px;
}

@media (max-width: 768px) {
  .image-history-table table,
  .image-history-table tbody,
  .image-history-table tr,
  .image-history-table th,
  .image-history-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .image-history-table table,
  .image-history-table tbody {
    border: none !important;
    box-shadow: none !important;
  }

  .image-history-table table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .image-history-table tr {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
  }

  .image-history-table table td:first-child {
    background: #fff7f7 !important;
    padding: 14px 16px !important;
  }

  .image-history-table table td:nth-child(2) {
    padding: 18px 16px !important;
  }
}

/* ===============================
   ぬいぐるみ制作企画の年表
================================ */
/* 年代セルだけピンク */
.limited-bear-table tr > td:first-child {
  background: #fff7f7;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

/* 1セルだけの説明行は白に戻す */
.limited-bear-table tr > td:only-child {
  background: #fff !important;
  font-weight: 400;
  text-align: left;
  white-space: normal;
}

/* =========================
   シュタイフお問い合わせ
========================= */

.steiff-contact-form {
  background: #fff7f7;
  padding: 32px;
  border-radius: 6px;
  max-width: 720px;
  margin: 32px auto;
  box-sizing: border-box;
}

/* 入力欄 */
.steiff-contact-form input,
.steiff-contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 12px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

/* ラベル */
.steiff-contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

/* 各項目間 */
.steiff-contact-form p {
  margin-bottom: 24px;
}

/* 送信ボタン */
.steiff-contact-form input[type="submit"],
.steiff-contact-form button,
.steiff-contact-form .wpcf7-submit {
  background: #c30000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
}

/* SP */
@media (max-width: 768px) {
  .steiff-contact-form {
    padding: 20px;
  }
}

/* ===============================
   年表スタイル・基本
================================ */
/* 年表系の1番左スタイル*/
.history-table table th:first-child,
.history-table table td:first-child {
  white-space: nowrap;
  width: 100px;
  min-width: 100px;
  text-align: center;
}

.history-table tr:nth-child(even) {
  background-color: #f7f7f7;
}

.history-table table td p,
.history-table table th p {
  margin-bottom: 0 !important;
}

/* ===============================
   おもちゃ文化・おもちゃの歴史、テディベアの歴史
================================ */
/* 年代列をピンク */
.history-table.toy-history-table td:nth-child(1),
.history-table.toy-history-table th:nth-child(1),
.history-table.teddy-history-table td:nth-child(1),
.history-table.teddy-history-table th:nth-child(1) {
  background: #fff7f7;
}

/* ===============================
   おもちゃ文化・ロボットの歴史
================================ */
/* ロボット年表pc */
@media (min-width: 769px) {
  /* 年代列だけピンク */
  .history-table.robot-table td:nth-child(1),
  .history-table.robot-table th:nth-child(1) {
    background: #fff7f7;
    width: 120px;
  }

  .history-table.robot-table table {
    table-layout: fixed;
    width: 100%;
  }

  /* 年代 */
  .history-table.robot-table th:nth-child(1),
  .history-table.robot-table td:nth-child(1) {
    width: 110px;
  }

  /* 海外 */
  .history-table.robot-table th:nth-child(2),
  .history-table.robot-table td:nth-child(2) {
    width: 22%;
  }

  /* フィクション */
  .history-table.robot-table th:nth-child(3),
  .history-table.robot-table td:nth-child(3) {
    width: 22%;
  }

  /* 日本 */
  .history-table.robot-table th:nth-child(4),
  .history-table.robot-table td:nth-child(4) {
    width: 22%;
  }

  /* 日本（ロボットおもちゃ） */
  .history-table.robot-table th:nth-child(5),
  .history-table.robot-table td:nth-child(5) {
    width: 26%;
  }
}

/* キャラクター年表pc */
@media (min-width: 769px) {
  /* 年代 */
  .character-table table td:nth-child(1),
  .character-table table th:nth-child(1) {
    background: #fff7f7;
  }

  /* 放映年 */
  .character-table td:nth-child(1),
  .character-table th:nth-child(1) {
    width: 190px;
    min-width: 190px;
  }

  /* ロボット */
  .character-table td:nth-child(2),
  .character-table th:nth-child(2) {
    width: 50%;
  }

  /* スーパー戦隊 */
  .character-table td:nth-child(3),
  .character-table th:nth-child(3) {
    width: 30%;
    text-align: center;
  }
}

/* ロボット年表・キャラクター年表sp */
@media (max-width: 768px) {
  .robot-table table,
  .robot-table tbody,
  .robot-table tr,
  .robot-table th,
  .robot-table td,
  .character-table table,
  .character-table tbody,
  .character-table tr,
  .character-table th,
  .character-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .robot-table tr:first-child,
  .character-table tr:first-child {
    display: none;
  }

  .robot-table tr,
  .character-table tr {
    margin-bottom: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
  }

  .robot-table td,
  .character-table td {
    padding: 10px 14px !important;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
    text-align: left !important;
  }

  .robot-table td:last-child,
  .character-table td:last-child {
    border-bottom: none !important;
  }

  .robot-table td p,
  .character-table td p {
    margin-bottom: 0 !important;
  }

  .robot-table td:nth-child(1),
  .character-table td:nth-child(1) {
    color: #c30000;
    font-weight: 700;
    background: #fff7f7;
  }

  .robot-table td:nth-child(2),
  .character-table td:nth-child(2) {
    font-weight: 500;
  }

  .robot-table table,
  .robot-table tbody,
  .character-table table,
  .character-table tbody {
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  .robot-table,
  .character-table {
    border-left: none !important;
  }
}

@media (max-width: 768px) {
  .robot-table tr,
  .character-table tr {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .robot-table td::before {
    display: block;
    color: #c30000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .robot-table td,
  .character-table td {
    padding: 14px 16px !important;
  }

  .robot-table td:nth-child(1)::before {
    content: "年代";
  }

  .robot-table td:nth-child(2)::before {
    content: "海外";
  }

  .robot-table td:nth-child(3)::before {
    content: "フィクション";
  }

  .robot-table td:nth-child(4)::before {
    content: "日本";
  }

  .robot-table td:nth-child(5)::before {
    content: "日本（ロボットおもちゃ）";
  }

  .robot-table tr:has(.sp-hide-robot-desc) {
    display: none !important;
  }

  .character-table td::before {
    display: block;
    color: #c30000;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .character-table td:nth-child(1)::before {
    content: "年代";
  }

  .character-table td:nth-child(2)::before {
    content: "ロボット";
  }

  .character-table td:nth-child(3)::before {
    content: "スーパー戦隊シリーズ";
  }

  /* 上の空白ヘッダー消す */
  .robot-table thead,
  .character-table thead {
    display: none !important;
  }

  /* カード全体を白 */
  .robot-table tr,
  .character-table tr {
    background: #fff !important;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
  }

  /* 年代部分だけピンク */
  .robot-table th,
  .character-table th {
    background: #fff7f7 !important;
    color: #222 !important;
    font-weight: 700;
  }
}

/* ===============================
   おもちゃ文化・人形の歴史
================================ */
/* 人形年表・PCは表表示 */
.pc-doll-table {
  display: block;
}

/* スマホ用は非表示 */
.sp-doll-history {
  display: none;
}

/* PC年代・ヘッダーをピンク／本文は縦カラー */
@media (min-width: 769px) {
  /* ヘッダー全部ピンク */
  .pc-doll-table table th,
  .pc-doll-table th {
    background: #fff7f7 !important;
    font-weight: 700;
  }

  /* 年代列 */
  .pc-doll-table table td:nth-child(1),
  .pc-doll-table td:nth-child(1) {
    background: #fff7f7 !important;
    font-weight: 700;
  }

  /* 本文：人形たち列 */
  .pc-doll-table table td:nth-child(2),
  .pc-doll-table td:nth-child(2) {
    background: #fff !important;
  }

  /* 本文：特徴列 */
  .pc-doll-table table td:nth-child(3),
  .pc-doll-table td:nth-child(3) {
    background: #f5f5f5 !important;
  }
}

/* SP表示 */
@media (max-width: 768px) {
  .pc-doll-table {
    display: none;
  }

  .sp-doll-history {
    display: block;
  }

  .sp-doll-history {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
  }

  /* カード全体 */
  .sp-doll-card {
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px;
    padding: 14px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* 本文 */
  .sp-doll-card p {
    margin: 0 0 10px;
    line-height: 1.7;
    padding-left: 6px;
  }

  .sp-doll-card p:last-child {
    margin-bottom: 0;
  }

  /* ラベル（年代・特徴） */
  .sp-doll-label {
    color: #c30000;
    font-size: 14px;
    font-weight: 700;
    margin: 16px 0 6px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    letter-spacing: 0.03em;
  }

  /* 最初のラベルは線なし */
  .sp-doll-label:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  /* 特徴だけ少し強調 */
  .sp-doll-feature {
    background: #fff7f7;
    padding: 10px;
    border-radius: 4px;
  }
}

/* ===============================
   アクセス
================================ */
/* テキストの間に線 */
.access-info-list {
  position: relative;
  background-image: linear-gradient(#ccc, #ccc);
  background-repeat: no-repeat;
  background-size: 1px calc(100% - 20px);
  background-position: 145px 0;
}

.access-info-list .kb-row-layout-wrap {
  margin-bottom: 18px !important;
}

.access-info-list .kb-row-layout-wrap:last-child {
  margin-bottom: 0 !important;
}

.access-info-list .kt-row-column-wrap {
  padding: 6px 0;
}

.access-info-list .kt-row-column-wrap > .wp-block-kadence-column:first-child {
  flex: 0 0 120px;
  max-width: 120px;
  padding-right: 24px;
  margin-right: 24px;
  border-right: none !important;
}

.access-info-list .kt-row-column-wrap > .wp-block-kadence-column:first-child p {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.access-info-list .kt-row-column-wrap > .wp-block-kadence-column:last-child p {
  margin: 0;
  line-height: 1.8;
}

/* URLスタイル */
.access-info-list a {
  color: #c30000;
  text-decoration: none;
}

.access-info-list a:hover {
  text-decoration: underline;
}

/* googleマップ */
.access-map {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  border-radius: 12px;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .access-info-list {
    background-image: none;
  }

  .access-info-list .kt-row-column-wrap > .wp-block-kadence-column:first-child {
    flex: 0 0 100%;
    max-width: 100%;
    padding-right: 0;
    margin-right: 0;
    margin-bottom: 4px;
  }
}

/* ===============================
   通常のお問い合わせPage
================================ */
/* 通常お問い合わせフォームだけ */
form.normal-contact-form {
  max-width: 850px;
  margin: 40px auto;
  padding: 40px;
  background: #fff7f7;
  border-radius: 8px;
}

form.normal-contact-form input[type="text"],
form.normal-contact-form input[type="email"],
form.normal-contact-form input[type="tel"],
form.normal-contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fff;
}

form.normal-contact-form input[type="submit"] {
  background: #c30000;
  color: #fff;
  border: none;
  padding: 12px 32px;
}

/* =========================
   事業サイトマップ
========================= */
.page-sitemap {
  max-width: 820px;
  margin: 24px auto;
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: #fafafa;
}

/* カラム間 */
.page-sitemap .wp-block-columns,
.page-sitemap .kt-row-column-wrap {
  gap: 16px;
}

/* 見出し */
.page-sitemap h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* リスト */
.page-sitemap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-sitemap li {
  position: relative;
  font-size: 14px;
  padding-left: 12px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.page-sitemap li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: #c30000;
}

.page-sitemap a {
  text-decoration: none;
  color: #c30000;
}

.page-sitemap a:hover {
  opacity: 0.7;
}
