@charset "UTF-8";

:root {
  --text: #141E46;
  --back: #fff;

  --change: 1s ease-in-out;
  --v-space: clamp(80px, 8vw, 120px);
}

:root.darkmode {
  --text: #fff;
  --back: #141E46;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  background-color: var(--back);
  color: var(--text);
  transition: var(--change);
  -webkit-tap-highlight-color: transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: .8;
}

img {
  max-width: 100%;
  height: auto;
}

.w-container {
  width: min(90%, 1366px);
  margin: 0 auto;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.btn {
  display: block;
  width: 208px;
  margin: 0 auto;
  padding: 11px 11px 13px;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.underline {
  text-decoration: underline;
  text-decoration-thickness: .5em;
  text-decoration-color: rgba(255, 228, 0, .4);
  text-underline-offset: -.2em;
  text-decoration-skip-ink: none;
}

/* Header */
.header {
  height: 80px;
  width: 100%;
  font-weight: 400;
  color: inherit;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  color: var(--text);
}

.header .w-container {
  padding: 0;
}

.header-site h1 {
  font-family: 'Niconne', cursive;
  font-size: 32px;
}

.icon-items {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  font-size: 22px;
}

.navbtn {
  padding: 0;
  outline: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-size: 24px;
}

.navbtn .ri-menu-line{
  display: revert;
}
.open .navbtn .ri-menu-line{
  display: none;
}
.navbtn .ri-close-line{
  display: none;
}
.open .navbtn .ri-close-line{
  display: revert;
  color: var(--back);
}
.open .icon-items{
  position: relative;
}
.open .navbtn{
  position: fixed;
  inset: -90% 0 0 88%;
  z-index: 110;
  color: var(--back);
}
@media (max-width:767px){
  .nav{
    position: fixed;
    inset: 0 -100% 0 100%;
    z-index: 100;
    background-color: var(--text);
    opacity: .97;
    transition: transform .3s;
    font-size: 24px;
  }
  .open .nav{
    transform: translate(-100%,0);
  }
  .open body{
    position: fixed;
    overflow: hidden;
  }
  html.open, .open body {
    /* height: 100%; */
    position: fixed;
    inset: 0;
    overflow: hidden;
}
  .nav ul{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 40px;
    color: var(--back);
  }
}
@media (min-width:767px) {
  .icon-items {
    align-items: center;
  }
  .navbtn {
    display: none;
  }
  .nav ul {
    display: flex;
    gap: 56px;
    padding: 0 16px;
  }
}
/* switch */
.onoffswitch {
  position: relative;
  width: 70px;
  margin-top: 4px;
}

.onoffswitch-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.onoffswitch-label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--text);
  border-radius: 20px;
}

.onoffswitch-inner {
  display: block;
  width: 200%;
  margin-left: -100%;
  transition: margin 0.5s ease-in;
}

.onoffswitch-inner:before, .onoffswitch-inner:after {
  display: block;
  float: left;
  width: 50%;
  height: 25px;
  padding: 0;
  line-height: 25px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  box-sizing: border-box;
}

.onoffswitch-inner:before {
  content: "Dark";
  padding-left: 10px;
  background-color: var(--back);
  color: var(--text);
}

.onoffswitch-inner:after {
  content: "Light";
  padding-right: 8px;
  background-color: var(--back);
  color: var(--text);
  text-align: right;
}

.onoffswitch-switch {
  display: block;
  width: 18px;
  margin: 3.5px;
  background-color: var(--back);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 41px;
  border: 2px solid var(--text);
  border-radius: 20px;
  transition: all 0.5s ease-in;
  box-sizing: initial;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
  margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
  right: 0px;
}

/* Hero */
.hero {
  height: 660px;
  background-image: url(../img/ian-dooley-DJ7bWa-Gwks-unsplash.jpg);
  background-size: cover;
  background-position: 70% 50%;
  position: relative;
}

.hero h2 {
  max-width: 1000px;
  margin: auto;
  height: 100%;
  text-align: center;
}

.hero h2 img {
  height: 660px;
}

/* breadcrumb */
.bread {
  margin-bottom: 0;
  /* border-top: 1px solid #fff; */
}

.bread ul {
  padding: 15px 0;

}

.bread ul li {
  display: inline;
  margin-right: 5px;
  font-size: clamp(0.75rem, 0.2716rem + 0.7067vw, 0.875rem);
}

.bread ul li a {
  padding-right: 10px;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.section {
  padding: var(--v-space) 0;
}

.section:nth-of-type(even) {
  background-color: #f7f7f7;
  color: #141E46;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: clamp(1.75rem, 1.5481rem + 0.9231vw, 2.125rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.59%;
  margin-bottom: 40px;
  /* color: #333; */
}

.works-item:hover {
  opacity: .9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #fff;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}

/*--------------------------------
   Skill
  ---------------------------------*/
/* .skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: -50px;
  } */

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  /* width: 48%; */
  margin-bottom: 50px;
}

.skill-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
  /* color:  #141E46; */
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
  /* color: #333; */
}

@media (min-width:768px) {
  .skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: -50px;
  }

  .skill-item {
    width: 48%;
  }
}

/*--------------------------------
   About
  ---------------------------------*/
.profile {
  max-width: 800px;
  margin: 0 auto;
}

.profile-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.profile-img {
  width: 30%;
  border-radius: 50%;
}

.profile-img img {
  border: 2px solid var(--text);
  border-radius: 50%;
  background-color: #fff;
}

.profile-name {
  font-size: clamp(1rem, 0.5962rem + 1.8462vw, 1.75rem);
}

@media (min-width:560px) {
  .profile-head {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8%;
  }

  .profile-img {
    width: 20%;
  }

  .profile-text {
    line-height: 2.5;
  }
}

.pbtn {
  text-align: right;
  font-size: 16px;
  letter-spacing: .1rem;
  font-weight: 400;
  margin-top: 20px;
}

.btnnarrow {
  position: relative;
  display: inline-block;
  text-align: right;
  padding: 0 20px;
  outline: none;
}

.btnnarrow::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 16%;
  width: 85%;
  height: 1px;
  background-color: #333;
  transition: all .5s;
}

.btnnarrow::after {
  content: '';
  position: absolute;
  bottom: -3.3px;
  right: -2px;
  width: 15px;
  height: 1px;
  background-color: #333;
  transform: rotate(35deg);
  transition: all .5s;
}

.btnnarrow:hover::before {
  left: 20%;
}

.btnnarrow:hover::after {
  right: -6%;
}


/*--------------------------------
   Contact
  ---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
  text-align: center;
}

.contact-text a {
  font-weight: 400;
}

/* Footer */
footer {
  margin-top: auto;
}

.footer {
  padding: 40px 0;
  color: var(--text);
  background-image: url(../img/ian-dooley-DJ7bWa-Gwks-unsplash.jpg);
  background-size: cover;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--back);
  opacity: .5;
}

.footer-copy {
  text-align: center;
}

.footer-copy p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  letter-spacing: .1em;
}

/*-----------------
works-page 
 -------------------*/
.img-text {
  padding: calc(4%+30px) 0;
}

.imgtext-container {
  margin-top: var(--v-space);
  display: flex;
  flex-direction: column;
}

.imgtext-container .text {
  padding: 3em;
}

.imgtext-container .img {
  text-align: center;
}

.imgtext-container .img img {
  width: 80%;
}

@media (min-width:768px) {
  .imgtext-container {
    flex-direction: row;
    align-items: center;
  }

  .imgtext-container>.text {
    flex: 1;
  }

  .imgtext-container>.img {
    flex: 1.5;
  }
}

/*-----------------
about-page 
 -------------------*/
.about-section {
  padding: 4% 0 80px;
}

.name {
  font-size: clamp(1.25rem, 0.2778rem + 4.4444vw, 2.5rem);
  font-weight: 400;
  letter-spacing: .2em;
  text-align: center;
}

.name span {
  font-size: clamp(0.75rem, 0.5556rem + 0.8889vw, 1rem);
  font-weight: 400;
  letter-spacing: .1em;
  padding: 10px;
  vertical-align: text-top;
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.profile-info i {
  margin-right: 10px;
}

/*-----------------
 contact-page 
 -------------------*/
/* Base-style form */
.form input[type="text"],
.form input[type="email"],
.form input[type="password"] {
  width: 100%;
  margin-bottom: 30px;
  padding: 12px 20px 12px;
  border: 1px solid #999;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
}

.form textarea {
  width: 100%;
  padding: 12px 20px 12px;
  border: 1px solid #999;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  height: 150px;
  overflow-y: scroll;
}

.form ::placeholder {
  color: #999;
  opacity: 1;
}

.form .bbtn {
  /* width: 50%; */
  background-color: #141E46;
  color: #fff;
  border: 1px solid #999;
  margin-top: 2em;
}

.form .wbtn {
  /* width: 50%; */
  color: #141E46;
  background-color: #fff;
  border: 1px solid #999;
  margin-top: 2em;
}

.form dl dt,
.form dl dd {
  border-bottom: 1px dotted #ccc;
  margin: 0;
  padding: 1em;
}

.form dl {
  border-top: 1px dotted #ccc;
  display: grid;
  grid-template-columns: auto;
  margin-bottom: 1em;
}

@media (min-width:560px) {
  .form dl {
    grid-template-columns: 180px auto;
  }
}

.form dt {
  background-color: #f2f2f2;
}

.contact-section {
  background-color: #fff;
  color: #333;
  padding: 4% 0 80px;
}

.contact-container {
  max-width: 500px;
  margin-top: 30px;
}

.page-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.contact-section .page-title p {
  padding: 2em 0;
}

.contact-section .home {
  text-align: center;
  padding: 2em 0 0;
  text-decoration: underline;
}
.contact-container img{
  display: block;
  margin: 1em auto 0;
  transform: rotate(-5deg);
  /* transform: translateY(-20px); */
}
.error_msg{
  color: red;
}
@media (min-width:768px){
.contact-container img {
  position: absolute;
  top: 50%;
  left: 57%;
}
}
/* login-page */
.login-section {
  background-color: #fff;
  color: #333;
  padding: 4% 0;
}

.login-container {
  max-width: 500px;
  margin-top: 30px;
}

.login-section form p:nth-last-of-type(2) {
  background-color: #fff;
}
.home {
  text-align: center;
  padding: 2em 0 0;
  text-decoration: underline;
}