body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    margin: 5px auto;
    background-color: #f5f5f5;
    background-image: url('./common/bg-Arches2.png');
    background-repeat: repeat;
}

.site-title {
	margin-top: 80px;
	margin-bottom: 0;
    color: #4A0E2C;
    font-size: 40px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 6px rgba(200, 150, 255, 0.7);
}
.site-title img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
	margin-top: 80px;
	margin-bottom: 0;
}
.site-subtitle-1 {
	font-size: 0.9em;
	color: #666;
	margin-top: 0;
	margin-bottom: 80px;
    text-align: center;
}
.site-subtitle-2 {
	font-size: 0.9em;
	color: #666;
	margin-top: 0;
	margin-bottom: 5px;
    text-align: center;
}
.site-subtitle-2 a{
	color: #582050;
	text-decoration: underline dotted;
	text-underline-offset: 3px;
	font-weight: bold;
}
.notice-area{
    background-color: #B08BA8;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #F2EEEE;
    margin: 0 auto 20px;
	box-sizing: border-box;
	width: min(600px, calc(100% - 20px)); /* 左右10pxずつ＝合計20px */
	margin-left: auto;
	margin-right: auto;
}
.notice-area p {
	margin: 0; 
	text-align: left;
}
.notice-area a{
	color: #fff;
	text-decoration: underline dotted;
	text-underline-offset: 3px;
}
.notice-area a:hover{
	opacity: 0.9;
}
.notice-area .sister-sites{
	margin-top: 0px;
	padding-top: 0px;
}

.share-url{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:6px 0 10px;
}
.share-link{
  word-break:break-all;
  cursor:pointer;
  user-select:none;
  padding:2px 3px;
  border-radius:8px;
  border:1px dashed rgba(0,0,0,.25);
}
.share-link:hover{
  background: rgba(0,0,0,.04);
}
.copy-btn{
  padding:2px 3px;
  border:1px solid #ccc;
  border-radius:8px;
  color: #B08BA8;
  background:#F0E6ED;
  cursor:pointer;
}
.copy-btn:active{ transform: translateY(1px); }
.copy-status{ font-size:12px; opacity:.8; }
.copy-flash{
  animation: copyFlash 0.6s ease;
}
@keyframes copyFlash{
  0%   { background: rgba(255, 210, 220, .9); }
  100% { background: transparent; }
}

.container {
    background: #F2EEEE;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 10px;
}

.sticky-header{
    position: sticky;
    top: 0px;
    z-index: 200;
    background: #F2EEEE;
    padding-top: 0px;
    transition: box-shadow .18s ease, border-bottom-color .18s ease;
}
.sticky-header.is-stuck{
	box-shadow: 0 10px 22px rgba(0,0,0,0.18);
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.tab-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 2px;
    border-bottom: 3px solid #D4B5C8;
    padding-top: 2px;
    padding-bottom: 2px;
}
.tab-container a.tab-button{
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}
.tab-button {
    padding: 3px 3px;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    user-select: none;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.tab-button:hover {
    background-color: #F0E6ED;
    border-color: #B08BA8;
    color: #6B4A5A;
}
.tab-button.active {
    background-color: #B08BA8;
    border-color: #B08BA8;
    color: white;
    transform: translateY(3px);
}
.tab-button.disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.tab-button.disabled:hover {
	background-color: #f0f0f0;
	border-color: #ddd;
	color: #666;
}

.type-title{
	margin: 0 0 5px 0; /* h2のデフォルトmargin対策 */
}

.search-area {
    background-color: #F0E6ED;
    padding: 0px;
    border-radius: 6px;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}
/* 選択色・色番号検索 */
.search-inputs {
    min-width: 125px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    flex: 1;
    min-width: 0;
}
.search-item { display: flex; align-items: center; gap: 2px; }
.search-item label { font-weight: bold; color: #6B4A5A; white-space: nowrap; }
/* 「色番号検索」テキストボックス */
.search-item input[type="text"] {
    padding: 6px 10px; border: 2px solid #B08BA8; border-radius: 4px;
    font-size: 15px; width: 150px;
}
/* 「選択色」テキストボックス */
.search-item textarea#selectedColor{
    flex: 1;
    height: 60px; padding: 6px 10px;
    border: 2px solid #B08BA8; border-radius: 4px;
    font-size: 15px; resize: none;
}
.search-item textarea#selectedColor:focus{
    outline: none; border-color: #8B6A88;
    box-shadow: 0 0 5px rgba(176, 139, 168, 0.3);
}
.search-item input[type="text"]#searchNumber { flex: 1; min-width: 92px; }
.search-item input[type="text"]:focus{
    outline: none; border-color: #8B6A88;
    box-shadow: 0 0 5px rgba(176, 139, 168, 0.3);
}
.search-image img{
    border: 6px solid white;
    box-shadow: 0 0 0 1px #999, 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.content-area {
    min-height: 200px;
    position: relative;
}

.loading { text-align: center; padding: 60px; font-size: 18px; color: #666; }
.loading::after { content: '...'; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes blink {
    0%, 100% {
        box-shadow: 0 0 20px 5px #FFD700, 0 5px 15px rgba(0,0,0,0.3);
        transform: translateY(-5px) scale(1.05);
    }
    50% {
        box-shadow: 0 0 10px 2px #FFA500, 0 2px 8px rgba(0,0,0,0.2);
        transform: translateY(-3px) scale(1.02);
    }
}
.color-cell.highlight { animation: blink 1.0s ease-in-out 3; z-index: 10; }

/* クリック/検索後も残る「選択状態」 */
.color-cell.selected{
	transform: translateY(-4px);
	box-shadow: 0 10px 22px rgba(0,0,0,0.28);
	border-color: #666;
	outline: 2px solid rgba(255, 215, 0, 0.55); /* うっすら枠 */
	z-index: 9;
}
.color-cell.selected:hover{
	transform: translateY(-5px);
	box-shadow: 0 12px 26px rgba(0,0,0,0.32);
}

.type-section {
	margin-bottom: 0px;
	overflow-x: auto;
}
.type-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 5px;
    color: #6B4A5A; background-color: #F0E6ED;
    border-left: 5px solid #B08BA8;
}
.color-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px;
    margin-bottom: 5px;
    table-layout: fixed;
}
td{
    border: 1px solid #ddd;
    text-align: left; vertical-align: top;
    color: #F2EEEE; overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.color-cell{
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.color-cell:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: #666;
}
.cell-content{
	position: relative;
	z-index: 1;
	padding: 1px 2px;
}
.cell-content.is-br{ min-height: 30px; }
.cell-content.is-other{ min-height: 50px; }

.cell-num{
    font-weight: bold; font-size: 13px;
    text-shadow: 1px 1px 0 #231F20, -1px 1px 0 #231F20, 1px -1px 0 #231F20, -1px -1px 0 #231F20;
}
.cell-name{
    word-wrap: break-word; font-size: 13px;
    text-shadow: 1px 1px 0 #231F20, -1px 1px 0 #231F20, 1px -1px 0 #231F20, -1px -1px 0 #231F20;
}
.empty-cell { background-color: #f9f9f9; border: 2px dashed #ddd; }
.no-data {
    text-align: center; padding: 40px; color: #666; font-size: 16px;
    background-color: #f9f9f9; border-radius: 8px;
}
.error {
    background-color: #f8d7da; color: #721c24; padding: 15px; border-radius: 4px;
    border-left: 4px solid #dc3545; margin: 20px 0;
}

/* スマホ表示のときは検索エリアを縦並びにして潰れを防ぐ */
@media (max-width: 490px) {
  .search-area{
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
  }
  .search-inputs{ width: 100%; }
  .search-image{
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .search-image img{
    width: min(240px, 100%);
    height: auto;
  }
  .search-item input[type="text"],
  .search-item textarea#selectedColor{
    width: 100%;
  }
}

/* copied toast の基準は .search-item（textareaの親）にする */
.search-item { position: relative; }
.copy-toast{
	position: absolute;
	top: -18px;
	left: 0;
	background: #333;
	color: #fff;
	font-size: 11px;
	padding: 3px 7px;
	border-radius: 6px;
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition: opacity 0.25s, transform 0.25s;
	z-index: 9999;
}
.copy-toast.show{
	opacity: 1;
	transform: translateY(0);
}

.tooltip-img{
	position: relative;
	display: inline-block;
	cursor: help;
	text-decoration: underline dotted;
	text-underline-offset: 2px;
}
.tooltip-img__popup{
	display: none;
	position: absolute;
	left: 0;
	top: 1.6em;
	z-index: 9999;
	background: #fff;
	border: 1px solid #B08BA8;
	border-radius: 10px;
	padding: 8px;
	box-shadow: 0 10px 24px rgba(0,0,0,0.18);
	white-space: nowrap;
}
.tooltip-img__popup img{
	display: block;
	max-width: 360px;
	height: auto;
}
.tooltip-img:hover .tooltip-img__popup,
.tooltip-img:focus .tooltip-img__popup,
.tooltip-img:focus-within .tooltip-img__popup{
	display: block;
}

/* ===== AdBlock警告モーダル ===== */
.adblock-overlay{
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.75);
	z-index: 99999;
	justify-content: center;
	align-items: center;
}
.adblock-overlay.show{
	display: flex;
}
.adblock-modal{
	background: #fff;
	border-radius: 12px;
	padding: 30px 35px;
	max-width: 420px;
	width: 90%;
	box-shadow: 0 10px 40px rgba(0,0,0,0.4);
	text-align: center;
}
.adblock-modal h6{
	color: #6B4A5A;
	margin: 0 0 15px 0;
	font-size: 22px;
}
.adblock-modal p{
	color: #444;
	line-height: 1.7;
	margin: 0 0 20px 0;
	font-size: 14px;
}
.adblock-modal .btn-close{
	background: #B08BA8;
	color: #fff;
	border: none;
	padding: 12px 30px;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.2s;
}
.adblock-modal .btn-close:hover{
	background: #8B6A88;
}

/* ===== Footer ===== */
.site-footer{
	margin: 18px auto 10px auto;
	padding: 12px 14px;
	font-size: 12px;
	line-height: 1.6;
	color: #6B4A5A;
	text-align: center;
	background: rgba(242,238,238,0.85);
	border: 1px solid #D4B5C8;
	border-radius: 10px;
	box-sizing: border-box;
	width: min(600px, calc(100% - 20px));
	margin-left: auto;
	margin-right: auto;
}
.site-footer .copyright{
	font-weight: 600;
	color: #4A0E2C;
}
.site-footer small{ 
	display: block; 
}
.site-footer a{ 
	color: #4A0E2C;
}

.ad-center-360 {
    width: 360px;
    margin: 0 auto;      /* 画面中央 */
}

