/*
Theme Name: myportfolio
Author: taiami
Description: ポートフォリオ用オリジナルテーマ
*/

:root {
  --text-color: #333333;
  --bg-color: #fafafa;
  --accent-color: #fce8ef;
  --mt-color: #e89ab0;
  --works-bg-color: #e9f6ef;
}

/*全体設定*/
body {
  color: var(--text-color);
  font-family: "Zen Kaku Gothic New", sans-serif;
  text-align: center;
}

h1,
footer {
  background-color: var(--accent-color);
}

a {
  transition: 0.3s;

  &:hover {
    opacity: 0.7;
  }
}

.main-title {
  font-weight: bold;
}

/*ヘッダー*/
h1 {
  height: 50px;
  display: flex;
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  align-items: center;
  padding-left: 25px;
}

/*ナビゲーション*/
nav ul {
  font-weight: bold;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px;
}
/*ファーストビュー*/
#fv {
  height: 500px;
  padding: 20px 0;
  background-image: url(/wp-content/themes/myportfolio/img/fv.png);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
}

.fv-catch {
  text-align: center;
  color: var(--text-color);
  font-family: "Playfair Display", serif;
  font-style: italic;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fv-cp {
  font-size: 1.5rem;
}
.fv-name {
  font-size: 4rem;
  font-weight: bold;
}

/*セクション見出し*/
h2 {
  color: var(--text-color);
  font-size: 2rem;
  display: flex;
  gap: 0.3rem;
  flex-direction: column;

  .main-title {
    color: var(--mt-color);
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 2px solid var(--mt-color);
  }

  .sub-title {
    font-size: 0.5em;
  }
}

h3 {
  display: flex;
  gap: 0.1rem;
  margin-top: 30px;
  margin-bottom: 5px;
  flex-direction: column;
}

.works-main-title {
  font-size: 1rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.works-sub-title {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/*セクション*/
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
}

/*ABOUT*/
.about-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 20px;
}

.about-wrap img {
  width: 180px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.about-text {
  display: flex;
  flex-direction: column; /* ← 縦並び */
  gap: 12px;
}
.about-text p {
  margin: 0;
}
.tool {
  font-size: 12px;
}

/*WORKS*/
/*全体*/
#works {
  background-color: var(--bg-color);
  max-width: 100%;
  padding: 40px 20px;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.works-wrap {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
}

/*各作品*/
.works-pro {
  background-color: var(--works-bg-color);
  padding: 30px;
  border-radius: 10px;
  max-width: 1000px;
  margin: 5px auto;
}

.works-point {
  font-size: 0.8rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/*Before/After横並び*/
.works-ba {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.works-ba-item {
  flex: 1;
  text-align: center;
}

.works-ba-item img {
  width: 250px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.works-label {
  display: inline-block;
  font-size: 1rem;
  margin-bottom: 0.5px;
}

.works-caption {
  font-size: 0.8rem;
  margin-top: 10px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 40px;
  height: auto;
}
