:root {
  --primary: #4A90E2;
  /* 新ロゴの青 */
  --primary-dark: #0A192F;
  /* 新ロゴのネイビー */
  --primary-soft: #eef4ff;
  --leaf: #5BB6D8;
  --yellow: #ffd76a;
  --sand: #f8f2fb;
  --cream: #fffdf7;
  --white: #ffffff;
  --text: #222222;
  --muted: #5e6676;
  --line: #e3e8f0;
  --shadow: 0 20px 50px rgba(10, 25, 47, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --pill: 999px;
}

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.04em;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .95), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(223, 238, 221, .75), transparent 24%),
    linear-gradient(180deg, #fbf7ed 0%, #eef6eb 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.section-title::before {
  content: "✣";
  color: var(--primary);
  font-size: 22px;
}

.section-lead {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
}

/* Header */
.header {
  position: sticky;
  top: 14px;
  z-index: 20;
  padding-top: 14px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: var(--pill);
  background: rgba(255, 253, 247, .82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-image {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo-text {
  display: inline-block;
}

@media (max-width: 560px) {
  .logo-image {
    width: 26px;
    height: 26px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

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

@media (max-width: 900px) {
  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 253, 247, 0.98);
    z-index: 100;
    padding: 100px 24px;
    gap: 32px;
    font-size: 20px;
    backdrop-filter: blur(12px);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    transition-delay: 0.1s;
  }

  .nav.is-active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger delay for links */
  .nav.is-active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav.is-active a:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav.is-active a:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav.is-active a:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav.is-active a:nth-child(5) {
    transition-delay: 0.3s;
  }
}

.menu-button {
  display: none;
  position: relative;
  z-index: 110;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  color: var(--primary-dark);
  font-size: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-button[aria-expanded="true"] {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 800;
  transition: .25s ease;
  cursor: pointer;
}

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

.button-primary {
  background: #202020;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
}

.button-primary .plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  transition: transform 0.25s ease;
}

.button:hover .plus {
  transform: rotate(45deg);
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.badge::before {
  content: "✣";
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 66px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-card {
  position: relative;
  min-height: 520px;
  padding: 58px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, .88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(223, 238, 221, .65);
}

.hero h1 {
  position: relative;
  margin: 28px 0 22px;
  color: #222;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.32;
  letter-spacing: .08em;
}

/* 強調テキスト */
.hero h1 span {
  color: var(--primary);
}

.hero-text {
  position: relative;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 34px;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, .92), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(236, 246, 233, .96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-shape {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 280px;
  height: 380px;
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 44% 44%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .05)),
    linear-gradient(180deg, #ded6c5, #f7f1e6);
  overflow: hidden;
}

.photo-shape::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 94px;
  width: 7px;
  height: 190px;
  background: #7f806e;
  border-radius: 8px;
  transform: rotate(-8deg);
}

.photo-shape::after {
  content: "";
  position: absolute;
  left: 48px;
  bottom: 54px;
  width: 150px;
  height: 20px;
  border-radius: 50%;
  background: rgba(80, 70, 45, .18);
}

.vase {
  position: absolute;
  left: 112px;
  bottom: 86px;
  width: 54px;
  height: 92px;
  border-radius: 28px 28px 20px 20px;
  background: #d9c7ad;
}

.plant-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .8;
}

.plant-dot.d1 {
  left: 86px;
  top: 148px;
}

.plant-dot.d2 {
  left: 72px;
  top: 178px;
}

.plant-dot.d3 {
  left: 116px;
  top: 128px;
}

.plant-dot.d4 {
  left: 138px;
  top: 158px;
}

.code-visual-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(74, 144, 226, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 226, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.code-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 440px;
  height: 280px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 5;
}

.code-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.code-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f56;
}

.code-header .dot:nth-child(2) {
  background: #ffbd2e;
}

.code-header .dot:nth-child(3) {
  background: #27c93f;
}

.code-header .file-name {
  margin-left: 10px;
  font-size: 11px;
  font-family: monospace;
  color: var(--muted);
  opacity: 0.8;
}

.code-body {
  padding: 20px;
  font-family: "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--primary-dark);
  white-space: pre;
}

.code-body::after {
  content: "_";
  color: var(--primary);
  animation: code-blink 0.8s infinite;
}

@keyframes code-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.soft-plus {
  position: absolute;
  color: rgba(125, 177, 122, .22);
  font-size: 66px;
  font-weight: 900;
}

.soft-plus.one {
  left: 84px;
  bottom: 76px;
}

.soft-plus.two {
  right: 96px;
  bottom: 210px;
}

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
}

.profile-card,
.about-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, .88);
  box-shadow: var(--shadow);
  padding: 34px;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 34% 24%, #ffffff 0 18%, transparent 19%),
    linear-gradient(135deg, var(--primary-soft), #fff4d7);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .75;
}

.avatar::after {
  content: "✣";
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 34px;
}

.profile-card h2 {
  color: var(--primary-dark);
  font-size: 28px;
  margin-bottom: 8px;
}

.profile-role {
  color: var(--muted);
  margin-bottom: 22px;
}

.profile-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 800;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
}

.about-card h3 {
  color: var(--primary-dark);
  font-size: 24px;
  margin-bottom: 14px;
}

.about-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.small {
  font-size: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  padding: 8px 13px;
  border-radius: var(--pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
}

.tag.yellow {
  background: #fff0bb;
  color: #7c6530;
}

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

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08), 0 0 20px rgba(74, 144, 226, 0.1);
}

.work-thumb {
  height: 160px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 抽象的なアイコングラフィック */
.work-thumb::before {
  content: "";
  width: 60px;
  height: 60px;
  border-radius: 14px;
  opacity: 0.6;
}

.work-thumb.type-a::before {
  background: linear-gradient(135deg, var(--primary), #a2c2e8);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* 管理システム */
.work-thumb.type-b::before {
  background: linear-gradient(135deg, #64ffda, var(--primary));
  border-radius: 50%;
}

/* CRM */
.work-thumb.type-c::before {
  background: linear-gradient(135deg, #ffd76a, #ff9a9e);
  clip-path: inset(10% 10% 10% 10% round 12px);
}

/* 受注管理 */
.work-thumb.type-d::before {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
  transform: rotate(45deg);
}

/* 動的ページ */
.work-thumb.type-e::before {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* フォーム */
.work-thumb.type-f::before {
  background: linear-gradient(135deg, #fa709a, #fee140);
  border-radius: 18px;
  transform: scale(0.8) skew(-10deg);
}

/* EC */

.work-body {
  padding: 24px;
  flex-grow: 1;
}

.work-category {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.work-body h3 {
  color: var(--primary-dark);
  font-size: 18px;
  margin-bottom: 12px;
}

.work-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.work-link {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-link {
  opacity: 1;
}

/* Skills */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.skills-card,
.process-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, .9);
  box-shadow: var(--shadow);
  padding: 32px;
}

.skill-list {
  display: grid;
  gap: 16px;
}

.skill-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.skill-name {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 14px;
}

.bar {
  height: 12px;
  border-radius: var(--pill);
  background: #eee8dc;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--primary), var(--leaf));
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 900;
  font-size: 12px;
}

.process-item strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 2px;
}

.process-item p {
  color: var(--muted);
  font-size: 13px;
}

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, .9);
  box-shadow: var(--shadow);
  padding: 36px;
}

.contact-message {
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 26%, rgba(125, 177, 122, .24), transparent 24%),
    linear-gradient(180deg, #fffdf7, #f0f7ed);
}

.contact-message h2 {
  color: var(--primary-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.5;
  margin: 18px 0;
}

.contact-message p {
  color: var(--muted);
  margin-bottom: 24px;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 134px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(125, 177, 122, .15);
}

.form button {
  border: 0;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.4);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: min(720px, calc(100% - 40px));
  max-height: 85vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.is-active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--sand);
  color: var(--primary-dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: rotate(90deg);
}

.modal-content {
  padding: 54px;
}

.modal-category {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 32px;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 28px;
}

.modal-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 34px;
}

.modal-info {
  margin-bottom: 34px;
}

.modal-price-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.modal-price-box .label {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-price-box .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
}

.modal-meta h4 {
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-meta h4::before {
  content: "✣";
  color: var(--primary);
}

.modal-meta ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-meta li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.modal-meta li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.modal-footer {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .modal-content {
    padding: 34px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-meta ul {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  padding: 36px 0 26px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 247, .78);
  box-shadow: var(--shadow);
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 13px;
}

.footer h4 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid,
  .profile-grid,
  .skills-layout,
  .contact-box,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    height: 460px;
  }

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

  .section-head {
    display: block;
  }

  .section-lead {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header {
    top: 10px;
    padding-top: 10px;
  }

  .header-inner {
    padding: 12px 14px;
  }

  .logo {
    font-size: 15px;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero-card {
    padding: 34px 24px;
    border-radius: 24px;
  }

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

  .hero-text {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    height: 380px;
  }

  .photo-shape {
    width: 210px;
    height: 290px;
  }

  .code-window {
    width: 95%;
    height: 240px;
  }

  .code-body {
    font-size: 11px;
    padding: 15px;
  }

  .soft-plus.one {
    left: 40px;
    bottom: 48px;
  }

  .soft-plus.two {
    right: 50px;
    bottom: 160px;
  }

  .section {
    padding: 44px 0;
  }

  .profile-card,
  .about-card,
  .skills-card,
  .process-card,
  .contact-box {
    padding: 24px;
    border-radius: 24px;
  }

  .contact-message {
    padding: 24px;
  }

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

  .footer-inner {
    padding: 24px;
  }
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: opacity, transform;
}

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

/* グリッド内での微妙な時間差（オプション） */
.works-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.works-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.works-grid .reveal:nth-child(4) {
  transition-delay: 0.1s;
}

.works-grid .reveal:nth-child(5) {
  transition-delay: 0.2s;
}

.works-grid .reveal:nth-child(6) {
  transition-delay: 0.3s;
}

/* --- Contact Form Styles --- */
.form-message {
  margin: 15px 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-message.is-success {
  display: block;
  background-color: #e6fffa;
  color: #234e52;
  border: 1px solid #81e6d9;
}

.form-message.is-error {
  display: block;
  background-color: #fff5f5;
  color: #9b2c2c;
  border: 1px solid #feb2b2;
}

#js-turnstile-container {
  margin-bottom: 20px;
  min-height: 65px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

#js-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}