@charset "UTF-8";

/* ========================================
基本設定
======================================== */

    
/* ラッパー：全体幅制限と中央寄せ */
.wrapper {
max-width: 1600px;
min-width: 1100px;
margin-right: auto;
margin-left : auto;
}

/* 狭い画面では見た目だけ縮小 */
@media (max-width: 1400px) {
  .wrapper {
    transform: scale(0.85);
    transform-origin: top center;
  }
}

@media (max-width: 1000px) {
  .wrapper {
    transform: scale(0.75);
  }
}

/* スクロールバーで幅が変わらないように　*/
html {
  overflow-y: scroll;
}

/* ========================================
ナビゲーション（トップメニューなど）
======================================== */

/* 上部メニュー部分のレイアウト */
#head_frame {
    display: grid;
    min-width: 1050px;
    padding: 0.5rem 1rem;
    grid-template-columns: 300px 1fr 1fr 1fr auto;
    grid-template-areas:
      "title_logo menu_item_1 menu_item_2 menu_item_3 menu_item_4";
    align-items: end;
    column-gap: 1rem;
  }
  
  /* エリア指定 */
  #title_logo   { grid-area: title_logo; }
  #menu_item_1  { grid-area: menu_item_1; }
  #menu_item_2  { grid-area: menu_item_2; }
  #menu_item_3  { grid-area: menu_item_3; }
  #menu_item_4  { grid-area: menu_item_4; }
  
  /* 検索ボックス */
  #search_box form {
    display: flex;
    gap: 0.5rem;
  }
  
  #search_box input[type="text"] {
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
  }
  
  #search_box input[type="submit"] {
    padding: 0.3rem 0.8rem;
    font-size: 1rem;
  }

/* ========================================
メインコンテンツレイアウト
======================================== */

#main_content_grid {
    display: grid;
    grid-template-columns: 600px 1fr;
    grid-template-areas:
      "kaiji kessan"
      "contents contents";
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
  }
  
  #kaiji_box {
    grid-area: kaiji;
  }
  
  #kessan_schedule_box {
    grid-area: kessan;
  }
  
  #contents_card_grid {
    grid-area: contents;
  }
  


/* ========================================
簡易版開示テーブル
======================================== */

/* グリッド用エリア名 */
#kaiji_box {
    grid-area: kaiji;
    max-width: 550px;
    margin: 0 auto;
  }
  
  /* 開示テーブルスタイル */
  .kaiji table {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.7rem;
  }
  
  .kaiji th {
    padding: 10px;
    text-align: center;
    background-color: #516ab6;
    color: #fff;
  }
  
  .kaiji td {
    padding: 10px;
    text-align: center;
  }
  
  .kaiji tr:nth-child(odd) {
    background-color: #e6f2ff;
  }



/* ========================================
決算カレンダー
======================================== */
/* 決算カレンダー */
.calendar {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 0.85rem;
  }
  
  .calendar th,
  .calendar td {
    width: 14.28%;
    border: 1px solid #b9daf9;
    text-align: center;
    vertical-align: top;
  }
  
  .calendar thead th {
    background: #92b6d8;
    padding: 6px;
  }
  
  .calendar td {
    padding: 2px 2px 0;
    height: 36px;
    color: #000;
  }
  
  .calendar a {
    text-decoration: none;
    color: #000;
  }
  
  .calendar_title {
    position: relative;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
  }
  
  .calendar .calendar_sun div:first-child {
    color: #c30; /* 赤 */
  }
  
  .calendar .calendar_sat div:first-child {
    color: #03c; /* 青 */
  }
  
  .calendar_today {
    background-color: #fde9e9;
  }
  
  .kensuu {
    font-size: 13px;
    margin-top: 2px;
    color: #777;
  }

  .calendar-month {
    display: inline-block;
  }
  
  .calendar-next {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    background-color: #e8ecef;
    color: #333;
    border: 1px solid #ccc;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
  }
  
  .calendar-next:hover {
    background-color: #e0e0e0;
    border-color: #999;
  }

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calendar-title {
  font-weight: bold;
  flex: 0 0 auto;
  text-align: center;
  width: 100%;
}

.calendar-nav button,
.calendar-nav .nav-placeholder {
  width: 80px; /* ボタンと同じ幅に固定 */
  text-align: center;
  flex-shrink: 0;
  background: none;
  border: none;
  pointer-events: none;
  visibility: hidden;
}

.calendar-nav button {
  pointer-events: auto;
  visibility: visible;
  background: #eee;
  border: 1px solid #ccc;
  padding: 4px 8px;
  cursor: pointer;
}

/* ========================================
サブコンテンツメニュー
======================================== */

/* --- 全体のカードレイアウト（PC用） --- */
#contents_card_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-areas: "area_ipo area_buyback area_holders area_earnings area_screening";
    gap: 1.5rem;
    justify-items: center;
    padding: 1rem 0;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  #area_ipo      { grid-area: area_ipo; }
  #area_buyback  { grid-area: area_buyback; }
  #area_holders  { grid-area: area_holders; }
  #area_earnings { grid-area: area_earnings; }
  #area_screening { grid-area: area_screening; }
  
  /* --- カード本体スタイル --- */
  .icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.4rem 0.3rem;
    text-decoration: none;
    color: #222;
    transition: transform 0.2s;
  }
  
  .icon-card:hover {
    transform: translateY(-2px);
  }
  
  /* --- アイコン部分 --- */
  .icon-wrapper {
    background-color: #f66cb3;
    border-radius: 16px;
    padding: 0.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .icon-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* 個別カラー */
  .color-ipo {
    background-color: #f66cb3; /* ピンク */
  }
  
  .color-buyback {
    background-color: #4da6ff; /* 青系 */
  }
  
  .color-holders {
    background-color: #ffd966; /* 黄色系 */
  }
  
  .color-earnings {
    background-color: #8fd14f; /* 緑系 */
  }

  .color-screening {
    background-color: #b1b2de; /* 系 */
  }
  
  /* --- ラベル部分 --- */
  .icon-label {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
  }
  


/* ========================================
    外部リンクセクション
======================================== */
  /* 全体 */
  #external_links {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
  }

  /* 検索ボックス */
  #external_search_box{
    font-size:14px;
    text-align:center;
  }

  /* 検索ボタン */
  #external_links .kensaku_box{
    font-size: 13px;
    font-weight: normal;
    text-decoration: none;
    padding: 0 3px;
    border: 1px solid #516ab6;
    border-radius: 3px;
    color: #0000FF;
    background-color: #FFFFFF;
    line-height: 1.6;
    margin: 0.6rem;
  }

  /* 配置 */
  #external_links_grid {
  display: grid;
  text-align: right;
  grid-template-columns: repeat(5, 1fr); /* 5列に設定 */
  margin-right: auto;
  margin-left: auto;
  grid-template-areas:
    "search stocks finance movie shop"
    "ai news finance2 map weather"
    "sns news2 tools travel trff"
    "statistical news3 games music comics";
  grid-auto-rows: auto;
}

  #area_search    { grid-area: search; margin: 1em;width: 210px;}
  #area_news      { grid-area: news; margin: 1em;width: 210px;}
  #area_ai        { grid-area: ai; margin: 1em;width: 210px;}
  #area_stocks  { grid-area: stocks; margin: 1em; width: 210px; }
  #area_finance   { grid-area: finance; margin: 1em;width: 210px;}
  #area_shop  { grid-area: shop; margin: 1em; width: 210px; }
  #area_securities   { grid-area: securities; margin: 1em; width: 210px; }
  #area_semi  { grid-area: semi; margin: 1em; width: 210px; }
  #area_journal    { grid-area: journal; margin: 1em; width: 210px; }
  #area_it   { grid-area: it; margin: 1em; width: 210px; }
  #area_gov       { grid-area: gov; margin: 1em;width: 210px;}
  #area_map       { grid-area: map; margin: 1em;width: 210px;}
  #area_travel    { grid-area: travel; margin: 1em;width: 210px;}
  #area_weather   { grid-area: weather; margin: 1em;width: 210px;}
  #area_sns       { grid-area: sns; margin: 1em;width: 210px;}
  #area_music     { grid-area: music; margin: 1em;width: 210px;}
  #area_games   { grid-area: games; margin: 1em; width: 210px; }
  #area_comics   { grid-area: comics; margin: 1em; width: 210px; }
  #area_movie  { grid-area: movie; margin: 1em;width: 210px;}
  #area_tools     { grid-area: tools; margin: 1em;width: 210px;}
  #area_statistical     { grid-area: statistical; margin: 1em;width: 210px;}
  #area_news2     { grid-area: news2; margin: 1em;width: 210px;}
  #area_trff     { grid-area: trff; margin: 1em;width: 210px;}
  #area_news3     { grid-area: news3; margin: 1em;width: 210px;}
  #area_finance2     { grid-area: finance2; margin: 1em;width: 210px;}
  

  

  /* 検索グループ内のレイアウト */
  .kensaku_group .name_text{font-size:13px;font-weight:bold;text-decoration:none;font-weight:normal;padding:0 3px 0 1rem;border:none;color:#0000FF;line-height:1.6}
  .kensaku_group .name_text_only{font-size:13px;font-weight:bold;text-decoration:none;font-weight:normal;padding:0 6px 0 5px;border:none;color:#0000FF;line-height:1.6}
  .kensaku_group .name_text_only_small{font-size:10px;font-weight:bold;text-decoration:none;font-weight:normal;padding:0 6px 0 5px;border:none;color:#0000FF;line-height:1.6}
  .kensaku_group p{font-size:13px;font-weight:bold;text-decoration:none;font-weight:normal;padding:0 3px 0 1rem;border:none;margin: 0.5em 0;color:#0000FF;line-height:1.6;}
  .kensaku_group .text_only{width: 190px;padding:0 2rem 0 0;color:#0000FF;line-height:1.6;text-decoration:none;}
  .kensaku_group h5{
    background: #516ab6;
    padding: 5px 15px;
    border-radius: 10px 10px 0px 0px;
    color: rgb(255, 255, 255);
    margin:0;
    padding:0;
    text-align:center;
  }


.link_row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin: 0.3em 6.5px 0.3em 0;
}

.link_row.double {
  display: flex;
   
}

.link_row.double .link_item {
  flex: 1 1 auto;
  text-align: right;
  white-space: nowrap;
}

.link_row.kensakubox .link_item {
  flex: 1 1 auto;
  text-align: right;
  white-space: nowrap;
}

.link_row.textonly .link_item {
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
}


/* ========================================
フッターメニュー
======================================== */
#site_footer {
    padding: 1rem;
    font-size: 0.9rem;
    color: #555;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: start;
  }
  
  .footer-logo img {
    max-width: 100%;
    height: auto;
  }
  
  .footer-notes p {
    margin: 0.5rem 0;
    line-height: 1.4;
  }
  
  .footer-rights {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
  }
  

  /* ========================================
  ヘッダーエリア：決算速報共通（type選択・前日/翌日・件数）
======================================== */

/* ▼ タイプ選択メニュー（決算＆修正・決算のみ・修正のみ） */
.submenue_box {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-left: 2rem;
  margin-right: 2rem;
}

.submenue_box .item_box_in {
  font-size: small;
  border: 1px solid;
  color: #ffffff;
  background-color: #516ab6;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.5rem;
}

.submenue_box .item_box {
  font-size: small;
  border: 1px solid;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.5rem;
}

.submenue_box .item_box:hover {
  font-size: small;
  border: 1px solid;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.1rem 0.5rem;
  background-color: #97e3e5;
}

/* ▼ タイプ選択の強調（選択中） */
.item_box_large_in {
  font-size: large;
  border: 1px solid;
  color: #ffffff;
  background-color: #cc5f5b;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.5rem;
}

.item_box_large {
  font-size: large;
  border: 1px solid;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.5rem;
}

.item_box_large:hover {
  font-size: large;
  border: 1px solid;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.1rem 0.5rem;
  background-color: #e5c397;
}

/* ▼ 前日／翌日リンク */
.yt_box {
  display: flex;
  max-width: 90%;
  flex-direction: row;
  justify-content: space-between;
  margin: 1em 10%;
}

.yt_box .item_box_in {
  font-size: small;
  border: 1px solid;
  color: #ffffff;
  background-color: #516ab6;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.5rem;
}

.yt_box .item_box {
  font-size: small;
  border: 1px solid;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.5rem;
}

.yt_box .item_box:hover {
  font-size: small;
  border: 1px solid;
  border-radius: 5px;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0.5rem;
  background-color: #97e3e5;
}

/* ▼ 日付・件数表示 */
#disclosure_head_frame {
  width: auto;
  max-width: 80%;
  margin: auto;
  display: grid;
  margin-top: 1em;
  grid-template-columns: auto-fit;
  grid-auto-rows: 1fr;
  grid-template-areas:
    "kaiji_date . kaiji_count";
}

#kaiji_date {
  grid-area: kaiji_date;
}

#kaiji_count {
  grid-area: kaiji_count;
  justify-self: right;
}

#kaiji-date-1 {
  height: 23px;
  font-size: 20px;
  font-weight: bold;
  color: #516ab6;
  margin: 0px 15px 0px 0px;
  float: left;
}

#kaiji-text-1 {
  height: 23px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: bold;
  color: #516ab6;
  margin: 6px 0px 0px 0px;
}

.kaijiSum {
  height: 25px;
  padding: 6px 0px 0px 0px;
  float: left;
  margin-right: 1em;
  font-size: 13px;
  font-weight: bold;
  color: #516ab6;
}

  /* ========================================
  pager：決算速報共通
======================================== */
/* ページ数表示 */
.pager_main{
  display: flex;
  flex-direction: row;
  flex-wrap:wrap;
  justify-content: flex-start;
  margin: 5px 20px;
}

.pager {
  width:25px;
  height:25px;
  background-color: #eeeeee;
  font-weight: bold;
  font-size: 14px;
  color: #516ab6;
  text-align: center;
  text-decoration:underline;
  border: solid 1px #516ab6;
  border-radius: 2px/2px;
  padding: 4px 0px 0px 0px;
  margin: 3px 8px 0px 0px;
  cursor: pointer;
}

.pager-O {
  width:25px;
  height:25px;
  background-color: #516ab6;
  font-weight: bold;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  text-decoration:underline;
  border: solid 1px #516ab6;
  border-radius: 2px/2px;
  padding: 4px 0px 0px 0px;
  margin: 3px 8px 0px 0px;
  cursor: pointer;
}



/* ========================================
  eyemarket コンテンツ部分
======================================== */

.company-info-card {

  margin: 1em;
  background-color: transparent;  /* 余計な背景色を除去 */
  
}

.company-header {
  border-left: 4px solid #3366cc; /* 青い縦線 */
  padding-left: 0.8em;

}

.company-code a {
  font-weight: bold;
  color: #2244cc;
  text-decoration: none;
}

.company-name {
  font-weight: bold;
  margin-left: 0.5em;
}

.company-market {
  font-size: 0.85em;
  color: #777;
  margin-left: 1em;
}

.company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-left: 2em;  
  margin-top: 1em;
  margin-bottom: 1em;
}

.link-btn {
  display: inline-block;
  padding: 0.3em 0.7em;
  font-size: 0.75em;
  color: #2244cc;
  border: 1px solid #2244cc;
  border-radius: 4px;
  background-color: #fff;
  text-decoration: none;
  margin: 0.2em 0.4em 0.2em 0.5em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.link-btn:hover {
  background-color: #e6f0ff;
  color: #112288;
}

.company-site-link {
  display: inline-block;
  padding: 0.3em 0.7em;
  font-size: 0.85em;
  color: #2244cc;
  border: 1px solid #2244cc;
  border-radius: 4px;
  font-weight: bold;
  background-color: #fff;
  text-decoration: none;
  margin: 0.2em 0.4em 0.2em 2em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.company-site-link:hover {
  background-color: #e6f0ff;
  color: #112288;
}


.link-disabled {
  color: #aaa;
  border-style: dashed;
  cursor: default;
}

.memo-button-row {
  margin-left: 1.5em;

}

.company-memo {
  font-size: 0.9em;
  line-height: 1.6;
  background-color: #fafafa;
  border-left: 4px solid #ccc;
  padding: 0.5em 1em;
  border-radius: 4px;
}




#eyemarket .company-name {
  font-size: 17px;
  font-weight: normal;
  margin-top: 20px;
  margin-bottom: 10px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

#eyemarket .custom-button {
  height: 27px;
  padding: 0 12px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  cursor: pointer;
  box-sizing: border-box;
  margin: 5px 0;
}

#eyemarket .before {
  background-color: #f5f5f5;
}

#eyemarket .after {
  border: 1.5px solid #c0c0c0;
}

#eyemarket .company-data {
  font-size: 15px;
  font-weight: normal;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 20px;
  margin-right: 20px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

#eyemarket .yosou {
  background-color: #f5f5f5;
}

#eyemarket table {
  border-collapse: collapse;
  width: 90%;
  margin-bottom: 20px;
  margin-top: 10px;
  margin-left: 20px;
  margin-right: 20px;
  font-size: 0.75rem;
}

#eyemarket th,
#eyemarket td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  line-height: 1;
  font-size: 0.75rem;
}


/* ========================================
  tdnetアーカイブ部分
======================================== */
/* 過去の開示エリア */
.archive-links-box {
    padding: 1em;
    background-color: #fff;

}

.archive-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 6px 0;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    margin-bottom: 1em;
}
.archive-year-title {
    font-size: 15px;
    font-weight: bold;
    border-left: 4px solid #666;
    padding-left: 8px;
    margin: 1em 0 0.5em;
    color: #222;
}
.archive-month-links {
    display: grid;
    grid-template-columns: repeat(6, auto);
    gap: 4px 10px;
    margin: 0 0 1.5em 16px;
    font-size: 13px;
}

.archive-month-links a {
    display: inline-block;
    padding: 3px 6px;
    font-size: 13px;
    color: #1a0dab;  /* 標準的なリンクブルー */
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.archive-month-links a:hover {
    background-color: #e8f0fe;
    color: #174ea6;
    text-decoration: underline;
}
/* ========================================
  edinetアーカイブ部分
======================================== */
/* 月タイル */
#month_frame{
  display: grid;
  margin-top: 1em;
  max-width: 1200px;
  margin-right: auto;
  margin-left : auto;
  height: 80px;
  grid-template-areas:
    "january february march april may june july august september october november december"  
}

#january{grid-area: january;}
#february{grid-area: february;}
#march{grid-area: march}
#april{grid-area: april;}
#may{grid-area: may;}
#june{grid-area: june;}
#july{grid-area: july;}
#august{grid-area: august;}
#september{grid-area: september}
#october{grid-area: october;}
#november{grid-area: november;}
#december{grid-area: december;}

/* 開示アーカイブメイン部分のレイアウト */
#two_column_frame{
  min-width: 1100px;
  width: 90%;
  display: grid;
  grid-template-columns:1fr 320px;
  margin-top: 1em;
  grid-template-areas:
    "left_box . right_box";
}
#left_box{
  width: auto;
  margin: 5px;
}

#right_box{
  width:320px;
  height: 500px;
  margin: 0px 0px 0px 5px;
}

/* 開示部分のページ(フル) */
.kaiji_full table{
  border-collapse:collapse;
  margin:0 auto;
  font-size: small;
}

.kaiji_full table th{
  font-size:12px;
  padding:10px;
  text-align: center;
}

.kaiji_full table td{
  font-size:12px;
  padding:10px;
  text-align: left;
}

.kaiji_full table th{
  color:#fff;
  background:#516ab6;
}

.kaiji_full table tr:nth-child(odd){
  background:#e6f2ff;
}

/* 補足情報 */
a[hosoku]:hover:after {
  content: attr(hosoku);
  background-color: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px;
  position: absolute;
  z-index: 1;
}


/* ========================================
  銘柄個別 上部
======================================== */

.company_summary{
  display: inline-flex;
  flex-direction: row; /* 子要素を横に並べる */
  justify-content: center; /*子要素を中央配置に*/
  width: 100%;
}

#company_summary_top h3{
  padding: 0.5em;
  border-top: 2px solid #7ED1E6;
  border-bottom: 2px solid #7ED1E6;
}

.company_summary .summary_left{
  margin: 2px;
  width:35%;/* 大きさ35%のボックス */
  display: flex;
  flex-direction: column;
  border: 0.5px solid #c4c2c2;
}

.company_summary .summary_right{
  margin: 2px;
  width:65%;/* 大きさ65%のボックス */
  display: flex;
  flex-direction: column;
  border: 0.5px solid #c4c2c2;
}

.company_summary .small_title{
  text-indent: 1em;
  font-weight: bold;
  background:#9ccedd;
}

#company_under{

  border: 0.5px solid #c4c2c2;
  width: 100%;
}

dl.basic_data dt,
dl.basic_data dd,
dl.market_data dt,
dl.market_data dd {
  display: inline;
  margin: 0;
  padding: 0;
}

/* 予想変更履歴部分 */
/* 1. 全体スタイル */
.forecast-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  background-color: #fff;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* 2. 年度ごとの区切り（tr） */
.forecast-history-table tr.new-year-start {
  border-top: 1.5px solid  #3e3e3e;
}

/* 3. セルの中央寄せ + 適度な余白 */
.forecast-history-table th,
.forecast-history-table td {
  text-align: center;
  padding: 6px 10px;
}

/* 4. 見出し行の強調 */
.forecast-history-table th {
  background-color: #e5f4f9;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

/* 5. 行区切りの細い線 */
.forecast-history-table tr:not(.new-year-start) td {
  border-top: 1px dashed #b6b2b2;
}

/* 業績表部分 */
/* 1. 全体スタイル */
.performance-table {
  width: 80%;
  margin: 1em auto;
  border-collapse: collapse;
  font-size: 0.8em;
  background-color: #fff;
}

/* 2. 年度ごとの区切り（tr） */
.performance-table tr.new-year-start {
  border-top: 1.5px solid  #3e3e3e;
}

/* 3. セルの中央寄せ + 適度な余白 */
.performance-table th,
.performance-table td {
  text-align: center;
  padding: 6px 10px;
}

/* 4. 見出し行の強調 */
.performance-table th {
  background-color: #e5f4f9;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

/* 5. 行区切りの細い線 */
.performance-table tr:not(.new-year-start) td {
  border-top: 1px dashed #b6b2b2;
}

.company_memo_block {
    margin: 1rem;
    font-size: 0.8rem;


}

/* ========================================
  銘柄個別 選択メニュー
======================================== */
#kbt_menu{
  display: inline-flex;
  flex-direction: row; /* 子要素を横に並べる */
  justify-content: left; /*子要素を中央配置に*/
  width: 100%;
  margin: 1em 0 0 1em;
}

#kbt_menu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #ffffff;
}
#kbt_menu li {
	float: left;
	border-right: 1px solid #757ceb;
}
#kbt_menu li:last-child {
	border-right: none;
}
#kbt_menu li a {
	display: block;
	color: rgb(0, 0, 0);
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}
#kbt_menu li a:hover:not(.active) {
	background-color: #a9bce2;
}
#kbt_menu .active {
	background-color: #9ccedd;
}


/* ========================================
  銘柄個別 グラフ部分
======================================== */
/* 四半期通期切り替えスイッチ */
.quarter_all_radio fieldset{
  border: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.quarter_all_radio .radio-inline__input{
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
}

.quarter_all_radio .radio-inline__label{
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-right: 18px;
  border-radius: 3px;
  transition: all .2s;
}

.radio-inline__input:checked + .radio-inline__label{
  background: #81acc9;
  color: #fff;
  text-shadow: 0 0 1px rgba(0,0,0,.7);
}

.radio-inline__input:focus + .radio-inline__label{
  outline-color: #4D90FE;
  outline-offset: -2px;
  outline-style: auto;
  outline-width: 5px;
}


/*　グラフを並べる */
.graph-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%; 
  max-width: 100%;
  box-sizing: border-box; 
  padding: 0 2em 1em 2em;
}

.graph-item {
  flex: 1 1 0;
  min-width: 0; 
  height: 300px;
  padding: 1em;
}

/* ========================================
  銘柄個別 配当
======================================== */

.chart-wrapper {
  width: 60%;
  max-width: 960px;
  margin: 2em auto;
  height: 400px;
}

.kobetsu_dividend {
  margin: 3em;
}

.kobetsu_dividend .before {
  background-color: #f5f5f5;
}

.kobetsu_dividend .after {
  border: 1.5px solid #c0c0c0;
}



.kobetsu_dividend .yosou {
  background-color: #f5f5f5;
}

.kobetsu_dividend table {
  border-collapse: collapse;
  width: 90%;
  margin-bottom: 20px;
  margin-top: 10px;
  margin-left: 20px;
  margin-right: 20px;
  font-size: 0.75rem;
}

.kobetsu_dividend th,
.kobetsu_dividend td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  line-height: 1;
  font-size: 0.75rem;
}

#dividendChart {
  width: 80% !important;
  max-width: 80%;
  margin: 40px auto;
  display: block;
}

/* ========================================
  銘柄個別 CF
======================================== */

#cashflowChart {
  width: 80% !important;
  max-width: 80%;
  margin: 40px auto;
  display: block;
}

/* ========================================
  銘柄個別 株主
======================================== */

table.shareholders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}

table.shareholders-table th,
table.shareholders-table td {
  border: 1px solid #ccc;
  padding: 0.5em 0.8em;
  text-align: left;
}

table.shareholders-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

/* ========================================
  銘柄個別 沿革
======================================== */
#company_history {
  padding: 1em 2em;
  max-width: 100%;
  overflow-x: auto;
}

#company_history table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.95em;
}

#company_history colgroup col:first-child {
  width: 8em; /* 年月列の固定幅 */
}

#company_history td,
#company_history th {
  padding: 0.6em 0.8em;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #ddd;  /* ← これが線！ */
  word-break: break-word;
  background-color: #fff;
}

#company_history tr:last-child td {
  border-bottom: none;  /* 最後の行だけ線を消す（任意） */
}

#company_history td p,
#company_history th p {
  margin: 0;
  line-height: 1.5;
}

.update_date {
  text-align: right;
  margin-right: 8em;
}

/* ========================================
  大量保有報告書
======================================== */
#shareholding_report table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 14px;
  text-align: left;
  table-layout: fixed;
}

#shareholding_report thead th {
  background-color: #3366cc;   /* 濃い青 */
  color: #fff;
  padding: 10px;
  font-weight: bold;
  border-bottom: 2px solid #ccc;
}

#shareholding_report tbody td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  color: #000;
  word-break: break-word;
  white-space: normal;
}

#shareholding_report tbody tr:nth-child(even) {
  background-color: #f0f5ff;  /* 薄い青 */
}

#shareholding_report tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

#shareholding_report a {
  color: #0033cc;
  text-decoration: none;
}

#shareholding_report a:hover {
  text-decoration: underline;
}

#shareholding_report h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin: 2em 0 0.5em;
  border-left: 5px solid #3366cc;
  padding-left: 0.75em;
  color: #333;
}




.shareholders-table {
  width: 95% !important;
  margin: 0 auto !important; /* 中央寄せ + 左右に余白 */
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

/* ヘッダー */
.shareholders-table thead {
  background-color: #f5f5f5;
}

/* ヘッダー＆セル共通 */
.shareholders-table th,
.shareholders-table td {
  border: 1px solid #ccc;
  padding: 8px;
  word-break: break-word;
  text-align: center;
}

/* 列幅固定：順位・変動・株式数・保有比率 */
.shareholders-table th:nth-child(1),
.shareholders-table td:nth-child(1) { width: 60px; }   /* 順位 */
.shareholders-table th:nth-child(2),
.shareholders-table td:nth-child(2) { width: 60px; }   /* 変動 */
.shareholders-table th:nth-child(4),
.shareholders-table td:nth-child(4) { width: 120px; }  /* 株式数 */
.shareholders-table th:nth-child(5),
.shareholders-table td:nth-child(5) { width: 100px; }  /* 保有比率 */

/* 中央寄せ */
.shareholders-table th:nth-child(1),
.shareholders-table td:nth-child(1),  /* 順位 */
.shareholders-table th:nth-child(2),
.shareholders-table td:nth-child(2) { /* 変動 */
  text-align: center;
}

/* 左寄せ（株主名） */
.shareholders-table th:nth-child(3),
.shareholders-table td:nth-child(3) {
  text-align: left;
  padding-left: 10px;
}

/* 右寄せ */
.shareholders-table th:nth-child(4),
.shareholders-table td:nth-child(4),  /* 株式数 */
.shareholders-table th:nth-child(5),
.shareholders-table td:nth-child(5) { /* 持株比率 */
  text-align: right;
  padding-right: 10px;
}


/* 株主名は可変幅（全体の余りを使う） */
.shareholders-table th:nth-child(3),
.shareholders-table td:nth-child(3) {
  text-align: left;
  padding-left: 10px;
}

/* 偶数行に背景色（交互色） */
.shareholders-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
}

/* 通常ボタン */
.tab-buttons button {
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border: 1px solid #666;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

/* ホバー */
.tab-buttons button:hover {
  background-color: #f0f0f0;
}

/* 選択中ボタン */
.tab-buttons .item_box_selected {
  background-color: #516ab6;
  color: #fff;
  border-color: #516ab6;
  font-weight: bold;
}




  /* ========================================
  contents部分　大量保有
======================================== */
/* 全体ラッパー */
.shareholding-report {
  width: 85%;
  margin: 0 auto;
  padding: 20px;

  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
}

/* 日付ごとのセクション */
.report-day-block {
  margin: 40px 0 40px 0;

  overflow: hidden;
  border-radius: 6px;
}

/* 日付タイトル */
.report-date-title {
  font-size: 18px;
  font-weight: bold;
  background-color: #0066cc;
  color: white;
  margin: 0;
  padding: 10px 24px;
  border-radius: 6px 6px 0 0;
}

/* テーブル基本デザイン */
.shareholding-table {
  width: 100%;
  border-collapse: collapse;
}

.shareholding-table th,
.shareholding-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
}

.shareholding-table th {
  background-color: #e6f0fa;
  color: #333;
  font-weight: 600;
}

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

.shareholding-table a {
  color: #0066cc;
  text-decoration: none;
}

.shareholding-table a:hover {
  text-decoration: underline;
}

/* ページタイトル */
.page-title {
  font-size: 28px;
  font-weight: bold;
  color: #222;
  border-left: 6px solid #0066cc;
  padding-left: 14px;
  margin-bottom: 32px;
}

.kessan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-spacing: 0;
  border: 1px solid #ccc;
}

.kessan-table thead th {
  background-color: #f7f3ef;
  padding: 6px 8px;
  border: 1px solid #ccc;
  text-align: center;
}

.kessan-table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: right;
  vertical-align: middle;
}

.kessan-table td:first-child,
.kessan-table th:first-child {
  text-align: center;
}

.kessan-table td:nth-child(2),
.kessan-table th:nth-child(2) {
  text-align: left;
}

.kessan-table a {
  color: #005bac;
  text-decoration: none;
}

.kessan-table .negative {
  color: red;
}

.kessan-table .icon {
  font-size: 0.9em;
  margin-right: 4px;
}

.kessan-table .spacer-row td {
  height: 12px;
  padding: 0;
  background-color: #fff;
  border: none;
}


/* 上マージンでなく線でグループ区切りを明示 */
.kessan-table .group-end td {
  border-bottom: 1px solid #ccc;
}
/* 正しく倍率行だけに背景色をつける */
.kessan-table .group-start + tr td {
  background-color: #f9f9f9;
}


#career_table {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1;
}

/* p形式で構成される場合の見やすさ調整 */
#career_table p {
  margin: 8px 0;
}

/* table形式に対応（見やすく・整列） */
#career_table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 15px;
}

#career_table th,
#career_table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

#career_table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

#career_table tr:nth-child(even) {
  background-color: #fafafa;
}

#chart_day {
  display: flex;
  flex-direction: column;
  align-items: center;      /* 横方向中央寄せ */
  justify-content: center;  /* 縦方向中央寄せ（必要なら） */
  margin: 2em auto;         /* 上下に余白 + 横中央寄せ */
}
#chart_week {
  display: flex;
  flex-direction: column;
  align-items: center;      /* 横方向中央寄せ */
  justify-content: center;  /* 縦方向中央寄せ（必要なら） */
  margin: 2em auto;         /* 上下に余白 + 横中央寄せ */
}
#chart_month {
  display: flex;
  flex-direction: column;
  align-items: center;      /* 横方向中央寄せ */
  justify-content: center;  /* 縦方向中央寄せ（必要なら） */
  margin: 2em auto;         /* 上下に余白 + 横中央寄せ */
}




/* === 株価サマリー：視認性アップ版 === */
.stock-summary-card{
  background:#fff;
  border:1px solid #e6eaf0;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(20,40,80,.06);
  padding:12px 16px;
  margin:10px 8px 14px;
}

.stock-summary-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(200px,1fr));
  gap:8px 12px;
  align-items:end;
}

/* カラムの薄い区切り線 */
.stock-summary-grid .item{
  padding:4px 12px;
  position:relative;
}
.stock-summary-grid .item:not(:last-child)::after{
  content:"";
  position:absolute;
  right:-6px; top:6px; bottom:6px;
  width:1px; background:rgba(0,0,0,.06);
}

.label-row{
  display:flex; align-items:center; gap:8px;
  margin-bottom:2px;
}
.label{
  font-size:.86rem; color:#475569; font-weight:600;
}

/* 日付を“チップ”で */
.date-inline {
  font-size: 0.75rem;
  color: #555;
  margin-left: 6px;
}

/* 数字の桁ブレを抑える（等幅数字） */
.num{
  font-variant-numeric: tabular-nums;
  font-feature-settings:"tnum";
}

.value{
  font-size:1.45rem; font-weight:800; line-height:1.1; color:#0f172a;
}
.value .sub{
  font-size:.88rem; font-weight:600; color:#475569; margin-left:.4em;
}

.chart-default-toggle {
  display: flex;
  justify-content: right;
  align-items: center;
  margin: 1.5em 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  gap: 0.5em;
}

.chart-default-toggle .label {
  color: #555;
  font-weight: 600;
}

.chart-default-toggle .toggle-btn {
  background: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.chart-default-toggle .toggle-btn:hover {
  background: #e9ecef;
  border-color: #888;
}

.chart-default-toggle .toggle-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
  font-weight: bold;
}