/* =========================
   ベース
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ",
    Meiryo, sans-serif;
  background: #ffffff;
  color: #000000;
}

.page-wrap {
  min-height: 100vh;
  padding: 24px 4vw 40px;
}

/* =========================
   ヘッダー
========================= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 30px auto 12px;
}

.site-title {
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.site-subtitle {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================
   ギャラリー全体
========================= */

.gallery {
  max-width: 90%;
  margin: 0 auto;
}

/* 1年分のブロック */
.year-block {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  padding: 12px 0 64px;
  border-bottom: 1px solid #ececec;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.year-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左側：年号エリア */

.year-side {
  flex: 0 0 140px;
}

.year-number {
  font-size: 96px;
  line-height: 0.8;
  font-weight: 900;
  color: #ff1f1f; /* ESPNっぽい赤 */
  letter-spacing: 0.03em;
}

.year-meta {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #777777;
}

/* 右側：固定1枚 + スライダー */

.year-slider {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

/* 固定画像（1枚目） */
.fixed-img {
  flex: 0 0 auto;
}

.fixed-img img {
  height: 280px;         /* 高さ調整ポイント */
  width: auto;
  object-fit: cover;
  display: block;
}

/* Swiper 部分（2〜10枚） */

.year-slider .swiper {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
}

/* 画像原寸幅で1枚ずつ */
.year-slider .swiper-wrapper {
  display: flex;
}

.year-slider .swiper-slide {
  width: auto;           /* 画像の幅に合わせる */
  display: flex;
}

.year-slider .swiper-slide img {
  height: 280px;         /* 固定画像と高さ揃え */
  width: auto;
  object-fit: cover;
  display: block;
}

/* Swiper 矢印カスタム */

.year-slider .swiper-button-prev,
.year-slider .swiper-button-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  color: #000;
}

.year-slider .swiper-button-prev::after,
.year-slider .swiper-button-next::after {
  font-size: 16px;
  font-weight: 700;
}

.year-slider .swiper-button-prev {
  left: 8px;
}

.year-slider .swiper-button-next {
  right: 8px;
}

/* =========================
   レスポンシブ
========================= */

@media (max-width: 960px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .year-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 56px 0 48px;
  }

  .year-side {
    flex: none;
  }

  .year-number {
    font-size: 72px;
  }

  .fixed-img img,
  .year-slider .swiper-slide img {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .page-wrap {
    padding-inline: 16px;
  }

  .year-number {
    font-size: 56px;
  }

  .year-meta {
    font-size: 10px;
  }

  .fixed-img img,
  .year-slider .swiper-slide img {
    height: 260px;
  }

  .year-slider {
    flex-direction: column;
  }

  .fixed-img {
    order: 1;
  }

  .year-slider .swiper {
    order: 2;
  }
}
/* =========================
   左側：機械写真 + タイトル
   （YEAR ROW 1 用）
========================= */

.year-side {
  flex: 0 0 40%;
  max-width: 40%;
}

.product-card {
  position: relative;
}

.product-photo {
  width: 85%;
  height: auto;
  display: block;
}

/* Cincom M32 の赤文字 */
.product-title {
  position: absolute;
  left: 0;
  bottom: -0.2em; /* ちょっとはみ出させて重ね感を出す */
  line-height: 0.85;
}

.product-title-line1,
.product-title-line2 {
  display: block;
  font-weight: 700;
  color: #ff1f1f;
  letter-spacing: 0.02em;
}

.product-title-line1 {
  font-size: 64px;
}

.product-title-line2 {
  font-size: 80px;
}

/* 下の説明文 */
.product-subtitle {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: none;
  color: #777777;
}

/* スマホ・タブレットのときの調整 */
@media (max-width: 960px) {
  .year-side {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .product-title-line1 {
    font-size: 48px;
  }

  .product-title-line2 {
    font-size: 60px;
  }

  .product-subtitle {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .product-title-line1 {
    font-size: 40px;
  }

  .product-title-line2 {
    font-size: 52px;
  }

  .product-subtitle {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
}
/* ------------- 会社概要セクション ------------- */

.company-info-section {
  max-width: 1200px;
  margin: 40px auto 0;
}

.company-info-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 32px 28px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.company-info-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.company-info-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-info-sub {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #999;
}

/* プロフィールリスト */

.company-profile {
  margin: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  column-gap: 24px;
  padding: 14px 0;
  border-top: 1px solid #eee;
}

.profile-row:first-child {
  border-top: none;
}

.company-profile dt {
  position: relative;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  padding-left: 14px;
}

/* 左の細いカラーライン */
.company-profile dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4a2a, #f7a623);
}

.company-profile dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
}

/* レスポンシブ */

@media (max-width: 768px) {
  .company-info-inner {
    padding: 24px 18px 20px;
  }

  .profile-row {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .company-profile dt {
    font-size: 11px;
  }

  .company-profile dd {
    font-size: 13px;
  }
}
/* ------------- Google Mapセクション ------------- */

.company-map-section {
  max-width: 1200px;
  margin: 40px auto 80px;
}

.company-map-inner {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 32px 40px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.company-map-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.company-map-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-map-sub {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #999;
}

.company-map-frame iframe {
  width: 100%;
  height: 460px;
  border: none;
  border-radius: 12px;
}

@media (max-width: 600px) {
  .company-map-inner {
    padding: 24px 18px 30px;
  }

  .company-map-frame iframe {
    height: 300px;
  }
}
