* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #1d2939;
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}


/* header */

.header {
  height: 72px;
  background: linear-gradient(90deg,#063b78,#0b63b6);
  color: white;
  display:flex;
  align-items:center;
  padding:0 32px;
  gap:35px;
}


.logo {
  font-size:26px;
  font-weight:800;
  letter-spacing:.5px;
}

.logo span {
  font-size:15px;
  margin-left:8px;
  opacity:.85;
}


nav {
  display:flex;
  gap:22px;
  flex:1;
}


nav a {
  color:white;
  font-size:14px;
  cursor:pointer;
}


.search {
  width:230px;
  height:38px;
  border:0;
  border-radius:20px;
  padding:0 18px;
}



/* market */

.market-bar {

  display:flex;
  gap:12px;
  padding:18px 30px;
  background:white;
  border-bottom:1px solid #e5e7eb;

}


.market-bar div {

  flex:1;
  background:white;
  border:0;
  border-right:1px solid #ddd;
  border-radius:0;
  padding:10px 18px;

}


.market-bar b {

  display:block;
  font-size:20px;
  margin-top:5px;

}


.up {
 color:#d32f2f;
 font-weight:bold;
}


.down {
 color:#1976d2;
 font-weight:bold;
}



/* layout */


.layout {

 max-width:1200px;
 margin:25px auto;
 padding:0 20px;
 display:grid;
 grid-template-columns:minmax(0,1fr) 280px;
 gap:32px;

}



/* section */


h2 {

 font-size:16px;
 margin:22px 0 12px;
 border-left:3px solid #0866c6;
 padding-left:9px;
 font-weight:700;

}



/* headline */


.headline {

 background:white;
 border-radius:0;
 padding:20px 0;
 display:flex;
 flex-direction:row-reverse;
 gap:25px;
 border-bottom:1px solid #ddd;

}


.photo {

 width:240px;
 height:135px;
 background:#f3f4f6;
 border-radius:0;
 display:flex;
 align-items:center;
 justify-content:center;
 overflow:hidden;
 flex-shrink:0;

}


.headline h1 {

 margin-top:0;
 margin-bottom:8px;
 font-size:21px;
 line-height:1.42;
 font-weight:700;
 letter-spacing:0;

}


.headline p {

 color:#667085;
 line-height:1.7;

}



.tags {

 color:#0866c6;
 font-weight:bold;

}



/* tabs */


.tabs {

 background:white;
 padding:15px;
 border-radius:12px;
 display:flex;
 gap:10px;
 margin-top:20px;

}


.tabs {

 color:#0866c6;

}



/* news list */


.news-list {

 background:white;
 border-radius:0;
 overflow:hidden;
 box-shadow:none;

}


.news-list div {

 padding:18px;
 border-bottom:1px solid #edf0f5;
 display:flex;
 align-items:center;
 gap:15px;

}


.news-list span {

 color:#667085;
 width:60px;

}


.news-list b {

 background:#e8f2ff;
 color:#0866c6;
 border-radius:5px;
 padding:5px 10px;
 font-size:13px;

}



/* sidebar */


.box {

 background:white;
 border-radius:0;
 padding:12px 0;
 margin-bottom:18px;
 border-bottom:1px solid #ddd;

}


.box h3 {

 margin-top:0;
 color:#063b78;
 border-bottom:1px solid #0866c6;
 padding-bottom:8px;
 font-size:16px;

}


.box p {

 padding:8px 0;
 margin:0;
 border-bottom:1px solid #f0f2f5;

}



/* theme */

.theme {

 background:white;
 padding:20px;
 border-radius:14px;
 color:#0866c6;
 font-weight:bold;

}



@media(max-width:900px){

.layout{
grid-template-columns:1fr;
}

.market-bar{
overflow-x:auto;
}

nav{
display:none;
}

.headline{
flex-direction:column;
}

}


/* =========================
   NEWS CARD DESIGN
========================= */

.news-list {
  display:flex;
  flex-direction:column;
  gap:14px;
}


 .news-item {

  background:white;

  border-radius:0;

  padding:12px 0;

  border-bottom:1px solid #ddd;

}

.news-item:hover {

  background:#fafafa;

}



/* priority */

.priority {

  display:inline-block;

  font-weight:600;

  padding:2px 8px;

  border-radius:3px;

  color:white;

  font-size:11px;

  line-height:1.4;

}


.priority-S {

  background:#d00000;

}


.priority-A {

  background:#e67e00;

}


.priority-B {

  background:#d4a000;

}


.priority-C {

  background:#777;

}



.news-meta {

  display:flex;

  align-items:center;

  gap:10px;

  margin-bottom:10px;

}


.news-score {

  font-weight:bold;

  color:#d00000;

}


.news-time {

  margin-left:auto;

  color:#777;

  font-size:13px;

}



.news-company {

  display:flex;

  gap:12px;

  align-items:center;

  font-size:18px;

  margin-bottom:8px;

}


.news-company strong {

  color:#063b78;

  font-size:20px;

}



.news-title {

  font-size:16px;

  line-height:1.6;

  margin-bottom:12px;

}



.news-footer {

  display:flex;

  justify-content:space-between;

  align-items:center;

  font-size:13px;

  color:#666;

}



.news-pdf {

  background:#063b78;

  color:white;

  padding:6px 12px;

  border-radius:6px;

  text-decoration:none;

}


.news-pdf:hover {

  background:#0b63b6;

}



/* NEWS CATEGORY V2 */

.news-category {
  display:inline-block;
  padding:4px 10px;
  border-radius:5px;
  background:#e8f2ff;
  color:#063b78;
  font-size:12px;
  font-weight:bold;
}

.category-市況 {
  border-left:5px solid #0866c6;
}

.category-テーマ {
  border-left:5px solid #6b5fd2;
}

.category-個別株 {
  border-left:5px solid #16835d;
}

.category-決算 {
  border-left:5px solid #d47b00;
}

.category-経済 {
  border-left:5px solid #555;
}

.category-海外 {
  border-left:5px solid #39568c;
}

.category-IR {
  border-left:5px solid #999;
}


/* IMPORTANT IR V1 */

.important-ir-heading{
  margin-top:24px;
  padding:10px 12px;
  font-size:18px;
  font-weight:bold;
  border-bottom:2px solid #d9dee5;
}

.ir-priority{
  display:inline-block;
  padding:3px 8px;
  border-radius:4px;
  background:#f1f3f5;
  color:#444;
  font-size:12px;
  font-weight:bold;
}



/* =========================
   IR TAG BADGE
========================= */

.ir-tag{

  display:inline-block;
  margin-left:5px;
  padding:2px 6px;
  border-radius:2px;

  font-size:11px;
  font-weight:bold;

  background:#eef2f7;
  color:#333;
}


.tag-大口受注{
  background:#ffe5e5;
  color:#b00000;
}


.tag-自社株買い{
  background:#e4f7e8;
  color:#08752b;
}


.tag-TOB{
  background:#eee3ff;
  color:#6b2bbd;
}


.tag-業績予想{
  background:#fff0d6;
  color:#a85a00;
}


.tag-配当{
  background:#fff6b8;
  color:#806900;
}


.tag-決算{
  background:#dff3ff;
  color:#005c85;
}


.tag-訂正{
  background:#eeeeee;
  color:#555;
}






/* INST_FLOW NEWS FREE BUTTON */
.instflow-free-btn{
display:inline-block;
margin-top:16px;
padding:12px 20px;
background:#ea580c;
color:#ffffff;
border-radius:8px;
font-weight:bold;
text-decoration:none;
}

.instflow-free-btn:hover{
opacity:0.85;
}


.headline .photo img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.news-title-link {
  color:#222;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}

.news-title-link:hover {
  color:#0866c6;
}


/* =========================
   Nikkei style layout fix
========================= */


main {
  width:100%;
}


.headline,
.news-list,
.important-ir-heading {
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
}


/* headline */

.headline {

  display:flex;

  flex-direction:row;

  align-items:center;

  gap:30px;

  padding:30px 20px;

}


.headline .photo {

  width:420px;

  height:240px;

}


.headline h1 {

  font-size:30px;

  line-height:1.5;

}


/* news area */

.news-list {

  width:100%;

  padding:0 20px;

}


/* cards */

.news-item {

  width:100%;

}


/* mobile */

@media(max-width:900px){

.headline {

  flex-direction:column;

}


.headline .photo {

  width:100%;

  height:auto;

}


.headline h1 {

  font-size:22px;

}

}


/* market bar width align */

.market-bar {
  max-width:1200px;
  margin:0 auto;
  padding:12px 20px;
}


/* header width align */

.header {
  height:72px;
  padding:0;
}

.header-inner {
  width:100%;
  max-width:1200px;
  height:100%;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:35px;
  box-sizing:border-box;
}


/* compact news list */

.news-list {
  gap:0;
  padding:0;
}

.news-list .news-item {
  display:block;
  padding:14px 0;
  margin:0;
  border-bottom:1px solid #ddd;
}

.news-list .news-item > div {
  padding:0;
  border-bottom:0;
}

.news-meta {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
}

.news-title {
  margin:0 0 6px;
  line-height:1.55;
}

.news-footer {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:#667085;
}


/* flat news category label */

.news-list b {
  background:transparent;
  color:#486581;
  border-radius:0;
  padding:0;
  font-size:12px;
  font-weight:600;
}


/* flat section heading */

h2 {
  font-size:18px;
  margin:28px 0 12px;
  padding:0 0 9px;
  border-left:0;
  border-bottom:2px solid #222;
  font-weight:700;
}


/* flat sidebar */

.box {
  padding:0;
  margin-bottom:24px;
  border-bottom:0;
}

.box h3 {
  margin:0 0 8px;
  padding:0 0 8px;
  font-size:16px;
  font-weight:700;
  color:#222;
  border-bottom:2px solid #222;
}

.box p {
  padding:9px 0;
  margin:0;
  border-bottom:1px solid #e5e7eb;
  font-size:14px;
  line-height:1.45;
}


/* remove left accent line from news rows */

.news-item {
  border-left:0 !important;
  padding-left:0 !important;
}


/* headline text tune */

.headline h1 {
  font-size:26px;
  line-height:1.45;
  margin-bottom:10px;
}

.headline p {
  margin:6px 0;
  line-height:1.6;
}


/* headline spacing */

.headline {
  gap:40px;
}


/* =========================
   IR LAYOUT FIX
========================= */

.news-company {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
  min-width:0;
  margin-bottom:8px;
}

.news-company strong {
  flex:0 0 auto;
  white-space:nowrap;
}

.news-company span {
  display:block;
  flex:1 1 auto;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:normal;
  overflow-wrap:normal;
}

.important-ir-heading {
  width:100%;
  max-width:none;
  box-sizing:border-box;
  margin:24px 0 0;
  padding:10px 0;
  text-align:left;
}


/* company name must not inherit .news-list span width */
.news-list .news-company span {
  width:auto;
  flex:1 1 auto;
  min-width:0;
  white-space:nowrap;
}


/* sidebar source labels */
#sidebar-popular a {
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}


/* news source label: keep on one line */
.news-list .news-meta span {
  width:auto;
  flex:0 0 auto;
  white-space:nowrap;
}


/* news footer source: keep publisher name on one line */
.news-list .news-footer > span {
  width:auto;
  flex:0 0 auto;
  white-space:nowrap;
}


/* stock ranking sidebar */
.stock-ranking-box {
  padding:0;
}

.stock-ranking-box h3 {
  margin:0 0 20px;
  padding:0 0 12px;
  border-bottom:3px solid #eee;
  font-size:16px;
  font-weight:700;
}

.ranking-section {
  margin-bottom:28px;
}

.ranking-section:last-child {
  margin-bottom:0;
}

.ranking-title {
  margin-bottom:10px;
  font-size:15px;
  font-weight:700;
}


/* ranking rows */
.ranking-row {
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 64px;
  align-items:center;
  min-height:27px;
  padding:3px 6px;
  font-size:14px;
}

.ranking-row:nth-child(even) {
  background:#f3f3f3;
}

.ranking-rank {
  font-weight:700;
  text-align:center;
}

.ranking-name {
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.ranking-name a {
  color:#075fa8;
  text-decoration:underline;
}

.ranking-change {
  text-align:right;
  white-space:nowrap;
}

.ranking-change.up {
  color:#e60012;
}

.ranking-change.down {
  color:#008000;
}

.ranking-empty {
  padding:8px 6px;
  color:#888;
  font-size:13px;
}


/* market updated time alignment */
#market-updated-time {
  max-width:1200px;
  margin:0 auto;
  padding-top:6px;
  font-size:13px;
}


/* useful tools */
.useful-tools-box {
  margin-top: 18px;
}

.useful-tools-box h3 {
  margin-bottom: 10px;
}

.useful-tools-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 0;
}

.useful-tools-list a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #1456a0;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.useful-tools-list a::before {
  content: "・";
  color: #333;
}

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


/* produced by INST_FLOW */
.produced-by-inst {
  text-align: center;
  padding: 18px 0 22px;
  font-size: 11px;
  color: #777;
}

.produced-by-inst a {
  color: #555;
  text-decoration: none;
}

.produced-by-inst a:hover {
  text-decoration: underline;
}


/* header navigation links */
nav a,
nav a:visited {
  color: #fff;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}


/* theme cards */
#theme-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-top: 10px;
}

.theme-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.theme-name {
  color: #1456a0;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.theme-desc {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  #theme-list {
    grid-template-columns: 1fr;
  }
}


/* useful tools descriptions */
.useful-tools-list a {
  padding: 10px 0;
}

.useful-tools-list a strong {
  display: block;
  color: #1456a0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.useful-tools-list a span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}


/* ===== Market Calendar ===== */

.market-calendar-box h3{
  margin-bottom:12px;
}

#market-calendar{
  font-size:14px;
  line-height:1.55;
}

.calendar-group{
  margin-bottom:12px;
}

.calendar-country{
  font-weight:700;
  font-size:13px;
  margin-bottom:5px;
}

.calendar-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:6px 0;
  border-bottom:1px solid #eeeeee;
}

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

.calendar-time{
  flex:0 0 42px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

.calendar-event{
  flex:1;
  min-width:0;
}

.calendar-note{
  margin-top:8px;
  font-size:11px;
  color:#777;
  text-align:right;
}


/* ===== Market Calendar Date ===== */

.market-calendar-box h3{
  display:flex;
  align-items:baseline;
  gap:6px;
  white-space:nowrap;
}

#market-calendar-date{
  font-size:12px;
  font-weight:600;
  color:#444;
  white-space:nowrap;
}


/* ===== Stock News Thumbnail ===== */

.news-item-main{
  display:flex;
  align-items:flex-start;
  gap:16px;
}

.news-item-text{
  flex:1;
  min-width:0;
}

.news-thumb{
  flex:0 0 112px;
  width:112px;
  height:72px;
  overflow:hidden;
  margin-top:2px;
  background:#f3f3f3;
}

.news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@media (max-width:700px){

  .news-item-main{
    gap:10px;
  }

  .news-thumb{
    flex-basis:82px;
    width:82px;
    height:58px;
  }

}



/* ==================================================
   Newspaper Header Fix
================================================== */

.newspaper-header{
  width:100%;
  background:#fff;
  color:#082f66;
}


.masthead-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:12px 30px 8px;
}


.masthead-line{
  height:3px;
  background:#082f66;
}


.masthead-title{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:row;
  gap:20px;
  padding:14px 0;
}


.masthead-inst{
  font-family:Arial,sans-serif;
  font-size:42px;
  font-weight:900;
  color:#082f66;
}


.masthead-divider{
  width:1px;
  height:45px;
  background:#c6a46b;
}


.masthead-jp{
  font-family:"Yu Mincho","Noto Serif JP",serif;
  font-size:42px;
  font-weight:bold;
  color:#082f66;
}


.masthead-bottom{
  display:flex;
  align-items:center;
  gap:20px;
}


.masthead-rule{
  height:1px;
  background:#082f66;
  flex:1;
}


.masthead-chart{
  display:flex;
  height:25px;
  gap:5px;
}


.masthead-chart i{
  width:5px;
  background:#082f66;
}


.newspaper-nav{
  border-top:1px solid #ddd;
  border-bottom:1px solid #ddd;
  height:48px;
  display:flex;
  align-items:center;
  padding:0 30px;
}


.newspaper-nav nav{
  display:flex;
  gap:35px;
}


.newspaper-nav nav a{
  color:#172033;
  font-size:14px;
  font-weight:bold;
  text-decoration:none;
}


.newspaper-nav .search{
  margin-left:auto;
  width:220px;
  height:34px;
}



/* newspaper nav center fix */

.newspaper-nav{
  position:relative;
  justify-content:center;
}


.newspaper-nav nav{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:34px;
  white-space:nowrap;
}


.newspaper-nav .search{
  margin-left:auto;
}


.masthead-title{
  width:100%;
  justify-content:center;
}



/* =================================
   Newspaper Headline Design
================================= */

.headline{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:36px;
  padding:25px 0 30px;
  border-bottom:1px solid #222;
}


.headline .photo{
  width:420px;
  height:235px;
  background:#f2f2f2;
}


.headline .photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}


.headline h1{

  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;

  font-size:32px;
  line-height:1.45;
  letter-spacing:1px;

  margin:0 0 18px;

}


#headline-meta{

  color:#555;
  font-size:14px;

}


#headline-description{

  color:#666;
  margin-top:12px;

}


.instflow-free-btn{

  margin-top:20px;

}




/* =================================
   SEO H1 - INST FLOW 株式新聞
================================= */

.site-headline{
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    serif;

  font-size:28px;
  font-weight:800;
  letter-spacing:3px;
  color:#082f66;

  margin:28px 0 8px;
  padding-bottom:12px;

  border-bottom:3px double #082f66;
}


/* =================================
   Newspaper Nav Blue Strip
================================= */

.newspaper-nav{
  width:100%;
  max-width:none;
  background:linear-gradient(90deg,#063b78,#0b63b6);
  border-top:0;
  border-bottom:0;
  min-height:48px;
}

.newspaper-nav nav a{
  color:#ffffff;
}

.newspaper-nav nav a:hover{
  color:#dbeafe;
}

.newspaper-nav .search{
  background:rgba(255,255,255,0.96);
  border:0;
  color:#172033;
}

.newspaper-nav .search::placeholder{
  color:#6b7280;
}

@media (max-width:900px){
  .newspaper-nav{
    padding:0 14px;
  }
}

/* masthead logo black */

.masthead-inst{
  color:#111111;
}

.masthead-jp{
  color:#111111;
}


/* search position adjustment */

.newspaper-nav{
  padding-left:30px;
  padding-right:120px;
}

.newspaper-nav .search{
  margin-left:40px;
  width:220px;
}



/* =================================
   Final Newspaper Navigation Fix
================================= */

.newspaper-nav{
  width:100%;
  max-width:none;
  height:48px;
  padding:0 60px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:linear-gradient(90deg,#063b78,#0b63b6);
}


.newspaper-nav nav{
  position:static;
  transform:none;
  display:flex;
  justify-content:center;
  gap:36px;
  flex:none;
}


.newspaper-nav nav a{
  color:white;
  font-weight:700;
}


.newspaper-nav .search{
  position:absolute;
  right:60px;
  width:220px;
  height:34px;
  border-radius:18px;
  margin:0;
}




/* search above market bar */

.newspaper-nav .search{
  display:none;
}


.market-bar{
  position:relative;
}


.market-bar::after{
  content:"銘柄・キーワード検索";
  position:absolute;
  right:60px;
  top:-48px;
  width:220px;
  height:34px;
  background:#fff;
  border-radius:18px;
  border:0;
  color:#777;
  font-size:14px;
  display:flex;
  align-items:center;
  padding-left:18px;
}




/* search final position */

.newspaper-nav .search{
  position:absolute;
  right:60px;
  top:50%;
  transform:translateY(-50%);
}


.market-bar{
  position:relative;
}




.newspaper-nav{
  min-height:48px;
}


.market-bar{
  margin-top:10px;
}



/* search vertical adjust */

.newspaper-nav .search{
  top:-18px;
}



/* move pseudo search upward */

.market-bar::after{
  top:-65px;
}



/* search final align */
.market-bar::after{
  top:-35px;
}


/* search move up 15px */
.market-bar::after{
  top:-50px;
}



/* headline no image placeholder */

.headline-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(135deg,#082f66,#0b63b6);
  color:white;
  font-family:
    "Noto Serif JP",
    serif;
  font-size:32px;
  line-height:1.5;
  text-align:center;
  letter-spacing:3px;
}



/* ===== company card search 2026-08-18 ===== */

.company-search-wrap{
  position:relative;
  z-index:1000;
}

.company-search-results{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  width:360px;
  max-height:420px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #d7dce3;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(0,0,0,.16);
}

.company-search-results.is-open{
  display:block;
}

.company-search-item{
  display:block;
  padding:11px 13px;
  text-decoration:none;
  color:#111827;
  border-bottom:1px solid #edf0f3;
  background:#fff;
}

.company-search-item:last-child{
  border-bottom:0;
}

.company-search-item:hover{
  background:#f5f8fc;
}

.company-search-main{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  line-height:1.35;
}

.company-search-main strong{
  min-width:44px;
  color:#0b57a4;
}

.company-search-sub{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#6b7280;
}

.company-search-empty{
  padding:14px;
  font-size:13px;
  color:#6b7280;
}

@media (max-width:700px){
  .company-search-results{
    right:0;
    width:min(92vw,360px);
  }
}

/* =========================================
   REAL COMPANY SEARCH FINAL FIX 2026-08-18
========================================= */

/* 偽物の検索窓を消す */
.market-bar::after{
  display:none !important;
  content:none !important;
}

/* 検索UI全体をナビ右側へ配置 */
.newspaper-nav .company-search-wrap{
  position:absolute;
  right:60px;
  top:50%;
  transform:translateY(-50%);
  width:220px;
  z-index:3000;
}

/* 本物のinputを表示 */
.newspaper-nav .company-search-wrap .search{
  display:block !important;
  position:static !important;
  top:auto !important;
  right:auto !important;
  transform:none !important;
  margin:0 !important;

  width:100% !important;
  height:34px;
  padding:0 16px;

  background:#fff;
  border:0;
  border-radius:18px;

  color:#172033;
  font-size:14px;
  outline:none;
  box-sizing:border-box;

  pointer-events:auto !important;
  cursor:text;
}

/* フォーカス時 */
.newspaper-nav .company-search-wrap .search:focus{
  box-shadow:0 0 0 3px rgba(255,255,255,.25);
}

/* 候補一覧 */
.newspaper-nav .company-search-results{
  top:40px;
  right:0;
  width:360px;
}

/* スマホ */
@media (max-width:900px){
  .newspaper-nav .company-search-wrap{
    right:14px;
    width:200px;
  }

  .newspaper-nav .company-search-results{
    width:min(92vw,360px);
  }
}

/* =========================================
   COMPANY SEARCH POSITION RESTORE 2026-08-18
   日経先物の真上へ
========================================= */

.newspaper-nav .company-search-wrap{
  position:absolute;
  right:60px;
  top:82px;
  transform:none;
  width:220px;
  z-index:3000;
}

/* 候補一覧は検索窓の直下 */
.newspaper-nav .company-search-results{
  top:40px;
  right:0;
}

/* スマホ */
@media (max-width:900px){
  .newspaper-nav .company-search-wrap{
    right:14px;
    top:82px;
    width:200px;
  }
}

/* =========================================
   COMPANY SEARCH MARKET POSITION FINAL
   2026-08-18
========================================= */

/* 旧pseudo検索は完全停止 */
.market-bar::after{
  display:none !important;
  content:none !important;
}

/* market-bar を検索窓の基準にする */
.market-bar{
  position:relative !important;
}

/* 日経先物の真上、以前の位置へ */
.market-bar .company-search-wrap{
  position:absolute !important;
  right:60px !important;
  top:-50px !important;
  width:220px !important;
  transform:none !important;
  z-index:5000 !important;
}

/* 本物の入力欄 */
.market-bar .company-search-wrap .search{
  display:block !important;
  position:static !important;
  width:100% !important;
  height:34px !important;
  margin:0 !important;
  padding:0 16px !important;
  transform:none !important;

  background:#fff !important;
  border:2px solid #8bb5df !important;
  border-radius:18px !important;

  color:#172033 !important;
  font-size:14px !important;
  outline:none !important;
  box-sizing:border-box !important;
  pointer-events:auto !important;
}

/* 検索候補 */
.market-bar .company-search-results{
  position:absolute !important;
  top:40px !important;
  right:0 !important;
  width:360px !important;
  z-index:5001 !important;
}

@media (max-width:900px){
  .market-bar .company-search-wrap{
    right:14px !important;
    width:200px !important;
  }

  .market-bar .company-search-results{
    width:min(92vw,360px) !important;
  }
}

/* =========================================
   COMPANY SEARCH LAYOUT FIX 2026-08-18
   青帯を壊さず日経先物の真上へ
========================================= */

.market-bar{
  position:relative !important;
  overflow:visible !important;
}

/* 検索窓だけを浮かせる */
.market-bar .company-search-wrap{
  position:absolute !important;

  /* 日経先物の列の中央付近 */
  right:60px !important;
  top:-57px !important;

  width:220px !important;
  height:34px !important;

  margin:0 !important;
  padding:0 !important;

  background:transparent !important;
  border:0 !important;

  transform:none !important;
  z-index:5000 !important;

  pointer-events:auto !important;
}

/* 本物の検索窓 */
.market-bar .company-search-wrap .search{
  display:block !important;
  position:relative !important;

  width:220px !important;
  height:34px !important;

  margin:0 !important;
  padding:0 16px !important;

  background:#fff !important;
  border:2px solid #8bb5df !important;
  border-radius:18px !important;

  box-shadow:none !important;

  color:#172033 !important;
  font-size:14px !important;

  transform:none !important;
  pointer-events:auto !important;
  box-sizing:border-box !important;
}

/* 候補は窓の真下 */
.market-bar .company-search-results{
  position:absolute !important;
  right:0 !important;
  top:40px !important;

  width:360px !important;

  margin:0 !important;
  z-index:6000 !important;
}

/* 青帯の高さ・背景を固定 */
.newspaper-nav{
  height:48px !important;
  min-height:48px !important;
  background:linear-gradient(90deg,#063b78,#0b63b6) !important;
}

/* スマホ */
@media (max-width:900px){
  .market-bar .company-search-wrap{
    right:14px !important;
    width:200px !important;
  }

  .market-bar .company-search-wrap .search{
    width:200px !important;
  }
}

/* search 15px down */
.market-bar .company-search-wrap{
  top:-42px !important;
}

/* search 7px up */
.market-bar .company-search-wrap{
  top:-49px !important;
}

/* search 2px up */
.market-bar .company-search-wrap{
  top:-51px !important;
}




/* ===== market focus ===== */

.market-focus-box{
  margin-top:18px;
}

.market-focus-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.market-focus-heading h3{
  margin:0;
}

.market-focus-count{
  font-size:13px;
  font-weight:700;
  color:#666;
}

.market-focus-list{
  display:flex;
  flex-direction:column;
}

.market-focus-row{
  padding:12px 0;
  border-bottom:1px solid #e5e7eb;
}

.market-focus-row:last-child{
  border-bottom:none;
}

.market-focus-top{
  display:grid;
  grid-template-columns:
    48px
    58px
    minmax(110px,1fr)
    auto
    72px;
  align-items:center;
  gap:8px;
}

.market-focus-time{
  font-size:12px;
  color:#777;
}

.market-focus-code{
  font-size:12px;
  font-weight:700;
  color:#555;
}

.market-focus-name{
  min-width:0;
  font-weight:700;
}

.market-focus-name a{
  color:inherit;
  text-decoration:none;
}

.market-focus-name a:hover{
  text-decoration:underline;
}

.market-focus-category{
  padding:3px 7px;
  border:1px solid #d1d5db;
  border-radius:4px;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
  background:#f8fafc;
}

.market-focus-change{
  text-align:right;
  font-size:13px;
  font-weight:700;
}

.market-focus-up{
  color:#c62828;
}

.market-focus-down{
  color:#1565c0;
}

.market-focus-title{
  margin-top:6px;
  padding-left:114px;
  font-size:12px;
  line-height:1.55;
  color:#555;
}

.market-focus-empty{
  padding:16px 0;
  color:#888;
  font-size:13px;
}

.market-focus-note{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #eee;
  color:#777;
  font-size:11px;
  line-height:1.6;
}

@media(max-width:700px){

  .market-focus-top{
    grid-template-columns:
      42px
      52px
      1fr
      auto;
  }

  .market-focus-change{
    grid-column:4;
  }

  .market-focus-category{
    grid-column:3;
    width:max-content;
    margin-top:3px;
  }

  .market-focus-title{
    padding-left:0;
    margin-top:8px;
  }

}


/* ===== stop limit ===== */

.market-limit-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:20px;
}

.market-limit-block{
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:14px;
}

.market-limit-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.market-limit-heading h3{
  margin:0;
  font-size:15px;
}

.market-limit-heading span{
  font-size:12px;
  font-weight:700;
  color:#666;
}

.market-limit-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 0;
  border-bottom:1px solid #eee;
}

.market-limit-row:last-child{
  border-bottom:none;
}

.market-limit-symbol{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}

.market-limit-code{
  font-size:12px;
  font-weight:700;
  color:#666;
}

.market-limit-name{
  font-size:13px;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:700px){

  .market-limit-wrap{
    grid-template-columns:1fr;
  }

}


/* ===== earnings schedule ===== */

.market-earnings-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:20px;
  margin-bottom:20px;
}

.market-earnings-block{
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:14px;
}

.market-earnings-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.market-earnings-heading h3{
  margin:0;
  font-size:15px;
}

.market-earnings-heading span{
  font-size:12px;
  font-weight:700;
  color:#666;
}

.market-earnings-row{
  display:grid;
  grid-template-columns:52px 58px minmax(0,1fr) 40px;
  gap:8px;
  align-items:center;
  padding:9px 0;
  border-bottom:1px solid #eee;
}

.market-earnings-row:last-child{
  border-bottom:none;
}

.market-earnings-time{
  font-size:12px;
  color:#555;
}

.market-earnings-code{
  font-size:12px;
  font-weight:700;
  color:#666;
}

.market-earnings-name{
  font-size:13px;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.market-earnings-period{
  font-size:12px;
  font-weight:700;
  text-align:right;
}

@media(max-width:700px){

  .market-earnings-wrap{
    grid-template-columns:1fr;
  }

  .market-earnings-row{
    grid-template-columns:50px 54px minmax(0,1fr) 36px;
  }

}


/* ===== materials compact ===== */

.market-focus-more{
  display:block;
  width:100%;
  margin-top:10px;
  padding:8px 10px;
  border:1px solid #d9d9d9;
  border-radius:4px;
  background:#fff;
  color:#1d4f91;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.market-focus-more:hover{
  background:#f6f8fb;
}

.market-focus-box{
  margin-bottom:14px;
}

.market-earnings-wrap{
  margin-top:14px;
}

.market-limit-wrap{
  margin-top:14px;
}


/* ===== today's market data group ===== */

.market-data-summary{
  margin-top:16px;
  padding:14px;
  border:1px solid #d9dde3;
  border-top:2px solid #1d4f91;
  background:#fff;
}

.market-data-summary-heading{
  padding-bottom:8px;
  margin-bottom:10px;
  border-bottom:1px solid #d9dde3;
}

.market-data-summary-heading h3{
  margin:0;
  font-size:14px;
  font-weight:700;
  color:#222;
}

.market-data-summary .market-earnings-wrap,
.market-data-summary .market-limit-wrap{
  margin-top:0;
  margin-bottom:10px;
  gap:8px;
}

.market-data-summary .market-earnings-block,
.market-data-summary .market-limit-block{
  padding:9px;
  border:1px solid #e6e8eb;
  border-radius:3px;
}

.market-data-summary .market-earnings-heading,
.market-data-summary .market-limit-heading{
  margin-bottom:5px;
}

.market-data-summary .market-earnings-heading h3,
.market-data-summary .market-limit-heading h3{
  font-size:12px;
}

.market-data-summary .market-focus-empty{
  font-size:11px;
  padding:6px 0;
}

.market-data-summary .market-limit-row,
.market-data-summary .market-earnings-row{
  padding:6px 0;
}

.market-data-summary-note{
  padding-top:7px;
  border-top:1px solid #eee;
  font-size:10px;
  line-height:1.5;
  color:#777;
}

@media(max-width:700px){

  .market-data-summary{
    padding:12px;
  }

}


/* ===== stop limit sidebar layout fix ===== */

/* 右カラムではストップ高・安を縦並び */
.market-data-summary .market-limit-wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  width:100%;
}

.market-data-summary .market-limit-block{
  width:auto;
  min-width:0;
}

/* 銘柄名が長くても枠を壊さない */
.market-data-summary .market-limit-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  width:100%;
}

.market-data-summary .market-limit-symbol{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:6px;
  min-width:0;
  align-items:center;
}

.market-data-summary .market-limit-code{
  white-space:nowrap;
}

.market-data-summary .market-limit-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  letter-spacing:0;
}

.market-data-summary .market-focus-change{
  white-space:nowrap;
  text-align:right;
}

/* ストップ高・安の見出し */
.market-data-summary .market-limit-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}

.market-data-summary .market-limit-heading h3{
  white-space:nowrap;
}


/* ===== material rows sidebar width fix ===== */

.market-focus-box .market-focus-top{
  display:grid;
  grid-template-columns:
    42px
    48px
    minmax(0,1fr)
    72px
    58px;
  column-gap:6px;
  align-items:center;
  width:100%;
  min-width:0;
}

.market-focus-box .market-focus-time,
.market-focus-box .market-focus-code,
.market-focus-box .market-focus-category,
.market-focus-box .market-focus-change{
  white-space:nowrap;
}

.market-focus-box .market-focus-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.market-focus-box .market-focus-category{
  width:auto;
  max-width:72px;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
  font-size:11px;
}

.market-focus-box .market-focus-change{
  width:auto;
  min-width:0;
  text-align:right;
  font-size:12px;
}

.market-focus-box .market-focus-row{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}

.market-focus-box .market-focus-title{
  margin-left:96px;
  padding-right:4px;
  font-size:11px;
  line-height:1.55;
}


/* 狭い右カラム対策 */
@media(max-width:1100px){

  .market-focus-box .market-focus-top{
    grid-template-columns:
      38px
      44px
      minmax(0,1fr)
      68px
      54px;
    column-gap:5px;
  }

  .market-focus-box .market-focus-title{
    margin-left:87px;
  }

}


/* スマホ */
@media(max-width:700px){

  .market-focus-box .market-focus-top{
    grid-template-columns:
      42px
      48px
      minmax(0,1fr)
      58px;
  }

  .market-focus-box .market-focus-category{
    display:none;
  }

  .market-focus-box .market-focus-title{
    margin-left:0;
    margin-top:5px;
  }

}


/* ===== material list compact ===== */

.market-focus-box .market-focus-row{
  padding:10px 0;
}

/* 銘柄名は1行 */
.market-focus-box .market-focus-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 開示タイトルは1行だけ */
.market-focus-box .market-focus-title{
  margin-left:95px;
  margin-top:4px;
  padding-right:2px;

  font-size:11px;
  line-height:1.45;
  color:#555;

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ラベルも少し小さく */
.market-focus-box .market-focus-category{
  font-size:10px;
  padding:3px 5px;
}

/* 時刻・コード */
.market-focus-box .market-focus-time,
.market-focus-box .market-focus-code{
  font-size:11px;
}

/* 騰落率 */
.market-focus-box .market-focus-change{
  font-size:11px;
  font-weight:700;
}

@media(max-width:700px){

  .market-focus-box .market-focus-title{
    margin-left:0;
  }

}


/* ===== material two-row layout ===== */

.market-focus-box .market-focus-top{
  display:grid;
  grid-template-columns:46px 52px minmax(58px,auto);
  gap:8px;
  align-items:center;
  width:100%;
}

.market-focus-box .market-focus-change{
  justify-self:end;
}

.market-focus-box .market-focus-main{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:5px;
  padding-left:106px;
  min-width:0;
}

.market-focus-box .market-focus-name{
  flex:1;
  min-width:0;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.market-focus-box .market-focus-category{
  flex:0 0 auto;
  max-width:none;
  white-space:nowrap;
}

.market-focus-box .market-focus-title{
  margin-left:106px;
  margin-top:4px;
  padding-right:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media(max-width:700px){

  .market-focus-box .market-focus-main{
    padding-left:0;
  }

  .market-focus-box .market-focus-title{
    margin-left:0;
  }

}
