/*
Theme Name: Larv3 Corporate Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: コーポレートサイト向けのカスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: larv3
*/

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Garamond, "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    line-height: 1.6;
    color: #333;
}

/* ナビゲーションバー */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    height: 90px;
    font-family: "Noto Sans JP", Hiragino Sans, "ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, Helvetica, Arial, "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 3rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.site-logo {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    color: #333;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    line-height: 1.2;
    font-family: "Noto Sans JP", Hiragino Sans, "ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, Helvetica, Arial, "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
}

.site-header.scrolled .site-title {
    color: #333;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-family: "Noto Sans JP", Hiragino Sans, "ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, Helvetica, Arial, "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: "Noto Sans JP", Hiragino Sans, "ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, Helvetica, Arial, "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
}

.site-header.scrolled .main-navigation a {
    color: #333;
}

.main-navigation a:hover {
    opacity: 0.7;
}

/* ヒーローセクション */
.hero-section {
    width: 100%;
    height: 83vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

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

/* 業務紹介セクション */
.services-section {
    position: relative;
    margin-top: -150px;
    padding: 2rem;
    z-index: 10;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.75) 50%, 
        rgba(255, 255, 255, 1) 100%);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 1rem;
    display: block;
}

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

/* 会社紹介セクション */
.about-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 記事リストセクション */
.posts-section {
    padding: 4rem 2rem;
}

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

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.post-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.post-item.no-thumbnail {
    display: block;
}

.post-item.no-thumbnail .post-content {
    flex: none;
}

.post-thumbnail {
    flex: 0 0 300px;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post-content {
    flex: 1;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-content h3 a {
    color: #333;
    text-decoration: none;
}

.post-content h3 a:hover {
    color: #0066cc;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.8;
}

/* フッターロゴセクション */
.footer-logo-section {
    display: none;
    background: #f9f9f9;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.footer-logo .custom-logo-link {
    display: inline-block;
}

/* フッター */
.site-footer {
    background: #333;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.footer-address{
    text-align: left;
}

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

.footer-navigation {
    margin-top: 1rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-menu a:hover {
    opacity: 0.7;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-item.no-thumbnail {
        display: block;
    }
    
    .post-thumbnail {
        flex: 1;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 単一記事
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

.post-navigation a:hover {
    color: #004080;
}

/* ページテンプレートのスタイル */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    clear: both;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    clear: both;
}

.page-featured-image {
    margin-bottom: 2rem;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-content-wrapper {
    line-height: 1.8;
    font-size: 1.1rem;
    overflow: hidden;
}

.page-content-wrapper h2 {
    clear: both;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #0066cc;
    margin-bottom: 1rem;
}

.page-content-wrapper h3 {
    clear: both;
    padding-top: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #0066cc;
    margin-bottom: 0.8rem;
}

.page-content-wrapper h4 {
    clear: both;
    padding-top: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #0066cc;
    margin-bottom: 0.6rem;
}

.page-content-wrapper h5 {
    clear: both;
    padding-top: 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px dotted #0066cc;
    margin-bottom: 0.5rem;
}

.page-content-wrapper h6 {
    clear: both;
    padding-top: 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px dashed #0066cc;
    margin-bottom: 0.5rem;
}

.page-article {
    overflow: hidden;
}

/* ページネーション */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0066cc;
    color: #fff;
}

/* サイドバー */
.sidebar {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0066cc;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.widget ul li a {
    color: #333;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #0066cc;
}

/* 検索フォーム */
.search-form {
    display: flex;
    margin-bottom: 1rem;
}

.search-form .search-field {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-form .search-submit {
    padding: 0.5rem 1.5rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form .search-submit:hover {
    background: #004080;
}

/* コメントセクション */
.comments-area {
    margin: 3rem 0 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    clear: both;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

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

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.comment-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
}

.comment-reply-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    padding: 0.75rem 2rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: #004080;
}

/* 404ページ */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-404 .page-title {
    font-size: 4rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.error-404 .page-content {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.error-404 .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* ハンバーガーメニュー（モバイル） */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: "Noto Sans JP", Hiragino Sans, "ヒラギノ角ゴシック", Hiragino Kaku Gothic ProN, "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, Helvetica, Arial, "ＭＳ Ｐゴシック", "MS P Gothic", sans-serif;
}

.site-header.scrolled .menu-toggle {
    color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 2rem;
    }
    
    .site-header {
        height: 70px;
    }
    
    .site-logo {
        width: 70px;
        height: 70px;
    }
    
    .site-branding {
        gap: 0.5rem;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        display: none;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation.toggled a {
        color: #333;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-title,
    .post-title {
        font-size: 1.8rem;
    }
}

/* アクセシビリティ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

