/* Portfolio polish */
:root {
  --surface: #ffffff;
  --surface-soft: #f3f6f8;
  --border: #d7dee5;
  --shadow: 0 16px 40px rgba(20, 35, 60, 0.1);
  --accent-on-light: #c65300;
  --accent-on-dark: #ff9a52;
  --focus-ring: #d05b02;
}

html {
  scroll-padding-top: 96px;
}

body {
  line-height: 1.75;
  overflow-wrap: anywhere;
}

#about,
#works,
#skills {
  scroll-margin-top: 96px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--navy);
  border: 2px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.site-header {
  box-shadow: 0 2px 16px rgba(20, 35, 60, 0.08);
}

.header-inner { height: 92px; }
.brand-logo { width: 76px; height: auto; }

.nav {
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.nav-link {
  color: var(--navy);
  font-size: 14px;
  text-shadow: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-on-light);
}

.nav-link--contact {
  padding: 8px 16px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 4px;
}

.nav-link--contact:hover {
  color: #ffffff;
  background: var(--accent-on-light);
}

.hero {
  min-height: 640px;
  background: var(--navy);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(15, 31, 57, 0.82) 0%,
    rgba(15, 31, 57, 0.3) 54%,
    rgba(15, 31, 57, 0.08) 100%
  );
}

.hero-bg {
  height: 640px;
  background-position: 72% center;
}

.hero-inner {
  z-index: 1;
  align-items: center;
  padding-bottom: 0;
}

.hero-copy {
  max-width: 620px;
  padding: clamp(28px, 3.2vw, 40px);
  color: #ffffff;
  background: rgba(34, 53, 85, 0.86);
  border-left: 6px solid var(--accent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
}

.hero-eyebrow,
.contact-eyebrow {
  margin: 0 0 12px;
  color: var(--accent-on-dark);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.35;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  margin: 20px 0 0;
  font-size: clamp(15px, 1.7vw, 17px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

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

.button--primary {
  color: #ffffff;
  background: var(--accent-on-light);
}

.button--primary:hover {
  color: var(--accent-on-light);
  background: #ffffff;
  border-color: var(--accent);
}

.button--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.button--secondary:hover {
  color: var(--navy);
  background: #ffffff;
}

.section-bar {
  height: auto;
  min-height: 88px;
  margin-top: clamp(80px, 10vw, 120px);
  border-left: 8px solid var(--accent);
}

.section-bar-title {
  padding: 20px;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: 0.02em;
}

.section-body {
  padding-top: 48px;
}

.about {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-top: 48px;
}

.about-photo {
  box-shadow: 12px 12px 0 var(--surface-soft);
}

.about-content {
  width: auto;
}

.about-name-en {
  color: var(--accent-on-light);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-name-ja {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 28px;
}

.about-text {
  max-width: 70ch;
  font-size: 15px;
}

.about-text p {
  margin: 0 0 14px;
}

.strength-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.strength-list li {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 174px;
  padding: 18px;
  background: var(--surface-soft);
  border-top: 4px solid var(--accent);
}

.strength-number {
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.strength-list strong {
  color: var(--navy);
  line-height: 1.5;
}

.strength-list li > span:last-child {
  font-size: 13px;
  line-height: 1.7;
}

section#works {
  padding-bottom: clamp(72px, 8vw, 112px);
}

.works-area {
  padding: 48px 0 0;
}

.works-inner {
  display: block;
  width: min(var(--container), calc(100% - 32px));
}

.works-viewport {
  max-width: none;
  overflow: visible;
  padding: 0;
}

.works-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

@media (min-width: 769px) {
  .works-track > .work-card:nth-child(odd):last-child {
    grid-column: 1 / -1;
    width: calc((100% - 28px) / 2);
    justify-self: center;
  }
}

.works-more {
  margin-top: 44px;
  border-top: 1px solid var(--border);
}

.works-more summary,
.other-tools summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 4px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.works-more summary::-webkit-details-marker,
.other-tools summary::-webkit-details-marker { display: none; }
.works-more summary:hover,
.other-tools summary:hover { color: var(--accent-on-light); }
.works-more summary:focus-visible,
.other-tools summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.works-more-open { display: none; }
.works-more[open] .works-more-open { display: inline; }
.works-more[open] .works-more-closed { display: none; }
.works-more-symbol::after,
.other-tools summary span::after { content: "+"; font-size: 24px; line-height: 1; }
.works-more[open] .works-more-symbol::after,
.other-tools[open] summary span::after { content: "−"; }
.works-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 24px;
}
.works-more-grid .work-card--compact { border-top-width: 4px; box-shadow: none; }
.work-card--compact .work-content { padding: 18px; }
.work-card--compact .work-title { min-height: 0; font-size: 16px; }
.work-card--compact .work-labels { margin-bottom: 16px; }
.work-card--compact .work-thumb { object-fit: cover; }
.work-card--business-card .work-thumb {
  box-sizing: border-box;
  padding: clamp(20px, 3vw, 36px);
  object-fit: contain;
  background: #e9eef2;
  filter: drop-shadow(0 8px 10px rgba(20, 35, 60, 0.16));
}

.work-card--news .work-thumb { object-fit: contain; background: #f5f7fa; }

.work-card {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 6px solid var(--muted);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(20, 35, 60, 0.08);
}

.work-card--featured {
  display: flex;
  flex-direction: column;
  border-top-color: var(--accent);
}

.work-card--featured .work-thumb {
  border-bottom-color: rgba(198, 83, 0, 0.22);
}

.work-card--featured .work-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.work-featured-label {
  width: fit-content;
  margin: 0 0 10px;
  padding: 3px 8px;
  color: var(--accent-on-light);
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.work-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.work-content {
  padding: 24px;
}

.work-type {
  color: var(--accent-on-light);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.work-title {
  min-height: 3.1em;
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 18px;
}

.work-card--featured .work-title {
  font-size: 20px;
}

.work-card--featured .work-description {
  min-height: 7em;
}

.work-description {
  display: block;
  flex-grow: 0;
  min-height: 7em;
  margin-bottom: 18px;
  overflow: visible;
  font-size: 14px;
  line-height: 1.75;
}

.work-labels {
  margin: 0 0 24px;
}

.work-labels li {
  font-size: 12px;
}

.work-button {
  width: 100%;
  min-height: 46px;
  margin: auto 0 0;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  background: var(--accent-on-light);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.work-button:hover {
  color: var(--accent-on-light);
  background: #ffffff;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--muted);
  text-align: center;
}

.skill-design-row {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(32px, 5vw, 56px);
  margin-top: 0;
  padding: 24px;
  background: var(--surface-soft);
  border-radius: 6px;
}

.skill-design-image-container,
.skill-design-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.label-card {
  height: auto;
  min-height: 60px;
  margin-bottom: 28px;
  background: var(--navy);
}

.label-card-text {
  padding: 12px 20px;
  font-size: 24px;
}

.skill-design-icons {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
  padding: 0;
}

.skill-design-icons img {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tool-row {
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  margin: 48px 0;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.tool-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.tool-title {
  color: var(--navy);
}

.tool-title,
.ai-tool h4,
.workflow-list h4 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.tool-icon-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.tool-icon-group img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tool-icon-group--three img {
  width: 30px;
  height: 30px;
}

.tool-rule {
  background: var(--accent);
}

.tool-text {
  max-width: 70ch;
  font-size: 15px;
}

.tool-meta {
  display: inline-block;
  padding: 4px 10px;
  color: var(--navy);
  background: var(--surface-soft);
  font-weight: 700;
}

.sub-bar {
  width: 100%;
  margin-top: 72px;
  background: var(--navy);
  border-left: 8px solid var(--accent);
}

.tool-group-intro { margin: 22px 0 28px; color: var(--muted); }
.ai-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.ai-tool { padding: 24px 0; border-bottom: 1px solid var(--border); }
.ai-tool h4, .workflow-list h4 { margin: 0 0 8px; color: var(--navy); font-size: 19px; }
.ai-tool p, .workflow-list p { margin: 0; font-size: 15px; line-height: 1.8; }
.workflow-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; padding: 26px 0; }
.workflow-list article { border-left: 3px solid var(--accent); padding-left: 18px; }
.other-tools { margin-top: 24px; border-top: 1px solid var(--border); }
.other-tools .workflow-list { padding-top: 8px; }

.others-grid {
  gap: 20px;
}

.other-card {
  align-content: start;
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.other-head {
  grid-template-columns: 72px 1fr;
  gap: 18px;
}

.other-icon-img {
  width: 72px;
  height: 72px;
}

.other-title {
  color: var(--navy);
  font-size: 20px;
}

.other-text {
  width: 100%;
  margin: 8px 0 0;
  font-size: 14px;
}

.contact-section {
  padding: clamp(72px, 10vw, 112px) 0;
  color: #ffffff;
  background: var(--navy);
  border-top: 8px solid var(--accent);
}

.contact-inner {
  max-width: 960px;
  text-align: left;
}

.contact-eyebrow {
  margin-bottom: 10px;
}

.contact-inner h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.5;
}

.contact-copy {
  max-width: 100%;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-copy p { margin: 0; line-height: 1.85; }
.contact-copy p + p { margin-top: 16px; }
.keep-together { white-space: nowrap; }

.design-ai-axes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.design-ai-axes > div { border-top: 1px solid rgba(255,255,255,.5); padding-top: 16px; }
.design-ai-axes > div:first-child { border-top-color: var(--accent); }
.design-ai-axes h3 { margin: 0 0 6px; color: var(--accent-on-dark); font-size: 18px; }
.design-ai-axes p { margin: 0; font-size: 14px; }
.design-ai-axes .axis-note { margin-top: 10px; color: rgba(255,255,255,.7); }

.contact-button {
  min-width: min(100%, 320px);
}

.footer-band--top {
  height: auto;
  background: #435a69;
}

.footer-top-inner {
  min-height: 58px;
  height: auto;
  padding: 12px 0;
}

.footer-nav {
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  padding: 4px;
}

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

@media (max-width: 900px) {
  .strength-list {
    grid-template-columns: 1fr;
  }

  .strength-list li {
    min-height: 0;
  }

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

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .brand-logo { width: 48px; height: auto; }
  .brand {transform: translateY(-2px);}
  .contact-inner h2 { font-size: 25px; }
  .contact-inner h2 br { display: none; }
  html {
    scroll-padding-top: 76px;
  }

  #about,
  #works,
  #skills {
    scroll-margin-top: 76px;
  }

  .nav {
    gap: 8px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 10px 12px;
  }

  .nav-link--contact {
    width: auto;
    margin-top: 4px;
    padding: 10px 20px;
  }

  .hero,
  .hero-bg {
    min-height: 680px;
    height: 680px;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(15, 31, 57, 0.08) 20%,
      rgba(15, 31, 57, 0.88) 100%
    );
  }

  .hero-inner {
    align-items: end;
    padding-bottom: 24px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 24px 20px;
    border-left-width: 4px;
  }

  .hero-title {
    font-size: 28px;
    text-align: left;
  }

  .hero-bg {
    background-position: center;
  }

  .hero-lead br {
    display: none;
  }

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

  .button {
    padding-inline: 16px;
  }

  .section-bar {
    width: calc(100% - 24px);
    min-height: 72px;
    margin-top: 72px;
  }

  .section-body {
    padding-top: 36px;
  }

  .about {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .about-photo {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 360 / 371;
  }

  .about-name-ja {
    font-size: 26px;
  }

  .works-area {
    padding-top: 36px;
  }

  .works-inner {
    width: calc(100% - 24px);
  }

  .works-viewport {
    padding: 0;
    overflow: visible;
  }

  .works-track {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    min-width: 0;
    padding: 0;
  }
  .works-more-grid, .ai-tools-grid, .workflow-list, .design-ai-axes { grid-template-columns: 1fr; }
  .works-more-grid { gap: 20px; }

  .work-card {
    width: 100%;
    min-height: 0;
    border: 1px solid var(--border);
    border-top: 6px solid var(--muted);
    outline: 0;
    box-shadow: 0 8px 24px rgba(20, 35, 60, 0.08);
  }

  .work-card--featured .work-title {
    font-size: 19px;
  }

  .work-card--featured .work-content {
    min-height: 380px;
  }

  .work-card--business-card .work-thumb {
    padding: 24px;
  }

  .work-card.is-active {
    transform: none;
  }

  .work-thumb {
    width: 100%;
    height: auto;
    margin: 0;
  }

  .work-content {
    padding: 20px;
  }

  .work-type,
  .work-title {
    text-align: left;
  }

  .work-title,
  .work-description {
    min-height: 0;
  }

  .work-labels {
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .work-button {
    margin: auto 0 0;
  }

  .works-dots {
    display: none;
  }

  .skill-design-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 16px;
  }

  .skill-design-image-container,
  .label-card {
    width: 100%;
  }

  .skill-design-image-container {
    height: auto;
  }

  .label-card {
    min-height: 56px;
  }

  .skill-design-icons {
    gap: 16px;
  }

  .skill-design-icons img {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .tool-row {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
  }

  .tool-image {
    width: 100%;
    height: auto;
  }

  .sub-bar {
    width: 100%;
  }

  .others-grid {
    gap: 16px;
  }

  .other-text {
    width: 100%;
    margin-left: 0;
  }

  .footer-nav {
    gap: 8px 16px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 22px 16px;
  }

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

  .skill-design-icons {
    gap: 16px;
  }

  .other-card {
    padding: 18px;
  }

  .other-head {
    grid-template-columns: 56px 1fr;
  }

  .other-icon-img {
    width: 56px;
    height: 56px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}





.work-card--match-pop .work-thumb {
  box-sizing: border-box;
  padding: clamp(12px, 2vw, 24px);
  object-fit: contain;
  background: #f5f7fa;
}
