/* インラインスタイルから移動したCSS */

/* トップコントロール */
.top-controls {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid #e0f0ff;
    align-items: center;
}

/* コントロール区切り線 */
.controls-divider {
    width: 1px;
    background: #ccc;
    margin: 0 12px;
    height: 30px;
    flex-shrink: 0;
}

/* フォントサイズボタン */
#font-size-small {
    background: #28a745;
    font-size: 0.9rem;
    padding: 10px 15px;
    flex-shrink: 0;
}

#font-size-small .fa-font {
    font-size: 0.8rem;
}

#font-size-medium {
    background: #ffc107;
    color: #333;
    font-size: 1rem;
    padding: 10px 15px;
    flex-shrink: 0;
}

#font-size-medium .fa-font {
    font-size: 1rem;
}

#font-size-large {
    background: #dc3545;
    font-size: 1.1rem;
    padding: 10px 15px;
    flex-shrink: 0;
}

#font-size-large .fa-font {
    font-size: 1.2rem;
}

/* 赤シートボタン */
#redsheet-button-full {
    padding: 10px 20px;
    font-size: 1.1rem;
    background: #FFC0CB;
    color: #006400;
    flex-shrink: 0;
}

/* ナビゲーションボタン */
.navigation-buttons {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.nav-button {
    flex: 1;
}

/* 広告コンテナ */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 15px;
    text-align: center;
}

/* A8広告セクション */
.a8-ad-section {
    text-align: center;
    margin: 30px auto;
    padding: 20px;
    background: rgba(248, 248, 248, 0.8);
    border-radius: 12px;
    max-width: 600px;
}

.a8-ad-label {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
    font-weight: bold;
}

.a8-ad-container {
    padding: 10px 0;
    background-color: rgba(248, 248, 248, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* SNSシェアセクション */
.sns-share-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.sns-share-label {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.share-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

#x-share-button {
    background: #000000;
}

#x-share-achievement {
    background: #1DA1F2;
}

/* フッター */
footer {
    background: transparent;
    color: #333;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    backdrop-filter: none;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #0078a8;
    margin: 0 10px;
    text-decoration: none;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* 単語ヘッダーの横並びレイアウト */
.verb-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

/* 単語タイトル */
.verb-title {
    margin: 0;
    font-size: 2.5rem;
    color: #333;
}

/* 発音記号 */
.verb-pronunciation {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* 単語読み上げボタン */
.word-speak-btn {
    background: none;
    color: #0078a8;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.5rem;
}

.word-speak-btn:hover {
    background: rgba(0, 120, 168, 0.1);
    color: #005f86;
    transform: scale(1.1);
}

.word-speak-btn:active {
    transform: scale(0.95);
}

/* 表示切り替えボタンとSNSシェアボタンのコンテナ */
.toggle-and-share-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* インラインSNSシェアボタン */
.share-buttons-inline {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.share-button-inline {
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#x-share-button-inline {
    color: #000;
}

#x-share-button-inline:hover {
    background: #333;
    color: white;
}

#x-share-achievement-inline {
    color: #1DA1F2;
}

#x-share-achievement-inline:hover {
    background: #1DA1F2;
    color: white;
}

/* 単語リストの発音記号のスタイル改善 */
.word-phonetic {
    font-size: 0.95rem;
    color: #333;
    font-style: italic;
    margin-top: 2px;
}

/* 活用形のフォントサイズを例文と同じに */
.form-value {
    font-size: 1.1rem;
    color: #333;
}

/* 発音記号サイドパネルヘッダーボタン */
.panel-header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phonetic-detail-link-btn {
    background: #0078a8;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.phonetic-detail-link-btn:hover {
    background: #005f8a;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.phonetic-detail-link-btn:active {
    transform: translateY(0);
}

/* パネルヘッダーのレイアウト調整 */
.phonetic-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}

.phonetic-panel-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.close-panel-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.close-panel-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.close-panel-btn:active {
    transform: translateY(0);
}