:root{
  --bg: #ffffff;   /* やや黄みの柔らかいベージュ */
  --ink: #1a1a1a;  /* 黒に近い文字色（目が疲れにくい） */
  --card: #e9e1d5ff; /* カード・ボックス背景 */
  --line: #e9e1d5ff; /* 区切り線・ボーダー */
}
body{
  padding-top: 45px;
  margin:0;
  color: var(--ink);
  background:
    linear-gradient(0deg, rgba(0,0,0,0.02) 50%, transparent 50%) 0 0/100% 3px,
    linear-gradient(90deg, rgba(0,0,0,0.02) 50%, transparent 50%) 0 0/3px 100%,
    var(--bg);
}

/* コンテンツや画像の枠に軽い浮き感 */
.block-center, .block-left, .block-right, .menu-panel, .image-container img{
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 区切り線やボーダー色を統一 */
hr, .breadcrumb, .search-form-3 {
  border-color: var(--line);
}

/* main */
.photos {
    display: flex;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
}

.item {
    cursor: pointer;
    flex: 0 1 9%;
    /* 横に4列表示 */
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    font-weight: bold;
    margin-bottom: 1%;
    margin-left: 0.5%;
    font-size: small;
}
.item_doujin {
    cursor: pointer;
    flex: 0 1 24%;
    /* 横に4列表示 */
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    font-weight: bold;
    margin-bottom: 1%;
    margin-left: 0.5%;
    font-size: small;
}

/* header */
body {
    /* 高さを画面全体に合わせる */
    margin: 0;
}

li {
    list-style-type: none;
    /* 点を消す */
    margin: 5px 0;
    /* 上下に5px、左右に0px */
}

.block-center {
    width: 70vw;
    text-align: center;
}

.container2 {
    display: flex;
}

.block-left,
.block-right {
    width: 15vw;    
    text-align: center;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background-color: #2400a5;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer {
  background-color: #2400a5;
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    color: white;
    float: right;
}

nav ul li {
    margin: 0 10px;
}

footer,
footer a,
nav,
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* 検索ボックス */
.search-form-3 {
    margin: 0px 10%;
    display: flex;
    overflow: hidden;
    border: 1px solid #000000;
    border-radius: 25px;
}

.search-form-3 input {
    padding: 5px 15px;
    border: none;
}

.search-form-3 input::placeholder {
    color: #777777;
}

/* パンくずリスト */
.breadcrumb {
    list-style: none;
    display: flex;
    padding: 0;
}

.breadcrumb li {
    margin-right: 5px;
}

.breadcrumb li+li:before {
    content: '>';
    margin-right: 5px;
}

.breadcrumb a {
    text-decoration: none;
    color: blue;
}

/* main */
.read-more-button {
    padding: 10px 20px;
    color: white;
    background-color: rgb(255, 0, 43);
    border-radius: 50px;
    font-weight: bold;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.read-more-button:hover {
    background-color: #ff0080;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button {
    padding: 5px;
    margin: 5px;
    font-size: 1em;
}

.button {
    cursor: pointer;
    display: inline-block;
    padding: 30px 50px;
    background-color: #e74c3c;
    color: white;
    margin-bottom: 60px;
    font-size: 28px;
}

.button:hover {
    background-color: #c0392b;
}

/* メイン画像 */
.pic {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 8px; /* すき間 */
}

.pic img {
    width: 100%;
    /* 列の幅に合わせる */
    margin-bottom: 10px;
    /* 画像間の縦方向の隙間 */
    display: block;
    /* 画像間の余白を防ぐ */
}


.image-container,
.image-container2
 {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.image-container img,
.image-container2 img
 {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* ← まず余白を作る */
  transform: scale(1.2);  /* ← 余白ごと拡大 */
  transform-origin: center;
  display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: flex-end;
    /* 右寄せ */
    gap: 10px;
}

.overlay a {
    color: white;
    text-decoration: none;
    background: #2400a5;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.overlay a:hover {
    background: rgba(255, 0, 255);
}




/* 右上メニューボタン */
.menu-button {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    /* 半透明 */
    color: #fff;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    user-select: none;
}

.menu-panel {
    position: fixed;
    top: 50px;
    right: 5px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 90vh;
    overflow-y: auto;
    width: 15VW;
}

.menu-panel ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2列グリッド */
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-panel li {
    color: white;
    font-size: 14px;
}


.menu-panel.hidden {
    display: none;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.category-buttons a {
  display: inline-block;
  padding: 14px 26px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2400a5, #2400a5);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.category-buttons a:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: 0.2s ease;
  margin-right: 6px;
}

/* ▶ 再生ボタン */
.btn.play {
  background: #1b5192ff;
}
.btn.play::before {
  content: "▶";
  margin-right: 6px;
  font-size: 13px;
}

/* 🛒 購入ボタン */
.btn.buy {
  background: #af331eff;
}
.btn.buy::before {
  content: "🛒";
  margin-right: 6px;
  font-size: 14px;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* maxなのでスマホのみ */
@media (max-width: 768px) {
    h1 {
        font-size: 1em;
    }

    nav ul {
        float: left;
    }
    #nav li {
        margin: 10px 10px;
    }

    .photos .item {
        flex: 0 1 32%;
    }
        
    .photos .item_doujin {
        flex: 0 1 48%;
    }

    .container2 {
        flex-direction: column;
    }

    .block-left,
    .block-right,
    .block-center {
        width: 100vw;
    }

    /* 閉じるトグル */
    .toggle-container {
        cursor: pointer;
        display: inline-block;
        padding: 10px;
        font-size: 20px;
        border: 1px solid #000;
        border-radius: 5px;
        user-select: none;
    }

    .toggle-content {
        display: none;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid #000;
    }

    /* チェックボックスのスタイルを隠す */
    #toggle {
        display: none;
    }

    /* チェックされた場合に表示 */
    input[type="checkbox"]:checked~.toggle-content {
        display: block;
    }

    /* チェックされた場合のラベルの変化 */
    input[type="checkbox"]:checked+.toggle-container::before {
        content: "閉じる▲";
    }

    /* 初期状態のラベル */
    .toggle-container::before {
        content: "絞り込み検索▼";
        margin-right: 5px;
    }

    .menu li {
        margin-bottom: 10px;
        /* 各リンクの下にスペースを追加 */
    }
    .pic {
grid-template-columns: repeat(1, 1fr); /* 2列 */
    }
    .menu-panel {
        width: 60VW;
    }
}