/* OJapp/style.css ver.1.1.2 最新 */
/* =========================================
   Theme Variables（色だけを集中管理）
========================================= */
:root {
  --bg: #ffffff;
  --text: #222;
  --header-border: #eee;

  --section-bg: #ffffff;
  --section-shadow: rgba(0, 0, 0, .05);

  --input-bg: #ffffff;
  --input-border: #ddd;

  --icon-bg: #f5f5f5;

  --assistant-bg: #ffffff;
  --assistant-border: #2bb7ff;
}

/* ===== Dark Mode ===== */
.dark {
  --bg: #111;
  --text: #eaeaea;
  --header-border: #444;

  --section-bg: #1a1a1a;
  --section-shadow: rgba(0, 0, 0, .4);

  --input-bg: #222;
  --input-border: #555;

  --icon-bg: #2a2a2a;

  --assistant-bg: #111;
  --assistant-border: #67c8ff;
}


/* =========================================
   Base
========================================= */
html, body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Helvetica","Arial","YuGothic",sans-serif;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.center {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--text);
  font-weight: bold;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--header-border);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  position: relative;
  top: 1px;
}

.switch {
  font-size: 24px;
  cursor: pointer;
}


/* =========================================
   Layout
========================================= */
.main {
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  padding-top: 16px;
}

h2 { margin-bottom: 16px; }

/* カード */
.section {
    background: var(--section-bg);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 18px;
     box-shadow:inset 0 0 12px var(--section-shadow);
}
.label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

/* 入力欄 */
input[type="file"], input[type="text"], select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #e0e3eb;
    background: var(--section-bg);
   color: var(--text);
    font-size: 16px;
}
input[type="text"]:focus, select:focus {
    border-color: #5c8aff;
}
input[type="range"] {
    width: 100%;
    margin-top: 10px;
  overflow: hidden;
  -webkit-appearance: none;
}
/* Canvas（ぼやけゼロ） */
#canvas {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    background: #ddd;
}

/* ボタン */
button {
    width: 100%;
    padding: 14px;
    background: #5c8aff;
    color: var(--section-bg);
    border: none;
    font-size: 17px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 10px;
}
button:hover { background:#4a76e6; }
/* =========================================
   Breadcrumb（パンくず）
========================================= */
.breadcrumb {
  font-size: 14px;
  margin: 6px 0 14px;
  color: var(--text);
  opacity: 0.7;
  text-align: left;
  max-width:500px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb a {
  color: var(--assistant-border);
  font-weight: bold;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}
#btnAddC {
    width: auto;
   font-size: 11px;
    padding: 5px 5px;
    background: #e5e8f4;
    color: #333;
    border-radius: 8px;
    border: 1px solid #d2d6e4;
    cursor: pointer;
}
#btnAddC:hover {
    background: #d4d7e5;
}
.section {
  overflow: hidden;
}
*::before, *::after {
   background: red !important;
}
/* ====== OJapp Slider ====== */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 90%;
  height: 6px;
  border-radius: 4px;
  background: #d4d8e2;  /* 薄いグレーのレール */
  outline: none;
}

/* レール（track） */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: #d4d8e2;
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 4px;
  background: #d4d8e2;
}

/* つまみ（thumb） */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5c8aff; /* OJapp青 */
  cursor: pointer;
  margin-top: -6px; /* つまみ位置調整 */
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #5c8aff;
  cursor: pointer;
}
