*, *::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;
}

.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;
}

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

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

.work-item {
  border-bottom: 1px solid #ccc;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.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;
}

/* ヘッダーここから */
.nav {
  display: flex;
  gap: 20px; /* 少し広げてゆとりを */
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 15px 10px; /* 上下の余白をしっかり取る */
  align-items: center;
}

/* スクロールバーを隠す（今風の見た目） */
.nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .nav {
    gap: 32px;
    overflow-x: visible;
    justify-content: flex-start; /* PCでは左寄せ */
  }
}

.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; /* コンテンツが短くても必ず最下部へ */
}

.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;
  }
}



