/*
 * shanonRedesign_Common.css (更新版)
 * 汎用的なリニューアルデザインスタイルシート
 */

/* ----------------------------------
 * 基本設定とリセット
 * ---------------------------------- */

/* bodyの基本スタイル (既存のスタイルを!importantで上書き) */
body {
    background-color: #fdfaf3 !important; /* 背景色 */
    font-family:"Noto Sans JP",  "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #54483c !important; /* 基本文字色 */
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
}

:root {
    background-color: #fdfaf3;
}
a,a:link{
    color:#54483c;
    text-decoration: underline;
}
a:visited{
    color: #2C8782;
    text-decoration: underline;
}

a:hover {
    color: #2C8782;
    text-decoration: underline;
}

label, input, button, select, textarea {
    font-size: 15px;
    font-weight: normal;
    line-height: 20px;
    vertical-align: middle;
    margin-bottom: 5px;
    display: inline-block;
}
h3{
    padding: 10px 0;
    font-size: 24px;
}
blockquote {
    border-color: #01A199 !important;
}
blockquote p{
    color: #54483c !important;
}
blockquote a{
    text-decoration:none !important;
    font-weight: normal !important;
}
.set_recalculate {
    background-color: transparent !important;
}
/* ----------------------------------
 * 全体レイアウト
 * ---------------------------------- */

/* .ss_contents (既存のスタイルを上書き) */
.ss_contents {
    width: 1000px;
    margin: 60px auto 80px;
/*    padding: 40px 50px;
    background-color: #ffffff !important;
    border-radius: 8px;
    box-sizing: border-box; */
}
body>.ss_contents {
    padding-top: 0;
}
.ss_login,
.ss_form,
.cmmnBG_w{
    margin: 40px auto;
    padding: 40px 50px;
    background-color: #ffffff !important;
    border-radius: 8px;
    box-sizing: border-box;
}

#header > img,
body>#header .logo img,
#header h1.logo{ 
    margin: 0; 
}

.navbar {
    margin-bottom: 0;
}
.navbar-inner {
    background: none;
    border: none;
    box-shadow: none;
    border-radius: unset;
}
.navbar .brand {
    padding: 10px 0;
    font-size: 24px;
    text-shadow: none;
}
/* エラーページ */
.alert-danger, 
.alert-error {
    background-color: #ffffff;
    border-color: #ff0000;
}

/* ----------------------------------
 * パンくずリスト
 * ---------------------------------- */

/* .ss_contents > .breadcrumb (セレクタを詳細化して上書き) */
.navbar .brand {
    background: transparent !important;
    box-shadow: none;
    color: #54483c ;
}

.ss_contents > .breadcrumb {
    display: block !important;
    background-color: transparent !important;
    border-radius: 0;
    padding: 0 0 20px 0;
    margin: 0 0 20px 0;
    list-style: none;
}
.ss_contents > .breadcrumb li {
    display: inline;
    font-size: 14px;
    color: #54483c;
    text-shadow: none;
}
.ss_contents > .breadcrumb .divider {
    padding: 0 8px;
    color: #54483c;
}
.ss_contents > .breadcrumb .ss_active {
    color: #54483c !important;
    font-weight: bold;
}

/* ----------------------------------
 * フォームレイアウト table
 * ---------------------------------- */

/* bootstrap.cssのtableスタイルを詳細なセレクタで上書き */
.table,
.table-bordered,
.table-striped,
.ss_form .table,
.ss_form .table-bordered,
.ss_form .table-striped {
    width: 100%;
    border-collapse: separate; /* テーブルのレイアウトを解除するために必要 */
    border-spacing: 0;
    border: none;
}


/* .ss_form .table (セレクタを詳細化してレイアウトをリセット) */
.table th,
.table td,
.ss_form .table th,
.ss_form .table td {
    display: block;
    width: 100%;
    border: none !important;
    padding: 0;
    background-color: transparent !important;
    text-align: left;
}

tr,
.ss_form tr {
    margin-bottom: 24px;
    display: block; /* trもブロック要素に */
}

/* .ss_form .table th (ラベルとして再定義) */
.table th,
.ss_form .table th {
    font-weight: 600;
    color: #54483c !important;
    margin-bottom: 8px;
    font-size: 1.2em;
    line-height: 1.625;
}

/* .ss_input のスタイルを調整 */
.ss_input {
    display: block;
    align-items: center;
    row-gap: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    height: 54px;
    padding: 0 12px;
    margin-bottom: 8px;
    border: 1px solid #2C8782 !important;
    border-radius: 6px !important;
    background-color: #f8ffff !important;
    font-size: 1.8rem;
    color: #54483c;
    box-sizing: border-box;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
/* 横並びでinputがあるときの定義 姓名など*/
.table td:has(.ss_input:nth-of-type(2):last-child) .ss_input{
        width: auto;
        display: table-cell;
}
.table td:has(.ss_input:nth-of-type(2):last-child) .ss_input input[type="text"]{
        width: 80%;
}
/* フォーカス時のスタイルを再定義 */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    border-color: #8c7851 !important;
    background-color: #f8ffff !important;
    box-shadow: none !important;
    outline: none;
}

/* ラジオボタンとチェックボックス */
input[type="radio"],
input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    margin-right: 10px;
}

/* 選択時の色をフォントカラーに合わせる */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
    accent-color: #54483c;
}


/* 補足テキストのスタイル */
.ss_bottomComment,
.ss_rightComment,
.ss_leftComment {
    font-size: 13px;
    color: #8c7851;
    white-space: normal;
}
.ss_bottomComment { flex-basis: 100%; }
.ss_leftComment { margin-right: 10px; }
.ss_rightComment { margin-left: 10px; }

/* ----------------------------------
 * エラーメッセージのスタイル
 * エラーテキスト、必須アイコン
 * ---------------------------------- */

.ss_contents p font {
    color: #FD5789 !important;
}
table th .ss_notnull {
    vertical-align: text-top;
}

.label-warning {
    display: inline-block;
    background-color: #2C8782 !important;
    color: white !important;
    font-size: 12px;
    padding: 6px 6px 5px;
    border-radius: 4px;
    vertical-align: middle;
    /* margin-left: 8px; */
    text-shadow: none;
}

/* .formError {
    display: block;
    margin-bottom: 8px;
} */
.warning input, 
.warning select,
.warning textarea {
    border-color: #2C8782 !important;
}

.formError .label-warning,
.ss_input .label-warning,
.warning > span.label.label-warning,
#zip .ss_input span.label-warning {
    background: #FD5789  !important;
    margin-bottom: 8px;
}

.formError .formErrorContent,
.ss_error_msg,
.errorMsg,
#zip .ss_input span.ss_error_msg,
#zip .ss_input span.formErrorContent {
    color: #FD5789 !important;
    vertical-align: top;
}
.table tbody tr.warning > td {
    background-color: transparent !important;
}

/* <font color="red"> タグで出力されるエラーメッセージの色を上書き */
p font[color="red"] {
    color: #FD5789 !important;
}

/* ----------------------------------
 * 特定の入力欄の調整
 * ---------------------------------- */

#zip .ss_input { flex-wrap: nowrap; }
#zip input:first-of-type { width: 80px; flex-grow: 0; }
#zip input:last-of-type { width: 100px; flex-grow: 0; }
#zip .ss_input span { margin: 0 5px; }
#zip .ss_input span.formError { margin: 0; }
.validate5 .ss_input { flex-wrap: wrap; }
.validate5 .ss_input input { max-width: 300px; }
.validate5 .ss_bottomComment { order: 2; }

/* ----------------------------------
 * ボタンのスタイル
 * ---------------------------------- */
.ss_form_btn{
    width:80%;
}
.ss_form_btn .btn a,
.ss_form_btn .btn a:link,
.ss_form_btn .btn a:visited,
.ss_form_btn .btn a:hover{
    color:unset;
    text-decoration: none;
}

/* .ss_form_btn .btn (セレクタを詳細化) のスタイルを全面的に再定義 */
.ss_form_btn .btn{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px !important; /* 角をより丸くする */
    border: 2px solid #9c8e80;
    background: #FAF1F0 !important; /* ボタンの背景色 */
    color: #54483c; /* 文字色 */
    transition: all 0.1s ease-in-out;
    padding: 5px 34px;
    box-shadow: 0px 8px #9c8e80 !important; /* 下の影 */
    text-shadow: none;
    cursor: pointer;
    margin: 20px 0;
    line-height: 1.5;
}
.ss_form_btn button.btn:has(+ button.btn){
    margin-right: 10px;
}
.ss_form_btn button.btn + button.btn{
    margin-left: 10px;
}
.btn:focus {
    outline: none;
}
.ss_form_btn .btn:hover,
.ss_form_btn .btn:focus {
    background-color: #f5eded !important; /* ホバー時に少し明るく */
    border-color: #9c8e80 !important;
    color: #54483c;
}

.ss_form_btn .btn:active {
    transform: translateY(6px); /* 沈む効果 */
    box-shadow: 0px 0px #9c8e80 !important;
}

/* .ss_form_btn .btn-primary のスタイルを再定義 */
.ss_form_btn .btn-primary,
.ss_form_btn .btn-primary:hover,
.ss_form_btn .btn-primary:focus,
.ss_form_btn .btn-primary:active {
    background: #FAF1F0 !important; /* 背景色は共通 */
    color: #01A199 !important; /* 文字色を緑系に */
    border-color: #01A199 !important;
    box-shadow: 0px 8px #0C6C6B !important; /* 影の色を緑系に */
}

.ss_form_btn .btn-primary:hover {
    background-color: #f5eded !important; /* ホバー時に少し明るく */
}

.ss_form_btn .btn-primary:active {
    box-shadow: 0px 0px #0C6C6B !important;
}
.ss_form_btn .btn-primary:disabled{
	transform: translateY(6px); /* 沈む効果 */
    box-shadow: 0px 0px #0C6C6B !important;
}

/* ボタン内のアイコンを疑似要素で作成 */
.btn i[class*="icon-chevron"] {
    /* Bootstrapの背景画像アイコンをリセット */
    background-image: none !important;
    width: auto;
    height: auto;
    line-height: inherit;
    vertical-align: initial;
    margin: 0;
    /* 疑似要素を配置するためのコンテナにする */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-style: normal;
}

.btn i[class*="icon-chevron"]::before {
    position: absolute;
    top: 50%;
    transform: translateY(-48%);
    font-weight: 600;
    font-family: sans-serif;
}

.btn i.icon-chevron-left::before {
    content: '◀';
    left: 10px;
}

.btn i.icon-chevron-right::before {
    content: '▶';
    right: 10px;
}

 
/* ----------------------------------
 * フッター
 * ---------------------------------- */
#footer {
    background: #54483c !important; /* フッター背景色 */
    color: #fdfaf3 !important; /* フッター文字色 */
    text-align: center;
    padding: 30px 5.333333333333333vw;    
}

#footer .copy {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
}

#footer p {
        margin: 0;
        line-height: 1.5;
}

/* ----------------------------------
 * レスポンシブ設定
 * ---------------------------------- */

/* 大画面PC (1920px以上) */
@media screen and (min-width: 1920px) {
    .ss_contents {
        width: 60%;
    }
}

/* PC (768px以上) */
@media screen and (min-width: 768px) and (max-width: 1919px) {
    /* .ss_contents {
        width: 75%;
    } */

    #footer { padding: 40px 20px; }
    #footer .copy { font-size: 10px; }
}

/* タブレット・スマートフォン (767px以下) */
@media screen and (max-width: 767px) {
    .ss_contents {
        width: 95%;
        margin: 30px auto;
    }
    .ss_login,
    .ss_form,
    .cmmnBG_w{
        margin: 20px auto;
        padding: 20px 10px;
    }
    .ss_form table td, .ss_form_matrix table td, .ss_login table td, .ss_seminar_preview table td, .ss_mypage table td, .ss_public table td {
        display: block;
        border-top: none;
    }

    .ss_input {
        display: block;
    }
    .table td:has(.ss_input:nth-of-type(2):last-child) .ss_input{
            width: auto;
            display: block;
    }
    .table td:has(.ss_input:nth-of-type(2):last-child) .ss_input input[type="text"]{
            width: 100%;
    }
    #zip input:first-of-type { width: 100%; flex-grow: 0; }
    #zip input:last-of-type { width:  100%; flex-grow: 0; }
    .validate5 .ss_input input { max-width: 100%; }
    .ss_rightComment {
    margin-left: 0px;
    }
    .ss_form_btn {
        flex-direction: column;
        gap: 15px;
    }
    .ss_form_btn button.btn:has(+ button.btn){
    margin-right: 0;
    }
    .ss_form_btn button.btn + button.btn{
        margin-left: 0;
    }
}


/* ----------------------------------
 * 非表示
 * ---------------------------------- */
.disnone{
    display: none !important;
}