@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/material-symbols-outlined.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --ink: #333;
  --muted: #666;
  --line: #ced4da;
  --paper: #f5f5f5;
  --panel: #f5f5f5;
  --field: #fff;
  --accent: #9ed636;
  --accent-dark: #4c6b17;
  --accent-soft: #e7f2d0;
  --brown: #231815;
  --bad: #b83232;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}
.icon { flex: 0 0 auto; }
h1, p { margin-top: 0; }
p { color: var(--muted); line-height: 1.7; }
.login-shell, .download-page, .narrow, .intro-page { flex: 1 0 auto; min-height: 0; display: grid; place-items: center; padding: 90px 24px; }
.login-panel, .panel { width: min(560px, 100%); padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.brand { margin-bottom: 26px; }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-mark img { display: block; width: 230px; height: auto; }
.brand-mark span { color: var(--accent-dark); font-size: 15px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; background: var(--field); color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; }
.icon-only { width: 46px; min-width: 46px; padding: 0; }
.icon-only .icon { font-size: 23px; }
.button.primary, button.primary { background: var(--accent); color: var(--brown); border-color: var(--accent); font-weight: 700; }
.button.primary:hover, button.primary:hover { background: var(--field); color: var(--accent-dark); }
.download-actions { margin: 18px 0 4px; display: flex; justify-content: flex-end; }
input[type="password"] { height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: var(--field); color: var(--ink); }
.password-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.error { color: var(--bad); }
.notice { padding: 10px 12px; border: 1px solid #ead6a4; border-radius: 6px; background: #fff7df; color: #6b4a12; }
.file-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.file-list li { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); }
.file-list span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 640px) { .password-form, .file-list li { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; } .brand-mark img { width: 200px; } }

/* dl トップ（サイト案内） */
.intro { width: min(680px, 100%); }
.intro .brand { margin-bottom: 54px; }
.intro .brand-mark img { width: 180px; }

.intro-hero h1 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-size: clamp(23px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #231815;
}
.block-icon .icon { font-size: 29px; }
.intro-hero p {
  margin: 0;
  padding-left: 68px;
  font-size: 14.5px;
  line-height: 2.1;
}

.intro-block {
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.intro-block h2 {
  margin: 0 0 16px;
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.intro-lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 2.1;
}

.intro-lead { margin: 0 0 24px; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-question { color: var(--accent-dark); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq-icon { display: inline-flex; color: var(--accent-dark); }
.faq-icon .icon { font-size: 30px; }
.faq-question {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--ink);
}
.faq-mark {
  display: inline-flex;
  justify-content: flex-end;
  color: var(--muted);
  transition: transform 0.18s ease;
}
.faq-mark .icon { font-size: 26px; }
.faq-item[open] .faq-mark { transform: rotate(180deg); }

.faq-answer { padding: 0 28px 24px 54px; }
.faq-answer p { margin: 0; font-size: 13.5px; line-height: 2; color: var(--muted); }
.faq-answer p + p { margin-top: 14px; }
.faq-answer small {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.domain-strip {
  margin: 16px 0 20px !important;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--field);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(14px, 1.9vw, 17px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.domain-strip span { color: var(--muted); }
.domain-strip strong { color: var(--ink); font-weight: 700; }

.check-intro { margin: 0 0 12px !important; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}


.intro-contact {
  margin: 34px 0 0;
  font-size: 13px;
  line-height: 2.05;
}

@media (max-width: 640px) {
  .intro .brand { margin-bottom: 38px; }
  .intro .brand-mark img { width: 152px; }
  .block-icon { width: 42px; height: 42px; }
  .block-icon .icon { font-size: 24px; }
  .intro-hero h1 { gap: 12px; }
  .intro-hero p { padding-left: 0; }
  .intro-block { margin-top: 38px; padding-top: 30px; }
  .faq-item summary { grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 12px; padding: 18px 0; }
  .faq-icon .icon { font-size: 25px; }
  .faq-question { font-size: 15px; }
  .faq-mark .icon { font-size: 22px; }
  .faq-answer { padding: 0 0 20px 42px; }
  .domain-strip { padding: 14px 16px; }
}

/* pwmake.com と同じサイトフッター */
:root { --footer-bg: #a9955b; --footer-fg: #231815; }
.site-footer {
  position: relative;
  flex: 0 0 auto;
  text-align: center;
  font-size: 0.75em;
  padding: 1.8em 1em 1.2em;
  background: var(--footer-bg);
  color: var(--footer-fg);
  border-top: 4px #231815 solid;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logo {
  position: absolute;
  left: clamp(12px, 3vw, 24px);
  top: 0;
  transform: translate(0, -100%);
  width: 90px;
  height: auto;
  display: block;
  margin: 0;
  pointer-events: auto;
  cursor: pointer;
}
.footer-logo img { display: block; width: 100%; height: auto; }
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(1.2em + env(safe-area-inset-bottom)); }
}
@media (max-width: 768px) {
  .footer-logo { left: 29px; width: 60px; }
  .login-shell, .download-page, .narrow, .intro-page { padding: 70px 20px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #ddd;
    --muted: #aaa;
    --line: #666;
    --paper: #333;
    --panel: #333;
    --field: #222;
    --accent: #9ed636;
    --accent-dark: #c4e08a;
    --accent-soft: #2b361c;
    --brown: #f5f5f5;
    --bad: #ff8a8a;
    --footer-bg: #7a6a3a;
    --footer-fg: #ccc;
  }
  body { background: var(--paper); }
  .site-footer { background: var(--footer-bg); color: var(--footer-fg); }
  .intro-block { border-color: #4a4a4a; }
  .faq, .faq-item { border-color: #4a4a4a; }
  .domain-strip { background: var(--field); border-color: var(--line); border-left-color: var(--accent); }
  .button, button, input[type="password"], .file-list li {
    background: var(--field);
    color: var(--ink);
  }
  .button.primary, button.primary {
    color: #333;
  }
  .notice {
    background: #352811;
    border-color: #6b5524;
    color: #f2d783;
  }
  .brand-mark img {
    filter: brightness(0) invert(1);
  }
}
