body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #0078d4;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000; /* ヘッダーが最前面に */
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header a {
    color: #fff;
    text-decoration: underline;
}

main {
    padding-top: 200px; /* ヘッダーの高さ分を確保 */
}

section {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* ヘッダーとの重なりを防ぐ */
    z-index: 1; /* ヘッダーより下に */
}

.profile-container {
    width: 140px; /* 円形の表示サイズ */
    height: 140px; /* 円形の表示サイズ */
    border-radius: 50%; /* 円形を維持 */
    overflow: hidden; /* はみ出した部分を非表示 */
    float: left;
    margin-right: 20px;
    border: 2px solid #0078d4; /* 既存の枠線をコンテナに移動 */
}

.profile-img {
    width: 100%; /* コンテナにフィット */
    height: 100%; /* コンテナにフィット */
    object-fit: cover; /* アスペクト比を維持しつつトリミング */
    object-position: center; /* 中央を基準に表示 */
    display: block; /* 余白を防ぐ */
}

h2 {
    color: #0078d4;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}

/***
.job {
    margin-bottom: 20px;
}

.job h3 {
    margin: 0;
    color: #333;
}

details {
    margin-top: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}
***/

        /* コンテナのスタイル */
        .accordion {
            max-width: 600px;
            margin: 0 auto;
        }

        /* トグルアイテムのスタイル */
        .toggle-item {
            margin-bottom: 5px;
        }

        /* トグルボタンのスタイル */
/*
        .toggle-button {
            background-color: #f1f1f1;
            padding: 15px;
            font-size: 18px;
            font-weight: bold;
            width: 100%;
            text-align: left;
            border: none;
            cursor: pointer;
            outline: none;
            transition: background-color 0.3s;
        }

        .toggle-button:hover {
            background-color: #ddd;
        }
*/

.toggle-button {
    /*background-color: #f1f1f1;*/
    padding: 2px; /*15px;*/
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

.toggle-button::before {
    content: "▶";
    margin-right: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 12px; /* マークのサイズ */
    color: #333; /* マークの色 */
}

.toggle-check:checked + .toggle-button::before {
    transform: rotate(90deg);
}


        /* コンテンツのスタイル */
        .toggle-content {
            background-color: white;
            padding: 0 15px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

        /* チェックボックスがチェックされた時のスタイル */
        .toggle-check:checked + .toggle-button + .toggle-content {
            max-height: 200px; /* 必要に応じて調整 */
        }

        /* チェックボックスを隠す */
        .toggle-check {
            display: none;
        }



/***/
#skills ul {
    list-style: none;
    padding-left: 0;
}

#skills ul li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

#skills ul li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
}

#skills ul li strong {
    color: #0078d4;
}

#support p a {
    text-decoration: none;
}
#support p a:hover {
   opacity: 0.5;
}
#support p a:visited {
   opacity: 0.5;
}

#contact a {
    text-decoration: none;
    color: black;
    /*
    text-decoration: underline;
    color: #0078d4;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
    */
}
#contact a:hover {
   opacity: 0.5;
}
#contact a:visited {
   opacity: 0.5;
   color: black;
}

/***
form input, form textarea {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #005bb5;
}
***/

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: relative;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
 }
footer a:hover {
    opacity:0.5;
 }

@media (max-width: 600px) {
    main {
        padding-top: 100px; /* スマホではヘッダーが小さくなるので調整 */
    }
    section {
        margin: 10px;
        padding: 15px;
    }
    .profile-img {
        float: none;
        margin: 0 auto 20px;
        display: block;
    }
}
