* {
  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;
}

