@charset "UTF-8";

/* ==========================================================================
   下層ページ メインビジュアル（ヘッダー下バナー）
   ========================================================================== */
.sub-mv {
  margin-top: 80px; /* ヘッダー高さ分 */
  width: 100%;
  height: 260px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.sub-mv-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

@media screen and (max-width: 768px) {
  .sub-mv {
    margin-top: 60px;
    height: 180px;
  }
}

/* ==========================================================================
   下層ページ ヘッダータイトル ＆ 区切り線
   ========================================================================== */
.sub-page-header {
  margin-bottom: 6rem;
}

.sub-page-header .header-line {
  width: 80px;
  height: 3px;
  background-color: #555555;
  margin: 2rem auto 0;
}

.section-divider {
  border: none;
  border-top: 2px solid #555555;
  width: 100%;
  margin: 8rem 0 0;
}

@media screen and (max-width: 768px) {
  .sub-page-header {
    margin-bottom: 4rem;
  }
  .section-divider {
    margin: 5rem 0 0;
  }
}

/* ==========================================================================
   SERVICE 3カラム グリッド一覧
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

/* カードタイトル */
.service-card-title {
  font-size: 2.0rem;
  font-weight: 900;
  color: #222222;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* DTP制作のカッコ内テキストを小さくして1行に収める */
.service-card-title .title-sub {
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-block;
}

/* カード画像：角丸にして美しく配置 */
.service-card-thumb {
  margin-bottom: 1.5rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.service-card-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.service-card:hover .service-card-thumb img {
  transform: scale(1.05);
}

/* カードテキスト */
.service-card-text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 2rem;
  flex-grow: 1; /* 下部のボタン位置を揃えるため伸長 */
}

/* カード下部 黒リンクボタン */
.service-card-btn {
  margin-top: auto;
}
.btn-service-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.2rem 1.8rem;
  background-color: #222222;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.btn-service-card:hover {
  background-color: #444444;
  opacity: 1;
}

@media screen and (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .service-card-title {
    font-size: 1.8rem;
  }
  .service-card-title .title-sub {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   SEMINAR（セミナー案内セクション）
   ========================================================================== */
.seminar-section {
  padding-top: 6rem;
}

.seminar-layout {
  display: flex;
  gap: 5rem;
  align-items: center;
}

.seminar-image {
  flex: 1.2;
}
.seminar-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.seminar-content {
  flex: 1;
}

.seminar-header {
  margin-bottom: 2.5rem;
}

.seminar-text {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 3rem;
}

/* --- ★修正：SP版でTOPページWORKSと同じ表示順（タイトル→写真→本文→ボタン）にする調整 --- */
@media screen and (max-width: 768px) {
  .seminar-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* 親グループの枠組みを透明化し、すべての子要素を対等な列で並び替えられるようにする */
  .seminar-content {
    display: contents;
  }
  .seminar-header {
    order: 1; /* ①タイトルを一番上に配置 */
    width: 100%;
    margin-bottom: 2rem;
  }
  .seminar-image {
    order: 2; /* ②写真を2番目に配置 */
    width: 100%;
    margin-bottom: 2rem;
  }
  .seminar-text {
    order: 3; /* ③本文テキストを3番目に配置 */
    width: 100%;
    margin-top: 0;
    margin-bottom: 2.5rem;
  }
  .seminar-btn-wrap {
    order: 4; /* ④リンクボタンを一番最後（4番目）に配置 */
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   下層ページ共通：導線アイコン一覧（フッター直上 6連ナビゲーション）
   ========================================================================== */
.sub-nav-icons {
  padding: 5rem 0 6rem;
  background-color: #ffffff;
}

.nav-icons-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  text-align: center;
}

.nav-icons-list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 6px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.nav-icons-list li a:hover {
  transform: translateY(-4px);
  background-color: #f9f9f9;
  opacity: 1;
}

.nav-icons-list .icon-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-bottom: 1.2rem;
}
.nav-icons-list .icon-img img {
  max-height: 40px;
  width: auto;
}

.nav-icons-list .icon-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.3;
}

@media screen and (max-width: 1024px) {
  .nav-icons-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .sub-nav-icons {
    padding: 3rem 0 5rem;
  }
  .nav-icons-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .nav-icons-list li a {
    padding: 1.2rem 0.5rem;
    border: 1px solid #eeeeee;
    background-color: #fafafa;
  }
  .nav-icons-list .icon-img {
    height: 40px;
    margin-bottom: 0.8rem;
  }
  .nav-icons-list .icon-img img {
    max-height: 32px;
  }
  .nav-icons-list .icon-text {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   CONTACT（お問い合わせエリア）
   ========================================================================== */
.contact {
  background-color: #00B7CE;
  color: #ffffff;
}

.contact-title {
  font-size: 5.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.contact-sub {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-text {
  font-size: 1.5rem;
  margin-bottom: 4rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 260px;
  padding: 1.6rem 2rem;
  background-color: #222222;
  color: #ffffff;
  font-size: 1.5rem;
  border-radius: 4px;
}
.btn-contact:hover {
  background-color: #444444;
}

@media screen and (max-width: 768px) {
  .contact-title { font-size: 3.6rem; }
  .contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .btn-contact {
    width: 100%;
    max-width: 320px;
  }
}