/* 基本のリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 
html {
  scrollbar-gutter: stable;
  overflow-y: auto;
}
 */

body {
  font-family: "M PLUS\ 1p,sans-serif", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  color: #212529;
  line-height: 1.5;
  /* 画面の高さいっぱいに表示し、スクロールを禁止（内部で制御） */
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ヘッダーの設定 */
header {
  width: 100%;
  background-color: #FFF;
  border-bottom: 1px solid #707070;
  padding: 0px 60px;
  flex-shrink: 0; /* 高さを固定 */
/*   text-align: left; */
  display: flex;
  justify-content: space-between; 
  z-index: 10;
}

header a.link__button {
  display: inline-block;
  background-color: #e7e7e9;
  color: #212529;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  text-align: center;
  height: 36px;
  line-height: 36px;
  margin-top: 8px;
  padding: 0px 36px;
}

/* メインコンテンツ（スクロールエリア） */
main {
  scrollbar-gutter: stable;
  flex-grow: 1; /* 余ったスペースをすべて占有 */
  overflow-y: auto; /* コンテンツが多い場合にスクロール */
  background-color: #FAFAFB;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.authentication_container {
  width: 100%;
  max-width: 760px; /* 指定の幅 */
  background-color: #FFF;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: fit-content;
}
.authentication_container form {
  margin: 0 auto;
  width: 300px;
}
.authentication_container .container__header {
  margin-bottom: 40px;
  text-align: center;
}
.authentication_container .container__button {
  margin-top: 40px;
  text-align: center;
}
.authentication_container .container__footer {
  margin-top: 40px;
  text-align: center;
}
main:has(.container) {
  scrollbar-gutter: auto;
  overflow-x: hidden;
  padding-top: 0px;
}
.container {
}
.container .container__header {
  background-image: url('/assets/img/bg-before-login.3b374d9b.png');
  background-position: center;
  background-size: cover;
  color: #FFF;
  line-height: 120px;
  text-align: center;
  height: 120px;
  width: 100vw;
  padding-top: 0px!important;
}
.container .container__body {
  display: flex;
  justify-content: center;
}
.container .container__body .search__result {
  width: 100%;
  max-width: 98%; /* 指定の幅 */
  background-color: #FFF;
/*   margin: 40px auto; */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: fit-content;
}
.container .container__body .search__result div {
  margin: 40px auto;
}
.container .container__body .search__result div p {
  text-align: center;
}

/* フォームの簡易スタイル */
form div {
  margin-bottom: 20px;
}
form p {
  padding-top: 10px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
input, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #CCC;
  border-radius: 6px;
}
button {
  background-color: #0071E3;
  color: #FFF;
  padding: 12px 72px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}
button:hover {
/*   background-color: #BE254B; */
/*   color: #0071E3; */
}
button.cms_login__button {
  background-color: #393e46;
  border-radius: 36px;
}
#loginButton {
  position: relative;
}
#loginButton span,
#loginButton span:after {
  display: none;
  border-radius: 9999px;
  height: 25px;
  width: 25px;
}
#loginButton.loading span,
#loginButton.loading span:after {
  display: inline-block;
}
#loginButton span {
  position: absolute;
  text-indent: -9999em;
  border-top: 3px solid rgba(255, 255, 255, 0.4);
  border-right: 3px solid rgba(255, 255, 255, 0.4);
  border-bottom: 3px solid rgba(255, 255, 255, 0.4);
  border-left: 3px solid #313131;
  transform: translateZ(0);
  animation: loadingAnime 3s linear;
  vertical-align: middle;
  left: 20px;
}
@keyframes loadingAnime {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
    opacity: 0;
  }
}

/* エラー時の入力枠 */
input.error, textarea.error {
  border: 2px solid #FF3B30;
  outline: none;
}
/* エラーメッセージのテキスト */
.error__text {
  color: #FF3B30;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  height: 18px; /* ガタつき防止 */
}
.auth_error__text {
  color: #FF3B30;
/* 
  font-size: 12px;
 */
  margin-top: 4px;
  display: block;
  height: 18px; /* ガタつき防止 */
}
/* エラーメッセージを非表示 */
.hidden {
  display: none;
}

/* フッターの設定 */
footer {
  width: 100%;
  background-color: #F5F5F7;
  border-top: 1px solid #E5E5E7;
  padding: 20px 60px;
  flex-shrink: 0; /* 高さを固定 */
  font-size: 12px;
}
.main__footer {
  display: flex;
  text-align: left;
}
.main__footer a {
  color: #212529;
  text-decoration: none;
}
.main__footer .footer__logo {
  padding-right: 60px;
  width: 480px;
}
.main__footer .footer__menu {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: 1fr 3fr;
  grid-gap: 1em 10em;
  height: 100%;
}
.main__footer .menu__category {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.5em 0.5em;
  place-items: start start;
}
.main__footer .menu__item a img {
  margin-left: 0.5em;
}
.sub__footer {
  text-align: right;
}
.sub__footer span {
  border: 1px solid #212529;
  margin-right: 30px;
  padding: 2px 30px 2px 4px;
}
