@charset "UTF-8";
/* CSS Document */
.ir-financial-title {
	padding-bottom: 0.5625rem;
	padding-top: 8.3125rem;
	position: relative;
	text-align: center;
}

.ir-financial-title h1 {
	color: #f62837;
	font-size: 2.7rem;
	font-weight: 700;
}

@media (max-width: 768px) {
	.ir-financial-title {
		padding-top: 4rem;
	}
	.ir-financial-title h1 {
		font-size: 1.8rem;
	}
}

#content.ir-simple {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

#content.ir-simple .ir-financial { 
  padding: 8px 0 32px; 
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
#content.ir-simple .ir-financial__grid {
  width: min(100%, 1120px);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  box-sizing: border-box;
}
@media (max-width: 920px){
  #content.ir-simple .ir-financial__grid { 
    grid-template-columns: 1fr;
    padding: 0 16px;
    gap: 24px;
  }
}
@media (max-width: 768px){
  #content.ir-simple .ir-financial__grid { 
    grid-template-columns: 1fr !important;
    padding: 0 12px;
    gap: 20px;
  }
  #content.ir-simple .ir-tablewrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

#content.ir-simple .ir-card {
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* 株主優待カードを左カラムに配置（配当性向の真下に配置） */
#content.ir-simple .ir-card:last-child {
  grid-column: 1 / 2;
  justify-self: start;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-card {
    min-width: 0;
  }
  #content.ir-simple .ir-card:last-child {
    grid-column: 1;
  }
}
#content.ir-simple .ir-card__title{
  position: relative;
  margin: 8px 0 12px;
  padding: 10px 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #F62837;
  background: transparent; 
  border: none; 
  text-align: center; 
}
@media (max-width: 768px) {
  #content.ir-simple .ir-card__title {
    font-size: 1.2rem;
    margin: 6px 0 10px;
    padding: 8px 0;
  }
}
#content.ir-simple .ir-chartbox{
  position: relative;
  height: 300px;
  padding: 0 8px 4px 8px;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-chartbox {
    height: 240px;
    padding: 0 4px 4px 4px;
  }
}

/* Chart.jsのCanvas要素がCSSの影響を受けないようにする */
#content.ir-simple .ir-card--eps .ir-chartbox canvas {
  /* CSSがChart.jsの描画に影響しないように明示的に指定 */
  border-radius: 0 !important;
  shape-rendering: auto !important;
}

#content.ir-simple .ir-legend{
  display: flex; align-items: center; gap: 14px;
  padding: 6px 8px 12px 8px; color: #666; font-weight: 600;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-legend {
    gap: 10px;
    padding: 4px 6px 8px 6px;
    font-size: 0.85rem;
  }
}
#content.ir-simple .dot{
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  #content.ir-simple .dot {
    width: 8px;
    height: 8px;
    margin-right: 3px;
  }
}
#content.ir-simple .dot.q1{ background: rgba(246, 40, 55, 0.35); }
#content.ir-simple .dot.q2{ background: rgba(246, 40, 55, 0.55); }
#content.ir-simple .dot.q3{ background: rgba(246, 40, 55, 0.75); }
#content.ir-simple .dot.q4{ background: rgba(246, 40, 55, 1); }

/* 自己資本当期純利益グラフ用：独立クラス */
#content.ir-simple .ir-legend-equity{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 8px 12px 8px;
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-legend-equity {
    gap: 10px;
    padding: 4px 6px 8px 6px;
    font-size: 0.85rem;
  }
}

#content.ir-simple .ir-legend-equity__item{
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

#content.ir-simple .ir-legend-equity__marker{
  width: 10px;
  height: 10px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-legend-equity__marker {
    width: 8px;
    height: 8px;
  }
}

#content.ir-simple .ir-legend-equity__marker--rect{
  background: rgba(246, 40, 55, 0.35);
}

#content.ir-simple .ir-legend-equity__marker--circle{
  background: rgba(246, 40, 55, 0.55);
  border-radius: 50%;
}

#content.ir-simple .ir-legend-equity__marker--star{
  background: rgba(246, 40, 55, 0.75);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

#content.ir-simple .ir-legend-equity__marker--triangle{
  background: rgba(246, 40, 55, 1);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

#content.ir-simple .ir-tablewrap{ overflow-x: auto; }
#content.ir-simple .ir-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-table {
    font-size: 0.8rem;
    margin-top: 6px;
  }
}
#content.ir-simple .ir-table thead th{
  background: #f6f6f6; border: 1px solid #ddd; padding: 10px 12px; text-align: right; white-space: nowrap;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-table thead th {
    padding: 8px 10px;
  }
}
#content.ir-simple .ir-table thead th:first-child{ text-align: left; }
#content.ir-simple .ir-table tbody td,
#content.ir-simple .ir-table tbody th{
  border: 1px solid #e1e1e1; padding: 10px 12px; text-align: right;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-table tbody td,
  #content.ir-simple .ir-table tbody th {
    padding: 8px 10px;
  }
}
#content.ir-simple .ir-table tbody th.qhead{
  background: #F62837; color: #fff; text-align: center; width: 72px;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-table tbody th.qhead {
    width: 60px;
  }
}
/* 年度列のスタイル（縦型テーブル用） */
#content.ir-simple .ir-table tbody th:not(.qhead){
  text-align: left;
}

/* 凡例アイテムをクリック可能にする */
#content.ir-simple .ir-legend-item {
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 4px;
  user-select: none;
  transition: font-weight 0.2s ease;
}
@media (max-width: 768px) {
  #content.ir-simple .ir-legend-item {
    padding: 3px 8px;
  }
}

#content.ir-simple .ir-legend-item.active {
  font-weight: 700;
}