/* 規約ページ専用スタイル */
.terms-intro {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.terms-intro h1 {
    font-size: 2.2rem;
    color: #24292f;
    margin-bottom: 1rem;
    font-weight: 700;
}

.intro-text {
    color: #656d76;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.terms-types {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.terms-types h2 {
    font-size: 1.5rem;
    color: #24292f;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.type-card {
    background: #f6f8fa;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.type-card:hover {
    transform: translateY(-2px);
}

.type-card h3 {
    color: #0969da;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.type-card p {
    color: #656d76;
    font-size: 0.9rem;
    line-height: 1.5;
}

.type-card a {
    text-decoration: none;
}

.terms-table-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.terms-table-section h2 {
    font-size: 1.5rem;
    color: #24292f;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.table-container {
    overflow: hidden;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
}

.table-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #ffffff;
    min-width: 800px;
}

.terms-table th {
    background: linear-gradient(135deg, #0969da 0%, #0860ca 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.terms-table th:last-child {
    border-right: none;
}

.item-column {
    width: 25%;
    text-align: left !important;
}

.terms-column {
    width: 18.75%;
}

.terms-column a {
    color: rgb(226, 237, 247);
}

.terms-column a:visited {
    color: rgb(255, 255, 255);
}

.terms-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #d1d9e0;
    border-right: 1px solid #d1d9e0;
    vertical-align: middle;
}

.terms-table td:last-child {
    border-right: none;
}

.terms-table tbody tr:hover {
    background: #f6f8fa;
}

.item-cell {
    background: #f8f9fa !important;
    font-weight: 500;
}

.item-name {
    color: #24292f;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.item-desc {
    color: #656d76;
    font-size: 0.8rem;
    line-height: 1.3;
}

.value-cell {
    text-align: center;
}

.value-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 40px;
}

.value-badge.◯ {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.value-badge.× {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.value-badge.△条件付き {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.value-badge.不要 {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.value-badge.商用時必要 {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #f9a8d4;
}

.value-badge.無制限 {
    background: #f0f9ff;
    color: #0c4a6e;
    border: 1px solid #bae6fd;
}

.no-data {
    text-align: center;
    color: #656d76;
    font-style: italic;
    padding: 2rem;
}

.terms-notes {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.terms-notes h2 {
    font-size: 1.5rem;
    color: #24292f;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.notes-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.note-item {
    background: #f6f8fa;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #0969da;
}

.note-item h3 {
    color: #24292f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.note-item p {
    color: #656d76;
    line-height: 1.6;
    margin: 0;
}

.terms-contact {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2.5rem;
    text-align: center;
}

.terms-contact h2 {
    font-size: 1.5rem;
    color: #24292f;
    margin-bottom: 1rem;
    font-weight: 600;
}

.terms-contact p {
    color: #656d76;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-button {
    display: inline-block;
    background: #0969da;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.contact-button:hover {
    background: #0860ca;
}

.terms-all-list {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(36, 41, 47, 0.12);
    border: 1px solid #d1d9e0;
    padding: 2rem;
    margin-bottom: 2rem;
}

.terms-all-list h2 {
    font-size: 1.5rem;
    color: #24292f;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.terms-all-list-item {
    background: #f6f8fa;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #0969da;
    margin-bottom: 1rem;
}

.terms-detail-section h3 {
    color: #24292f;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.terms-all-list-item p {
    color: #656d76;
    line-height: 1.6;
    margin: 0;
}