/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  color: #333;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   HEADER
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(4px);
  transition: background 0.3s;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo .logo-icon-img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: invert(1);
}

.nav {
  display: flex;
  gap: 40px;
}

.nav-link {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.65;
}

/* ========================================
   HERO (index only)
======================================== */
.hero {
  position: relative;
  height: 82vh;
  min-height: 500px;
  background-image: url('images/top.png'),
    linear-gradient(160deg, #2a1f14 0%, #4a3420 55%, #3a2c22 100%);
  background-size: cover;
  background-position: left center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 10, 5, 0.62) 0%,
    rgba(15, 10, 5, 0.38) 50%,
    rgba(15, 10, 5, 0.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 0.88; transform: translateY(0); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeBtnUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }
.reveal-d4 { transition-delay: 0.38s; }

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 14px 40px;
  background: #fff;
  color: #333;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  text-shadow: none;
  animation: heroFadeBtnUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 1.0s;
}

.hero-cta-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

.hero-catchcopy {
  font-size: clamp(0.78rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  animation: heroFadeDown 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.6s;
}

/* ========================================
   SECTION COMMON
======================================== */
.section-title {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 56px;
}

/* ========================================
   SERVICE
======================================== */
.service {
  background: #fff;
  padding: 88px 24px;
}

.service-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-card {
  text-align: center;
  padding: 8px;
}

.service-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: #999;
  margin-bottom: 22px;
}

.service-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  border: 2px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #333;
}

.service-desc {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.85;
  text-align: left;
}

/* ========================================
   ABOUT PROFILE (inside service section)
======================================== */
.about-profile {
  max-width: 780px;
  margin: 56px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 36px 40px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background: #fafafa;
}

.about-profile-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #2d3e2f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-avatar-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: invert(1);
}

.about-profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
}

.about-profile-tagline {
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.about-profile-text {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .about-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }
}

/* ========================================
   RECOMMEND
======================================== */
.recommend {
  background: #2d3e2f;
  padding: 64px 24px;
}

.recommend-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.recommend-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  opacity: 0.9;
}

.recommend-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  text-align: left;
}

.recommend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.recommend-list li .fas {
  color: #8fbd8f;
  font-size: 0.9rem;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .recommend-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   WORKS (index - category cards)
======================================== */
.works {
  padding: 88px 24px;
  background: #f5f5f5;
}

.works-title {
  color: #333;
}

.works-category-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.works-category-card {
  display: block;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  color: #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.works-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.15);
}

.works-category-thumb {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 2.8rem;
}

.cat-website { background: linear-gradient(135deg, #6b9fb8 0%, #3d6b8a 100%); }
.cat-image   { background: linear-gradient(135deg, #b89a6b 0%, #8a6a3d 100%); }
.cat-webapp  { background: linear-gradient(135deg, #6b9b6b 0%, #3d7a3d 100%); }

.cat-count {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  opacity: 0.85;
}

.works-category-info {
  padding: 18px 20px;
  background: transparent;
}

.works-category-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cat-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* ========================================
   PRICE
======================================== */
.price {
  background: #fff;
  padding: 88px 24px;
}

.price-grid {
  max-width: 900px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-card {
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.price-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.price-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 14px;
  font-weight: 700;
}

.price-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: #333;
  line-height: 1.2;
  margin-bottom: 14px;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
}

.price-desc {
  font-size: 0.72rem;
  color: #888;
  line-height: 1.75;
}

.price-note {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* ========================================
   CONTACT
======================================== */
.contact {
  background: #fff;
  padding: 88px 24px;
  text-align: center;
}

.contact-catch {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.contact-features {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 28px;
}

.contact-features li {
  font-size: 0.88rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-features li .fas.fa-check {
  color: #6b9b6b;
  font-size: 0.78rem;
}

.contact-desc {
  color: #666;
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.contact-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  border: 2px solid #333;
  color: #333;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s;
}

.contact-btn:hover {
  background: #333;
  color: #fff;
}

.contact-email-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-email-link {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contact-email-link:hover {
  color: #333;
}

.contact-btn-primary {
  background: #333;
  color: #fff;
}

.contact-btn-primary:hover {
  background: #555;
  color: #fff;
}

/* ========================================
   CONTACT PAGE (contact.html)
======================================== */
.contact-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.contact-page-lead {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 2px;
}

.form-badge.required {
  background: #333;
  color: #fff;
}

.form-badge.optional {
  background: #eee;
  color: #888;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-size: 0.88rem;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #6b9b6b;
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

/* プライバシーポリシー */
.privacy-details {
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}

.privacy-summary {
  padding: 12px 16px;
  font-size: 0.78rem;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.privacy-summary::-webkit-details-marker {
  display: none;
}

.privacy-summary::after {
  content: '▼';
  font-size: 0.55rem;
  margin-left: auto;
  opacity: 0.5;
  transition: transform 0.2s;
}

details[open] .privacy-summary::after {
  transform: rotate(180deg);
}

.privacy-summary:hover {
  background: #f8f8f8;
}

.privacy-summary .fas {
  color: #6b9b6b;
  font-size: 0.75rem;
}

.privacy-body {
  padding: 16px;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}

.privacy-body p {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.9;
  margin: 0;
}

/* 送信ボタン */
.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 48px;
  background: #333;
  color: #fff;
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  align-self: center;
}

.form-submit-btn:hover {
  background: #555;
  transform: translateY(-2px);
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* メール直接連絡 */
.contact-alt-note {
  margin-top: 40px;
  text-align: center;
  font-size: 0.78rem;
  color: #aaa;
  line-height: 2;
}

.contact-alt-note .contact-email-link {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-alt-note .contact-email-link:hover {
  color: #333;
}

/* ========================================
   CONTACT CTA
======================================== */
.cta-contact {
  background: linear-gradient(160deg, #2a1f14 0%, #4a3420 60%, #3a2c22 100%);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(180, 130, 70, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-contact-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cta-contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #c49a5a;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-contact-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: #f5efe6;
  line-height: 1.45;
  margin-bottom: 20px;
}

.cta-contact-sub {
  font-size: 0.92rem;
  color: #b8a896;
  line-height: 1.9;
  margin-bottom: 40px;
}

.cta-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c49a5a;
  color: #1a1008;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 44px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(196, 154, 90, 0.35);
}

.cta-contact-btn:hover {
  background: #d9af6e;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196, 154, 90, 0.5);
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: #2a2a2a;
  color: #888;
  text-align: center;
  padding: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ========================================
   SUBPAGE COMMON
======================================== */
.page-hero {
  padding-top: 60px; /* header height */
  background: linear-gradient(160deg, #2d3e2f 0%, #4a5f4e 55%, #3d4f52 100%);
  color: #fff;
  text-align: center;
  padding-top: 110px;
  padding-bottom: 56px;
  padding-left: 24px;
  padding-right: 24px;
}

.page-hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  opacity: 0.65;
  margin-bottom: 12px;
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.breadcrumb {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.75rem;
  color: #aaa;
  border-bottom: 1px solid #eee;
}

.breadcrumb a {
  color: #aaa;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #333;
}

.breadcrumb span {
  margin: 0 8px;
}

/* ========================================
   GALLERY PAGE
======================================== */
.gallery-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-card {
  display: block;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

.gallery-thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.gallery-thumb-bg {
  width: 100%;
  height: 100%;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-overlay span {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  border: 1px solid #fff;
  padding: 6px 22px;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card-info {
  padding: 18px 20px;
  color: #333;
}

.gallery-card-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.gallery-card-info p {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 10px;
}

.gallery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border: 1px solid #ccc;
  color: #777;
  border-radius: 2px;
}

/* ========================================
   DETAIL PAGE
======================================== */

/* 画像2枚並べ用 */
.detail-thumb-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.detail-thumb-double img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.detail-thumb-double img:hover {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .detail-thumb-double {
    grid-template-columns: 1fr;
  }
}

/* ライトボックス */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.15s ease;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 2px;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  color: #fff;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-align: center;
}


.detail-container {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.btn-back:hover {
  color: #333;
}

.detail-title {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1.3;
}

.detail-subtitle {
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.22em;
  margin-bottom: 36px;
}

.detail-thumb {
  width: 100%;
  height: 440px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.detail-thumb-bg {
  width: 100%;
  height: 100%;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 52px;
}

.detail-desc h2 {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
  margin-bottom: 16px;
}

.detail-desc p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.95;
  margin-bottom: 28px;
}

.detail-meta-box {
  background: #f8f8f8;
  padding: 28px 24px;
  border-radius: 3px;
  align-self: start;
}

.detail-meta-item {
  margin-bottom: 22px;
}

.detail-meta-item:last-child {
  margin-bottom: 0;
}

.detail-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #aaa;
  margin-bottom: 6px;
}

.detail-meta-value {
  font-size: 0.85rem;
  color: #333;
  font-weight: 700;
}

.detail-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.detail-story {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-item {
  background: #f8f8f8;
  border-left: 3px solid #333;
  padding: 16px 20px;
  border-radius: 0 3px 3px 0;
}

.story-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-label .fas {
  font-size: 0.68rem;
  color: #6b9b6b;
}

.story-item p:last-child {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 0;
}

/* ========================================
   TARGET ROW (detail pages)
======================================== */
.detail-target-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding: 13px 18px;
  background: #f0f5f0;
  border-radius: 3px;
  border-left: 3px solid #6b9b6b;
}

.target-badge-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #6b9b6b;
  white-space: nowrap;
}

.target-badge-value {
  font-size: 0.85rem;
  color: #333;
  font-weight: 700;
  line-height: 1.5;
}

/* ========================================
   CASE STUDY BLOCK (detail pages)
======================================== */
.case-study {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 24px 0 36px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}

.case-item {
  padding: 22px 20px;
  border-right: 1px solid #e8e8e8;
  background: #fafafa;
}

.case-item:last-child {
  border-right: none;
}

.case-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-label .fas {
  color: #6b9b6b;
  font-size: 0.75rem;
}

.case-text {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.85;
}

@media (max-width: 640px) {
  .case-study {
    grid-template-columns: 1fr;
  }
  .case-item {
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }
  .case-item:last-child {
    border-bottom: none;
  }
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: #333;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  margin-top: 16px;
  transition: background 0.25s;
}

.btn-link:hover {
  background: #555;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-body {
    grid-template-columns: 1fr;
  }
  .detail-thumb {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 20px;
  }
  .nav {
    gap: 20px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .works-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .detail-title {
    font-size: 1.4rem;
  }
}
