/* PC、スマホ共通スタイル */
*{
  box-sizing: border-box;
}

p{
  font-size: 16px;
  font-weight: 500;
}

a{
  color: #664b4f;
}

body{
  max-width: 1920px;
  margin: 0 auto;
  color: #664b4f;
  position: relative;

  /*Google Fonts*/
    font-family: "Poppins", "Zen Kaku Gothic New", sans-serif; 
}

/*-------------------topページ-------------------*/

/*ヘッダー*/
header {
  display: flex;
  justify-content: space-between;
  background-color: #fff6ee;
  height: 64px;
  padding: 0 40px;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

header a {
  text-decoration: none;
  font-weight: 600;
}

header a:hover{
  text-decoration: underline;
}

#header-logo {
  width: 65px;
}

#nav-pc ul {
  display: flex;
  font-weight: 600;
}

#nav-pc li{
  list-style: none;
  margin-left: 32px; 
}

/* スマホ用ナビを非表示 */
#nav-sp,
#menu-sp,
#header-logo-sp {
  display: none;
}

/*ファーストビュー*/
#firstview {
  width: 100%;
  margin-top: 64px;
}

#main-message {
  position: relative;
}

#main-message > p {
  position: absolute;
  color: #ffffff;
  text-align: center;
  font-size: 40px;
  font-weight: 300;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  background-color: rgba(168, 161, 161, 0.562);
  box-shadow:0 0 20px 20px rgba(168, 161, 161, 0.562);
  border-radius: 50px;
  padding: 0 15px 10px 15px;
}

#fv-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
}

/*セクションタイトル*/
.top-sectiontitle {
  display: flex;
  margin-top: 120px;
  margin-bottom: 80px;
  transition: 2s;
  opacity: 0;
}

.top-sectiontitle.animated {
  opacity: 1;
}

.top-sectiontitle hr{
  height: 2px;
  background-color: #dc9f95;
  width: 10%;
  text-align: left;
  margin: 44px 16px 0px 0;
}

.index-h2 {
  font-family: "Poppins", sans-serif;
  font-size: 54px;
  font-weight: 600;
  color: #dc9f95;
  margin: 0; 
}

/* スマホ用FVを非表示 */
#main-visual-sp{
  display: none;
}

/*-----works-----*/
#works-flex {
  display: flex;
  flex-wrap: wrap;
  padding: 0 40px 120px 40px;
}

.works-right {
  top: 112px;
}

.mockup {
  margin-bottom: 160px;
  position: relative;
  width: 40%;
  margin: 0 auto;
}

.no34 {
  margin-top: 104px;
}

.mockup-circle{
  width: 100px;
  height: 100px;
}

.circle{
  width:100px;
  height:100px;
  line-height: 100px;
  border-radius:50%;
  border:2px solid #dc9f95;
  /*display:flexで中央配置*/
  display:flex;
  justify-content:center;
  position: absolute;
  top: 34px;
  left: -50px;
  color: #dc9f95;
  font-size: 32px;
}

.mockup-img{
  width: 100%;
    opacity: 0;
    transition: 3s;
}

.mockup-img.animated {
    opacity: 1;
}

.mockup h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 24px;
}

.mockup p {
  margin-top: 0;
}

.mockup-tool{
  margin: 0;
  padding: 0; 
}

/*吹き出し*/
.speechbubble {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 16px;
  border: 2px solid #dc9f95;
  border-radius: 10px;
  background-color: #ffffff;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #664b4f;
}

.speechbubble::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 15px 15px 0 15px;
  border-color: #dc9f95 transparent transparent;
  translate: -50% 100%;
}

.speechbubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 12.2px 12.2px 0 12.2px;
  border-color: #ffffff transparent transparent;
  translate: -50% 100%;
}

/*-----about-----*/
#about-section-sp {
  display: none;
}

#about-section {
  display: flex;
  align-items: center;
  padding: 0 80px;
}

#about-text {
  width: 50%;
  font-weight: 500;
  margin-right: 40px
}

.about-img {
  width: 50%;
  margin-left: 40px;
}

#about-more a {
  position: relative; /*アンダーラインの位置を決めるための基準 */
  text-decoration: none;
}
  
#about-more a::after {
  position: absolute; /*親要素であるaタグを基準に位置を指定*/
  left: 0;            /*アンダーラインを各メニュー（aタグ）の左端に指定*/
  content: '';        /*本来は、擬似要素に入るテキストなどを’’内に指定。今回はアンダーラインなので何も記載しない*/
  width: 100%;        /*アンダーラインを各aタグの幅に合わせる*/
  height: 2px;        /*アンダーラインの高さ（太さ）*/
  background: #664b4f;/*アンダーラインの色*/
  bottom: -1px;               /*アンダーラインがaタグの下端から現れる*/
  transform: scale(0, 1);     /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
  transform-origin: left top; /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
  transition: transform 0.4s; /*変形の時間*/
}
    
#about-more a:hover::after {
    transform: scale(1, 1);     /*ホバー後、x軸方向に1（相対値）伸長*/
} 

#about-more {
  font-size: 24px;
  font-weight: 600;
  text-align: right;  
}

/*-----contact-----*/
/* お問い合わせボタン */

#contact p {
  text-align: center;
  font-weight: 600;
}

.contact-button {
  text-align: center;
  margin-bottom:32px;
}

a.btn {
	display: block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	position: relative;
	max-width: 370px;
	margin: auto;
	padding: 15px 25px;
	font-weight: 500;
  font-size: 24px;
	border-radius: 10px;
	color: #664b4f;
	border: 2px solid #664b4f;
	box-shadow: 5px 5px #dc9f95;
	transition: 0.3s ease-in-out;
  background-color: #fff6ee;
}

a.btn:hover {
  text-decoration: underline;
}

a.btn:active {
	box-shadow: none;
	transform: translate(5px, 5px);
	color: #664b4f;
}

/*フッター*/
footer {
  margin-top: 120px;
}

.footer-hr {
  height: 2px;
  background-color: #dc9f95;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 40px 80px 40px;
  background-color: #fff6ee;
  font-weight: 600;
}

footer a{
  text-decoration: none;
  margin-left: 24px;
}

footer a:hover{
  text-decoration: underline;
}

#copyright {
  margin: 0;
}

/*-------------------aboutページ-------------------*/
/*サブページ　タイトル*/
.subpage-title {
  display: flex;
  justify-content: center;
  margin-top: 120px;
  margin-bottom: 104px;
  transition: 2s;
  opacity: 0;
}

.subpage-title.animated {
  opacity: 1;
}

.subpage-hr {
  height: 2px;
  background-color: #dc9f95;
  width: 80%;
  margin: 40px 16px 40px 0;
}

#about-main {
  padding: 64px 80px 0 80px;
}

/*自己紹介*/
#about-explanation {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  transition: 3s;
  opacity: 0;
}

#about-explanation.animated {
  opacity: 1;
}

#myname {
  font-size: 32px;
  font-weight: 500;
  margin: 0;
}

#myname-ja{
  font-size: 24px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 48px;
}

#about-me-img {
  margin-left: 20px;
  width: 50%;
  height: 50%;
}

#about-explanation-text {
  margin-right: 20px;
}

.about-h3 {
  font-size: 40px;
  text-align: center;
  margin-top: 104px;
  margin-bottom: 72px;
}

/*スキル*/
#skills-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skills-explanation {
  margin-bottom: 40px;
  width: 40%;
}

.skills-explanation h3{
  font-size: 24px;
  margin-bottom: 16px;
}

.skills-name {
  display: flex;
  align-items: center;
}

.skills-tool {
  display: flex;
  justify-content: space-between;
}

.skills-icon {
  width: 3rem;
  height: 3rem;
  margin-right: 20px;
}

.star {
  color: #dc9f95;
}

/*me*/
.me-explanation {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 40px;
  transition: 3s;
  opacity: 0;
}

.me-explanation.animated {
  opacity: 1;
}

.me-explanation p {
  width: 65%;
}

.me-h3 {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  line-height: 1;
  color: #664b4f;
  font-size: 24px;
  font-weight: 500;
}

.me-h3::before,.me-h3::after {
  width: 1px;
  height: 28px;
  content: "";
  background-color: #dc9f95;
}

.me-h3::before {
  margin-right: 1em;
  transform: rotate(30deg);
}

.me-h3::after {
  margin-left: 1em;
  transform: rotate(30deg);
}

/*-------------------worksページ-------------------*/
#workspage {
  padding: 64px 80px 0 80px;
}

.works-main h3,
.works-main p{
  text-align: center;
}

.works-main h3{
  font-size: 40px;
  margin-top: 0;
  margin-bottom: 24px;
}

.works-main p{
  font-size: 24px;
  margin-top: 0;
  text-align: center;
  margin-bottom: 32px;
}

.works-top{
  width: 100%;
  transition: 3s;
  opacity: 0;
}

.works-top.animated {
  opacity: 1;
}

/*説明*/
.works-main dl{
  margin-top: 104px;
  margin-bottom: 104px;
}

dl .works-explanation {
  display: flex;
  width: 100%;
  margin-top: 20px;
}

dl .works-explanation dt{
  width: 20%;
  font-weight: 600;
}

dl .works-explanation dd{
  width: 80%;
  font-weight: 500;
}

/*スクショ画像*/
.works-full{
  text-align: center;
}

.works-full-pc{
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  margin-top: 32px;
  margin-bottom: 104px;
}

.works-full-sp{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 32px;
}

.works-full-sp-left{
  margin-right: 28px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
  width: 40%;
}

.works-full-sp-right{
  margin-left: 28px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
  width: 40%;
}

/*吹き出し*/
.speechbubble-works p{
  margin-bottom: 0;
}

.speechbubble-works {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  padding: 8px 16px;
  border: 2px solid #dc9f95;
  border-radius: 10px;
  background-color: #ffffff;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #664b4f;
}

.speechbubble-works::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 15px 15px 0 15px;
  border-color: #dc9f95 transparent transparent;
  translate: -50% 100%;
}

.speechbubble-works::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 12.2px 12.2px 0 12.2px;
  border-color: #ffffff transparent transparent;
  translate: -50% 100%;
}

/*====================
スマートフォン用のスタイル
======================*/
/*タブレット用*/
@media screen and (max-width: 960px) {
  /*-----トップページ-----*/
  #main-message > p {
    font-size: 24px;
    padding: 0 15px 8px 15px;
  }

  .circle{
    width:90px;
    height:90px;
    line-height: 90px;
    top: 40px;
    font-size: 24px;
  }

  /*-----aboutページ-----*/
  #about-main {
    padding: 64px 30px 0 30px;
  }

  #about-explanation {
    display: block;
    text-align: right;
  }

  #about-explanation-text {
    text-align: left;
    width: 80%;
  }

  #about-me-img {
    width: 50%;
  }

  #about-explanation-text p {
    text-align: left;
  }

  /*スキル*/
  .skills-explanation {
    width: 45%;
  }

  .skills-explanation h3 {
    margin-bottom: 0;
  }

  .skills-tool {
    display: block;
  }

  .star {
    margin-top: 0;
  }
}

@media screen and (max-width: 767px) {
  /*スマホ用カルーセル設定*/
  .carousel {
    margin: 0;
  }
  /* PC用ナビゲーション非表示 */
  #nav-pc {
    display: none;
  }

  header {
    padding: 0 20px;
  }

  /* ハンバーガーメニュー */
  #menu-sp {
    display: block;
    background-color: transparent;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
  }

  #menu-sp img {
    margin-right: 20px;
  }

  /* スマホ用ナビゲーションの表示切替*/
  /* 初期状態、レイアウトと非表示設定 */
  #nav-sp {
    background-color: #fff6ee;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: none;
    z-index: 100;
  }

  /* ×ボタン */
  #close {
    position: absolute;
    background-color: transparent;
    border: none;
    right: 20px;
    padding: 0;
  }

  #nav-sp nav ul {
    margin-top: 65px;
    padding: 40px;
  }

  #nav-sp nav li {
    list-style: none;
  }

  /* ナビゲーションのリンクの装飾設定 */
  #nav-sp nav a {
    display: block;
    color: #664b4f;
  }

  #nav-sp nav a:hover {
    text-decoration: underline;
  }

  #nav-sp .menu {
    text-decoration: none;
    margin-top: 40px;
    height: 44px;
    font-size: 22px;
    text-align: center;
  }

  /*ファーストビュー*/
  /*pc用FV非表示*/
  #main-visual {
    display: none;
  }

  #main-visual-sp {
    display: block;
  }

  #firstview-sp {
    width: 100%;
    margin-top: 64px;
  }
  
  #main-message-sp {
    position: relative;
  }
  
  #main-message-sp > p {
    position: absolute;
    color: #ffffff;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    background-color: rgba(168, 161, 161, 0.562);
    box-shadow:0 0 20px 20px rgba(168, 161, 161, 0.562);
    border-radius: 50px;
    padding: 0 15px 10px 15px;
  }
  
  #fv-logo-sp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
  }
  
  /*セクションタイトル*/
  .index-h2 {
    font-size: 40px; 
  }

  .top-sectiontitle hr{
    margin: 32px 16px 0px 0;
  }

  /*-----works-----*/

  #works-flex {
    display: block;
    padding: 0 20px;
  }

  .mockup {
    width: 100%;
    text-align: center;
  }

  .works-right {
    top: 0;
  }

  .no34 {
    margin-top: 32px;
  }

  .mockup-text {
    margin-bottom: 32px;
  }

  .mockup h3 {
    font-size: 24px;
  }

  .circle {
    left: 0;
    width:100px;
    height:100px;
    line-height:100px;
    top: 34px;
    font-size: 32px;
  }

  .no24 {
    right: 0;
  }

  .speechbubble {
    padding: 6px 12px;
    margin-top: 8px;
  }

  /*-----about-----*/
  /*pc非表示*/
  #about-section {
    display: none;
  }

  #about-section-sp {
    display: block;
    text-align: center;
    padding: 0 30px;
  }

  .about-img {
    width: 100%;
    margin: 0;
  }

  #about-text {
    width: 100%;
    margin: 0 auto;
  }

  #about-text p {
    text-align: left;
    margin-top: 32px;
  }

  #about-more {
    font-size: 22px;
  }
  
  #about-more a {
    text-decoration: underline;
  }

  /*-----contact-----*/
  .contact-button {
    padding: 0 20px;
  }

  #contact p {
    padding: 0 20px;
  }

  /*フッター*/
  .footer {
    justify-content: center;
    padding: 32px 20px 80px 20px;
  }

  .footer a{
    display: none;
  }

  /*----------aboutページ----------*/
  /*サブページタイトル*/
  .subpage-title{
    margin-top: 104px;
    margin-bottom: 88px;
  }

  .subpage-hr {
    margin: 32px 16px 32px 0;
  }

  #about-explanation {
    text-align: center;
  }

  #about-explanation-text {
    text-align: center;
    width: 100%;
    margin: 40px 0 0 0;
    margin-top: 40px;
  }

  #about-me-img {
    width: 80%;
    margin: 0;
  }

  #about-explanation-text p {
    text-align: left;
  }

  /*スキル*/
  #skills-flex {
    display: block;
    text-align: center;
  }

  .skills-explanation {
    width: 100%;
    margin-bottom: 48px;
    justify-content: center;
  }

  .skills-explanation p {
    margin: 8px 0 0 0;
  }

  .skills-name {
    justify-content: center;
  }

  

  .skills-tool {
    font-size: 20px;
  }

  .skills-tool h3 {
    margin: 0;
  }

  .star {
    margin-top: 16px;
  }

  /*me*/
  .me-explanation {
    display: block;
    margin-bottom: 64px;
  }

  .me-h3 {
    justify-content: left;
  }

  .me-explanation p {
    width: 100%;
  }

  /*----------worksページ----------*/
  #workspage {
    padding: 64px 30px 0 30px;
  }

  .works-main {
    padding: 0;
  }

  .works-main h3{
    font-size: 32px;
  }

  .works-main p{
    font-size: 20px;
  }

  .works-main dl{
    margin-top: 64px;
    margin-bottom: 96px;
  }

  dl .works-explanation {
    display: block;
  }

  dl .works-explanation dt{
    width: 80%;
  }

  dl .works-explanation dd{
    margin: 16px 0 32px 16px;
    width: 100%;
  }

  .works-full-pc{
    margin-bottom: 96px;
  }
  
}


@media screen and (max-width: 500px) {
  #main-message-sp > p {
    font-size: 16px;
  }

  .circle{
    width:90px;
    height:90px;
    line-height: 90px;
    top: 40px;
    font-size: 24px;
  }

  a.btn {
    font-size: 22px;
  }
}