@charset "utf-8";

/* 
  Portfolio CSS
============================== */

/* 全体共通設定 ==================== */

:root {
  --color-white: #f9f9f9;
  --color-black: #333;
  --color-darkGray: #666;
  --color-lightgray: #aaa;
}

html {
  font-size: 16px;
  line-height: 1.8;
  font-family: "M PLUS Rounded 1c", sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  scroll-behavior: smooth;
}

/* レスポンシブイメージ */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* aタグのアニメーション時間 */
a {
  transition: 0.6s;
}

/* 見出しの共通設定 */
h1,
h2,
h3 {
  font-weight: bold;
  text-align: center;
}

/* 見出しの個別設定 */
h1 {
  font-size: 60px;
}

h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
}

/* ==================== 全体共通設定 */



/* 各セクションの設定 ==================== */

/* Header ######################################## */

header {
  background-color: #d9e2f5;
  color: var(--color-white);
  text-align: center;
}

header .logo {
  padding: 20px 0;
}

header .eyeCatch {
  background-color: #d9e2f5;
  background-image: url(../images/ahiru.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 80px 20px;
  text-shadow: 0 0 8px rgb(0 0 0 / 0.8);
}



/* ######################################## Header */



/* Navigation ######################################## */

nav {
  background-color: #d9e2f5;
  text-align: center;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
  position: sticky;
  top: 0;
}

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: #cdb4db;
}

/* ######################################## Navigation */

/* ######################################## Profile */

.profile {
  img.example {
    width: 300px;
    height: 150px;
  }
}

/* Main ######################################## */

/* Main 共通設定 ==================== */
main p {
  margin-bottom: 16px;
}

main>section {
  padding: 60px 20px;
  scroll-margin-top: 40px;
}

/* 奇数番目 Section */
main>section:nth-child(odd) {
  background-color: #fff1e6;
}

/* 偶数番目 Section */
main>section:nth-child(even) {
  background-color: #4a4e69;
}

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;
}


/* カラム（列）設定 */
.column {
  display: grid;
  gap: 50px;
}

/* 2カラム */
.col2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 3カラム */
.col3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 4カラム */
.col4 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 5カラム */
.col5 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}



/* Main Works ==================== */
/* 詳細リンク ++++++++++ */
.detailLink {
  text-align: right;
  margin-bottom: 0;
}

.detailLink a {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  background-color: #ffc8dd;
  color: #4a4e69;
  font-weight: bold;
  background: linear-gradient(145deg, #ffc8dd, #ffc8dd);
  border-radius: 10%;
  box-shadow: inset 8.71px 8.71px 9px #ffc8dd, inset -8.71px -8.71px 9px #FFA5AD;
}

.detailLink a:hover {
  padding: 4px 20px;
}


/* Main Skill ==================== */
/* Rating ++++++++++ */
#skill .rating {
  border: 2px solid var(--color-black);
}

#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 {
  text-align: center;
}

#contact form .submit input {
  text-align: center;
  background-color: var(--color-black);
  color: var(--color-white);
  width: 200px;
  transition: 0.6s;
}

#contact form .submit input:hover {
  border-radius: 40px;
  width: 300px;
}

/* ######################################## Main */



/* PageTop ######################################## */
#pageTop a {
  display: block;
  text-align: center;
  padding: 10px 0;
  background-color: var(--color-darkGray);
  color: var(--color-white);
}

#pageTop a:hover {
  background-color: var(--color-white);
  color: var(--color-darkGray);
}

/* ######################################## PageTop */



/* Footer ######################################## */

footer {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding: 30px 0;
}

/* ######################################## Footer */

/* 作品紹介エリア */
#works {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* 画像の配置 */
#works .image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 30px;
}

/* 画像サイズ */
#works .image-container img {
  width: 300px;
  max-width: 80%;
  height: auto;
  display: block;
}

/* タイトル */
#works h3 {
  text-align: center;
  margin-bottom: 20px;
}

/* 説明文 */
#works p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.8;
}

/* 戻るボタン */
#works .detailLink {
  text-align: center;
  margin-top: 30px;
}