/* 全体の基本設定 */
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f0f0f0;
}

body.surveys-body {
  margin: 2em;
  font-family: "Yu Gothic UI", "Meiryo", sans-serif;
  background-color: #f0f0f0;
  color: #1f2937;
}

h1 a,
h2 a,
h3 a {
  color: inherit;
  text-decoration: none;
}

textarea{ vertical-align:top; }

/* ヘッダ（固定） */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #333;
  background-color: #ac957f; /* 橙色:dev */
  /*background-color: #897fac; /* 紫色:stg */
  background-color: #7fac8f; /* 緑色:prd */
  color: #fff;
  padding: 10px 20px;
  box-sizing: border-box;
  z-index: 1000;
}

#header h1 {
  margin: 0;
  font-size: 20px;
}

/* ヘッダ分の余白を確保 */
#wrapper {
  margin-top: 60px;
  display: flex;
}

h2 {
  border-bottom: 1px solid #666;
  padding-bottom: 6px;
}

h2::after,
h3::after {
  content: "";
  display: block;
  width: 360px;
  height: 2px;
  background-color: #666;
  margin-top: 8px;
}


.btn-submit {
  background-color: transparent;
  color: #0078d4;
  border: 2px solid #0078d4;
  padding: 4px 10px;
  border-radius: 4px;
  appearance: none;
}

.btn-submit:hover {
  background-color: #0078d4;
  color: white;
}

li {
  line-height: 1.8; /* 数値やpxで指定可能 */
}


p.bspc {
  margin-top: 2.5em; /* 上側に余白を追加 */
}

pre {
  font-size: 15px;
  line-height: 1.7;
  font-family: Consolas, "Courier New", monospace;
  padding: 12px;
}


footer {
  background-color: #9c9797; /* 灰色 */
  text-align: center;        /* テキストを中央揃え */
  padding: 8px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border: 1px solid #d1d5db;
  padding: 8px;
  vertical-align: top;
}

/* メインコンテンツ */
#content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
  padding-right: 1em;   /* ← これが決定打 */
}

/* 右側固定メニュー */
#side-menu {
  width: 220px;
  position: fixed;
  top: 60px;          /* ヘッダの下 */
  right: 0;
  bottom: 0;
  background-color: #f0f0f0;
  padding: 20px;
  box-sizing: border-box;
}

#side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#side-menu li {
  margin-bottom: 10px;
}

/* コンテンツがメニューに隠れないように */
#content {
  margin-right: 200px;
}

/* フッタ（スクロール可） */
#footer {
  padding: 10px 20px;
  background-color: #eee;
  box-sizing: border-box;
}

/* パンくずリスト */
.breadcrumb a {
  text-decoration: none;
  color: #0066cc;
}

.breadcrumb span {
  color: #333;
}



.link-button {
  display: inline-block;
  padding: 6px 14px;
  background-color: #e6f2ff;
  border: 1px solid #99c2ff;
  border-radius: 6px;
  color: #003366;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  background-color: #d6ebff;
  border-color: #66a3ff;
}

.link-button:active {
  background-color: #cce5ff;
}


.dl-btn {
  display: inline-block;
  padding: 6px 14px;
  background-color: #4a8eff;
  border: 1px solid #99c2ff;
  border-radius: 6px;
  color: #d6ebff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.dl-btn:hover,
.dl-btn:focus-visible {
  background-color: #88a3ff;
  border-color: #99c233;
}

.dl-btn:active {
  background-color: #4a8eff;
}

.yt-btn {
  display: inline-block;
  padding: 6px 14px;
  background-color: #335353;
  border: 1px solid #99c2ff;
  border-radius: 6px;
  color: #d6ebff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}


/* タブ全体 */
.tabs {
  margin-top: 20px;
}

/* タブボタン列 */
.tab-buttons {
  display: flex;
  border-bottom: 1px solid #ccc;
}

/* タブ（aタグ） */
.tab {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  color: #ccc;
  background-color: #7fac8f;
  border: 1px solid #ccc;
  border-bottom: none;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin-right: 5px;
}

/* 非アクティブ時 */
.tab:hover {
  background-color: #446850;
}

/* アクティブタブ */
.tab.active {
  background-color: #335353;
  font-weight: bold;
  position: relative;
  top: 1px; /* 境界線を自然につなぐ */
}

/* タブ内容領域 */
.tab-contents {
  border: 1px solid #ccc;
  padding: 15px;
}

.icon,
.info {
  display: inline-block;
  vertical-align: middle;
}

.new {
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

