body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

#container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

h1 {
    font-size: 24px;
    margin: 10px 0;
}

h1 a {
    color: #333;
    text-decoration: none;
}

h1 a:hover {
    text-decoration: underline;
}

/* Site title for non-top pages (same style as h1) */
.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
}

.gray {
    background-color: #f5f5f5;
    padding: 10px;
    margin: 10px 0px;
    border-radius: 5px;
}

.gray p {
    margin: 5px 0;
    text-align: center;
}

.gray ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.gray ul li {
    margin: 5px 0;
}

#header {
    margin: 20px 0;
}

#main {
    margin: 20px 0;
}

#main p {
    margin: 10px 0;
    line-height: 1.8;
}

#main ul {
    margin: 10px 0;
    padding-left: 20px;
}

#main li {
    margin: 5px 0;
    line-height: 1.8;
}

ul {
    margin-top: 5px;
    list-style-type: none;
}

li {
    font-size: 90%;
    line-height: 200%;
}

li img {
    border-radius: 20px;
}

.additional {
    font-size: 85%;
    color: #666;
}

p.additional {
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 5px;
    margin: 8px 0;
}

/* Old #yomikata styles removed - using .yomikata-section instead */

#audio-ch {
    text-align: center;
    margin: 15px 0;
}

.from_user {
    background-color: #fff9e6;
    padding: 10px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 10px;
    margin: 15px 0;
}

.from_user a {
    color: #996633;
    display: block;
    margin: 5px 0;
}

p a {
    color: #0066cc;
    display: inline-block;
    word-wrap: break-word;
    max-width: 100%;
}

p a:hover {
    text-decoration: underline;
}

a {
    text-decoration: none;
}

#footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 85%;
    color: #666;
}

#footer a, p a {
    line-height: 200%;
}

.emoji a {
    font-size: 150%;
}

.emoji a.additional {
    font-size: 80%;
}

.fixed {
    height: 375px;
    margin: 20px 0;
    text-align: center;
}

form {
    margin: 20px 0;
    text-align: center;
}

form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.input_main {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 150%;
    font-weight: bold;
    width: 300px;
    max-width: 50%;
}

.input_main:focus {
    outline: none;
    border-color: #4CAF50;
}

.submit_main {
    padding: 10px 30px;
    background-color: #43A047; /* コントラスト比3.3:1確保 */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 150%;
    cursor: pointer;
    margin-left: 10px;
}

.submit_main:hover {
    background-color: #388E3C;
}

/* ユーティリティクラス */
.text-red {
    color: #d32f2f;
}

.searchbox {
    font-size: 1.2em;
    padding: 5px;
    width: 300px;
    max-width: 50%;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.vote-button {
    cursor: pointer;
    font-size: 30px;
    padding: 5px 15px;
    border-radius: 5px;
    transition: transform 0.2s;
}

.vote-button:hover {
    transform: scale(1.2);
}

#thank-you-message {
    margin-top: 10px;
    font-size: 16px;
    color: green;
    display: none;
    text-align: center;
}

.rounded-svg-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.rounded-svg {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

.blur {
    filter: blur(8px);
    transition: filter 0.3s;
}

.blur:hover {
    filter: blur(0);
}

ul.today_list {
    position: relative;
    padding: 0;
    list-style-type: none;
}

ul.today_list li {
    padding: 0.5em;
    margin-bottom: 3px;
    line-height: 1.5;
    border: solid 3px #dcdcdc;
    background-color: #ffffff;
}

/* Module styles for sidebar content */
.module {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.module > div:first-child {
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
}

.module ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module li {
    padding: 5px 0;
    font-size: 90%;
}

.module a {
    color: #0066cc;
}

.module a:hover {
    text-decoration: underline;
}

#todayWhatDay {
    background-color: #fff9e6;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

#todayWhatDay span {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

#todayWhatDay img {
    max-width: 200px;
    border-radius: 10px;
    margin: 10px 0;
}

.tcolor {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    color: #FFFFFF; /* 白文字 */
}

.tcolor span {
    color: #FFFFFF; /* spanも白文字 */
}

.tcolor a {
    text-decoration: none;
    font-weight: bold;
    color: #FFFFFF; /* リンクも白文字 */
    text-decoration: underline; /* リンクであることを明確に */
}

/* モバイル表示の修正 */
@media screen and (max-device-width: 768px) {
    .tcolor {
        font-size: 16px;
        padding: 12px;
    }
    
    .tcolor > div {
        display: block;
        padding: 8px 15px;
    }
    
    /* モバイルでは::beforeは不要（HTMLに既に含まれているため） */
}

/* 関連リンク */
.related-links {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.related-links h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
    color: #333;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.related-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #333;
}

.related-link:hover {
    background-color: #f0f8ff;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-link .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.related-link .text {
    font-size: 14px;
    text-align: center;
}

/* カテゴリータブ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

@media screen and (max-device-width: 768px) {
    .category-tabs {
        min-height: 340px; /* CLS対策: モバイルでのレイアウトシフト防止 */
    }
}

.category-tab {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-tab:hover, .category-tab.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* 評価フォーム */
.feedback-form {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 300px;
}

.feedback-form h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 15px 0;
}

.star {
    font-size: 28px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.star:hover {
    color: #ffd700;
}

.feedback-form textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
}

.feedback-form button {
    padding: 8px 16px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.feedback-form button:first-of-type {
    background-color: #4CAF50;
    color: white;
}

.feedback-form button:last-of-type {
    background-color: #f5f5f5;
    color: #333;
}


@media screen and (max-device-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-link {
        padding: 10px 5px;
    }
    
    .related-link .text {
        font-size: 12px;
    }
    
    .feedback-form {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media screen and (max-device-width: 480px) {
    h1 {
        font-size: 20px;
    }

    #container {
        width: 95%;
        font-size: 120%;
    }

    .input_main {
        width: 200px;
    }

    .submit_main {
        display: block;
        margin: 10px auto;
    }
}

/* Context Examples Styles */
.context-examples {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.context-examples h2 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a90d9;
}

.context-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.context-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.context-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.context-header {
    margin-bottom: 10px;
}

.context-label {
    display: inline-block;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.context-example {
    font-size: 17px;
    color: #2d3748;
    margin: 0 0 12px 0;
    padding: 12px 16px;
    background: white;
    border-left: 4px solid #4a90d9;
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
    quotes: none;
}

.context-example .highlight-word {
    color: #c53030;
    font-weight: 700;
    background: linear-gradient(transparent 60%, #fed7d7 60%);
    padding: 0 2px;
}

.context-advice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #fcd34d;
}

.advice-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.advice-text {
    line-height: 1.5;
}

.context-notes {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    margin-top: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 10px;
    border: 1px solid #6ee7b7;
    line-height: 1.6;
}

.notes-icon {
    flex-shrink: 0;
    font-size: 18px;
}

.context-more-link {
    margin: 20px 0 0 0;
    text-align: right;
}

.context-more-link a {
    color: #4a90d9;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.context-more-link a:hover {
    background: #f0f7ff;
    text-decoration: underline;
}

/* Self Introduction Section Styles */
.self-introduction {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #fcd34d;
}

.self-introduction h2 {
    margin: 0 0 12px 0;
    color: #78350f;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #f59e0b;
}

.self-introduction .intro-desc {
    color: #92400e;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.intro-scenes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro-scene-item {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #fde68a;
    transition: transform 0.2s, box-shadow 0.2s;
}

.intro-scene-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.scene-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.scene-icon {
    font-size: 20px;
}

.scene-name {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.scene-intro {
    font-size: 16px;
    color: #451a03;
    margin: 0;
    padding: 12px 16px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
    quotes: none;
    font-style: normal;
}

.intro-tips {
    margin-top: 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    border: 1px solid #fbbf24;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tips-icon {
    font-size: 18px;
}

.tips-title {
    font-weight: 700;
    color: #78350f;
    font-size: 15px;
}

.tips-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.tips-list li {
    color: #92400e;
    font-size: 14px;
    line-height: 1.6;
    margin: 6px 0;
}

/* Yomikata Section Styles - Simple & Smart */
.yomikata-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.yomikata-list {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    text-align: center;
}

.yomikata-list a {
    color: #2563eb;
    text-decoration: none;
}

.yomikata-list a:hover {
    text-decoration: underline;
}

.yomi-sep {
    color: #9ca3af;
    margin: 0 2px;
}

.audio-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 10px;
    color: #4b5563;
    transition: all 0.2s;
}

.audio-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.audio-btn-inline {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
}

.audio-btn-inline:hover {
    opacity: 0.7;
}

.audio-btn-inline:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Site intro section (top page) */
.site-intro {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.site-intro h2 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #1e293b;
}

.site-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* Main categories navigation (top page) */
.main-categories {
    margin-bottom: 20px;
}

.main-categories h2 {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: #1e293b;
}

.main-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-categories li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.main-categories li:last-child {
    border-bottom: none;
}

.main-categories a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.main-categories a:hover {
    text-decoration: underline;
}

/* Synonyms and Antonyms Section */
.synonyms-antonyms {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.synonyms-antonyms h2 {
    font-size: 18px;
    margin: 0 0 16px 0;
    color: #1e293b;
    padding-bottom: 10px;
    border-bottom: 2px solid #cbd5e1;
}

.context-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.context-tab-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.context-tab-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #e0e7ff 0%, #ede9fe 100%);
    font-weight: 600;
    color: #3730a3;
}

.context-tab-header .context-icon {
    font-size: 18px;
}

.context-tab-header .context-name {
    font-size: 15px;
}

.context-tab-content {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.word-group {
    flex: 1;
    min-width: 200px;
}

.word-group-header {
    margin-bottom: 8px;
}

.word-group-header .group-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.synonyms .group-label {
    background: #dcfce7;
    color: #166534;
}

.antonyms .group-label {
    background: #fee2e2;
    color: #991b1b;
}

.word-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.word-list li {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px dashed #e5e7eb;
}

.word-list li:last-child {
    border-bottom: none;
}

.word-list a {
    color: #2563eb;
    text-decoration: none;
}

.word-list a:hover {
    text-decoration: underline;
}

.word-desc {
    color: #64748b;
    font-size: 13px;
}

.synonyms-tips {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.synonyms-tips .tips-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.synonyms-tips .tips-text {
    font-size: 14px;
    color: #92400e;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .context-tab-content {
        flex-direction: column;
        gap: 12px;
    }

    .word-group {
        min-width: 100%;
    }
}

/* Semantic navigation sections */
.same-reading-nav,
.related-words,
.jukugo-nav,
.english-nav,
.user-contribution,
.nijukugo-sample,
.sanjukugo-sample,
.character-patterns,
.similar-words,
.difference-nav,
.tools-nav {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.same-reading-nav h3,
.related-words h3,
.jukugo-nav h3,
.english-nav h3,
.user-contribution h3,
.sanjukugo-sample h3,
.similar-words h3,
.tools-nav h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.same-reading-nav ul,
.related-words ul,
.jukugo-nav ul,
.english-nav ul,
.user-contribution ul,
.nijukugo-sample ul,
.sanjukugo-sample ul,
.character-patterns ul,
.similar-words ul,
.difference-nav ul,
.tools-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.same-reading-nav li,
.related-words li,
.jukugo-nav li,
.english-nav li,
.user-contribution li,
.tools-nav li {
    font-size: 14px;
    line-height: 1.6;
}

.nijukugo-sample li,
.sanjukugo-sample li,
.character-patterns li,
.similar-words li,
.difference-nav li {
    font-size: 14px;
}

.nijukugo-sample ul,
.sanjukugo-sample ul,
.similar-words ul {
    gap: 12px;
}

/* Celebrities section */
.celebrities-section {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.celebrities-section h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.celebrities-section ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.celebrities-section li {
    font-size: 14px;
    line-height: 1.8;
}

.celebrities-section li.more-link {
    list-style: none;
    margin-top: 8px;
}

/* Character details section */
.character-details {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.character-details h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.character-details dl {
    margin: 0;
}

.character-details dt {
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0 5px 0;
    color: #333;
}

.character-details dd {
    margin: 0 0 10px 0;
}

.character-details dd ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.character-details dd li {
    font-size: 14px;
    line-height: 1.8;
    padding: 2px 0;
}

/* Chinese pronunciation section */
.chinese-pronunciation {
    margin: 15px 0;
    padding: 10px 0;
}

.chinese-pronunciation h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.chinese-pronunciation p {
    margin: 5px 0;
}

.chinese-pronunciation .pinyin {
    color: #666;
    font-size: 14px;
}

/* English meaning section */
.english-meaning {
    margin: 15px 0;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 8px;
}

.english-meaning p {
    margin: 5px 0;
    font-size: 14px;
}

/* Same reading */
.same-reading {
    margin: 10px 0;
    padding: 8px 12px;
    background: #fff8e1;
    border-radius: 5px;
    font-size: 14px;
}

/* Memo */
.memo {
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    font-size: 14px;
}


/* User Contribution CTA - アクション呼びかけブロック */
.user-contribution-cta {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 12px;
    border: 2px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.user-contribution-cta .cta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-contribution-cta .cta-icon {
    font-size: 24px;
}

.user-contribution-cta .cta-title {
    font-size: 16px;
    font-weight: bold;
    color: #856404;
}

.user-contribution-cta .cta-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.user-contribution-cta .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-contribution-cta .cta-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.user-contribution-cta .cta-button:hover {
    background: #fff8e1;
    border-color: #ffc107;
    transform: translateX(5px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.user-contribution-cta .cta-button .btn-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.user-contribution-cta .cta-button .btn-text {
    font-size: 14px;
    line-height: 1.4;
}

.user-contribution-cta .cta-yomi {
    border-left: 3px solid #2196f3;
}

.user-contribution-cta .cta-meaning {
    border-left: 3px solid #4caf50;
}

@media screen and (min-width: 480px) {
    .user-contribution-cta .cta-buttons {
        flex-direction: row;
    }

    .user-contribution-cta .cta-button {
        flex: 1;
    }
}

/* 追加のCTAボタンタイプ */
.user-contribution-cta .cta-example {
    border-left: 3px solid #ff9800;
}

.user-contribution-cta .cta-intro {
    border-left: 3px solid #9c27b0;
}

.user-contribution-cta .cta-synonym {
    border-left: 3px solid #00bcd4;
}

/* 複数ボタン時のグリッドレイアウト */
@media screen and (min-width: 480px) {
    .user-contribution-cta .cta-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .user-contribution-cta .cta-button {
        flex: none;
    }
}

@media screen and (min-width: 768px) {
    .user-contribution-cta .cta-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 著名人追加ボタン */
.user-contribution-cta .cta-celebrity {
    border-left: 3px solid #ffd700;
}

/* 電子印鑑アイコン - v3 2026-01-21 縦書き印鑑風 */
.links-grid .related-link .icon.hanko-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border: 2px solid #c41e3a !important;
    border-radius: 50% !important;
    color: #c41e3a !important;
    font-weight: bold !important;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif !important;
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
    line-height: 1 !important;
    padding: 2px !important;
    box-sizing: border-box !important;
    background: #fff !important;
}
.links-grid .related-link .icon.hanko-1char { font-size: 14px !important; letter-spacing: 0 !important; }
.links-grid .related-link .icon.hanko-2char { font-size: 9px !important; letter-spacing: -1px !important; }
.links-grid .related-link .icon.hanko-3char { font-size: 7px !important; letter-spacing: -1px !important; }
.links-grid .related-link .icon.hanko-4char { font-size: 5px !important; letter-spacing: -1px !important; }
