* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  background-color: #c0c0c0;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 16px;
  background:#fafafa;
}

.header {
  position: sticky;
  top: 0;
  background: #c0c0c0;
  border-bottom: 1px solid #ddd;
  z-index: 10;
}

.header .container {
  padding-bottom: 16px;
}

h1 {
  margin: 0 0 8px;
  font-size: 20px;
}

h2.aaa{
	font-size:16px;
	}

input[type="search"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* カテゴリ */

.category {
  margin-top: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.category summary {
  padding: 12px;
  background: #f5f5f5;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

a {
	color:#222222;
	font-weight:bold;
}

.count {
  font-size: 12px;
  color: #666;
}

/* アイテム */

.category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category li {
  border-top: 1px solid #eee;
}

.category a {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: #000;
}

.category a:hover {
  background: #f0f0f0;
}

.row-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.title {
  font-size: 15px;
}

.date {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.row-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #777;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* PC */

@media (min-width: 768px) {
  h1 {
    font-size: 22px;
  }
}

/* モチーフフィルタ：折りたたみ */
.motif-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.motif-filter.expanded {
  max-height: none;
}

.motif-chip {
  padding: 3px 6px;
  font-size: 10.5px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
  user-select: none;
}

.motif-chip.active {
  background: #333;
  color: #fff;
  border-color: #333;
}


/* 「もっと見る」ボタン */
.motif-toggle {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f7f7f7;
  font-size: 14px;
  min-height: 44px;
  cursor: pointer;
}

/* 押下時の軽いフィードバック */
.motif-toggle:active {
  transform: translateY(1px);
}

.motif-toggle::after {
  content: " ▾";
}
.motif-toggle.expanded::after {
  content: " ▴";
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: transparent; /* ← 透明 */
  z-index: 100;
}

.footer-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 5px;
  background: #fafafa; /* ← 展示室と同色 */
  display: flex;
  justify-content: center;
}

#affiliate-footer {
		background-color:#ffffff;
		transition: opacity 0.3s ease, visibility 0.3s ease;
}

button.sa {
 	padding: 10px 20px;
  	font-size: 16px;
  	background-color: #303030;
  	color: white;
  	border: none;
  	border-radius: 5px;
  	text-align:center;
  	cursor: pointer;
		}

button:hover.sa {
  			background-color: #0056b3;
  			}
  			
.asu{
	width:700px;
	max-width: 100%;
	padding: 10px 15px; /*ボックスを大きくする*/
	font-size: 16px;
	border-radius: 3px; /*ボックス角の丸み*/
	border: 2px solid #ddd; /*枠線*/
	box-sizing: border-box; /*横幅の解釈をpadding, borderまでとする*/
	}
	
#attachmentInput::file-selector-button {
 	padding: 7px 15px;
 	margin:5px;
  	font-size: 16px;
  	background-color: #303030;
  	color: white;
  	border: none;
  	border-radius: 5px;
  	text-align:center;
  	cursor: pointer;
}
.asu2{
	border:0px;
	padding: 10px 20px;
	font-size:16px;
	}
 
form.bbb{
 	text-indent:  0em;
	padding-left: 2em;

 	}