/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}


/* General Reset (normalize.cssにプラスして記載) */
body {
  font-family: Arial, sans-serif; /* 標準フォント設定 */
}

/* /////////////////共通設定///////////////// */
/* 諸々の色設定 */
:root {
  --background-navbar: #343a40; /* 深いネイビー */
  --text-primary: #333; /* 濃い灰色 */
  --btn-light-bg: #f8f9fa; /* 明るい白に近いグレー */
  --btn-light-hover: #e9ecef; /* ボタンホバー時の色 */
  --btn-dark-bg: #495057; /* ボタンの暗めの背景 */
  --btn-dark-hover: #6c757d; /* ボタンホバー時の暗めの色 */
  --primary-bg: #f8f9fa; /* 明るいグレー */
  --form-bg: #ffffff; /* フォーム背景用の白 */
  --border-color: #ddd; /* ボーダー色 */
  --btn-login: #e60012; /* 赤色ボタン */
  --btn-login-hover: #c3000f; /* ボタンホバー時の色 */
  --link-color: #0073e6; /* リンクカラー */
}

/* /////////////////ヘッダー///////////////// */
 /* カスタムクラスでナビバーのスタイルを調整 */
.navbar-custom {
  background-color: var(--background-navbar);
}

/* ブランド名やリンクの色をカスタマイズ */
.navbar-brand, .nav-link {
  color: #f8f9fa !important; /* 明るいグレー */
}

/* ホバー時のリンク色を変更 */
.nav-link:hover {
  color: #0dcaf0 !important; /* シアン系 */
}

/* ナビバー固定時のスペース確保 */
main {
  margin-top: 52px; /* ヘッダーの高さ分だけ下に余白を追加 */
  padding: 20px; /* 任意でコンテンツにパディングを追加 */
}

/* /////////////////ランディングページ///////////////// */

/* ヒーローセクションのスタイル */
.hero {
  background-color: #ffffff; /* 背景を白に設定 */
  color: var(--text-primary); /* テキストを濃い灰色に */
  text-align: center;
  padding: 80px 20px;
  border-bottom: 2px solid var(--btn-light-hover); /* 軽い区切り線 */
}

/* ヒーローテキストのスタイル */
.hero h1 {
  font-size: 48px;
  font-weight: bold;
}

/* ボタンのスタイルをカスタマイズ */
.btn-custom-light {
  background-color: var(--btn-light-bg);
  color: var(--text-primary);
  border: 1px solid var(--btn-light-hover);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-custom-light:hover {
  background-color: var(--btn-light-hover);
  color: var(--text-primary);
}
.btn-custom-dark {
  background-color: var(--btn-dark-bg);
  color: #ffffff;
  border: none;
  transition: background-color 0.3s ease;
}
.btn-custom-dark:hover {
  background-color: var(--btn-dark-hover);
}

/* ヒーローセクションのスタイル */
.newuser, .about, .flow {
  background-color: #ffffff; /* 背景を白に設定 */
  color: var(--text-primary); /* テキストを濃い灰色に */
  border-bottom: 2px solid var(--btn-light-hover); /* 軽い区切り線 */
}

/* ホームページのカードの隙間調整 */
@media (max-width: 768px) { /* ブレイクポイントは適宜調整 */
  .row .col-md-4 {
    margin-bottom: 15px; /* カード間の隙間を指定 */
  }
  .row .col-md-4:last-child {
    margin-bottom: 0; /* 最後のカードには隙間を追加しない */
  }
}

/* ログインページ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.login-container, .register-container {
  max-width: 400px;
  margin: 50px auto;
  background-color: var(--form-bg);
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.form-control {
  margin-bottom: 15px;
}



.btn-back, .btn-login {
  width: 100%;
  padding: 10px;
}

.btn-login {
  background-color: var(--btn-login);
  color: white;
  border: none;
}

.btn-login:hover {
  background-color: var(--btn-login-hover);
}

.btn-back {
  background-color: var(--btn-dark-bg);
  color: white;
  border: none;
}

.btn-back:hover {
  background-color: var(--btn-dark-hover);
}

.forgot-link, .register-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--link-color);
  text-decoration: none;
}

.forgot-link:hover, .register-link:hover {
  text-decoration: underline;
}


/* /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* 会員登録ページ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

/* 自由入力欄 */
textarea {
  height: 100px;
  resize: none;
}
/* 利用規約 */
.terms-scroll {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
}

/* 大学名オートフィル */
.autocomplete-suggestions div {
  cursor: pointer;
  padding: 8px;
  border: 1px solid #ddd;
}
.autocomplete-suggestions div:hover {
  background-color: #ffffff;
}
.suggestions-list{
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  background-color: white;
  z-index: 1000;
}
/* チェックボックスのスタイルをカスタマイズ */
input[type="checkbox"] {
  -webkit-appearance: none; /* Chrome, Safariのデフォルトスタイルをリセット */
  -moz-appearance: none;    /* Firefoxのデフォルトスタイルをリセット */
  appearance: none;         /* 全てのブラウザに対するリセット */
  width: 15px;
  height: 15px;
  border: 2px solid #6c757d; /* 明示的に枠線を設定 */
  border-color: #6c757d;
  border-radius: 4px;        /* 角を丸くする */
  background-color: #fff;    /* 背景色を白に */
  position: relative;
  display: inline-block;
}
/* チェックが入った時のスタイル */
input[type="checkbox"]:checked {
  background-color: #007bff; /* チェック時の背景色 */
  border-color: #007bff;     /* チェック時の枠線の色 */
}
/* チェックマークを追加 */
input[type="checkbox"]:checked::after {
  position: absolute;
  top: 0;
  left: 5px;
  font-size: 14px;
  color: white;
}

/* /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */


/* ユーザー一覧 */
/* テーブルスタイル */
/* テーブルのスタイル */


/* ボタンのコンテナ */

/* 教師カード全体のスタイリング */
.userCard {
  border: 1px solid #ddd; /* 枠線 */
  border-radius: 10px; /* 角を丸める */
  padding: 10px 15px; /* 内側の余白 */
  margin: 10px 0; /* カード間のスペース */
  background-color: #fff; /* 背景色 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 影を追加 */
}

.userCard:hover {
  transform: translateY(-5px); /* 少し持ち上げる */
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* 影を濃くする */
}

/* カード内の各項目テキスト */
.userCard p {
  font-size: 18px; /* フォントサイズ */
  color: #333; /* テキスト色 */
  font-weight: bold;
}

/* テーブルを含むコンテナのスタイル */
.table-container {
  display: flex; /* フレックスボックスで横並び */
  align-items: center; /* テーブルとボタンを縦方向で中央揃え */
  justify-content: space-between; /* テーブルとボタンの間にスペースを均等に */
  width: 100%; /* 横幅を100%に */
}

/* テーブルのスタイル */
.table {
  width: 80%; /* テーブルが横幅の80%を占める */
  border-collapse: collapse;
}

.table th, .table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.table th {
  font-weight: bold;
}

/* ボタンのスタイル */
.button-container {
  text-align: center; /* ボタンを中央に配置 */
}

form input[type="submit"] {
  background-color: #e60012;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form input[type="submit"]:hover {
  background-color: #b8000d;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .table-container {
    flex-direction: column; /* モバイルでは縦並びに変更 */
    align-items: flex-start; /* 左揃え */
  }

  .table {
    width: 100%; /* テーブルが画面幅の100%を占める */
    table-layout: fixed;
  }

  .button-container {
    width: 100%; /* ボタンも画面幅100%を占める */
    margin-top: 10px; /* テーブルの下に余白を追加 */
  }

  .userName {
    font-size: 16px;
  }
}


/* ユーザ一覧画面のページネーション */

.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination a {
  margin: 0 10px;
  text-decoration: none;
  color: #007BFF;
}

.pagination a:hover {
  text-decoration: underline;
}

.pagination span {
  margin: 0 10px;
  font-weight: bold;
}


/* ////////////////////////////////////////////////////////// */
/* 教師詳細情報 */
.custom-card-header {
  background-color: #f5f5f5; /* 背景色を薄い灰色に設定 */
  color: #333; /* 文字色を濃い灰色に設定 */
}

/* 保有資格や自己PRのテキストに適用 */
.wraptext {
  white-space: pre-wrap;  /* 改行・連続スペースを反映 */
  word-wrap: break-word;  /* 長い文字列も折り返す */
}


/* ////////////////////////////////////////////////////////// */
/* マイページ */
/* カードのホバー効果をカスタマイズ */
.card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* ホバー時の影 */
  transition: box-shadow 0.3s ease;
}

/* カーソルを指示棒にする */
.card {
  cursor: pointer;
}

.user-management {
  max-width: 1000px; /* 横幅を調整 */
  margin: 0 auto;   /* 中央揃え */
}

/* ////////////////////////////////////////////////////////// */
/* 基本情報更新 */
.list-group-item.active {
  background-color: #f5f5f5;
  color:#bbb3b3;
}

.card {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: #ddd;
  color: #333;
}

.btn-secondary:hover {
  background-color: #ccc;
}

/* サイドバーを小さい画面で非表示に */
@media (max-width: 768px) {
  nav {
    display: none;
  }
}

/* マイページに戻るボタンを大きい画面で非表示に */
@media (min-width: 768px) {
  .btn-secondary.d-md-none {
    display: none;
  }
}



/* ////////////////////////////////////////////////////////// */
/* PWリセット */
.resetPasswordRequestTemp, .reset-password-container {
  width: 80%;
  max-width: 400px;
  margin: auto;
  padding-top: 20px;
}

.reset-btn {
  width: 100%;
  padding: 10px;
  color: #fff;
  background-color: #e60012;
  border: none;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}


/* ////////////////////////////////////////////////////////// */
/* PWメアド変更画面 */

.input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

/* ////////////////////////////////////////////////////////// */
/* チャット画面 */

/* 最大幅を設定して画面全体に広がりすぎないよう調整 */
.chat-container {
  max-width: 600px;
  width: 100%;
}

.button-group {
  display: flex;
  gap: 5px; /* ボタン間のスペースを5pxに設定 */
}

/* メッセージエリアのスクロール調整 */
#messages {
  height: 300px;
  overflow-y: auto;
}

/* メッセージのラッパー */
.message-wrapper {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

/* メッセージを左揃え・右揃え */
.align-start {
  justify-content: flex-start;
}

.align-end {
  justify-content: flex-end;
}

/* 吹き出しのデザイン */
.message-bubble {
  max-width: 60%;
  padding: 10px;
  border-radius: 15px;
  font-size: 14px;
  white-space: pre-wrap;   /* 改行・スペースをそのまま反映 */
  word-wrap: break-word;   /* 長い文字列も折り返す */
}

.message-sender {
  background-color: #c8f7c5; /* 送信者の吹き出し色 */
  color: #000;
}

.message-receiver {
  background-color: #f1f0f0; /* 受信者の吹き出し色 */
  color: #000;
}

/* 時間表示のスタイル */
.time-left {
  margin-left: 10px;
  font-size: 12px;
  color: gray;
}

.time-right {
  margin-right: 10px;
  font-size: 12px;
  color: gray;
}


#message {
  resize: none;          /* ユーザーによる手動リサイズを禁止 */
  overflow-y: auto;      /* 入力が多い場合はスクロールバー */
  max-height: 150px;     /* 上限の高さ（ここは好みで調整） */
}



/* ////////////////////////////////////////////////////////// */
/* エラー画面 */

.error-tenmplate {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: #333;
}

.error-container {
  text-align: center;
  max-width: 600px;
  padding: 20px;
}
.error-container h1 {
  font-size: 50px;
  margin: 0;
  color: #e74c3c;
}
.error-container h2 {
  font-size: 24px;
  margin: 10px 0;
}
.error-container p {
  font-size: 16px;
  margin: 15px 0;
}
.error-container a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #3498db;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.error-container a:hover {
  background-color: #2980b9;
}




/* ////////////////////////////////////////////////////////// */
/* 利用規約とプライバシーポリシー画面 */

.privacy-text h2, .terms-text h2{
  text-align: left;
}

/* ////////////////////////////////////////////////////////// */
/* faq画面 */

h1{
  font-weight: bold;
}

.faq-question {
  font-weight: bold;
  color: #333;
}
.faq-answer {
  margin-top: 0.5rem;
  color: #555;
}
.faq-item {
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* マイページ */
.pointer {
  cursor: pointer;
}

/* PWエラーメッセージのスタイル */
.password-error-message {
  display: none; /* 初期状態で非表示 */
}


/* ////////////////////////////////////////////////////////// */
/* 大学公式サイトページ */
.section-title {
  text-align: left;
}

h3 {
  color: #333;
  font-size: 20px;
  margin-bottom: 20px;
  text-align: left;
  font-weight: 600;
}




/* ////////////////////////////////////////////////////////// */
/* 都道府県別紹介ページ */
/* 
.toc ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.toc > ul > li {
  font-weight: bold;
  margin: 10px 0;
}

.toc ul ul {
  margin-left: 20px;
  font-weight: normal;
}

.toc a {
  text-decoration: none;
  color: #333333;
}

.toc a:hover {
  text-decoration: underline;
}

.toc {
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-size: 10px 10px;
}



.section-title {
  font-size: 1.8rem;
  margin-top: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
  color: #333;
}

.subsection-title {
  font-size: 1.4rem;
  color: #212529;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1.5px solid #515151;
}


.section-paragraph {
  line-height: 1.8;
  font-size: 1rem;
  color: #333;
}


.custom-list {
  padding-left: 20px;
  margin-top: 15px;
}

.custom-list li {
  margin-bottom: 20px;
}


.source-link, .school-link {
  color: #007bff;
  text-decoration: none;
}

.source-link:hover, .school-link:hover {
  text-decoration: underline;
}

.info-text {
  font-size: 1.3rem;
  color: #212529;
  margin-top: 20px;
  text-decoration:underline;
}

.item-text{
  font-size: 1.1rem;
  color: #212529;
  margin-top: 20px;
  font-weight: bold;
} */


.userCard {
  font-size: 0.8em; /* 90%のサイズに縮小 */
}
