*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden; /* 横方向のはみ出しを強制的にカット */
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "-apple-system", BlinkMacSystemFont, "Segoe UI", YuGothic, "游ゴシック体", "Noto Sans Japanese", "ヒラギノ角ゴ Pro W3", "メイリオ", "Hiragino Kaku Gothic ProN", "MS PGothic", Osaka, "sans-serif";
  margin: 0;
  background: #f5f5f5;
  color: #222;
  min-height: 100vh; /* 画面の高さ分を最低限確保 */
  flex-direction: column;
}

.container {
  padding: 80px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.lead {
  margin-bottom: 32px;
}

.button-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .button-group {
    flex-direction: column;
    gap: 12px;
  }
  .button-group .btn {
    text-align: center;
    width: 100%;
  }
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  background: #222;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s;
}

.btn:hover {
  background: #444;
}

.category-links a {
  text-decoration: none;
  color: #0070f3;
}

.category-links a:hover {
  text-decoration: underline;
}

.category-links a.btn:hover {
  background: #d400ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 0, 255, 0.3);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 20px;
}

.works-list {
  list-style: none;
  padding: 0;
}

.work-item {
  border-bottom: 1px solid #eee;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
}

.work-item:hover {
  transform: translateX(10px);
  border-left: 5px solid #d400ff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tag-group {
  margin-top: 8px;
}

.tag-group a {
  margin-right: 8px;
  text-decoration: none;
  color: #0070f3;
}

.sidebar {
    border-left: 1px solid #ddd; /* PCは左線を表示 */
    border-top: none;
    padding-left: 24px;
    padding-top: 0;
  }

.ad-box {
  width: 100%;
  height: 250px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.site-header {
  border-bottom: 1px solid #ddd;
  padding: 16px 40px;
}

/* ヘッダーここから */
.site-header {
  border-bottom: 1px solid #ddd;
  padding: 0; /* JS読み込み後に調整されるため */
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: flex-end; /* ハンバーガーを右に */
  align-items: center;
  padding: 10px 20px;
  min-height: 60px;
}

@media (min-width: 768px) {
  .header-inner {
    justify-content: flex-start;
    padding: 16px 40px;
  }
}

/* ハンバーガーボタン（デフォルト非表示） */
.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

/* ハンバーガー Active状態 */
.hamburger.active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  align-items: center;
}

/* スマホ表示（768px未満） */
@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    font-size: 1.2rem;
  }
}

/* PC表示 */
@media (min-width: 768px) {
  .nav {
    gap: 32px;
    justify-content: flex-start;
  }
}

.nav a {
  text-decoration: none;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.nav a:hover {
  color: #d400ff;
}

.nav a.active {
  color: #000;
  font-weight: 700;
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -2px;
  right: -2px;
  height: 3px;
  background: #d400ff;
  border-radius: 10px;
}
/* ヘッダーここまで */

.content-section {
  margin-bottom: 40px;
}

.contact-form {
  max-width: 500px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

input, textarea {
  padding: 8px;
  font-size: 14px;
}

.note {
  margin-top: 20px;
  font-size: 13px;
  color: #777;
}


/* フッターここから */


/*  メインコンテンツを膨らませる */
/* mainやwork-containerなど、コンテンツを包む要素に指定 */
main, .work-container {
    flex: 1;
}

/* フッターのデザイン */
.site-footer {
    background-color: #000000be;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    margin-top: auto;

    /* 【重要】最初は隠しておく */
    display: none;
}

/* クラスがついたら表示する */
.site-footer.is-loaded {
    display: flex;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* スマホで縦並びになった時の隙間 */
}

/* スマホ表示の時は中央寄せにする */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        justify-content: center;
    }
    .footer-nav a {
        margin: 0 8px; /* 左右の余白を均等に */
    }
}

.site-footer a {
    color: #fff;
    text-decoration: none; /* 下線を消すとよりスッキリします */
    font-size: 14px;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #d400ff; /* ホバー時はブランドカラーに */
    text-decoration: underline;
}


/* フッターここまで */

.work-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.work-card {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
}

.work-image img {
  width: 100%;
  border-radius: 8px;
}

.work-info h1 {
  margin-top: 0;
}

.creators,
.category {
  margin: 8px 0;
  color: #555;
}

.tags {
  margin: 16px 0;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 6px 10px;
  border-radius: 20px;
  margin-right: 6px;
  font-size: 14px;
}

.description {
  margin: 20px 0;
  line-height: 1.6;
}

.purchase-links {
  margin-top: 20px;
}

.buy-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  margin-right: 10px;
  text-decoration: none;
}

.buy-btn:hover {
  opacity: 0.8;
}

/*===================
  オススメポイントエリア
=====================*/

/* オススメポイントの枠全体 */
.recommend-section {
  margin: 15px 0;
  padding: 15px;
  background-color: #fff9fe; /* 非常に薄いピンク背景 */
  border-left: 5px solid #ea1ace; /* 左側にアクセントカラーの線を引く */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 軽い浮遊感 */
}

/* 「オススメポイント：」のラベル部分 */
.recommend-title {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ea1ace; /* 文字もテーマカラーに */
  display: flex;
  align-items: center;
}

/* ラベルの前に小さなアイコン（キラキラ）を添える演出 */
.recommend-title::before {
  content: '✨';
  margin-right: 5px;
  font-size: 1rem;
}

/* 紹介文のテキスト本体 */
.description-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  /* 文字が長すぎる場合に備えて少し余裕を持たせる */
  word-break: break-all;
}

/* スマホ用の微調整 */
@media (max-width: 480px) {
  .recommend-section {
    padding: 12px;
  }
  .description-text {
    font-size: 0.9rem;
  }
}

/* ローディングスピナー */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #d400ff; /* ブランドカラー */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto; /* 中央寄せ */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



