:root {
  --paper: #e6e6e6;
  --panel: #f8f7f3;
  --panel-soft: #f1f1ec;
  --ink: #3d4854;
  --muted: #7d858d;
  --blue: #5f86b8;
  --blue-light: #a9bfd8;
  --red: #d98b8b;
  --red-light: #edc0bf;
  --cream: #fffdf7;
  --line: #c6c8c4;
  --shadow: 0 2px 10px rgba(59, 72, 84, 0.025);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  width: min(1440px, calc(100% - 34px));
  margin: 24px auto;
  padding: 72px clamp(18px, 4vw, 66px) 34px;
  background:
    radial-gradient(circle at 15% 10%, rgba(169, 191, 216, 0.20), transparent 28%),
    radial-gradient(circle at 90% 82%, rgba(237, 192, 191, 0.14), transparent 25%),
    var(--paper);
  overflow: hidden;
  box-shadow: none;
  border-radius: 14px;
}

/* Tricolor dashed luggage-like outer frame */
.travel-frame,
.frame-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.travel-frame {
  z-index: 4;
}

.frame-line {
  background: repeating-linear-gradient(
    90deg,
    var(--blue) 0 28px,
    transparent 28px 42px,
    var(--cream) 42px 70px,
    transparent 70px 84px,
    var(--red) 84px 112px,
    transparent 112px 126px
  );
}

.frame-top {
  height: 6px;
  inset: 0 0 auto;
}

.frame-bottom {
  height: 6px;
  inset: auto 0 0;
}

.frame-right,
.frame-left {
  width: 6px;
  background: repeating-linear-gradient(
    180deg,
    var(--blue) 0 28px,
    transparent 28px 42px,
    var(--cream) 42px 70px,
    transparent 70px 84px,
    var(--red) 84px 112px,
    transparent 112px 126px
  );
}

.frame-right {
  inset: 0 0 0 auto;
}

.frame-left {
  inset: 0 auto 0 0;
}

.page-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 26px;
  margin-bottom: 44px;
}

.route-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 13px;
}

.pin-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--cream);
}

.route-line {
  width: 90px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 9px, transparent 9px 14px);
}

.eyebrow,
.section-kicker,
.info-label,
.work-meta,
.card-topline,
.ticket-code,
.site-footer,
.contact-ticket span {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.3rem);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-header h1 span {
  color: var(--blue);
  -webkit-text-stroke: 1px rgba(61, 72, 84, 0.05);
}

.ticket-code {
  padding: 15px 18px;
  min-width: 130px;
  border: 1px dashed var(--ink);
  background: rgba(255, 253, 247, 0.52);
  text-align: center;
  transform: rotate(2deg);
}

.ticket-code small {
  color: var(--red);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.portfolio-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.45fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.profile-card,
.travel-panel {
  background: rgba(248, 247, 243, 0.90);
  border: 1px solid rgba(61, 72, 84, 0.12);
  box-shadow: none;
}

.profile-card {
  position: sticky;
  top: 20px;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -72px;
  top: -70px;
  border-radius: 50%;
  border: 22px solid rgba(217, 139, 139, 0.16);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--line);
}

.portrait-wrap {
  position: relative;
  margin: 20px 0 26px;
}

/* .portrait {
  aspect-ratio: 1 / 0.95;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(61, 72, 84, 0.15);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(169, 191, 216, 0.88), rgba(255, 253, 247, 0.80)),
    var(--blue-light);
  color: rgba(61, 72, 84, 0.72);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 247, 0.20);
} */

.portrait {
  aspect-ratio: 1 / 0.95;
  overflow: hidden;
  border: 1px solid rgba(61, 72, 84, 0.15);
  border-radius: 24px;
  background: var(--blue-light);
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portrait span {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.portrait small {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.stamp {
  position: absolute;
  padding: 10px 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(248, 247, 243, 0.82);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  transform: rotate(-12deg);
}

.stamp-blue {
  left: -12px;
  bottom: -14px;
  color: var(--blue);
}

.stamp-red {
  right: -4px;
  top: -14px;
  color: var(--red);
  transform: rotate(9deg);
}

.profile-name h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.profile-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-box .section-kicker {
  margin-bottom: 12px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.travel-panel {
  position: relative;
  border-radius: var(--radius-md);
  padding: clamp(22px, 4vw, 34px);
}

.travel-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(61, 72, 84, 0.10);
  border-radius: calc(var(--radius-md) - 8px);
  pointer-events: none;
}

.panel-heading,
.lined-note,
.work-list,
.info-grid,
.contact-ticket {
  position: relative;
  z-index: 1;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
}

.panel-number {
  align-self: flex-start;
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--red-light);
  color: #6e4b4c;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.lined-note {
  padding: 3px 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(95, 134, 184, 0.16) 32px
  );
}

.lined-note p {
  margin: 0 0 18px;
  max-width: 70ch;
}

.lined-note p:last-child {
  margin-bottom: 4px;
}

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

.work-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}

.work-item:first-child {
  border-top: 0;
}

.work-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px 15px 11px 15px;
  background: var(--blue-light);
  color: #35516f;
  font-weight: 900;
  transform: rotate(-5deg);
}

.work-item:nth-child(2) .work-badge {
  background: var(--red-light);
  color: #744f50;
  transform: rotate(5deg);
}

.work-item:nth-child(3) .work-badge {
  background: #eee2b8;
  color: #6d633c;
  transform: rotate(-3deg);
}

.work-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.58rem;
}

.work-main h3 {
  margin: 2px 0 3px;
  font-size: 1rem;
}

.work-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.tag-list span {
  padding: 3px 8px;
  border: 1px solid rgba(61, 72, 84, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  font-size: 0.58rem;
  font-weight: 800;
}

.text-link {
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--blue);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.info-card {
  min-height: 150px;
  padding: 17px;
  border: 1px solid rgba(61, 72, 84, 0.10);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.66);
}

.info-card:nth-child(1) { transform: rotate(-0.5deg); }
.info-card:nth-child(2) { transform: rotate(0.7deg); }
.info-card:nth-child(3) { transform: rotate(0.4deg); }
.info-card:nth-child(4) { transform: rotate(-0.6deg); }

.info-label {
  color: var(--blue);
  font-size: 0.58rem;
}

.info-card h3 {
  margin: 4px 0 5px;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.contact-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px dashed rgba(61, 72, 84, 0.22);
  background:
    linear-gradient(90deg, rgba(169, 191, 216, 0.20), rgba(237, 192, 191, 0.18)),
    rgba(255, 253, 247, 0.60);
}

.contact-ticket strong {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
}

.barcode {
  width: 110px;
  height: 34px;
  flex: 0 0 auto;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 9px
  );
  opacity: 0.52;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 4px 0;
  color: var(--muted);
  font-size: 0.62rem;
}

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

  .profile-card {
    position: relative;
    top: 0;
  }

  .portrait {
    aspect-ratio: 1 / 0.52;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 14px, 1440px);
    margin: 7px auto;
    padding: 66px 14px 24px;
    border-radius: 10px;
  }


  .page-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 28px;
  }

  .route-mark {
    display: none;
  }

  .ticket-code {
    min-width: 88px;
    padding: 11px 10px;
    font-size: 0.62rem;
  }

  .portfolio-grid {
    gap: 12px;
  }

  .profile-card,
  .travel-panel {
    border-radius: 18px;
  }

  @media (prefers-reduced-motion: no-preference) {
  .travel-panel,
  .profile-card {
    transition: border-color 180ms ease;
  }
  }
}