/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin-top: 100px; /* ヘッダーの高さを考慮（PC用） */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* 子要素を横並びに */
    align-items: center; /* 子要素を縦中央揃え */
    justify-content: space-between; /* 子要素を両端に配置 */
}
/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    height: 100px; /* パソコンの場合 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px; /* ロゴとメニューの余白を調整 */
    z-index: 1000;
}

.logo {
    margin-right: 50px; /* スペースを50pxに設定 */
}

/* または、指定間隔を追加する方法 */
.nav {
    margin-left: 40px; /* ロゴとメニューの間に固定スペースを追加 */
}

.nav-links {
    list-style: none;
    display: flex; /* メニューを横並びにする */
    gap: 20px; /* メニュー項目間の余白 */
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ff6600; /* ホバー時の色変更 */
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #333;
}

/* Heroセクション全体 */
.hero {
    height: 700px; /* パソコンの場合の高さ */
    background: url('/img/hero.jpg') no-repeat center center / cover; /* 背景画像 */
    display: flex;
    align-items: center; /* 縦方向中央揃え */
    justify-content: flex-start; /* 左寄せ */
    position: relative; /* テキスト位置調整のため */
    overflow: hidden; /* 必要に応じて適用 */
}

/* Hero内のコンテナ */
.hero-container {
    max-width: 1200px; /* 横幅を制限 */
    margin: 0 auto; /* 水平中央揃え */
    padding: 0 20px; /* 左右の余白 */
    position: relative; /* 子要素の配置調整を可能に */
    display: flex;
    justify-content: flex-start; /* 左寄せ */
    align-items: center; /* 縦方向中央揃え */
}

/* Hero内のテキスト */
.hero-content {
    position: relative; /* 配置調整の基点を設定 */
    margin-left: calc(10% + -350px); /* 画面幅の10% + 50px */
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
    white-space: nowrap; /* 改行を禁止 */
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #fff;
    white-space: nowrap; /* 改行を禁止 */
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #e65c00;
}

/* コンセプトセクション全体 */
.concept-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

/* タイトル */
.concept-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

/* コンテナ */
.concept-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* モバイル対応で縦並び */
}

/* 画像部分 */
.concept-image {
    flex: 1;
    min-width: 300px; /* モバイル画面で画像が小さくなりすぎないよう制限 */
}

.concept-image img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* 角丸デザイン */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 画像の影 */
}

/* テキスト部分 */
.concept-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* テキストボックスの影 */
    text-align: left;
}

.concept-text h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.concept-text .subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase; /* 全て大文字 */
}

.concept-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* コンテナ設定 */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* コンテンツエリア全体 */
.content-area {
    padding: 60px 20px;
}

/* 見出し */
.content-area h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.content-area p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* コンテンツアイテム全体 */
.content-items {
    display: flex; /* Flexboxで横並び */
    justify-content: space-between; /* 均等に間隔を配置 */
    gap: 20px; /* アイテム間の余白 */
    flex-wrap: wrap; /* スマホ対応で折り返し可能に */
}

/* 各アイテム */
.content-item {
    flex: 1;
    max-width: 30%; /* パソコン時のアイテム幅 */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* アイコン */
.content-item img {
    width: 150px; /* アイコンサイズ */
    margin-bottom: 20px;
}

/* サブ見出し */
.content-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 説明文 */
.content-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* 全体のスタイル */
.feature-area {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 見出し */
.feature-area h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.feature-area p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 特徴セクション */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

/* テキスト部分 */
.feature-text {
    flex: 1;
    text-align: left;
}

.feature-text h3 {
    font-size: 18px;
    color: #007BFF;
    margin-bottom: 10px;
}

.feature-text h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* 画像部分 */
.feature-image {
    flex: 1;
    text-align: center;
}

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

/* 特徴 02 の画像を左側にする */
.feature-item.reverse {
    flex-direction: row-reverse;
}

/* サービスメニュー全体 */
.services-menu {
    padding: 60px 20px;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 見出し */
.services-menu h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.services-menu p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* サービスアイテムの配置 */
.services-items {
    display: flex;
    flex-wrap: wrap; /* 横並びで折り返し */
    gap: 20px; /* アイテム間の余白 */
    justify-content: space-between; /* 均等配置 */
}

/* サービスアイテム全体 */
.service-item {
    flex: 1 1 calc(33.333% - 20px); /* 横幅を1/3に調整 */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 画像がはみ出さないようにする */
    display: flex;
    flex-direction: column; /* 画像とテキストを縦に配置 */
    align-items: stretch; /* 子要素をアイテム幅いっぱいに拡張 */
}

/* 画像部分 */
.service-item img {
    width: 100%; /* 親要素の幅いっぱいに広げる */
    height: auto; /* 縦横比を維持 */
    display: block; /* 不要な隙間を防ぐ */
}

/* テキスト部分 */
.service-item h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 10px 10px;
    text-align: left;
}

.service-item p {
    font-size: 14px;
    color: #555;
    margin: 0 10px 20px;
    line-height: 1.6;
    text-align: left;
}

/* 全体のスタイル */
.workflow {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.workflow-container {
    max-width: 900px; /* 横幅の最大値を900pxに制限 */
    margin: 0 auto;
    text-align: center;
}

/* 見出し */
.workflow h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.workflow p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ステップ全体 */
.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 各ステップ */
.workflow-step {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* アイコン部分 */
.workflow-icon {
    flex: 0 0 50px; /* 固定幅 */
    margin-right: 20px;
}

.workflow-icon img {
    width: 100px;
    height: 100px;
}

/* テキスト部分 */
.workflow-content {
    flex: 1;
    text-align: left;
    position: relative;
}

.workflow-content .flow-label {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.workflow-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.workflow-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* お知らせセクション全体 */
.news-section {
    padding: 60px 20px;
}

.news-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 見出し */
.news-section h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* ニュースリスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ニュースアイテム */
.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ラベル部分 */
.news-label {
    flex: 0 0 150px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
}

/* リンク部分 */
.news-link {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 0 10px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 矢印アイコン */
.arrow-icon {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* フッターのリンク */
.news-footer {
    margin-top: 20px;
}

.view-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.view-more:hover {
    background-color: #555;
}

/* 会社概要セクション全体 */
.company-overview {
    padding: 60px 20px;
}

.overview-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 見出し */
.company-overview h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

/* テーブル */
.overview-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: left;
    font-size: 14px;
}

/* テーブルヘッダー */
.overview-table th {
    width: 30%;
    text-align: left;
    padding: 15px 10px;
    background-color: #f0f0f0;
    font-weight: bold;
    vertical-align: top;
}

/* テーブルデータ */
.overview-table td {
    width: 70%;
    padding: 15px 10px;
    background-color: #fff;
    line-height: 1.6;
}

/* ボーダー */
.overview-table tr {
    border-bottom: 1px solid #ddd;
}

/* 最後の行のボーダーを非表示 */
.overview-table tr:last-child {
    border-bottom: none;
}

/* 採用情報セクション全体 */
.recruit-section {
    padding: 60px 20px;
}

.recruit-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 見出し */
.recruit-section h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 40px;
}

/* テーブル */
.recruit-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: left;
    font-size: 14px;
}

/* テーブルヘッダー */
.recruit-table th {
    width: 30%;
    text-align: left;
    padding: 15px 10px;
    background-color: #f0f0f0;
    font-weight: bold;
    vertical-align: top;
}

/* テーブルデータ */
.recruit-table td {
    width: 70%;
    padding: 15px 10px;
    background-color: #fff;
    line-height: 1.6;
}

/* ボーダー */
.recruit-table tr {
    border-bottom: 1px solid #ddd;
}

/* 最後の行のボーダーを非表示 */
.recruit-table tr:last-child {
    border-bottom: none;
}

/* フッターセクション全体 */
.footer-section {
    background-color: #000;
    padding: 40px 20px;
    color: #fff;
    text-align: center;
}

.footer-container {
    max-width: 600px; /* 中央の情報ボックスの幅 */
    margin: 0 auto;
    background-color: #fff; /* ボックスの背景色 */
    color: #333; /* ボックス内の文字色 */
    padding: 20px;
    border-radius: 12px; /* 角丸デザイン */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* フッタータイトル */
.footer-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 電話番号 */
.footer-content .phone-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 著作権部分 */
.footer-copyright {
    font-size: 12px;
    margin-top: 20px;
    color: #777;
}

/* アンカーリンク時のスクロール位置調整 */
:target {
    scroll-margin-top: 80px; /* ヘッダーの高さ分を確保 */
}

/* スマホ表示時は高さを調整 */
@media (max-width: 768px) {
    :target {
        scroll-margin-top: 65px; /* スマホ用ヘッダーの高さに合わせる */
    }
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        margin-top: 65px; /* スマホ用のヘッダー高さを考慮 */
    }

    .container {
        margin: 0; /* スマホ用の余白を調整 */
    }
    
    .header {
        height: 65px; /* スマホ用のヘッダー高さ */
        padding: 0 10px; /* ヘッダー内の余白を調整 */
        display: flex;
        align-items: center; /* 縦方向で中央揃え */
        justify-content: space-between; /* ロゴとメニューアイコンを両端に配置 */
    }

    .logo {
        margin: 0; /* マージンをリセット */
    }

    .logo img {
        height: 40px; /* ロゴのサイズを調整 */
        display: block; /* ロゴ画像をブロック要素にして余白をなくす */
    }

    .hamburger {
        display: flex; /* ハンバーガーメニューを表示 */
        position: absolute;
        right: 10px; /* 右端からの余白を調整 */
        top: 50%; /* ヘッダーの高さの中央に配置 */
        transform: translateY(-50%); /* 垂直方向の中央揃え */
    }

    .hamburger span {
        width: 25px; /* ハンバーガーメニューの線幅を調整 */
        height: 3px; /* ハンバーガーメニューの線の高さ */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.9);
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    /* Heroセクション全体 */
    .hero {
        height: 450px; /* スマホでは高さを自動調整 */
        padding: 20px; /* 内側に余白を追加 */
        justify-content: center; /* スマホでは中央揃え */
    }
    
    /* Hero内のコンテナ */
    .hero-container {
        flex-direction: column; /* スマホでは縦並びに変更 */
        justify-content: center; /* 縦中央揃え */
        align-items: center; /* 水平中央揃え */
    }
    
    /* Hero内のテキスト */
    .hero-content {
        margin-left: 0; /* 左寄せを解除 */
        text-align: center; /* スマホではテキストを中央揃え */
        padding: 10px 0; /* 上下に余白を追加 */
    }
    
    .hero-content h1 {
        font-size: 20px; /* スマホ用にフォントサイズを調整 */
        margin-bottom: 25px; /* タイトルと次の要素の間隔を調整 */
        white-space: normal; /* 改行を許可 */
    }
    
    .hero-content p {
        font-size: 0.9rem; /* スマホ用にフォントサイズを調整 */
        margin-bottom: 20px; /* テキストと次の要素の間隔を調整 */
        white-space: normal; /* 改行を許可 */
    }
    
    .btn {
        font-size: 14px; /* スマホ用にフォントサイズを調整 */
        padding: 8px 20px; /* ボタンの内側余白を調整 */
    }

    .concept-section {
        padding: 20px 20px; /* スマホ用の余白を調整 */
    }

    .concept-title {
        margin-bottom: 20px;
    }

    .content-area {
        padding: 20px 20px;
    }

    .content-items {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center; /* センター寄せ */
        gap: 10px;
    }

    .content-item {
        max-width: 100%; /* 幅をフルサイズに */
        padding: 0 20px;
    }

    .feature-area {
        padding: 20px 20px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        background-color: #f9f9f9;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
    }

    .feature-item.reverse {
        flex-direction: column; /* スマホでは通常の順序に戻す */
    }

    .feature-text h3 {
        font-size: 1.5rem;
        margin: 20px 0;
    }

    .feature-text {
        text-align: center;
    }

    .feature-text p {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .services-menu {
        padding: 20px 20px;
    }

    .services-items {
        flex-direction: column; /* 縦並び */
        gap: 20px; /* 各アイテムの間隔 */
    }

    .service-item {
        flex: 1 1 100%; /* フル幅に変更 */
    }

    .workflow {
        padding: 40px 20px;
    }

    .workflow-steps {
        gap: 15px;
    }
    
        /* 各ステップ */
    .workflow-step {
        flex-direction: row; /* 横並び */
        align-items: flex-start;
        padding: 15px;
    }
    
    /* アイコン部分 */
    .workflow-icon {
        flex: 0 0 60px; /* アイコン幅を調整 */
        margin-right: 15px;
    }
    
    .workflow-icon img {
        width: 125px;
        height: 125px;
    }

    /* テキスト部分 */
    .workflow-content {
        flex: 1;
        text-align: left;
    }
    
    .workflow-content .flow-label {
        font-size: 10px;
        padding: 4px 8px;
        margin-bottom: 5px;
    }
    
    .workflow-content h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .workflow-content p {
        font-size: 12px;
        color: #555;
    }

    /* ニュースアイテム */
    .news-item {
        display: flex;
        flex-direction: column; /* 要素を縦並びに */
        align-items: flex-start; /* 左揃え */
        padding: 15px 20px;
        border-radius: 8px;
        margin-bottom: 15px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        position: relative; /* 子要素の位置調整を有効化 */
    }

    /* プレスリリース帯 */
    .news-label {
        position: absolute;
        top: 15px;
        left: 20px;
        background-color: #333;
        color: #fff;
        font-size: 12px;
        font-weight: bold;
        padding: 5px 10px;
        border-radius: 4px;
        z-index: 1; /* 他の要素の上に表示 */
    }

    /* テキスト部分 */
    .news-link {
        margin-top: 40px; /* プレスリリース帯の高さ分余白を追加 */
        text-decoration: none;
        color: #333;
        font-size: 14px;
        line-height: 1.5;
        width: 100%; /* 親要素いっぱいに広がる */
        display: block;
    }

    .news-link {
        text-align: left;
    }

    .news-footer {
        margin-top: 40px;
    }

    .company-overview {
        padding: 20px 20px;
    }

    .services-menu {
        padding: 20px 20px;
    }

    .recruit-section {
        padding: 20px 20px;
    }
    
}