:root {
  color-scheme: light;
  --ink: #151c2d;
  --muted: #687286;
  --surface: rgba(255, 255, 255, 0.9);
  --line: rgba(45, 54, 74, 0.13);
  --shadow: 0 18px 46px rgba(30, 39, 61, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(238, 241, 247, 0.98), rgba(250, 251, 253, 0.94)),
    radial-gradient(circle at 18% 16%, rgba(207, 216, 229, 0.5), transparent 32%),
    #f0f3f7;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(34px, 5vw, 74px);
  pointer-events: none;
  opacity: 0.72;
  z-index: 0;
}

body::before {
  left: 0;
  background:
    linear-gradient(180deg, rgba(167, 51, 51, 0.18), rgba(38, 109, 181, 0.13) 48%, rgba(35, 137, 74, 0.16)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 18px);
  border-right: 1px solid rgba(45, 54, 74, 0.08);
}

body::after {
  right: 0;
  background:
    linear-gradient(180deg, rgba(35, 137, 74, 0.15), rgba(167, 51, 51, 0.13) 48%, rgba(38, 109, 181, 0.18)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 18px);
  border-left: 1px solid rgba(45, 54, 74, 0.08);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 0 64px;
  display: grid;
  align-content: center;
  transform: translateY(-28px);
}

.home-frame {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  gap: 30px;
  border: 1px solid rgba(45, 54, 74, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    0 28px 80px rgba(30, 39, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.home-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 6px;
  pointer-events: none;
}

.hero {
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: #69748a;
}

h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  color: #121a2b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.lead {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  gap: 16px;
}

.tool-banner {
  min-width: 0;
  min-height: 148px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tool-banner:hover,
.tool-banner:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(36, 49, 77, 0.28);
  box-shadow: 0 22px 54px rgba(25, 38, 68, 0.2);
  outline: none;
}

.icon-box {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transform: translateY(-5px);
}

.video .icon-box,
.audio .icon-box {
  transform: translateY(-10px);
}

.video .icon-box {
  transform: translateY(-15px);
}

.site-icon,
.image-site-icon {
  width: 58px;
  height: 58px;
  display: block;
}

.video-site-icon {
  border-radius: 6px;
  object-fit: contain;
  filter: hue-rotate(230deg) saturate(1.75) brightness(0.78);
}

.video {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(250, 243, 243, 0.95));
}

.audio {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.95));
}

.image {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 241, 0.95));
}

.image-site-icon {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2aa978, #1f7556);
  box-shadow: inset 0 -9px 0 rgba(0, 0, 0, 0.1), 0 10px 24px rgba(36, 122, 91, 0.18);
}

.image-site-icon span {
  width: 29px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 5px;
  background: linear-gradient(135deg, transparent 55%, rgba(255, 255, 255, 0.8) 56%);
}

.banner-copy {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.label {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.examples {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow: hidden;
}

.examples span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid rgba(33, 42, 60, 0.09);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: #435069;
  background: rgba(255, 255, 255, 0.72);
}

.arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  background: rgba(23, 32, 51, 0.06);
}

.guide-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-button {
  position: relative;
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 46px 18px 18px;
  border: 1px solid rgba(45, 54, 74, 0.18);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(30, 39, 61, 0.1);
  overflow: hidden;
}

.guide-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #36445d;
}

.guide-button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.guide-button strong {
  font-size: 16px;
  line-height: 1.45;
}

.guide-button em {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-weight: 900;
  transform: translateY(-50%);
}

.guide-button:hover,
.guide-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.video-guide {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 232, 232, 0.92));
}

.video-guide::before {
  background: #8f2f33;
}

.audio-guide {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(229, 243, 255, 0.93));
}

.audio-guide::before {
  background: #14527f;
}

.image-guide {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 247, 235, 0.93));
}

.image-guide::before {
  background: #15533d;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 6px 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a,
.back-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid rgba(45, 54, 74, 0.12);
  border-radius: 999px;
  color: #36445d;
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  border-color: rgba(45, 54, 74, 0.26);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

.site-footer small {
  font-size: 12px;
}

.info-page {
  min-height: 100vh;
}

.article-page {
  background:
    linear-gradient(135deg, rgba(232, 236, 244, 0.98), rgba(250, 251, 253, 0.94)),
    radial-gradient(circle at 18% 12%, rgba(167, 51, 51, 0.14), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(38, 109, 181, 0.12), transparent 30%),
    radial-gradient(circle at 50% 88%, rgba(35, 137, 74, 0.12), transparent 34%),
    #f2f5f8;
}

.info-shell {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.back-link {
  margin-bottom: 16px;
}

.info-card {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.info-card h1 {
  font-size: clamp(32px, 6vw, 54px);
  margin-bottom: 20px;
}

.info-card h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.info-card p {
  margin: 0;
}

.info-card ul,
.info-card ol {
  margin: 0;
  padding-left: 1.4em;
}

.contact-box {
  display: grid;
  gap: 6px;
  margin: 24px 0 10px;
  padding: 18px;
  border: 1px solid rgba(45, 54, 74, 0.12);
  border-radius: 8px;
  background: rgba(240, 243, 247, 0.72);
}

.contact-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-box strong {
  font-size: 18px;
}

.note {
  font-size: 14px;
}

.article-shell {
  width: min(980px, calc(100% - 36px));
}

.article-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.88);
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #8f2f33, #14527f, #15533d);
}

.video-article::before {
  background: linear-gradient(90deg, #8f2f33, #d98f8f);
}

.audio-article::before {
  background: linear-gradient(90deg, #14527f, #8fc4e8);
}

.image-article::before {
  background: linear-gradient(90deg, #15533d, #8dcfa6);
}

.article-card h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.22;
  max-width: 820px;
}

.article-lead {
  margin-bottom: 20px;
  font-size: 17px;
  padding: 18px;
  border: 1px solid rgba(45, 54, 74, 0.1);
  border-radius: 8px;
  background: rgba(246, 248, 251, 0.84);
}

.article-cta {
  margin: 24px 0 8px;
}

.article-cta a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #36445d;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(30, 39, 61, 0.16);
}

.video-article .article-cta a {
  background: #8f2f33;
}

.audio-article .article-cta a {
  background: #14527f;
}

.image-article .article-cta a {
  background: #15533d;
}

.article-card section {
  margin-top: 28px;
  padding-top: 4px;
}

.article-card section:not(:last-child) {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(45, 54, 74, 0.09);
}

.article-card h2 {
  position: relative;
  padding-left: 14px;
}

.article-card h2::before {
  content: "";
  position: absolute;
  top: 0.28em;
  bottom: 0.24em;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: #36445d;
}

.video-article h2::before {
  background: #8f2f33;
}

.audio-article h2::before {
  background: #14527f;
}

.image-article h2::before {
  background: #15533d;
}

.article-card h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(45, 54, 74, 0.24);
  border-radius: 8px;
  color: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(246, 248, 251, 0.78)),
    rgba(255, 255, 255, 0.72);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(30, 39, 61, 0.08);
}

.article-list-card:hover,
.article-list-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(45, 54, 74, 0.38);
  outline: none;
}

.article-list-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.article-list-card strong {
  font-size: 20px;
  line-height: 1.45;
}

.article-list-card p {
  margin: 0;
  color: var(--muted);
}

.related-list a {
  color: #36445d;
  font-weight: 800;
}

@media (max-width: 700px) {
  body::before,
  body::after {
    width: 12px;
    opacity: 0.5;
  }

  .shell {
    width: min(100% - 28px, 540px);
    padding: 24px 0 40px;
    align-content: start;
    transform: none;
  }

  .home-frame {
    padding: 18px;
    gap: 24px;
  }

  .lead {
    font-size: 16px;
  }

  .guide-links {
    grid-template-columns: 1fr;
  }

  .tool-banner {
    min-height: 142px;
    grid-template-columns: 56px minmax(0, 1fr) 30px;
    gap: 12px;
    padding: 18px 16px;
  }

  .icon-box {
    width: 54px;
    height: 54px;
    transform: translateY(-3px);
  }

  .video .icon-box,
  .audio .icon-box {
    transform: translateY(-7px);
  }

  .video .icon-box {
    transform: translateY(-11px);
  }

  .site-icon,
  .image-site-icon {
    width: 44px;
    height: 44px;
  }

  .image-site-icon span {
    width: 23px;
    height: 19px;
    border-width: 2px;
  }

  .label {
    font-size: 19px;
  }

  .description {
    font-size: 12px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .examples {
    gap: 5px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .examples span {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .arrow {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .site-footer {
    padding-top: 2px;
  }

  .site-footer a {
    font-size: 12px;
    padding: 5px 10px;
  }

  .info-shell {
    width: min(100% - 28px, 620px);
    padding: 24px 0 40px;
  }

  .info-card p,
  .info-card li {
    font-size: 15px;
  }

  .article-lead {
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .tool-banner {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .arrow {
    display: none;
  }

  .icon-box {
    width: 50px;
    height: 50px;
  }

  .site-icon,
  .image-site-icon {
    width: 40px;
    height: 40px;
  }
}
