* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* .m-plus-1p-regular {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
   */


:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #f59e0b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow: rgba(15, 23, 42, 0.08);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
}

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

/* ヘッダー */
.site-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem 3rem;
    text-align: left;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 2rem;
    border-radius: 0 0 24px 24px;
}

.header-inner {
    max-width: 100%;
    margin: 0 auto 20px;
    padding-top: 2rem;
    text-align: center;
}

/* ハンバーガーボタン（モバイルのみ表示） */
.hamburger-btn {
    display: none;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1002;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* メニュー開時: 黒の3本線（×）で表示（クラス指定でモバイルでも確実に適用） */
.hamburger-btn.menu-open .hamburger-line,
.hamburger-btn[aria-expanded="true"] .hamburger-line {
    background: #000;
}

.hamburger-btn.menu-open .hamburger-line:nth-child(1),
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.menu-open .hamburger-line:nth-child(2),
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.menu-open .hamburger-line:nth-child(3),
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFFFFF;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .subtitle .mobile-br {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none;
    }
}

h1 {
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;

    font-family: "M PLUS 1p", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

/* モバイル時のみサブタイトルで改行 */
.subtitle .mobile-br {
    display: none;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px var(--shadow);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--secondary);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.output-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.output-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.copy-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.copy-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #6366f1;
}

/* ==========================================
   AI送信ボタン・トースト通知
   ========================================== */

.output-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s ease;
    color: white;
}

.send-btn-icon {
    display: flex;
    align-items: center;
}

.send-btn-chatgpt {
    background: #10a37f;
}

.send-btn-chatgpt:hover {
    background: #0d8c6d;
    transform: scale(1.05);
}

.send-btn-claude {
    background: #d97706;
}

.send-btn-claude:hover {
    background: #b45309;
    transform: scale(1.05);
}

.send-btn-gemini {
    background: #4285f4;
}

.send-btn-gemini:hover {
    background: #3367d6;
    transform: scale(1.05);
}

/* トースト通知 */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* レスポンシブ：送信ボタン */
@media (max-width: 768px) {
    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .output-actions {
        width: 100%;
    }

    .send-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

#promptOutput {
    background: #f1f5f9;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 300px;
    color: var(--text-primary);
}

.prompt-templates {
    margin-top: 3rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.template-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--shadow);
    transform: translateY(-4px);
}

.template-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.template-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.info-box h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フッター */
.site-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    margin-top: 4rem;
    /* border-radius: 24px 24px 0 0; */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }
}

/* プレビューのぼかし表示 + コピー無効化 */
#preview {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* コンテンツがある場合のみぼかし適用 */
#preview.has-content {
    filter: blur(4px);
    pointer-events: none;
    cursor: not-allowed;
}

/* プレビューの上に表示されるメッセージ（コンテンツがある場合のみ） */
#preview.has-content::before {
    content: '🔒 全文を見るには「プロンプト作成」ボタンをクリック';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(30, 64, 175, 0.95) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    filter: blur(0);
    white-space: nowrap;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* プレビューが空の時（初期状態） */
#preview:not(.has-content) {
    filter: none;
    pointer-events: auto;
    cursor: default;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #preview.has-content::before {
        white-space: normal;
        text-align: center;
        max-width: 80%;
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }
}

/* ==========================================
   デモセクション
   ========================================== */
.demo-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.demo-header {
    margin-bottom: 2rem;
}

.demo-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.demo-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.demo-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.demo-btn {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.demo-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.demo-btn:active {
    transform: translateY(-2px);
}

.demo-icon {
    font-size: 2.5rem;
    display: block;
}

.demo-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* デモセクション - レスポンシブ対応 */
@media (max-width: 768px) {
    .demo-section {
        padding: 2rem 1.5rem;
    }
    
    .demo-title {
        font-size: 1.5rem;
    }
    
    .demo-subtitle {
        font-size: 1rem;
    }
    
    .demo-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-btn {
        padding: 1.2rem 1rem;
    }
    
    .demo-icon {
        font-size: 2rem;
    }
}
/* ==========================================
   モダンデモセクション
   ========================================== */

.demo-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

/* 背景の装飾 */
.demo-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.demo-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.demo-hero-content {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.demo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.demo-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    line-height: 1.3;
}

.demo-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* デモカード */
.demo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.demo-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

/* ホバー時の光沢効果 */
.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.demo-card:hover::before {
    left: 100%;
}

.demo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.demo-card:active {
    transform: translateY(-4px) scale(1.01);
}

.demo-card-icon {
    font-size: 3rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.demo-card-content {
    flex: 1;
}

.demo-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.demo-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.demo-card-arrow {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.demo-card:hover .demo-card-arrow {
    transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .demo-hero {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }
    
    .demo-hero-title {
        font-size: 1.6rem;
    }
    
    .demo-hero-subtitle {
        font-size: 1rem;
    }
    
    .demo-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-card {
        padding: 1.5rem 1.25rem;
    }
    
    .demo-card-icon {
        font-size: 2.5rem;
    }
    
    .demo-card-title {
        font-size: 1.1rem;
    }
    
    .demo-card-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .demo-hero {
        padding: 2rem 1.25rem;
    }
    
    .demo-hero-title {
        font-size: 1.4rem;
    }
    
    .demo-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}
