@charset "UTF-8";
/* ===========================================
 * Top Page Styles - CSS版
 * 中村敬株式会社 Corporate Site - トップページ専用
 * ========================================== */
/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  min-height: 90vh;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
}
@media (max-width: 767px) {
  .hero {
    min-height: 82svh;
    background-position: 30% 50%;
  }
}

.hero__content {
  width: min(1680px, 90%);
  margin-inline: auto;
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  left: 50%;
  transform: translateX(-50%);
  bottom: 60px;
}

@media (max-width: 767px) {
  .hero__content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 40px;
    min-height: 60vh;
    bottom: 45px;
  }
}
.hero__text {
  flex: 1;
  position: relative;
}

@media (max-width: 767px) {
  .hero__text {
    max-width: 100%;
  }
}
.hero__wide-selection {
  position: absolute;
  top: -150%;
  left: -5%;
  z-index: 1;
}

@media (max-width: 767px) {
  .hero__wide-selection {
    position: static;
  }
}
.hero__wide-selection img {
  width: min(760px, 53%);
  height: auto;
  opacity: 0.9;
}

@media (max-width: 767px) {
  .hero__wide-selection img {
    width: min(430px, 63%);
    margin-left: 4%;
  }
}
.hero__title-jp {
  font-size: clamp(45px, 4.5vw, 80px);
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
  margin: 0;
}

@media (max-width: 767px) {
  .hero__title-jp {
    font-size: clamp(30px, 6.5vw, 70px);
  }
}
.hero__image {
  flex-shrink: 0;
  width: min(300px, 26%);
}

@media (max-width: 767px) {
  .hero__image {
    width: min(200px, 30%);
    margin-left: auto;
    align-self: center;
    margin-bottom: 0;
  }
}
.hero__president {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===== パートナー企業セクション ===== */
.partners-section {
  background: #E5E5E9;
  padding: 24px 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .partners-section {
    padding: 12px 0;
  }
}
.partners-section .partners-slider {
  width: 100%;
  overflow: hidden;
}

.partners-section .partners-track {
  display: flex;
  width: 200%;
}

.partners-section .partners-slide {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 50%;
  flex-shrink: 0;
  padding: 0;
}

.partners-section .partners-slide {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 50%;
  flex-shrink: 0;
  padding: 0;
}

.partners-section .partners-slide {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 50%;
  flex-shrink: 0;
  padding: 0;
}

.partners-section .partners-slide img {
  height: 60px;
  width: auto;
  margin: 0 12px;
  object-fit: contain;
  pointer-events: none;
  border: 1px solid #ccc;
}

@media (max-width: 767px) {
  .partners-section .partners-slide img {
    height: 40px;
    margin: 0 8px;
  }
}
/* 大画面でのロゴサイズアップと適切な間隔調整 */
@media (min-width: 1230px) {
  .partners-section .partners-slide {
    justify-content: center;
    padding: 0;
    gap: clamp(8px, 0.6vw, 16px); /* 間隔を大幅に狭める */
  }
  .partners-section .partners-slide img {
    margin: 0;
    height: clamp(70px, 4.5vw, 90px); /* 画像サイズを大幅にアップ */
  }
}
@media (min-width: 1600px) {
  .partners-section .partners-slide {
    gap: clamp(10px, 0.7vw, 20px); /* さらに狭い間隔 */
  }
  .partners-section .partners-slide img {
    height: clamp(80px, 5vw, 110px); /* より大きなロゴサイズ */
  }
}
/* 超大画面での対応 */
@media (min-width: 1920px) {
  .partners-section .partners-slide {
    gap: clamp(12px, 0.8vw, 24px); /* 適度な間隔を保持 */
    max-width: 1600px; /* 最大幅を少し拡張 */
    margin: 0 auto;
  }
  .partners-section .partners-slide img {
    height: clamp(90px, 5.5vw, 120px); /* 大画面では大きなロゴ */
  }
}
/* ===== セクション共通スタイル ===== */
.top-section {
  padding-block: clamp(48px, 8vw, 100px);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(32px, 8vw, 80px);
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  color: #37377E;
  margin-bottom: 24px;
  position: relative;
  text-align: center;
  letter-spacing: 3px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #37377E;
  margin: 24px auto 0;
}
@media (max-width: 768px) {
  .section-title::after {
    margin-top: 12px;
  }
}
@media (max-width: 480px) {
  .section-title::after {
    margin-top: 8px;
  }
}

.section-text {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
  color: #3a3a3a;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== 会社紹介セクション ===== */
.about-section {
  padding: 0;
  background: #fff;
}

.about-content {
  position: relative;
}

.about-text-section {
  background: #fff;
  padding: clamp(48px, 8vw, 100px) 0;
  position: relative;
  z-index: 2;
}

.about-text-section .section-header {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 30px);
}

.about-text-section .section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  position: relative;
  line-height: 1.3;
}

.about-text-section .section-title::after {
  display: none;
}

.about-text-section .about-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

.about-text-section .about-description p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  padding-top: clamp(24px, 3vw, 30px);
  border-top: 1.5px solid #37377E;
}

.about-text-section .about-description p:last-child {
  margin-bottom: 0;
}

/* 固定背景画像セクション */
.about-visual-section {
  position: relative;
  /*height: 100vh;*/
  aspect-ratio: 1920/578;
  overflow: hidden;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

@media (max-width: 767px) {
  .about-visual-section {
    /*height: 60vh;*/
    margin: 10px auto 30px;
    background-attachment: fixed !important;
    margin-left: calc(-50vw + 50%);
    -webkit-background-attachment: fixed;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
.fixed-bg-wrapper {
  display: none;
}

.fixed-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 767px) {
  .fixed-bg-overlay {
    display: none;
  }
}

/* ===== 代表メッセージセクション ===== */
.president-section {
  background: #fff;
  padding: clamp(48px, 8vw, 100px) 0;
}

.president-message {
  position: relative;
  font-family: "Noto Serif JP", serif;
}

.president-message__content {
  position: relative;
  padding: 0;
  z-index: 0;
}

.president-message__content::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 53%;
  left: 0;
  transform: translateY(-50%);
  background: #EDEDF2;
  width: min(1680px, 94%);
  height: 105%;
}

@media (max-width: 767px) {
  .president-message__content::after {
    height: 75%;
  }
  .president-message__content {
    background: #fff !important;
  }
}
.president-message__title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  color: #2b2b2b;
  line-height: 1.4;
  text-align: left;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .president-message__title {
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 600;
  }
}
.president-message__title-accent {
  display: block;
  margin-top: 12px;
}

.president-block-first {
  display: flex;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto clamp(30px, 4.5vw, 60px);
  gap: clamp(30px, 4vw, 40px);
  padding: 0 0 0 50px;
}

@media (max-width: 767px) {
  .president-block-first {
    flex-direction: column-reverse;
    gap: 32px;
    margin-bottom: 48px;
    padding: 0;
  }
}
.president-block-first .president-text {
  flex: 1.2;
}

.president-block-first .president-text p {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  text-align: justify;
}

.president-block-first .president-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .president-block-first .president-text p {
    font-size: clamp(14px, 3.5vw, 16px);
    padding-right: 30px;
  }
}
.president-block-first .president-image {
  width: min(320px, 31%);
}

@media (max-width: 767px) {
  .president-block-first .president-image {
    flex: 0 0 auto;
    max-width: 260px;
    width: 100%;
  }
}
.president-block-first .president-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.president-block-second {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: clamp(30px, 4vw, 40px);
  padding: 0 50px 0 0;
}

@media (max-width: 767px) {
  .president-block-second {
    flex-direction: column;
    gap: 32px;
    padding: 0;
  }
}
.president-block-second .president-image {
  width: min(280px, 27%);
}

@media (max-width: 767px) {
  .president-block-second .president-image {
    flex: 0 0 auto;
    max-width: 220px;
    width: 100%;
    order: 2;
  }
}
.president-block-second .president-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.president-block-second .president-text {
  flex: 1.2;
  position: relative;
}

@media (max-width: 767px) {
  .president-block-second .president-text {
    order: 1;
  }
}
.president-block-second .president-text p {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  text-align: justify;
  margin-top: 0;
}

.president-block-second .president-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .president-block-second .president-text p {
    font-size: clamp(14px, 3.5vw, 16px);
    padding-right: 30px;
  }
}
/* ===== 取扱製品セクション ===== */
.products-section .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 767px) {
  .products-section .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
.products-section .product-card {
  position: relative;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.products-section .product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.products-section .product-card:hover .product-card__image img {
  transform: scale(1.1);
}

.products-section .product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.products-section .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.products-section .product-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
}

.products-section .product-card__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
  padding: 0 12px;
  width: 100%;
  margin: 0;
}

@media (max-width: 767px) {
  .products-section .product-card__title {
    font-size: clamp(14px, 1.6vw, 16px);
    padding: 0 6px;
  }
}
.products-section .products-more {
  text-align: center;
}

/* ===== お知らせセクション ===== */
.news-section {
  background: #fff;
}

.news-section .section-header {
  margin-bottom: 0;
}

.news-section .section-header .section-title--news {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  text-align: center;
  margin-top: 0;
}

.news-section .section-header .section-title--news::after {
  display: none;
}

.news-section .news-block {
  background: #E5E5EA;
  padding: clamp(32px, 5vw, 50px);
  margin: 0 auto 48px;
}

@media (max-width: 767px) {
  .news-section .news-block {
    padding: 32px 24px;
    margin-bottom: 32px;
  }
}
.news-section .news-list {
  margin-bottom: 32px;
  padding: 30px;
  background: #fff;
}

@media (max-width: 479px) {
  .news-section .news-list {
    padding: 20px;
  }
}
.news-section .news-item {
  border-bottom: 1px solid rgba(45, 55, 72, 0.15);
}

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

.news-section .news-item__link {
  display: flex;
  align-items: center;
  padding: 24px 0 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
  flex-wrap: wrap;
}

.news-section .news-item__link:hover {
  opacity: 0.7;
}

.news-section .news-item__date {
  font-size: clamp(16px, 2vw, 18px);
  color: #484888;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .news-section .news-item__date {
    min-width: auto;
    font-size: 15px;
    margin-bottom: 8px;
  }
}
.news-section .news-item__new-badge {
  color: #E53E3E;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  letter-spacing: 0.05em;
}

.news-section .news-item__title {
  flex: 1;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: #2D3748;
  line-height: 1.5;
  margin-right: 24px;
  margin-top: 3px;
}

@media (max-width: 767px) {
  .news-section .news-item__title {
    margin: 0 12px 0 0;
    font-size: 15px;
  }
}
.news-section .news-item__arrow {
  font-size: 18px;
  color: #fff;
  background: #C0C0D1;
  border-radius: 50%;
  padding: 1.3%;
  transition: transform 0.2s ease;
}

.news-section .news-item__link:hover .news-section .news-item__arrow {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .news-section .news-item__link {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }
  .news-section .news-item__date {
    margin-bottom: 8px;
  }
  .news-section .news-item__title {
    width: 100%;
    margin: 0;
  }
  .news-section .news-item__arrow {
    font-size: 16px;
    align-self: flex-end;
    padding: 1.6%;
    margin-top: 3px;
  }
  .news-section .news-item__arrow svg {
    width: 14px;
    height: 14px;
  }
}
.news-section .news-more {
  text-align: center;
}

.news-section .news-more .btn--outline {
  color: #2D3748;
  border-color: #2D3748;
}

.news-section .news-more .btn--outline:hover {
  background: #2D3748;
  color: #fff;
}

/* ===== 施工事例セクション ===== */
.works-section {
  background: #fff;
  padding: clamp(48px, 8vw, 100px) 0;
  overflow: hidden;
}

.works-slider {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.works-track {
  display: flex;
  width: 200%;
  will-change: transform;
}

.works-slide {
  display: flex;
  min-width: 50%;
  flex-shrink: 0;
  gap: 40px;
  padding: 0 20px;
}

.works-slide img {
  flex: 1;
  height: 300px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (max-width: 767px) {
  .works-slide img {
    height: 160px;
  }
  .works-slide {
    gap: 20px;
    padding: 0 10px;
  }
}
/* ===== ボタンスタイル ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: clamp(14px, 1.2vw, 16px);
}

.btn--primary {
  background: #d9534f;
  color: #fff;
  border: 2px solid #d9534f;
}

.btn--primary:hover {
  background: transparent;
  color: #d9534f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 83, 79, 0.3);
}

.btn--outline {
  background: transparent;
  color: #2b2b2b;
  border: 2px solid #2b2b2b;
}

.btn--outline:hover {
  background: #2b2b2b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 43, 43, 0.2);
}

/* ===== 会社概要セクション ===== */
.company-overview {
  padding: 60px 0;
}

.company-overview .company-table {
  background: #fff;
  overflow: hidden;
}

.company-overview .company-table .table-row {
  display: flex;
  border-bottom: 1px solid #D9D9D9;
}

.company-overview .company-table .table-row:first-child {
  border-top: 1px solid rgba(217, 217, 217, 0.9);
}

@media (max-width: 767px) {
  .company-overview .company-table .table-row {
    flex-direction: column;
  }
}
.company-overview .company-table .table-header {
  background: #F3F3F7;
  padding: 20px;
  font-weight: 600;
  color: #2b2b2b;
  width: 200px;
  flex-shrink: 0;
  text-align: center;
}

@media (max-width: 767px) {
  .company-overview .company-table .table-header {
    width: 100%;
    padding: 16px;
  }
}
.company-overview .company-table .table-data {
  padding: 20px;
  color: #3a3a3a;
  line-height: 1.6;
  flex: 1;
}

@media (max-width: 767px) {
  .company-overview .company-table .table-data {
    padding: 14px;
    text-align: center;
  }
}
/* ===== 沿革セクション ===== */
.company-history {
  padding: 60px 0;
  background: #fff;
}

.company-history .inner {
  background: #F3F3F7;
  padding: 50px 80px;
}

@media (max-width: 767px) {
  .company-history .inner {
    padding: 35px 35px;
  }
}
@media (max-width: 479px) {
  .company-history .inner {
    padding: 15px 20px;
  }
}
.company-history .history-list {
  background: #F3F3F7;
  overflow: hidden;
  max-width: 800px;
  margin: auto;
}

.company-history .history-item {
  display: flex;
  border-bottom: 1px solid rgba(112, 112, 112, 0.7);
}

.company-history .history-item:first-child {
  border-top: 1px solid rgba(112, 112, 112, 0.7);
}

@media (max-width: 767px) {
  .company-history .history-item {
    flex-direction: column;
  }
}
.company-history .history-item .history-year {
  padding: 20px;
  font-weight: 600;
  color: #3a3a3a;
  width: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .company-history .history-item .history-year {
    width: 100%;
    padding: 16px;
    padding-bottom: 0;
  }
}
.company-history .history-item .history-content {
  padding: 20px;
  color: #3a3a3a;
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .company-history .history-item .history-content {
    padding: 14px;
    padding-top: 2.5px;
  }
}
/* ===== アクセスセクション ===== */
.company-access {
  padding: 60px 0;
}

.company-access .access-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 800px;
  max-width: 100%;
  margin: auto;
}

.company-access .map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 40px;
  overflow: hidden;
}

.company-access .map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
}

.company-access .access-info {
  background: #fff;
  color: #37377E;
  padding: 30px;
  border-radius: 8px;
}

.company-access .access-info .address {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.company-access .access-info .access-note {
  line-height: 1.6;
}

.gm-style .place-card-large {
  display: none !important;
}
