
:root {
  --background: #faf7f1;
  --surface: #fffdf9;
  --surface-warm: #f2e9dc;
  --text: #453b32;
  --muted: #817467;
  --accent: #a77f5d;
  --accent-dark: #79583e;
  --line: #e8ded1;
  --green-soft: #e8ebe0;
  --content-width: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    "Noto Sans JP",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.025em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

::selection {
  color: var(--text);
  background: #e8d4bd;
}

section[id] {
  scroll-margin-top: 85px;
}

/* ヘッダー */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px max(5%, calc((100% - var(--content-width)) / 2));
  background: rgba(250, 247, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-logo {
  flex-shrink: 0;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.site-logo span {
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 25px;
}

.header-nav a {
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--accent-dark);
}

/* 共通レイアウト */

.section-wrap {
  width: min(var(--content-width), 90%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.025em;
}

.section-heading > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* トップ */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 50px;
  min-height: 440px;
  padding-top: 65px;
  padding-bottom: 65px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero-text .eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(34px, 4.5vw, 49px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.hero-description {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 5px;
  color: var(--accent-dark);
  border-bottom: 1px solid #c7ad92;
  font-size: 13px;
  font-weight: 700;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.hero-profile {
  position: relative;
  z-index: 1;
  text-align: center;
}

.avatar-frame {
  width: 210px;
  height: 210px;
  margin: 0 auto 16px;
  overflow: hidden;
  background: #fffdf9;
  border: 5px solid #fffdf9;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(105, 79, 55, 0.09);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-caption {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.avatar-subcaption {
  margin: 3px 0 0;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 11px;
}

.hero-decoration {
  position: absolute;
  z-index: 0;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.decoration-one {
  top: 35px;
  right: 90px;
  width: 36px;
  height: 36px;
  background: #eee0cf;
}

.decoration-two {
  right: 190px;
  bottom: 28px;
  width: 15px;
  height: 15px;
  background: #dce2d2;
}

/* 制作物 */

.works-section {
  padding-top: 85px;
  padding-bottom: 90px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(91, 69, 48, 0.08);
}

.project-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  overflow: hidden;
}

.preview-1 {
  background: #eee3d4;
}

.preview-2 {
  background: #e5e9df;
}

.preview-3 {
  background: #f0e1dc;
}

.preview-number {
  position: absolute;
  top: 14px;
  left: 17px;
  color: rgba(69, 59, 50, 0.55);
  font-family: Georgia, serif;
  font-size: 12px;
}

.preview-label {
  color: rgba(69, 59, 50, 0.75);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.preview-symbol {
  position: absolute;
  right: 20px;
  bottom: 0;
  color: rgba(121, 88, 62, 0.14);
  font-size: 88px;
  line-height: 1;
}

.project-info {
  padding: 22px 23px 23px;
}

.project-index {
  margin: 0 0 5px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.project-info h3 {
  margin: 0 0 9px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.project-description {
  min-height: 3.8em;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.project-tag {
  padding: 3px 9px;
  color: #75634f;
  background: #f2ece3;
  border-radius: 4px;
  font-size: 10px;
}

.project-action {
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.project-link span {
  transition: transform 0.2s ease;
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

.project-unavailable {
  color: #998d7f;
  font-size: 12px;
}

/* 自己紹介 */

.about-section {
  padding-top: 70px;
  padding-bottom: 75px;
  border-top: 1px solid var(--line);
}

.about-content {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 35px;
}

.about-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 20px;
  color: var(--accent-dark);
  background: var(--surface-warm);
  border-radius: 8px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 19px;
}

.about-content h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 20px;
  font-weight: 600;
}

.about-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  padding: 4px 11px;
  color: #71614e;
  border: 1px solid #ded1c0;
  border-radius: 20px;
  font-size: 11px;
}

/* 趣味 */

.hobbies-section {
  padding-top: 65px;
  padding-bottom: 85px;
  border-top: 1px solid var(--line);
}

.hobbies-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 35px;
}

.hobby-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.hobby-number {
  padding-top: 3px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 12px;
}

.hobby-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.hobby-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* 外部リンク */

.links-section {
  padding-top: 65px;
  padding-bottom: 85px;
  border-top: 1px solid var(--line);
}

.external-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.external-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 76px;
  padding: 16px 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.external-links > a:hover {
  background: #f3ebdf;
  border-color: #d6c1a9;
}

.external-links strong,
.external-links small {
  display: block;
}

.external-links strong {
  font-family: Georgia, serif;
  font-size: 15px;
}

.external-links small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.external-arrow {
  color: var(--accent);
  font-size: 17px;
}

/* フッター */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 35px 5% 30px;
  background: #f0e8dc;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer > small {
  margin-top: 12px;
  color: #948778;
  font-size: 10px;
}

.back-to-top {
  margin-top: 9px;
  color: var(--accent-dark);
  font-size: 11px;
}

/* スマートフォン */

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 13px 5%;
  }

  .site-logo {
    font-size: 18px;
  }

  .header-nav {
    justify-content: flex-start;
    gap: 8px 19px;
  }

  .header-nav a {
    font-size: 11px;
  }

  .section-wrap {
    width: 90%;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 17px;
    min-height: 350px;
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .hero-text .eyebrow {
    margin-bottom: 13px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(25px, 6vw, 36px);
  }

  .hero-description {
    font-size: 12px;
  }

  .avatar-frame {
    width: 105px;
    height: 105px;
    border-width: 3px;
  }

  .avatar-caption {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .avatar-subcaption {
    font-size: 9px;
  }

  .decoration-one {
    right: 25px;
  }

  .decoration-two {
    right: 100px;
  }

  .works-section,
  .hobbies-section,
  .links-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .about-section {
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .section-heading {
    margin-bottom: 23px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-preview {
    min-height: 160px;
  }

  .project-info {
    padding: 19px;
  }

  .project-description {
    min-height: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-mark {
    min-height: 85px;
  }

  .hobbies-list,
  .external-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
  }

  .avatar-frame {
    width: 84px;
    height: 84px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero-description {
    font-size: 11px;
  }

  .desktop-only {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
