@charset "utf-8";

.top__imagebox {
  position: relative;
}

.top__image01 {
  margin: 32px auto 0;
  width: 880px;
  height: 780px;
  display: block;
}

.top__imagebox > p {
  position: absolute;
  top: 45%;
  left: 50%;
  text-align: center;
  -ms-transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%) skewY(-10deg) ;
  color: #fff;
  font-size: 32px;
  margin: 0!important;
  padding: 0!important;
}

.top__image01_main {
  font-size: 48px;
  font-weight: bolder;
}

/* トップ画像 メディアクエリー */
@media screen and (max-width: 959px) {
  .top__image01 {
    width: 612px;
    height: 525px;
  }
  .top__imagebox > p {
    font-size: 24px;
  }
  .top__image01_main {
    font-size: 40px;
  }
}

@media screen and (max-width: 639px) {
  
  .top__image01 {
    width: 406px;
    height: 348px;
  }

  .top__imagebox>p {
    font-size: 12px;
  }

  .top__image01_main {
    font-size: 24px;
  }
}

@media (max-width: 419px) {
  .top__image01 {
    width: 100%;
  }
}

.top__title01 {
  font-size: 64px;
  font-family:serif;
  font-weight: bold;
  color: #b83937;
}

.top__news > p {
  margin-left: 32px;
  font-size: 20px;
  border-bottom: 1px solid #b83937;
}


.top__news_content {
  margin-left: 48px;
}

.top__title02 {
  font-size: 40px;
  margin-left: 108px;
  margin-top: 108px;
  font-family: serif;
  font-weight: bold;
  position: relative;
  text-align: right;
}

.top__title02::before {
  content: attr(data-en);
  position: absolute;
  top: -108px;
  left: -108px;
  font-size: 80px;
  color:#b83937;
  font-weight: bold;
  /* font-family: 'Mrs Saint Delafield', cursive;  */
  /* font-family: Courier; */
  /* font-family: 'メイリオ'; */
  font-family:serif;
  opacity: .5;
}

.top__title02::after {
  content: '';
  width: 100%;
  height: 2px;
  display: inline-block;
  background-color: #b83937;
  opacity: 0.5;
  position: absolute;
  top: -32px;  
  left: 0px;
}

.top_title_border {
  width: 100%;
  height: 5px;
  color: #b83937;
  opacity: 0.5;
}

.top__company {
  width: 480px;
}

.top__recruit {
  margin-left: 48px;
  width: 480px;
}

.top__line {
  position: relative;
  height: 1px;
  border-width: 0;
  background-image: -webkit-linear-gradient(left,transparent 0%,#b83937 50%,transparent 100%);
  background-image: linear-gradient(90deg,transparent 0%,#b83937 50%,transparent 100%);
}

/* @media screen and (max-width: 767px) {
  .top__company_recruit {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
  }  
} */

/* View More */

.viewbox {
  height: 128px;

}

.viewmore {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px 21px 20px 20px;
  width: 200px;
  height: 25px;
  color: #f0f0f0;
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
  background-color: #b83937;
  border-radius: 20px;
  /* margin-top: 40px; */
  margin: 40px 0 0 auto;
}


.viewmore::after {
  content: '';
  transform: rotate(45deg);
  width: 6px;
  height: 6px;
  border-top: 2px solid #f0f0f0;
  border-right: 2px solid #f0f0f0;
}


.viewmore:hover {
  background: rgba(184 57 55 /.3);
}

/* 事業内容ページのデザインを参考にした新しいスタイル */

/* ニュースカード */
.top__news_card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 48px;
  margin-bottom: 48px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top__news_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.top__news_item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.top__news_item:last-child {
  border-bottom: none;
}

.top__news_date {
  font-weight: bold;
  color: #b83937;
  font-size: 16px;
  min-width: 120px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 8px 16px;
  border-radius: 8px;
  text-align: center;
}

.top__news_content {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  flex: 1;
  padding: 8px 0;
}

/* サービスカード */
.top__service_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 64px 0;
}

.top__service_card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top__service_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.top__service_title {
  font-size: 20px;
  font-weight: bold;
  color: #b83937;
  margin-bottom: 16px;
  line-height: 1.4;
}

.top__service_description {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.top__service_button {
  text-align: center;
}

/* 会社情報・採用情報カード */
.top__info_container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media screen and (max-width: 991px) {
  .top__info_container {
    grid-template-columns: none;
  }
}

.top__info_card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 48px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.top__info_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.top__info_content {
  flex: 1;
  margin: 48px 0;
}

.top__info_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top__info_list li {
  position: relative;
  padding: 12px 0 12px 24px;
  font-size: 16px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.top__info_list li:last-child {
  border-bottom: none;
}

.top__info_list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  color: #b83937;
  font-weight: bold;
}

.top__info_button {
  text-align: center;
  margin-top: auto;
}

/* 統一されたボタンスタイル */
.top__btn {
  display: inline-block;
  padding: 12px 32px;
  background: #b83937;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.top__btn:hover {
  background: #a02f2d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(184, 57, 55, .3);
  text-decoration: none;
}

/* レスポンシブ対応 */
@media (min-width: 1200px) {
  .top_title_border {
    display: none;
  }
}

@media (max-width: 1199px) {
  .top__title02 {
    font-size: 36px;
    margin-left: 80px;
    margin-top: 80px;
  }
  
  .top__title02::before {
    font-size: 72px;
    top: -80px;
    left: -80px;
  }
  
  .top__title02::after {
    /* top: -24px; */
    display: none;
  }
}

@media (max-width: 992px) {
  .top__title01 {
    font-size: 48px;
  }
  
  .top__title02 {
    font-size: 32px;
    margin-left: 60px;
    margin-top: 60px;
  }
  
  .top__title02::before {
    font-size: 64px;
    top: -60px;
    left: -60px;
  }
  
  .top__service_container,
  .top__info_container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .top__info_container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top__title01 {
    font-size: 40px;
  }
  
  .top__title02 {
    font-size: 28px;
    margin-left: 40px;
    margin-top: 40px;
  }
  
  .top__title02::before {
    font-size: 56px;
    top: -40px;
    left: -40px;
  }
  
  .top__title02::after {
    top: -20px;
  }
  
  .top__service_container,
  .top__info_container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .top__news_card,
  .top__service_card,
  .top__info_card {
    padding: 32px 24px;
  }
  
  .top__news_item {
    flex-direction: column;
    gap: 12px;
  }
  
  .top__news_date {
    min-width: auto;
    text-align: left;
  }
  
  .top__service_title {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .top__title01 {
    font-size: 28px;
  }
  
  .top__title02 {
    font-size: 20px;
    margin-left: 16px;
    margin-top: 16px;
  }
  
  .top__title02::before {
    font-size: 40px;
    top: -16px;
    left: -16px;
  }
  
  .top__title02::after {
    top: -12px;
  }
  
  .top__news_card,
  .top__service_card,
  .top__info_card {
    padding: 20px 16px;
  }
  
  .top__service_title {
    font-size: 15px;
  }
  
  .top__service_description {
    font-size: 13px;
  }
  
  .top__news_date {
    font-size: 13px;
    padding: 5px 10px;
  }
  
  .top__news_content {
    font-size: 13px;
  }
  
  .top__info_list li {
    font-size: 13px;
    padding: 8px 0 8px 18px;
  }
  
  .top__btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .top__title01 {
    font-size: 28px;
  }
  
  .top__title02 {
    font-size: 20px;
    margin-left: 16px;
    margin-top: 16px;
  }
  
  .top__title02::before {
    font-size: 40px;
    top: -16px;
    left: -16px;
  }
  
  .top__title02::after {
    top: -12px;
  }
  
  .top__news_card,
  .top__service_card,
  .top__info_card {
    padding: 20px 16px;
  }
  
  .top__service_title {
    font-size: 15px;
    line-height: 1.3;
  }
  
  .top__service_description {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .top__news_date {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .top__news_content {
    font-size: 13px;
    line-height: 1.4;
  }
  
  .top__info_list li {
    font-size: 13px;
    padding: 8px 0 8px 18px;
  }
  
  .top__btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .top__title01 {
    font-size: 24px;
  }
  
  .top__title02 {
    font-size: 18px;
    margin-left: 12px;
    margin-top: 12px;
  }
  
  .top__title02::before {
    font-size: 36px;
    top: -12px;
    left: -12px;
  }
  
  .top__news_card,
  .top__service_card,
  .top__info_card {
    padding: 16px 12px;
  }
  
  .top__service_title {
    font-size: 14px;
  }
  
  .top__service_description {
    font-size: 12px;
  }
  
  .top__news_date {
    font-size: 11px;
  }
  
  .top__news_content {
    font-size: 12px;
  }
  
  .top__info_list li {
    font-size: 12px;
  }
  
  .top__btn {
    padding: 6px 16px;
    font-size: 12px;
  }
}
