* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #dbeafe;
  background: #071426;
  line-height: 1.85;
  font-size: 17px;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  background: rgba(7, 20, 38, 0.92);
  border-bottom: 1px solid rgba(125, 211, 252, 0.26);
  backdrop-filter: blur(14px);
}
.brand { font-weight: 900; letter-spacing: 0.03em; color: #f8fbff; font-size: 1.08rem; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; color: #b6d8f6; font-size: 0.94rem; }
.site-nav a:hover { color: #7dd3fc; }
.section { padding: 92px 7vw; }
.hero {
  min-height: 82vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.94), rgba(15, 23, 42, 0.98) 54%, rgba(30, 64, 175, 0.82)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.26), transparent 34%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.22), transparent 32%);
}
.hero-content { max-width: 1180px; margin-inline: auto; text-align: center; }
.portfolio-label {
  display: block;
  width: min(78vw, 920px);
  height: clamp(170px, 28vw, 360px);
  margin: 0 auto 8px;
  color: transparent;
  font-size: 1px;
  line-height: 1;
  overflow: hidden;
  background: url("../img/name_calligraphy_transparent.png") center / contain no-repeat;
  opacity: 0.98;
  filter: drop-shadow(0 0 18px rgba(186, 230, 253, 0.20));
}
.identity-subtitle { display: block; margin-bottom: 22px; color: #7dd3fc; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: 0.05em; }
.eyebrow { color: #7dd3fc; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; font-size: 0.8rem; }
h1 { font-size: clamp(2.1rem, 3.4vw, 3.35rem); line-height: 1.16; margin: 0 auto 24px; max-width: none; color: #f8fbff; white-space: nowrap; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.22; margin: 0; color: #f8fbff; }
h3 { margin-top: 0; line-height: 1.45; color: #dbeafe; }
.lead { font-size: clamp(1.35rem, 2.3vw, 2.1rem); font-weight: 750; line-height: 1.55; margin: 0 auto 18px; max-width: 980px; color: #dbeafe; }
.lead-small { font-size: clamp(1.16rem, 2vw, 1.42rem); font-weight: 700; line-height: 1.65; margin-top: 0; color: #e0f2fe; }
.hero-text, .card p, .tags, .section > p, dd, .feature-item p, .narrative-card p, .work-card p { color: #b6d8f6; }
.hero-text { max-width: 920px; margin-inline: auto; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px auto; max-width: 940px; }
.hero-stats div { border: 1px solid rgba(125, 211, 252, 0.30); border-radius: 20px; padding: 18px 20px; background: rgba(8, 47, 73, 0.54); box-shadow: 0 18px 45px rgba(2, 8, 23, 0.25); }
.hero-stats strong { display: block; color: #ffffff; font-size: clamp(1.1rem, 2vw, 1.55rem); line-height: 1.2; }
.hero-stats span { display: block; margin-top: 6px; color: #bae6fd; font-size: 0.92rem; }
.hero-points { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.hero-points li { border: 1px solid rgba(125, 211, 252, 0.42); color: #e0f2fe; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 0.9rem; background: rgba(14, 116, 144, 0.28); }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.compact-actions { margin-top: 24px; justify-content: flex-start; }
.center-actions { justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; border: 1px solid rgba(125, 211, 252, 0.65); }
.button.primary { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #031426; }
.button.secondary { color: #e0f2fe; background: rgba(15, 23, 42, 0.62); }
.work-action-block .button { flex: 1 1 138px; }
.panel { background: #0b1f3a; border-block: 1px solid rgba(125, 211, 252, 0.20); }
.section-heading { max-width: 920px; margin-bottom: 36px; }
.section-heading p { color: #b6d8f6; }
.section-heading .service-note-warning { margin-top: 10px; }
.cards, .works-grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .work-card { background: #102a4c; border: 1px solid rgba(125, 211, 252, 0.24); border-radius: 24px; padding: 28px; box-shadow: 0 20px 55px rgba(2, 8, 23, 0.28); }
.panel .card { background: #12345d; }
.works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.work-card { min-height: 100%; }
.work-card-featured { background: linear-gradient(135deg, #0b3b68, #102a4c 58%, #0f172a); border-color: rgba(125, 211, 252, 0.55); }
.work-card-planned { background: #0d2544; opacity: 0.92; }
.work-card-published {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; min-height: 46px; align-items: flex-start; }
.work-meta span { border: 1px solid rgba(125, 211, 252, 0.55); border-radius: 999px; padding: 4px 10px; color: #bae6fd; background: rgba(14, 116, 144, 0.24); font-size: 0.82rem; font-weight: 800; }
.work-card > h3 { margin: 0; min-height: 3.2rem; display: flex; align-items: flex-start; }
.work-card-published > h3 {
  min-height: 3rem;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.work-action-block,
.work-tech-block,
.work-notes {
  display: grid;
  gap: 1.15rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 18px;
  background: rgba(125, 167, 227, 0.26);
}
.work-action-block { min-height: 18.5rem; align-content: space-between; }
.work-tech-block { min-height: 7.4rem; align-content: center; }
.work-notes { min-height: 6.2rem; align-content: center; }
.work-description {
  display: grid;
  grid-template-rows: minmax(4.4rem, auto) auto;
  row-gap: 0.85rem;
}
.work-description-title,
.work-description-body { display: block; }
.work-description p,
.work-tech-block p,
.work-notes p { margin: 0; }
.work-tool-label {
  color: #e0f2fe !important;
  font-size: clamp(1.22rem, 1.55vw, 1.45rem);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.label-indent { display: inline-block; padding-left: 2em; }
.work-action-block .compact-actions { margin: 0; justify-content: flex-start; }
.work-card-published .work-action-block .compact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.work-card-published .work-action-block .compact-actions .button {
  width: 100%;
  padding-inline: 12px;
  white-space: nowrap;
}
.service-note { margin-block: 0; font-size: 0.92rem; color: #b6d8f6; }
.service-note-warning { color: #f87171 !important; font-weight: 800; }
.feature-grid, .narrative-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.narrative-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-item, .narrative-card { border: 1px solid rgba(125, 211, 252, 0.24); border-radius: 20px; padding: 22px; background: #102a4c; }
.narrative-card { background: #0d2544; box-shadow: 0 20px 55px rgba(2, 8, 23, 0.22); }
.skill-groups { display: grid; gap: 24px; }
.compact-skills { max-width: 980px; }
.contact { text-align: center; }
.contact .section-heading { margin-inline: auto; }
.contact p { max-width: 720px; margin-inline: auto; color: #b6d8f6; }
.site-footer { padding: 32px 7vw; color: #b6d8f6; border-top: 1px solid rgba(125, 211, 252, 0.20); background: #071426; }
@media (max-width: 900px) {
  body { font-size: 16px; line-height: 1.9; }
  .site-header { align-items: flex-start; flex-direction: column; position: static; }
  .site-nav { gap: 12px; font-size: 0.92rem; }
  .grid-3, .grid-2, .feature-grid, .narrative-grid, .works-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 7vw; }
  .hero { min-height: auto; padding-top: 72px; }
  .portfolio-label { width: min(96vw, 680px); height: clamp(150px, 44vw, 300px); }
  h1 { white-space: normal; font-size: clamp(2.2rem, 10vw, 3.6rem); }
  .work-card-published { gap: 18px; }
  .work-card-published > h3 { min-height: auto; }

  .work-card-published .work-action-block .compact-actions {
    grid-template-columns: 1fr;
  }
  .work-meta,
  .work-card > h3,
  .work-action-block,
  .work-tech-block,
  .work-notes { min-height: auto; }
  .work-description { grid-template-rows: none; }
  .compact-actions { justify-content: center; }
  .card, .feature-item, .narrative-card, .work-card { padding: 24px; }
}

.career-profile-grid { margin-top: 24px; }
.career-timeline { display: grid; gap: 18px; }
.career-entry {
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 22px;
  padding: 24px;
  background: #102a4c;
  box-shadow: 0 20px 55px rgba(2, 8, 23, 0.22);
}
.career-entry-compact { background: #0d2544; }
.career-entry-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.career-entry-header h3 { margin: 0; color: #f8fbff; }
.career-period {
  margin: 0 0 6px;
  color: #7dd3fc !important;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.career-duration span {
  display: inline-flex;
  border: 1px solid rgba(125, 211, 252, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.24);
  font-weight: 800;
  white-space: nowrap;
}
.career-role {
  color: #e0f2fe !important;
  font-weight: 800;
}
.career-detail-grid {
  display: grid;
  grid-template-columns: minmax(90px, 0.25fr) minmax(0, 1fr);
  gap: 8px 16px;
  margin: 18px 0;
}
.career-detail-grid dt {
  color: #7dd3fc;
  font-weight: 900;
}
.career-detail-grid dd {
  margin: 0;
}
.process-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.process-tags span {
  border: 1px solid rgba(125, 211, 252, 0.42);
  color: #e0f2fe;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(14, 116, 144, 0.28);
}
.career-actions { margin-top: 28px; }
@media (max-width: 900px) {
  .career-entry-header { flex-direction: column; }
  .career-detail-grid { grid-template-columns: 1fr; }
}

.balanced-copy span {
  display: inline-block;
}

.balanced-copy span + span {
  margin-left: 0.15em;
}

.career-hero-lead {
  max-width: 1120px;
  margin-inline: auto;
}

@media (max-width: 760px) {
  .balanced-copy span {
    display: block;
  }

  .balanced-copy span + span {
    margin-left: 0;
  }
}

.top-hero-lead {
  max-width: 980px;
  margin-inline: auto;
}

.top-hero-lead span {
  display: inline-block;
}

.top-hero-lead span + span {
  margin-left: 0.15em;
}

@media (max-width: 760px) {
  .top-hero-lead span {
    display: block;
  }

  .top-hero-lead span + span {
    margin-left: 0;
  }
}

#why .section-heading {
  max-width: 1180px;
}

.priority-break-copy span,
.why-heading-copy .seg {
  display: inline;
}

@media (max-width: 560px) {
  .why-heading-copy {
    font-size: clamp(1.72rem, 7.85vw, 2.45rem);
    line-height: 1.28;
  }

  .why-heading-copy .seg-1,
  .why-heading-copy .seg-2,
  .why-heading-copy .seg-4 {
    display: block;
  }
}

/* WHY heading responsive break refinement for PR #34.
   Break order:
   - wide: after seg-3 (AI活用に)
   - <=1500px: after seg-1
   - <=720px: after seg-2
   - <=560px: four-line mobile layout:
     現場で感じた課題を、
     レビュー支援・設計生成・
     AI活用につながる形へ
     落とし込んでいます。
*/
.why-heading-copy .seg {
  display: inline-block;
}

.why-heading-copy .seg-3::after {
  content: "\A";
  white-space: pre;
}

@media (max-width: 1500px) {
  .why-heading-copy .seg-1::after {
    content: "\A";
    white-space: pre;
  }
}

@media (max-width: 720px) {
  .why-heading-copy .seg-2::after {
    content: "\A";
    white-space: pre;
  }
}

@media (max-width: 560px) {
  .why-heading-copy .seg-3::after {
    content: "";
  }

  .why-heading-copy .seg-1,
  .why-heading-copy .seg-2,
  .why-heading-copy .seg-3,
  .why-heading-copy .seg-4 {
    display: inline-block;
  }

  .why-heading-copy .seg-5 {
    display: block;
  }
}
