@charset "utf-8";

/* =========================================================
   TACImageViewer.css
   TACImageViewer v1.2 説明ページ用
   ========================================================= */

:root {
  --text: #222;
  --muted: #666;
  --line: #d7d7d7;
  --panel: #fff;
  --soft: #f5f7f7;
  --accent: #006666;
  --accent-light: #e8f4f2;
  --link: #075e9b;
  --notice-bg: #fff8dc;
  --notice-line: #d6b75b;
  --warning-bg: #fff0f0;
  --warning-line: #d75b5b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #f4f4f1;
  font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Yu Gothic UI", "Yu Gothic", Meiryo, Osaka,
        "Hiragino Kaku Gothic ProN", sans-serif;
}

a {
  color: var(--link);
}

a:hover {
  color: #b45c00;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------
   固定ヘッダー
   --------------------------------------------------------- */

.inner {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 90px;
  background: #fff;
  background: linear-gradient(#fff 60%, #ededed);
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.14);
}

.design {
  line-height: 90px;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow:
    1px 1px 1px #555,
   -1px 1px 1px #555,
    1px -1px 1px #555,
   -1px -1px 1px #555,
    5px 5px #9ccc65;
}

#home {
  position: absolute;
  right: 100px;
  bottom: 5px;
  margin: 0;
  padding: 0;
}

#home a {
  display: block;
  width: 90px;
  line-height: 22px;
  color: #fff;
  background: #333;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.3s ease;
}

#home a:hover,
#home a:focus-visible {
  color: #fff;
  background: #c2a951;
}

/* ---------------------------------------------------------
   本文
   --------------------------------------------------------- */

main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 125px 0 70px;
}

section {
  margin: 0 0 56px;
  scroll-margin-top: 110px;
}

.intro {
  padding: 28px 32px 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0 0 18px;
  color: #234;
  font-size: 30px;
  line-height: 1.45;
  text-align: center;
}

h2 {
  margin: 0 0 22px;
  padding: 0 0 8px;
  color: var(--accent);
  font-size: 23px;
  line-height: 1.5;
  border-bottom: 2px solid #b8cdca;
}

h3 {
  margin: 30px 0 10px;
  color: #344;
  font-size: 18px;
}

p {
  margin: 0.8em 0;
}

.lead {
  margin: 0 auto 20px;
  max-width: 880px;
  font-size: 17px;
  line-height: 1.9;
}

.small {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

ul,
ol {
  margin: 12px 0 18px 1.5em;
  padding-left: 1em;
}

li {
  margin: 4px 0;
}

/* ---------------------------------------------------------
   目次
   --------------------------------------------------------- */

.toc {
  margin: 0 0 56px;
  padding: 18px 22px 20px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-left: 6px solid #83b7ad;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  line-height: 1.9;
}

.toc b {
  display: block;
  margin-bottom: 5px;
  color: #244;
  font-size: 18px;
}

.toc a {
  display: inline-block;
  margin: 2px 15px 2px 0;
  text-decoration: none;
  white-space: nowrap;
}

.toc a::before {
  content: "›";
  margin-right: 5px;
  color: #6a9a91;
}

.toc a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   注意・警告
   --------------------------------------------------------- */

.notice,
.warning {
  margin: 18px 0;
  padding: 14px 18px;
  border-radius: 7px;
}

.notice {
  background: var(--notice-bg);
  border-left: 5px solid var(--notice-line);
}

.warning {
  background: var(--warning-bg);
  border-left: 5px solid var(--warning-line);
}

/* ---------------------------------------------------------
   ダウンロード
   --------------------------------------------------------- */

.download {
  margin: 26px 0 12px;
  text-align: center;
}

.download a {
  display: inline-block;
  padding: 12px 26px;
  color: #fff;
  background: #286b63;
  border: 1px solid #1f554f;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.download a:hover,
.download a:focus-visible {
  color: #fff;
  background: #1f5751;
  transform: translateY(-1px);
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.18);
}

/* ---------------------------------------------------------
   表
   --------------------------------------------------------- */

table {
  width: 92%;
  margin: 22px auto 28px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 1px 9px rgba(0, 0, 0, 0.12);
}

th,
td {
  padding: 9px 12px;
  border: 1px solid #ccc;
  vertical-align: top;
  text-align: left;
}

th {
  color: #244;
  background: #eaf1ef;
  font-weight: 700;
}

td:first-child {
  white-space: nowrap;
}

/* ---------------------------------------------------------
   コード・設定例
   --------------------------------------------------------- */

code {
  padding: 0.08em 0.35em;
  background: #eef0f1;
  border-radius: 3px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94em;
}

pre {
  overflow-x: auto;
  margin: 14px 0 22px;
  padding: 14px 16px;
  color: #222;
  background: #f3f4f5;
  border: 1px solid #d2d5d7;
  border-left: 4px solid #78909c;
  border-radius: 5px;
  font: 14px/1.65 Consolas, "Courier New", monospace;
  white-space: pre;
}

pre code {
  padding: 0;
  background: transparent;
}

details {
  margin: 14px 0 20px;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
}

summary {
  cursor: pointer;
  color: #234;
  font-weight: 700;
}

details[open] summary {
  margin-bottom: 10px;
}

/* ---------------------------------------------------------
   トップへ戻るボタン
   円がフェードインし、矢印が下から中央へ出る
   --------------------------------------------------------- */

.pagetop {
  position: fixed;
  right: 28px;
  bottom: 20px;
  z-index: 9999;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);

  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 300ms ease,
    transform 300ms cubic-bezier(.2, .9, .3, 1),
    box-shadow 250ms ease;
  pointer-events: none;
}

.pagetop.show {
  opacity: 1;
  transform: translateY(-2px) scale(1);
  pointer-events: auto;
}

.pagetop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 24px;
  background: #3a3a3a;
  clip-path: polygon(
    50% 0%,
    0% 40%,
    35% 40%,
    35% 100%,
    65% 100%,
    65% 40%,
    100% 40%
  );

  transform: translate(-50%, 20px);
  opacity: 0;
  transition:
    transform 380ms cubic-bezier(.25, .85, .35, 1.2),
    opacity 250ms ease-out;
}

.pagetop.show::before {
  transform: translate(-50%, -12px);
  opacity: 1;
}

.pagetop:hover,
.pagetop:focus {
  outline: none;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.pagetop:focus-visible {
  box-shadow: 0 0 0 5px rgba(0, 123, 255, 0.14);
}

/* ---------------------------------------------------------
   レスポンシブ
   --------------------------------------------------------- */

@media (max-width: 760px) {
  .inner {
    height: 78px;
  }

  .design {
    line-height: 58px;
    font-size: 26px;
  }

  #home {
    right: 12px;
    bottom: 5px;
  }

  #home a {
    width: 78px;
    font-size: 13px;
  }

  main {
    width: min(100% - 24px, 1040px);
    padding-top: 100px;
  }

  section {
    margin-bottom: 42px;
    scroll-margin-top: 92px;
  }

  .intro {
    padding: 22px 18px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 21px;
  }

  .toc a {
    margin-right: 10px;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  th,
  td {
    min-width: 120px;
  }

  .pagetop {
    right: 16px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .design {
    padding-left: 12px;
    text-align: left;
    font-size: 22px;
    text-shadow:
      1px 1px 1px #555,
     -1px 1px 1px #555,
      1px -1px 1px #555,
     -1px -1px 1px #555,
      3px 3px #9ccc65;
  }

  h1 {
    font-size: 21px;
    text-align: left;
  }

  .lead {
    font-size: 16px;
  }

  #home {
    right: 8px;
  }

  #home a {
    width: 72px;
  }
}

@media print {
  .inner,
  .pagetop,
  #home {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
    padding: 0;
  }

  section {
    break-inside: avoid;
  }
}
