/* ------------------------------
   Base
--------------------------------*/
html, body {
  font-size: 1px;
  line-height: 1.7;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "lnum", "tnum";
  -webkit-font-smoothing: antialiased;

}




html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ------------------------------
   Header
--------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffffd9;
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #e5e5e5;
  padding-top: 40px;
  padding-bottom: 10px;
  z-index: 999;
  text-align: center;
}

.logo {
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #666666;
  margin-bottom: 10px;
}

.site-nav {
  margin-top: 13px;
  margin-bottom: 8px;
}

.site-nav a {
  margin: 0 13px;
  color: #666;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.4px;
}

.site-nav a:hover {
  color: #999;
}

/* ------------------------------
   Content - default pages
--------------------------------*/
.content {
  max-width: 100% !important;
  width: 100%;
  margin: 140px 0 80px 0;
  padding: 0 26px; /* ← PC もスマホも右に余白できる */
  box-sizing: border-box;
}

h1 {
  font-size: 12px;
  margin: 40px 0 20px;
  color: #666666;
  font-weight: 500;
}

h2 {
  font-size: 12px;
  margin: 30px 0 15px;
  font-weight: 500;
  color: #666666;
}

p {
  margin: 0 0 20px;
  font-size: 12px;
  color: #555;
}

/* ------------------------------
   Links
--------------------------------*/
a {
  color: #ec9998;
  text-decoration: none;
}
a:hover {
  opacity: 0.7;
}

/* ------------------------------
   Images
--------------------------------*/
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

/* ------------------------------
   Footer
--------------------------------*/
footer {
  text-align: center;
  padding: 30px 0;
  color: #888;
  font-size: 12px;
}

/* ------------------------------
   Illust Page
--------------------------------*/
.page-container {
  max-width: 760px;
  margin: 140px auto 100px;
  padding: 0 26px;
}

.page-title {
  font-size: 20px;
  margin-bottom: 35px;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: left;
}

.illust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.illust-item {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 6px;
  background: #f8f8f8;
}

.illust-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: opacity 0.25s ease;
}

.illust-item:hover img {
  opacity: 0.85;
}

/* ------------------------------
   Index Page
--------------------------------*/
.index-page {
  text-align: center;
}

.index-top-image img {
  margin: 50px 0;
  width: 480px;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.index-text {
  margin: 30px 0 30px;
}

.index-links {
  margin: 20px 0 40px;
}

.index-note {
  margin: 0 0 200px;
  line-height: 1.8;
}




/* ------------------------------
   Work Page
--------------------------------*/
.work-list {
  padding: 20px 20px;
  color: #666666; /* ← 好きな色にする */
}

.work-item {
  display: flex;
  max-width: 600px;
  margin: 18px auto;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  font-family: "Helvetica Neue", Arial, sans-serif;
  word-break: break-word;
  overflow-wrap: break-word;
}

.work-item .date {
  min-width: 60px;
  font-size: 12px;
  line-height: 1.7;
}

.work-item .desc {
  flex: 1;
  font-size: 12px;
  line-height: 1.7;
}

.work-item + .work-item {
  margin-top: 4px;
}

.work-list .divider {
  max-width: 600px;
  margin: 40px auto;
  border: none;
  border-top: 1px solid #ccc;
}





/* ------------------------------
   Memo Page
--------------------------------*/
body.memo .content {
  max-width: 100% !important;
  width: 100%;
  margin: 140px 0 0;
  padding: 0;
}

body.memo .iframe-wrap {
  width: 100%;
  overflow: hidden;
}

body.memo .iframe-wrap iframe {
  width: 100%;
  height: calc(100vh - 140px);
  border: none;
  display: block;
}

/* ------------------------------
   Responsive
--------------------------------*/
@media (max-width: 600px) {
  html, body {
    font-size: 16px !important;
    line-height: 1.8;
  }

  /* ★ work ページだけ：上に余白をつける */
  .content.work-list {
    padding-top: 20px;
  }

  .logo {
    font-size: 20px;
  }

  .site-nav a {
    font-size: 16px;
  }




  /* 右余白（どのページにも適用してOKならこのまま） */
  .content {
    padding-left: 26px;
    padding-right: 26px;
  }

  .illust-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
  }
}

@media screen and (max-width: 480px) {
  .work-item .date {
    min-width: 60px;
  }
}