:root {
  --paper: #f8f6f1;
  --paper-2: #f1eee7;
  --ink: #0f0f0f;
  --muted: #5f5c55;
  --line: #cfc9bd;
  --panel: rgba(255, 253, 248, 0.78);
  --blue: #0969e8;
  --green: #20a943;
  --red: #ef1717;
  --amber: #f59e0b;
  --cyan: #22c7ad;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(9, 105, 232, 0.05), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(245, 158, 11, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(207, 201, 189, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(207, 201, 189, 0.18) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 36px 36px, 36px 36px, auto;
  color: var(--ink);
  font-family:
    Inter,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    system-ui,
    sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 78px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  background: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
}

.brand strong {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.brand strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}

main {
  width: min(1378px, calc(100% - 92px));
  margin: 0 auto;
}

.top-grid {
  display: grid;
  grid-template-columns: 0.79fr 1.17fr;
  gap: 38px;
  padding-top: 16px;
}

.profile-panel,
.log-panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: center;
  padding: 17px 23px 35px;
}

.profile-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-top: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.profile-panel h1 {
  margin: 12px 0 0;
  font-size: 1.8rem;
  line-height: 1.15;
}

.profile-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-text {
  width: 100%;
  max-width: 374px;
  margin: 18px 0 16px;
  padding: 16px 18px;
  border: 1px solid #ddd2bd;
  border-radius: 5px;
  background: rgba(250, 247, 239, 0.84);
  color: #1c1b18;
  font-size: 0.94rem;
  line-height: 1.8;
  text-align: center;
}

.link-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  width: 100%;
  max-width: 492px;
}

.social-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 57px;
  border: 1px solid #c4beb3;
  border-left-width: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 1.05rem;
  transition: background 160ms ease, transform 160ms ease;
}

.social-link:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.social-link.is-coming-soon {
  background: #e6e3dc;
  opacity: 0.52;
  filter: grayscale(0.3);
}

.social-link.is-coming-soon:hover {
  background: #ece9e3;
  opacity: 0.7;
}

.social-link.is-disabled,
.social-link.is-disabled:hover {
  cursor: default;
  transform: none;
}

.soon-badge {
  position: absolute;
  right: 11px;
  bottom: 7px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.link-x {
  border-left-color: var(--blue);
  color: #000000;
}

.link-youtube {
  border-left-color: var(--red);
  color: #ff0000;
}

.link-instagram {
  border-left-color: #d946ef;
  color: #e4405f;
}

.link-tiktok {
  border-left-color: #111111;
  color: #000000;
}

.link-note {
  border-left-color: var(--cyan);
  color: #41c9b4;
}

.social-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.note-wordmark {
  width: 88px;
  height: auto;
  max-height: 30px;
}

.contact-card {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 492px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #ddd2bd;
  border-radius: 5px;
  background: rgba(250, 247, 239, 0.84);
}

.contact-card p {
  margin: 0;
  color: #1c1b18;
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: center;
}

.contact-email-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.contact-email {
  flex: 1 1 230px;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.copy-email-button {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 38px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.copy-email-button:hover {
  background: var(--paper-2);
}

.copy-feedback {
  min-height: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.contact-button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 800;
}

.log-panel {
  padding: 19px 23px 9px;
}

.log-heading h2 {
  position: relative;
  margin: 0 0 14px;
  padding-left: 16px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.log-heading h2::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  background: var(--ink);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 11px;
}

.filter-button {
  min-width: 54px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #3f3d38;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.filter-button[data-filter="build"] {
  color: var(--blue);
}

.filter-button[data-filter="sns"] {
  color: var(--red);
}

.filter-button[data-filter="automation"] {
  color: var(--green);
}

.filter-button[data-filter="omoroi"] {
  color: #9b6b13;
}

.filter-button[data-filter="google"] {
  color: #4b7fca;
}

.filter-button[data-filter="other"] {
  color: #68615a;
}

.filter-button.active[data-filter="all"] {
  color: #ffffff;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}

.activity-item {
  min-height: 118px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.activity-item:hover,
.activity-item:focus-visible {
  border-color: #9c968b;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transform: translateY(-1px);
}

.activity-item.is-hidden {
  display: none;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1e4fcf;
  font-size: 0.78rem;
  font-weight: 700;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.blue {
  background: var(--blue);
}

.green {
  background: var(--green);
}

.red {
  background: var(--red);
}

.amber {
  background: var(--amber);
}

.gray {
  background: #8b8b8b;
}

.activity-meta:has(.green) {
  color: var(--green);
}

.activity-meta:has(.red) {
  color: var(--red);
}

.activity-meta:has(.amber) {
  color: #cc7a00;
}

.activity-meta:has(.gray) {
  color: #666666;
}

.activity-item h3 {
  margin: 8px 0 5px;
  font-size: 0.94rem;
  line-height: 1.35;
}

.activity-description {
  margin: 0 0 8px;
  color: #4d4a43;
  font-size: 0.74rem;
  line-height: 1.55;
}

.activity-item time {
  color: var(--muted);
  font-size: 0.78rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 7px auto 0;
}

.pagination-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.pagination-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.activity-modal.is-open {
  display: flex;
}

.activity-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.5);
}

.activity-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(15, 15, 15, 0.22);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: 42px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.activity-dialog h2 {
  margin: 12px 42px 10px 0;
  font-size: 1.34rem;
  line-height: 1.36;
}

.activity-dialog p {
  margin: 0;
}

#modalDescription {
  color: #3f3d38;
  font-size: 0.92rem;
  line-height: 1.7;
}

.modal-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #1c1b18;
  font-size: 0.95rem;
  line-height: 1.85;
}

.modal-links {
  margin-top: 18px;
}

.modal-links h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.modal-link-list {
  display: grid;
  gap: 8px;
}

.modal-link-list a,
.modal-empty {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.modal-empty {
  color: var(--muted);
  font-weight: 700;
}

.media-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.media-block {
  min-width: 0;
}

.youtube-block {
  padding-right: 24px;
}

.note-block {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.media-block h2 {
  margin: 0 0 6px;
  font-size: 1.24rem;
}

.media-label,
.note-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.note-label img {
  width: 54px;
  height: auto;
}

.youtube-dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.55rem;
}

.youtube-list,
.note-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.video-card p,
.video-card small {
  margin: 0;
}

.video-card p {
  margin-top: 7px;
  font-size: 0.8rem;
}

.video-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.73rem;
}

.thumb {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 153px;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(110deg, rgba(5, 8, 13, 0.82), rgba(5, 8, 13, 0.42)),
    linear-gradient(135deg, #203345, #121417 58%, #29332d);
  color: #ffffff;
  padding: 16px;
}

.thumb-2 {
  background:
    linear-gradient(110deg, rgba(5, 8, 13, 0.82), rgba(5, 8, 13, 0.38)),
    linear-gradient(135deg, #2a2117, #181511 58%, #3a3328);
}

.thumb-3 {
  background:
    linear-gradient(110deg, rgba(5, 8, 13, 0.82), rgba(5, 8, 13, 0.38)),
    linear-gradient(135deg, #24303a, #111821 58%, #33404b);
}

.thumb h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.42;
}

.play {
  position: absolute;
  left: 50%;
  bottom: 17px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border-radius: 8px;
  background: var(--red);
  transform: translateX(-50%);
}

.thumb time {
  position: absolute;
  right: 8px;
  bottom: 7px;
  font-size: 0.78rem;
}

.coming-soon-panel {
  justify-items: center;
  text-align: center;
}

.coming-soon-panel h3 {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  letter-spacing: 0;
}

.content-soon {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ffffff;
  padding: 5px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.embed-frame {
  overflow: hidden;
  border: 1px solid #c4beb3;
  border-radius: 4px;
  background: #000000;
}

.youtube-embed {
  aspect-ratio: 16 / 9;
}

.youtube-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.note-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 214px;
  padding: 16px;
  border: 1px solid #c4beb3;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(65, 201, 180, 0.18), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-align: center;
}

.note-card .content-soon {
  border-color: rgba(15, 15, 15, 0.22);
  color: var(--ink);
}

.note-card p {
  margin: 14px 0 5px;
  font-size: 0.82rem;
}

.note-card small {
  color: var(--muted);
  font-size: 0.73rem;
}

.twitter-tweet {
  width: 100% !important;
  margin: 0 !important;
}

.x-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.x-profile > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #ffffff;
  color: #121a20;
  font-weight: 900;
}

.x-profile strong,
.x-profile small {
  display: block;
}

.x-profile strong {
  font-size: 0.76rem;
}

.x-profile small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.x-card p {
  margin: 14px 0 13px;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.65;
}

.x-card time,
.x-stats {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.x-stats {
  display: flex;
  gap: 19px;
  margin-top: 15px;
}

.site-footer {
  display: grid;
  place-items: center;
  padding: 30px 0 25px;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .brand {
    padding-left: 24px;
  }

  main {
    width: min(calc(100% - 32px), 860px);
  }

  .top-grid,
  .media-area {
    grid-template-columns: 1fr;
  }

.note-block {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    padding: 10px 0;
  }

  .brand {
    padding-left: 14px;
  }

  main {
    width: min(calc(100% - 20px), 560px);
  }

  .profile-panel,
  .log-panel {
    padding: 16px;
  }

  .activity-list,
  .youtube-list,
  .note-post-list {
    grid-template-columns: 1fr;
  }

  .link-stack {
    width: 100%;
  }

  .copy-email-button {
    flex: 1 1 100%;
  }
}
