/* =========================================================
   Reset / Base
========================================================= */
html, body { 
  margin: 0; 
  padding: 0; 
  background-color: #dddddd;
  overflow-x: hidden;
}

img { 
  display: block; 
  max-width: 100%; 
  height: auto; 
}

body { 
  box-sizing: border-box; 
  padding-top: 0 !important; 
}

#all { position: relative; }

/* =========================================================
   Typography
========================================================= */
.jn-la-en { 
  font-family: "Roboto Condensed", sans-serif; 
  font-weight: 700 !important; 
}

.bold, .bold * { font-weight: bold; }

/* =========================================================
   Layout helpers
========================================================= */
.jn-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.jn-content-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: left;
}

/* =========================================================
   Header
========================================================= */
header {
  position: relative;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 60px;
  background: #181818;
  color: #fff;
}

header img {
  height: 48px;
  width: auto;
}

header .jn-la-en {
  letter-spacing: 0.16em;
  font-size: 1.2rem;
  margin: 0;
  color: #ccc;
  line-height: 1.4;
}

header h1 {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 560px) {
  header {
    padding: 16px 20px;
    gap: 14px;
  }
  header img { height: 40px; }
  header .jn-la-en { font-size: 1rem; }
}

/* =========================================================
   Hero / Swiper
========================================================= */
.jn-visual { position: relative; }

.mySwiper {
  width: 100%;
  height: 75vh;
  min-height: 520px;
  position: relative;
  z-index: 1;
}

.mySwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 上部フェード */
.jn-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 40%);
  pointer-events: none;
}

header + * { margin-top: 0 !important; }

/* =========================================================
   Slider Controls
========================================================= */
.jn-controls {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 30;
  display: flex;
}

.jn-controls button {
  width: 36px;
  height: 24px;
  padding: 0;
  font-size: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  border-radius: .3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.jn-controls button:hover { background: rgba(0,0,0,.65); }

/* =========================================================
   Home – Company Cards
========================================================= */
.jn-box1 {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 16px;
  background-color: #3b3b3b;
}

.jn-companies {
  list-style: none;
  margin: 0 auto;
  padding: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
}

.jn-card {
  text-align: center;
  padding-bottom: 32px;
  max-width: 500px;
  margin: 0 auto;
}

.jn-card h2 {
  color: #BF9B46;
  font-size: 2.1rem;
  margin: 0 0 6px;
}

.jn-card .jn-work {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 8px 0 16px;
}

.jn-card .jn-button a {
  display: block;
  width: 70%;
  border: 1px solid #ffffff;
  color: #ffffff;
  border-radius: 5px;
  padding: 8px 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.jn-card .jn-button a:hover {
  background-color: #000000;
  color: #BF9B46;
}

/* =========================================================
   Company Info / Definition List
========================================================= */
.jn-company-name {
  text-align: center;
  margin-bottom: 30px;
}

.jn-company-name h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #131313;
}

.jn-deflist {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 10px 20px;
  line-height: 1.8;
  margin-top: 28px;
}

.jn-deflist dt {
  font-weight: 700;
  color: #222;
}

.jn-deflist dd { margin: 0; }

/* =========================================================
   Buttons
========================================================= */
.jn-button { margin-top: 28px; }

.jn-button a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #313131;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(13,110,253,.22);
  transition: transform .06s, box-shadow .2s;
}

.jn-button a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13,110,253,.28);
}

/* =========================================================
   Section spacing
========================================================= */
.jn-section-block { padding: 56px 0; }

/* =========================================================
   Footer
========================================================= */
footer {
  background: #181818;
  color: #fff;
  padding: 24px;
  text-align: center;
  font-size: 13px;
}

/* =========================================================
   Representative Message Section
========================================================= */

.message-section {
  background: #f2f2f2;
  padding: 60px 20px;
}

.message-container {
  background: #ffffff;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 50px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: #333;
  line-height: 1.8;
}

.message-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

.message-container p {
  margin-bottom: 16px;
}

.signature {
  text-align: right !important;
  display: block;
  margin-top: 30px;
  font-size: 16px;
  letter-spacing: 0.03em;
}

/* セクションタイトル */
.section-title-area {
  background: #f0f0f0;
  padding: 100px 20px 10px;
  text-align: center;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #333;
  margin: 0;
}

.section-title-area.message-title-area {
  padding: 80px 20px 40px; /* ← 上を80pxにして下へ下げる */
}

/* =========================================================
   Responsive （全部まとめて整理）
========================================================= */
@media screen and (max-width: 768px) {

  /* Company list → 2列に変更 */
  .jn-companies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 24px;
    padding-top: 20px;
  }

  /* Swiper のスマホ最適化 */
  .mySwiper {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .swiper-slide {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .mySwiper .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* フォント縮小 */
  html { font-size: 30%; }

  header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  footer { font-size: 10px; padding: 18px; }

  /* 代表メッセージボックス */
  .message-container {
    padding: 25px 20px;
  }

  .message-title {
    font-size: 22px;
  }
/* =========================
   News（お知らせ）カード
========================= */
.news-section{
  background:#f2f2f2;
  padding: 30px 20px 60px; /* 上を少し詰めて下は余白 */
}

.news-container{
  background:#fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.news-list{
  list-style:none;
  margin:0;
  padding:0;
}

.news-item{
  display:flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.news-item:last-child{ border-bottom:none; }

.news-date{
  white-space: nowrap;
  color:#666;
  font-size: 14px;
}

.news-title{
  color:#111;
  text-decoration:none;
  font-size: 15px;
  line-height: 1.6;
}

.news-title:hover{
  text-decoration: underline;
}

.news-more{
  margin-top: 14px;
  text-align: right;
}

.news-more-btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #313131;
  color:#fff;
  text-decoration:none;
}

.news-more-btn:hover{ opacity: .9; }

.news-empty{
  margin:0;
  text-align:center;
  color:#666;
}

/* スマホ */
@media (max-width:768px){
  .news-container{ padding: 18px 16px; }
  .news-item{ flex-direction: column; gap: 6px; }
  .news-more{ text-align:center; }
}

}
