/**
 * データ入稿テンプレートページ
 */

.page-template.template-section {
    padding-top: 0;
}

.page-template .template-hero {
    --category-hero-min-h: clamp(220px, 34vw, 340px);
}

.page-template .template-hero .category-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 18, 32, 0.25) 0%,
        rgba(8, 18, 32, 0.55) 100%
    );
}

.page-template .template-shell {
    padding-top: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(32px, 5vw, 48px);
}

.page-template .template-stack {
    display: grid;
    gap: clamp(20px, 4vw, 28px);
    max-width: 960px;
    margin: 0 auto;
}

.page-template .template-card {
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid var(--home-border, #e2e6ec);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(12, 28, 48, 0.06);
}

.page-template .template-card__title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1c2d42;
    font-size: clamp(1.15rem, 2.8vw, 1.4rem);
    font-weight: 700;
    color: #1c2d42;
}

.page-template .template-card__subtitle {
    margin: 24px 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.page-template .template-card__body p {
    margin: 0 0 0.75em;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
}

.page-template .template-card__body p:last-child {
    margin-bottom: 0;
}

.page-template .template-download-groups {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.page-template .template-download-group {
    padding: 14px 16px;
    border-radius: 8px;
    background: #f7f8fa;
}

.page-template .template-download-group__label {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1c2d42;
}

.page-template .template-download-group__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-template .template-download-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #d7dde6;
    border-radius: 6px;
    background: #fff;
    color: #1c2d42;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.page-template .template-download-link:hover {
    border-color: var(--home-accent, #b50400);
    color: var(--home-accent, #b50400);
}

.page-template .template-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.page-template .template-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.page-template .template-table th,
.page-template .template-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

.page-template .template-table thead th {
    background: #f3f6fa;
    font-weight: 700;
    color: #333;
}

.page-template .template-table tbody th {
    width: 28%;
    background: #fafafa;
    font-weight: 700;
    color: #1c2d42;
    white-space: nowrap;
}

.page-template .template-table tbody tr:last-child th,
.page-template .template-table tbody tr:last-child td {
    border-bottom: none;
}

.page-template .template-notes {
    margin: 0 0 20px;
    padding-left: 1.2em;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #444;
}

.page-template .template-ship-examples {
    display: grid;
    gap: 16px;
}

@media (min-width: 720px) {
    .page-template .template-ship-examples {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.page-template .template-ship-example {
    padding: 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
}

.page-template .template-ship-example__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #1c2d42;
}

.page-template .template-ship-example__products {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
}

.page-template .template-ship-example__figure {
    margin: 0 0 12px;
}

.page-template .template-ship-example__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #fff;
}

.page-template .template-ship-example__example {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
    color: #333;
}

.page-template .template-cta {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
    padding: clamp(20px, 4vw, 28px);
}

.page-template .template-cta p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
}
