@import url('https://fonts.googleapis.com/css2?family=LINE+Seed+JP:wght@300;400;700;800&family=Noto+Sans+JP:wght@400;700&family=Special+Elite&display=swap');

:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --ink: #111214;
  --muted: #5a6170;
  --accent: #246b73;
  --accent-strong: #183f4d;
  --border: rgba(36, 107, 115, 0.12);
  --shadow: 0 18px 40px rgba(33, 50, 63, 0.08);
  --radius: 14px;
  --bg-start: #ffffff;
  --bg-mid: #f5f8fc;
  --bg-end: #eff4f9;
  --icon-github: #181717;
  --icon-linkedin: #0a66c2;
  color-scheme: light;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "LINE Seed JP", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg-start) 0%, var(--bg-mid) 38%, var(--bg-end) 100%);
  text-size-adjust: none;
}

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

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

.page {
  max-width: 1100px;
  margin: 36px auto 60px;
  padding: 0 24px;
  position: relative;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.site-kicker {
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.site-title {
  font-family: "LINE Seed JP", "Noto Sans JP";
  font-size: 2.4rem;
  font-weight: 400;
  margin: 0;
}

.site-title span {
  display: block;
  font-family: "LINE Seed JP", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}

.site-summary {
  font-family: "LINE Seed JP", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  margin: 14px 0 0;
  max-width: 60ch;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--icon-linkedin);
  box-shadow: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
}

.linkedin-link:any-link,
.linkedin-link:any-link:hover,
.linkedin-link:any-link:visited,
.linkedin-link:any-link:active {
  color: var(--icon-linkedin);
}

.github-link:any-link,
.github-link:any-link:hover,
.github-link:any-link:visited,
.github-link:any-link:active {
  color: var(--icon-github);
}

.social-link i {
  width: 22px;
  height: 22px;
  font-size: 22px;
  line-height: 1;
  fill: currentColor;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav a.active,
.nav a:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.content {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.page-wide {
  max-width: 1320px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.6s ease 0s 1 forwards;
}

.section h2 {
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  margin: 0 0 14px;
  font-size: 1.2rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.section h3 {
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  margin: 16px 0 8px;
  font-size: 1rem;
  color: var(--accent-strong);
}

.section-copy {
  margin: 0;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button-link:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

.button-link-secondary {
  background: transparent;
  color: var(--accent-strong);
  border-color: var(--border);
}

.button-link-secondary:hover {
  background: rgba(36, 107, 115, 0.08);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}

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

.list.compact li {
  padding: 6px 0;
}

.item-meta {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
}

.item-title {
  margin-top: 4px;
  font-weight: 500;
}

.item-sub {
  margin-top: 6px;
  color: var(--muted);
}

.item-note {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
}

.item-points {
  margin: 8px 0 0 20px;
  padding: 0;
  color: var(--muted);
}

.item-points li {
  padding: 2px 0;
  border-bottom: none;
}

.upcoming-item {
  position: relative;
  padding: 14px 16px 16px;
  border: 1px solid rgba(36, 107, 115, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(36, 107, 115, 0.08), rgba(255, 255, 255, 0.96));
}

.upcoming-item::before {
  content: "COMING SOON";
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cv-page-body {
  min-height: 100vh;
}

.cv-section {
  padding: 18px;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.cv-nav {
  justify-content: flex-start;
}

.cv-embed-shell {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 78%, var(--bg-end));
}

.cv-embed {
  display: block;
  width: 100%;
  height: min(78vh, 1100px);
  background: var(--surface);
}

.cv-fallback {
  padding: 40px 24px;
  text-align: center;
}

.cv-fallback h2 {
  margin-top: 0;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.blog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-item h2 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
  border: none;
  padding-left: 0;
}

.blog-item p {
  margin: 0 0 10px;
  color: var(--muted);
}

.site-footer {
  margin-top: 28px;
  padding: 16px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .page {
    margin-top: 24px;
    padding: 0 16px;
  }

  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav {
    justify-content: flex-start;
  }

  .cv-actions {
    align-items: flex-start;
  }

  .cv-embed {
    height: 72vh;
  }
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 220px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
}

.card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  margin-top: 16px;
  text-align: right;
}

.card-actions button,
.expanded-card div button {
  height: 38px;
  padding: 0 16px;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  font-size: 0.85rem;
}

.card-actions button:hover,
.expanded-card div button:hover {
  background-color: var(--accent-strong);
}

.button-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background-color: var(--accent);
  color: #ffffff;
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  font-size: 0.85rem;
}

.button-link:hover {
  background-color: var(--accent-strong);
  color: #ffffff;
}

.text-link {
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
}

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

.card-hidden {
  display: none;
}

.expanded-card {
  animation: fadeIn 0.6s cubic-bezier(0.33, 1, 0.68, 1) 1 forwards;
  box-shadow: var(--shadow);
  padding: 20px;
  font-size: 1rem;
  border-radius: var(--radius);
  height: fit-content;
  border: 1px solid var(--border);
  background: var(--surface);
  grid-column: 1 / -1;
}

.expanded-card p {
  display: block;
  overflow: visible;
}

.expanded-card div {
  height: 40px;
  text-align: right;
  margin-top: 16px;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  margin-bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  align-items: center;
}

.tag-label {
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  color: var(--accent-strong);
  background: rgba(47, 111, 109, 0.08);
}

.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-family: "Special Elite", "LINE Seed JP", "Noto Sans JP";
  color: var(--accent-strong);
  background: rgba(47, 111, 109, 0.08);
}

.tag-link:hover,
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.post-body h2,
.post-body h3 {
  margin: 20px 0 10px;
  border: none;
  padding-left: 0;
}

.post-body p {
  margin: 0 0 14px;
}

.post-body ul {
  padding-left: 20px;
  margin: 0 0 14px;
}

.site-footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    margin-top: 24px;
  }

  .site-title {
    font-size: 2rem;
  }

  .site-title span {
    font-size: 1.05rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07131a;
    --surface: #0f1e27;
    --ink: #ecf5f7;
    --muted: #9eb5be;
    --accent: #6cb8bf;
    --accent-strong: #9fe1e4;
    --border: rgba(108, 184, 191, 0.2);
    --shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    --bg-start: #10222b;
    --bg-mid: #0b171f;
    --bg-end: #07131a;
    --icon-github: #ecf5f7;
    --icon-linkedin: #7bc6ff;
    color-scheme: dark;
  }
}
