/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 1200px; /* 画面幅の最大幅を設定して中央揃え */
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden; /* 横スクロールを防ぐ */
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ナビゲーションバー */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* 中央に配置 */
}

.logo img {
    height: 50px; /* ロゴの高さを指定 */
}

/* 初期のナビゲーションスタイル（デスクトップ用） */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
}

.nav-links a:hover {
    color: #FFD700;
}

/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
}

.hamburger .bar {
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 5px;
}

/* モバイル表示でのナビゲーションスタイル */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #333;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hamburger {
        display: flex;
    }
}

.nav-links a:hover {
    color: #FFD700; /* ホバー時の色 */
}

/* ファーストビュー */
.hero {
    background: linear-gradient(10deg, #ffffff9a, #69fffdaa);
    background-size: cover; /* 画面全体に画像をカバー */
    background-position: center; /* 画像の中央を表示 */
    background-repeat: no-repeat; /* 画像が繰り返されないようにする */
    height: 50vh; /*画面全体の高さ */
    display: flex; 
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 40px; 
} 

.herodiv {
    position: relative; /* 子要素の絶対配置を可能にする */
}

.branding {
    position: relative;
    font-size: 28px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    background-color: rgba(255, 255, 255, 0.7); /* 背景を半透明の白に設定 */
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    margin: 0 auto;
    max-width: 80%; /* キャッチコピーが左右中央に配置されるように設定 */
}

.hero h1 {
    font-size: 3rem;
}

/* セクション */
/* 私の強みセクション */
.strong {
    background-color: #e0f7fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 1.5s ease-out;
    margin-bottom: 20px;
}


/* 親セクションの幅調整 */
section {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
    display: block;
}

/* 個人事業紹介とフリーランス活動のセクション */
.business, .freelance, .career {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: slideIn 1.5s ease-out;
}

/* セクションの見出し */
.sectionhead {
    position: relative;
    text-align: center; /* 見出しのテキストを中央寄せ */
    margin-bottom: 20px;
    padding: 20px;
    border: 2px dashed black;
    display: inline-block;
    width: 100%; /* 見出し部分だけの幅に */
    margin-left: auto;
    margin-right: auto; /* セクション全体を中央に寄せる */
}

.sectionhead h2 {
    display: inline-block;
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
    padding: 0 20px;
    margin: 0;
}

/* セクション内の小見出し */
h3 {
    background-color: #ffeb3ba6; /* 付箋風の明るい黄色 */
    padding: 10px 15px; /* テキスト周りの余白 */
    border-radius: 5px; /* 角を少し丸める */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* 付箋に影をつけて浮いているように見せる */
    display: inline-block; /* テキスト幅に合わせて付箋サイズを調整 */
    position: relative; /* 回転させるために相対位置を使用 */
    transform: rotate(-3deg); /* 付箋が少し傾いているように見せる */
    font-family: 'Montserrat', sans-serif; /* 見出しに適切なフォントを使用 */
    margin-bottom: 20px; /* 下の余白を確保 */
    color: #00BFFF;
}

/* 付箋の折れ目風スタイル（オプション） */
h3::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.1); /* 折れ目の影 */
    transform: skewX(-45deg); /* 折れ目の斜め効果 */
}

.heading-circle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 2px dashed black;
    border-radius: 50%;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.sectionhead p {
    margin-top: 10px;
    text-align: center; /* パラグラフは中央寄せに */
}

/* 個人事業紹介のビジネス項目を横並びにする */
.business {
    width: 100%; /* 親要素の幅を100%に設定 */
}

.businessdiv {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px); /* 各項目が3分の1の幅を持つ */
    margin-bottom: 20px;
    box-sizing: border-box;
}

.businessdiv img {
    max-width: 100%;
    height: auto;
}

.businessdivchild{
    display: flex; /* 横並びにする */
    align-items: center; /* アイテムを縦方向に中央揃え */
    gap: 20px; /* 画像とテキストの間のスペース */
}

.businessdivchild p{
    flex: 1; /* テキストが残りのスペースを埋めるように */
}


/* 自己紹介セクション */
.self-introduction {
    background-color: #e0f7fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 1.5s ease-out;
}

/* ボタンアニメーション */
@keyframes kodou {
    0% {
		transform: scale(1.05)
	}
	5% {
		transform: scale(1)
	}
	95% {
		transform: scale(1)
	}
	100% {
		-webkit-transform: scale(1.05)
	}
}

/* moreボタン */
.more-button-container {
    text-align: center; /* ボタンを中央に配置 */
    margin-top: 40px;   /* ボタン上部にスペース */
}

#moreButton {
    background-color: #00BFFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#moreButton:hover {
    background-color: #007BFF;
}

/* 追従型お問い合わせボタン */
.contact-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00BFFF;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    
    /* 左右にプルプル震えるアニメーションを適用 */
    animation: kodou 1.5s infinite;
}

.contact-button:hover {
    background-color: #FF69B4;
}

.activity {
    margin-bottom: 40px;
}

/* work詳細画面 */
.activity-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.activity-content img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
}

.activity-content p {
    flex: 1;
    line-height: 1.6;
}

/* iPhone SE (320px) */
@media only screen and (max-width: 320px) {
    body {
        font-size: 12px;
        font-family: 'Arial', sans-serif;
        line-height: 1.6;
        background-color: #ffffff;
        color: #333;
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* 横スクロールを防ぐ */
    }

    .hero {
        height: 40vh;
    }

    .herodiv img{
        width: 100%; /* 高さを調整 */
    }

    .branding {
        font-size: 20px;
        padding: 5px 10px;
    }

    /* セクション内での画像とテキストのレイアウト調整 */
    .businessdivchild, .activity-content {
        display: block;
        text-align: center;
    }

    .businessdivchild img, .activity-content img {
        max-width: 90%;
        height: auto;
        margin-bottom: 10px; /* 画像の下に余白を追加 */
    }

    .businessdivchild p, .activity-content p {
        margin: 0 auto;
        text-align: left; /* テキストを中央揃え */
    }

    .contact-button {
        padding: 10px 15px;
    }
}

/* iPhone 10 / iPhone 15 (375px - 428px) */
@media only screen and (min-width: 375px) and (max-width: 428px) {
    body {
        font-size: 14px;
        font-family: 'Arial', sans-serif;
        line-height: 1.6;
        background-color: #ffffff;
        color: #333;
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* 横スクロールを防ぐ */
    }
   
    .hero {
        height: 40vh; /* 高さを調整 */
    }

    .herodiv img{
        width: 100%; /* 高さを調整 */
    }


    .branding {
        font-size: 24px; /* フォントサイズを小さく */
    }

    /* セクション内での画像とテキストのレイアウト調整 */
    .businessdivchild, .activity-content {
        display: block;
        text-align: center;
    }

    .businessdivchild img, .activity-content img {
        max-width: 85%;
        height: auto;
        margin-bottom: 10px;
    }

    .businessdivchild p, .activity-content p {
        margin: 0 auto;
        text-align: left;
    }

    .contact-button {
        padding: 12px 20px;
    }
}

/* iPad mini (768px) */
@media only screen and (min-width: 600px) and (max-width: 768px) {
    body {
        font-size: 16px;
        font-family: 'Arial', sans-serif;
        line-height: 1.6;
        background-color: #ffffff;
        color: #333;
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* 横スクロールを防ぐ */
    }

    .hero {
        height: 40vh;
    }

    .herodiv img{
        width: 100%; /* 高さを調整 */
    }

    .branding {
        font-size: 20px;
        padding: 5px 10px;
    }

    /* セクション内での画像とテキストのレイアウト調整 */
    .businessdivchild, .activity-content {
        display: block;
        text-align: center;
    }

    .businessdivchild img, .activity-content img {
        max-width: 90%;
        height: auto;
        margin-bottom: 10px; /* 画像の下に余白を追加 */
    }

    .businessdivchild p, .activity-content p {
        margin: 0 auto;
        text-align: left; /* テキストを中央揃え */
    }

    .contact-button {
        padding: 10px 15px;
    }
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #333;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hamburger {
        display: flex;
    }
}

/* 15.6インチモニター (1920px) */
@media only screen and (min-width: 1200px) and (max-width: 1920px) {
    body {
        font-size: 18px;
    }

    .navbar {
        padding: 20px;
    }

    .hero {
        height: 60vh;
    }

    .businessdiv, .activity-content {
        flex-direction: row;
        text-align: left;
    }

    .businessdivchild p, .activity-content p {
        margin: 0 auto;
        text-align: left;
    }

    .businessdiv img, .activity-content img {
        max-width: 45%;
    }

    .contact-button {
        padding: 20px 30px;
    }
}