:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.1);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

  --accent: #8ab4ff;
  --accent2: #7ee0c3;

  --radius: 16px;
  --max: 1060px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
  position: relative;
  min-height: 100vh;
}

/* ★背景が途中で色が変わる対策：固定の背景レイヤー */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      1200px 600px at 20% 0%,
      rgba(138, 180, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 80% 20%,
      rgba(126, 224, 195, 0.14),
      transparent 60%
    ),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-title {
  font-size: 16px;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex: 0 0 auto;
}
.site-title a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-title a::before {
  content: "IP";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(138, 180, 255, 0.35),
    rgba(126, 224, 195, 0.22)
  );
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 900;
  letter-spacing: 0.6px;
}

/* ★サービスが増えても崩れにくいナビ：PCは折返し、スマホは横スクロール */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  white-space: nowrap;
}
.site-nav a[aria-current="page"] {
  background: rgba(138, 180, 255, 0.14);
  border-color: rgba(138, 180, 255, 0.25);
}
.site-nav a:hover {
  background: var(--panel);
  border-color: var(--line);
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .site-nav::-webkit-scrollbar {
    height: 8px;
  }
  .site-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
  }
}

/* ====== Page header ====== */
.header {
  padding: 22px 0 12px;
}
.header h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.2;
}
.header .seo {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.lead {
  margin: 0;
  color: var(--text);
}
.lead strong {
  color: var(--accent2);
}

/* ====== Card ====== */
.card {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* PDFページが使っている card_pdf を card と同等にする */
.card_pdf {
  margin-top: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* ====== Uploader (トップページ) ====== */
.uploader {
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 16px;
  transition: 0.15s ease;
}
.uploader.dragover {
  border-color: rgba(126, 224, 195, 0.65);
  box-shadow: 0 0 0 3px rgba(126, 224, 195, 0.18);
}
.uploader-title {
  font-weight: 800;
  margin: 0 0 6px;
}
.uploader-desc {
  margin: 0 0 12px;
  color: var(--muted);
}
#file-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.file-info {
  margin: 12px 0 0;
  color: var(--muted);
  word-break: break-word;
}

/* ====== Options ====== */
.options {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.options h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.format-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}
.format-options label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.note {
  margin: 0;
  color: var(--muted);
}

/* ====== Buttons ====== */
.actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(138, 180, 255, 0.35),
    rgba(126, 224, 195, 0.2)
  );
  border-color: rgba(138, 180, 255, 0.35);
}
.btn.accent {
  background: linear-gradient(
    135deg,
    rgba(126, 224, 195, 0.28),
    rgba(138, 180, 255, 0.2)
  );
  border-color: rgba(126, 224, 195, 0.28);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

/* PDFページが使っている button.primary / button.secondary も整える */
button.primary,
button.secondary {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}
button.primary {
  background: linear-gradient(
    135deg,
    rgba(138, 180, 255, 0.35),
    rgba(126, 224, 195, 0.2)
  );
  border-color: rgba(138, 180, 255, 0.35);
}
button.secondary {
  background: rgba(255, 255, 255, 0.06);
}
button.primary:disabled,
button.secondary:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ====== Status ====== */
.status {
  color: var(--muted);
  font-weight: 700;
}
.status.error {
  color: #ff9aa3;
}
.status-text {
  color: var(--muted);
  font-weight: 700;
}

/* ====== Content blocks (説明カード類) ====== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 860px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.content-card {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.content-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.content-card h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}
.list {
  margin: 0 0 12px;
  padding-left: 18px;
}
.list li {
  margin-bottom: 8px;
}
.hr {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  text-align: left;
  color: var(--muted);
  width: 180px;
}
.table tr:last-child td,
.table tr:last-child th {
  border-bottom: none;
}

details.faq {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 900;
}
details.faq p {
  margin: 10px 0 0;
  color: var(--text);
}

/* =========================================================
   ★PDF/HEICページの dropzone / tool-card を見えるようにする
   ========================================================= */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.tool-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.tool-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: 0.15s ease;
  cursor: pointer;
}
.dropzone .main {
  display: block;
  font-weight: 900;
  margin-bottom: 4px;
}
.dropzone .sub {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.dropzone.dragover {
  border-color: rgba(126, 224, 195, 0.65);
  box-shadow: 0 0 0 3px rgba(126, 224, 195, 0.18);
}

.file-input {
  display: none;
}

.format-select {
  margin-top: 12px;
  color: var(--text);
  font-weight: 800;
}
.format-select select {
  margin-left: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.file-list {
  margin-top: 12px;
  color: var(--muted);
}
.file-list ul {
  margin: 0;
  padding-left: 18px;
}
.file-list li {
  margin-bottom: 6px;
}

.action-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* HEICページ用 */
.main {
  margin-top: 14px;
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.form-label {
  color: var(--muted);
  font-weight: 900;
}
.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-group label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.file-list-wrapper {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.file-list-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.file-list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

/* ====== Footer ====== */
.footer {
  margin-top: 18px;
  padding: 14px 0 6px;
  color: var(--muted);
}
.footer-nav {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-nav a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  text-decoration: none;
}

/* =========================
   Compress page additions
   ========================= */

.compare-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.compare-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.compare-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.compare-label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.compare-value {
  font-size: 16px;
  font-weight: 700;
}

.quality-row {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.quality-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.quality-desc {
  font-size: 13px;
  opacity: 0.9;
}

.quality-right {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.quality-right input[type="range"] {
  width: 100%;
}

.quality-value {
  min-width: 44px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.content-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.content-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.content-card h2 {
  margin-top: 0;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 820px) {
  .compare-row {
    grid-template-columns: 1fr;
  }
  .quality-row {
    grid-template-columns: 1fr;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Resize page additions
   ========================= */
.form-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  outline: none;
}

.checkline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.radio-group {
  display: grid;
  gap: 6px;
}

.preset-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.preset-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 820px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .preset-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Global Nav (mobile friendly)
   - PC: inline
   - Mobile: horizontal scroll (no wrap)
   ========================= */

/* ナビが狭い時に折り返して崩れるのを防ぐ */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* PCは折り返しOK（ヘッダー内で詰まるのを防ぐ） */
}

/* モバイル：1行固定＋横スクロール */
@media (max-width: 820px) {
  .header-inner {
    gap: 10px;
  }

  .site-nav {
    flex-wrap: nowrap; /* 1行固定 */
    overflow-x: auto; /* 横スクロール */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin: 0 -6px; /* 端まで使う（好みで） */
    padding-left: 6px;
    padding-right: 6px;
  }

  /* スクロールバーを目立たなくする（対応ブラウザのみ） */
  .site-nav::-webkit-scrollbar {
    height: 6px;
  }
  .site-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
  }

  /* ナビ項目が小さすぎないように */
  .site-nav a {
    white-space: nowrap; /* 改行しない */
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 999px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

cd /var/www/image-pix

cat >> public_html/style.css <<'CSS'

/* =========================
   FIX: mobile overflow (nav/header)
   ========================= */
html, body {
  max-width: 100%;
  overflow-x: hidden; /* ページ全体の横はみ出しを強制停止 */
}

.site-header,
.header-inner,
.site-nav {
  max-width: 100%;
  box-sizing: border-box;
}

/* 子要素が横に押し広げるのを防ぐ */
.header-inner > * {
  min-width: 0;
}

/* モバイル：ナビをはみ出さずに横スクロールさせる */
@media (max-width: 820px) {
  .site-nav {
    width: 100%;
    margin: 0 !important; /* ← 以前の「負のmargin」を殺す */
    padding: 0 6px 6px !important;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
  }

  .site-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

/* ====== Table (generic) ====== */
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.table-wrap th,
.table-wrap td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-wrap th {
  text-align: left;
  color: var(--muted);
  width: 180px;
}

.table-wrap tr:last-child th,
.table-wrap tr:last-child td {
  border-bottom: none;
}
