﻿@charset "utf-8";

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #000000;
}

p {
  font-family: sans-serif;
}

/* メインコンテンツ */
.main {
  padding: 60px 0 0 0;
  background-color: #1a1a1a;
}

.news-container {
  width: 70%;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px 5% 20px 5%;
  box-sizing: border-box;
}

/* タイトル */
.news-title {
  font-family: sans-serif;
  font-size: 1.6rem;
  font-weight: bold;
  color: #312C8A;
  padding-bottom: 10px;
}
.news-title::after {
  content: "";
  display: block;
  width: 106%; /* ← ここでラインだけ長くする */
  height: 2px;
  background-color: #dddddd;
  margin: 20px auto -10px auto;
  transform: translateX(-3%); /* ← 横にはみ出す補正 */
}
/* 各ニュース項目 */
.news-item {
  font-family: sans-serif;
  padding: 20px 0;
}
.news-item::after {
  content: "";
  display: block;
  width: 106%; /* ← ここでラインだけ長くする */
  height: 2px;
  background-color: #dddddd;
  margin: 20px auto -20px auto;
  transform: translateX(-3%); /* ← 横にはみ出す補正 */
}
.news-line1 {
  font-size: 1.1rem;
  color: #000000;
}

.news-line2 {
  font-size: 1.1rem;
  color: #000000;
}
.news-line2 a {
  color: #000000;
  text-decoration: none;
}
.news-line2 a:hover {
  color: #ff0808;
}

/* レスポンシブ ------------------------------------------------------------------------------------------------------------ */
@media screen and (max-width: 1182px) {
/* 見出し */
.main-title {
  font-size: 1.7rem;
  }
/* サブタイトル（右） */
.sub-title {
  font-size: 1.0rem;
  }
/* 下段の説明文 */
.description {
  font-size: 1.1rem;
  }
}

@media screen and (max-width: 929px) {
/* 見出し */
.main-title {
  font-size: 1.6rem;
  }
/* サブタイトル（右） */
.sub-title {
  font-size: 0.9rem;
  }
/* 下段の説明文 */
.description {
  font-size: 1.0rem;
  }
}

@media screen and (max-width: 732px) {
.section {
  max-width: 100%;
  padding: 0;
  margin: 0 auto 20px auto;
  overflow-x: hidden;
  }
.section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  }
.news-container {
  width: 100%;
}
/* 見出し */
.main-title {
  font-size: 1.5rem;
  }
/* サブタイトル（右） */
.sub-title {
  font-size: 0.8rem;
  }
/* 下段の説明文 */
.description {
  font-size: 0.9rem;
  }
  body {
    overflow-x: hidden;
  }
}

@media screen and (max-width: 590px) {
/* 見出し */
.main-title {
  font-size: 1.4rem;
  }
/* サブタイトル（右） */
.sub-title {
  font-size: 0.7rem;
  }
/* 下段の説明文 */
.description {
  font-size: 0.8rem;
  }
@media screen and (max-width: 400px) {
  .company-text {
    font-size: 0.80em;
    line-height: 1.4;
    padding: 0px 3% 20px 3%;
  }
  .company-section {
    height: auto !important;
    padding-bottom: 40px;
  }
  .company-inner {
    flex-direction: column;
  margin: 0 0; /* 左右3%の余白 */
  }
  .company-text,
  .company-image {
    width: 100%;
  }
  .company-image {
    margin-top: 0px; /* テキストとの間隔調整（任意） */
    justify-content: center;
    height: 150px; /* ← ここで高さを指定（お好みで調整OK） */
  }
  .company-image img {
    width: 100%;
    max-width: 100%;
    height: 100%;          /* 親にフィットさせる */
    object-fit: cover;     /* 縦横比を保ちながらトリミング */
  background-color: red;
  }
/* オブジェクト内文字の位置 */
.service-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(calc(-50% - 0.5em));
}
  .service-text p {
    line-height: 1.2;
  }
  .service-text .en {
    margin-top: 10px;
    font-size: 0.8rem;
  }
  .service-text .jp {
    font-size: 0.7rem;
  }
  .news-label {
    font-size: 0.7rem;
  }
  .news-date {
    font-size: 0.7rem;
  }
  .news-heading {
    font-size: 1.0rem;
  }
  .news-description {
    font-size: 0.9rem;
  }
}