@import url("https://fonts.googleapis.com/earlyaccess/notosansjp.css");

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: #243044;
  background: #f4f6f8;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: #075ca8;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:active {
  color: #b32925;
}

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

button,
input {
  font: inherit;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d9e0e8;
}

.site-header__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  margin: 0;
  line-height: 1;
}

.site-logo img {
  width: 305px;
}

.header-action img {
  display: block;
}

.global-nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 14px;
}

.global-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  color: #1d3755;
  background: #edf4fb;
  border: 1px solid #c7d9ea;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.global-nav a:hover {
  color: #ffffff;
  background: #1c70b8;
  border-color: #1c70b8;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  padding: 30px;
  color: #19304a;
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(40, 64, 91, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  color: #6a4a10;
  font-size: 14px;
  font-weight: 700;
}

.hero h2 {
  margin: 0 0 16px;
  color: #14395f;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}

.hero p {
  margin: 0 0 12px;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button--primary {
  color: #ffffff;
  background: #d86223;
  border-color: #d86223;
}

.button--primary:hover {
  color: #ffffff;
  background: #b94e18;
}

.button--secondary {
  color: #144a79;
  background: #e4f1fc;
  border-color: #bbd7ed;
}

.button--text {
  color: #144a79;
  background: #ffffff;
  border-color: #cbd7e3;
}

.hero__side {
  display: grid;
  gap: 12px;
}

.service-note {
  padding: 18px;
  background: #f7fafc;
  border: 1px solid #d9e6ef;
  border-radius: 6px;
}

.service-note span {
  display: block;
  color: #657487;
  font-size: 13px;
}

.service-note strong {
  display: block;
  margin-top: 4px;
  color: #173d61;
  font-size: 18px;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.utility-box,
.panel {
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
}

.utility-box {
  padding: 18px;
}

.utility-box h2,
.panel h2 {
  margin: 0;
  color: #1b3855;
  font-size: 20px;
  line-height: 1.4;
}

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

.inline-form label {
  color: #4b596b;
  font-size: 14px;
  font-weight: 700;
}

.inline-form input {
  min-width: 120px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #bccbd9;
  border-radius: 4px;
  background: #ffffff;
}

.inline-form--compact input {
  min-width: 80px;
}

.inline-form button {
  min-height: 38px;
  padding: 6px 12px;
  color: #ffffff;
  background: #1c70b8;
  border: 1px solid #1c70b8;
  border-radius: 4px;
  cursor: pointer;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 18px;
  margin-top: 18px;
}

.content-main,
.content-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel {
  padding: 22px;
}

.panel--accent {
  border-color: #d7c387;
  background: #fffaf0;
}

.panel--accent h2 {
  color: #674610;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.intro-panel h3 {
  margin: 18px 0 10px;
  padding-top: 16px;
  border-top: 1px solid #e0e7ee;
  color: #32485f;
  font-size: 17px;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.link-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  background: #f0f6fb;
  border: 1px solid #cbddec;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.spec-table,
.active-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td,
.active-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8ee;
  vertical-align: top;
}

.spec-table th {
  width: 128px;
  color: #43546a;
  text-align: left;
  white-space: nowrap;
}

.spec-table strong {
  color: #b32925;
}

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

.sample_card {
  min-width: 0;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid #dce6ee;
  border-radius: 6px;
}

.sample_bbs {
  display: block;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #c9d5df;
}

.sample_title {
  margin-top: 10px;
  font-weight: 700;
}

.sample_text {
  margin-top: 6px;
  color: #4a596b;
  font-size: 14px;
  line-height: 1.65;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 1.6em;
}

.tips-list,
.side-links,
.site-footer ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.tips-list li,
.side-links li,
.site-footer li {
  margin: 6px 0;
}

.panel-more {
  margin: 14px 0 0;
  color: #5d6b7c;
  font-size: 14px;
  text-align: right;
}

.news-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #e2e8ee;
}

.news-card img {
  grid-row: span 2;
  width: 116px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #d5dce3;
}

.news-card span {
  color: #6a7480;
  font-size: 13px;
}

.news-card strong {
  color: #1f3d5a;
  line-height: 1.5;
}

.support-note {
  margin-top: 14px;
  padding: 14px;
  background: #f6f8fa;
  border: 1px solid #dde5ec;
  border-radius: 6px;
  font-size: 14px;
}

.support-note p {
  margin: 0 0 8px;
}

.support-note p:last-child {
  margin-bottom: 0;
}

.active-table {
  font-size: 14px;
}

.active-table tr:nth-child(odd) {
  background: #f7fafc;
}

.active-table td:nth-child(1) {
  width: 42px;
  color: #6a7480;
  font-weight: 700;
  white-space: nowrap;
}

.active-table td:nth-child(3),
.active-table td:nth-child(4),
.active-table td:nth-child(5) {
  text-align: right;
  white-space: nowrap;
}

.active-table td:nth-child(3) {
  color: #a03a2d;
  font-weight: 700;
}

.site-footer {
  color: #d9e6f2;
  background: #203247;
}

.footer-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.site-footer h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer a {
  color: #ffffff;
}

.site-footer p {
  margin: 0 0 10px;
}

.copyright {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #c4d0dc;
  font-size: 13px;
}

@media (max-width: 920px) {
  .site-header__inner,
  .hero,
  .utility-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    display: grid;
  }

  .hero {
    padding: 24px;
  }

  .hero__side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-layout {
    display: grid;
  }
}

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

  .page-shell,
  .site-header__inner,
  .global-nav,
  .footer-grid,
  .copyright {
    width: min(100% - 20px, 1120px);
  }

  .global-nav {
    gap: 5px;
  }

  .global-nav a {
    min-height: 32px;
    padding: 4px 9px;
    font-size: 13px;
  }

  .hero {
    padding: 20px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero__side,
  .sample_wrap,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 6px;
  }

  .panel {
    padding: 18px;
  }

  .inline-form {
    align-items: stretch;
  }

  .inline-form input,
  .inline-form button {
    width: 100%;
  }

  .spec-table th,
  .spec-table td,
  .active-table td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .active-table tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8ee;
  }

  .active-table td {
    padding: 2px 8px;
    border: 0;
  }

  .active-table td:nth-child(3),
  .active-table td:nth-child(4),
  .active-table td:nth-child(5) {
    text-align: left;
  }

  .news-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .news-card img {
    width: 92px;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  color: #647286;
  font-size: 14px;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(40, 64, 91, 0.08);
}

.subpage-hero h2 {
  margin: 0 0 10px;
  color: #14395f;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.3;
}

.subpage-hero p {
  margin: 0;
}

.subpage-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.subpage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-top: 18px;
}

.feature-directory,
.subpage-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #f7fafc;
  border: 1px solid #dce6ee;
  border-radius: 6px;
}

.feature-card h3 {
  margin: 0 0 6px;
  color: #1d3c5c;
  font-size: 17px;
  line-height: 1.45;
}

.feature-card p {
  margin: 0;
  color: #4a596b;
  font-size: 14px;
  line-height: 1.65;
}

.feature-card img {
  margin-top: 2px;
}

.mini-card {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
}

.mini-card--paid {
  background: #fffaf0;
  border-color: #d7c387;
}

.mini-card h2 {
  margin: 0 0 12px;
  color: #1b3855;
  font-size: 18px;
  line-height: 1.4;
}

.mini-card p {
  margin: 0 0 10px;
}

.mini-card ul,
.mini-ranking {
  margin: 0;
  padding-left: 1.2em;
}

.mini-card li,
.mini-ranking li {
  margin: 6px 0;
}

.photo-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.photo-link span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.photo-link img {
  width: 100%;
  border: 1px solid #d5dce3;
  border-radius: 5px;
}

@media (max-width: 920px) {
  .subpage-hero,
  .subpage-layout {
    grid-template-columns: 1fr;
  }

  .subpage-hero__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .subpage-hero {
    padding: 20px;
  }

  .subpage-hero h2 {
    font-size: 27px;
  }

  .feature-card-grid {
    grid-template-columns: 1fr;
  }
}

.example-post {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #d8e1ea;
  border-left: 5px solid #1c70b8;
  border-radius: 6px;
}

.example-post p {
  margin: 0 0 10px;
}

.example-post p:last-child {
  margin-bottom: 0;
}

.compare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.compare-box {
  padding: 16px;
  background: #f7fafc;
  border: 1px solid #dce6ee;
  border-radius: 6px;
}

.compare-box h3 {
  margin: 0 0 10px;
  color: #1d3c5c;
  font-size: 17px;
}

.compare-box dl {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 10px;
  margin: 0;
}

.compare-box dt {
  color: #4b596b;
  font-weight: 700;
}

.compare-box dd {
  margin: 0;
}

.code-sample {
  width: 100%;
  min-height: 210px;
  margin: 12px 0;
  padding: 14px;
  color: #1d2a38;
  background: #f8fafc;
  border: 1px solid #cbd7e3;
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
}

.note-box {
  padding: 16px 18px;
  background: #fffaf0;
  border: 1px solid #d7c387;
  border-radius: 6px;
}

.note-box h3 {
  margin: 0 0 8px;
  color: #674610;
  font-size: 18px;
}

.note-box p {
  margin: 0;
}

.large-image {
  display: block;
  width: min(100%, 600px);
  margin: 14px auto 0;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .compare-list {
    grid-template-columns: 1fr;
  }

  .compare-box dl {
    grid-template-columns: 1fr;
  }
}
