/* 変数定義 */
:root {
  /* フォントサイズ */
  --xlarge-font-size: 24px;
  --large-font-size: 20px;
  --medium-font-size: 16px;
  --small-font-size: 14px;
  --xsmall-font-size: 12px;

  /* テキスト */
  --text-color: #666;

  /* テーマカラー */
  --default: #424242;
  --primary: #7fa694;

  /* フォーム要素 */
  --input-border: 1px solid #ddd;
  --input-hover-border: 1px solid #7a8589;
  --input-focus-border: 1px solid #7a8589;

  /* 枠線カラー */
  --border-color: #dadce0;
}

/* グローバル設定 */
* {
  font-family: "Yu Gothic", "游ゴシック", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
}

:root {
  background-color: #f0f0f0;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: 500;
}

body,
form {
  margin: 0;
}

/*
 * ボタン定義
 * ボタンスタイル利用方法
 *   `<button class="button">ボタン</button>` のように、クラスにbuttonを割り当てる
 *   色は `button` のみの場合は default、 `button primary` や `button secondary` のように色指定含めることで別色
 */
.button {
  padding: 0 24px;
  height: 40px;
  border: 2px solid var(--default);
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: var(--default);
  color: white;

  /* デフォルトスタイル */
  &:hover:not(:disabled) {
    color: var(--text-color);
    background-color: white;
  }

  &:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
}

/* カード定義 */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  &.clickable {
    cursor: pointer;
    transition: 0.3s ease;
    color: var(--text-color);
  }

  &.clickable:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
  }
}

/*
 * フォーム要素定義
 */
input[type="text"]:not([hidden]),
input[type="time"]:not([hidden]),
input[type="password"],
input[type="number"]:not([hidden]),
textarea,
select {
  border: var(--input-border);
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.3s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
}

input {
  padding: 0 5px;
  cursor: text;
}

input[readonly]:not([hidden]),
textarea[readonly] {
  color: rgb(109, 109, 109);
  border-color: rgb(118, 118, 118, 0.3);
  background-color: rgb(239, 239, 239, 0.3);
  border-width: 1px;
  border-style: inset;
  outline: none;
  opacity: 0.7;
  cursor: not-allowed;
}

select {
  padding: 0 10px 0 5px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8589' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 12px;

  &:disabled {
    color: rgb(109, 109, 109);
    border-color: rgb(118, 118, 118, 0.3);
    background-color: rgb(239, 239, 239, 0.3);
    border-width: 1px;
    border-style: inset;
    outline: none;
    opacity: 0.7;
    cursor: not-allowed;
  }
}

input[type="text"]:hover:not([hidden]),
input[type="number"]:hover:not([hidden]),
input[type="time"]:hover:not([hidden]),
select:hover {
  border: var(--input-hover-border);
}

/* フォーカス時のスタイル */
input[type="text"]:focus:not([hidden]),
input[type="number"]:focus:not([hidden]),
input[type="time"]:focus:not([hidden]),
select:focus {
  border: var(--input-focus-border);
  box-shadow: 0 0 0 2px rgba(122, 133, 137, 0.2);
}


/* ===============================================
# 共通
=============================================== */

:root {
  /* メインカラー */
  --main-color: #333;
  --white-color: #ffffff;

  /* 文字色 */
  --gray-text-color: #666;
  --light-gray-text-color: #999;

  /* 背景色 */
  --background-color: #f0f0f0;
  --light-gray-bg-color: #e0e0e0;
  --box-bg-color: #ffffff;

  /* テーブルカラー */
  --table-bg-color: #eee;
  --table-border-color: #ffffff;
  --table-header-color: #7a8589;
  --table-highlight-color: #cce2d8;
  --table-disabled-color: #d3d3d3;

  /* アクセントカラー */
  --accent-green-color: #7fa694;
  --accent-red-color: #ff6c6c;
  --accent-blue-color: #3f97ff;

  /* 角丸 */
  --border-radius: 5px;

  /* PADDING */
  --padding-small: 10px;
  --padding-medium: 20px;
  --padding-large: 30px;
}

body {
  background-color: var(--background-color);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  background-size: cover;
  background-repeat: no-repeat;
  font-style: italic;
  vertical-align: middle;

  shape-margin: 0.75rem;
}

/* タイトル */
.title {
  width: 100%;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 15px;
  box-sizing: border-box;
}

.title>label {
  font-size: 25px;
  font-weight: bold;
}

/*=========================================
#ハンバーガーメニュー
=========================================*/
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 150;
  width: 60px;
  height: 60px;
  background-color: #333333;
  cursor: pointer;
}

.hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(135deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-135deg);
}

.hamburger span {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 2px;
  background-color: #ffffff;
  transition: transform 0.3s;
}

.hamburger.is-active span {
  background-color: #ffffff;
}

.hamburger span:nth-child(1) {
  top: 30%;
}

.hamburger span:nth-child(2) {
  top: 60%;
}

.hamburger span:nth-child(3) {
  top: 90%;
}

/*=========================================
#drawer
=========================================*/
.drawer {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 130;
  width: 100%;
  height: 100vh;
  background-color: #333333;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer.is-active {
  visibility: visible;
  opacity: 1;
}

.drawer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.drawer__list {
  display: flex;
  flex-direction: column;

  gap: 50px;
}

.drawer__link {
  color: #ffffff;
}

/* 実際のプロジェクトではここのコメントを解除して、スマホ時のみ表示させます。 */
/* .sp-show {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-show {
    display: block;
  }
  .sp-none {
    display: none;
  }
} */

/* ===============================================
# ログイン情報表示
=============================================== */

.login_info {
  width: 40%;
  display: flex;
  border-bottom: 1px solid #000;
}

.info {
  margin: 5px;
}

.label {
  font-weight: bold;
}

/* ===============================================
# ボタン
=============================================== */

.menu-btn-contena {
  margin: 0 auto;
}

.btn,
a.btn,
button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  margin: 0 auto;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  /*vertical-align: middle;*/
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}

/*メニュー */
a.btn-border {
  border: 2px solid #000;
  border-radius: 0;
  background: #f0f0f0;

  -webkit-transform-style: preserve-3d;

  transform-style: preserve-3d;
}

a.btn-border:before {
  position: absolute;
  top: 0;
  left: 0;

  width: 5px;
  height: 100%;

  content: "";
  -webkit-transition: all 0.3s;
  transition: all 0.3s;

  background: #000;
}

a.btn-border:hover {
  color: #f0f0f0;
  background: #000;
}

a.btn-border:hover:before {
  background: #f0f0f0;
}

/* ===============================================
# ログイン画面
=============================================== */

.container {
  padding: 0;
}

.login-head {
  height: 15vh;
  /* ビューポートの高さの20% */
  width: 100%;
  margin: 0;
  /* マージンをリセット */
  display: flex;
  /* フレックスボックスを使用 */
  align-items: center;
  /* 縦中央揃え */
  justify-content: center;
  /* 横中央揃え */
}

.login-logo {
  margin: 0 auto;
  justify-content: center;
}

._login-contena {
  min-height: 60vh;
  /* ビューポートの高さの60% */
  width: 100%;
  margin: 0;
  display: flex;
  /* フレックスボックスを使用 */
  align-items: center;
  /* 中央揃え */
  justify-content: center;
}

.login-contena {
  height: 350px;
  /* ビューポートの高さの60% */
  width: 100%;
  margin: 0;
  display: flex;
  /* フレックスボックスを使用 */
  align-items: center;
  /* 中央揃え */
  justify-content: center;
}

._login-box {
  width: 350px;
  height: 400px;
  padding: 15% 0%;
  display: block;
  background-color: #ffffff;
}

.login-box {
  width: 350px;
  height: 100%;
  padding: 15% 0%;
  display: block;
  background-color: #ffffff;
}

.login-input-box {
  width: 80%;
  display: block;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 30px;
}

.login-input {
  width: 100%;
  height: 50px;
  margin-bottom: 30px;
  padding-left: 5%;
  border: 1px solid #424242;
}