/* =========================
   Base
========================= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'M PLUS 1p', sans-serif;
}

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

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

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

/* 名刺ロゴは余白なし*/
.svg-container.logo-svg-container {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  line-height: 0; /* テーブル内の余白対策 */
}

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

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

/* =========================
   Table
========================= */
table {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
}

th, td {
  border: 1px solid black;
  padding: 8px;
}

th {
  background-color: #f2f2f2;
}

.table-settings th:first-child,
.table-settings td:first-child {
  width: 30%;
}

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

thead th {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.sticky-left {
  position: sticky;
  left: 0;
  background: #f2f2f2;
  z-index: 2;
}

td {
  text-align: left;
  padding: 0.5rem;
}

/* =========================
   Buttons
========================= */
.button-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

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

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

/* =========================
   Heading
========================= */
h1 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

/* =========================
   Contact button
========================= */
.contact-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  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;
}

.contact-button:hover {
  background: #0f5cc0;
  color: #fff;
}

/* =========================
   Responsive（修正版）
========================= */
@media only screen and (max-width: 768px) {

  .container {
    max-width: 90%;
    padding: 1.5rem 0;
    margin-top: 0.5rem;
  }

  /* タイトル上余白を圧縮 */
  .svg-container {
    margin-top: 1.2rem;
    margin-bottom: 1rem;
  }

  /* 文字サイズ調整 */
  .company-title-svg .company-title-text {
    font-size: 2.8rem;
  }

  .btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.2rem;
    margin: 0.2rem 0;
  }

  th, td {
    padding: 0.5rem;
  }

  .button-container {
    margin-bottom: 0.5rem;
  }
}

@media only screen and (max-width: 480px) {

  .container {
    padding: 1rem 0;
    margin-top: 0.3rem;
  }

  /* タイトル余白さらに圧縮 */
  .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;
  }
}
