/*
Theme Name: Nishiki
Author: s56bouya
Version: 2.13.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.2
Description: Nishiki is a fully responsive theme. Elegance,Refined,Multifunctional. In your admin panel, go to Appearance -> Customize. About 80 customization can be done without writing the code. responsive layout, front page setting, movie setting, etc. Customization often required for web production / website operation can be set. Gutenberg Block Editor Style Support.
Tags:one-column, two-columns, left-sidebar, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, featured-images, sticky-post, blog, entertainment, portfolio, editor-style, block-styles, wide-blocks, footer-widgets, full-width-template
Theme URI: https://support.animagate.com/product/wp-nishiki/
Author URI: https://www.imamura.biz/blog/
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nishiki
*/
.top-news {
	text-align :center;
	padding:40px 120px;
	background-color:#fff0f0;
}
.top-news h1{
	font-size:24px !important;
}
.top-news .footer{
	text-align :right;
}

article.bbs-post {
	margin: 0 0 40px 0;
	padding: 0 0 40px 0;
	border-bottom: 2px solid #1e73be;
}

/* ===================================
   WPUF 投稿フォームのスタイル
=================================== */
.bbs-post-form-wrapper{
	width:90%;
	zoom: 1;
	margin: 3rem auto;
	max-width: 1000px;
}

/* フォーム全体 */
.bbs-post-form-wrapper .wpuf-form-add {
    background: white;
    padding: 0;
    margin: 0;
}

.bbs-post-form-wrapper .wpuf-form ul.wpuf-form {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 各フォームフィールド */
.bbs-post-form-wrapper .wpuf-form li.wpuf-el {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0;
}

/* ラベル部分 */
.bbs-post-form-wrapper .wpuf-form .wpuf-label {
    width: 150px;
    flex-shrink: 0;
    padding-right: 15px;
    padding-top: 8px;
}

.bbs-post-form-wrapper .wpuf-form .wpuf-label label {
    font-weight: bold;
    margin: 0;
    display: block;
}

.bbs-post-form-wrapper .wpuf-form .required {
    color: #dc3232;
    margin-left: 3px;
}

/* 入力欄部分 */
.bbs-post-form-wrapper .wpuf-form .wpuf-fields {
    flex: 1;
    width: 100%;
}

/* テキストボックス */
.bbs-post-form-wrapper .wpuf-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.bbs-post-form-wrapper .wpuf-form input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* テキストエリア（リッチエディタ） */
.bbs-post-form-wrapper .wpuf-form .wpuf-fields.wpuf-rich-validation {
    width: 100%;
}

.bbs-post-form-wrapper .wpuf-form .wp-editor-wrap {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.bbs-post-form-wrapper .wpuf-form .mce-tinymce {
    border: none !important;
    border-radius: 0 !important;
}

/* 画像追加ボタン */
.bbs-post-form-wrapper #wpuf-insert-image-container {
    margin-bottom: 10px;
}

.bbs-post-form-wrapper .wpuf-insert-image {
    display: inline-block;
    padding: 8px 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
}

.bbs-post-form-wrapper .wpuf-insert-image:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.bbs-post-form-wrapper .wpuf-media-icon::before {
    content: "📷 ";
    margin-right: 5px;
}

/* 送信ボタン */
.bbs-post-form-wrapper .wpuf-submit {
    display: flex;
    align-items: center;
    padding-left: 165px; /* ラベル幅 + パディング */
}

.bbs-post-form-wrapper .wpuf-submit .wpuf-label {
    display: none;
}

.bbs-post-form-wrapper .wpuf-submit-button {
    padding: 12px 40px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.bbs-post-form-wrapper .wpuf-submit-button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.bbs-post-form-wrapper .wpuf-submit-button:active {
    transform: translateY(0);
}

/* エディタのツールバー調整 */
.bbs-post-form-wrapper .mce-toolbar-grp {
    background: #f7f7f7;
}

.bbs-post-form-wrapper .mce-btn button {
    padding: 4px;
}

/* ステータスバー */
.bbs-post-form-wrapper .mce-statusbar {
    background: #f7f7f7;
    border-top: 1px solid #ddd;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* スマホでは縦並びに */
    .bbs-post-form-wrapper .wpuf-form li.wpuf-el {
        flex-direction: column;
    }
    
    .bbs-post-form-wrapper .wpuf-form .wpuf-label {
        width: 100%;
        padding-right: 0;
        padding-top: 0;
        margin-bottom: 8px;
    }
    
    .bbs-post-form-wrapper .wpuf-submit {
        padding-left: 0;
    }
}

/* ===================================
   フォームエラー表示
=================================== */
.bbs-post-form-wrapper .wpuf-error {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
}

.bbs-post-form-wrapper input.error,
.bbs-post-form-wrapper textarea.error {
    border-color: #dc3232;
}

/* ===================================
   ヘルプテキスト
=================================== */
.bbs-post-form-wrapper .wpuf-help {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* ===================================
   コメント吹き出しデザイン
=================================== */

/* コメントリスト全体 */
.comments-list {
    margin-top: 20px;
    border-top: 2px solid #e8e8e8;
}

.comments-title {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

.comment-items {
    margin-top: 15px;
}

/* 個別コメント */
.bbs-comment {
    margin-bottom: 20px;
}

.bbs-comment .comment-body {
    position: relative;
    background: #f0f4f8;
    border-radius: 12px;
    padding: 15px 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 吹き出しの三角形（左上） */
.bbs-comment .comment-body::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent #f0f4f8 transparent transparent;
}

/* コメントメタ情報 */
.comment-meta {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.comment-author-name {
    font-weight: bold;
    color: #0073aa;
    margin-right: 12px;
    font-size: 15px;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

/* コメント本文 */
.comment-text {
    color: #333;
    line-height: 1.6;
    word-wrap: break-word;
}

.comment-text p {
    margin: 0;
}

/* ホバー効果 */
.bbs-comment .comment-body:hover {
    background: #e8eef5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bbs-comment .comment-body:hover::before {
    border-color: transparent #e8eef5 transparent transparent;
}バリエーション1: LINEっぽい吹き出しcss/* LINEスタイル */
.bbs-comment {
    margin-bottom: 15px;
    display: flex;
}

.bbs-comment .comment-body {
    position: relative;
    background: #dcf8c6;
    border-radius: 8px;
    padding: 12px 15px;
    max-width: 70%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 吹き出しの尖り（左） */
.bbs-comment .comment-body::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -6px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 6px 0;
    border-color: transparent #dcf8c6 transparent transparent;
}

.comment-meta {
    margin-bottom: 6px;
}

.comment-author-name {
    font-weight: 600;
    color: #128c7e;
    font-size: 14px;
    margin-right: 8px;
}

.comment-date {
    font-size: 11px;
    color: #888;
}

.comment-text {
    color: #000;
    font-size: 14px;
    line-height: 1.5;
}バリエーション2: Twitterっぽい吹き出しcss/* Twitterスタイル */
.bbs-comment {
    margin-bottom: 20px;
}

.bbs-comment .comment-body {
    position: relative;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* 吹き出し効果なし、代わりにボーダー強調 */
.bbs-comment .comment-body:hover {
    border-color: #1da1f2;
    background: #f7f9fa;
    transition: all 0.2s ease;
}

.comment-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.comment-author-name {
    font-weight: bold;
    color: #14171a;
    font-size: 15px;
    margin-right: 8px;
}

.comment-author-name::before {
    content: '💬 ';
}

.comment-date {
    font-size: 13px;
    color: #657786;
}

.comment-text {
    color: #14171a;
    font-size: 15px;
    line-height: 1.6;
}

.postname {
	font-weight: bold;
}

.bbs-post-link-wrapper {
    text-align: center;
	margin: 40px 0 0 0;
}

.btn-new-post {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    color: #1e73be;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-new-post:active {
    transform: translateY(-1px);
}

.btn-new-post .icon {
    margin-right: 10px;
    font-size: 22px;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.btn-new-post {
    display: inline-block;
    padding: 8px 24px;
    background: #1e73be;
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
}

.btn-new-post:hover {
	opacity:0.8;
    transform: translateY(-2px);
}

.btn-new-post .icon {
    margin-right: 8px;
}

.bbs-post h2 {
	margin: 0;
}