/* ===== Reset & Global ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, #f5f5f7 0%, #e8e8ec 50%, #f0f0f4 100%);
  color: #1a1a1a;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

li {
  list-style: none;
}

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

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 20px 64px;
}

#carrier, #skill, #about {
  scroll-margin-top: 56px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.header__row {
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.header__title {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #333;
}

.header__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__link {
  display: inline-block;
  padding: 8px 0;
  min-height: 44px;
  line-height: 28px;
  font-size: 12px;
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background-color: #333;
  transition: width 0.2s ease;
}

.header__link:hover::after {
  width: 100%;
}

/* ===== Cards ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.card {
  display: block;
  width: 180px;
  min-width: 160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card__media-wrap {
  position: relative;
  display: block;
}

.card__media {
  display: block;
  height: 88px;
  background-position: center;
  background-size: cover;
}

.card__title {
  position: absolute;
  left: 12px;
  bottom: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: inherit;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.card__footer {
  display: block;
  padding: 12px 14px 14px;
  font-size: 11px;
  color: #5c5c5c;
}

/* ===== Section common ===== */
.section {
  margin-bottom: 72px;
  padding: 24px 20px 28px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.section__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.section__icon {
  flex-shrink: 0;
}

.section__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* ===== Carrier ===== */
.carrier .carrier__contents {
  font-size: 12px;
}

.carrier__company {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.carrier__company-desc {
  color: #555;
  margin-bottom: 16px;
  font-size: 11px;
}

.carrier__contents__item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.carrier__contents__item:last-child {
  border-bottom: none;
}

.carrier__contents__item summary {
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 16px;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.carrier__contents__item summary:hover {
  opacity: 0.85;
}

.carrier__contents__item summary::-webkit-details-marker {
  display: none;
}

.carrier__contents__item summary::marker {
  content: none;
}

.carrier__contents__start {
  color: #777;
}

.carrier__contents__summary {
  font-weight: 500;
}

.carrier__contents__description {
  margin-top: 12px;
  padding-left: 0;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  color: #555;
}

.carrier__contents__description p {
  margin: 0 0 8px 0;
}

.carrier__contents__description p:last-child {
  margin-bottom: 0;
}

.carrier__detail-label {
  font-weight: 600;
  color: #444;
  margin-top: 12px !important;
  margin-bottom: 4px !important;
}

.carrier__detail-label:first-child {
  margin-top: 0 !important;
}

.carrier__detail-meta {
  font-size: 11px;
  color: #888;
  margin-top: 12px !important;
}

/* ===== Skill ===== */
.skill__body {
  font-size: 12px;
}

.skill__intro {
  margin: 0 0 16px;
}

.skill__block {
  margin-bottom: 16px;
}

.skill__block-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.skill__block-title img {
  flex-shrink: 0;
}

.skill__contents__item {
  display: grid;
  grid-template-columns: 1fr 60px repeat(5, 16px);
  align-items: center;
  column-gap: 8px;
  padding: 6px 0;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.skill__contents__item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.skill__name {
  font-weight: 500;
}

.skill__period {
  font-size: 11px;
  color: #777;
}

.skill__star {
  width: 14px;
  height: 14px;
}

/* ===== About ===== */
.about__list {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.about__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  column-gap: 12px;
  padding: 4px 0;
}

.about__item dt {
  margin: 0;
  font-weight: 500;
}

.about__item dd {
  margin: 0;
}

/* ===== Page Top ===== */
#page_top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
}

#page_top a {
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
  color: #f5f5f5;
  padding: 28px 20px 24px;
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 11px;
}

.footer__name {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 600;
}

.footer__role {
  margin: 0 0 12px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.footer__link {
  color: #fff;
  font-size: 11px;
}

.footer__copy {
  margin: 0;
  font-size: 10px;
  color: #bbb;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  main {
    padding: 72px 16px 56px;
  }

  .header__row {
    padding: 0 16px;
  }

  .header__links {
    gap: 16px;
    font-size: 11px;
  }

  .cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cards::-webkit-scrollbar {
    display: none;
  }

  .card {
    flex: 0 0 140px;
    min-width: 140px;
  }

  .card__media {
    height: 72px;
  }

  .section__header {
    margin-bottom: 12px;
  }

  .carrier__contents__item summary {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .carrier__contents__start {
    font-size: 11px;
  }

  .skill__contents__item {
    grid-template-columns: 1fr 52px repeat(5, 14px);
    column-gap: 6px;
    padding: 8px 6px;
  }

  .skill__name {
    min-width: 0;
    word-break: break-word;
  }

  .skill__period {
    font-size: 10px;
  }

  .skill__star {
    width: 12px;
    height: 12px;
  }

  .about__item {
    grid-template-columns: 80px 1fr;
    column-gap: 10px;
    padding: 6px 0;
  }

  .footer {
    padding: 24px 16px 20px;
  }

  .footer__links {
    gap: 12px;
  }

  #page_top {
    right: 16px;
    bottom: 20px;
  }

  .section {
    padding: 20px 16px 24px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 64px 12px 48px;
  }

  .header__links {
    gap: 12px;
    font-size: 10px;
  }

  .section__title {
    font-size: 16px;
  }

  .cards {
    margin-bottom: 32px;
  }

  .card {
    flex: 0 0 120px;
    min-width: 120px;
  }

  .card__title {
    font-size: 13px;
  }

  .carrier__company {
    font-size: 11px;
  }

  .carrier__contents__summary {
    font-size: 11px;
  }

  .skill__contents__item {
    grid-template-columns: 1fr 44px repeat(5, 12px);
    column-gap: 4px;
  }

  .skill__star {
    width: 11px;
    height: 11px;
  }

  .section {
    padding: 16px 12px 20px;
  }
}

