@charset "UTF-8";

/* ==========================================================================
   1. ベーススタイル（Base Styles）
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #fcfcfc;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: #333333;
    line-height: 1.6;
}

/* トップページ専用の背景色と設定 */
body.home {
    background-color: #ffd500;
    /* overflow: hidden は削除し、下へスクロール可能にしました */
}

a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   2. ヘッダーとグローバルメニュー（Header & Navigation）
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease;
}

body:not(.home) .header {
    background-color: #ffd500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
}

.nav-list li a {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: opacity 0.3s ease;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-list li a:hover {
    opacity: 0.8;
}

.nav-list li a:hover::after {
    width: 100%;
}

/* ==========================================================================
   3. トップページ専用スタイル（Front Page Styles）
   ========================================================================== */
/* ヒーローセクション（全画面） */
.home-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* 回転テキストのはみ出しによる横スクロールを防止 */
}

.rotating-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    animation: spin 10s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.home-title {
    font-size: 10rem;
    font-weight: 900;
    color: #000000;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

/* --- 新規追加：依頼できる仕事（カード型セクション） --- */
.home-services-section {
    padding: 100px 20px;
    background-color: transparent; /* 背景を透明にしてbodyのグラデーションを活かす */
}

.home-services-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: #000;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-item:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    background-color: #eeeeee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999999;
    font-weight: bold;
    height: 100%;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    line-height: 1.4;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   4. 下層ページ・レイアウト（Inner Pages Layout）
   ========================================================================== */
.site-main {
    max-width: 800px;
    margin: 140px auto 80px;
    padding: 0 20px;
}

.page-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    border-bottom: 4px solid #ffd500;
    padding-bottom: 10px;
    display: inline-block;
}

/* ==========================================================================
   5. ブログ記事一覧（リスト型）スタイル
   ========================================================================== */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    display: block;
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.post-item-date {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 0.5rem;
}

.post-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    color: #000000;
}

.post-item-excerpt {
    font-size: 1rem;
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

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

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
}

.pagination a,
.pagination span.current {
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination span.current {
    background-color: #ffd500;
    color: #000000;
}

.pagination a:hover {
    background-color: #ffe033;
}

/* ==========================================================================
   6. 記事詳細・固定ページスタイル（Single & Page）
   ========================================================================== */
.entry-header {
    margin-bottom: 2.5rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 1rem;
    color: #000000;
    line-height: 1.3;
}

.entry-meta {
    font-size: 1rem;
    color: #777777;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #222222;
}

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

.entry-content h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffd500;
}

.entry-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ==========================================================================
   7. レスポンシブ対応（Responsive Design）
   ========================================================================== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-title { font-size: 4.5rem; }
    .rotating-text-wrapper { width: 350px; height: 350px; }
    .site-main { margin-top: 180px; }
    .entry-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    
    .home-services-section {
        padding: 60px 15px;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
}
