/* セクションとフォームスタイル */

/* カスタムコマンドセクション */
.custom-command-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.custom-command-section h2 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.custom-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.custom-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.custom-commands-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-command-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-command-info {
    flex: 1;
}

.custom-command-code {
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-weight: 600;
}

.custom-command-desc {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.custom-command-actions {
    display: flex;
    gap: 10px;
}

/* 最近使用したコマンドセクション */
.recent-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recent-section h2 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-commands {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-command-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.recent-command-item:hover {
    background: #e9ecef;
}

.recent-command-code {
    font-family: 'Courier New', monospace;
    color: #d63384;
    font-size: 0.9rem;
}

.recent-command-time {
    color: #666;
    font-size: 0.8rem;
}

/* お問い合わせセクション */
.contact-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-section h2 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

.contact-section p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-form .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 150px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-form .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.contact-form .btn:active {
    transform: translateY(0);
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* お問い合わせナビゲーションセクション */
.contact-navigation {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-cta h2 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-cta p {
    margin-bottom: 25px;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 更新履歴セクション */
.update-history-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.update-history-section h2 {
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.update-timeline {
    position: relative;
    padding-left: 30px;
}

.update-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    border-radius: 1px;
}

.update-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 25px;
}

.update-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #667eea;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.update-item:last-child {
    margin-bottom: 0;
}

.update-date {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
}

.update-content h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

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

.update-content li {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.update-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.update-content li:last-child {
    margin-bottom: 0;
}

/* 「もっと見る」リンクスタイル */
.update-more-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.update-more-link .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.update-more-link .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.update-more-link .btn-primary:active {
    transform: translateY(0);
}

/* ダークモード対応 */
body.dark-mode .update-history-section {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #ffffff;
}

body.dark-mode .update-history-section h2 {
    color: #ffffff;
}

body.dark-mode .update-content h3 {
    color: #ffffff;
}

body.dark-mode .update-content li {
    color: #cccccc;
}

body.dark-mode .update-timeline::before {
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

body.dark-mode .update-more-link {
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .update-more-link .btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

body.dark-mode .update-more-link .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

body.dark-mode .contact-section {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #ffffff;
}

body.dark-mode .contact-section h2 {
    color: #ffffff;
}

body.dark-mode .contact-section p {
    color: #cccccc;
}

body.dark-mode .form-group label {
    color: #ffffff;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #ffffff;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #888;
}

body.dark-mode .contact-form .btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

body.dark-mode .contact-form .btn:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .contact-section h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .contact-form .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* iPhone / スマートフォン対応改善 */
@media (max-width: 480px) {
    /* カスタムコマンドセクション */
    .custom-command-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .custom-command-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .custom-input-group {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .custom-input-group input {
        min-width: auto;
        padding: 14px 12px;
        font-size: 16px; /* iOSズーム防止 */
        border-radius: 8px;
    }
    
    .custom-command-item {
        padding: 12px;
        border-radius: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .custom-command-info {
        width: 100%;
    }
    
    .custom-command-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .custom-command-code {
        font-size: 0.8rem;
        padding: 8px 10px;
        border-radius: 6px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-command-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* 最近使用したコマンドセクション */
    .recent-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .recent-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .recent-command-item {
        padding: 12px;
        border-radius: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .recent-command-info {
        width: 100%;
    }
    
    .recent-command-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .recent-command-code {
        font-size: 0.8rem;
        padding: 8px 10px;
        border-radius: 6px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .recent-command-item .btn-copy {
        align-self: flex-end;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* お問い合わせフォーム */
    .contact-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .contact-section h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .contact-section p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .contact-form {
        max-width: none;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 12px;
        font-size: 16px; /* iOSズーム防止 */
        border-radius: 8px;
        border-width: 1px;
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .contact-form .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        padding: 14px 20px;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    /* お問い合わせナビゲーション */
    .contact-navigation {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .contact-cta {
        text-align: center;
    }
    
    .contact-cta h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .contact-cta p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .contact-btn {
        display: inline-flex;
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 8px;
        text-decoration: none;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* 更新履歴セクション */
    .update-history-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .update-history-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .update-timeline {
        padding-left: 20px;
    }
    
    .update-item {
        padding-left: 15px;
        margin-bottom: 20px;
    }
    
    .update-content h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .update-content ul {
        margin-bottom: 10px;
    }
    
    .update-content li {
        font-size: 0.85rem;
        padding-left: 15px;
        margin-bottom: 4px;
        line-height: 1.4;
    }
    
    .update-date {
        font-size: 0.8rem;
    }
    
    .update-more-link {
        text-align: center;
        padding-top: 15px;
        margin-top: 15px;
    }
    
    .update-more-link .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 8px;
    }
}

/* iPhone SE / 小画面対応 */
@media (max-width: 375px) {
    .custom-command-section,
    .recent-section,
    .contact-section,
    .contact-navigation,
    .update-history-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .custom-command-section h2,
    .recent-section h2,
    .contact-section h2,
    .contact-cta h2,
    .update-history-section h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .custom-input-group input,
    .form-group input,
    .form-group textarea {
        padding: 12px 10px;
        font-size: 16px;
    }
    
    .custom-command-code,
    .recent-command-code {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .contact-form .btn {
        min-height: 44px;
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    .contact-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .update-timeline {
        padding-left: 15px;
    }
    
    .update-item {
        padding-left: 12px;
        margin-bottom: 15px;
    }
    
    .update-content h3 {
        font-size: 0.9rem;
    }
    
    .update-content li {
        font-size: 0.8rem;
        padding-left: 12px;
    }
}
