/* ==========================================
   skyphic studio — シンプル版（空の背景は sky-bg.js のまま）
========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: #f4f6fa;
  background: #2f7fd6;
  line-height: 1.7;
  /* 雲の上でも読めるよう、文字の下にうっすら影 */
  text-shadow: 0 1px 12px rgba(8, 20, 50, 0.35);
}
a { color: inherit; }

#sky-bg {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none;
  background: #2f7fd6;
}

/* ---------- header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: flex-end;
  padding: 24px 40px;
  z-index: 10;
}
.site-header nav { display: flex; gap: 28px; }
.site-header a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; opacity: 0.85;
}
.site-header a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- hero：空を見せる ---------- */
.hero {
  min-height: 72vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 1120px; margin: 0 auto; padding: 0 40px;
}
.hero h1 img { display: block; height: 64px; width: auto; max-width: 100%; }
.hero p { margin-top: 18px; }
.tagline {
  background: #ffee2d; color: #0a0a0a; text-shadow: none;
  font-size: 18px; padding: 2px 6px;
}

/* ---------- sections ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px 80px; }
.section { padding-top: 56px; }
.section-title {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid #fff; padding-bottom: 6px; margin-bottom: 24px;
}

/* ---------- works：白いカード ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.work {
  display: flex; flex-direction: column;
  text-decoration: none;
  border-radius: 18px; overflow: hidden;
  /* 白をわずかに透かして、後ろの空と雲をにじませる */
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: #1a1d24;
  text-shadow: none;
  box-shadow: 0 10px 30px rgba(10, 30, 70, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.work:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10, 30, 70, 0.26); }
/* 作品画像は images/works/ に 16:10（1280×800）で揃えてある */
.work-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.work-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work h3 { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.work p { font-size: 14px; color: #4a5060; flex: 1; }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  background: #ffee2d; color: #0a0a0a;
  padding: 1px 6px; border-radius: 4px;
}
.platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.platforms li {
  font-size: 11px; letter-spacing: 0.04em; color: #4a5060;
  border: 1px solid rgba(60, 70, 90, 0.2); border-radius: 999px;
  padding: 1px 10px;
}

/* ---------- about / news ---------- */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
#about p { font-size: 15px; max-width: 34em; }
#about p + p { margin-top: 24px; }
/* 右端の SKY タブと同じ、夜空色のすりガラス */
.contact-link {
  display: inline-block; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  padding: 12px 22px; border-radius: 10px;
  background: rgba(12, 16, 30, 0.6); color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.18s ease;
}
.contact-link:hover { background: rgba(12, 16, 30, 0.78); }
.news { list-style: none; }
.news li { font-size: 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.news li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.news time { display: inline-block; width: 7.5em; font-size: 12px; font-weight: 600; opacity: 0.8; font-variant-numeric: tabular-nums; }

.site-footer { padding: 0 40px 28px; font-size: 11px; letter-spacing: 0.04em; opacity: 0.7; max-width: 1120px; margin: 0 auto; }


/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .works { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .site-header { padding: 18px 16px; }
  .site-header nav { gap: 18px; }
  .hero { padding: 0 16px; min-height: 64vh; }
  .hero h1 img { height: 40px; }
  .tagline { font-size: 15px; }
  .wrap { padding: 0 16px 56px; }
  .works { grid-template-columns: 1fr; }
  .site-footer { padding: 0 16px 24px; }
}

/* ==========================================
   空の時刻パネル（sky-bg.js が生成）
========================================== */
.sky-panel {
  text-shadow: none;
  --sky-fg: #f2f2f2;
  --sky-bg: rgba(12, 16, 30, 0.6);
  --sky-line: rgba(255, 255, 255, 0.2);
  position: fixed;
  top: 50%;
  right: 0;
  transform: translate(280px, -50%);
  display: flex;
  align-items: center;
  z-index: 50;
  color: var(--sky-fg);
  font-family: inherit;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), color 1.2s ease;
}
.sky-panel.open { transform: translate(0, -50%); }

.sky-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--sky-line);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: var(--sky-bg);
  color: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 1.2s ease;
}
.sky-tab span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}
.sky-body {
  width: 280px;
  padding: 16px 20px 18px;
  border: 1px solid var(--sky-line);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: var(--sky-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 1.2s ease;
}
.sky-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sky-close {
  border: none;
  background: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.sky-close:hover { opacity: 1; }
.sky-clock {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0 10px;
}
.sky-time {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.sky-live { font-size: 11px; opacity: 0.6; }
.sky-range {
  width: 100%;
  accent-color: var(--sky-fg);
  cursor: pointer;
}
.sky-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  opacity: 0.55;
  padding: 0 2px;
  margin-bottom: 14px;
}
.sky-now {
  width: 100%;
  padding: 9px 0;
  border: 1px solid var(--sky-line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
.sky-now:hover:not(:disabled) { background: var(--sky-line); }
.sky-now:disabled { opacity: 0.4; cursor: default; }

@media (max-width: 900px) {
  .sky-panel { top: auto; bottom: 90px; transform: translate(280px, 0); }
  .sky-panel.open { transform: translate(0, 0); }
}
