/* =========================
   Base
========================= */
html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: 'M PLUS 1p', sans-serif;
  background: #fff;
}

.container {
  font-size: 1.2rem;
  max-width: 70%;
  margin: 4rem auto 0;
  padding: 1.25rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  position: relative;
  text-align: center;
}

/* ナビ直下の要素が何であっても、余白は .container 側だけで統一する */
.container > *:first-child {
  margin-top: 0;
}

/* =========================
   SVG
========================= */
.svg-container {
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.company-title-svg {
  width: 100%;
  height: auto;
  display: block;
}

.company-title-svg .company-title-text {
  font-size: 2.5rem;
}

/* =========================
   Intro
========================= */

.intro-lead {
  display: inline-block;
  margin: 0 auto;
  text-align: left;
  line-height: 1.8;
}

/* =========================
   Table
========================= */

.service-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.table-settings {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 0.0625rem solid #333;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.05);
}

.table-settings th,
.table-settings td {
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  border-bottom: 0.0625rem solid #333;
  border-right: 0.0625rem solid #a8a8a8;
}

.table-settings--compact th,
.table-settings--compact td {
  padding-top: 0.63rem;
  padding-bottom: 0.63rem;
}

.table-settings tr:last-child td {
  border-bottom: none;
}

.table-settings th {
  background: #f8fbff;
  color: #222;
  font-weight: 700;
}

/* 列幅 */
.table-settings th:nth-child(1),
.table-settings td:nth-child(1) {
  width: 22%;
  font-weight: 700;
  color: #0f3f7a;
  background: #fbfdff;
}

.table-settings th:nth-child(2),
.table-settings td:nth-child(2) {
  width: 48%;
}

.table-settings th:nth-child(3),
.table-settings td:nth-child(3) {
  width: 30%;
  background: #fbfdff;
}

/* =========================
   コラムリンク
========================= */

.service-column-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-column-links a {
  display: block;
  padding: 0.45rem 0.6rem;
  border: 0.0625rem solid #dfe8f5;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f5cc0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.service-column-links a:hover {
  border-color: #8dbcf5;
  background: #f1f7ff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* .column-inline-link のボタンスタイルは static/css/column_inline_link.css に共通化 */

/* =========================
   Button
========================= */

.btn {
  background-color: #9e9e9e;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: #5e5e5e;
}

/* Contact CTA styles moved to static/css/contact_cta.css (shared partial: appbomb/parts/contact_cta.html) */

/* =========================
   Privacy link
========================= */

.privacy-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  border: 0.0625rem solid #0f5cc0;
  border-radius: 2rem;
  background: #fff;
  color: #0f5cc0;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.privacy-link:hover {
  background: #0f5cc0;
  color: #fff;
}

/* =========================
   Heading
========================= */

h1 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

/* =========================
   Responsive
========================= */

.business-card-logo {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.business-card-logo svg {
  display: block;
  width: 9.520625rem;
  height: auto;
  margin: 0;
}

@media only screen and (max-width: 48rem) {

  .container {
    max-width: 92%;
    padding: 1.5rem 0.75rem;
  }

  .service-table-wrap {
    overflow-x: visible;
  }

  .table-settings {
    display: block;
    width: 100%;
    border: 0.0625rem solid #333;
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .table-settings tbody {
    display: block;
    width: 100%;
  }

  .table-settings tr {
    display: block;
    width: 100%;
    border-bottom: 0.0625rem solid #333;
    padding: 0;
    margin: 0;
  }

  .table-settings tr:last-child {
    border-bottom: none;
  }

  .table-settings th {
    display: none;
  }

  .table-settings td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: none;
    padding: 0.85rem 1rem;
    line-height: 1.7;
  }

  .table-settings td:nth-child(1),
  .table-settings td:nth-child(2),
  .table-settings td:nth-child(3) {
    width: 100% !important;
  }

  .table-settings td:nth-child(1) {
    background: #f8fbff;
    color: #0f3f7a;
    font-size: 1.05rem;
    font-weight: 700;
  }

  .table-settings td:nth-child(2) {
    background: #fff;
    font-size: 1rem;
  }

  .table-settings td:nth-child(2)::before {
    content: "内容";
    display: block;
    margin-bottom: 0.35rem;
    color: #0175d8;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .table-settings td:nth-child(3) {
    background: #fbfdff;
  }

  .table-settings td:nth-child(3)::before {
    content: "関連コラム";
    display: block;
    margin-bottom: 0.45rem;
    color: #0175d8;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .service-column-links {
    width: 100%;
  }

  .service-column-links a {
    width: 100%;
    padding: 0.65rem 0.8rem;
    font-size: 0.92rem;
  }

  .company-title-svg .company-title-text {
    font-size: 2.2rem;
  }
@media only screen and (max-width: 30rem) {
  .svg-container {
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
  }

  .company-title-svg g {
    transform: translate(95, 65) scale(0.048);
  }

  .company-title-svg .company-title-text {
    font-size: 3rem;
  }
}
}