/*
 * Version: 2.0.0
 * Update: LuminoaLink公式サイトのデザイン言語に全面リニューアル
 * Date: 2026-07-19
 */

:root {
  --ink: #1c2430;
  --ink-soft: #4a5568;
  --paper: #fdfdfb;
  --paper-warm: #f6f4ee;
  --line: #dcd8cd;
  --accent: #8a6d2f;
  --accent-soft: #b39c62;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Noto Serif JP", serif; }
.en {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 6vw; }
.alt { background: var(--paper-warm); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,253,251,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 6vw;
  display: flex; align-items: baseline; justify-content: space-between;
}
.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px; letter-spacing: 0.14em; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--accent); margin-left: 0.3em; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a {
  font-size: 13px; letter-spacing: 0.12em; color: var(--ink-soft);
  text-decoration: none; transition: color 0.2s;
}
.site-header nav a:hover { color: var(--accent); }
.site-header nav .nav-official {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
}
@media (max-width: 720px) { .site-header nav { display: none; } }

/* Hero */
.hero { padding: 190px 0 110px; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute; top: -180px; right: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(179,156,98,0.14) 0%, rgba(179,156,98,0) 68%);
  pointer-events: none;
}
.en-label {
  font-size: 13px; color: var(--accent);
  margin-bottom: 28px; display: block;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 600; line-height: 1.5; letter-spacing: 0.06em;
}
.hero p.lead {
  margin-top: 36px; max-width: 34em;
  font-size: 16px; color: var(--ink-soft);
}
.hero .rule { width: 72px; height: 1px; background: var(--accent-soft); margin-top: 48px; }

/* Sections */
section { padding: 96px 0; }
.hero { padding-bottom: 60px; }
.sec-head { margin-bottom: 56px; }
.sec-head .en-label { font-size: 12px; margin-bottom: 14px; }
.sec-head h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600; letter-spacing: 0.08em;
}

/* Stats */
.stats-bar { padding: 36px 0 72px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  padding: 32px 12px; text-align: center;
  border-right: 1px solid var(--line);
}
.stat-card:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.stat-card__number {
  font-family: "Cormorant Garamond", serif;
  font-size: 46px; line-height: 1.1; color: var(--ink); display: block;
}
.stat-card__label {
  font-size: 12px; letter-spacing: 0.14em; color: var(--ink-soft); display: block; margin-top: 6px;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
@media (max-width: 840px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-grid .statement {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 2.1; font-weight: 500; letter-spacing: 0.05em;
}
.about-grid .body { color: var(--ink-soft); font-size: 15px; }
.about-grid .body p + p { margin-top: 1.4em; }
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line);
}
@media (max-width: 840px) { .values-grid { grid-template-columns: 1fr; gap: 36px; } }
.value-item .num { font-size: 32px; color: var(--accent-soft); display: block; line-height: 1; }
.value-item h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 18px; font-weight: 600; letter-spacing: 0.06em;
  margin-top: 16px;
}
.value-item p { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }

/* Filter */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px; padding-bottom: 0;
}
.filter-btn {
  appearance: none; background: none; border: none; cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px; letter-spacing: 0.1em; color: var(--ink-soft);
  padding: 10px 2px 14px; position: relative;
  transition: color 0.2s;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn--active { color: var(--ink); }
.filter-btn--active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent);
}
.filter-btn__count {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px; color: var(--accent); margin-left: 6px;
}

/* Project grid */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 24px;
}
.project-card {
  background: #fff; border: 1px solid var(--line);
  cursor: pointer; display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  animation: card-in 0.5s ease forwards;
}
@keyframes card-in { to { opacity: 1; } }
.project-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28,36,48,0.08);
}
.project-card--hidden { display: none; }
.project-card__thumb {
  aspect-ratio: 16 / 10; background: var(--paper-warm);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project-card__thumb-img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
.project-card__thumb-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px; letter-spacing: 0.18em; color: var(--accent-soft);
  text-transform: uppercase; text-align: center; padding: 0 16px;
}
.project-card__body { padding: 24px 24px 8px; flex: 1; }
.project-card__category {
  font-size: 11px; letter-spacing: 0.16em; color: var(--accent);
  display: block; margin-bottom: 10px;
}
.project-card__title {
  font-family: "Noto Serif JP", serif;
  font-size: 17px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.6;
}
.project-card__desc {
  font-size: 13px; color: var(--ink-soft); margin-top: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.project-card__tag {
  font-size: 11px; letter-spacing: 0.06em; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 2px 10px;
}
.project-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px 20px;
}
.project-card__version {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px; letter-spacing: 0.14em; color: var(--ink-soft);
}
.project-card__arrow { color: var(--accent); transition: transform 0.2s; }
.project-card:hover .project-card__arrow { transform: translateX(4px); }

/* LINE CTA */
.line-cta-inner { text-align: center; max-width: 720px; }
.line-cta h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600; letter-spacing: 0.06em; line-height: 1.7;
}
.line-cta p { color: var(--ink-soft); font-size: 15px; margin-top: 24px; }
@media (max-width: 720px) { .cta-br { display: none; } }

/* Buttons */
.btn {
  display: inline-block; margin-top: 36px;
  padding: 16px 44px; border: 1px solid var(--ink);
  color: var(--ink); text-decoration: none;
  font-size: 13px; letter-spacing: 0.16em;
  transition: background 0.25s, color 0.25s;
  background: none; cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28,36,48,0.5);
  display: none; align-items: flex-start; justify-content: center;
  padding: 6vh 4vw; overflow-y: auto;
}
.modal-overlay--active { display: flex; }
.modal {
  background: var(--paper); max-width: 720px; width: 100%;
  position: relative; padding: 56px;
  border-top: 3px solid var(--accent);
}
@media (max-width: 720px) { .modal { padding: 36px 24px; } }
.modal__close {
  position: absolute; top: 18px; right: 22px;
  appearance: none; background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--ink-soft);
}
.modal__close:hover { color: var(--ink); }
.modal__category {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 14px;
}
.modal__title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: 0.05em; line-height: 1.6;
}
.modal__version {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px; letter-spacing: 0.12em; color: var(--ink-soft); margin-top: 10px;
}
.modal__screenshot-container {
  margin-top: 36px; border: 1px solid var(--line); background: var(--paper-warm);
}
.modal__screenshot { width: 100%; display: block; }
.modal__section { margin-top: 36px; }
.modal__section-title {
  font-size: 12px; letter-spacing: 0.2em; color: var(--accent);
  font-family: "Cormorant Garamond", serif; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px;
}
.modal__desc { font-size: 15px; color: var(--ink-soft); }
.modal__features { list-style: none; }
.modal__feature-item {
  display: flex; gap: 14px; font-size: 15px; color: var(--ink-soft);
  padding: 6px 0;
}
.modal__feature-icon { color: var(--accent-soft); }
.modal__tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.modal__tech-tag {
  font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 4px 14px;
}

/* Footer */
.site-footer {
  padding: 48px 0 56px; border-top: 1px solid var(--line);
  text-align: center; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.1em;
}
.site-footer .logo { font-size: 18px; display: inline-block; margin-bottom: 12px; }
.site-footer .accent { color: var(--accent); }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
