/* 現場の定型文メーカー - 共通スタイル（現場従事者最適化版） */

:root {
    /* メインカラー */
    --primary-orange: #e67e22;
    --primary-orange-dark: #d35400;
    --primary-orange-light: #f39c12;
    --primary-beige: #f5e6d3;
    --primary-beige-dark: #e0d0b8;

    /* テキストカラー（コントラスト強化） */
    --text-dark: #000000;
    --text-body: #1a1a1a;
    --text-light: #555555;

    /* 背景カラー */
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-gradient: linear-gradient(135deg, #fef5e7 0%, #f9f3e8 100%);

    /* アクセントカラー */
    --check-orange: #e67e22;
    --success-green: #27ae60;
    --info-blue: #3498db;
    --warning-red: #e74c3c;

    /* シャドウ（より強調） */
    --shadow-sm: 0 3px 6px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.20);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.24);

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(230, 126, 34, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-body);
    background: var(--bg-gradient);
    min-height: 100vh;
    font-weight: 500;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 3px solid var(--primary-orange);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 24px 50px;
    background: linear-gradient(135deg, #fef5e7 0%, #f9f3e8 50%, #fef5e7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.08) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-body);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    font-weight: 600;
    line-height: 1.6;
}

/* Buttons - 現場作業者向けに巨大化 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: white;
    font-size: 22px;
    font-weight: 900;
    padding: 22px 56px;
    border: none;
    border-radius: 60px;
    width: 100%;
    max-width: 600px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(230, 126, 34, 0.35);
    transition: all var(--transition-normal);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70px;
    letter-spacing: 1px;
}

.btn-primary::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.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 32px rgba(230, 126, 34, 0.45);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    color: white;
    font-size: 20px;
    font-weight: 900;
    padding: 18px 40px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    min-height: 65px;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Category Grid */
.categories {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.category-btn {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-beige) 100%);
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 900;
    padding: 32px 24px;
    border: 3px solid transparent;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.category-btn:hover::before {
    opacity: 1;
}

.category-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-orange);
}

.category-btn .icon {
    font-size: 48px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
}

/* Features List - 情報表示専用（ボタンではない） */
.features {
    padding: 60px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding: 20px 24px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    border: none;
    cursor: default;
    pointer-events: none;
}

.features-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 900;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 5px 12px rgba(230, 126, 34, 0.35);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 56px 20px 40px;
    text-align: center;
    margin-top: 80px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: all var(--transition-fast);
    padding: 12px 20px;
    border-radius: 10px;
}

.footer-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 48px;
    border-radius: 24px;
    max-width: 550px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    border: 3px solid var(--primary-orange);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    font-size: 16px;
    color: var(--text-body);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    font-size: 18px;
    border: 3px solid #e0e0e0;
    border-radius: 14px;
    transition: all var(--transition-fast);
    background: white;
    font-weight: 500;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 5px rgba(230, 126, 34, 0.15);
}

.modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.modal-buttons button {
    flex: 1;
}

/* Tool Container */
.tool-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 48px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.5px;
}

.tool-section {
    background: white;
    border: 3px solid #f0f0f0;
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.tool-section:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.tool-section h3 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-section h3::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(230, 126, 34, 0.3);
}

/* Form Elements - 現場作業者向けに大型化 */
.form-select {
    width: 100%;
    padding: 18px 20px;
    font-size: 19px;
    border: 3px solid #e0e0e0;
    border-radius: 14px;
    transition: all var(--transition-fast);
    background: white;
    cursor: pointer;
    font-weight: 600;
    min-height: 60px;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 5px rgba(230, 126, 34, 0.15);
}

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

/* Result Box */
.result-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 3px solid #e9ecef;
    border-radius: 20px;
    padding: 28px;
    margin: 28px 0;
    min-height: 140px;
    font-size: 19px;
    line-height: 1.9;
    white-space: pre-wrap;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    font-weight: 500;
}

.result-box:not(.empty) {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, #fef5e7 0%, #ffffff 100%);
    box-shadow: inset 0 3px 6px rgba(230, 126, 34, 0.1);
}

.result-box.empty {
    color: #999;
    font-style: italic;
    font-weight: 400;
}

/* Copy Button */
.btn-copy {
    background: linear-gradient(135deg, var(--info-blue) 0%, #2980b9 100%);
    color: white;
    font-size: 20px;
    font-weight: 900;
    padding: 20px 48px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 28px auto 0;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.35);
    min-height: 70px;
}

.btn-copy:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(52, 152, 219, 0.45);
}

.btn-copy:active {
    transform: scale(0.97);
}

/* Progress Bar */
#progress {
    background: #e0e0e0;
    height: 12px;
    border-radius: 12px;
    margin-bottom: 36px;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

#progressBar {
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.5);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-section {
    animation: slideInUp 0.5s ease backwards;
}

.tool-section:nth-child(1) {
    animation-delay: 0.1s;
}

.tool-section:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-section:nth-child(3) {
    animation-delay: 0.3s;
}

.tool-section:nth-child(4) {
    animation-delay: 0.4s;
}

/* ボタン中央寄せ */
.btn-center {
    display: flex;
    justify-content: center;
    margin: 28px 0;
}

/* 静的ページ用スタイル */
.page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 52px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.content-section {
    background: white;
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    animation: slideInUp 0.5s ease backwards;
    border: 3px solid #f0f0f0;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2::before {
    content: '';
    width: 5px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
    border-radius: 3px;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
    margin: 28px 0 16px;
}

.content-section p {
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 17px;
}

.content-section ul.feature-list {
    list-style: none;
    padding-left: 0;
}

.content-section ul.feature-list li {
    padding-left: 32px;
    margin-bottom: 16px;
    position: relative;
    font-size: 17px;
    line-height: 1.7;
}

.content-section ul.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: 900;
    font-size: 20px;
}

.update-date {
    text-align: right;
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}

.contact-info {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 14px;
    margin: 24px 0;
    border: 2px solid #e0e0e0;
}

.faq-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 2px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary-orange);
    margin-bottom: 12px;
    font-weight: 900;
}

.faq-item p {
    margin: 0;
}

/* 広告ボックス用スタイル */
.ad-container {
    max-width: 900px;
    margin: 48px auto;
    padding: 0 20px;
}

.ad-placeholder {
    background: #f0f0f0;
    padding: 48px 24px;
    text-align: center;
    border-radius: 14px;
    color: #999;
    border: 3px dashed #ddd;
    font-weight: 600;
}

/* 通知表示 */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--success-green) 0%, #229954 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 60px;
    box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
    z-index: 2000;
    font-size: 19px;
    font-weight: 900;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}