/* =========================================================
   Kabocha-maru Portfolio
   Base: #ffffff / Accent: #1e293b (navy) + #e07a5f (sub)
   ========================================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Inter", system-ui, sans-serif;
  font-weight: 400;
  color: #1e293b;
  background-color: #ffffff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}

a:hover {
  opacity: .7;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-alt {
  background-color: #f7f8fa;
}

.section-contact {
  background-color: #1e293b;
  color: #ffffff;
}

.section-head {
  margin-bottom: 64px;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #e07a5f;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(24px, 3.2vw, 36px);
  margin: 0 0 20px;
}

.section-desc {
  color: #5b6472;
  line-height: 1.9;
}

.section-contact .section-desc {
  color: #cbd5e1;
}

/* --- Header --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: #eceff3;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #1e293b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #1e293b;
}

.nav-cta {
  padding: 10px 20px;
  background-color: #1e293b;
  color: #ffffff !important;
  border-radius: 999px;
  transition: background-color .2s ease;
}

.nav-cta:hover {
  background-color: #334155;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background-color: #1e293b;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }

.nav-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* --- Hero --- */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fceee6, transparent 70%);
  z-index: -1;
}

.hero-tag {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: #e07a5f;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.hero-title .line {
  display: block;
}

.hero-lead {
  color: #5b6472;
  max-width: 520px;
  line-height: 1.95;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-meta {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid #eceff3;
  max-width: 520px;
}

.hero-meta > div {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.hero-meta span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #9aa3b2;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
  background-color: #1e293b;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #334155;
  opacity: 1;
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid #1e293b;
  color: #1e293b;
}

.btn-ghost:hover {
  background-color: #1e293b;
  color: #ffffff;
  opacity: 1;
}

.btn-full {
  width: 100%;
  padding: 18px;
}

/* --- About --- */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.section-body p {
  color: #3d4655;
  line-height: 2;
  margin-bottom: 1.4em;
}

.profile-list {
  margin: 40px 0 0;
  display: grid;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid #eceff3;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
}

.profile-list dt {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #9aa3b2;
  text-transform: uppercase;
}

.profile-list dd {
  margin: 0;
  font-size: 15px;
}

/* --- Skills --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  background-color: #ffffff;
  border: 1px solid #eceff3;
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(30, 41, 59, 0.2);
  border-color: #d8dde6;
}

.skill-num {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #e07a5f;
  margin: 0 0 20px;
}

.skill-title {
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.skill-desc {
  font-size: 14px;
  color: #5b6472;
  line-height: 1.8;
  margin: 0 0 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tags li {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  background-color: #f4f5f7;
  border-radius: 4px;
  color: #5b6472;
}

/* --- Works --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

.work-card {
  display: block;
}

.work-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 400 / 260;
  background-color: #f4f5f7;
  transition: transform .4s ease;
}

.work-card:hover .work-thumb {
  transform: translateY(-4px);
}

.work-thumb::after {
  content: attr(data-label);
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #1e293b;
  text-transform: uppercase;
}

.work-category {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #e07a5f;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.work-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.work-desc {
  font-size: 14px;
  color: #5b6472;
  line-height: 1.8;
  margin: 0 0 14px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-tags li {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border: 1px solid #e1e5ec;
  border-radius: 4px;
  color: #5b6472;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #eceff3;
  border-radius: 16px;
  padding: 40px 36px;
}

.service-title {
  font-size: 18px;
  margin: 0 0 12px;
}

.service-price {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #e07a5f;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

.service-desc {
  font-size: 14px;
  color: #5b6472;
  line-height: 1.85;
  margin: 0;
}

/* --- Contact --- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 24px;
}

.form-row label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  color: #ffffff;
}

.form-row label span {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background-color: #e07a5f;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #e07a5f;
  background-color: rgba(255, 255, 255, 0.1);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffffff' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 10px 6px;
  padding-right: 48px;
}

.form-row select option {
  color: #1e293b;
}

.section-contact .btn-primary {
  background-color: #e07a5f;
  margin-top: 8px;
}

.section-contact .btn-primary:hover {
  background-color: #d06a4f;
}

.form-note {
  margin-top: 20px;
  font-size: 13px;
  color: #cbd5e1;
  text-align: center;
  min-height: 1.2em;
}

.form-note.is-error { color: #fca5a5; }
.form-note.is-success { color: #86efac; }

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  background-color: #ffffff;
  border-top: 1px solid #eceff3;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
}

.footer-copy {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #9aa3b2;
  margin: 0;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .section { padding: 88px 0; }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #eceff3;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 24px 24px;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #f4f5f7;
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .profile-list > div {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }

  .hero-meta {
    gap: 24px;
  }
}
