@charset "utf-8";

/* 
  Portfolio CSS
============================== */

/* 全体共通設定 ==================== */

:root {
  --color-yellow: #F4D76B;
  --color-white: #fdfbf5;
  --color-black: #74604B;
  --color-darkGray: #A58C6C;
  --color-lightgray: #decf9b;
}

html {
  font-size: 16px;
  line-height: 1.8;
  font-family: "LINE Seed JP", sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  scroll-behavior: smooth;
}

.line-seed-jp-regular {
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-style: normal;
}

img {
  width: 100vw;
  max-width: none;
  height: auto;
  display: block;
}



/* aタグのアニメーション時間 */
a {
  transition: 0.6s;
}

/* 見出しの共通設定 */
h1,
h2,
h3 {
  font-weight: bold;
}

h1,
h2 {
  text-align: center;
}


/* 見出しの個別設定 */
h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

h2 {
  font-size: 23px;
}

h3 {
  font-size: 16px;
}


/* ==================== 全体共通設定 */



/* 各セクションの設定 ==================== */

/* Header ######################################## */

header {
  background-color: var(--color-yellow);
  color: var(--color-white);
  text-align: center;
}

/* ######################################## Header */



/* Navigation ######################################## */

nav {
  background-color: var(--color-black);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

nav ul li a {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  padding: 10px;
  color: var(--color-white);
}

nav ul li a:hover {
  color: var(--color-darkGray);
}

/* ######################################## Navigation */



/* Main ######################################## */

/* Main 共通設定 ==================== */
main p {
  margin-bottom: 10px;
}

.name {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.name h3 {
  margin: 0;
}

.name p {
  margin: 0;
  font-size: 14px;
}

main>section {
  padding: 60px 20px;
  scroll-margin-top: 40px;
}

/* 奇数番目 Section */
main>section:nth-child(odd) {
  background-color: var(--color-white);
}

/* 偶数番目 Section */
main>section:nth-child(even) {
  background-color: var(--color-lightgray);
}

main section .innerWrap {
  max-width: 1000px;
  margin: 0 auto;
}

/* 白枠 */
.frame {
  background-color: var(--color-white);
  box-shadow: 0 0 8px rgb(0 0 0 / 0.2);
  padding: 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* 顔イラスト */
.frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* カラム（列）設定 */
.column {
  display: grid;
  gap: 40px;
}

/* 2カラム */
.col2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

/* 3カラム */
.col3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 4カラム */
.col4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* 5カラム */
.col5 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}


/* Main Works ==================== */
/* 詳細リンク ++++++++++ */
.detailLink {
  text-align: right;
  margin-bottom: 0;
}

.detailLink a {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  background-color: var(--color-darkGray);
  color: var(--color-white);
  font-weight: bold;
}

.detailLink a:hover {
  padding: 4px 20px;
}


/* Main Skill ==================== */
/* Rating ++++++++++ */
/* Skillの配置 */
#skill .skill-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* スキルの中央揃え */
#skill .skill-item {
  text-align: center;
}

#skill .skill-circle img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

#skill .rating {
  border: 2px solid var(--color-black);
}
/* Skillの円 */
#skill .skill-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-yellow) var(--level),
    var(--color-lightgray) var(--level)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

/* 円の内側 */
#skill .skill-circle::before {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  background-color: var(--color-white);
  border-radius: 50%;
}

/* アイコン */
#skill .skill-circle img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

#skill .rating span {
  display: inline-block;
  background-color: var(--color-lightgray);
  text-align: center;
  padding: 0 4px;
}

.rating-20 {
  width: 20%;
}

.rating-40 {
  width: 40%;
}

.rating-60 {
  width: 60%;
}

.rating-80 {
  width: 80%;
}


/* Main Contact ========== */
#contact form {
  max-width: 400px;
  margin: 0 auto;
}

#contact p {
  text-align: center;
}

#contact form dl {
  margin-bottom: 24px;
}

#contact form input,
#contact form textarea {
  background-color: var(--color-white);
  border: 2px solid var(--color-black);
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  resize: none;
}

/* 送信ボタン */

#contact form .submit input {
  text-align: center;
  background-color: var(--color-black);
  color: var(--color-white);
  width: 200px;
  padding: 10px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

/* ホバー */
#contact form .submit input:hover {
  transform: translateY(4px);
  box-shadow: 0 5px 10px rgb(0 0 0 / 0.15);
}

/* クリック */
#contact form .submit input:active {
  transform: translateY(0);
  box-shadow: none;
}


/* ######################################## Main */

/* Footer ######################################## */

footer {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 30px 0;
  position: relative;
}

/* ######################################## Footer */


/* PageTop ######################################## */
#pageTop {
  position: absolute;
  top: 0;
  right: 30px;
}

#pageTop a {
  display: block;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  line-height: 0;
  transition: transform 0.2s;
}

#pageTop img {
  display: block;
  width: 100px;
  height: auto;
}

#pageTop a:hover img {
  content: url("../images/top-2.png");
}


#pageTop a:active {
  transform: scale(0.9);
}

/* ######################################## PageTop */