@charset "utf-8";

/* 
  Portfolio CSS
============================== */

/* 全体共通設定 ==================== */

:root {
  --color-white: #f9f9f9;
  --color-black: #111111;
  --color-maincoler1: #9D9d9d;
  --color-maincoler2: #FBE99C;
}

html {
  font-size: 16px;
  line-height: 1.6;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  overflow-y: scroll;
}

/* レスポンシブイメージ */
img {
  max-width: 100%;
  height: auto;
}

/* aタグのアニメーション時間 */
a {
  transition: 0.6s;
}

/* 見出しの共通設定 */
h1,
h2,
h3 {
  font-weight: bold;
}

/* 見出しの個別設定 */

h2 {
  font-size: 32px;
  margin-bottom: 40px;
  padding-top: 20px;
  text-align: center;
  border-top: solid 2px var(--color-black);
}

h3 {
  font-size: 20px;
  text-align: left;
}

/* ==================== 全体共通設定 */

/* レイアウト設定 ==================== */

.layout {
  display: grid;
  grid-template-columns: 3fr 7fr;
  align-items: stretch;
}

/* 左側エリア */
.left {
  background-image: url(../images/mainvisual_01.png);
  background-size: auto 100%;
  background-position: top right;
  background-repeat: no-repeat;
  position: sticky;
  top: 0;
  height: 80vh;
}

.fixedNav {
  position: fixed;
  bottom: 45%;
  left: 30px;
  width: 10%;
}

.fixedNav .sns {
  position: fixed;
  bottom: 25%;
}

.fixedNav li {
  padding: 5px;
}

.fixedNav li a {
  transition: opacity 0.3s ease; /* なめらかに変化させる記述 */
}

/* ホバー時の設定 */
.fixedNav li a:hover {
  filter: brightness(0.8); /* 明るさを80%に落とす（数字が小さいほど暗くなる） */
}

/* 右側エリア */


/* ヘッダー */
header {
  background-image: url(../images/mainvisual_02.png);
  background-size: auto 100%;
  background-position: top left;
  background-repeat: no-repeat;
  top: 0;
  height: 80vh;
}

/* スマホ表示 */
@media screen and (max-width: 768px) {

  .left {
    position: static;
    grid-column: 1;
    grid-row: 1;
  }

  .right {
    display: contents;
  }

  .right>header {
    grid-column: 2;
    grid-row: 1;
  }

  .right>nav,
  .right>main,
  .right>footer {
    grid-column: 1 / -1;
  }

}

/* ==================== レイアウト設定 */

/* 各セクションの設定 ==================== */

/* Header ######################################## */


header {
  color: var(--color-white);
}

header .eyeCatch {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  padding-top: 100px;
}

header .eyeCatch p {
  font-size: 36px;
  color: var(--color-black);
}

header .eyeCatch h1 {
  font-size: 100px;
  color: var(--color-white);
  -webkit-text-stroke: 2px var(--color-black);
  paint-order: stroke;
  border-bottom: 2px solid var(--color-black);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ######################################## Header */



/* Navigation ######################################## */

.mainNav {
  background-color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  padding-bottom: 10px;
}

.mainNav ul {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: right;
}

.mainNav ul li a {
  display: inline-block;
  font-size: 26px;
  font-weight: bold;
  padding: 20px 20px;
  color: var(--color-black);
  position: relative;
  text-decoration: none;
}

.mainNav ul li a:hover::after {
  transform: scale(1, 1);
  /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
}

.mainNav ul li a::after {
  background-color: var(--color-black);
  /* 下線の色 */
  bottom: -2px;
  /* 要素の下端からの距離 */
  content: "";
  /* 要素に内容を追加 */
  height: 2px;
  /* 下線の高さ */
  left: 0;
  /* 要素の左端からの距離 */
  position: absolute;
  /* 絶対位置指定 */
  transform: scale(0, 1);
  /* 下線を横方向に0倍、縦方向に1倍に変形（非表示） */
  transform-origin: center top;
  /* 変形の原点を中央上に指定 */
  transition: transform .3s;
  /* 変形をアニメーション化 */
  width: 100%;
  /* 要素の幅 */
}


/* ######################################## Navigation */



/* Main ######################################## */

/* Main 共通設定 ==================== */
main p {
  margin: 16px;
}

main>section {
  padding: 20px 20px;
  scroll-margin-top: 40px;
}

main section .innerWrap {
  max-width: 1000px;
  margin: 0 auto;
}

/* 白枠 */
.frame {
  border: 2px solid var(--color-black);
  padding: 24px;
  margin-bottom: 50px;
}

/* カラム（列）設定 */
.column {
  display: grid;
  gap: 40px;
}

/* 2カラム */
.col2 {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  grid-template-rows: auto;
}

/* 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 ==================== */
/* 背景 */
#works {
  background-color: var(--color-white);
}

.other {
  padding-top: 20px;
}

/* 詳細リンク ++++++++++ */
.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-black);
  font-weight: bold;
}

.detailLink a:hover {
  padding: 4px 20px;
}

/* archive Works ==================== */

#archive dl {
  background-color: aqua;
  text-align: center;
  margin: 100px;
}

#archive dd {
  margin-bottom: 20px;
}

#archive img {
  text-align: center;
  max-width: 80%;
  height: auto;
  margin: 50px;
}


/* Main Skill ==================== */

/* スキル背景 */

#skill {
  background-color: var(--color-white);
}

/* スキル背景 */

#skill .innerWrap section {
  background-color: var(--color-white);
  border: 2px solid #373356;

}

/* Rating ++++++++++ */
#skill .rating {
  border: 2px solid var(--color-black);
}

#skill .rating span {
  display: inline-block;
  background-color: var(--color-maincoler1);
  text-align: center;
  padding: 10px 4px;
}

.rating-10 {
  width: 10%;
}

.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 dt {
  text-align: center;
  padding-bottom: 2px;
}

#contact form dl {
  margin-bottom: 12px;
}

#contact form input,
#contact form textarea {
  background-color: #D9D9D9;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  resize: none;
}

#contact form .submit input {
  background-color: unset;
}

#contact form .submit {
  background: var(--color-maincoler1);
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 240px;
  padding: 10px 25px;
  color: var(--color-black);
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

/* 送信ボタン　ホバー時の背景色 */
#contact form .submit:hover {
  background: var(--color-maincoler2);
}

/* 送信ボタン　矢印の共通設定 */
#contact form .submit::before,
#contact form .submit::after {
  content: "";
  position: absolute;
  display: block;
  transition: all 0.3s;
  right: 0.6rem;
  top: 50%;
}

/* 送信ボタン　矢印の横線 */
#contact form .submit::before {
  width: 1.4rem;
  height: 2px;
  background: var(--color-black);
  transform: translateY(-50%);
}

/* 送信ボタン　矢印の先端 */
#contact form .submit::after {
  opacity: 0;
  width: 0;
  height: 0;
  border-top: solid 2px currentColor;
  border-right: solid 2px currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* 送信ボタン　ホバー時の矢印 */
#contact form .submit:hover::before {
  width: 1.5rem;
}

#contact form .submit:hover::after {
  opacity: 1;
  width: 8px;
  height: 8px;
}

/* ######################################## Main */

/* Footer ######################################## */

footer {
  background-color: var(--color-black);
  color: var(--color-maincoler1);
  text-align: center;
  padding: 30px 0;
}

/* ######################################## Footer */