/* ============================================================
   Web制作ヒアリングシート（Claude Code版）
   Color: Green #166534 accent / #f8faf9 background
   ============================================================ */

/* --- Frame & Globals --- */
.whs-frame {
    --whs-accent: #166534;
    --whs-accent-light: #dcfce7;
    --whs-accent-muted: #bbf7d0;
    --whs-text: #1a1a1a;
    --whs-text-muted: #64748b;
    --whs-bg: #f8faf9;
    --whs-card-bg: #ffffff;
    --whs-border: #e2e8f0;
    --whs-radius: 10px;
    --whs-shell-width: 1120px;

    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--whs-text);
    background: var(--whs-bg);
    line-height: 1.7;
}

/* Artifact header theming */
.artifact-body--web-hearing-sheet-claude-code {
    --artifact-header-accent: #166534;
    --artifact-header-muted: #64748b;
    --artifact-header-border: #d1d5db;
    --artifact-header-surface: #f8faf9;
}

.whs-shell {
    max-width: var(--whs-shell-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.whs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--whs-radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    line-height: 1.4;
}

.whs-btn--primary {
    background: var(--whs-accent);
    color: #fff;
    border-color: var(--whs-accent);
}

.whs-btn--primary:hover {
    background: #14532d;
    border-color: #14532d;
}

.whs-btn--outline {
    background: transparent;
    color: var(--whs-accent);
    border-color: var(--whs-accent);
}

.whs-btn--outline:hover {
    background: var(--whs-accent-light);
}

.whs-btn--sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.whs-btn--lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

/* --- Labels --- */
.whs-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--whs-accent);
    letter-spacing: 0.04em;
    text-transform: none;
}

.whs-label--light {
    color: var(--whs-accent-muted);
}

/* --- Hero --- */
.whs-hero {
    padding: 56px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, #f0fdf4 0%, var(--whs-bg) 100%);
}

.whs-hero__badge {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--whs-accent);
    background: var(--whs-accent-light);
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.whs-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 16px;
    color: var(--whs-text);
}

.whs-hero__lead {
    font-size: 1rem;
    color: var(--whs-text-muted);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.75;
}

.whs-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.whs-hero__points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 840px;
    margin: 0 auto;
    text-align: left;
}

.whs-hero__point {
    background: var(--whs-card-bg);
    border: 1px solid var(--whs-border);
    border-radius: var(--whs-radius);
    padding: 16px 20px;
}

.whs-hero__point strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.whs-hero__point span {
    font-size: 0.82rem;
    color: var(--whs-text-muted);
}

/* --- Section --- */
.whs-section {
    padding: 56px 0;
}

.whs-section--warm {
    background: #f0fdf4;
}

.whs-section--dark {
    background: #1a1a1a;
    color: #e5e5e5;
}

.whs-section--cta {
    background: linear-gradient(180deg, var(--whs-bg) 0%, #f0fdf4 100%);
}

.whs-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.whs-section-header h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    margin: 8px 0 12px;
    line-height: 1.4;
}

.whs-section-header p {
    font-size: 0.95rem;
    color: var(--whs-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.whs-section-header--light h2 {
    color: #fff;
}

.whs-section-header--light p {
    color: #a3a3a3;
}

/* --- Tool Layout (2-col) --- */
.whs-tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.whs-tool-layout__preview {
    position: sticky;
    top: 80px;
}

/* --- Category Card (fieldset) --- */
.whs-category {
    border: 1px solid var(--whs-border);
    border-radius: var(--whs-radius);
    background: var(--whs-card-bg);
    padding: 24px;
    margin: 0 0 20px;
}

.whs-category__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--whs-accent);
    padding: 0 8px;
}

.whs-category__icon {
    font-size: 1.1rem;
}

/* --- Form Fields --- */
.whs-field {
    display: block;
    margin-bottom: 16px;
}

.whs-field:last-child {
    margin-bottom: 0;
}

.whs-field__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--whs-text);
    margin-bottom: 6px;
}

.whs-field input,
.whs-field textarea,
.whs-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--whs-border);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--whs-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.6;
    box-sizing: border-box;
}

.whs-field input:focus,
.whs-field textarea:focus,
.whs-field select:focus {
    outline: none;
    border-color: var(--whs-accent);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.12);
}

.whs-field textarea {
    resize: vertical;
    min-height: 60px;
}

.whs-field select {
    appearance: auto;
}

/* --- Preview Panel --- */
.whs-preview {
    border: 1px solid var(--whs-border);
    border-radius: var(--whs-radius);
    background: var(--whs-card-bg);
    overflow: hidden;
}

.whs-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--whs-border);
    background: #f8faf9;
}

.whs-preview__header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 4px 0 0;
}

.whs-preview__body {
    padding: 20px;
    font-size: 0.88rem;
    line-height: 1.75;
    max-height: 70vh;
    overflow-y: auto;
}

.whs-preview__placeholder {
    color: var(--whs-text-muted);
    text-align: center;
    padding: 40px 0;
}

.whs-preview__category {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--whs-border);
}

.whs-preview__category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.whs-preview__cat-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--whs-accent);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--whs-accent-light);
}

.whs-preview__item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    margin-bottom: 6px;
    align-items: baseline;
}

.whs-preview__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--whs-text-muted);
    white-space: nowrap;
}

.whs-preview__value {
    font-size: 0.85rem;
    color: var(--whs-text);
    word-break: break-word;
}

.whs-preview__empty {
    color: #d1d5db;
    font-style: italic;
}

.whs-preview__footer {
    padding: 10px 20px;
    border-top: 1px solid var(--whs-border);
    background: #f8faf9;
}

.whs-preview__footer p {
    font-size: 0.75rem;
    color: var(--whs-text-muted);
    margin: 0;
}

/* --- Guide Cards --- */
.whs-guide-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.whs-guide-card {
    display: flex;
    gap: 16px;
    background: var(--whs-card-bg);
    border: 1px solid var(--whs-border);
    border-radius: var(--whs-radius);
    padding: 20px;
}

.whs-guide-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whs-accent-light);
    border-radius: 8px;
}

.whs-guide-card__body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--whs-text);
}

.whs-guide-card__body p {
    font-size: 0.85rem;
    color: var(--whs-text-muted);
    margin: 0;
    line-height: 1.7;
}

/* --- Steps --- */
.whs-steps {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.whs-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.whs-step__number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whs-accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
}

.whs-step__body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.whs-step__body p {
    font-size: 0.9rem;
    color: var(--whs-text-muted);
    margin: 0;
    line-height: 1.7;
}

/* --- FAQ --- */
.whs-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whs-faq {
    background: #262626;
    border-radius: var(--whs-radius);
    overflow: hidden;
}

.whs-faq summary {
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.whs-faq summary::-webkit-details-marker {
    display: none;
}

.whs-faq summary::before {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--whs-accent-muted);
    border: 1px solid #525252;
    border-radius: 6px;
    flex-shrink: 0;
    vertical-align: middle;
}

.whs-faq[open] summary::before {
    content: '−';
}

.whs-faq summary h3 {
    display: inline;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5f5f5;
}

.whs-faq p {
    padding: 0 20px 16px 56px;
    font-size: 0.9rem;
    color: #a3a3a3;
    margin: 0;
    line-height: 1.7;
}

/* --- CTA --- */
.whs-cta {
    text-align: center;
    padding: 20px 0;
}

.whs-cta h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    margin: 8px 0 14px;
    line-height: 1.4;
}

.whs-cta p {
    font-size: 0.95rem;
    color: var(--whs-text-muted);
    max-width: 580px;
    margin: 0 auto 28px;
}

.whs-cta__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Footer --- */
.whs-footer {
    background: #1a1a1a;
    padding: 32px 0;
    color: #a3a3a3;
    font-size: 0.85rem;
}

.whs-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.whs-footer__inner p {
    margin: 0;
}

.whs-footer__links {
    display: flex;
    gap: 20px;
}

.whs-footer__links a {
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.85rem;
}

.whs-footer__links a:hover {
    color: #f5f5f5;
}

/* --- Print Styles --- */
@media print {
    .whs-hero,
    .whs-section--warm,
    .whs-section--dark,
    .whs-section--cta,
    .whs-footer,
    .whs-tool-layout__form,
    .whs-preview__header,
    .whs-preview__footer,
    [data-whs-copy] {
        display: none !important;
    }

    .whs-frame {
        background: #fff;
    }

    .whs-tool-layout {
        display: block;
    }

    .whs-tool-layout__preview {
        position: static;
    }

    .whs-preview {
        border: none;
        box-shadow: none;
    }

    .whs-preview__body {
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    .whs-section {
        padding: 0;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .whs-tool-layout {
        grid-template-columns: 1fr;
    }

    .whs-tool-layout__preview {
        position: static;
    }

    .whs-hero {
        padding: 40px 0 36px;
    }

    .whs-hero__points {
        grid-template-columns: 1fr;
    }

    .whs-section {
        padding: 40px 0;
    }

    .whs-guide-list {
        grid-template-columns: 1fr;
    }

    .whs-category {
        padding: 18px 16px;
    }

    .whs-preview__item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .whs-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
