/* ========================================
   現場の健康診断 (shindan-2) - スタイル
   モバイルファースト設計
   ======================================== */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f5f5f5;
    word-break: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

a {
    color: #1E88E5;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 12px 24px;
}

/* ========================================
   サイトヘッダー / フッター
   ======================================== */
.site-header {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-header__logo a { display: inline-block; }
.site-header__logo img { height: 28px; width: auto; }
.site-header__product img { height: 24px; width: auto; opacity: 0.85; }

.site-footer {
    max-width: 760px;
    margin: 32px auto 0;
    padding: 24px 16px 32px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.site-footer__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.site-footer__logos img { height: 24px; width: auto; }

.site-footer__company {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
}

.site-footer__company a {
    color: #1E88E5;
    text-decoration: none;
}

/* ========================================
   CTA ボタン共通
   ======================================== */
.btn-cta {
    display: inline-block;
    background: #E53935;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    line-height: 1.4;
}

.btn-cta:hover, .btn-cta:focus {
    background: #C62828;
    transform: translateY(-1px);
}

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

.btn-cta--green { background: #43A047; }
.btn-cta--green:hover, .btn-cta--green:focus { background: #2E7D32; }

.btn-cta--blue { background: #1E88E5; }
.btn-cta--blue:hover, .btn-cta--blue:focus { background: #1565C0; }

.btn-cta--block {
    display: block;
    width: 100%;
}

/* ========================================
   プログレスバー
   ======================================== */
.progress {
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.progress__label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 600;
}

.progress__bar {
    background: #e0e0e0;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}

.progress__fill {
    background: linear-gradient(90deg, #FFC107, #FF9800);
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s ease;
}

.progress--admin .progress__fill {
    background: linear-gradient(90deg, #66BB6A, #43A047);
}

/* ========================================
   LPヒーロー (index.php)
   ======================================== */
.lp-hero {
    text-align: center;
    padding: 24px 18px 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.lp-hero__eyebrow {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.lp-hero__title {
    font-size: 26px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.lp-hero__lead {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.lp-hero__lead-strong {
    display: inline-block;
    margin-top: 4px;
    font-weight: 800;
    color: #E65100;
    font-size: 16px;
}

.lp-hero__note {
    margin-top: 0px;
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

/* ========================================
   設問エリア（画像3択）
   ======================================== */
.lp-question {
    background: #FFFDF5;
    border: 2px solid #FFE082;
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 14px;
}

.lp-question__step {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.lp-question__theme {
    color: #E65100;
    font-weight: 700;
}

.lp-question__title {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin-bottom: 18px;
    line-height: 1.5;
    padding-bottom: 12px;
    border-bottom: 2px solid #FFD54F;
}

.lp-question__hint {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* 画像カードグリッド */
.image-grid-form {
    width: 100%;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.image-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    text-align: left;
    width: 100%;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: rgba(255,152,0,0.15);
}

.image-card:hover, .image-card:focus {
    border-color: #FF9800;
    box-shadow: 0 4px 16px rgba(255,152,0,0.18);
    transform: translateY(-2px);
    outline: none;
}

.image-card:active {
    transform: translateY(0);
    border-color: #E65100;
    background: #FFF3E0;
}

.image-card__media {
    display: block;
    background: #fafafa;
    overflow: hidden;
    line-height: 0;
}

.image-card__media img {
    width: 100%;
    height: auto;
    display: block;
}

.image-card__caption {
    display: block;
    padding: 12px 14px 6px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    flex: 1;
    font-weight: 500;
}

.image-card__cta {
    display: block;
    padding: 6px 14px 14px;
    font-size: 13px;
    color: #E65100;
    font-weight: 700;
}

/* LP メタ情報 */
.lp-meta {
    text-align: center;
    margin-top: 14px;
    padding: 16px 12px 8px;
}

.lp-meta__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    margin-bottom: 8px;
    padding: 0;
}

.lp-meta__list li {
    font-size: 13px;
    color: #555;
    padding-left: 18px;
    position: relative;
}

.lp-meta__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.lp-meta__note {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ========================================
   前半 結果ページ
   ======================================== */
.result {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.result__heading {
    font-size: 13px;
    color: #888;
    font-weight: 700;
    margin-bottom: 10px;
}

.result__headline {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 6px solid;
}

.result__photos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.result__photos img {
    height: 160px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #fafafa;
    display: block;
}

@media (min-width: 700px) {
    .result__photos img {
        height: 260px;
    }
}

.result__summary {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 20px;
}

.result__actions {
    text-align: center;
}

/* 処方箋 */
.prescription {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    scroll-margin-top: 16px;
}

.prescription__title {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.prescription__block {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #FAFAFA;
    border-radius: 8px;
}

.prescription__block:last-child {
    margin-bottom: 0;
}

.prescription__label {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    padding-left: 10px;
    border-left: 4px solid #43A047;
    margin-bottom: 8px;
    line-height: 1.5;
}

.prescription__text {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}

.prescription__block--message {
    background: #FFF8E1;
}

.prescription__block--message .prescription__label {
    border-left-color: #E65100;
}

/* 次の診断への CTA */
.next-cta {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.next-cta__star {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.7;
}

.next-cta__lead {
    font-size: 17px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.next-cta__why {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}

.next-cta__sub {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.next-cta__sub-text {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

/* ========================================
   後半 管理者様診断（4択）
   ======================================== */
.admin-question {
    background: #fff;
    border-radius: 12px;
    padding: 24px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.admin-question__step {
    font-size: 13px;
    color: #43A047;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.admin-question__title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.6;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #C8E6C9;
}

.admin-choices {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-choices li {
    margin-bottom: 10px;
}

.admin-choices__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-choices__label {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: rgba(67,160,71,0.15);
}

.admin-choices__label:hover {
    border-color: #43A047;
    background: #E8F5E9;
}

.admin-choices__radio:focus + .admin-choices__label {
    outline: 2px solid #43A047;
    outline-offset: 2px;
}

.admin-choices__radio:checked + .admin-choices__label {
    border-color: #43A047;
    background: #C8E6C9;
}

.admin-choices__key {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #43A047;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.admin-choices__text {
    font-size: 15px;
    color: #333;
    flex: 1;
    line-height: 1.5;
}

.admin-question__hint {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* ========================================
   後半 結果（詳細レポート）
   ======================================== */
.admin-report {
    background: #fff;
    border-radius: 12px;
    padding: 24px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.admin-report__heading {
    font-size: 13px;
    color: #888;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-report__stage {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 24px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.admin-report__name {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 14px;
    color: #1a1a1a;
    line-height: 1.4;
}

.admin-report__subtitle {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: #FFF8E1;
    border-radius: 8px;
}

.admin-report__section {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #FAFAFA;
    border-radius: 8px;
}

.admin-report__section:last-child {
    margin-bottom: 0;
}

.admin-report__section-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    padding-left: 10px;
    border-left: 4px solid #43A047;
    margin-bottom: 8px;
    line-height: 1.5;
}

.admin-report__section--advice {
    background: #FFF3E0;
}

.admin-report__section--advice .admin-report__section-title {
    border-left-color: #E53935;
}

.admin-report__text {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}

/* 最終CTA */
.final-cta {
    background: #FFFDE7;
    border: 2px solid #FFD54F;
    border-radius: 12px;
    padding: 24px 18px;
    margin-bottom: 14px;
    text-align: center;
}

.final-cta__title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.final-cta__lead {
    font-size: 14px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 16px;
    text-align: left;
}

.final-cta__list {
    list-style: none;
    text-align: left;
    margin-bottom: 22px;
    padding: 0;
}

.final-cta__list li {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}

.final-cta__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #43A047;
    font-weight: bold;
}

.final-cta__note {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    line-height: 1.6;
}

/* ========================================
   問い合わせフォーム
   ======================================== */
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-card__title {
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.4;
}

.form-card__desc {
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.form-group__required {
    background: #E53935;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.form-group__optional {
    background: #9E9E9E;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #43A047;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-group select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 36px;
}

.form-error {
    color: #E53935;
    font-size: 13px;
    margin-top: 4px;
}

/* 送信完了 */
.complete-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.complete-card__icon {
    font-size: 48px;
    color: #43A047;
    margin-bottom: 12px;
}

.complete-card__title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 12px;
}

.complete-card__text {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* ========================================
   共通ユーティリティ
   ======================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ========================================
   タブレット〜PC（≥700px）
   ======================================== */
@media (min-width: 700px) {
    .container {
        padding: 20px 16px 32px;
    }

    .site-header { padding: 14px 16px; }
    .site-header__logo img { height: 32px; }
    .site-header__product img { height: 28px; }

    .lp-hero {
        padding: 36px 28px 28px;
        margin-bottom: 18px;
    }

    .lp-hero__title { font-size: 34px; }
    .lp-hero__lead { font-size: 17px; }
    .lp-hero__lead-strong { font-size: 18px; }

    .lp-question {
        padding: 28px 24px;
    }

    .lp-question__title { font-size: 22px; }

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .result__headline { font-size: 26px; }
    .prescription__title { font-size: 24px; }
    .admin-question__title { font-size: 22px; }
    .admin-report__name { font-size: 28px; }
    .final-cta__title { font-size: 24px; }
    .form-card__title { font-size: 24px; }

    .btn-cta { font-size: 18px; padding: 16px 32px; }
}
