@charset "UTF-8";

/* ==============================
  Base
============================== */
:root {
  --color-base: #fbf8f1;
  --color-base-2: #f3efe5;
  --color-white: #ffffff;
  --color-text: #3c342c;
  --color-muted: #7c7368;
  --color-main: #7f9a78;
  --color-main-dark: #60785b;
  --color-accent: #eadfca;
  --color-line: #d8cbb7;
  --shadow-soft: 0 18px 45px rgba(99, 88, 72, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at 3% 18%, rgba(236, 225, 208, 0.8) 0 90px, transparent 91px),
    radial-gradient(circle at 96% 4%, rgba(224, 231, 215, 0.9) 0 120px, transparent 121px),
    var(--color-base);
}

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

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

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading-left {
  text-align: left;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--color-main);
  font-family: "Playfair Display", serif;
  font-size: 14px;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.55;
  letter-spacing: 0.06em;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.08em;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

p {
  color: var(--color-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-primary {
  color: #fff;
  background: var(--color-main);
  box-shadow: 0 12px 24px rgba(111, 139, 105, 0.25);
}

.button-primary::after {
  content: "→";
  margin-left: 12px;
}

.button-outline {
  width: 100%;
  border: 1px solid var(--color-main);
  color: var(--color-main-dark);
  background: rgba(255, 255, 255, 0.65);
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ==============================
  Header
============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(251, 248, 241, 0.82);
  border-bottom: 1px solid rgba(216, 203, 183, 0.45);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: grid;
  gap: 2px;
  font-family: "Playfair Display", serif;
  font-size: 23px;
  line-height: 1.05;
}

.global-nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 700;
}

.global-nav a {
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--color-main);
  transition: 0.2s ease;
}

.global-nav a:hover::after {
  width: 100%;
}

/* ==============================
  Hero
============================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: center;
  background: linear-gradient(to right, #fbf8f1 0%, #fbf8f1 35%, rgba(251, 248, 241, .8) 55%, rgba(251, 248, 241, 0) 60%), url(../image/workspace.png);
  background-position: center center, right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.hero-lead {
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: 100%;
  max-width: 560px;
  filter: drop-shadow(0 25px 40px rgba(74, 67, 56, 0.12));
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-bg-shape-left {
  left: -120px;
  bottom: 60px;
  width: 240px;
  height: 240px;
  background: rgba(234, 223, 202, 0.55);
}

.hero-bg-shape-right {
  right: -80px;
  top: -60px;
  width: 260px;
  height: 260px;
  background: rgba(220, 231, 214, 0.8);
}

/* ==============================
  Works
============================== */
.works-section {
  padding-top: 54px;
}

.achievement-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(216, 203, 183, 0.45);
}

.achievement-item {
  padding: 36px 20px;
  text-align: center;
  position: relative;
}

.achievement-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 0;
  width: 1px;
  height: calc(100% - 56px);
  border-right: 1px dashed var(--color-line);
}

.achievement-icon {
  color: var(--color-main);
  font-size: 30px;
}

.achievement-item strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--color-main);
  font-size: 36px;
  line-height: 1.1;
}

.achievement-item span {
  display: block;
  font-weight: 700;
}

.achievement-item p {
  margin: 4px 0 0;
  font-size: 13px;
}

/* ==============================
  Portfolio
============================== */
.portfolio-section {
  padding-top: 10px;
}

.portfolio-section::before,
.profile-section::before {
  content: "";
  display: block;
  height: 1px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(216, 203, 183, 0.45);
}

.portfolio-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fffdf8;
  border: 1px solid rgba(216, 203, 183, 0.55);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--color-base-2);
}

.portfolio-card-body {
  padding: 24px;
}

.portfolio-card-body p {
  min-height: 58px;
  font-size: 14px;
}

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

.tag-list span,
.skill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #5c5146;
  background: #eee7d7;
  font-size: 13px;
  font-weight: 700;
}

/* ==============================
  Profile
============================== */
.profile-section {
  padding-top: 0;
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(216, 203, 183, 0.45);
}

.skills {
  padding-left: 50px;
  border-left: 1px dashed var(--color-line);
}

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

.timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 12px;
  left: 11px;
  width: 2px;
  background: var(--color-line);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 22px;
  padding: 0 0 28px 36px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-main);
  box-shadow: 0 0 0 5px rgba(127, 154, 120, 0.14);
}

.timeline-year {
  color: var(--color-main-dark);
  font-weight: 700;
}

.timeline h3 {
  margin-bottom: 2px;
  font-size: 15px;
}

.timeline p {
  margin-bottom: 0;
  font-size: 14px;
}

.skill-list {
  margin: 0;
}

.skill-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.skill-list div:last-child {
  margin-bottom: 0;
}

.skill-list dt {
  font-weight: 700;
}

.skill-list dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==============================
  Contact
============================== */
.contact-section {
  padding-top: 0;
}

.contact-grid {
  display: grid;
  justify-content: center;
  gap: 22px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.contact-item {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(99, 88, 72, 0.09);
  transition: 0.2s ease;
  width: 400px;
}

.contact-item:nth-child(1) {
  background: rgba(222, 234, 218, 0.72);
}

.contact-item:nth-child(2) {
  background: rgba(239, 226, 204, 0.72);
}

.contact-item:nth-child(3) {
  background: rgba(245, 245, 245, 0.78);
}

.contact-item:nth-child(4) {
  background: rgba(219, 235, 236, 0.72);
}

.contact-item span {
  font-size: 34px;
  line-height: 1;
}

.contact-item strong {
  font-size: 14px;
}

.contact-item:hover {
  transform: translateY(-3px);
}

/* ==============================
  Footer
============================== */
.site-footer {
  padding: 28px 20px;
  text-align: center;
  color: var(--color-muted);
  background: rgba(238, 231, 215, 0.55);
}

/* ==============================
  Responsive
============================== */
@media (max-width: 900px) {
  .header-inner {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    gap: 16px;
  }

  .global-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 20px;
  }

  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .achievement-card,
  .portfolio-grid,
  .profile-card,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .achievement-item:nth-child(2)::after {
    display: none;
  }

  .profile-card {
    gap: 36px;
  }

  .skills {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 28px, var(--max-width));
    padding: 50px 0;
  }

  .header-inner {
    width: min(100% - 28px, var(--max-width));
    display: block;
  }

  .site-logo {
    margin-bottom: 16px;
  }

  .global-nav {
    justify-content: flex-start;
    font-size: 13px;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max-width));
  }

  h1 {
    font-size: 30px;
  }

  .achievement-card,
  .portfolio-grid,
  .profile-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .achievement-item::after {
    display: none;
  }

  .portfolio-grid,
  .profile-card {
    padding: 22px;
  }

  .timeline li {
    grid-template-columns: 70px 1fr;
    gap: 16px;
    padding-left: 30px;
  }

  .skill-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
