/* =====================================================
 * 共通スタイル
 * ===================================================== */
/* ------------------------
 * 基本設定
 * ------------------------ */
/*
 * サイト全体の基本フォント・背景
 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
}

/*
 * リンク共通
 */
a {
    color: #0053C1;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: #F7A531;
    text-decoration: none;
}
a:focus, a:active {
    outline: none;
    border: none;
}

/*
 * Astraリンク装飾解除
 */
.ast-single-post .entry-content a,
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a){
    text-decoration: none;
}


/* ------------------------
 * サイト背景
 * ------------------------ */
.site-content{
	background-color:#474747;                                               /* 変更箇所 */
    /* background: url(./../img/bk_img.jpg) top center / cover no-repeat; */
    position: relative;
    background-attachment: fixed;
}
.user-registration-MyAccount-navigation{
    display: none;
}
/* タイトル */
.site-title {
    font-size: 30px;                                                            /* 変更箇所（ロゴなしの場合） */
}

/* ------------------------
 * 共通ユーティリティ
 * ------------------------ */
.mat20{ margin-top: 20px!important; }
.mat40{ margin-top: 40px!important; }
.mab10{ margin-bottom: 10px!important; }
.mab20{ margin-bottom: 20px!important; }
.bold{ font-weight:bold!important; }
.red{ color:red!important; }
.fs18{ font-size: 18px!important; }
.fs20{ font-size: 20px!important; }
.fs22{ font-size:22px!important; }
.fs40{ font-size:40px!important; }
.fs60{ font-size:60px!important; }
.fs160{font-size: 160px!important;}

/* ------------------------
 * 共通コンテナ
 * ------------------------ */
/*
 * Astra標準幅を拡張
 */
.ast-container,
#main,
body.user-registration-page #user-registration.user-registration-MyAccount,
body.user-registration-page .user-registration.user-registration-MyAccount,
body.user-registration-membership_page_user-registration-login-forms #user-registration.user-registration-MyAccount, 
body.user-registration-membership_page_user-registration-login-forms .user-registration.user-registration-MyAccount{
    max-width: 1980px!important;
    padding:20!important;
}
.container, .ast-container {
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}
.custom-dashboard-content {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  gap: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  text-align: left;
}
#content {
    padding: 10px 40px 40px;
}
.site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container{
	padding:0;
}
.site-below-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container{
	padding:0 20px 20px 20px;
}
#user-registration.horizontal .user-registration-MyAccount-content{
    padding: 0!important;
}
#user-registration.vertical, #user-registration.horizontal,
#user-registration.horizontal, #user-registration{
    box-shadow:none!important;
}
body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount),
body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount),
body.user-registration-page #user-registration:not(.user-registration-MyAccount),
body.user-registration-page .user-registration:not(.user-registration-MyAccount) {
        margin: 0 auto;
        margin-top: 20px;
}
/* ログイン */
body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount),
body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount),
body.user-registration-page #user-registration:not(.user-registration-MyAccount), 
body.user-registration-page .user-registration:not(.user-registration-MyAccount){
    max-width: 1980px!important;
}
.ur-frontend-form.login {
    max-width: 1980px!important;
    padding: 20px!important;
}

/* レスポンシブ */
@media screen and (max-width: 1024px){
    .custom-dashboard-content{
        flex-direction: column; /* 横並び→縦並びに変更 */
        gap: 10px;
        padding: 10px;
    }
}
@media screen and (max-width: 768px) {
    .custom-dashboard-content {
        max-width: 100%;
    }
    #content {
        padding: 10px;
    }
    .site-primary-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container{
        padding:0;
    }
    .site-below-header-wrap.ast-builder-grid-row-container.site-header-focus-item.ast-container{
        padding:10px;
    }
    #user-registration.horizontal .user-registration-MyAccount-content{
        padding: 0!important;
    }
    .container, .ast-container {
        padding: 10px!important;
    }
}

/* ------------------------
 * タイトル
 * ------------------------ */
.title1{
    color: #2c3e50;
    margin-bottom: 0!important;
    font-size: 24px;
}
.title2 {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: clamp(1.6rem, 1.8vw, 2rem)!important;
    padding: 0.5em 1em!important;
    padding-right: 56px;
    margin-top: 1em!important;
    margin-bottom: 1em!important;
    color: #fff!important;
    letter-spacing: 0.2em;
    background: #66bada;                                                  /* 変更箇所 */
    text-align: left;
    font-weight: bold!important;
    line-height: 1;
    cursor: default;
    box-sizing: border-box;
}
.title3 {
    font-size: clamp(1.4rem, 1.6vw, 1.8rem)!important;
    color: #333!important;
    font-weight: bold;
    margin:  0.5em 0 1em!important;
    padding: 0.4em 0.8em!important;
    border-top: 3px solid #66bada;                                                  /* 変更箇所 */
    border-bottom: 1px solid #DDDDDD;
    text-align: left;
    letter-spacing: 0.1em;
}
.title4 {
    position: relative;
    font-size: clamp(1.2rem, 1.4vw, 1.6rem)!important;
    font-weight: 600;
    margin:  0.3em 0 0.8em!important;
    padding-left: 0.75em;
    border-left: 5px solid #66bada;                                                  /* 変更箇所 */
    color: #333;
}
.title5 {
font-size: clamp(1.05rem, 1.3vw, 1.5rem)!important;
font-weight: 600;
margin: 1.2em 0 0.6em;
padding: 0.3em 0.6em;
color: #096A8B;
display: inline-block;
}

/* レスポンシブ対応 */
@media (max-width: 768px){
    .title1 {
        font-size: 22px;
    }
}

/* ------------------------
 * テーブル
 * ------------------------ */
/*
 * 横スクロール対応
 */
.table1-wrapper {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.table1 {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    color: #333;
    table-layout: fixed;    /* 幅均等 */
    box-sizing: border-box;
}
.table1 th,
.table1 td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e1e1e1;
    word-wrap: break-word; /* コンテンツを折り返し */
    word-break: break-word; /* 長い単語も折り返し */
    white-space: normal; /* 改行を許可 */
}
.table1 th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.table1 tr:nth-child(even) td {
    background-color: #fafafa;
}
.table1 tr:hover td {
    background-color: #f1f1f1;
}
/* ユーザー側のテーブルで使用 */
.table1.w35 th {
    width: 35%;
}
/* 溢れたテキストを「…」に変換 */
.table1.category_table th,
.table1.category_table td{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
 /* 幅は自動調整 */
.table1.layout_auto {
    table-layout: auto;
}
.table1.layout_auto th {
    white-space: nowrap;
}

.table1 .border-top-row th,
.table1 .border-top-row td {
    font-weight: bold;
    border-top: 2px solid #ccc;
}

.table1 .border-bottom-row th,
.table1 .border-bottom-row td {
    font-weight: bold;
    border-bottom: 2px solid #ccc;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .table1 {
        min-width: 900px;
    }
}
@media (max-width: 768px) {
    .table1 {
        min-width: 700px;
    }
}

/*
 * テーブル　スクロール制御
 */
.table-scroll {
  overflow-x: auto;
  cursor: grab!important;
  user-select: none;
}

.table-scroll.is-dragging {
  cursor: grabbing!important;
}

.table-scroll table {
  min-width: 1200px;
}

/* ------------------------
 * ボタン
 * ------------------------ */
/*
 * メインボタン
 */
.btn {
    display: block!important;
    width: fit-content!important;
    margin: 1em!important;
    /* padding: 0.8em 4em 0.8em 3em!important; */
    padding: 0.8em 3em!important;
    font-size: clamp(1.2rem, 1.4vw, 1.5rem)!important;
    font-weight: 500!important;
    text-decoration: none!important;
    text-align: center!important;
    background-color: #5596D7!important;                                   /* 変更箇所 */
    color: #FFF!important;
    letter-spacing: 0.1em!important;
    cursor: pointer!important;
    position: relative!important;
    transition: background-color 0.3s, transform 0.3s!important;
    border-radius: 5px!important;
}

/* .btn:after {
    content: ""!important;
    display: block!important;
    width: 1.5em!important;
    height: 1.5em!important;
    background: url(img/pik.png)!important;
    background-repeat: no-repeat!important;
    background-size: contain!important;
    position: absolute!important;
    top: 50%!important;
    right: 2em!important;
    transform: translate(0,-50%)!important;
} */
.btn:hover {
    opacity: .7;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.is_red { background-color: red!important; }

.is_gray{
    background-color: #a9a9a9!important;
}

.btn.is_gray:hover,
.btn.is_gray:focus,
.btn.is_gray:active {
    opacity: 1 !important;
    transform: none;
    box-shadow: none;
}
.btn.is_gray:after {
    content: none !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .btn {
        padding: 0.8em 1.5em!important;
    }
}


/*
 * 小型ボタン（テーブル内で使用するボタン）
 */
.btn_small {
  display: inline-block;
  padding: 4px 8px;
  margin: 4px;
  border-radius: 6px;
  text-decoration: none!important;
  color: #fff;
  width:100%;
  text-align: center;
  line-height: 1.6em;
}

/*
 * ボタンカラー
 */
.btn_blue { background: #0073aa; }          /* 領収証ボタン */
.btn_green { background: #28a745; }         /* 参加証ボタン */
.btn_purple { background: #6a5acd; }        /* 受講証ボタン */
.btn_brown { background: #a0522d; }
.btn_orange { background: #ff8c00; }
.btn_red    { background: #d9534f; }
.btn_gray    { background: #a9a9a9; }
.btn_gray2    { background: #999; }

.btn_small:hover,
.btn_small:focus,
.btn_small:active {
    opacity: 0.8;
    color:#fff;
}
.btn_small.btn_gray:hover,
.btn_small.btn_gray:focus,
.btn_small.btn_gray:active {
    opacity: 1 !important;
}
.btn_small.btn_gray2:hover,
.btn_small.btn_gray2:focus,
.btn_small.btn_gray2:active {
    background: #a9a9a9;
    opacity: 0.8;
}

/*
 * submit用ボタン（お知らせの登録するボタン）
 */
.btn_submit{
    display: block;
    width: fit-content;
    padding: 10px 30px!important;
    font-size: clamp(1rem, 1.3vw, 1.5rem)!important;
    background-color: #000080!important;                                    /* 変更箇所 */
    color: #FFF!important;
    border-radius: 5px!important;
    margin: 10px 0;
}
.btn_submit:hover{
    opacity: .7;
}

/*
 * ログインボタン
 */
.user-registration-Button.button {
    display: block!important;
    width: fit-content!important;
    margin: 1em!important;
    padding: 0.8em 4em 0.8em 3em!important;
    font-size: clamp(1.2rem, 1.4vw, 1.5rem)!important;
    font-weight: 500!important;
    text-decoration: none!important;
    text-align: center!important;
    background-color: #5596D7!important;                                           /* 変更箇所 */
    color: #FFF;
    letter-spacing: 0.2em!important;
    cursor: pointer!important;
    position: relative!important;
    border-radius: 0!important;
    border:none!important;
    border-radius: 5px!important;
}
.ur-form-container .button,.ur-form-container button,
.user-registration .button,.user-registration button {
    box-shadow: none!important;
}
/* .user-registration-Button.button:after{
    content: "";
    display: block;
    width: 1.5em;
    height: 1.5em;
    background: url(img/pik.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 50%;
    right: 2em;
    transform: translate(0,-50%);
} */
.user-registration-Button.button:hover,
.user-registration-Button.button:active,
.user-registration-Button.button:focus {
    opacity: .7;
}
.ur-form-container .button:hover,
.ur-form-container button:hover,
.user-registration .button:hover,
.user-registration button:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*
 * ログアウトボタン
 */
.logout-link {
    background-color: #e74c3c;
}
.logout-link:hover {
    background-color: #c0392b;
}

/* ------------------------
 * アコーディオン
 * ------------------------ */
.accordion-item {
  overflow: hidden;
}
.accordion-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5!important;
  border-radius: 50%;
  line-height: 1;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  -webkit-font-smoothing: antialiased;
  color: #333!important;
}
.accordion-toggle:active,
.accordion-toggle:hover{
  background: #bad5ea!important;                                        /* 変更箇所 */
  color:#333!important;
}
.accordion-item.active .accordion-toggle {
  transform: translateY(-50%) rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  padding: 0 10px;
}
.accordion-item.active .accordion-content {
  max-height: 100%;
  opacity: 1;
  padding: 0;
}


/* ------------------------
 * お知らせ
 * ------------------------ */
.oshirase-box {
    border: 1px solid #ccc;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #f9f9f9;
}
.oshirase-box dl {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}
.oshirase-box dt {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}
.oshirase-box dd {
    margin: 0;
    white-space: pre-wrap;
    color: #555;
}
.oshirase-future-list table {
    width: 100%;
    border-collapse: collapse;
}
.oshirase-future-list th,
.oshirase-future-list td {
    border: 1px solid #ccc;
    padding: 8px;
}
.oshirase-future-list th {
    background: #f0f0f0;
}


/* ------------------------
 * パスワード編集フォーム
 * ------------------------ */
.edit-user-password-form {
    max-width: 500px;
    margin: 0 auto;
}
.edit-user-password-form p {
    margin-bottom: 15px;
}
.edit-user-password-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.edit-user-password-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.edit-user-password-form button {
    background-color: #3498db;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}
.edit-user-password-form button:hover {
    background-color: #2980b9;
}

/*
 * エラーメッセージ
 */
.password-edit-errors {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.password-edit-errors p {
    margin: 0;
}

/*
 * パスワード変更後のメッセージ
 */
.password-changed-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    margin-bottom: 20px;
}


