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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* アラートメッセージ */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border: 1px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* 記事なしメッセージ */
.no-articles {
    text-align: center;
    padding: 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ヘッダー */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    height: 60px;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2c5aa0;
}

.nav-links .active {
    color: #0dc9ff;
    font-weight: bold;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* ハンバーガーアイコンは変化させない */

/* モバイルメニューオーバーレイ */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    z-index: 1000;
    padding-top: 80px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 2rem;
}

.mobile-menu .nav-links li {
    border-bottom: 1px solid #eee;
}

.mobile-menu .nav-links li:last-child {
    border-bottom: none;
}

.mobile-menu .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: #333;
    border-bottom: none;
}

.mobile-menu .nav-links a:hover {
    color: #0dc9ff;
    background-color: #f8f9fa;
}

.mobile-menu .nav-links .active {
    color: #0dc9ff;
    font-weight: bold;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 20px;
    font-weight: bold;
    color: #0dc9ff;
    padding: 5px 0pt;
}

.header-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* ヘッダーロゴのレスポンシブ対応 */
@media (max-width: 768px) {
    .header-logo {
        font-size: 20px;
        gap: 0.6rem;
    }
    
    .header-logo img {
        height: 40px;
    }
}



/* メインコンテンツ */
main {
    margin-top: 60px;
}

/* ヒーローセクション */
.hero {
    background: #0dc9ff;
    color: white;
    padding: 100px 0;
    width: 100%;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-container {
    flex: 1;
    text-align: left;
    padding-right: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 0 0 40%;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: #f2ff1b;
    color: #0dc9ff;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #d4e000;
}

/* セクション共通 */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #000000;
    position: relative;
    --underline-width: 60px;
    --underline-thickness: 5px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--underline-width);
    height: var(--underline-thickness);
    background-color: #0dc9ff;
}

.section-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.1em;
}

/* ABOUT USセクション専用 */
#about .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

#about .about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c5aa0;
}

#about .about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

#about .about-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

#about .about-features li {
    margin-bottom: 0.8rem;
    color: #333;
    font-weight: 500;
}

#about .about-image {
    text-align: center;
}

#about .about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* 導入までの流れセクション */
.flow {
    background: #0dc9ff;
    color: white;
}

#flow h2 {
    color: white;
}

#flow h2 .section-subtitle {
    color: white;
}

#flow h2::after {
    background-color: #f2ff1b;
}

.flow-container {
    max-width: 1200px;
    margin: 0 auto;
}

.flow-step {
    background: white;
    border-radius: 0px;
    padding: 2rem;
    margin: 1.5rem 0;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: #0dc9ff;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #0dc9ff;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.step-content p {
    line-height: 1.6;
    color: #555;
}

.flow-arrow {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin: 1rem 0;
}

.flow-cta {
    text-align: center;
    margin-top: 3rem;
}

/* 導入事例・お客様の声セクション */
.testimonials {
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.service-used {
    background: #0dc9ff;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-author .name {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
}

.testimonial-author .position {
    color: #666;
    font-size: 0.9rem;
}

/* お知らせセクション */
.news {
    background: white;
}

.news-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.news-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: #f8f9fa;
    padding-left: 1rem;
    padding-right: 1rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-meta {
    flex-shrink: 0;
    width: 150px;
    text-align: center;
}

.news-date {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.news-category {
    background: #0dc9ff;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
    font-weight: 500;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #0dc9ff;
}

.news-content p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* よくある質問セクション */
.faq {
    background: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s;
    border: none;
    width: 100%;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #0dc9ff;
    font-weight: bold;
    transition: transform 0.3s;
    margin-left: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}



/* 料金ページ専用スタイル */
.price-hero {
    background: #0dc9ff;
    color: white;
    padding: 40px 0 40px;
    margin-top: 60px;
    text-align: center;
}

.price-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.price-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 料金例セクション */
.price-examples {
    background: white;
}

.section-description {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.5rem auto 1rem;
    max-width: 600px;
}

#services .section-description {
    margin-bottom: 2.5rem;
}

.service-note {
    text-align: center;
    color: #777;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 2rem;
    margin-bottom: 0;
}

.section-cta {
    text-align: center;
    margin: 1.5rem auto 3rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    width: 160px;
    text-align: center;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #0dc9ff;
    color: #0dc9ff;
}

.filter-btn.active {
    background: #0dc9ff;
    border-color: #0dc9ff;
    color: white;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.example-card {
    background: #d9f5ff;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s, opacity 0.3s;
}

.example-card:hover {
    transform: translateY(-5px);
}

.example-card.hidden {
    display: none;
}

.example-card h3 {
    color: #0dc9ff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}



.example-card .content {
    margin-bottom: 1.5rem;
}

.example-card .content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.price-example {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    text-align: center;
}

.price-example .amount {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0dc9ff;
    margin-bottom: 0.5rem;
}

.price-note {
    color: #777;
    font-size: 0.8rem;
    font-weight: normal;
    display: block;
    line-height: 1.4;
}



/* 料金詳細セクション */
.price-details {
    background: white;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    border-left: 4px solid #0dc9ff;
}

.detail-card h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card li {
    margin-bottom: 0.8rem;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.detail-card li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #0dc9ff;
}

/* 料金FAQ */
.price-faq {
    background: #f8f9fa;
}

/* CTA セクション */
.price-cta {
    background: linear-gradient(135deg, #0dc9ff 0%, #2c5aa0 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #0dc9ff;
}

/* index.phpのお知らせセクション専用スタイル */
#news .news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#news .news-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: white;
    transition: box-shadow 0.3s;
}

#news .news-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#news .news-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
    position: static;
    height: auto;
}

#news .news-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    position: static;
    transform: none;
}

#news .news-category {
    background: #0dc9ff;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 500;
}

#news .news-content {
    flex: 1;
    padding: 0;
}

#news .news-content h3 {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

#news .news-content h3 a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
}

#news .news-content h3 a:hover {
    color: #0dc9ff;
}

#news .news-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* お知らせページ専用スタイル */
.news-hero {
    background: #0dc9ff;
    color: white;
    padding: 40px 0 40px;
    margin-top: 60px;
    text-align: center;
}

.news-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.news-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.news-section .news-card {
    display: block;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.news-section .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.news-section .news-image {
    width: 100%;
    height: 0;
    padding-bottom: 52.34%; /* 670/1280 = 0.5234 = 52.34% */
    position: relative;
    overflow: hidden;
}

.news-section .news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-section .news-content {
    padding: 1.5rem;
}

.news-section .news-meta {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
}

.news-section .news-tag {
    background: #0dc9ff;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.news-section .news-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.news-section .news-card h3 {
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.news-section .news-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* サイドバー */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-btn:hover {
    border-color: #0dc9ff;
    color: #0dc9ff;
}

.tag-btn.active {
    background: #0dc9ff;
    border-color: #0dc9ff;
    color: white;
}

.sidebar-widget p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar-btn {
    width: 100%;
    text-align: center;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #0dc9ff;
}

.recent-date {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.recent-post h4 {
    margin: 0;
    line-height: 1.4;
}

.recent-post h4 a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.recent-post h4 a:hover {
    color: #0dc9ff;
}

/* サービス紹介ページ専用スタイル */
.services-hero {
    background: #0dc9ff;
    color: white;
    padding: 40px 0 40px;
    margin-top: 60px;
    text-align: center;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.services-hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.service-intro {
    padding: 60px 0;
    text-align: center;
    background: #f8f9fa;
}

.service-intro h2 {
    margin-bottom: 1.5rem;
}

.intro-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.service-detail {
    padding: 80px 0;
}

.service-detail.alt-bg {
    background: #f8f9fa;
}

.service-main-title {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-main-title::after {
    display: none;
}

.service-simple-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-image {
    flex: 1;
    position: relative;
}

.service-image img {
    width: 100%;
    height: auto;
}

.service-text {
    flex: 1;
}

.service-text h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-text p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.service-icon {
    flex-shrink: 0;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-title h2 {
    color: #2c5aa0;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.service-title h2::after {
    display: none;
}

.service-subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.service-sections {
    display: grid;
    gap: 3rem;
}

.service-overview,
.service-features,
.service-benefits {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-detail.alt-bg .service-overview,
.service-detail.alt-bg .service-features,
.service-detail.alt-bg .service-benefits {
    background: white;
}

.service-sections h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0dc9ff;
}

.service-overview p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0dc9ff;
}

.feature-item h4 {
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.benefits-list li {
    background: #f0f9ff;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    border-left: 4px solid #0dc9ff;
    color: #333;
    font-weight: 500;
    position: relative;
}

.benefits-list li::before {
    content: "✓";
    color: #0dc9ff;
    font-weight: bold;
    margin-right: 0.5rem;
}

.services-cta {
    background: #2c5aa0;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.services-cta .cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
}

.services-cta .cta-content h2::after {
    display: none;
}

.services-cta .cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #2c5aa0;
}

/* ヘッダーロゴのリンクスタイル */
.header-logo a {
    color: #0dc9ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}



/* お問い合わせヒーローセクション */
.contact-hero {
    background: #0dc9ff;
    color: white;
    padding: 40px 0 40px;
    margin-top: 60px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* お問い合わせセクション */
.contact-section {
    background: #f8f9fa;
    padding: 80px 0;
}

/* フォームスタイル */
.contact-form-wrapper {
    background: white;
    border-radius: 0px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 1000;
}

.required {
    color: #ff5252;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

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

/* ラジオボタンのスタイル */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s, background-color 0.3s;
    margin-bottom: 0;
    min-height: 44px;
}

.radio-option:hover {
    border-color: #0dc9ff;
    background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 1rem;
    position: relative;
    transition: border-color 0.3s;
    flex-shrink: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #0dc9ff;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0dc9ff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}



.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    background: #0dc9ff;
    color: white;
    border: none;
}

.submit-btn:hover {
    background: #2c5aa0;
}




/* サービスセクション */
.services {
    background: #f8f9fa;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    display: block;
    background: #d9f5ff;
    padding: 2rem;
    border-radius: 0px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0dc9ff;
}

.service-card p {
    color: #555;
    line-height: 1.6;
}



/* フッター */
footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-info p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: inline-block;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* 旧フッター用（シンプル版）- 後方互換性のため */
footer.simple-footer {
    text-align: center;
    padding: 2rem 0;
}

/* フッター - レスポンシブ */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links h4 {
        display: inline-block;
    }
}

/* 事業者案内ページのスタイル */
.company-hero {
    background: #0dc9ff;
    color: white;
    padding: 40px 0 40px;
    margin-top: 60px;
    text-align: center;
}

.company-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.company-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legal-section h2 {
    color: #333;
    border-bottom: 3px solid #0dc9ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.legal-section h3 {
    color: #555;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.legal-table {
    width: 60%;
    border-collapse: collapse;
    margin: 1rem 0;
    margin: 0 auto;
}

.legal-table th,
.legal-table td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: #f8f9fa;
    font-weight: bold;
    width: 150px;
    color: #333;
}

.legal-table td {
    background: white;
    line-height: 1.6;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0dc9ff;
    margin: 1rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.contact-info strong {
    color: #333;
}

/* プライバシーポリシーページのスタイル */
.privacy-hero {
    background: #0dc9ff;
    color: white;
    padding: 40px 0 40px;
    margin-top: 60px;
    text-align: center;
}

.privacy-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

/* プライバシーポリシーページのh2疑似要素（下線）を無効化 */
.privacy-section h2::after {
    content: none !important;
    display: none !important;
}

/* プライバシーポリシーページのcontact-infoをシンプルに */
.privacy-section .contact-info {
    background: none;
    padding: 0;
    border-radius: 0;
    border-left: none;
    margin: 1rem 0;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 事業者案内・プライバシーポリシーページ - レスポンシブ対応 */
@media (max-width: 768px) {
    .company-hero h1,
    .privacy-hero h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .privacy-section {
        margin-bottom: 2rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .legal-table th {
        width: 120px;
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    nav .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }


    
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding: 0px 20px;
    }
    
    .hero-container {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2.6rem;
        text-align: center;
    }

    .hero p {
        font-size: 1rem;
        text-align: center;
    }

    .hero .btn {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }
    
    .hero-image {
        flex: none;
        width: 80%;
        margin: 0 auto;
    }
    

    
    /* ABOUT USセクションのレスポンシブ */
    #about .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    #about .about-text {
        order: 2;
        padding: 0 10px;
    }

    #about .about-text h3 {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }

    #about .about-text p {
        margin-bottom: 0.5rem;
    }
    
    #about .about-image {
        order: 1;
        width: 50%;
        margin: 0 auto;
    }
    
    #about .about-image img {
        width: 100%;
        height: auto;
    }
    
    /* 導入までの流れセクションのレスポンシブ */
    .flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* お知らせセクションのレスポンシブ */
    .news-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }
    
    .news-meta {
        width: auto;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .news-date {
        margin-bottom: 0;
    }
    
    /* よくある質問セクションのレスポンシブ */
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-toggle {
        font-size: 1.3rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.2rem 1.5rem;
    }
    
    /* お問い合わせページのレスポンシブ */
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 料金ページのレスポンシブ */
    .price-hero h1 {
        font-size: 2rem;
    }
    
    .price-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        min-width: 200px;
    }
    
    /* 料金例セクションのレスポンシブ */
    .filter-buttons {
        gap: 0.5rem;
        margin: 1.5rem 0;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 120px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .example-card {
        padding: 1.5rem;
    }
    
    .example-card h3 {
        font-size: 1.1rem;
    }
    
    .price-example .amount {
        font-size: 1.3rem;
    }
    
    /* index.phpお知らせセクションのレスポンシブ */
    #news .news-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    #news .news-meta {
        flex-direction: row;
        min-width: auto;
        gap: 1rem;
    }
    
    /* お知らせページのレスポンシブ */
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        order: 1;
    }
    
    .news-section .news-content {
        padding: 1.2rem;
    }
    
    .news-section .news-card h3 {
        font-size: 1rem;
    }
    
    /* サービス紹介ページのレスポンシブ */
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    
    .service-intro {
        padding: 40px 0;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .service-detail {
        padding: 60px 0;
    }
    
    .service-main-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-simple-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .service-image {
        flex: none;
    }
    
    .service-image img {
        max-width: 250px;
    }
    
    .service-text h3 {
        font-size: 1.3rem;
    }
    
    .service-text p {
        font-size: 0.9rem;
    }
    
    .services-cta {
        padding: 40px 0;
    }
    
    .services-cta .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .news-sidebar {
        order: 2;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.2rem;
    }
    
    /* サイドバー内の要素順序制御（スマホ時） */
    .sidebar-widget:nth-child(1) { /* タグから検索 */
        order: 1;
    }
    
    .sidebar-widget:nth-child(2) { /* お気軽にご相談ください */
        order: 2;
    }
    
    .tag-btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
} 

/* ===== 記事詳細ページ ===== */
.article-section {
    padding: 80px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.article-content-wrapper {
    background: white;
    border-radius: 8px;
    padding: 0;
}

/* 記事メタ情報 */
.article-content-wrapper .article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
    align-items: center;
}

/* カテゴリタグと閲覧数のコンテナ（デスクトップ版） */
.article-content-wrapper .meta-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.article-content-wrapper .category-badge {
    background: #0dc9ff;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content-wrapper .view-count {
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.article-content-wrapper time {
    color: #666;
    font-size: 0.9rem;
    margin-left: auto; /* 投稿日を右寄せ */
}

/* 記事タイトル */
.article-content-wrapper .article-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.3;
    font-weight: 700;
    border-bottom: 3px solid #0dc9ff;
    padding-bottom: 1rem;
}

/* 記事画像 */
.article-content-wrapper .article-image {
    width: 100%;
    height: auto;
    margin: 0 0 2rem 0;
}

/* 記事の抜粋 */
.article-content-wrapper .article-excerpt {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #0dc9ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* 記事本文 */
.article-content-wrapper .article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

.article-content-wrapper .article-content p {
    margin-bottom: 1.5rem;
}

.article-content-wrapper .article-content h2 {
    margin: 2rem 0 1rem 0;
    color: #333;
    text-align: left;
}

/* 記事内h2の疑似要素（下線）を無効化 */
.article-content-wrapper .article-content h2::after {
    content: none !important;
    display: none !important;
}

/* 記事内h2に対して.section h2のスタイルを上書き */
.article-section .article-content-wrapper .article-content h2 {
    text-align: left !important;
    position: static !important;
    font-size: 1.5rem !important;
    margin: 2rem 0 1rem 0 !important;
    color: #333 !important;
}

.article-content-wrapper .article-content h3 {
    margin: 1.5rem 0 1rem 0;
    color: #333;
}

/* 記事本文内の画像スタイル */
.article-content-wrapper .article-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

/* 記事本文内のリストスタイル */
.article-content-wrapper .article-content ul,
.article-content-wrapper .article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content-wrapper .article-content li {
    margin-bottom: 0.5rem;
}

/* 記事本文内のブロック引用 */
.article-content-wrapper .article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #0dc9ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* サイドバー */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.article-sidebar .sidebar-widget {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-sidebar .sidebar-widget h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 一般的なarticle-metaとcategory-badge（他の場所で使用） */
.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.category-badge {
    background: #0dc9ff;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.article-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

/* 一般的なarticle-excerpt（他の場所で使用） */
.article-excerpt {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.article-content-wrapper .article-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 3rem;
}

.article-content-wrapper .tags {
    margin-bottom: 2rem;
    text-align: left; /* タグを左寄せ */
}

.article-content-wrapper .tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-content-wrapper .related-articles {
    margin-top: 3rem;
    border-top: 2px solid #0dc9ff;
    padding-top: 2rem;
}

.article-content-wrapper .related-articles h3 {
    color: #0dc9ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.article-content-wrapper .related-list {
    list-style: none;
}

.article-content-wrapper .related-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.article-content-wrapper .related-item:last-child {
    border-bottom: none;
}

.article-content-wrapper .related-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.article-content-wrapper .related-item a:hover {
    color: #0dc9ff;
}

.article-content-wrapper .related-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.article-content-wrapper .related-date {
    font-size: 0.8rem;
    color: #666;
}

.article-content-wrapper .nav-buttons {
    text-align: center; /* ボタンを中央寄せ */
    margin: 2rem 0;
}

.article-content-wrapper .nav-buttons .btn {
    margin: 0 0.5rem; /* 中央寄せボタンのマージン */
}

/* 「お知らせ一覧に戻る」ボタンのスタイル */
.article-content-wrapper .nav-buttons .btn[href="news.php"] {
    background-color: #0dc9ff;
    color: white;
}

.article-content-wrapper .nav-buttons .btn[href="news.php"]:hover {
    background-color: #1e3f73;
}

/* 一般的なスタイル（他の場所で使用） */
.tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.related-articles {
    margin-top: 3rem;
}

.related-articles h3 {
    color: #0dc9ff;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0dc9ff;
    padding-bottom: 0.5rem;
}

.related-list {
    list-style: none;
}

.related-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.related-item a:hover {
    color: #0dc9ff;
}

.related-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.related-date {
    font-size: 0.8rem;
    color: #666;
}

.nav-buttons {
    text-align: center;
    margin: 3rem 0;
}

.nav-buttons .btn {
    margin: 0 0.5rem;
}

/* 記事詳細ページのmainコンテンツ */
.article-main {
    margin-top: 60px; /* ヘッダー分のマージンのみ */
}

/* ===== 記事詳細ページ レスポンシブ ===== */
@media (max-width: 768px) {
    .article-main {
        margin-top: 60px;
    }
    
    .article-section {
        padding: 1rem 0;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-content-wrapper .article-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .article-content-wrapper .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* カテゴリタグと閲覧数を横並びに表示するためのコンテナ */
    .article-content-wrapper .meta-row {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
    }
    
    /* 投稿日は別行に表示 */
    .article-content-wrapper time {
        margin-left: 0; /* モバイルでは右寄せ解除 */
        align-self: flex-end; /* 投稿日をカラム右端に配置 */
        margin-top: 0.5rem;
        display: block;
        width: 100%;
        text-align: right;
    }
    
    .article-content-wrapper .article-excerpt {
        font-size: 1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .article-sidebar {
        position: static;
        order: 2;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    
    .article-sidebar .sidebar-widget {
        padding: 1.5rem;
    }
    
    /* 記事詳細サイドバー内の要素順序制御（スマホ時） */
    .article-sidebar .sidebar-widget:nth-child(1) { /* タグから検索 */
        order: 1;
    }
    
    .article-sidebar .sidebar-widget:nth-child(2) { /* お気軽にご相談ください */
        order: 2;
    }
}

@media (max-width: 480px) {
    .article-content-wrapper .article-title {
        font-size: 1.5rem;
    }
    
    .article-sidebar .sidebar-widget {
        padding: 1rem;
    }
    
    .article-sidebar .sidebar-widget h3 {
        font-size: 1.2rem;
    }
    
    /* 確認ページボタンの極小画面対応 */
    .confirm-actions .btn {
        font-size: 0.9rem;
        height: 45px;
        padding: 0 1rem;
    }
}

/* ===== 確認ページ（confirm.php） ===== */
.confirm-section {
    padding: 2rem 0;
}

.confirm-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.confirm-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.confirm-content h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.confirm-table {
    margin-bottom: 3rem;
}

.confirm-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-label {
    font-weight: 600;
    color: #2c5aa0;
    width: 200px;
    flex-shrink: 0;
    padding-right: 1rem;
}

.confirm-value {
    flex: 1;
    line-height: 1.6;
    word-break: break-word;
}

.confirm-actions {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.confirm-actions form {
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.confirm-actions .btn {
    min-width: 160px;
    height: 50px;
    padding: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    vertical-align: top;
    margin: 0;
    border: 2px solid;
    border-radius: 5px;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.confirm-actions .btn:focus {
    outline: 2px solid #0dc9ff;
    outline-offset: 2px;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.btn-primary:hover {
    background: #1e3f73;
    border-color: #1e3f73;
}

.btn-secondary {
    background: white;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-secondary:hover {
    background: #2c5aa0;
    color: white;
}

/* ===== 送信完了ページ（complete.php） ===== */
.complete-section {
    padding: 2rem 0;
}

.complete-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.complete-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.complete-icon {
    font-size: 4rem;
    color: #0dc9ff;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.complete-content h2 {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.complete-message {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.complete-message p {
    margin-bottom: 1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0dc9ff;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-top: 0.2rem;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-time {
    font-size: 0.9rem;
    color: #666;
}

.complete-actions {
    margin: 3rem 0 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.complete-actions .btn {
    min-width: 160px;
    height: 50px;
    padding: 0 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    vertical-align: top;
    margin: 0;
    border: 2px solid;
    border-radius: 5px;
    text-decoration: none;
    box-sizing: border-box;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.complete-actions .btn:focus {
    outline: 2px solid #0dc9ff;
    outline-offset: 2px;
}

.complete-note {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.complete-note p {
    margin-bottom: 0.5rem;
}

/* 確認・完了ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .confirm-content,
    .complete-content {
        padding: 2rem 1rem;
    }
    
    .confirm-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .confirm-label {
        width: 100%;
        font-weight: 700;
        padding-right: 0;
    }
    
    .confirm-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .confirm-actions form {
        width: 100%;
        max-width: 280px;
        display: block;
    }
    
    .confirm-actions .btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        height: 50px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .complete-icon {
        font-size: 3rem;
    }
    
    .complete-content h2 {
        font-size: 1.6rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .complete-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .complete-actions .btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
} 