@charset "UTF-8";

body {
  /* background-color: #e6f3ff; */
  margin: 0 auto;
  /* font-family: "Helvetica Neue", sans-serif; */
  font-family:
    "Noto Sans JP",
    "Yu Gothic UI",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;
  font-weight: 400;
  line-height: 1.3;
  font-size: large;
  padding-top: 160px; /*  ヘッダーの高さに応じて適宜調整すること */
}

/* テーマ色 */
:root {
  --theme-color: #00aaff;
  --text-color: #333;
  --bg-hover: #00aaff;

}

.key-visual{
  max-width: 1000px;
  max-height: 450px;
  aspect-ratio: 10 / 4.5; /* 1000×450相当 */
  /*display: flex;*/
  margin: 0 auto;
  background-image: url("/common/new_design/banner/key_visual.png");
  background-size: cover;
  background-position: center;
}

.key-visual img{
  width: 100%;
  height: 100%;

}

.banner{
  max-width: 1000px;
  margin-bottom: 20px;
}

.banner img {
  width: 100%;
  max-height: 20vh;
  min-height: 180px;
}


/* Bodyの枠*/
.container {
      max-width: 1000px;
      margin: 0 auto;
      padding: 1rem 1rem;
}



.section-title{
  /*
    font-size:20px;
    font-weight:bold;
    margin-bottom:10px;
    padding: 7px;
    background:#3498db;
    color:#fff;
    border-radius:10px;
    text-align: center;
    */
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 5px solid #007BFF;
  color: #333;
}

.main-content{
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  margin-top: 20px;
  justify-content: center;
  gap: 20px;
}

/* カード（←ここが青枠） */
.card{
    background:#FFFFFF;
    border-radius:12px;
    padding:20px;
    margin-bottom:20px;

    border:2px solid #3498db; /* 青枠 */
    box-shadow:0 4px 12px rgba(0,0,0,0.2);
    position:relative;
}

/* 上ライン 
.card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
    background:#3498db;
    border-radius:12px 12px 0 0;
}

*/

/* テーブル*/
table{
    width:100%;
    border-collapse:collapse;
}

th{
    width:30%;
    background:#f0f6fb;
    text-align:left;
    padding:12px;
    border-bottom:1px solid #ddd;
}

td{
    width:70%;
    padding:12px;
    border-bottom:1px solid #eee;
}



/* セクション共通 */
section {
  margin-bottom: 40px;
}

/*
h2 {
  padding-left: 10px;
  margin-bottom: 15px;
}
*/

h2 {
  border-bottom: solid 3px #cce4ff;
  position: relative;
}

h2:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #3498db;
  bottom: -3px;
  width: 30%;
}

.news-and-topic{
  max-height: 700px;
  max-width: 48%;
  min-width: 360px;
  gap: 40px;

}

.article-section {
  max-width: 98%;
  /* width: 100%; */
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  /*margin-bottom: 20px;*/
}

.article-container {
  max-height: 240px;
  /* 控制显示区域高度 */
  overflow-y: auto;
  padding-right: 10px; /* スクロールバーのスペースを作る */
}

.new-product-section {
  /*height: 100%;*/
  max-height: 700px;
  min-height: 250px;
  max-width: 48%;
  min-width: 360px;
  padding: 2 2 2 2px;
}



.article-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

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

.article-date {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 3px;
}

.article-text {
  font-size: 1em;
  color: #333;
}
.article-text:hover{
  color: #FFFFFF;
  background-color: #3498db;
}

/* 自定义滚动条样式（仅支持 Webkit 浏览器） */
.article-container::-webkit-scrollbar {
  width: 8px;
}

.article-container::-webkit-scrollbar-thumb {
  background-color: #3498db;
  border-radius: 4px;
}

.article-container::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-radius: 4px;
}

.product-container {
  max-height: 600px;
  min-height: 235px;
  /* 控制显示区域高度 */
  overflow-y: auto;
  padding-right: 10px;
  /* 留出空间显示滚动条 */
}

.product-container::-webkit-scrollbar {
  width: 8px;
}

.product-container::-webkit-scrollbar-thumb {
  background-color: #3498db;
  border-radius: 4px;
}

.product-container::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-radius: 4px;
}




.new-product{  
  max-width: 50%;
  /*display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px; 任意 */
}


.product-container::-webkit-scrollbar-thumb {
  background-color: #3498db;
  border-radius: 4px;
}

.product-container::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-radius: 4px;
}

.panel{
  width: 100%; 
}

.panel img {
  width: 100%;
  height: auto;
  display: block;
}

.panel img:hover {
  opacity: 0.7;
}

.product-image {
  width: 100%;
  margin: 30px 0;
}

.product-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
}

a {
  text-decoration: none; /* 下線を消す */
  color: #3498db;
}

a:hover {
  color: #00aaff;
}

@media (max-width: 768px) {
  .h1 {
     font-size: 1.5rem;
  }

  th, td {
    font-size: 14px;
  }

  body{
      padding-top: 120px;

  }
}