@charset "utf-8";

/* ページ全体の設定*/
html {
  scroll-behavior: smooth;
}

/* コンテンツ */
body {
  background-color: #e2dcdd;
  color: #24150d;
  font-size: 18px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: space-around;
  line-height: 1.5;
}

/* header　ヘッダー の設定*/
header {
  background-color: #24150d;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* navメニュー */
nav {
  max-width: 1000px;
  margin: 0 auto;
}

nav ul {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  padding: 0px;
  margin: 5px 0 0 0;
}

/* メニューのロゴの設定 */
nav img {
  width: 50px;
  height: auto;
}

/* リンクの色 */
nav a {
  color: #e2dcdd;
}

/* リンクにマウスを乗せたとき */
nav a:hover {
  color: #86213a;
  text-decoration: underline;
}


/* 見出しの設定 */
h1 {
  font-size: 40px;
  font-weight: bold;
  margin: 10px;
  text-align: center;
}

h1 span {
  display: block;
}

h2 {
  color: #33425e;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 20px;
}

h4 {
  font-size: 18px;
  font-weight: bold;
}

/* topの設定*/
#top {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ONPトップ画の設定 */
.top-pic {
  width: 200px;
  height: auto;
}

/* 更新履歴 */
#update {
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

/* 更新履歴のリスト */
.update-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 30px auto;
}

/* 日付と内容 */
.update-list li {
  display: flex;
  gap: 30px;
  padding: 15px;
  text-align: left;
}

/* 更新の日付 */
.update-list time {
  min-width: 100px;
  color: #86213a;
  font-weight: bold;
}



/* プロフィールの設定*/
#profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* プロフ画設定 */
.prof-pic {
  width: 400px;
  height: auto;
}

/* プロフの文章設定 */
.prof-text {
  width: 400px;
  text-align: left;
}

.prof-text p {
  padding-bottom: 10px;
}

.prof-text dl {
  padding-bottom: 20px;
}

.prof-text dt {
  padding-bottom: 5px;
}

.prof-text dd {
  padding-bottom: 10px;
}

/* 各セクションの区切り線 */
section {
  padding: 50px 20px;
  border-bottom: 5px dotted #33425e;
}

/* スキルリストの設定*/
.skill-list {
  justify-content: center;
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
}

.skill-card {
  border-radius: 10%;
  padding: 20px;
  width: 180px;
}

.skill-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}


.skill-card h3 {
  font-size: 18px;
  text-align: center;
  margin: 10px 0;
}

.skill-card p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}


/* 作品リスト*/
.image-list {
  justify-content: center;
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
}

.image-card {
  background-color: #fff;
  border-radius: 10%;
  padding: 20px;
  width: 250px;
}

.image-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.image-card h3 {
  font-size: 18px;
  text-align: center;
  margin: 10px 0;
}

.image-card p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* 詳しく見る遷移用ボタン */
.kuwashiku {
  color: #e2dcdd;
  background-color: #86213a;
  border-radius: 50px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* 各作品詳細ページの設定 */
.detail-page {
  justify-content: center;
  padding-top: 100px;
}

/* 作品タイトル */
.detail-page h1 {
  background-color: #86213a;
  color: #e2dcdd;
  border-radius: 50px;
  font-size: 30px;
  font-weight: bold;
}

/* 画像の表示設定 */
.detail-page img {
  padding-top: 30px;
  padding-bottom: 30px;
  width: 500px;
}

/* 解説文章の段落設定 */
.detail-page p {
  padding-bottom: 20px;
}

.detail-page dl {
  padding-bottom: 20px;
}

.detail-page dt {
  padding-bottom: 5px;
}

.detail-page dd {
  padding-bottom: 10px;
}

/* ========電卓の設定================*/
.dentaku {
  background-image: radial-gradient(#1e3989, #31829f, #ecf2d3);
  width: 760px;
  margin: 80px auto;
  padding: 40px;
  border-radius: 30px;
  border: 5px double #33425e;
  box-shadow: 20px 20px 20px 0px rgb(0 0 0 /0.5);
  color: #33425e;
}

/* h1 液晶にあたる部分 */
.dentaku h1 {
  color: #1e3989;
  background-color: #e2dcdd;
  text-align: right;
  margin-bottom: 40px;
  padding: 30px;
  border-radius: 20px;
  border: 5px double #33425e;
}

/* ul li 3列にする */
.dentaku ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.dentaku li {
  background-color: #e2dcdd;
  flex-basis: 200px;
  margin-bottom: 40px;
  padding: 20px;
  text-align: center;
  border-radius: 20px;
  border: 5px double #33425e;
}

/* 0のボタンを横に広げる */
#zero {
  flex-basis: 680px;
  margin-bottom: 30px;
}

/* マウスオーバーで見た目を変える */
.dentaku h1:hover {
  font-weight: bold;
  color: #5e333c;
  text-decoration: underline dotted;

}

.detaku li:hover {
  background-color: #d9e9ad;
  font-weight: bold;
  color: #5e333c;
}

/* クリックしたときにボタンの色を変える*/
.dentaku li:active {
  background-color: #a5c8c8;
  background-image: url(./images/kuma.png);
  background-repeat: no-repeat;
  background-position: right bottom;
}