/*
Theme Name: Blocksy Child - 外国人向け日本生活ポータル
Template: blocksy
Description: 桜とピンクを基調とした外国人向け日本生活情報サイト。日本語教室検索機能付き。
Version: 1.0.0
Author: Your Name
*/

:root {
    --sakura-pink: #ff9fb8;
    --sakura-light: #ffe4e8;
    --sakura-deep: #e91e63;
    --warm-orange: #ff6f47;
    --soft-green: #69b578;
    --ink: #2d3748;
    --muted: #718096;
    --bg: #fef7f0;
    --card: #ffffff;
    --shadow: 0 4px 20px rgba(255,159,184,0.15);
    --radius: 18px;
}

/* 全体のフォント調整 */
body {
    font-family: 'Hiragino Sans', 'Yu Gothic Medium', 'Meiryo', sans-serif;
    background: var(--bg);
    color: var(--ink);
}

/* ヘッダーの調整 */
.ct-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sakura-light);
}

.ct-header .site-title a {
    background: linear-gradient(45deg, var(--sakura-deep), var(--warm-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* メインナビゲーション */
.ct-header .menu a {
    color: var(--ink);
    font-weight: 600;
    transition: all 0.3s ease;
}

.ct-header .menu a:hover {
    color: var(--sakura-deep);
}

/* ボタンのグローバルスタイル */
.wp-block-button__link,
.button,
input[type="submit"],
button[type="submit"] {
    background: linear-gradient(45deg, var(--sakura-pink), var(--sakura-deep));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,159,184,0.25);
}

/* リンクの色調整 */
a {
    color: var(--sakura-deep);
}

a:hover {
    color: var(--warm-orange);
}

/* 投稿記事のスタイル */
.single .entry-content,
.page .entry-content {
    background: var(--card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--sakura-light);
    margin: 20px 0;
}

.entry-header h1 {
    background: linear-gradient(45deg, var(--sakura-deep), var(--warm-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* サイドバー */
.ct-sidebar .widget {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin: 0 0 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--sakura-light);
}

.ct-sidebar .widget-title {
    color: var(--ink);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.ct-sidebar .widget-title::before {
    content: '🌸';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
}

/* フォーム要素 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select {
    border: 2px solid var(--sakura-light);
    border-radius: 10px;
    padding: 12px 16px;
    background: white;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--sakura-pink);
    box-shadow: 0 0 0 3px rgba(255,159,184,0.1);
}

/* 検索フォーム */
.search-form {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--sakura-light);
    backdrop-filter: blur(5px);
}

/* コメント */
.comment-list .comment {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin: 0 0 20px;
    border: 1px solid var(--sakura-light);
}

/* ページネーション */
.pagination .page-numbers {
    background: white;
    border: 1px solid var(--sakura-light);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: 8px;
    margin: 0 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--sakura-pink);
    color: white;
    border-color: var(--sakura-pink);
}

/* フッター */
.ct-footer {
    background: linear-gradient(135deg, var(--sakura-pink), var(--sakura-deep));
    color: white;
    padding: 40px 0;
}

.ct-footer a {
    color: rgba(255,255,255,0.9);
}

.ct-footer a:hover {
    color: white;
}

/* ブロックエディター対応 */
.wp-block-quote {
    border-left: 4px solid var(--sakura-pink);
    background: var(--sakura-light);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

.wp-block-pullquote {
    border-top: 4px solid var(--sakura-pink);
    border-bottom: 4px solid var(--sakura-pink);
    background: var(--sakura-light);
}

/* テーブル */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

table th {
    background: var(--sakura-light);
    color: var(--sakura-deep);
    padding: 12px;
    font-weight: 600;
}

table td {
    padding: 12px;
    border: 1px solid var(--sakura-light);
}

table tr:nth-child(even) {
    background: rgba(255,249,252,0.5);
}

/* カテゴリー・タグ */
.cat-links a,
.tags-links a {
    background: var(--sakura-light);
    color: var(--sakura-deep);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 4px 4px 0;
    display: inline-block;
    transition: all 0.3s ease;
}

.cat-links a:hover,
.tags-links a:hover {
    background: var(--sakura-pink);
    color: white;
}

/* アニメーション */
@keyframes sakura-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 1;
    }
}

.sakura-animation::before {
    animation: sakura-float 8s ease-in-out infinite;
}

/* 桜の装飾要素 */
.sakura-decoration {
    position: relative;
}

.sakura-decoration::before {
    content: '🌸';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2rem;
    opacity: 0.4;
    animation: sakura-float 6s ease-in-out infinite;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .single .entry-content,
    .page .entry-content {
        padding: 24px;
        margin: 16px 0;
    }
    
    .ct-sidebar .widget {
        padding: 20px;
    }
    
    .search-form {
        padding: 16px;
    }
}

/* 日本語教室カスタム投稿用の追加スタイル */
.japanese-class-archive {
    background: linear-gradient(135deg, var(--bg) 0%, #fff8f3 50%, var(--sakura-light) 100%);
}

.class-search-widget {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    border: 2px solid var(--sakura-light);
    backdrop-filter: blur(5px);
}

/* Contact Form 7 対応 */
.wpcf7-form p {
    margin: 0 0 16px;
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea,
.wpcf7-select {
    width: 100%;
    border: 2px solid var(--sakura-light);
    border-radius: 10px;
    padding: 12px 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-textarea:focus,
.wpcf7-select:focus {
    outline: none;
    border-color: var(--sakura-pink);
    box-shadow: 0 0 0 3px rgba(255,159,184,0.1);
}

.wpcf7-submit {
    background: linear-gradient(45deg, var(--sakura-pink), var(--sakura-deep));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,159,184,0.25);
}

/* Polylang 言語スイッチャー */
.lang_sel_list_horizontal {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lang_sel_list_horizontal li {
    list-style: none;
}

.lang_sel_list_horizontal a {
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--sakura-light);
    color: var(--sakura-deep);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang_sel_list_horizontal a:hover,
.lang_sel_list_horizontal .current-lang {
    background: var(--sakura-pink);
    color: white;
    border-color: var(--sakura-pink);
}

/* 404ページ */
.error404 .entry-content {
    text-align: center;
    padding: 60px 40px;
}

.error404 h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error404 h1::before {
    content: '🌸';
    display: block;
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.6;
}