/* ==========================================================================
   共通スタイル / katsutoshi-omae.com
   白基調・写真が主役のシンプルデザイン。モバイル優先のレスポンシブ。
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e5e5e5;
  --color-accent: #1a1a1a;
  --max-width: 960px;
  --gap: 1.5rem;
  --font-base: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  opacity: 0.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- ヘッダー / ナビ ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

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

.site-logo {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
}

/* ---------- セクション共通 ---------- */

section {
  padding: 3rem 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

.section-title {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

/* ---------- トップ：ヒーロー(名前・肩書き) ---------- */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-name {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  background: #f2f2f2;
}

/* ---------- 自己紹介 ---------- */

.profile-text p {
  margin: 0 0 1rem;
}

/* ---------- 専門領域 ---------- */

.expertise-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.expertise-item {
  border: 1px solid var(--color-border);
  padding: 1.25rem;
}

.expertise-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.expertise-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- 資格・経歴 ---------- */

.career-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.career-list li {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.career-year {
  flex: 0 0 auto;
  color: var(--color-text-muted);
  min-width: 4.5em;
}

.career-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.career-subtitle:first-of-type {
  margin-top: 0;
}

.qualification-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qualification-list li {
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---------- SNS・外部リンク ---------- */

.link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list a {
  display: block;
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ==========================================================================
   works ページ：マソンリー風ギャラリー
   ========================================================================== */

.gallery {
  column-count: 2;
  column-gap: 0.75rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.gallery-item img {
  width: 100%;
  border: none;
  cursor: zoom-in;
  background: #f2f2f2;
}

/* ---------- ライトボックス（依存ライブラリなし） ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
}

/* ---------- レスポンシブ：タブレット以上 ---------- */

@media (min-width: 600px) {
  .gallery {
    column-count: 3;
    column-gap: 1rem;
  }

  .gallery-item {
    margin-bottom: 1rem;
  }

  .expertise-list {
    grid-template-columns: 1fr 1fr;
  }

  .link-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .gallery {
    column-count: 4;
  }

  .hero-name {
    font-size: 2.5rem;
  }
}
