﻿.bubble {
  /*layout*/
  position: relative;
  max-width: 30em;
  /*looks*/
  background-color: #fff;
  padding: .75em .875em;
  font-size: 1.25em;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, .3), 0 0.0625rem 0.125rem rgba(0, 0, 0, .2);
}

  .bubble::before {
    /*layout*/
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    bottom: 100%;
    right: 1em; /*offset should move with padding of parent*/
    border: .5rem solid transparent;
    border-top: none;
    /*looks*/
    border-bottom-color: #fff;
    filter: drop-shadow(0 -0.0625rem 0.0625rem rgba(0, 0, 0, .1));
  }

.signin-emphasis {
  font-weight: 400;
  border-bottom: 2px dotted gray;
}

.bubble-container {
  font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height: 1.5;
  font-weight: 300;
  color: #192229;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-grow: 1;
}

/* 目立つ説明欄 */
.bs-callout {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
  border-left-width: 5px;
  border-radius: 3px;
}

.bs-callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.bs-callout p:last-child {
  margin-bottom: 0;
}

.bs-callout code {
  border-radius: 3px;
}

.bs-callout + .bs-callout {
  margin-top: -5px;
}

.bs-callout-default {
  border-left-color: #777;
}

.bs-callout-default h4 {
  color: #777;
}

.bs-callout-primary {
  border-left-color: #428bca;
}

.bs-callout-primary h4 {
  color: #428bca;
}

.bs-callout-success {
  border-left-color: #5cb85c;
}

.bs-callout-success h4 {
  color: #5cb85c;
}

.bs-callout-danger {
  border-left-color: #d9534f;
}

.bs-callout-danger h4 {
  color: #d9534f;
}

.bs-callout-warning {
  border-left-color: #f0ad4e;
}

.bs-callout-warning h4 {
  color: #f0ad4e;
}

.bs-callout-info {
  border-left-color: #5bc0de;
}

.bs-callout-info h4 {
  color: #5bc0de;
}

.btn-width-70 {
    width: 70px;
}

.mymodal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.mymodal-content {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #888;
    width: 26rem; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mymodal-header {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6 !important;
}

.myclose {
    color: #aaa;
    float: right;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.myclose:hover, .myclose:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.training-image-container {
    display: inline-block;
}

.responsive-img {
    width: 550px;
    height: auto;
    display: block;
}

.search__title {
    margin-bottom: .5rem;
}

.serial-dropdown {
    /* Bootstrap dropdown-menu は position:absolute が標準。念のため固定 */
    position: absolute;
    top: calc(100% + 6px); /* inputの直下に少し余白 */
    left: 0;
    right: 0;
    display: none; /* show が付くまで非表示 */
    max-height: 180px; /* 画像のように縦長 */
    overflow-y: auto;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    /* 影は強すぎない程度 */
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    padding: .25rem 0;
}

    .serial-dropdown.show {
        display: block;
    }

    .serial-dropdown .dropdown-item {
        padding: .45rem .75rem;
    }

        .serial-dropdown .dropdown-item:hover {
            background: #f5f5f5;
        }

/* ===== 利用規約ページ ===== */
.terms-page-container {
    max-width: 980px;
    margin: 40px auto;
}

/* タイトル */
.terms-page-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #2b5e9b;
}

/* 青い外枠 */
.terms-page-frame {
    border: 1px solid #86b7fe;
    background: #f8fbff;
    padding: 10px;
}

/* 内側スクロール枠 */
.terms-page-scroll {
    height: 560px;
    overflow-y: auto;
    background: #fff;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ボタン中央寄せ */
.terms-page-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

    .terms-page-actions .btn {
        min-width: 180px;
    }

/* ===== 規約：見出し ===== */
.terms-section-title {
    font-size: 1.05rem; /* 見出しを少し大きく */
    font-weight: 700; /* 太字 */
    margin-top: 1.6em; /* 前の本文との距離を広く */
    margin-bottom: 0.6em; /* 見出し直下は少し空ける */
    color: #1f3c88; /* 見出しと分かる色 */
    border-top: 1px solid #dde6f7;
    padding-top: 0.8em;
}

/* ===== 規約：本文 ===== */
.terms-paragraph {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 0.35em; /* 本文同士は詰める */
    margin-bottom: 0.35em;
    padding-left: 1.2em; /* 本文を字下げ */
    text-indent: 0; /* 念のため */
}

/* 空行（段落区切り） */
.terms-blank-line {
    margin: 0.6em 0;
}

/* フッター */
.terms-footer {
    margin-top: 2em;
    font-weight: 600;
}

/* Multi Serial Search ページ選択トグルボタン */
#multiSerialPageToggle {
    margin-left: 0.5rem;
    display: inline-flex;
    gap: 0.25rem;
}

    #multiSerialPageToggle .btn {
        border-radius: 0.5rem !important;
        background-color: #fff;
        color: #212529;
        border-color: #dee2e6;
    }

        #multiSerialPageToggle .btn:hover {
            background-color: #e9ecef;
        }

        #multiSerialPageToggle .btn.active {
            background-color: #e2e6ea;
            color: #212529;
            border-color: #adb5bd;
            font-weight: 600;
        }

/* Multi Serial Search モーダル幅（ラベルが一行に収まるよう拡張） */
#multiSerialSearchModal .mymodal-content {
    width: 28rem;
}