/* ============================================
   SAIYA LOG - Wireframe Stylesheet
   モノクロ・モバイルファースト・WordPress化対応
   ============================================ */

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

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #111;
  background: #fff;
  overflow-wrap: break-word;
  word-break: break-word;
}

a {
  color: #111;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* --- Container --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Placeholder (wireframe gray boxes) --- */
.placeholder {
  background: #e0e0e0;
  border: 1px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
  min-height: 80px;
  padding: 16px;
}

.placeholder--hero {
  min-height: 60vh;
  font-size: 1.5rem;
  flex-direction: column;
  gap: 8px;
}

.placeholder--video {
  aspect-ratio: 16 / 9;
  min-height: auto;
  width: 100%;
}

.placeholder--avatar {
  width: 120px;
  height: 120px;
  min-height: auto;
  border-radius: 50%;
  flex-shrink: 0;
}

.placeholder--thumb {
  aspect-ratio: 16 / 9;
  min-height: auto;
  width: 100%;
}

.placeholder--product {
  aspect-ratio: 1 / 1;
  min-height: auto;
  width: 100%;
}

.placeholder--icon {
  width: 40px;
  height: 40px;
  min-height: auto;
  display: inline-flex;
}

/* --- Section --- */
.section {
  margin-bottom: 48px;
  padding: 0 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #111;
}

.section-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 12px 16px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

/* Mobile menu (details/summary) */
.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
}

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

.mobile-menu .global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 200;
}

.mobile-menu .global-nav a {
  font-size: 1.25rem;
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu .global-nav a.is-current {
  border-bottom: 2px solid #111;
}

.mobile-menu .nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #111;
}

/* Desktop nav (hidden on mobile) */
.desktop-nav {
  display: none;
}

.desktop-nav .global-nav {
  display: flex;
  gap: 24px;
}

.desktop-nav .global-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 4px;
}

.desktop-nav .global-nav a:hover,
.desktop-nav .global-nav a.is-current {
  border-bottom: 2px solid #111;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #666;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb__item::after {
  content: ">";
  margin-left: 4px;
}

.breadcrumb__item:last-child::after {
  content: "";
}

.breadcrumb__item a {
  color: #666;
  font-size: 0.8rem;
}

/* --- Hero --- */
.hero {
  margin-bottom: 48px;
}

/* --- Profile Intro --- */
.profile-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px 16px;
}

.profile-intro__name {
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-intro__tags {
  font-size: 0.85rem;
  color: #666;
}

.profile-intro__bio {
  font-size: 0.9rem;
  max-width: 600px;
}

/* --- Category Nav --- */
.category-nav {
  padding: 0 16px;
  margin-bottom: 48px;
}

.category-nav__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s;
}

.category-nav__item:hover {
  background: #e0e0e0;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card-grid--2col-mobile {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Post Card --- */
.post-card {
  border: 1px solid #ddd;
  overflow: hidden;
}

.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: #e0e0e0;
  border-bottom: 1px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
}

.post-card__body {
  padding: 12px;
}

.post-card__meta {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 4px;
}

.post-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.post-card__excerpt {
  font-size: 0.8rem;
  color: #666;
}

/* --- Post Card Large --- */
.post-card--large .post-card__title {
  font-size: 1.1rem;
}

/* --- Product Card --- */
.product-card {
  border: 1px solid #ddd;
  overflow: hidden;
}

.product-card__thumb {
  aspect-ratio: 1 / 1;
  background: #e0e0e0;
  border-bottom: 1px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.8rem;
}

.product-card__body {
  padding: 12px;
}

.product-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card__desc {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 8px;
}

.product-card__link {
  font-size: 0.8rem;
  font-weight: 500;
}

/* --- CTA Box --- */
.cta-box {
  border: 2px solid #111;
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 48px;
}

.cta-box__text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-box__button {
  display: inline-block;
  padding: 10px 24px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.cta-box__button:hover {
  background: #333;
}

/* --- Growth Log Cards --- */
.growth-log__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.growth-log__card {
  border: 1px solid #ddd;
  padding: 20px 16px;
  text-align: center;
}

.growth-log__card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.growth-log__card-text {
  font-size: 0.85rem;
  color: #666;
}

/* --- Video Section --- */
.video-section {
  margin-bottom: 48px;
  padding: 0 16px;
}

.video-section__title {
  font-size: 0.95rem;
  margin-top: 8px;
}

/* --- Link More --- */
.link-more {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Sidebar --- */
.sidebar {
  margin-top: 48px;
}

.sidebar__widget {
  margin-bottom: 32px;
}

.sidebar__widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

/* --- Article Content --- */
.article-content h1 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.article-content h2 {
  font-size: 1.25rem;
  margin: 32px 0 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

.article-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

/* --- Article Summary Box --- */
.article-summary {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 16px;
  margin-bottom: 24px;
}

.article-summary__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.article-summary ul {
  padding-left: 20px;
  list-style: disc;
}

.article-summary li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* --- Article AD Box --- */
.article-ad {
  border: 2px dashed #999;
  padding: 16px;
  margin: 24px 0;
  text-align: center;
}

.article-ad__label {
  font-size: 0.7rem;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.article-ad__name {
  font-weight: 600;
  margin-bottom: 8px;
}

.article-ad__link {
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Comparison Box --- */
.comparison-box {
  border: 1px solid #ddd;
  padding: 16px;
  margin: 24px 0;
}

.comparison-box__title {
  font-weight: 700;
  margin-bottom: 12px;
}

.comparison-box__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.comparison-box__item {
  border: 1px dashed #999;
  background: #f5f5f5;
  padding: 12px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Internal Link --- */
.internal-link {
  border-left: 4px solid #111;
  padding: 12px 16px;
  margin: 24px 0;
  background: #f9f9f9;
}

.internal-link__label {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 4px;
}

.internal-link__title {
  font-weight: 600;
}

/* --- Author Box --- */
.author-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  border: 1px solid #ddd;
  margin-bottom: 48px;
}

.author-box__name {
  font-weight: 700;
}

.author-box__bio {
  font-size: 0.85rem;
  color: #666;
}

.author-box__links {
  display: flex;
  gap: 16px;
}

.author-box__links a {
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Purpose Nav --- */
.purpose-nav {
  margin-bottom: 32px;
}

.purpose-nav__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.purpose-nav__item {
  display: block;
  padding: 12px 16px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.purpose-nav__item:hover {
  background: #e0e0e0;
}

/* --- Store Categories (horizontal scroll on mobile) --- */
.store-categories {
  margin-bottom: 32px;
}

.store-categories__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.store-categories__item {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.store-categories__item:hover,
.store-categories__item.is-active {
  background: #111;
  color: #fff;
}

/* --- Store Grid --- */
.store-section {
  margin-bottom: 40px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* --- Store Disclaimer --- */
.store-disclaimer {
  font-size: 0.75rem;
  color: #999;
  padding: 16px;
  border-top: 1px solid #ddd;
  margin-top: 32px;
}

/* --- Store Related --- */
.store-related {
  margin-top: 48px;
}

/* --- Store Future --- */
.store-future {
  padding: 24px 16px;
  border: 1px dashed #999;
  text-align: center;
  margin-bottom: 32px;
}

.store-future__text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
}

.contact-form__group {
  margin-bottom: 16px;
}

.contact-form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-form__group input,
.contact-form__group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  font-family: inherit;
}

.contact-form__group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form__submit {
  display: inline-block;
  padding: 10px 32px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.contact-form__submit:hover {
  background: #333;
}

/* --- Profile Page --- */
.profile-detail {
  max-width: 700px;
  margin: 0 auto;
}

.profile-detail__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 32px;
}

.profile-detail__name {
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-detail__tagline {
  font-size: 0.9rem;
  color: #666;
}

.profile-detail__section {
  margin-bottom: 32px;
}

.profile-detail__section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

.profile-detail__section p {
  line-height: 1.8;
  margin-bottom: 12px;
}

/* --- SNS Links --- */
.sns-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sns-links a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: 0.85rem;
}

.sns-links a:hover {
  background: #f5f5f5;
}

/* --- Stream Page --- */
.stream-status {
  padding: 12px 16px;
  border: 1px solid #ddd;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.stream-status__label {
  font-weight: 600;
}

.stream-schedule {
  margin-bottom: 32px;
}

.stream-schedule__item {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

/* --- Layout: Main + Sidebar --- */
.layout-with-sidebar {
  display: flex;
  flex-direction: column;
}

.layout-with-sidebar__main {
  flex: 1;
}

.layout-with-sidebar__sidebar {
  margin-top: 48px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: 0.85rem;
}

.pagination__item.is-current {
  background: #111;
  color: #fff;
}

/* --- Widget Search --- */
.widget-search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

/* --- Widget List --- */
.widget-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}

.widget-list a {
  text-decoration: none;
}

.widget-list a:hover {
  text-decoration: underline;
}

/* --- Site Footer --- */
.site-footer {
  border-top: 1px solid #ddd;
  padding: 32px 16px;
  margin-top: 64px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.site-footer__nav a {
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__sns {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.site-footer__copy {
  font-size: 0.75rem;
  color: #999;
}

/* ============================================
   Tablet: 768px+
   ============================================ */
@media (min-width: 768px) {
  .category-nav__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .growth-log__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid--2col-mobile {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .purpose-nav__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    margin: 0 auto;
  }
}

/* ============================================
   Desktop: 1024px+
   ============================================ */
@media (min-width: 1024px) {
  .placeholder--hero {
    min-height: 70vh;
  }

  /* Navigation switch */
  .mobile-menu {
    display: none;
  }

  .desktop-nav {
    display: block;
  }

  /* Layout with sidebar */
  .layout-with-sidebar {
    flex-direction: row;
    gap: 32px;
  }

  .layout-with-sidebar__main {
    flex: 7;
    min-width: 0;
  }

  .layout-with-sidebar__sidebar {
    flex: 3;
    margin-top: 0;
  }

  /* Sidebar sticky */
  .sidebar--sticky {
    position: sticky;
    top: 60px;
  }

  /* Card grids */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--2col-mobile {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Store grid */
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* YouTube + Twitch side by side */
  .media-row {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
  }

  .media-row__main {
    flex: 7;
  }

  .media-row__side {
    flex: 3;
    display: flex;
    align-items: stretch;
  }

  .media-row__side .cta-box {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Author box horizontal */
  .author-box {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }

  .author-box__content {
    flex: 1;
  }

  /* Profile intro horizontal */
  .profile-intro--home {
    flex-direction: row;
    text-align: left;
    gap: 24px;
  }
}
