﻿html {
    font-size: 14px;
}
body {
    font-family: 'Noto Sans CJK JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

body[data-theme="dark"] {
    --page-dark-bg: #1e1e1e;
    --page-dark-surface: #2d2d2d;
    --page-dark-border: #555555;
    --page-dark-text: #e0e0e0;
    --page-dark-muted: #b8b8b8;
    --bs-body-bg: var(--page-dark-bg);
    --bs-body-color: var(--page-dark-text);
    --bs-secondary-color: var(--page-dark-muted);
    --bs-tertiary-bg: var(--page-dark-surface);
    --bs-border-color: var(--page-dark-border);
    background-color: var(--page-dark-bg);
    color: var(--page-dark-text);
}

/* Sass の色ユーティリティ btn-gpt-green に Bootstrap の状態色も渡す。 */
.btn-gpt-green {
    --bs-btn-color: var(--bs-white);
    --bs-btn-border-color: var(--bs-success);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--bs-success);
    --bs-btn-hover-border-color: var(--bs-success);
    --bs-btn-focus-shadow-rgb: var(--bs-success-rgb);
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--bs-success);
    --bs-btn-active-border-color: var(--bs-success);
    --bs-btn-disabled-color: var(--bs-white);
    --bs-btn-disabled-bg: var(--bs-success);
    --bs-btn-disabled-border-color: var(--bs-success);
}

/* �w�b�_�[�̕����ʒu�𒲐� */
.navbar-brand, .nav-link {
    padding-top: 0px; /* ��������ɂ��炷 */
    padding-bottom: 1px;
    color: #737373 !important;
}

/*���ԃ}�[�N*/
.img-settings {
    width: 20px;
    height: 20px;
    margin-top: 0px;
}

/*###RAG_�ŗL��CSS�ݒ�###*/
/*�w�b�_�[�^�C�g��*/
.navbarTitle {
    vertical-align: text-top; /*���}���u�B�����s���̂��߁A�����̕K�v����B*/
    margin-right: 10px;
    margin-left: 10px;
}

/*�w�b�_�[�^�C�g���Q_�T�u*/
.navbarTitle2 {
    font-size: 0.7em;
    font-weight: 400;
}

/*�w�b�_�[�{�^��*/
.btn_hd {
    width:100%;
    border: 1px solid #3563ED;
    border-radius: .25rem;
    padding: 0px;
}
    .btn_hd:hover {
        background-color: #E7EDFF;
        color: #FFFFFF;
        text-decoration: none;
    }

/*����CSS�ŏ���*/
:focus-visible{
    outline:none;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 0.02rem white, 0 0 0 0.1rem #3563ED;
}


/*�w�b�_�[_���j���[*/
.headmenu {
    width: 100%
}

/*�w�b�_�[�{�^���J���[*/
.btn_cl {
    color: #3563ED;
    font-size: 14px;
    letter-spacing: -0.1em; /* �K�x�ɕ����Ԃ��l�߂� */
    text-decoration:none;
}

/*�w�b�_�[_���[�U��_*/
.username {
    display: flex;
    align-items: center;
    width: auto;
    margin-right: 0;
    margin-left: 10px;
    text-decoration: none;
    color: #737373 !important;
}

    .username:hover {
        color: #323232;
        text-decoration: none;
    }

/*�w�b�_�[_���O�A�E�g_*/
.psn_logout {
    width: auto;
    padding: 2px;
    text-align: center;
    margin-top: 2px !important;
    margin-right: auto;
    margin-left: 10px;
}

/* ダークモード切り替え */
.psn_theme {
    width: auto;
    padding: 2px;
    text-align: center;
    margin-top: 2px !important;
    margin-right: auto;
    margin-left: 10px;
}

/* バージョン更新ボタン */
.psn_update {
    width: auto;
    padding: 2px;
    text-align: center;
    margin-top: 2px !important;
    margin-right: auto;
    margin-left: 10px;
    position: relative;
}


/*�w�b�_�[_�T�|�[�g*/
.psn_support {
    width: auto;
    padding: 2px;
    text-align: center;
    margin-top: 2px !important;
    margin-right: auto;
    margin-left: 10px;
}

    /* ���O�A�E�g���T�|�[�g�{�^���̃T�C�Y�𓝈� */
    .psn_logout .btn_hd, .psn_support .btn_hd, .psn_theme .btn_hd, .psn_update .btn_hd, .psn_mail .btn_hd {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: 2.2rem;
        width: 6rem;
        padding: 0px 2px;
        border: 1px solid #3563ED;
        border-radius: .25rem;
        box-sizing: border-box;
    }

    .psn_logout .btn_hd form {
        display: inline-flex;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

        .psn_logout .btn_hd button, .psn_support .btn_hd a, .psn_theme .btn_hd button, .psn_update .btn_hd button, .psn_mail .btn_hd button {
            font-size: 1rem;
            height: auto;
            width: 100%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 2px 6px;
            white-space: nowrap;
            border: none;
            outline: none;
            box-sizing: border-box;
        }

            .psn_logout .btn_hd button:focus, .psn_support .btn_hd a:focus, .psn_theme .btn_hd button:focus, .psn_update .btn_hd button:focus, .psn_mail .btn_hd button:focus {
                outline: none;
                box-shadow: none;
            }

/*�w�b�_�[_���[�U�ꗗ��*/
.psn_settings {
    width: auto;
    margin-right: 50px;
    margin-left: 30px;
    margin-top: 5px !important;
    text-decoration: none;
    color: #737373;
}

/*���O�C��_�p�X���[�h���Y��̕�*/
.text-line {
    color: #3563ED;
    text-decoration: underline;
    font-size:15px;
    margin-right:4px;
}

/* �Ǘ��҉�ʃ{�^���X�^�C�� */
.btn-outline-custom {
    background-color: white; /* �w�i�͔� */
    border: 1px solid #ced4da; /* �D�F�̉� */
    color: #0d6efd; /* �����F�͐� */
    font-weight: bold; /* ���� */
    padding: 0.5rem 1rem; /* �]�� */
    border-radius: 0.25rem; /* �p�� */
    transition: background-color 0.2s ease, border-color 0.2s ease; /* �Ȃ߂炩�ω� */
}
.btn-outline-custom:hover {
    background-color: #f8f9fa; /* �z�o�[���ɏ����Â����� */
    border-color: #adb5bd; /* �z�o�[���̉��̐F�������Z�� */
    color: #0b5ed7; /* �����F�͏����Z���� */
}

/* custom.css */
@keyframes marquee {
    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }
}

/* ナビゲーションバーの横並び */
.navbar-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

/* 更新ボタン内のNewバッジの位置調整 */
.psn_update .btn_hd button {
    position: relative;
}

.psn_update .version-new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
}

/* すべてのヘッダーボタンのマージンと余白を完全に統一して綺麗に横並びにする */
.psn_logout, .psn_update, .psn_mail, .psn_theme, .psn_support {
    width: auto !important;
    padding: 0 !important;
    text-align: center;
    margin-top: 2px !important;
    margin-right: 0 !important;
    margin-left: 8px !important;
}

/* レスポンシブ: 狭画面でハンバーガーメニュー化（1200px以下） */
@media (max-width: 1200px) {
    /* ポップアップ（ドロップダウン）内では縦並びにする */
    .navbar-collapse.show .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 8px !important;
        padding: 6px 0;
    }

    .navbar-collapse.show .navbar-nav > div,
    .navbar-collapse.show .navbar-nav > li {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        justify-content: center;
    }

    .navbar-collapse.show .btn_hd {
        width: 100% !important;
        max-width: 200px;
        min-height: 2.4rem;
        display: inline-flex !important;
    }

    .navbar-collapse.show .btn_cl {
        display: inline !important; /* ポップアップ内では文字をしっかり表示 */
    }

    .username .nav-link {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        font-size: 0.9rem;
    }
}
.support-bot-frame {
  border: 0;
  display: block;
  min-height: 38rem;
  width: 100%;
}

.tutorial-overlay {
  background-color: transparent;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.65);
  inset: auto;
  opacity: 1;
  pointer-events: none;
  position: fixed;
  z-index: 1060;
}

.tutorial-intro-overlay {
  background-color: rgba(0, 0, 0, 0.65);
  inset: 0;
  position: fixed;
  z-index: 1080;
}

.tutorial-intro {
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
  left: 50%;
  max-width: min(28rem, calc(100vw - 2rem));
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28rem;
  z-index: 1090;
}

.tutorial-highlight {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  outline: 3px solid var(--bs-warning);
  outline-offset: 4px;
  position: relative;
  z-index: 1070;
}

.tutorial-popover {
  --tutorial-arrow-left: 50%;
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
  max-width: min(22rem, calc(100vw - 2rem));
  position: fixed;
  width: 22rem;
  z-index: 1080;
}

.tutorial-popover::before {
  border-bottom: 0.7rem solid var(--bs-border-color);
  border-left: 0.7rem solid transparent;
  border-right: 0.7rem solid transparent;
  content: "";
  left: calc(var(--tutorial-arrow-left, 1.95rem) - 0.7rem);
  position: absolute;
  top: -0.7rem;
}

.tutorial-popover::after {
  border-bottom: 0.62rem solid var(--bs-body-bg);
  border-left: 0.62rem solid transparent;
  border-right: 0.62rem solid transparent;
  content: "";
  left: calc(var(--tutorial-arrow-left, 1.95rem) - 0.62rem);
  position: absolute;
  top: -0.58rem;
}

.tutorial-popover.tutorial-popover-above::before {
  border-bottom: 0;
  border-top: 0.7rem solid var(--bs-border-color);
  bottom: -0.7rem;
  top: auto;
}

.tutorial-popover.tutorial-popover-above::after {
  border-bottom: 0;
  border-top: 0.62rem solid var(--bs-body-bg);
  bottom: -0.58rem;
  top: auto;
}

.tutorial-step-count {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.tutorial-waiting {
  color: var(--bs-success);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: right;
}

.tutorial-danger {
  color: var(--bs-danger);
  display: block;
  font-weight: 700;
  margin-top: 0.5rem;
}

[data-theme="dark"] .tutorial-popover {
  border-color: var(--bs-border-color);
}

@media (max-width: 767.98px) {
  .support-bot-frame {
    min-height: 30rem;
  }

  .tutorial-intro,
  .tutorial-popover {
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    width: calc(100vw - 1rem);
  }

  .tutorial-popover {
    padding: 1rem !important;
  }

  .tutorial-popover h2 {
    font-size: 1.1rem;
  }

  .tutorial-popover p {
    font-size: 0.95rem;
  }

  .tutorial-popover.tutorial-popover-constrained::before,
  .tutorial-popover.tutorial-popover-constrained::after {
    display: none;
  }
}
