/*ローディング画面*/

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    color: #1f2933;
    background-color: #fff;
    font-family: "Segoe UI", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.7;
}

a {
    color: #105dab;
}

.login-form{
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 3em auto;
    max-width: 420px;
    padding: 32px;
}

.sys-info{
    margin: 3em auto;
    max-width: 370px;
}

.login_label{
    color: #0e4d8b;
    font-size: 25px;
    text-align: center;
}

.pass-error{
    background: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    color: #a8071a;
    margin: 0;
    padding: 10px 12px;
}

.pass_change_success{
    text-align: center;
}

.thanks-section,
.column-section,
.ai365-section {
    margin: 32px 0;
    padding: 28px 0;
}

.thanks-section {
    background: #f7fbff;
    border: 1px solid #cbdcf2;
    border-left: 6px solid #105dab;
    border-radius: 8px;
    padding: 28px 24px;
    text-align: center;
}

.section-title {
    color: #0e4d8b;
    font-size: 1.25em;
    margin: 0 0 10px;
}

/*ヘッダー*/
.header_layout{
    background-color:#105dab; 
    color:White ; 
    width:100%; 
}

header {
    margin: 0;
    padding: 0;
}

.header_position{
    margin: 0;
    padding: 12px 22px;
    background-color:#105dab; 
    color:White ; 
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.2;
}

/*ここからcontentの要素*/
.content{
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 32px 0;
    background-color: White;
}

#button {
    appearance: none;
    border: 0;
    border-radius: 5px;
    background: #105dab;
    color: #fff;
    cursor: pointer;
    min-width: 112px;
    padding: 10px 18px;
    font-size: 16px;
}

#button:disabled {
    cursor: wait;
    opacity: 0.7;
}

button,
input[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 5px;
    background: #105dab;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 18px;
}

input[type="text"],
input[type="password"],
textarea {
    border: 1px solid #aab3bf;
    border-radius: 6px;
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}


.textbox-001-label,
.textbox-001 {
    color: #333;
}

.textbox-001-label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.25em;
    font-weight: 700;
    color: #0e4d8b;
}

.textbox-001 {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #969da3;
    border-radius: 6px;
    font-size: 1.1em;
    line-height: 1.8;
    min-height: 220px;
    resize: vertical;
}

.textbox-001::placeholder {
    color: #999;
}

.back_page {
    text-align: right;
}

.letter{
    font-size: 1.1em;
    font-weight: bold;
}

.result{
    width:100%; 
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.page-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.question-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 18px;
}

.loading-message {
    color: #52606d;
}

.qa-section {
    border-top: 1px solid #d8dee8;
    padding: 24px 0;
}

.qa-section:nth-of-type(2) {
    margin: 24px 0;
    padding: 24px;
}

.survey-section {
    background: #f7fbff;
    border: 1px solid #cbdcf2;
    border-left: 6px solid #105dab;
    border-radius: 8px;
    margin: 32px 0 8px;
    padding: 24px;
}

.qa-section:first-of-type {
    background: #fafcff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 20px 24px;
}

.question-text {
    color: #111827;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.8;
    margin: 0;
}

.question-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.secondary-button {
    border: 1px solid #105dab;
    border-radius: 5px;
    color: #105dab;
    display: inline-block;
    font-size: 0.95em;
    padding: 6px 12px;
    text-decoration: none;
}

.secondary-button:hover {
    background: #eef6ff;
}

.qa-section .letter {
    color: #0e4d8b;
    font-size: 1.25em;
    margin: 0 0 12px;
}

.survey-fieldset {
    border: 0;
    margin: 20px 0 0;
    padding: 0;
}

.survey-fieldset legend {
    font-weight: 600;
    margin-bottom: 10px;
}

/*ここまでcontentの要素*/
.flex-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.flex-footer {
    width: 99%;
    text-align: center;
    margin-top: auto;
    padding: 24px 0;
}

.image-container {
    max-width: 120px;
    width: 18%;
    object-fit: contain;
}

/* ローディングアイコンを含んだ全体の領域 */
/* ローディングアイコン */
#loading {
    /* 親要素からの相対位置になるようにする */
    position: absolute;
    /* 親要素の真ん中に来るようにする */
    top: 25%;
    left: 0;
    right: 0;
    /* 親要素の中央に来るようにして余白を自動調整する */
    margin: auto;
    /* ローディングアイコンのサイズ */
    width: 70px;
    height: 70px;
    /* 丸める */
    border-radius: 50%;
    /* 太さや色 */
    border: 8px solid #105dab;
    /* 右側を透過することで1/4だけ空いた円にする */
    border-right-color: transparent;
    /* 1秒ごとのアニメーションの指定 */
    animation: spin 1s linear infinite;
}

/* アニメーションの設定 */
@keyframes spin {
/* 0度回す */
0% {
    transform: rotate(0deg);
}
/* 180度回す */
50% {
    transform: rotate(180deg);
}
/* 360度回す */
100% {
    transform: rotate(360deg);
}
}


/* アンケート画面の設定 */
/* ラジオボタンの設定 */

dl {
    list-style-type: decimal;
}

.radio-vertical {                                          
    flex-direction: column;                                                       
    display: inline-flex;
    gap: 6px;
}  

.survey-section .letter {
    color: #0e4d8b;
    font-size: 1.25em;
    margin: 0 0 8px;
}

.survey-section p {
    margin-top: 0;
}

.survey-section .radio-vertical {
    display: flex;
    max-width: 360px;
    width: 100%;
}

.survey-section .radio-vertical label {
    align-items: center;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
}

.survey-section input[type="radio"] {
    accent-color: #105dab;
}

.survey-section .form-actions {
    border-top: 1px solid #d8dee8;
    margin-top: 24px;
    padding-top: 18px;
}

/* 送信ボタンの設定 */
.send_button {
    float: none;
}

.form-link {
    text-align: right;
}

@media (max-width: 640px) {
    .content {
        width: min(100% - 24px, 960px);
        padding: 24px 0;
    }

    .login-form {
        margin: 1.5em auto;
        padding: 24px;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    button,
    input[type="submit"],
    #button {
        width: 100%;
    }

    .image-container {
        width: 100px;
    }
}

/* 背景色 */
.red {
	background-color: #fffaf0;
}

/* ==============「本サイトについて」sitepolicy.html ==============*/

/* 見出し1 */
.sitepolicy-h1{
    border-bottom: solid 3px ;
    color: #4a4a4a;
}

/* 見出し2 */
.sitepolicy-h2{
    padding: 0.25em 0.5em; 
    background: transparent; 
    border-left: solid 5px #105dab;
    font-weight: bold;
}

.sitepolicy-list{
    list-style: disc;
}

.back_page2 {
    text-align: center;
}

/* ==============「ベース」base.html ==============*/

/* リンクの配置 */
.base-link{
    display: flex;
    justify-content: center;
    margin-right: 10px;
}


/* ==============「アンケート」.html ==============*/

.field {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    width: 100%;
}

.txt-date {
    font-size: 90%;
    margin-bottom: 5px;
}

.ttl {
    text-align: left;
    width:100%;
    font-size: 90%;
    line-height: 1.6;
    margin: 12px 0 0;
}

.ttl2 {
    text-align: center;
    color:#00499B;
}

.ttl3 {
    text-align: center;
    font-weight: bold;
}

.column-section {
    border-top: 2px solid #d8dee8;
    padding-top: 32px;
}

.column-link {
    text-align: right;
}

.column-card {
    display: block;
    text-decoration: none;
}

.column-card:hover .ttl {
    text-decoration: underline;
}

.item2 {
    aspect-ratio: 16 / 9;
    background-color: #f5f7fa;
    border: 1px solid #d8dee8;
    overflow: hidden;
    width: 100%;
}

.item2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: bottom;
}

.item3 {
    text-align: center;
    width: 20%;
}

.container2 {
    background: url(https://ai365.jp/cms/wp-content/themes/ait_ai365/img/img_topview_m.svg) no-repeat center;
    text-align:center;
    background-size: cover;
    height: 160px;
    margin: 0 auto;
    max-width: 760px;
    width: 80%;
}

.ai365-section {
    border-top: 2px solid #d8dee8;
    text-align: center;
}

.ai365-section a {
    display: block;
    text-decoration: none;
}

.ai365-section a:hover .text2 {
    text-decoration: underline;
}

.text1 {
    text-align: center;
    color:#4a4a4a; 
}

.text2 {
    text-align: center;
    color:#4a4a4a; 
    font-size: 90%;
}

.line1{
    border:none;
    border-top:1px solid #ccc;
    border-bottom:1px solid #fff;
  }

.column-section .line1 {
    border: 0;
}

@media (max-width: 800px) {
    .field {
        grid-template-columns: 1fr;
    }
}
