/*
Theme Name:namiki-test
*/

html,
body {
    height: 100%;
    /* HTMLとBodyの高さをビューポートに合わせる */
    margin: 0;
    padding: 0;
}

/* ベース設定とリセット */

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 共通セクションタイトル */
.section-title {
    font-size: 50px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 60px;
    margin-top: 80px;
}

/* -------------------- 1. トップの行動喚起エリア -------------------- */
.cta-top-section {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.cta-text {
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 40px 60px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 35px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #333;
}

/* -------------------- 2. 事業内容セクション -------------------- */
.business-section {
    margin: 0 auto;
    padding: 50px 20px;
    /* max-widthは設定されていませんが、このpaddingがコンテンツの左右の余白になります */
}

.service-category {
    margin-bottom: 80px;
    display: flex;
    /* 補完要素はすべて削除 */
    /* max-width, margin: auto, border, background, overflow: hidden, position: relative は削除 */
}


/* カテゴリ名（WEB LAB / MUSICIANS LAB）のコンテナ */
.category-name {
    flex-shrink: 0;
    width: 35%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 60px;
    font-weight: bold;
    padding: 20px 150px;
    white-space: nowrap;
    z-index: 2;
}

/* サービス項目（FC本部立ち上げなど）uのコンテナ */
.service-list {
    flex-grow: 1;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* !!! 修正点: service-row に position:relative を追加し、擬似要素を追加 !!! */
/* .service-row {
    position: relative;
} */
/* 1. 行を左に隠した初期状態 */
.service-row {
    opacity: 0;
    transform: translateX(-60px);
    /* 左にスライドだけ。上下方向には動かさない */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: transform, opacity;
}

/* 2. 表示されたときの状態（フェードイン + スライド） */
.service-row.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* 行ごとに遅延させて順番にアニメーション */
.service-row:nth-child(1) {
    transition-delay: 0.1s;
}

.service-row:nth-child(2) {
    transition-delay: 0.3s;
}

.service-row:nth-child(3) {
    transition-delay: 0.5s;
}

.service-row:nth-child(4) {
    transition-delay: 0.7s;
}

/* !!! 新規追加: service-row のグラデーションを画面端まで広げる擬似要素 !!! */
.service-row::before {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    z-index: -1;
    /* service-item のコンテンツの背面に隠す */

    /* .business-section の左padding (20px) を考慮して、画面左端に合わせる */
    left: calc(-1 * (100vw - 100%) / 2 - 20px);

    /* グラデーションを画面端まで広げる */
    width: 100vw;

    /* グラデーションの設定 */
    background: linear-gradient(to right, #ffffff, #a6a6a6);
}

/* service-row のボーダー/区切り線は、ご提示のコードにはないのでここでは設定しません */


/* サービス項目（各行） */
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* 修正: グラデーションを擬似要素に任せる */
    background: transparent;

    margin: 20px;
    padding: 40px 40px;
    /* サービス項目間の区切り線は、ご提示のコードにはないのでここでは設定しません */

    position: relative;
    /* テキストの重なり順を制御 */
    z-index: 1;
}

/* サービス名 (文字を右寄せ) */
.service-text {
    font-size: 30px;
    font-weight: 800;
    text-align: left;
    position: relative;
    flex-grow: 1;
}

/* 画像スペース */
.service-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: transparent;
}

/* -------------------- MUSICIANS LAB の調整 -------------------- */
.service-category:last-of-type {
    margin-bottom: 80px;
    /* 補完要素はすべて削除 */
}


/* -------------------- 3. ニュースセクション -------------------- */
.news-section {
    max-width: 1000px;
    /* ニュースリストの最大幅 */
    margin: 0 auto;
    text-align: center;
}

.news-list li {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
    /* テキストを左寄せ */
    padding-left: 20px;
    /* 箇条書きのインデント */
    position: relative;
}

/* 箇条書きのドットをカスタム */
.news-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    /* 垂直位置調整 */
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
}

/* -------------------- Blogセクション -------------------- */
.blog-section {
    padding: 50px 20px 100px 20px;
    background-color: #fff;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-title {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
}

.blog-card:hover {
    opacity: 0.8;
}

/* !!! 修正点1: img.blog-thumbnail のスタイルを追加 !!! */
.blog-thumbnail {
    width: 100%;
    /* 親要素の幅いっぱいに広げる */
    height: 180px;
    /* 固定の高さを設定 (デザイン画像に合わせて調整) */
    object-fit: cover;
    /* 画像がはみ出さないように、縦横比を維持しつつトリミング */
    border-radius: 35px;
    /* 角丸 */
    margin-bottom: 15px;
    display: block;
    /* img要素はinlineなので、blockにして margin-bottom を適用しやすくする */
}

.blog-meta {
    padding: 0 5px;
}

.blog-date {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.blog-text {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    line-height: 1.5;
}


/* --- Webフォントの読み込み設定例 --- */
/* 実際に使用するには、フォントファイル（woff, woff2など）が必要です。 */
/* @font-face {
    font-family: 'Corporate Logo Bold Ver3';
    src: url('fonts/corporate-logo-bold-ver3.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'F910 New Comic';
    src: url('fonts/f910-new-comic.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} */

/* --- フォントクラスの定義 --- */
/* フォントファイルがない場合は、指定された代替フォントが適用されます。 */
.font-corporate-bold {
    font-family: 'Corporate Logo Bold Ver3', 'Arial Black', sans-serif;
}

.font-f910 {
    font-family: 'F910 New Comic', 'Arial', sans-serif;
}

/* -------------------- ベース設定とリセット -------------------- */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-x: hidden
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* -------------------- 2. メインビジュアル/ページヘッダー (グレーの部分) -------------------- */


.page-header-section {
    /* グラデーション */
    background: linear-gradient(to right, #f7f7f7 0%, #a6a6a6 100%);
    min-height: 550px;
    position: relative;
    overflow: hidden;
}

.header-content {
    margin: 0 auto;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: 100%;
}

/* -------------------- キャッチコピーエリア -------------------- */
.catchphrase-area-frontpage {
    margin-left: auto;
    align-self: center;
    position: relative;
    right: 100px;
}

.catchphrase-line-frontpage {
    margin: 10px 0;

    /* 文字は左揃えを維持 */
    text-align: left;

    font-size: 25px;
    font-weight: 700;
    color: #fff;

    white-space: nowrap;
}

/* -------------------- newsエリア -------------------- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    width: 100%;
}

.news-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
    width: 100%;
    gap: 8px;
}

.news-item:hover {
    background-color: #f5f5f5;
}

.news-date {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.news-title {
    font-size: 20px;
    color: #333;
    line-height: 1.6;
    text-align: center;
    font-weight: bold;
}

.news-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* -------------------- blogエリア -------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.3s;
}

.blog-card-link:hover {
    opacity: 0.8;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #b0b0b0;
    margin-bottom: 16px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #b0b0b0;
    color: #666;
    font-size: 14px;
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-card-date {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.blog-card-title {
    font-size: 15px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: bold;
}


/* ==================== レスポンシブ対応 ==================== */

/* タブレット対応 (1024px以下) */

/* タブレット対応 (1024px以下) */
@media screen and (max-width: 1024px) {
    .catchphrase-area-frontpage {
        right: 200px;
    }

    .catchphrase-line-frontpage {
        font-size: 38px;
    }
}

/* タブレット対応 (900px以下) */
@media screen and (max-width: 900px) {
    .catchphrase-area-frontpage {
        left: 210px;
    }

    .catchphrase-line-frontpage {
        font-size: 28px;
    }

    .category-name {
        font-size: 40px;
        padding: 20px 60px;
        /* ← 150px が広すぎるので調整 */
        width: 40%;
    }
}

/* タブレット対応 (768px以下) */
@media screen and (max-width: 768px) {
    .catchphrase-area-frontpage {
        left: 200px;
    }

    .catchphrase-line-frontpage {
        font-size: 24px;
    }

    /* カラムを縦並びに */
    .service-wrapper {
        /* ← 親のクラスをあなたのHTMLに合わせて変更してOK */
        flex-direction: column;
    }

    .category-name {
        width: 100%;
        font-size: 32px;
        padding: 10px 20px;
        white-space: normal;
        /* ← スマホで改行OKにする */
        text-align: left;
    }

    .service-row {
        opacity: 0;
        transform: translateY(30px);
        /* ← スマホは左右より上下スライドが自然 */
    }

    .service-row.in-view {
        transform: translateY(0);
    }
}

/* スマホ対応 (600px以下) */
@media screen and (max-width: 600px) {
    .catchphrase-area-frontpage {
        left: 200px;
    }

    .catchphrase-line-frontpage {
        font-size: 20px;
    }
}

/* 小さいスマホ対応 (480px以下) */
@media screen and (max-width: 480px) {
    .catchphrase-area-frontpage {
        left: 200px;
    }

    .catchphrase-line-frontpage {
        font-size: 20px;
    }
}