/* ===========================================
   制作実績ページ専用スタイル
   =========================================== */

/* ─── ヘッダー下余白 ─── */
body {
  padding-top: 64px;
}

/* ─── フッターwave上書き ─── */
body .footer-wave {
  display: block;
  width: 100%;
  line-height: 0;
  background: #fff;
  margin-bottom: -2px;
}

body .footer-wave svg {
  display: block;
  width: 100%;
}

footer .footer-top {
  background: var(--cream);
}

/* =========================================
   PAGE HERO
   ========================================= */
.page-hero-wrap {
  background: linear-gradient(135deg, var(--primary) 0%, #0f3872 100%);
  padding: 72px 8% 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-wrap::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  top: -100px;
  right: -80px;
}

.page-hero-wrap::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(232, 119, 10, 0.12);
  bottom: -60px;
  left: 5%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-l);
  margin-bottom: 0.6rem;
}

.page-hero-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 0.8rem;
}

.page-hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.9;
}

/* =========================================
   WORKS SECTION
   ========================================= */
#works {
  background: var(--cream);
  padding: 72px 8%;
}

.works_area {
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================================
   WORKS LIST（2カラムグリッド）
   ========================================= */
.works_ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* =========================================
   WORKS ITEM（画像上・テキスト下カード）
   ========================================= */
.works_item {
  flex: 0 1 calc(50% - 1rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.28s, box-shadow 0.28s;
}

.works_item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ─── 画像エリア ─── */
.works_img {
  width: 100%;
  overflow: hidden;
  background: var(--warm-gray);
}

.works_img img {
  width: 100%;
  display: block;
  vertical-align: bottom;
  transition: transform 0.5s;
}

.works_item:hover .works_img img {
  transform: scale(1.04);
}

/* ─── テキストエリア ─── */
.works_text {
  flex: 1;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.works_text h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.works_text h3 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.works_text h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.works_text p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.85;
}

/* =========================================
   WORK TAGS
   ========================================= */
.work_tabs {
  margin-bottom: 1rem;
}

.work_tabs_ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work_tabs_ul li {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  padding: 0.2em 0.7em;
  border-radius: 20px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* タグカラー */
.bg_red     { background: #e53e3e; }   /* 新規・リニューアル・修正 */
.bg_yel     { background: #c58a0a; }   /* コーディング */
.bg_blu     { background: var(--primary); }  /* WordPress / HTML */
.bg_gray    { background: #6b7280; }   /* SEO / デザイン */
.bg_grn     { background: var(--teal); }     /* CSS / PHP / 各種 */
.bg_cyan_blu { background: #0891b2; }  /* デザイン（別枠） */

/* =========================================
   TYPOGRAPHY UTILITIES
   ========================================= */
.mt20 {
  margin-top: 0.8rem;
}

.fs_24 {
  font-size: 1.1rem;
}

.no-rink {
  color: var(--primary);
  text-decoration: none;
  cursor: default;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 960px) {
  .global-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 680px) {
  #works {
    padding: 56px 5%;
  }

  .works_ul {
    flex-direction: column;
  }

  .works_text {
    padding: 1.2rem 1.4rem;
  }

  .works_text h3 {
    font-size: 1rem;
  }
}
