/* ==========================================================
   共通スタイル - シンプル & モダン
   ========================================================== */

:root {
  --color-bg: #f2fbfa;
  --color-surface: #ffffff;
  --color-text: #123c3f;
  --color-text-soft: #5c7d7d;
  --color-accent: #00a7b8;
  --color-accent-soft: #d7f4f2;
  --color-coral: #ff8a65;
  --color-coral-soft: #ffe9df;
  --color-sun: #ffc94d;
  --color-border: #dcefec;
  --max-width: 960px;
  --radius: 20px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 900px 500px at 100% 0%, rgba(0, 167, 184, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 400px at 0% 20%, rgba(255, 201, 77, 0.10), transparent 60%),
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ---------- ヘッダー / ナビゲーション ---------- */

.site-header {
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-bottom: 10px;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 8c150 12 350-12 600 0s450 12 600 0V20H0Z' fill='%2300a7b8' fill-opacity='0.55'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 300px 10px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.8;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--color-text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ---------- レイアウト共通 ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

section {
  margin-bottom: 64px;
}

section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, var(--color-accent), var(--color-coral)) 1;
}

.section-lead {
  color: var(--color-text-soft);
  margin-bottom: 28px;
}

/* ---------- トップページ: ヒーロー ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  background: linear-gradient(135deg, var(--color-accent-soft), #eefcf8 55%, var(--color-coral-soft));
  border-radius: 28px;
  padding: 44px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-sun), transparent 70%);
  opacity: 0.6;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 5px solid var(--color-surface);
  box-shadow: 0 0 0 4px var(--color-accent), 0 12px 28px rgba(0, 167, 184, 0.25);
  position: relative;
  z-index: 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  flex: 1;
  min-width: 240px;
  position: relative;
  z-index: 1;
}

.hero-name {
  font-size: 2rem;
  margin: 0 0 6px;
}

.hero-role {
  color: var(--color-coral);
  font-weight: 600;
  margin: 0 0 16px;
}

.hero-bio {
  color: var(--color-text-soft);
  max-width: 60ch;
}

/* ---------- カード共通 ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 167, 184, 0.15);
  border-color: var(--color-accent);
}

.card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-accent-soft);
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- 趣味リスト ---------- */

.hobby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.hobby-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hobby-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 167, 184, 0.12);
}

.hobby-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent-soft);
}

/* ---------- 連絡先ページ ---------- */

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 240px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  width: 96px;
  flex-shrink: 0;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.contact-note {
  margin-top: 24px;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

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

.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 28px 24px 20px;
  text-align: center;
  color: #eafcfb;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #007a87, var(--color-accent));
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 20' preserveAspectRatio='none'%3E%3Cpath d='M0 12c150-12 350 12 600 0s450-12 600 0V20H0Z' fill='%2300a7b8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 300px 10px;
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  .hero-bio {
    max-width: none;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .contact-list li {
    justify-content: center;
  }
}
