/* ===== ベース設定 ===== */
body {
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic Pro", "メイリオ", sans-serif;
  font-size: 20px;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #efefef;
  line-height: 2.0;
}

main {
  display: flex;
  background-color: #efefef;
}

/* ===== スマホ/PC 表示切り替え ===== */
.disp-at-sp {
  display: none !important;
}

.disp-at-cp {
  display: block !important;
}


@media screen and (max-width: 992px) {
  html, body {
    font-size: 26px !important;
    line-height: 2.0 !important;
  }

  .disp-at-sp {
    display: block !important;
  }

  .disp-at-cp {
    display: none !important;
  }

  #out {
    width: 90% !important;
    padding: 20px !important;
    margin: 0 auto !important;
  }

  .card {
    width: 98%;
    margin: 10px auto;
  }

  .force-one-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

}

/* ===== ヘッダー・ナビゲーション ===== */
#header {
  width: 100%;
  background-color: #39c0ed;
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  color: white;
}

#menu-block-left {
  display: flex;
  align-items: center;
  margin-right: auto;
}

#menu-block-left-child {
  color: white;
  font-size: 20px;
  margin: 15px;
}

#menu-block-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  flex-grow: 1;
}

#menu-block-right-upper,
#menu-block-right-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

#menu-block-contents-left,
#menu-block-contents-right {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

#header-child {
  background-color: #39c0ed;
  margin: 5px 10px;
  color: white;
  white-space: nowrap;
}

#menu-block-left a,
#menu-block-right a {
  color: white;
  text-decoration: none;
}

.navbar-brand {
  color: white !important;
}

.nav-item {
  margin: 5px 0;
}

/* ===== ジャンボトロン背景画像 ===== */
.jumbotron {
  background-image: url("/static/images/header_img/public.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
}

/* ===== メッセージ表示 ===== */
.messages {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

/* ===== コンテンツレイアウト（中央最大幅制限） ===== */
#out {
  max-width: 900px;
  width: 90%;
  background-color: white;
  padding: 40px 30px;
  margin: 0 auto;
}

/* ===== フッター ===== */
#footer {
  display: flex;
  flex-wrap: wrap;
  background-color: rgba(0, 0, 0, 0.87);
  padding: 30px;
  color: white;
  justify-content: space-between;
}

#footer-left-block,
#footer-right-block {
  display: flex;
  flex-wrap: wrap;
}

#footer-block-column {
  margin: 10px;
}

#footer-block-child-header {
  font-weight: bold;
}

#footer-block-child,
#footer-block-child-header a,
#footer-block-child a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.text-muted {
  color: #ccc !important;
}

/* ===== 検索フォーム ===== */
.form-inline {
  display: flex;
  align-items: center;
}

.form-control {
  margin-right: 10px;
  width: auto;
}

.btn {
  white-space: nowrap;
}

/* ===== 段落やリストの読みやすさ向上 ===== */
p {
  margin: 1em 0;
}

ul, ol {
  margin: 1em 0 1em 1.5em;
  line-height: inherit;
}

li {
  margin-bottom: 0.5em;
}
