/**
 * Site Starter — Magazine Layout (Uravation Media)
 * Self-contained layout that mirrors uravation.com /media/.
 * Overrides parent uravation-base default `p-hero` etc.
 */

/* ============================================================
   Override parent wrappers (l-main, l-container)
   so .p-sub-hero can be full-bleed and content lives in .l-inner
   ============================================================ */
.l-main {
  padding: var(--header-height, 80px) 0 0 !important;
}
.l-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.l-contents { padding: 0 0 80px; }
.l-section { padding: 60px 0; }
.l-section--surface { background: var(--color-surface); }
.l-section--alt { background: var(--color-bg-alt); }
.l-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Sub-page Hero (dark teal banner) — top of front page
   ============================================================ */
.p-sub-hero {
  background: var(--gradient-subhero);
  padding: 140px 0 60px;
  text-align: center;
  min-height: 280px;
}
.p-sub-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.p-sub-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.p-sub-hero__title {
  font-family: var(--font-en);
  font-size: clamp(3.6rem, 5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.p-sub-hero__sub {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 14px;
  letter-spacing: 0.1em;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.p-breadcrumb {
  background: var(--color-bg-alt);
  padding: 12px 0;
  min-height: 44px;
}
.p-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
}
.p-breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.p-breadcrumb__item + .p-breadcrumb__item::before {
  content: '>';
  color: var(--color-text-light);
}
.p-breadcrumb__link { color: var(--color-text-light); text-decoration: none; }
.p-breadcrumb__link:hover { color: var(--accent); }
.p-breadcrumb__link--current { color: var(--color-text); font-weight: 600; }

/* ============================================================
   Section Heading (English big + Japanese small, magazine style)
   ============================================================ */
.p-section-heading {
  text-align: center;
  margin-bottom: 36px;
}
.p-section-heading__en {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 3.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}
.p-section-heading__ja {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-top: 10px;
}

/* ============================================================
   Featured Article (big banner card)
   ============================================================ */
.p-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  border: var(--hairline);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.p-featured:hover { box-shadow: var(--shadow-card-hover); }
.p-featured__img {
  position: relative;
  background: var(--color-bg-alt);
  min-height: 280px;
}
.p-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.p-featured__noimg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.p-featured__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FF6B35;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 2;
}
.p-featured__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.p-featured__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.2rem;
  color: var(--color-text-light);
}
.p-featured__category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent-dark);
}
.p-featured__title {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin: 0;
}
.p-featured__desc {
  font-size: 1.4rem;
  line-height: 1.85;
  color: var(--color-text-light);
}
@media (max-width: 768px) {
  .p-featured { grid-template-columns: 1fr; }
  .p-featured__img { min-height: 220px; }
  .p-featured__body { padding: 24px; }
}

/* ============================================================
   Article Grid (Latest list)
   ============================================================ */
.p-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .p-articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .p-articles-grid { grid-template-columns: 1fr; } }

.p-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.p-article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.p-article-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.p-article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.p-article-card:hover .p-article-card__thumb img { transform: scale(1.04); }
.p-article-card__noimg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-soft) 100%);
}
.p-article-card__category {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.95);
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.p-article-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.p-article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  color: var(--color-text-light);
}
.p-article-card__date { font-family: var(--font-en); letter-spacing: 0.05em; }
.p-article-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-article-card:hover .p-article-card__title { color: var(--accent); }

/* ============================================================
   Buttons (link bar to archive)
   ============================================================ */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-ja);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.c-btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.c-btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 122, 138, 0.25);
}
.c-btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.c-btn--outline:hover {
  background: var(--accent-bg);
}

/* ============================================================
   CTA Banner (Uravation誘導)
   ============================================================ */
.p-cta-strip {
  background: var(--gradient-subhero);
  padding: 56px 32px;
  border-radius: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.p-cta-strip__copy { flex: 1; min-width: 240px; }
.p-cta-strip__eyebrow {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.p-cta-strip__title {
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 6px;
}
.p-cta-strip__desc {
  font-size: 1.3rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.p-cta-strip .c-btn--primary {
  background: #fff;
  color: var(--accent-dark);
  border-color: #fff;
}
.p-cta-strip .c-btn--primary:hover {
  background: rgba(255,255,255,0.92);
  color: var(--accent-deep);
}

/* ============================================================
   Article Single
   ============================================================ */
.p-article-header { padding: 32px 0 24px; max-width: 860px; margin: 0 auto; }
.p-article-header__category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.p-article-header__title {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 14px;
}
.p-article-header__meta {
  display: flex;
  gap: 16px;
  font-size: 1.3rem;
  color: var(--color-text-light);
}
.p-article-thumbnail {
  max-width: 1000px;
  margin: 0 auto 32px;
  border-radius: 14px;
  overflow: hidden;
}
.p-article-thumbnail img { width: 100%; height: auto; display: block; }
.p-article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.7rem;
  line-height: 1.9;
}
.p-article-body h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}
.p-article-body h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--accent-dark);
}
.p-article-body p { margin: 0 0 20px; }
.p-article-body ul, .p-article-body ol { margin: 0 0 20px 28px; }
.p-article-body li { margin: 0 0 8px; }
.p-article-body a { color: var(--accent); text-decoration: underline; }
.p-article-body strong { font-weight: 700; }
.p-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 1.4rem;
}
.p-article-body th, .p-article-body td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}
.p-article-body th { background: var(--color-bg-alt); font-weight: 700; }

.p-article-footer {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 24px 0;
  border-top: var(--hairline);
}
.p-article-footer__share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.p-article-footer__share-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-light);
}
.c-share-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s;
}
.c-share-btn:hover { background: var(--color-bg-alt); }

/* ============================================================
   Pagination
   ============================================================ */
.p-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.p-pagination a, .p-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  color: var(--color-text);
  border: var(--hairline);
}
.p-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.p-pagination a:hover { background: var(--color-bg-alt); }

/* ============================================================
   Page Title (archive header)
   ============================================================ */
.p-page-title {
  font-size: clamp(2.4rem, 3.5vw, 3rem);
  font-weight: 800;
  margin: 36px 0 12px;
  text-align: center;
  letter-spacing: 0.04em;
}
.p-page-desc {
  text-align: center;
  font-size: 1.4rem;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0 auto 48px;
}

/* (Removed .p-hero override — child themes that use .p-hero with inline styles
    e.g. claudecode-cases-site Coming Soon front-page, need that to render.) */

/* ============================================================
   Util
   ============================================================ */
.u-mb-32 { margin-bottom: 32px; }
.u-mb-48 { margin-bottom: 48px; }
.u-mb-64 { margin-bottom: 64px; }
.u-mb-80 { margin-bottom: 80px; }

@media (max-width: 768px) {
  .p-sub-hero { padding: 100px 0 40px; min-height: 200px; }
  .l-section { padding: 36px 0; }
  .p-section-heading { margin-bottom: 24px; }
  .p-cta-strip { padding: 36px 24px; flex-direction: column; align-items: stretch; text-align: center; }
}

/* ============================================================
   ====== claudecode-cases BRAND OVERRIDES (Code Lab) ======
   ============================================================ */

/* Google Fonts: JetBrains Mono */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Hero — graphite with code grid + $ prefix */
.p-sub-hero {
  text-align: left;
  padding: 132px 0 70px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    var(--gradient-subhero);
  background-size: 32px 32px, 32px 32px, auto;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  position: relative;
}

.p-sub-hero__inner { max-width: 1040px; }
.p-sub-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  color: var(--accent-soft);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 4px 14px;
  background: rgba(201,100,66,0.15);
  border: 1px solid rgba(201,100,66,0.35);
  border-radius: 100px;
}
/* removed: '$ ' prefix on hero eyebrow */
.p-sub-hero__title {
  font-family: var(--font-ja);
  color: #FFFCF5;
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.3;
}
.p-sub-hero__sub {
  font-family: var(--font-ja);
  color: rgba(255, 252, 245, 0.78);
  font-size: 1.5rem;
  margin-top: 18px;
  line-height: 1.85;
  letter-spacing: 0.04em;
}

/* Section heading — mono + // comment */
.p-section-heading {
  text-align: left;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(25, 25, 25, 0.18);
}
.p-section-heading__en {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 3vw, 3rem);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  font-weight: 800;
  color: var(--color-text);
}
/* removed: '// ' prefix on section heading (was too jargon-y) */
.p-section-heading__ja {
  font-family: var(--font-ja);
  font-size: 1.4rem;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
  margin-top: 8px;
  font-weight: 500;
}

/* Card — DB record style */
.p-featured,
.p-article-card {
  border-radius: 8px;
  border: 1px solid rgba(25, 25, 25, 0.18);
  box-shadow: none;
  background: var(--color-surface);
}
.p-article-card:hover, .p-featured:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.p-article-card__thumb,
.p-featured__img {
  background:
    linear-gradient(rgba(25,25,25,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,25,25,0.06) 1px, transparent 1px),
    #EFE8DA;
  background-size: 20px 20px;
}
.p-featured__badge {
  background: var(--color-text);
  color: #FFFCF5;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: none;
}
.p-article-card__category,
.p-featured__category {
  background: var(--color-text);
  color: #FFFCF5;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}
.p-article-card__date,
.p-featured__meta time {
  font-family: var(--font-mono);
  letter-spacing: 0;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.p-article-card__title,
.p-featured__title {
  font-family: var(--font-ja);
  font-weight: 700;
}

/* Article body */
.p-article-header__title {
  font-family: var(--font-ja);
  letter-spacing: 0;
}
.p-article-body code,
.p-article-body pre {
  font-family: var(--font-mono);
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.p-article-body h2 {
  font-family: var(--font-mono);
  border-bottom: 1px dashed var(--accent);
}
.p-article-body h3 { color: var(--accent-dark); }

/* Buttons — mono */
.c-btn { font-family: var(--font-mono); border-radius: 8px; letter-spacing: 0; }
.c-btn--primary {
  background: var(--color-text);
  color: #FFFCF5;
  border-color: var(--color-text);
}
.c-btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.c-btn--outline { color: var(--color-text); border-color: var(--color-text); }
.c-btn--outline:hover { background: var(--accent-bg); }

/* CTA strip — graphite with terminal feel */
.p-cta-strip {
  background: var(--color-text);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.p-cta-strip__eyebrow {
  font-family: var(--font-mono);
  color: var(--accent-soft);
  letter-spacing: 0.05em;
}

.p-cta-strip__title { font-family: var(--font-ja); }
.p-cta-strip .c-btn--primary {
  background: var(--accent);
  color: #FFFCF5;
  border-color: var(--accent);
}

/* Pagination */
.p-pagination .current { background: var(--color-text); border-color: var(--color-text); border-radius: 6px; }
.p-pagination a, .p-pagination span { font-family: var(--font-mono); border-radius: 6px; }

/* Breadcrumb */
.p-breadcrumb__list { font-size: 1.3rem; }


/* === Header logo (PNG, scaled up for stronger presence) === */
.l-header__logo a {
  display: inline-block;
  width: 320px;
  height: 70px;
  background: url('../images/logo.png?v=4') no-repeat left center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  gap: 0;
}
.l-header__logo a span { display: none; }
@media (max-width: 768px) {
  .l-header__logo a { width: 240px; height: 52px; }
}
@media (max-width: 480px) {
  .l-header__logo a { width: 192px; height: 42px; }
}

/* === cc-records: シンプル業界カテゴリリスト === */
.cc-records {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.cc-record {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.cc-record:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cc-record__icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: 12px;
}
.cc-record__body { flex: 1; }
.cc-record__name {
  font-family: var(--font-ja);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-text);
}
.cc-record__desc {
  font-size: 1.3rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}
