/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fafafa;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    top: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.service-logo {
    width: 60px;
    height: 60px;
    margin-right: 0.5rem;
}

.service-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.logo a span {
    color: #0066cc;
    font-weight: 700;
}

.pr-notice {
    margin-left: auto;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.05em;
    padding-left: 1rem;
    border-left: 1px solid #ddd;
}

/* 主要内容区域 */
main {
    margin-top: 0;
}

/* Hero部分 */
.hero {
    position: relative;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    margin-top: 0;
    display: flex;
    align-items: center;
    min-height: 200px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
}

.hero-content h1 .highlight,
.hero-content p .highlight {
    background: linear-gradient(transparent 60%, rgba(255, 255, 0, 0.4) 40%);
    padding: 0 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #fff;
    color: #0066cc;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 特色分类部分 */
.featured-categories {
    padding: 5rem 2rem;
    background-color: #fff;
}

.featured-categories h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.category-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 最新文章部分 */
.latest-articles {
    padding: 3rem 2rem;
    background-color: #fafafa;
}

.latest-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.article-list {
    max-width: 1200px;
    margin: 0 auto;
}

.article-item {
    display: flex;
    gap: 3rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.article-image {
    flex: 0 0 180px;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding: 0;
}

.article-content h3 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.4;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.article-item:hover .article-content h3 {
    color: #0066cc;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.article-meta .date {
    color: #666;
}

.article-meta .category {
    color: #0066cc;
    font-weight: 500;
}

/* 响应式调整 */
@media screen and (max-width: 1400px) {
    .service-logo {
        position: static;
        transform: none;
        margin-right: 0.5 rem;
        width: 90px;
        height: 90px;
    }
}

@media screen and (max-width: 768px) {
    .article-item {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .article-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .article-content h3 {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .nav-left {
        gap: 0.3rem;
        flex-shrink: 0;
    }
    
    .service-logo {
        width: 40px;
        height: 40px;
    }

    .logo a {
        font-size: 0.9rem;
    }

    .pr-notice {
        display: block;
        font-size: 0.65rem;
        padding-left: 0.5rem;
        margin-left: 0.5rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* 页脚样式 */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

/* お問い合わせフォームリンクのスタイル */
.contact-form-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0066cc;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.contact-form-link:hover {
    background-color: #004999;
    color: #fff !important;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.pagination-item,
.pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.8rem;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.pagination-item:hover,
.pagination-next:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.pagination-item.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.pagination-ellipsis {
    color: #666;
    padding: 0 0.5rem;
}

/* 响应式调整 */
@media screen and (max-width: 480px) {
    .pagination {
        gap: 0.3rem;
    }

    .pagination-item,
    .pagination-next {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.9rem;
    }
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* 文章主题图片样式 */
.article-featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-content h2 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.article-content h3 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin: 1.5rem 0 1rem;
    display: inline-block;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* 文章列表中的链接样式 */
.article-item h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-item h3 a:hover {
    color: #0066cc;
}

/* 比较表格样式 */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 1000px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background-color: #f5f5f5;
    font-weight: 700;
    color: #1a1a1a;
}

.comparison-table tr:nth-child(even) {
    background-color: #fafafa;
}

.comparison-table td a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comparison-table td a:hover {
    color: #004999;
    text-decoration: underline;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .comparison-table {
        margin: 1rem -1rem;
    }
}

/* 打勾列表样式 */
.article-content h3 + ul {
    list-style: none;
    padding-left: 0;
}

.article-content h3 + ul li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-content h3 + ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: 900;
    font-size: 1.2rem;
}

.article-content h3 + ul li span,
.article-content ol li strong {
    background: linear-gradient(transparent 60%, rgba(255, 255, 0, 0.4) 40%);
    padding: 0 2px;
}

/* 网站按钮样式 */
.site-button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(to bottom, #ff4444, #cc0000);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 0 #990000,
                0 4px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
    top: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.site-button:hover {
    background: linear-gradient(to bottom, #ff5555, #dd0000);
    color: #ffffff !important;
    box-shadow: 0 2px 0 #990000,
                0 3px 3px rgba(0, 0, 0, 0.2);
    top: 1px;
    transform: translateY(-1px);
}

.site-button:active {
    background: linear-gradient(to bottom, #cc0000, #990000);
    color: #ffffff !important;
    box-shadow: 0 1px 0 #990000,
                0 2px 2px rgba(0, 0, 0, 0.2);
    top: 2px;
    transform: translateY(0);
}

/* 调整表格中网站名称单元格的样式 */
.comparison-table td:first-child {
    vertical-align: top;
    padding-top: 1rem;
}

.comparison-table td:first-child br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

/* 表格中的数字样式 */
.comparison-table .number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
    margin: 0.2rem 0;
    background: linear-gradient(transparent 60%, rgba(255, 255, 0, 0.4) 40%);
    padding: 0 2px;
}

/* 五角星样式 */
.comparison-table .stars {
    font-size: 1.2rem;
    color: #ffcc00;
    display: block;
    margin-bottom: 0.3rem;
}

/* 数字单元格样式 */
.comparison-table td:nth-child(3) {
    text-align: left;
    line-height: 1.4;
}

/* 确保评价文字大小与其他单元格一致 */
.comparison-table td {
    font-size: 0.9rem;
}

/* 荧光笔效果 */
.highlight-text {
    background: linear-gradient(transparent 60%, rgba(255, 255, 0, 0.4) 40%);
    padding: 0 2px;
}

h3 .highlight {
    background: linear-gradient(transparent 60%, rgba(255, 255, 0, 0.4) 40%);
    padding: 0 2px;
} 