:root {
  --bg: #fffaf8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #221a18;
  --muted: #6f625d;
  --line: rgba(145, 80, 54, 0.14);
  --accent: #da4b2b;
  --accent-strong: #b83118;
  --accent-soft: #fff0e7;
  --accent-glow: rgba(242, 108, 58, 0.14);
  --shadow: 0 22px 60px rgba(126, 50, 25, 0.12);
  --shadow-strong: 0 28px 70px rgba(126, 50, 25, 0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1120px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", "Noto Sans JP",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 151, 98, 0.18), transparent 35%),
    radial-gradient(circle at 85% 18%, rgba(218, 75, 43, 0.12), transparent 24%),
    linear-gradient(180deg, #fffdfb 0%, var(--bg) 42%, #fff7f2 100%);
  line-height: 1.7;
}

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

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  top: 120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 135, 0.24), transparent 68%);
}

.page-shell::after {
  top: 560px;
  left: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 75, 43, 0.1), transparent 72%);
}

.container {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  padding: 26px 0 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(124, 71, 33, 0.08);
}

.site-logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.96rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: rgba(255, 240, 231, 0.95);
  transform: translateY(-1px);
}

.hero-section,
.page-hero-section {
  padding: 42px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.work-card,
.about-panel,
.contact-panel,
.category-note,
.page-hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-hero-panel {
  padding: clamp(32px, 5vw, 56px);
  border-radius: calc(var(--radius-lg) + 6px);
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.page-hero-panel h1 {
  margin: 0;
  font-family: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-copy h1,
.page-hero-panel h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.hero-description,
.page-description {
  max-width: 34rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions {
  margin-top: 32px;
}

.primary-button,
.card-button,
.secondary-link,
.back-link,
.category-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-button {
  padding: 0 24px;
  background: linear-gradient(135deg, #f26c3a 0%, var(--accent) 48%, #ba341b 100%);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(218, 75, 43, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(218, 75, 43, 0.28);
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 242, 0.92)),
    var(--surface);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -42px -42px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 108, 58, 0.16), transparent 70%);
}

.hero-card-large {
  padding: 28px;
}

.hero-card-large strong {
  display: block;
  margin-top: 10px;
  font-size: 1.3rem;
}

.hero-card-large p,
.hero-card-small p {
  margin: 12px 0 0;
  color: var(--muted);
}

.hero-card-label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-card-small {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
}

.dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f18657, var(--accent));
  box-shadow: 0 0 0 8px rgba(242, 108, 58, 0.12);
}

.content-section {
  padding: 46px 0;
}

.category-section {
  padding-top: 12px;
}

.alt-section {
  padding-top: 24px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 26px;
  justify-items: center;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 330px);
  aspect-ratio: 1 / 1;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 240, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease;
}

.category-card::before,
.category-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.category-card::before {
  inset: 16px;
  border: 1px solid rgba(218, 75, 43, 0.12);
}

.category-card::after {
  right: 44px;
  bottom: 38px;
  width: 88px;
  height: 88px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-strong);
}

.category-icon {
  position: relative;
  z-index: 1;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
}

.category-title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.15;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.category-cta {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding: 0 16px;
  min-height: 42px;
  background: rgba(255, 240, 231, 0.95);
  color: var(--accent-strong);
  border: 1px solid rgba(218, 75, 43, 0.12);
}

.category-note {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
}

.category-note p {
  margin: 0;
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  justify-content: start;
}

.work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-accent {
  height: 6px;
  background: linear-gradient(90deg, #ffb36b 0%, #f26c3a 48%, #c6361b 100%);
}

.card-content {
  flex: 1;
  padding: 24px 24px 18px;
}

.card-tag {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.work-card p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.card-button {
  width: fit-content;
  margin: 0 24px 24px;
  padding: 0 16px;
  border: 1px solid rgba(218, 75, 43, 0.16);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

a.card-button {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

a.card-button:hover,
a.card-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(218, 75, 43, 0.14);
  background: #ffe8db;
}

.about-panel,
.contact-panel {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
}

.about-panel p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.about-panel p + p {
  margin-top: 16px;
}

.back-link,
.secondary-link {
  padding: 0 18px;
  color: var(--accent-strong);
  border: 1px solid rgba(218, 75, 43, 0.16);
  background: rgba(255, 255, 255, 0.7);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible,
.secondary-link:hover,
.secondary-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(218, 75, 43, 0.14);
  background: #ffffff;
}

.page-hero-section {
  padding-bottom: 22px;
}

.page-hero-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-content-section {
  padding-top: 10px;
}

.page-actions {
  margin-top: 28px;
}

.site-footer {
  padding: 18px 0 40px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .site-header {
    padding-top: 18px;
  }

  .header-inner {
    border-radius: 28px;
  }

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

  .hero-section {
    padding-top: 26px;
  }

  .hero-copy h1,
  .page-hero-panel h1 {
    max-width: 10ch;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

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

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

  .category-card {
    width: min(100%, 300px);
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  body {
    line-height: 1.65;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

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

  .site-nav a {
    padding: 8px 12px;
  }

  .hero-copy,
  .hero-panel,
  .about-panel,
  .contact-panel,
  .page-hero-panel,
  .category-note {
    border-radius: 24px;
  }

  .hero-copy,
  .page-hero-panel {
    padding: 28px 24px;
  }

  .hero-copy h1,
  .page-hero-panel h1 {
    font-size: clamp(2.4rem, 13vw, 3.4rem);
  }

  .category-card {
    padding: 28px;
  }

  .category-card p {
    font-size: 0.94rem;
  }

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

  .work-card {
    min-height: auto;
  }

  .card-content {
    padding: 22px 20px 16px;
  }

  .card-button {
    margin: 0 20px 20px;
  }
}
