/* site.css — 共通デザイン（index.html の <style> を外部化）
   使い方:
   1) このファイルを  /css/site.css  として配置
   2) 各HTMLの <head> に以下を追加:
      <link rel="stylesheet" href="css/site.css">
*/

:root{
  --bg: #f5f5f5;
  --text: #222;
  --muted: #6b7280;

  --header-bg: #111827;
  --header-text: #f9fafb;
  --header-link: #e5e7eb;

  --card-bg: #ffffff;
  --card-radius: 0.75rem;
  --card-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);

  --accent: #3b82f6;
  --link: #2563eb;

  --tag-bg: #eff6ff;
  --tag-text: #1d4ed8;

  --photo-border: #e5e7eb;
  --photo-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* Header */
header{
  background: var(--header-bg);
  color: var(--header-text);
  padding: 1.2rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .title{
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

header nav a{
  color: var(--header-link);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}

header nav a:hover{
  text-decoration: underline;
}

/* Layout */
main{
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

section{
  margin-bottom: 3rem;
  background: var(--card-bg);
  padding: 1.8rem 1.6rem;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

/* Typography */
h1, h2, h3{ margin-top: 0; }

h1{
  font-size: 1.9rem;
  margin-bottom: 0.3rem;
}

h2{
  font-size: 1.4rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

.hero-sub{
  color: var(--muted);
  font-size: 0.98rem;
}

.small{
  font-size: 0.9rem;
  color: var(--muted);
}

/* Links */
a{ color: var(--link); }
a:hover{ text-decoration: underline; }

/* Lists / items */
.list-item{ margin-bottom: 0.75rem; }
.list-item-title{ font-weight: 600; }

/* Tags */
.tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag{
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
}

/* Footer */
footer{
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1.5rem 0 2rem;
}

/* --- 写真レイアウト（Hero） --- */
.hero-wrapper{
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-text{
  flex: 1 1 auto;
  min-width: 0;
}

.profile-photo-wrapper{
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo{
  width: 150px;
  height: 150px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--photo-border);
  box-shadow: var(--photo-shadow);
  background: var(--photo-border);
}

.profile-caption{
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 0.4rem;
}

/* Responsive */
@media (max-width: 640px){
  header .title{
    flex-direction: column;
    align-items: flex-start;
  }
  header nav a{
    margin-left: 0;
    margin-right: 1rem;
  }
  section{
    padding: 1.4rem 1.2rem;
  }
  .hero-wrapper{
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .profile-photo{
    width: 120px;
    height: 120px;
  }
}
