/* 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;
}


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

/* =========================================
   Title
========================================= */
h2 {
  text-align: center;
  margin-top: 24px;
  font-weight: 600;
  font-size: 20px;
  display: block;
  white-space: pre-line;
}


/* =========================================
   Buttons
========================================= */
.btn:disabled {
  opacity: 1 !important;
  filter: none !important;
   color: #ff33cc !important;
   -webkit-text-fill-color: #ff33cc !important;
  box-shadow: 0 6px 0 #d19400 !important;
  background: linear-gradient(#ffd85a, #ffb726) !important;
  cursor: not-allowed;
  pointer-events: none;
}

.btn {
  margin: 25px auto;
  padding: 18px 38px;
  background: linear-gradient(#ffd85a, #ffb726);
  border-radius: 40px;
  font-weight: bold;
  font-size: 20px;
  box-shadow: 0 6px 0 #d19400;
  transition: .2s;
  position: relative;
  cursor: pointer;
  display: inline-block;
  color: var(--assistant-border);
  -webkit-text-fill-color: var(--assistant-border);
}

.btn::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 30%;
  border-radius: 30px;
  background: rgba(255,255,255,.55);
  filter: blur(2px);
}

.btn:hover { transform: scale(1.06); }
.btn:active {
  transform: scale(.97);
  box-shadow: 0 3px 0 #a87500;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.btn.pulse { animation: pulse 2.4s infinite ease-in-out; }


/* =========================================
   Arrow
========================================= */
.arrow {
  font-size: 26px;
  animation: float 1.6s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(8px); }
  100% { transform: translateY(0); }
}


/* =========================================
   Sections
========================================= */
.section {
  width: auto;
  background: var(--section-bg);
  margin: 18px auto;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 0 12px var(--section-shadow);
}

.section-title {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}


/* =========================================
   Inputs
========================================= */
input[type=file],
input[type=text] {
  width: 100%;
  max-width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
  font-size: 16px;
}

input:focus {
  border-color: #66c8ff;
}


/* =========================================
   Icon Preview
========================================= */
.icon-box {
  width: 160px;
  height: 160px;
  background: var(--icon-bg);
  border-radius: 22px;
  margin: 12px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}


/* =========================================
   Guide Link
========================================= */
.guide-link {
  color: #2bb7ff;
  font-weight: bold;
  text-decoration: none;
}


/* =========================================
   Assistant Box
========================================= */
#assistantBox {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--assistant-bg);
  border-radius: 20px;
  border: 2px solid var(--assistant-border);
  padding: 12px 18px;
  box-shadow: 0 0 12px rgba(0,0,0,.1);
  font-size: 15px;
  display: none;
}

/* =========================================
   Breadcrumb（パンくず）
========================================= */
.breadcrumb {
  font-size: 14px;
  margin: 6px 0 16px;
  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;
}
