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

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

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

  --cell-bg: #fafafa;
  --cell-shadow: rgba(0,0,0,.12);

  --btn-text: #ff66cc;
}

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

  --section-bg: #1b1b1b;
  --section-shadow: rgba(0,0,0,.5);

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

  --cell-bg: #2a2a2a;
  --cell-shadow: rgba(0,0,0,.6);

  --btn-text: #ff99dd;
}

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

* {
  box-sizing: border-box;
}

/* =========================================
   Header
========================================= */
.header {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--header-border);
  background: var(--section-bg);
}

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

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

.logo-text {
  font-size: 22px;
  font-weight: bold;
}

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

/* =========================================
   Layout
========================================= */
.main {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

/* =========================================
   Title
========================================= */
h2 {
  margin-top: 24px;
  font-weight: 600;
  font-size: 20px;
  color: #ff66cc;
}

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

.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;
}

/* =========================================
   Image Grid
========================================= */
#result {
  display: grid;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.split-cell {
  background: var(--cell-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 10px var(--cell-shadow);
}

.split-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   Inputs
========================================= */
input[type=file] {
  display: block;
  margin: 10px auto;
}

.split-control {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.split-control input {
  width: 60px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  text-align: center;
  font-size: 16px;
}

.split-control input:focus {
  border-color: #67c8ff;
}

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

.dark .guide-link {
  color: #67c8ff;
}
/* =========================================
   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;
}
