@charset "UTF-8";

/* ============================================================
   fozu.jp — 共有スタイル
   素のCSS1本。外部CDN・Webフォント不使用。
   ============================================================ */

/* --- 1. トークン ------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8f8;
  --bg-tint: #eef5f5;
  --ink: #16191b;
  --ink-2: #4d565b;
  --ink-3: #7b858a;
  --line: #e2e8e9;
  --line-soft: #eef2f3;
  --accent: #0f5f68;
  --accent-deep: #0a464d;
  --accent-tint: #e8f2f2;

  --wrap: 1060px;
  --gap: 24px;
  --radius: 10px;

  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-en: system-ui, -apple-system, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;

  color-scheme: light;
}

/* --- 2. リセット ------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .015em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: .01em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- 3. レイアウト ----------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 50;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* --- 4. ヘッダー ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--accent); }
.brand .mark {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-block;
  padding: 6px 11px;
  font-size: .9rem;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 6px;
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover { color: var(--accent); background: var(--accent-tint); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* --- 5. ヒーロー / ページ見出し ---------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(44px, 7vw, 76px);
  border-bottom: 1px solid var(--line-soft);
}
.hero h1 {
  font-size: clamp(1.95rem, 5.6vw, 3.05rem);
  line-height: 1.28;
  letter-spacing: -.01em;
}
.hero .lead {
  margin-top: 22px;
  max-width: 40em;
  color: var(--ink-2);
  font-size: clamp(.97rem, 2.4vw, 1.05rem);
}

.page-head {
  padding: clamp(44px, 7vw, 76px) 0 clamp(24px, 4vw, 36px);
}
.page-head h1 {
  font-size: clamp(1.65rem, 4.6vw, 2.3rem);
  letter-spacing: -.005em;
}
.page-head .lead {
  margin-top: 16px;
  max-width: 46em;
  color: var(--ink-2);
  font-size: .96rem;
}

/* 見出しブロックの直後は上の余白を詰める */
.page-head + .section { padding-top: clamp(10px, 2vw, 20px); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* --- 6. ボタン --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease,
    border-color .2s ease, transform .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent-deep); }

/* --- 7. セクション ----------------------------------------- */
.section { padding: clamp(48px, 7.5vw, 84px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-soft { background: var(--bg-soft); }

.section h2 {
  font-size: clamp(1.28rem, 3.4vw, 1.6rem);
  letter-spacing: -.005em;
}
.section .section-lead {
  margin-top: 14px;
  max-width: 46em;
  color: var(--ink-2);
  font-size: .95rem;
}

/* --- 8. スキル --------------------------------------------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
  list-style: none;
}
.skill-grid > li {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.skill-grid h3 {
  font-size: .98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-grid h3::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.skill-grid p {
  margin-top: 8px;
  font-size: .87rem;
  color: var(--ink-2);
  line-height: 1.8;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  list-style: none;
}
.chips > li {
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-en);
  font-size: .8rem;
  color: var(--ink-2);
  letter-spacing: .02em;
}

/* --- 9. カードグリッド ------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: var(--gap);
  margin-top: 36px;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: #cfdcdd;
  box-shadow: 0 6px 22px rgba(16, 32, 34, .07);
  transform: translateY(-2px);
}

.card-thumb {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line-soft);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* 縦長のスマホ画面はカレンダー部分が入るよう上端寄りで切る */
.card-thumb-phone img { object-position: 50% 1%; }

/* 画像がない作品用のテキストサムネイル */
.card-thumb-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    linear-gradient(135deg, var(--accent-tint) 0%, var(--bg-soft) 100%);
}
.card-thumb-text span {
  font-family: var(--font-en);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  text-align: center;
  line-height: 1.5;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 20px 22px 22px;
}
.card-kicker {
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.card h3 { font-size: 1.04rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card p {
  font-size: .87rem;
  color: var(--ink-2);
  line-height: 1.8;
}
.card-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.card-more {
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.card-more::after { content: " →"; }

/* --- 10. ステータスバッジ ---------------------------------- */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  white-space: nowrap;
}
.status-live {
  border-color: #b9d9d5;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-weight: 600;
}

/* --- 11. 作品詳細 ------------------------------------------ */
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: .88rem;
  color: var(--ink-2);
}
.detail-meta > div { display: flex; gap: 10px; align-items: baseline; }
.detail-meta dt {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-en);
}
.detail-meta dd { margin: 0; }

.prose h2 {
  font-size: 1.18rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.prose p { font-size: .95rem; color: var(--ink-2); }
.prose p + p { margin-top: 14px; }

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.feature-list > li {
  position: relative;
  padding-left: 22px;
  font-size: .93rem;
  color: var(--ink-2);
}
.feature-list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .78em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.feature-list b { color: var(--ink); font-weight: 600; }

/* --- 12. スクリーンショット -------------------------------- */
.shots {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  list-style: none;
}
.shots-phone { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.shots-wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.shots figure { margin: 0; }
.shots img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}
.shots figcaption {
  margin-top: 9px;
  font-size: .8rem;
  color: var(--ink-3);
  line-height: 1.7;
}

.note {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.85;
}

.backlink {
  display: inline-block;
  margin-top: 40px;
  font-size: .88rem;
  text-decoration: none;
}
.backlink::before { content: "← "; }

/* --- 13. 404 ----------------------------------------------- */
.center-panel {
  padding: clamp(70px, 14vw, 150px) 0;
  text-align: center;
}
.center-panel .code {
  font-family: var(--font-en);
  font-size: clamp(3rem, 12vw, 4.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-tint);
  line-height: 1;
}
.center-panel h1 {
  margin-top: 12px;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
}
.center-panel p { margin-top: 16px; color: var(--ink-2); font-size: .95rem; }
.center-panel .hero-actions { justify-content: center; }

/* --- 14. フッター ------------------------------------------ */
.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0 46px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
  flex-wrap: wrap;
}
.site-footer .copyright {
  font-family: var(--font-en);
  font-size: .83rem;
  color: var(--ink-3);
  letter-spacing: .03em;
}
.footer-links {
  display: flex;
  gap: 6px 18px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: .85rem;
  color: var(--ink-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* --- 15. レスポンシブ -------------------------------------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding-inline: 20px; }
  .site-header .wrap { min-height: 56px; padding-block: 8px; }
  .site-nav a { padding: 5px 9px; font-size: .85rem; }
  .card-grid,
  .skill-grid { grid-template-columns: minmax(0, 1fr); }
  .shots-phone { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
