@charset "UTF-8";

body.home main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.home-section {
  border-bottom: 1px solid var(--color-border-soft);
  padding: 52px 32px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.6s ease;
  position: relative;
  background: transparent;
}

.home-section.visible {
  opacity: 1;
  transform: translateY(0);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  border-bottom-color: transparent;
  border: 1px solid var(--color-border-soft);
}

.section-title {
  font-size: 20px;
  margin-bottom: 36px;
  letter-spacing: 0.1em;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 32px;
  transition: color 0.5s ease, transform 0.5s ease;
  color: var(--color-text);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  background: none;
  border: 0;
  text-align: left;
}

.section-title::before {
  content: "▸";
  position: absolute;
  left: 0;
  font-size: 12px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
  color: var(--color-uncanny);
  font-weight: 300;
}

.section-title.collapsed::before {
  transform: rotate(-90deg);
}

.section-title:hover {
  color: var(--color-uncanny);
  transform: translateX(3px);
}

.section-title:hover::before {
  transform: translateX(2px);
  color: var(--color-text);
}

.section-title.collapsed:hover::before {
  transform: rotate(-90deg) translateX(2px);
}

.section-content {
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 8px;
}

.section-content.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

.item-link {
  display: block;
  width: 100%;
  padding: 20px 16px;
  border: 1px solid transparent;
  border-top: 1px solid var(--color-border-soft);
  color: var(--color-text);
  transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease, transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  font: inherit;
  text-align: left;
  background: none;
  cursor: pointer;
  text-decoration: none;
}

.item-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-uncanny-soft), transparent);
  transition: left 0.6s ease;
}

.item-link:hover {
  background: var(--color-surface-strong);
  color: var(--color-text);
  border-color: var(--color-border);
  transform: translateX(4px) translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.item-link:hover::before {
  left: 100%;
}

.work-item {
  position: relative;
}

.panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, padding 0.6s ease, transform 0.6s ease;
  padding: 0 16px;
  transform: translateY(-16px);
  background: var(--color-bg);
}

.panel.expanded {
  max-height: 1000px;
  opacity: 1;
  padding: 24px 16px 32px;
  transform: translateY(0);
}

.panel .item-image {
  width: 100%;
  height: auto;
  max-width: 450px;
  display: block;
  margin: 16px auto 24px;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

.panel .item-summary {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: justify;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text);
}

.item-read-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  padding: 10px 22px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: transparent;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-decoration: none;
}

.item-read-link:hover {
  background: var(--color-uncanny);
  color: var(--color-bg);
  border-color: var(--color-uncanny);
  transform: translateY(-2px);
}

.item-content {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.item-title {
  font-size: 18px;
  font-weight: 400;
}

.item-date {
  font-size: 10px;
  color: var(--color-muted);
  flex-shrink: 0;
  letter-spacing: 0.08em;
}

.item-link:hover .item-date {
  color: var(--color-uncanny);
}

@media (max-width: 480px) {
  body.home main {
    gap: 40px;
  }

  .home-section {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .section-title {
    font-size: 18px;
    margin-bottom: 28px;
    padding-left: 28px;
  }

  .item-title {
    font-size: 16px;
  }

  .item-image {
    max-width: 100%;
    margin: 12px auto 20px;
  }

  .item-link {
    padding: 18px 14px;
  }
}
