/* LEGACIA_BASE — Site styles(静けさ・余白・映画的演出・広告的でないトーン) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  background: #05070d;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

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

.proto-badge {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #1a1500;
  color: #ffd76a;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 215, 106, 0.35);
}

.proto-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px 8vw;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 13, 0.9);
}

.proto-nav a {
  opacity: 0.75;
  padding: 4px 2px;
}

.proto-nav a:hover,
.proto-nav a:focus {
  opacity: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---- 汎用セクション ---- */
.proto-section {
  padding: 9vh 8vw;
  max-width: 960px;
  margin: 0 auto;
}

.proto-section + .proto-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proto-section-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 14px;
}

.proto-heading {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 300;
  margin-bottom: 18px;
}

.proto-lede {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  opacity: 0.85;
  max-width: 640px;
  margin-bottom: 28px;
}

.proto-link-out {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.proto-link-out:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.proto-unconfirmed {
  font-size: 0.68rem;
  opacity: 0.5;
  margin-top: 6px;
}

/* ---- TOP: セクションカード群(LATEST/BLOG, DOCUMENTARY, LEGACIA_OS) ---- */
.proto-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.proto-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.proto-card-title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.proto-card-excerpt {
  font-size: 0.82rem;
  opacity: 0.7;
}

.proto-card-meta {
  font-size: 0.68rem;
  opacity: 0.5;
  margin-top: 12px;
}

/* ---- BLOG INDEX: 記事カード ---- */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.blog-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card[data-state="placeholder"] {
  opacity: 0.45;
  border-style: dashed;
}

.blog-card-category {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.blog-card-title {
  font-size: 1.02rem;
}

.blog-card-date {
  font-size: 0.7rem;
  opacity: 0.55;
}

.blog-card-excerpt {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ---- BLOG ARTICLE ---- */
.article-header {
  padding: 9vh 8vw 4vh 8vw;
  max-width: 720px;
  margin: 0 auto;
}

.article-category {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}

.article-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  margin-bottom: 10px;
}

.article-date {
  font-size: 0.78rem;
  opacity: 0.55;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 8vw 9vh 8vw;
}

.article-body p {
  margin-bottom: 22px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* 単一写真 */
.article-media-single {
  margin: 32px 0;
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 10px,
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.02) 20px
  );
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0.6;
  text-align: center;
  padding: 12px;
}

/* 複数写真 */
.article-media-gallery {
  margin: 32px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.article-media-gallery .gallery-item {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 10px,
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.02) 20px
  );
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  opacity: 0.6;
  text-align: center;
  padding: 8px;
}

/* 短い動画 */
.article-media-video {
  margin: 32px 0;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0.6;
  text-align: center;
  padding: 12px;
}

/* YouTube埋め込み領域 */
.article-media-youtube {
  margin: 32px 0;
  aspect-ratio: 16 / 9;
  background: rgba(255, 0, 0, 0.04);
  border: 1px dashed rgba(255, 120, 120, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  opacity: 0.65;
  text-align: center;
  padding: 12px;
}

.proto-footer {
  padding: 6vh 8vw;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  opacity: 0.65;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.proto-footer a {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .proto-section {
    padding: 7vh 6vw;
  }
  .article-header,
  .article-body {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .proto-nav {
    gap: 14px;
    padding: 12px 6vw;
  }
  .proto-footer {
    padding: 5vh 6vw;
    flex-direction: column;
    gap: 10px;
  }
}

/* ---------------------------------------------------------------------
   Hero構図(Brand/Definition/Observation/Navigation要素の配置とサイズ)
   --------------------------------------------------------------------- */

.trial-hero .hero-media img {
  object-position: center calc(45% + 6.403588516746413px);
}

.trial-hero {
  position: relative;
}

.trial-el {
  position: absolute;
  left: 8%;
  color: #ffffff;
  pointer-events: none;
  user-select: none;
  font-family: system-ui, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 300;
  z-index: 3;
}

.trial-brand {
  top: 9%;
  width: 34%;
  z-index: 2;
}
.trial-brand img {
  width: 100%;
  display: block;
}

.trial-definition {
  top: 22%;
  max-width: 46%;
  font-size: 22px;
  line-height: 2.0;
  letter-spacing: 0.02em;
  text-align: left;
  opacity: 0.92;
  margin: 0;
}

.trial-observation {
  top: 40%;
  max-width: 40%;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: left;
  opacity: 0.65;
  margin: 0;
}

.trial-nav {
  top: 88%;
  max-width: 60%;
  display: flex;
  flex-wrap: wrap;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.trial-nav span {
  white-space: nowrap;
  text-transform: uppercase;
}
.trial-nav span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: 12px;
  padding-left: 12px;
}

/* Hero直後のセクションのみ、境界線と上部余白を弱めてHeroとの連続性を出す
   (Owner評価用の最小限の調整。大規模なデザイン変更ではない)。 */
.proto-section--after-hero {
  border-top: none;
  padding-top: 6vh;
  background: linear-gradient(180deg, rgba(5, 7, 13, 1) 0%, rgba(5, 7, 13, 1) 100%);
}

@media (max-width: 768px) {
  .trial-brand {
    top: 7%;
    width: 56%;
  }
  .trial-definition {
    top: 16%;
    max-width: 84%;
    font-size: 16px;
    line-height: 1.7;
  }
  .trial-observation {
    top: 28%;
    max-width: 80%;
    font-size: 12px;
    line-height: 1.4;
  }
  .trial-nav {
    top: 90%;
    max-width: 84%;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.1em;
  }
}
