/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-main {
    text-align: center;
    flex: 1;
}

.logo {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 言語セレクタ */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.language-selector label {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    min-width: 100px;
}

.language-selector select:focus {
    outline: none;
    background: white;
}

/* メインコンテンツ */
.main {
    padding: 3rem 0;
}

/* ヒーローセクション */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* セクションタイトル */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* SNS選択グリッド */
.sns-selector {
    margin-bottom: 3rem;
}

.select-all-controls {
    text-align: center;
    margin-bottom: 1.5rem;
}

.control-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

.control-button:hover {
    transform: translateY(-2px);
}

.sns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.sns-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.sns-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.sns-item.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sns-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.sns-content {
    pointer-events: none;
}

.sns-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.sns-content span {
    font-weight: 500;
}

/* SNSボタンコンテナ */
.sns-buttons-container {
    text-align: center;
    margin: 20px 0;
}

/* SNSクレジット */
.sns-credit {
    margin-top: 15px;
    opacity: 0.7;
    font-size: 0.85rem;
}

.sns-credit a {
    color: #667eea;
    text-decoration: none;
}

.sns-credit a:hover {
    text-decoration: underline;
}

/* カスタマイズフォーム */
.customization {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

/* プレビューエリア */
.preview {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.preview-area {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

/* コード生成エリア */
.code-generator {
    margin-bottom: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.code-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: white;
    border-bottom: 2px solid #667eea;
    color: #667eea;
}

.code-content {
    position: relative;
}

.tab-panel {
    display: none;
    padding: 2rem;
}

.tab-panel.active {
    display: block;
}

.tab-panel pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.tab-panel code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.copy-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.copy-button:hover {
    transform: translateY(-2px);
}

.copy-button i {
    margin-right: 0.5rem;
}

/* 使い方セクション */
.usage {
    margin-bottom: 3rem;
}

.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.step p {
    color: #6c757d;
}

/* 対応SNS一覧 */
.supported-sns {
    margin-bottom: 3rem;
}

.sns-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sns-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sns-category h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.sns-category ul {
    list-style: none;
}

.sns-category li {
    padding: 0.5rem 0;
    color: #6c757d;
}

.sns-category li i {
    margin-right: 0.5rem;
    width: 20px;
}

/* SNSボタンスタイル */
.sns-button {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    text-decoration: none;
    color: white;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sns-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sns-button.round {
    border-radius: 25px;
}

.sns-button.square {
    border-radius: 0;
}

.sns-button.minimal {
    background: transparent;
    border: 2px solid;
    color: inherit;
}

.sns-button.small {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.sns-button.medium {
    padding: 10px 15px;
    font-size: 1rem;
}

.sns-button.large {
    padding: 15px 25px;
    font-size: 1.2rem;
}

/* SNS別カラー */
.sns-button.facebook { background-color: #1877f2; }
.sns-button.twitter { background-color: #1da1f2; }
.sns-button.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sns-button.tiktok { background-color: #000; }
.sns-button.youtube { background-color: #ff0000; }
.sns-button.linkedin { background-color: #0077b5; }
.sns-button.pinterest { background-color: #bd081c; }
.sns-button.reddit { background-color: #ff4500; }
.sns-button.whatsapp { background-color: #25d366; }
.sns-button.snapchat { background-color: #fffc00; color: #000; }
.sns-button.weibo { background-color: #e6162d; }
.sns-button.wechat { background-color: #09b83e; }
.sns-button.hatena { background-color: #00a4de; }

/* フッター */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-main {
        order: 1;
    }
    
    .language-selector {
        order: 2;
        margin-top: 1rem;
    }
    
    .sns-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .custom-form {
        grid-template-columns: 1fr;
    }
    
    .usage-steps {
        grid-template-columns: 1fr;
    }
    
    .sns-list {
        grid-template-columns: 1fr;
    }
    
    .code-tabs {
        overflow-x: auto;
    }
    
    .select-all-controls {
        margin-bottom: 1rem;
    }
    
    .control-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .language-selector {
        padding: 0.4rem 0.8rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .language-selector select {
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .sns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sns-item {
        padding: 1rem;
    }
    
    .sns-item i {
        font-size: 1.5rem;
    }
}