/* フォントを読み込む */
@font-face {
    font-family: 'TopFont'; /* フォントの名前を指定 */
    src: url('./image/nicomoji-plus_v2.ttf') format('truetype'); /* フォントファイルへのパスと形式を指定 */
}

/* Reset CSS */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    /* max-width: 800px; */
    background: url('./image/bgimg_sakura.png') repeat;
    background-size: 10%; /* 画像サイズを調整 */
        
}

main {
    margin-left: 150px;
    margin-right: 150px;
    margin-top: 30px;
    display: flex;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* ヘッダー要素 */
header {
    background: url('./image/bgimg_sakura.png') repeat;
    background-size: 10%; /* 画像サイズを調整 */
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000000; /* 下部に1ピクセルの線を引く */
}

header p {
    font-family: "TopFont" , sans-serif; /* 'TopFont'という名前で指定したフォントを適用 */
    font-size: 50px; /* フォントサイズを指定 */
    color: #fff462; /* フォントの色を赤に設定 */
    text-shadow: 2px 2px 4px #000000; /* アウトラインの色と影を追加（1px右、1px下に影をつけ、2pxのぼかし、#000000の色） */
    margin-left: 20px;
}

.social-icons {
    display: flex;
    /* gap: 0px 10px; */
}

.social-icons img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: 2px solid #ff9cb4; /* 枠線の色と幅を調整 */
    overflow: hidden; /* 枠線の外側を隠す */
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* ナビゲーションメニューのスタイル */
nav {
    /* background-color: #555; */
    margin-right: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    position: relative;
  }

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
  }

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* サブメニューのスタイル */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* 右端に配置 */
    background-color: #444;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  li:hover .submenu {
    display: block;
  }
  
  .submenu a {
    padding: 5px 10px;
    display: block;
    white-space: nowrap; /* 文字列を折り返さないようにする */
  }
  
  .submenu :hover {
    background-color: #666; /* ホバー時の背景色を変更 */
  }
  
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* ハンバーガーメニュー */
#humberger {
    position: relative;
    height: 44px;
    width: 44px;
    display: inline-block;
    box-sizing: border-box;
    background-color: #fff;
    border: 2px solid #444;
    border-radius: 4px;
  }
  #humberger div {
    position: absolute;
    left: 6px;
    height: 2px;
    width: 28px;
    background-color: #444;
    border-radius: 2px;
    display: inline-block;
    box-sizing: border-box;
  }
  #humberger div:nth-of-type(1) {
    bottom: 29px;
  }
  #humberger div:nth-of-type(2) {
    bottom: 19px;
  }
  #humberger div:nth-of-type(3) {
    bottom: 9px;
  }


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* テーブル要素 */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

th {
    background-color: #f2f2f2;
}

td {
    background-color: #ffffff;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* プロフィール画像に関する設定 */
.profile-img img{
    text-align: center;
    width: 150px; /* アイコンの幅 */
    height: 150px; /* アイコンの高さ */
    background:#ffff00; /*背景色の指定*/
    border-radius: 50%; /* 画像を円形にするためのスタイル */
    border: 2px solid #070038; /* 枠線の色と幅を調整 */
    overflow: hidden; /* 枠線の外側を隠す */
    margin: 5px;
}

/* グループ化された要素を縦に配置 */
.container {
    display: flex;
    width: 100%; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 100vh; ビューポートの高さいっぱいに広げる */
}

/* グループ化された要素を縦に配置 */
.vertical-container {
    display: flex;
    width: 100%; 
    flex-direction: column;
    justify-content: flex-start	;
    margin: 0px 5px;
    padding: 5px;
    background-color: #ffffff;
    border: 1px solid #dddddd;

}

/* グループ化された要素を横に配置 */
.parallel-container {
    display: flex;
    width: 100%; 
    flex-direction: row;
    justify-content: space-between;
    margin: 0px 5px;
    padding: 5px;
}

.profile-h1 {
    /* background-color: #fff462; */
    border-bottom: 1px solid #dddddd;
    text-align: left; /* 左づめにするためのスタイル */
}

.profile-p {
    text-align: left; /* 左づめにするためのスタイル */
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* 他のwebページへのリンクの設定 */
.links {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    background:#fbfbfb; /*背景色の指定*/
    /* border: #333; */
    width: 40%;

}

.link-item {
    display: flex;
    align-items: center;
    padding: 5px 7px;

}

.link-item img {
    width: 24px; /* アイコンの幅 */
    height: 24px; /* アイコンの高さ */
    margin-right: 1px; /* アイコンとテキストの間隔 */
    border-radius: 50%; /* 画像を円形にするためのスタイル */
    border: 2px solid #070038; /* 枠線の色と幅を調整 */
    overflow: hidden; /* 枠線の外側を隠す */

}

.link-item a {
    text-decoration: none;
    color: white; /* リンクの色 */
}

@media (max-width: 600px) {
    body {
        padding: 10px;
        background-size: 50%; /* 画像サイズを調整 */
    }

    main {
        margin: 0px;
    }

    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 0px; /* headerのサイズを2倍に設定 */
    }

    header p {
        font-size: calc(16px + 4vw); /* フォントサイズをビューポート幅に合わせて動的に変更 */
        margin-left: 10px;
        margin-bottom: 10px; /* nav要素との間に余白を追加 */
    }

    .profile img {
        width: 80px; /* アイコンの幅 */
        height: 80px; /* アイコンの高さ */
    }

    .profile p {
        width: 100%; /* p要素の幅を100%に */
        text-align: center; /* 中央寄せ */
    }

    .links {
        width: 100%; /* リンクの幅を100%に */
    }

    .link-item {
        flex-direction: column; /* アイテムを縦に並べる */
        align-items: flex-start; /* 左寄せ */
    }

    .link-item img {
        margin-right: 0; /* アイコンとテキストの間隔をリセット */
        margin-bottom: 5px; /* アイコンとテキストの間隔を設定 */
    }
}