@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/
/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* ヘッダーボタンメニューを中央揃え */
.mobile-header-menu-buttons {
    justify-content: center;
}

/* 大きなヘッダーボタン用スタイル（URL指定） */
/* 入会案内ボタンを大きく表示 */
.mobile-header-menu-buttons a[href*="/join/"] .menu-icon {
    font-size: 1.8em;
}

.mobile-header-menu-buttons a[href*="/join/"] .menu-caption {
    font-size: 14px;
    font-weight: bold;
}

/* 固定ページの投稿日・更新日・投稿者名を非表示 */
.page .date-tags,
.page .author-info {
    display: none;
}

/************************************
** 管理画面 ユーザー一覧アカウント状態バッジ
************************************/
.account-status {
    display: inline-block;
    padding: 2px 6px;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
}

.account-status-enabled {
    background: #46b450;
}

.account-status-disabled {
    background: #d63638;
}

/************************************
** ログアウトボタン
************************************/
.logout-section {
    text-align: center;
    padding: 20px 0;
}

.logout-section p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.logout-btn {
    /* Cocoon子テーマのsubmitボタンと同じスタイル */
    -webkit-appearance: none;
    display: inline-block;
    padding: 11px;
    width: 50%;
    margin: 0;
    border: 1px solid var(--cocoon-thin-color);
	border-radius: 5px;
    background-color: #f5f8fa;
    color: #333 !important;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
	font-family: 'Arial';
}

.logout-btn:hover {
    opacity: 0.8;
}

/************************************
** プロフィール編集画面
************************************/
.login-submit,
.login p.submit,
.profile-edit p.submit{
	text-align: center;
}

.login-submit input[type=submit],
.login p.submit input[type=submit],
.profile-edit p.submit input[type=submit] {
	display: inline-block;
	width: 50%;
	text-align: center;
	border-radius: 5px;
}

/************************************
** メッセージボックス（ログイン・プロフィール等共通）
************************************/
.login-notice {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #1976D2;
    font-size: 14px;
    line-height: 1.6;
}

.login-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #c62828;
    font-size: 14px;
    line-height: 1.6;
}

.login-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #2e7d32;
    font-size: 14px;
    line-height: 1.6;
}

/************************************
** パスワード表示切り替えボタン
************************************/
.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 60px; /* ボタン分の余白 */
}

.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid #ccc;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #666;
    border-radius: 3px;
    transition: all 0.2s;
}

.password-toggle:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.password-toggle:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.password-toggle:active {
    background: #e5e5e5;
}

/************************************
** ニュース一覧の各項目
************************************/
.news-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

/* ニュースの背景色 */
.news-type--news {
	background-color: #DCE6F8;
	border-color: #DCE6F8;
}

/* チケット販売の背景色 */
.news-type--ticket {
	background-color: #FFFDBE;
	border-color: #FFFDBE;
}

/* 投稿の背景色 */
.news-type--post {
	background-color: #CEFFBE;
	border-color: #CEFFBE;
}

.news-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.news-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.news-thumbnail img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.news-body {
    flex: 1;
}

.news-meta {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 4px;
}

.news-date--updated {
    margin-left: 8px;
}

h3.news-title {
    font-size: 1em;
    margin: 0 0 6px;
}

h3.news-title a {
    text-decoration: none;
    color: inherit;
}

.news-excerpt {
    font-size: 0.85em;
    color: #555;
}

.post-type {
	font-size: 0.85em;
    padding: 2px 8px;
    border-radius: 3px;
    color: #ffffff;
	background-color: #7d5c6d;	
}

.news-category {
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 3px;
    color: #ffffff;
	background-color: #e8e0e4;
	align-self: center;
}

.news-visibility {
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 3px;
}

.news-visibility--members {
    background-color: #9c2a2a;
    color: #ffffff;
}

.news-visibility--public {
    background-color: #e8e0e4;
    color: #7d5c6d;
}

/************************************
** Snow Monkey Formsの項目ラベル
************************************/
.smf-item__label__text {
    position: relative;
	padding-left: 50px;
}
/* 必須ラベル */
.smf-item:has([data-validations~="required"]) .smf-item__label__text::before {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 23px;
  border-radius: 4px;
  content: "必須";
  font-size: 12px;
  color: #fff;
  background: #ff0000;
}

/* 任意ラベル */
.smf-item:not(:has([data-validations~="required"])) .smf-item__label__text::before {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 23px;
  border-radius: 4px;
  content: "任意";
  font-size: 12px;
  color: #fff;
  background: #888;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}
/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}
/*480px以下*/
@media (max-width: 480px){
  /*必要ならばここにコードを書く*/
	.news-content {
		flex-direction: column;
	}

    .news-thumbnail img {
        width: 100%;
        height: auto;
    }

	/* パスワードトグルボタンのスマホ対応 */
  .password-toggle {
    font-size: 11px;
    padding: 3px 8px;
  }
}