.main{margin-left: 50px;}

/* ===== ツールタイトルをかっこよく ===== */
.tool-title{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 6px;
  color: #1e293b;
  position: relative;
}

/* 下のアクセントライン */
.tool-title::after{
  content: "";
  display: block;
  width: 700px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #45a7ff,
    #ff5c93
  );
}
.tool-sub{
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #64748b;
  margin: 6px 20px 18px 0;
  text-align: right;
}

.tool-guide-link {
  color: #2563eb;
  font-weight: 600;
}

.tool-guide-link:hover {
  text-decoration: underline;
}
.tool-guide-area {
  margin-top: 25px;
  font-size: 14px;
  text-align: center;
}
/* =================================================
   サイズ選択（チップUI）
================================================= */
.sizes{
  display: flex;        
  flex-wrap: wrap; 
  gap: 15px 15px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.sizes-label{
  margin: 10px;
}

.sizes label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  user-select: none;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.sizes input[type="checkbox"]{
  width: 16px;
  height: 16px;
}

.sizes label:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.sizes label:has(input:checked){
  background: rgba(77,163,255,0.18);
  border-color: rgba(77,163,255,0.45);
  font-weight: 700;
}


/* =================================================
   プレビュー調整
================================================= */
.preview-body{
  justify-content: flex-start;
}

#canvasOriginal{
  width: 280px;
  height: 280px;
}

.preview-grid{
  gap: 12px;
}

.preview-title{
  font-size: 15px;
  letter-spacing: .02em;
}

.hint{color: #f111ae;}

/* =================================================
   アクションボタン（共通 3Dツヤ）
================================================= */
.actions .btn{
  margin-bottom: 30px;
  margin-right: 10px;
  position: relative;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  cursor: pointer;
  overflow: hidden;

  border: 1px solid rgba(0,0,0,0.15);
  box-shadow:
    0 10px 18px rgba(0,0,0,0.18),
    0 2px 0 rgba(0,0,0,0.25);

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

/* 光のベール */
.actions .btn::after{
  content:"";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%,
    rgba(255,255,255,0.20),
    rgba(255,255,255,0) 55%
  );
  pointer-events: none;
}

.actions .btn:hover:not(:disabled){
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0,0,0,0.22),
    0 2px 0 rgba(0,0,0,0.22);
}

.actions .btn:active:not(:disabled){
  transform: translateY(1px);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.18),
    0 1px 0 rgba(0,0,0,0.20);
}

.actions .btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.2);
}


/* =================================================
   アクションボタン（色分け）
================================================= */
/* サイズ別PNG */
#btnDownloadPng{
  background: linear-gradient(to bottom, #45a7ff, #1e6fd6);
  border-color: rgba(30,111,214,0.55);
}

/* ICO */
#btnDownloadIco{
  background: linear-gradient(to bottom, #ff5c93, #d61e5d);
  border-color: rgba(214,30,93,0.55);
}

/* リセット */
#btnReset{
  color: #111;
  background: linear-gradient(to bottom, #f7f7fb, #d9d9e6);
  border-color: rgba(0,0,0,0.18);
  box-shadow:
    0 10px 18px rgba(0,0,0,0.14),
    0 2px 0 rgba(0,0,0,0.18);
}


/* =================================================
   ファイル選択ボタン（3Dツヤ）
================================================= */
.file-picker{
  align-items: center;
}

.file-picker input[type="file"]{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-label{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  cursor: pointer;
  user-select: none;
  overflow: hidden;

  background: linear-gradient(to bottom, #45a7ff, #1e6fd6);
  border: 1px solid rgba(30,111,214,0.55);

  box-shadow:
    0 10px 18px rgba(0,0,0,0.18),
    0 2px 0 rgba(0,0,0,0.25);

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.file-label:hover{
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0,0,0,0.22),
    0 2px 0 rgba(0,0,0,0.22);
}

.file-label:active{
  transform: translateY(1px);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.18),
    0 1px 0 rgba(0,0,0,0.20);
}

.file-picker:has(input[type="file"]:valid) .file-label{
  background: linear-gradient(to bottom, #6ddf9e, #2fa46f);
  border-color: rgba(47,164,111,0.55);
}

@media (max-width: 800px){
.tool-sub{font-size: 10px;}
.tool-title{font-size: 18px;}
.main{margin-left: 2px;}
.hint{font-size: 15px;}
.tool-title::after{
  width: auto;}

}
