/* 無料HTML素材ダウンロードサービス（サイトそのものの見た目。配布するテンプレートの CSS は app/templates/css/） */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1b2130;
  --muted: #4d5566;
  --border: #dde1ea;
  --primary: #2346c8;
  --primary-hover: #1a37a3;
  --primary-soft: #e9eefc;
  --download: #0b7a4b;
  --download-hover: #075c38;
  --footer-bg: #151a26;
  --footer-text: #cfd5e2;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(20 30 60 / 6%), 0 10px 28px rgb(20 30 60 / 10%);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.45;
}

code {
  padding: 0.1em 0.35em;
  background: var(--primary-soft);
  font-size: 0.9em;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, 48rem);
}

/* 語の途中で折り返さない（見出しを意味の切れ目で折り返す） */
.nowrap {
  display: inline-block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-200%);
}

.skip-link:focus {
  color: #ffffff;
  transform: none;
}

/* ------------------------------------------------------------
   ボタン
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.875rem;
  padding: 0.625rem 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

.btn--download {
  background: var(--download);
  color: #ffffff;
}

.btn--download:hover {
  background: var(--download-hover);
  color: #ffffff;
}

.btn--outline {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.btn--small {
  min-height: 2.25rem;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
}

.btn--large {
  min-height: 3.25rem;
  padding-inline: 2rem;
  font-size: 1.0625rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn__note {
  font-size: 0.875rem;
  font-weight: 400;
}

/* ------------------------------------------------------------
   ヘッダー・パンくずリスト
   ------------------------------------------------------------ */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__sub {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.header-nav ul {
  display: flex;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav a {
  display: block;
  padding: 0.375rem 0;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 899px) {
  .header-nav {
    width: 100%;
  }

  .header-nav ul {
    flex-wrap: wrap;
    gap: 0 1.25rem;
  }

  .header-nav a {
    font-size: 0.875rem;
  }
}

.crumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin-block: 0;
  padding-block: 0.5rem;
  padding-inline: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  list-style: none;
}

.crumbs li + li::before {
  margin-right: 0.5rem;
  content: "\203A";
  content: "\203A" / "";
}

/* ------------------------------------------------------------
   トップの見出し
   ------------------------------------------------------------ */
.hero {
  overflow: hidden;
  background: var(--primary-soft);
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding-block: 3rem 3.5rem;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
    padding-block: 4.5rem 5rem;
  }
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.125rem 0.875rem;
  background: var(--surface);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.hero__points li {
  padding: 0.25rem 0.875rem;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero__points strong {
  margin-right: 0.125rem;
  color: var(--primary);
  font-size: 1.125rem;
}

.hero__actions {
  margin: 0;
}

.hero__visual {
  position: relative;
  display: none;
  aspect-ratio: 5 / 4;
}

@media (min-width: 900px) {
  .hero__visual {
    display: block;
  }
}

.hero__shot {
  position: absolute;
  width: 70%;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero__shot--1 {
  top: 0;
  left: 0;
}

.hero__shot--2 {
  top: 24%;
  right: 0;
}

.hero__shot--3 {
  bottom: 0;
  left: 12%;
}

/* ------------------------------------------------------------
   区切り・見出し
   ------------------------------------------------------------ */
.section {
  padding-block: 3.5rem;
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.section__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.section__head .section__title {
  margin: 0;
}

.section__title--spaced {
  margin-top: 3rem;
}

.page-head {
  padding-block: 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-head--compact {
  padding-block: 2rem;
}

.page-head__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.page-head__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
}

.page-head__lead {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.375rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  position: absolute;
  top: 0.45em;
  left: 0.25rem;
  width: 0.75rem;
  height: 0.4rem;
  border-bottom: 3px solid var(--download);
  border-left: 3px solid var(--download);
  transform: rotate(-45deg);
  content: "";
}

/* ------------------------------------------------------------
   絞り込み
   ------------------------------------------------------------ */
.catalog__count {
  margin: 0;
  color: var(--muted);
}

.catalog__count strong {
  margin-right: 0.125rem;
  color: var(--text);
  font-size: 1.375rem;
}

.catalog__empty {
  padding: 2rem;
  background: var(--surface);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.filter {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter__legend {
  float: left;
  min-width: 5.5em;
  padding: 0;
  font-weight: 700;
}

.filter__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
}

.chip span {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.chip span:hover {
  border-color: var(--primary);
}

.chip input:checked + span {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.filter__submit {
  margin: 0;
}

.js .filter__submit {
  display: none;
}

/* ------------------------------------------------------------
   デザインの一覧
   ------------------------------------------------------------ */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.design-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s;
}

.design-card[hidden] {
  display: none;
}

.design-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.design-card:focus-within {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.design-card__media {
  aspect-ratio: 16 / 10;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
}

.design-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.design-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.25rem;
}

.design-card__title {
  margin: 0;
  font-size: 1.0625rem;
}

.design-card__title a {
  color: var(--text);
  text-decoration: none;
}

.design-card__title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.design-card:hover .design-card__title a {
  color: var(--primary);
  text-decoration: underline;
}

.design-card__pages {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.design-card__actions {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding-top: 0.75rem;
}

/* ------------------------------------------------------------
   使い方・よくある質問
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.step__number {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 800;
  border-radius: 50%;
}

.step__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.step p {
  margin: 0;
}

.faq details {
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
}

/* ------------------------------------------------------------
   ほかの条件から探す
   ------------------------------------------------------------ */
.facet-links {
  display: grid;
  gap: 1.5rem;
}

.facet-links__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-link {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.chip-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.chip-link[aria-current="page"] {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ------------------------------------------------------------
   デザインの詳細
   ------------------------------------------------------------ */
.design {
  display: grid;
  align-items: start;
  gap: 2rem;
  padding-block: 2.5rem;
}

@media (min-width: 960px) {
  .design {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }
}

.design__media {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.shot--pc {
  flex: 1 1 auto;
  min-width: 0;
}

.shot--sp {
  flex: 0 0 22%;
  min-width: 7rem;
}

.shot--sp img {
  border-radius: 16px;
}

.get-box {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.get-box__buttons {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.get-box__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.spec {
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
}

.spec caption {
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: left;
}

.spec th,
.spec td {
  padding: 0.625rem 1rem;
  text-align: left;
  vertical-align: top;
}

.spec tr + tr th,
.spec tr + tr td {
  border-top: 1px solid var(--border);
}

.spec th {
  width: 8.5em;
  white-space: nowrap;
  background: var(--bg);
  color: var(--muted);
  font-weight: 700;
}

.design-detail {
  display: grid;
  gap: 2rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 960px) {
  .design-detail {
    grid-template-columns: 1fr 1fr;
  }
}

.design-detail__block {
  min-width: 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.design-detail__block--wide {
  grid-column: 1 / -1;
}

.design-detail__title {
  margin: 0 0 1rem;
  font-size: 1.375rem;
}

.design-detail__block h3 {
  margin: 1.25rem 0 0.25rem;
  font-size: 1.0625rem;
}

.design-detail__block p {
  margin: 0;
}

.design-detail__block .check-list + .design-detail__title {
  margin-top: 2rem;
}

.tree {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--footer-bg);
  color: #e8ecf5;
  font-size: 0.875rem;
  line-height: 1.7;
  border-radius: 8px;
}

.tree code {
  padding: 0;
  background: none;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "BIZ UDGothic", monospace;
}

.usage {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.5rem;
}

/* ------------------------------------------------------------
   文章のページ（ご利用について・プライバシーポリシー）
   ------------------------------------------------------------ */
.prose {
  padding-block: 2rem 4rem;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.375rem;
  font-size: 1.375rem;
  border-bottom: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose__date {
  color: var(--muted);
  text-align: right;
}

/* ------------------------------------------------------------
   フッター
   ------------------------------------------------------------ */
.footer {
  padding-block: 3rem 1.5rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.9375rem;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: 18rem 1fr;
  }
}

.footer__name {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-weight: 700;
}

.footer__text {
  margin: 0;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem;
}

.footer__heading {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 0.875rem;
}

.footer__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__copy {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #333b4d;
}

/* ------------------------------------------------------------
   デモの表示
   ------------------------------------------------------------ */
.preview-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: #dfe3ec;
}

.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0.5rem 1rem;
  background: var(--footer-bg);
  color: #ffffff;
}

.preview-bar a {
  color: #ffffff;
}

.preview-bar a:hover {
  color: #ffffff;
}

.preview-bar__back {
  font-size: 0.875rem;
  text-decoration: none;
}

.preview-bar__back::before {
  margin-right: 0.25em;
  content: "\2190";
  content: "\2190" / "";
}

.preview-bar__title {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 1rem;
}

.preview-bar__devices {
  display: none;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .js .preview-bar__devices {
    display: flex;
  }
}

.device-button {
  min-height: 2.25rem;
  padding: 0.25rem 0.875rem;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 0.875rem;
  border: 1px solid #7a8397;
  border-radius: 999px;
  cursor: pointer;
}

.device-button[aria-pressed="true"] {
  background: #ffffff;
  color: var(--footer-bg);
  border-color: #ffffff;
}

.preview-bar__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: 0.875rem;
}

.preview-main {
  display: flex;
  flex: 1;
  min-height: 0;
}

.preview-frame {
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 0;
}

.preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 0;
}

.preview-frame[data-device="tablet"] iframe,
.preview-frame[data-device="phone"] iframe {
  max-width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  margin-block: 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.preview-frame[data-device="tablet"] iframe {
  width: 768px;
}

.preview-frame[data-device="phone"] iframe {
  width: 390px;
}
