@charset "UTF-8";

/* 共通 */
:root {
  --main-color: #d8a7a0;
  --sub-color: #f3e8e6;
  --bg-color: #fdfaf9;
  --text-color: #333;
  --text-sub: #666;
  --border-color: #eee;

  --shadow: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 20px rgba(0,0,0,0.08);
}

html {scroll-padding-top: 100px;}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

section {
  padding: 0 20px;
  max-width: 1000px;
  margin: auto;
}

h1, h2, h3 {
  line-height: 1.4;
  font-weight: 700;
}

.bold {
  font-weight: bold;
}

.sp {display: block;}
.pc {display: none;}
@media (min-width: 768px) {
  .sp {display: none;}
  .pc {display: block;}
}

/* header */
header {
  background: #fff;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 20px;
}

.name {
  display: block;
}
@media (min-width: 768px) {
  .name {
    display: inline;
    margin-left: 1em;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.hamburger {
  position: relative;
  z-index: 100;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s;
}

/* hamburger 開閉 */
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 60%;
  height: 100vh;
  background-color: #fff;
  padding-top: 80px;
  transition: all 0.3s;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav.is-active {
  right: 0;
}

.nav > ul > li {
  margin-bottom: 30px;
}

.nav > ul > li > a {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px;
  border-bottom: 2px solid var(--main-color);
}

.nav > ul > li > ul > li > a {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-left: 1.25rem;
  padding: 5px;
}

.nav ul li a:hover {
  color: var(--main-color);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/*ヒーロー部分*/
section.hero {
  max-width: none;
  padding: 0;
  width: 100%;
  margin: 0;
}

.hero {
  display: grid;
  place-items: center;
  background-image: url("../images/kv-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  aspect-ratio: 1.656;
  width: 100%;
}

.kv {
  max-width: 1060px;
  width: 90%;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero {
    background-image: url("../images/kv-bg_pc.png");
    aspect-ratio: 3.2;
  }
}

h2.kv::after {
  content: none;
}

.kv img {
  width: 100%;
  /* height: auto;
  object-fit: contain; */
  height: auto;
  display: block;
}

/* セクション */

section > p {
  margin-bottom: 20px;
}

h2 {
  margin: 60px 0;
  font-size: 1.5rem;
}

h2::after {
  content: "";
  display: block;
  width: 6em;
  height: 3px;
  background: var(--main-color);
}

h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

h3::before {
  font-family: "Font Awesome 7 Free";
  content: "\f138";
  margin-right: 0.5em;
  color: var(--main-color);
}

/* スキル */
#skill ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#skill li {
  background: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid var(--border-color);
}

/* WORKS */
.trans {
  transition: 0.3s;
}

.trans:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.trans img {
  width: 100%;
  display: block;
  transition: 0.3s;
}

.trans:hover img {
  transform: scale(1.05);
}

.work-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}

.work-card p {
  padding: 0 15px 15px;
  font-size: 13px;
  color: var(--text-sub);
}

.works-group > .flex_work-item:last-child {
  margin-bottom: 4em;
}

.flex_work-item {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 2em;
}

.work-text h4 {
  font-size: 1.1em;
}

.work-text a {
  color: var(--text-color);
}

.work-text a:hover {
  color: var(--main-color);
}

.chain::after {
  font-family: "Font Awesome 7 Free";
  content: "\f0c1";
  margin-left: 0.5em;
  color: var(--main-color);
}

.work-text p {
  padding-top: 5px;
}

.external-link::after {
  font-family: "Font Awesome 7 Free";
  content: "\f08e";
  font-weight: 600;
  margin-left: 0.5em;
  color: var(--main-color);
}

@media (min-width: 768px) {
  .flex_work-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-end;
  }
  .work-text{
    width: 60%;
  }
}

/* detail */
#detail h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

#detail h2::after {
  width: 16em;
}

#detail h3 {
  margin: 4em 0 0;
}

#detail .flex_work-item h3::before {
  content: none;
}

.detail-sp{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .detail-sp{
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
  }
  .detail-sp .detail-content{
    width: calc(50% - 10px);
  }
}

/* お問い合わせ */
#contact {
  padding-bottom: 60px;
}

#contact p {
  text-align: center;
  margin-bottom: 30px;
}

#contact form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

#contact textarea {
  min-height: 120px;
  resize: vertical;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: #ff7a45;
}

.form-group {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 14px;
  font-weight: bold;
}

.required {
  color: #ff7a45;
  font-size: 12px;
  margin-left: 5px;
}

#contact button {
  padding: 14px;
  background-color: #ff7a45;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

#contact button:hover {
  background-color: #e9632f;
}

/* footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-sub);
}