@charset "utf-8";

/* ==========================================================================
   1. トップイメージ（メインビジュアル）
   ========================================================================== */
.first-view {
  height: 300px;
  background-image: url(../img/bg-main01.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  border-top: 6px solid var(--color-primary);    /* darkblueから共通変数へ */
  border-bottom: 6px solid var(--color-primary); /* darkblueから共通変数へ */
}

.first-view-text {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  color: var(--color-bg-white);
  font-weight: bold;
  text-shadow: 1px 1px 10px #4b2c14;
}

.first-view-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 50px;
  line-height: 70px;
}

.first-view-text p {
  font-size: 18px;
  margin-top: 20px;
}

/* --- トップイメージ：レスポンシブ --- */
@media (max-width: 640px) {
  .first-view-text h1 {
    font-size: 40px;
    line-height: 56px;
  }
  .first-view-text p {
    font-size: 15px;
    margin-top: 20px;
  }
}


/* ==========================================================================
   2. お知らせセクション（News）
   ========================================================================== */
.whats-new-section {
  width: 100%;
  margin: 40px 0;
  border: 1px solid var(--color-accent); /* redから共通の赤（アクセント）へ */
  border-radius: 5px;
  background-color: var(--color-bg-white);
  overflow: hidden;
}

.whats-new-section h2 {
  font-size: 1.1rem;
  background-color: var(--color-accent); /* redから共通の赤へ */
  color: var(--color-bg-white);
  padding: 5px 15px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-list {
  padding: 0 15px;
  margin: 0;
  list-style: none;
}

.news-list li {
  padding: 12px 0;
  border-bottom: 1px dashed #ddd;
  display: flex;
  gap: 15px;
  align-items: center;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  color: #666;
  font-size: 0.85rem;
  font-weight: bold;
}

.news-list li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  display: block;
}

.news-list li a:hover {
  text-decoration: underline;
}


/* ==========================================================================
   3. 季節のイベントバナー
   ========================================================================== */
.top-banner-section {
  margin-bottom: 30px;
}

.event-banner-link {
  display: block;
  text-decoration: none;
  border: 2px solid var(--color-primary); /* darkblueから変更 */
  border-radius: 5px;
  background: linear-gradient(to right, #fffde5, #ffffff);
  transition: opacity 0.3s;
}

.event-banner-link:hover {
  opacity: 0.8;
}

.event-banner-inner {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.event-tag {
  background-color: var(--color-accent); /* redから変更 */
  color: var(--color-bg-white);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.event-content h3 {
  margin: 0;
  color: var(--color-primary); /* darkblueから変更 */
  font-size: 1.2rem;
}

.event-content p {
  margin: 5px 0 0;
  color: #333;
  font-size: 0.9rem;
}

/* --- イベントバナー：レスポンシブ --- */
@media (max-width: 640px) {
  .event-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ==========================================================================
   4. おすすめ印刷価格セクション（カラー色分け・文字拡大版）
   ========================================================================== */
.product-nav-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* 最大3列、画面幅に合わせて2列、1列へと自動可変するグリッド */
.product-banner-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.product-nav-item {
  width: 100%;
}

/* 商品ボタンカードのベース設定 */
.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  padding: 20px 25px;
  text-decoration: none !important;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* 背景写真とグラデーションカラーのオーバーレイ設定 */
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   ★各商品ボタンの「専用カラー（濃いめの青・緑・オレンジ）」と「背景写真」
   -------------------------------------------------------------------------- */

/* 1. 名刺：濃いめの青（透明度を 0.8 → 0.45 へ落として明るく） */
.product-card-meishi::before {
  background-image: linear-gradient(rgba(10, 50, 110, 0.45), rgba(10, 50, 110, 0.45)), url('../img/img-meishi.jpg');
}

/* 2. 封筒：濃いめの緑（透明度を 0.8 → 0.45 へ落として明るく） */
.product-card-futo::before {
  background-image: linear-gradient(rgba(10, 80, 50, 0.45), rgba(10, 80, 50, 0.45)), url('../img/img-futou.jpg');
}

/* 3. パンフレット：濃いめのオレンジ（透明度を 0.82 → 0.5 へ落として明るく） */
.product-card-pamphlet::before {
  background-image: linear-gradient(rgba(190, 75, 10, 0.5), rgba(190, 75, 10, 0.5)), url('../img/img-punfu.jpg');
}

/* マウスオン時は少しだけ背景を明るくして「押せる感」を出す */
.product-card:hover::before {
  opacity: 0.7;
}
.product-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.product-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card .product-title {
  font-size: 1.5rem;          /* 1.3remから1.5remへ一回り大きく調整 */
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #ffffff !important;  /* 強制的に純白に固定 */
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.product-card .product-description {
  font-size: 0.9rem;          /* 0.85remから0.9remへ少し拡大して読みやすく */
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.95) !important; /* 説明文も鮮やかな白に固定 */
}

/* --------------------------------------------------------------------------
   １列（スマホ環境）になった時のレスポンス制御
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  .product-banner-wrapper {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .product-card {
    height: 95px;               /* 天地幅（高さ）をスマートに縮小 */
    padding: 15px 20px;
  }
  
  .product-card .product-title {
    font-size: 1.25rem;         /* スマホ環境でも適切な大きさをキープ */
    margin-bottom: 4px;
  }
  
  .product-card .product-description {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}


/* ==========================================================================
   5. 事業案内セクション
   ========================================================================== */
.service-nav-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 20px;
}

.service-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.service-main-copy {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.service-banner-wrapper {
  display: flex;
  gap: 20px;
}

.service-nav-item {
  flex: 1;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 220px;
  padding: 40px;
  text-decoration: none !important;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.service-card-printing::before {
  background-image: linear-gradient(rgba(0, 60, 130, 0.75), rgba(0, 60, 130, 0.75)), url('../img/bg-printing.jpg');
}

.service-card-creative::before {
  background-image: linear-gradient(rgba(0, 60, 130, 0.75), rgba(0, 60, 130, 0.75)), url('../img/bg-creative.jpg');
}

.service-card:hover::before {
  opacity: 0.7;
}

.service-content,
.service-arrow-wrap {
  position: relative;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ★根本解決：他からのCSS継承に負けないよう、aタグ内の文字色を最優先で白に固定 */
.service-card .service-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 10px 0; 
  color: #ffffff; /* 確実に白を適用 */
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.service-card .service-description {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  color: #ffffff; /* 確実に白を適用 */
}

.service-arrow-wrap {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 20px;
}

.service-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-left: -3px;
}


/* ==========================================================================
   6. 共通レスポンシブ（スマホ環境での最適化）
   ========================================================================== */
@media (max-width: 800px) {
  /* おすすめ商品：スマホでは1列縦並びにする */
  .product-banner-wrapper {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    height: 100px;
    padding: 15px 20px;
  }
  .product-title {
    font-size: 1.1rem;
  }
  .product-description {
    font-size: 0.8rem;
  }

  /* 事業案内：スマホ対応 */
  .service-banner-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .service-card {
    height: 140px;
    padding: 20px 30px;
  }
  .service-card .service-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }
  .service-card .service-description {
    font-size: 0.85rem;
  }
}


/* ==========================================================================
   7. 会社の強みセクション
   ========================================================================== */
.strength-section {
  background-color: #f9f9f9;
  padding: 80px 0;
  margin: 40px 0;
}

.strength-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.strength-left {
  flex: 0 1 45%;
  min-width: 320px;
}

.strength-main-copy {
  font-size: 2.4rem;
  line-height: 1.4;
  font-weight: bold;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}

.strength-sub-caption {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #666;
  text-align: justify;
}

.pc-br {
  display: inline;
}

.strength-right {
  flex: 0 1 50%;
}

.strength-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.strength-list li {
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}

.strength-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.strength-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent);
  line-height: 1;
  padding-top: 5px;
}

.strength-text h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.strength-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

@media (max-width: 850px) {
  .pc-br {
    display: none;
  }
  .strength-inner {
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
  }
  .strength-left {
    width: 100%;
    min-width: auto;
    margin-bottom: 20px;
  }
  .strength-main-copy {
    font-size: 1.8rem;
  }
  .strength-section {
    padding: 50px 0;
  }
}