/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://example.com/
 Description: Child theme of Twenty Twenty-Five
 Author: Your Name
 Template: twentytwentyfive
 Version: 1.0.0
 Text Domain: twentytwentyfive-child
*/
:root {
  /* --wp--style--global--content-size: 1200px; */
  --wp--preset--color--custom-main: #F02828;
}

.is_hidden {
  display: none !important;
}

.l_company_name {
  @media (max-width: 767px) {
    display: none;
  }
}

.l_header_column {
  .wp-block-column {
    @media (max-width: 767px) {
      flex-basis: 40% !important;
    }
  }
}

.wp-site-blocks {
  overflow: hidden;
}

.c_map_responsive {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
/* 子テーマ独自のCSSはここに */
.page .entry-content {
  /* max-width: 1200px; */
  /* 好きな幅に */
  margin: 0 auto;
}

.page .wp-block-post-title {
  display: none;
}

.page .wp-block-separator {
  margin: 0;
}

.page h2.wp-block-heading {
  width: 100%;
  position: relative;
  margin: 0px auto 50px;

  &::after,
  &::before {
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    border-top: 1px solid var(--wp--preset--color--custom-main);
    border-bottom: 2px solid var(--wp--preset--color--custom-main);
    content: "";

    @media (max-width: 767px) {
      display: none;
    }
  }

  &::before {
    right: 0;
  }

  &::after {
    left: 0;
  }
}



/* IRニュース表示用CSS */

.c_ir_navi {
  list-style: none;
  padding: 20px ;
  li {
  list-style: none;
    a {
      text-decoration: none;
    }
  }
}


.ir-news-container {
  margin: 20px auto;
}

/* スマホの場合 */
@media screen and (max-width: 767px) {
  .ir-news-container {
    max-width: 100%;
    padding: 0px 45px;
  }

  .page h2.wp-block-heading {
    margin: 0 auto 10px;
  }
}

.ir-news-loading {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

.ir-news-error {
  text-align: center;
  padding: 20px;
  color: #d63638;
  background-color: #fef7f0;
  border: 1px solid #ffb8b0;
  border-radius: 4px;
}

.ir-news-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ir-news-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ir-news-item:last-child {
  border-bottom: none;
}

.ir-news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
}

.ir-news-date {
  font-weight: 500;
  white-space: nowrap;
}

.ir-news-category {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  /* デフォルトのスタイル */
  background-color: #f0f6ff;
  color: #2563eb;
}

/* カテゴリ別の色分け */
.ir-news-category[data-category="プレスリリース"],
.ir-news-category[data-category="リリース"] {
  background-color: #e3f2fd;
  color: #1976d2;
}

.ir-news-category[data-category="決算短信"] {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.ir-news-category[data-category="有価証券報告書"] {
  background-color: #fff3e0;
  color: #f57c00;
}

.ir-news-category[data-category="PRニュース"],
.ir-news-category[data-category="PR情報"] {
  background-color: #fce4ec;
  color: #c2185b;
}

.ir-news-category[data-category="適時開示"] {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.ir-news-category[data-category="IR資料"] {
  background-color: #e0f2f1;
  color: #00695c;
}

.ir-news-content {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.ir-news-title {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.6;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.ir-news-title:hover {
  color: var(--wp--preset--color--custom-main);
  text-decoration: underline;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .ir-news-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 0;
  }

  .ir-news-meta {
    min-width: 200px;
    flex-shrink: 0;
    gap: 12px;
    font-size: 14px;
  }

  .ir-news-date {
    min-width: 90px;
  }

  .ir-news-category {
    font-size: 12px;
    padding: 2px 8px;
  }

  .ir-news-content {
    flex: 1;
  }

  .ir-news-title {
    font-size: 15px;
  }
}

.ir-news-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ir-news-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 15px 0;
}

.entry-content .ir-news-item:last-child {
  border-bottom: none;
}

.ir-news-title {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
}

.ir-news-title:hover {
  color: var(--wp--preset--color--custom-main);
  text-decoration: none;
}

.ir-news-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.ir-news-category {
  background-color: #f0f6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.ir-icon-pdf {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url(https://cshd.cyberstep.com/wp-content/uploads/2025/10/pdf-icon.svg);
  text-indent: -9999px;
  overflow: hidden;
  margin-bottom: -4px;
}

.ir-news-size {
  font-size: 12px;
  color: #999;
}

/* 財務ハイライト */
.wp-block-group {
  /* width: 100%; */

  .irp-highlight-block {
    .title {
      font-size: 12px;
      text-align: center;
    }
  }

  .graph_navi {
    font-size: 13px;
    text-align: center;
  }

  .fintbl {
    width: 100%;
  }
}







/* 新着情報カード表示用CSS */
.entry-content .whatsnew-container,
.whatsnew-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.entry-content .whatsnew-heading,
.whatsnew-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.entry-content .whatsnew-heading::after,
.whatsnew-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00a8ff, #0066cc);
}

.entry-content .whatsnew-grid,
.whatsnew-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .entry-content .whatsnew-grid,
  .whatsnew-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .entry-content .whatsnew-grid,
  .whatsnew-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.entry-content .whatsnew-card,
.whatsnew-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-content .whatsnew-card:hover,
.whatsnew-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.entry-content .whatsnew-card-link,
.whatsnew-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.entry-content .whatsnew-card-image,
.whatsnew-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  overflow: hidden;
  background-color: #f5f5f5;
}

/* ローディングアニメーション */
.entry-content .whatsnew-image-loader,
.whatsnew-image-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--wp--preset--color--custom-main);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.entry-content .whatsnew-card-image img,
.whatsnew-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.entry-content .whatsnew-card-overlay,
.whatsnew-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.entry-content .whatsnew-card-logo,
.whatsnew-card-logo {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.entry-content .whatsnew-card-game-title,
.whatsnew-card-game-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.entry-content .whatsnew-card-content,
.whatsnew-card-content {
  padding: 20px;
}

.entry-content .whatsnew-card-company,
.whatsnew-card-company {
  color: #000000;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  border-left: 3px solid #E3009B;
  padding-left: 8px;
}

.entry-content .whatsnew-card-date,
.whatsnew-card-date {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.entry-content .whatsnew-card-title,
.whatsnew-card-title {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em; /* 3行分の高さを確保 */
}

.entry-content .whatsnew-card-more,
.whatsnew-card-more {
  color: var(--wp--preset--color--custom-main);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.entry-content .whatsnew-card-arrow,
.whatsnew-card-arrow {
  transition: transform 0.3s ease;
}

.entry-content .whatsnew-card:hover .whatsnew-card-arrow,
.whatsnew-card:hover .whatsnew-card-arrow {
  transform: translateX(5px);
}

.entry-content .whatsnew-error,
.whatsnew-error {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.entry-content .no-news,
.no-news {
  text-align: center;
  color: #999;
  font-size: 16px;
}

/* 新着情報一覧（リスト形式） */
.entry-content .whatsnew-list-container,
.whatsnew-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.entry-content .whatsnew-year-selector,
.whatsnew-year-selector {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-content .whatsnew-year-selector label,
.whatsnew-year-selector label {
  font-weight: 600;
  color: #333;
}

.entry-content .whatsnew-year-dropdown,
.whatsnew-year-dropdown {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.entry-content .whatsnew-year-dropdown:hover,
.whatsnew-year-dropdown:hover {
  border-color: var(--wp--preset--color--custom-main);
}

.entry-content .whatsnew-year-dropdown:focus,
.whatsnew-year-dropdown:focus {
  outline: none;
  border-color: var(--wp--preset--color--custom-main);
  box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.entry-content .whatsnew-loading,
.whatsnew-loading {
  color: var(--wp--preset--color--custom-main);
  font-size: 14px;
  font-weight: 600;
}

.entry-content .whatsnew-list-content,
.whatsnew-list-content {
  transition: opacity 0.3s ease;
}

.entry-content .whatsnew-year-section,
.whatsnew-year-section {
  margin-bottom: 40px;
}

.entry-content .whatsnew-year-heading,
.whatsnew-year-heading {
  font-size: 14px;
  /* font-weight: 700; */
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--wp--preset--color--custom-main);
}

.entry-content .whatsnew-list-items,
.whatsnew-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-content .whatsnew-list-item,
.whatsnew-list-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #e5e5e5;
  transition: background-color 0.3s ease;
}

.entry-content .whatsnew-list-item:hover,
.whatsnew-list-item:hover {
  background-color: #f8f9fa;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -10px;
  margin-right: -10px;
}

.entry-content .whatsnew-list-meta,
.whatsnew-list-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.entry-content .whatsnew-list-date,
.whatsnew-list-date {
  font-size: 14px;
  color: #666;
  /* font-weight: 600; */
  min-width: 120px;
}

.entry-content .whatsnew-list-category,
.whatsnew-list-category {
  display: inline-block;
  padding: 4px 12px;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 4px;
  font-size: 12px;
  /* font-weight: 600; */
}

.entry-content .whatsnew-list-category[data-category="プレスリリース"],
.whatsnew-list-category[data-category="プレスリリース"] {
  background: #e8f5e9;
  color: #2e7d32;
}

.entry-content .whatsnew-list-category[data-category="お知らせ"],
.whatsnew-list-category[data-category="お知らせ"] {
  background: #fff3e0;
  color: #e65100;
}

.entry-content .whatsnew-list-content,
.whatsnew-list-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entry-content .whatsnew-list-title,
.whatsnew-list-title {
  font-size: 15px;
  /* font-weight: 600; */
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.6;
}

.entry-content .whatsnew-list-title:hover,
.whatsnew-list-title:hover {
  color: var(--wp--preset--color--custom-main);
}

.entry-content .whatsnew-pdf-icon,
.whatsnew-pdf-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: middle;
  margin-top: -2px;
}

.entry-content .whatsnew-list-company,
.whatsnew-list-company {
  font-size: 13px;
  color: #888;
}

.entry-content .whatsnew-list-error,
.whatsnew-list-error {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
  .entry-content .whatsnew-list-item,
  .whatsnew-list-item {
    padding: 15px 0;
  }

  .entry-content .whatsnew-list-date,
  .whatsnew-list-date {
    min-width: auto;
    font-size: 13px;
  }

  .entry-content .whatsnew-year-heading,
  .whatsnew-year-heading {
    font-size: 20px;
  }

  .entry-content .whatsnew-year-selector,
  .whatsnew-year-selector {
    flex-direction: column;
    align-items: flex-start;
  }
}

.wp-block-template-part {
  .wp-block-columns {
    margin-bottom: 0;
  }
}

.wp-block-column {
  display: flex;
  flex-direction: column;
}

.l_contents_wrapper {
  width: 1200px;
}

h4.wp-block-heading {
  border-left: 5px solid #FA00B8;
  padding-left: 5px;
}



.contact_form {

  h4 {
    margin-bottom: 20px;
  }
  .wpcf7 {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    border: 2px solid tint(#ddf3ff, 60%);
    background: #f6fbff;
    text-align: center;
  }

  .wpcf7-form {
    padding: 10px;
  }

  dl {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  dt {
    width: 20%;
    text-align: right;
    font-weight: bold;
    font-size: 18px;
  }

  dd {
    width: 80%;
    text-align: left;

    input,
    textarea,
    select {
      width: 80%;
      min-height: 35px;
      padding: 15px;
    }

    select {
      width: calc(80% + 30px);
    }
  }

  .wpcf7-not-valid-tip {
    background-color: rgb(248, 215, 218);
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 0.25rem;
    padding: 5px 10px;
    margin-top: 5px;
    display: inline-block;
    margin-left: 25px;
    font-size: 15px;
  }

  .wpcf7-submit {
    margin-top: 20px;
    padding: 10px 30px;
    font-size: 18px;
    background: var(--wp--preset--color--custom-main);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 80%;
  }
}



.has-global-padding>.alignfull {
  padding-left: 0;
  padding-right: 0;
}



/*.会社案内 */
.p_company--table {
  border: 1px solid var(--wp--preset--color--custom-main);
  background-color: #fff;

  td {
    border: 1px solid #f7f8fc;
    padding: 10px;
    font-size: 14px;
  }
  td:first-child {
    border-top: 1px solid #ddd;
    background-color: var(--wp--preset--color--custom-main);
    color: #fff;
    font-weight: bold;
  }
}

.p_company--teikei-btn{
  .wp-block-button__link {
    position: relative;
    display: block;
    width: 100%;
    height: 50%;
    background-color: #fff;
    border: 1px solid var(--wp--preset--color--custom-main);
    transition: all 1s;
    overflow: hidden;
    color: var(--wp--preset--color--custom-main);

    &::before {
      content: "";
      position: absolute;
      height: 100%;
      width: 0%;
      top: 0;
      left: -40px;
      transform: skewX(45deg);
      background-color: var(--wp--preset--color--custom-main);
      z-index: -1;
      transition: all 1s;
    }

    &:hover {
      color: #fff;
      &::before {
        width: 160%;
      }
    }
  }
  .wp-block-button__link:hover {
    transform: scale(1.1);
  }
}


.ir-archive-links {
  .ir-archive-link {
    padding: 5px;
    font-size: 13px;
  }
}
