/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ボディスタイル */
body {
    position: relative;
    background-image: url('images/avant_garde_image.jpeg');
    background-size: cover; /* 画像を画面サイズに合わせて拡大縮小 */
    background-position: center center; /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像の繰り返しを防ぐ */
    background-attachment: fixed; /* スクロールしても背景画像を固定 */
    transition: background 1.5s ease-in-out; /* 背景切り替えのアニメーション */
}

/* ヘッダー */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(51, 51, 51, 0.8); /* #333の80%の不透明度 */
    padding: 20px 20px; /* または個別に padding-top, padding-bottom を指定 */
    position: fixed; /* 画面をスクロールしてもヘッダーを固定 */
    z-index: 999;
    width: 100%;
    top: 0;
    left: 0;
    min-height: 100px; /* 必要に応じて追加 */
}

h1 {
    display: flex;
    font-size: 24px;
    font-weight: bold;
    color: white;
}




.logo {
    display: flex;
    font-size: 24px;
    font-weight: bold;
}

/* ロゴ内の画像のスタイル */
.logo img {
    width: 100px; /* 画像の幅を調整してください */
    height: auto;
}

.logo span {
    margin-left: 10px; /* 画像とテキストの間のスペース */
    font-size: 50px;    /* テキストのフォントサイズ */
    font-weight: bold;
    color: #fff;
    line-height: 1; /* 行間をリセット */
    display: flex;
    align-items: center; /* テキストを縦方向に中央揃え */
    margin: 0; /* 余白をリセット */
    padding: 0; /* パディングをリセット */
    margin-left: 30px; /* 画像とテキストの間のスペース */
}

#scrollToTop {
    line-height: 1; /* 行間をリセット */
    display: flex;
    align-items: center; /* テキストを縦方向に中央揃え */
    margin: 0; /* 余白をリセット */
    padding: 0; /* パディングをリセット */
    margin-left: 30px; /* 画像とテキストの間のスペース */
}

.header-nav ul {
    display: flex;
    list-style: none;
}

.header-nav ul li {
    margin-left: 20px;
}

.header-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 30px;
}

/* ハンバーガーボタン */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 150;
    width: 30px;
    height: 25px;
    justify-content: center;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* ハンバーガーボタンがアクティブなときのスタイル */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}


/* サイドバー（ハンバーガーメニュー） */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px; /* 初期位置は画面外 */
    width: 250px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 背景色を黒の半透明に変更 */
    transition: right 0.3s ease;
    padding-top: 60px;
    z-index: 100;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 15px 20px;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.sidebar.active {
    right: 0;
}

/* フッタースタイル */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 500;
}

/* メインコンテンツ */
main {
    margin-top: 150px; /* ヘッダーの高さに合わせて調整（例えば100px） */
    padding: 20px;
    /* フッター分の余白を追加 */
    padding-bottom: 60px;
}

/* オーバーレイのスタイル */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    z-index: -1; /* 背景の後ろに配置 */
}





/* NEWSセクション */
.news-section {
    padding: 20px;
    text-align: left;
    font-size: 12px;
    color: #333;
    /* 初期状態では左にオフセットし、非表示 */
    opacity: 0;
    transform: translateX(-100px); /* 左に100pxオフセット */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* visibleクラスが追加されたら、元の位置に戻り、表示される */
.news-section.visible {
    opacity: 1;
    transform: translateX(0); /* 通常位置に移動 */
}

.news-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: #fff;
    text-align: center;
}

.news-section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #ff6b6b;
    display: block;
    margin: 20px auto 0;
}

/* ニュースリスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ニュースアイテム */
.news-item {
    margin-bottom: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* 透けた白背景 */
    border-left: 3px solid #ff6b6b;
    border-bottom: 2px solid rgb(255, 107, 107); /* 下に境界線を追加 */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px); /* 背景ぼかし効果 */
    -webkit-backdrop-filter: blur(10px); /* Safari用 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 0.2); /* ホバー時に透過度を減少 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ニュースの日付 */
.news-date {
    font-size: 10px;
    color: #999;
    margin-bottom: 5px;
}

/* ニュース本文 */
.news-item p {
    margin: 0;
    font-size: 12px;
    color: #ffffff;
}

/* Read Moreボタン */
.read-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: #ff6b6b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ff8787;
    border-bottom: 1px solid #ff8787;
}






/* サービス紹介セクションのスタイル */
.services {
    margin: 60px 0;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: #fff;
    position: relative;
}

.services h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #ff6b6b;
    display: block;
    margin: 20px auto 0;
}

.service-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1);
    width: 30%;
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 200px;
    height: 200px;
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.service-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 20px;
}

.service-button {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #ff6b6b;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.service-button:hover {
    background-color: #ff8787;
}

.logo a {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

/* Memberセクション全体 */
.member-section {
    padding: 60px 20px;
    background-color: transparent;
    text-align: center;
    font-size: 16px;
    color: #fff;
}

.member-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.5);
    display: inline-block;
    padding-bottom: 10px;
}

.member-content p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    border-left: 4px solid rgba(255, 107, 107, 0.7);
    padding-left: 20px;
    color: #fff;
}

/* メンバー紹介 */
.member-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7); /* 黒っぽい背景にし、透明感を維持 */
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.member-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-text {
    max-width: 800px;
    text-align: left;
}

/* メンバー紹介文の行間と段落間の余裕を調整 */
.member-text p {
    line-height: 1.8; /* 行間を広げて読みやすくする */
    margin-bottom: 20px; /* 各段落の間に余裕を持たせる */
}

/* メンバー名 */
.member-text strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 107, 107, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

/* フリガナ（ルビ）のスタイル */
ruby rt {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}


/* 資格全体を囲むボックス */
.qualification-box {
    background-color: rgba(255, 255, 255, 0.1); /* 軽い透明な背景 */
    border: 1px solid rgba(255, 107, 107, 0.5); /* 赤い境界線 */
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px); /* 背景を強めにぼやけさせる */
    -webkit-backdrop-filter: blur(10px); /* Safari用のぼやけ設定 */
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を強めに追加 */
    text-align: center;
    position: relative; /* ぼやけ効果のために追加 */
    z-index: 1;
    overflow: hidden; /* コンテンツがあふれないように設定 */
}

/* 資格タイトルのデザイン */
.qualification-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 107, 107, 0.9); /* 明るい赤 */
    text-transform: uppercase; /* 大文字に変換 */
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
}

/* 資格・経歴のリスト */
.qualifications {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列レイアウト */
    gap: 10px; /* アイテム間の余白 */
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.qualifications li {
    color: #fff;
    font-size: 14px;
    text-align: left;
    white-space: nowrap; /* 改行を防ぐ */
    overflow: visible; /* テキストがあふれても表示 */
}


/* スマホ対応: 資格を縦に並べる */
@media (max-width: 768px) {
    .qualifications {
        grid-template-columns: repeat(2, 1fr); /* スマホでは2列に変更 */
    }

    .qualification-title {
        font-size: 18px; /* スマホ向けに少し小さく */
    }

}



/* 自己紹介用 */
@media (max-width: 1100px) {
    .member-message {
        flex-direction: column; /* スマホ版では縦に並べる */
        text-align: center; /* 全体を中央揃えに */
    }

    .member-text {
        text-align: left; /* 自己紹介文を左寄せに */
        padding: 0 10px; /* 左右に少し余白を追加 */
    }

    /* 名前と肩書を中央揃えにする */
    .member-text strong,
    .member-text .position {
        text-align: center;
    }

    .qualification-title {
        font-size: 18px; /* スマホ向けに少し小さく */
    }

    .qualifications li {
        white-space: normal; /* スマホでは改行を許可して崩れを防ぐ */
        word-wrap: break-word; /* 長い単語でも適切に改行されるように */
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .member-message {
        flex-direction: column;
        padding: 20px;
    }

    .member-photo img {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    .member-section h2 {
        font-size: 28px;
    }

    .member-content p {
        padding-left: 10px;
        font-size: 14px;
    }

    .member-text p {
        font-size: 14px;
    }

    .position {
        font-size: 14px;
    }

    ruby rt {
        font-size: 10px;
    }
}

@media (max-width: 955px) {
    .qualifications li {
        white-space: normal; /* スマホでも資格が改行されるように調整 */
    }
}

/* スマホ対応: 名前と肩書を中央揃え、自己紹介文を左寄せ */
@media (max-width: 768px) {
    .member-message {
        flex-direction: column; /* スマホ版では縦に並べる */
        text-align: center; /* 全体を中央揃えに */
    }

    .member-text {
        text-align: left; /* 自己紹介文を左寄せに */
        padding: 0 10px; /* 左右に少し余白を追加 */
    }

    /* 名前と肩書を中央揃えにする */
    .member-text strong,
    .member-text .position {
        text-align: center;
    }

    .qualification-title {
        font-size: 18px; /* スマホ向けに少し小さく */
    }

    .qualifications li {
        white-space: normal; /* スマホでは改行を許可して崩れを防ぐ */
        word-wrap: break-word; /* 長い単語でも適切に改行されるように */
    }
}


/* 会社情報セクション全体 */
.information {
    padding: 60px 20px;
    background-color: rgba(0, 0, 0, 0.7); /* 黒っぽい背景に透明感をプラス */
    backdrop-filter: blur(10px); /* 背景を軽くぼかす */
    -webkit-backdrop-filter: blur(10px); /* Safari用 */
    border-radius: 10px; /* 角を丸くしてエレガントな印象に */
    text-align: center;
    font-size: 16px;
    color: #fff;
    max-width: 800px;
    margin: 0 auto; /* 中央揃え */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 軽い影を追加して浮いて見えるように */
}

/* セクションのタイトル */
.information h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.5);
    display: inline-block;
    padding-bottom: 10px;
}

/* 各情報の項目 */
.info-content {
    display: grid;
    grid-template-columns: 1fr; /* シンプルな1列レイアウト */
    gap: 20px; /* 各項目間に余裕を持たせる */
}

/* 各情報のアイテム */
.info-item {
    text-align: left; /* 左揃え */
    border-left: 3px solid rgba(255, 107, 107, 0.7); /* 左側のライン */
    padding-left: 15px; /* 左側に余裕を持たせる */
    font-size: 16px;
}

/* 各情報のタイトル */
.info-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 107, 107, 0.9);
    margin-bottom: 5px;
}

/* 各情報のテキスト */
.info-item p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

#idea {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    color: white;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .logo span {
        font-size: 28px;
    }
    .header-nav ul li a {
        font-size: 20px;
    }
    /* ロゴの画像サイズを調整（オプション） */
    .logo img {
        width: 40px;
    }
    .service-icon img {
        width: 100px;
        height: 100px;
    }
}

/* 画面サイズが大きい場合にニュースセクションを拡大する */
@media (min-width: 1024px) {
    .news-section {
        font-size: 14px; /* 全体のフォントサイズを拡大 */
        padding: 40px; /* セクション全体の余白を広げる */
    }

    .news-item {
        padding: 20px; /* 各ニュースのパディングを増やす */
    }

    .read-more {
        font-size: 14px; /* "Read More" ボタンのフォントを拡大 */
    }
}