@charset "UTF-8";
/* =========================
   基本設定
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}
/* =========================
   ヘッダー
========================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 5%;
  box-sizing: border-box;
}

.site-logo {
  margin-right: auto;
  white-space: nowrap;
  font-weight: 700;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.global-nav a {
  white-space: nowrap;
}

.global-nav span {
  font-size: 12px;
}
/* =========================
   全体レイアウト
========================= */
.main-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0 80px;
}

/* =========================
   WORKS タイトル
========================= */
.works-header {
  margin-bottom: 60px;
  text-align: center;
}

.works-heading {
  margin: 0;
  font-family: 'AB-aki', 'AB-アキ', 'Noto Sans JP', sans-serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.accent-char {
  display: inline-block;
  margin-left: 12px;
  padding-left: 15px;
  border-left: 2px solid #333;
  font-family: 'AB-aki', 'AB-アキ', 'Noto Sans JP', sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* =========================
   作品リスト
========================= */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* 作品カード */
.work-card {
  padding: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* 左：画像 / 右：説明 */
.work-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start;
}

/* =========================
   左側の画像
========================= */
.work-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: start;
}

.work-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* careerlink：4枚画像 */
.work-images-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.img-row-top,
.img-row-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.img-row-top img,
.img-row-bottom img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =========================
   右側の説明文
========================= */
.work-info {
  min-width: 0;
}

.work-title {
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #333;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
}

/* 詳細情報 */
.work-specs {
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8e8e8;
}

.spec-row dt {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.spec-row dd {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

/* =========================
   フッター
========================= */
.site-footer {
  padding: 30px 20px;
  text-align: center;
  background-color: #f7f7f7;
}

.back-top {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #777;
}

/* =========================
   タブレット
========================= */
@media screen and (max-width: 900px) {
  .main-container {
    width: 94%;
  }

  .work-card {
    padding: 22px;
  }

  .work-inner {
    gap: 22px;
  }

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

  .work-title {
    font-size: 22px;
  }
}

/* =========================
   スマートフォン
========================= */
@media screen and (max-width: 600px) {
  .main-container {
    width: 92%;
    padding: 35px 0 50px;
  }

  .works-header {
    margin-bottom: 35px;
  }


 /* 「紙」などのアクセント文字（AB-akiフォントを適用） */


  .works-list {
    gap: 30px;
  }

  .work-card {
    padding: 18px;
  }

  /* 画像を上、説明文を下に配置 */
  .work-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .work-images {
    gap: 10px;
  }

  .work-images-stack {
    gap: 10px;
  }

  .img-row-top,
  .img-row-bottom {
    gap: 10px;
  }

  .work-title {
    margin-bottom: 15px;
    font-size: 21px;
  }

  .spec-row {
    padding: 12px 0;
  }

  .spec-row dt {
    font-size: 13px;
  }

  .spec-row dd {
    font-size: 13px;
  }
}


/* ケース・箱デザイン：画像1枚のとき */
.work-images-cosme {
  grid-template-columns: 1fr;
  justify-items: center;
}

.work-images-cosme .work-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
  margin: 0 auto;
}



/* =========================
   7件目：歯科（画像を大きく表示）
========================= */
.work-images-dental {
  display: block;
  width: 70%;
}

.work-images-dental .work-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transform: none;
  margin: 0;
}



/* =========================
   作品画像の拡大表示
========================= */
.work-img {
  cursor: zoom-in;
}

.image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  justify-content: center;
  align-items: center;
  padding: 50px 30px;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

@media screen and (max-width: 600px) {
  .image-lightbox {
    padding: 40px 15px;
  }

  .image-lightbox img {
    max-width: 100%;
    max-height: 80vh;
  }
}
