/* ===== カプラメー 共通スタイル ===== */
:root {
  --bg: #1b1a1f;          /* 背景 */
  --surface: #232228;     /* 空きタイル */
  --text: #ede8de;        /* 文字 */
  --muted: #a8a39a;       /* 補足の文字 */
  --line: #3a3741;        /* 枠線 */
  --accent: #d4a64a;      /* ヤギの目の色 */
  --shade: rgba(16, 15, 19, 0.86); /* タイルを暗くする色 */
  --mincho: "Shippori Mincho B1", serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--gothic);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----- ヘッダー ----- */
.site-header {
  padding-top: 24px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-eye { width: 40px; height: 24px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* ----- タブ ----- */
.tabs { display: flex; gap: 8px; }
.tab {
  min-height: 44px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.tab[aria-current="page"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.lead {
  margin: 0 auto;
  padding-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

main { flex: 1; }

/* ----- タイル ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  background: var(--tile-color, var(--surface));
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.tile-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--shade);
}
.tile-title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.tile-desc, .tile-go { display: none; }
.tile-desc { font-size: 14px; line-height: 1.7; color: #d2ccc1; }
.tile-go { font-size: 13px; letter-spacing: 0.1em; color: var(--accent); }

.tile-empty {
  aspect-ratio: 1 / 1;
  background: var(--surface);
}

/* ----- フッター ----- */
.site-footer {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ----- About ----- */
.about {
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.about-eye { width: 120px; height: 70px; }
.about h1 {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.1em;
}
.about .brand-sub { font-size: 12px; }

/* ----- PC・タブレット ----- */
@media (min-width: 721px) {
  .wrap { padding: 0 40px; }
  .site-header { padding-top: 32px; padding-bottom: 24px; }
  .brand-eye { width: 48px; height: 28px; }
  .brand-name { font-size: 26px; }
  .tab { padding: 10px 20px; font-size: 15px; }
  .lead { font-size: 15px; padding-bottom: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile, .tile-empty { aspect-ratio: 16 / 10; }
  .site-footer { padding-top: 40px; padding-bottom: 40px; font-size: 13px; }
  .about { padding: 96px 24px; }
  .about-eye { width: 160px; height: 93px; }
  .about h1 { font-size: 36px; }
}

/* マウスで操作する画面だけ、カーソルを乗せると暗くなって概要が出る */
@media (min-width: 721px) and (hover: hover) {
  .tile-info {
    top: 0;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .tile-title { font-size: 24px; }
  .tile-desc, .tile-go { display: block; }
  .tile:hover .tile-info,
  .tile:focus-visible .tile-info { opacity: 1; }
  .tile:hover img { transform: scale(1.04); }
}

@media (min-width: 721px) and (hover: none) {
  .tile-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile img, .tile-info { transition: none; }
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}
.site-footer a:hover { color: var(--accent); }

/* ----- 文章ページ（プライバシーポリシーなど） ----- */
.doc {
  max-width: 720px;
  padding: 32px 0 48px;
  font-size: 15px;
  line-height: 1.9;
}
.doc h1 {
  margin: 0 0 8px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
}
.doc .doc-date { margin: 0 0 32px; font-size: 13px; color: var(--muted); }
.doc h2 {
  margin: 40px 0 8px;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 18px;
}
.doc p, .doc ul { margin: 0 0 12px; color: #d2ccc1; }
.doc ul { padding-left: 1.4em; }
.doc a { color: var(--accent); }
.doc a:hover { color: var(--text); }

.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* ----- ヘッダー右側（タブとXアイコン） ----- */
.header-right { display: flex; align-items: center; gap: 8px; }
.icon-link {
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
}
.icon-link:hover { color: var(--accent); border-color: var(--accent); }
