@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 共通 ----------------*/
html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  color: #4a4540;
  background-color: #fcf9f2;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.font-en {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.font-ja {
  font-size: 15px;
  line-height: 1;
}

/* header ----------------*/
.nav-header {
  display: none;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.header-logo,
.main-nav,
.hamburger {
  pointer-events: auto;
}

.main-nav {
  position: relative;
  z-index: 1001;
  padding: 10px 25px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 60px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  text-decoration: none;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
    0 0 2px rgba(255, 255, 255, 0.5);
  color: #251501;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.main-nav a:hover {
  opacity: 0.5;
}

.cover {
  background-size: cover;
  background-position: center top;
  height: 682px;
}

.title {
  width: 215px;
}

.header-logo {
  text-decoration: none;
  color: #4a4540;
  display: block;
  font-size: 25px;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  padding: 5px 10px 0;
  transition: opacity 0.2s;
}

.header-logo:hover {
  opacity: 0.5;
}

.page-header.scrolled {
  background: rgba(252, 249, 242, 0.7);
  backdrop-filter: blur(10px);
  transition: 0.5s;
}

/* FV ----------------*/
.sp-only {
  display: none !important;
}
.pc-only {
  display: block !important;
}

.fade-in-target {
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
}

body.fv-show .fade-in-target {
  opacity: 1 !important;
}

.fv {
  opacity: 0;
  transition: opacity 1.5s ease;
  transform: none;
}

body.fv-show .fv {
  opacity: 1;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background-color: #251501;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease, visibility 1s ease;
}

.loader.is-loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  opacity: 0;
  color: #fcf9f2 !important;
  font-family: "Noto Serif JP", serif;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  animation: textFadeIn 1.5s ease forwards 0.5s;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (min-width: 768px) {
  .fv {
    height: 100vh;
    width: 100%;
    background: url(images/pc_fv.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-left: 15%;
  }

  .fv .fade-in-target {
    transform: translateX(20px);
  }
  body.fv-show .fv .fade-in-target {
    transform: translateX(0) !important;
  }

  .fv-content {
    display: flex;
    flex-direction: column;
  }

  .img-name.pc-only {
    max-width: 500px;
    height: auto;
    margin-bottom: 20px;
  }

  .img-title.pc-only {
    max-width: 250px;
    height: auto;
    align-self: flex-end;
    margin-right: -40px;
  }
}

/* about ----------------*/
.about-section {
  padding: 80px 20px;
}

.about-flex-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.about-content {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.about-text-wrapper {
  text-align: left;
  max-width: 500px;
  width: 100%;
}

.about-title-group {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

.about-ja-title {
  margin-top: 10px;
  margin-left: 30px;
}

.about-profole-info {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.about-name {
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.job-title {
  font-size: 16px;
  margin-left: 30px;
  margin-top: 5px;
  line-height: 1;
}

.about-text {
  line-height: 2;
  font-size: 15px;
}

.about-text p {
  margin-bottom: 20px;
}

.about-deco-pc-left img,
.about-deco-pc-right img,
.about-deco-sp-only {
  width: 100%;
  height: auto;
  display: block;
}

.about-deco-pc-left,
.about-deco-pc-right {
  width: 18%;
  max-width: 300px;
  transform: rotate(20deg);
}

.about-deco-pc-left {
  left: -80px;
  transform-origin: 100% 50%;
}

.about-deco-pc-right {
  right: -50px;
  transform-origin: 0% 50%;
}

.about-deco-sp-only {
  display: none;
}

/* Hobby ----------------*/
.hobby-section {
  padding: 80px 20px;
}

.hobby-flex-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.hobby-items {
  flex: 1;
  text-align: center;
}

.hobby-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
}

.hobby-title-group {
  text-align: center;
  margin-bottom: 50px;
}

.hobby-en-title {
  margin-bottom: 20px;
}

.hobby-sub-title {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 30px;
}

.hobby-text-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 10px;
}

.hobby-text {
  padding-left: 10%;
  padding-right: 10%;
  text-align: left;
  line-height: 2;
  font-size: 15px;
}

.hobby-text p {
  margin-bottom: 18px;
}

/* Work ----------------*/
.work-section {
  background-image: url(images/work_back.png);
  background-size: cover;
  background-position: center;
  margin: 80px 0;
  padding: 80px 0;
}

.work-title-group {
  text-align: center;
  margin-bottom: 50px;
}

.work-en-title {
  margin-bottom: 20px;
}

.work-container {
  margin: 0 auto;
  width: 100%;
  padding: 50px 0 80px;
  position: relative;
  overflow: hidden;
}

.work-items {
  outline: none;
  padding: 0 20px;
}

.work-img-wrapper {
  width: 100%;
  height: 350px;

  background-color: #4a454030;
  box-shadow: 0 10px 20px rgba(37, 21, 1, 0.1);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-out;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.work-img-wrapper a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.work-items img {
  max-width: 100%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

.work-items:hover .work-img-wrapper {
  transform: scale(1.03);
}

.work-items p {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.slick-prev,
.slick-next {
  width: 15%;
  height: 100%;
  top: 0;
  bottom: 0;
  transform: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
}

.slick-prev:before,
.slick-next:before {
  content: "" !important;
  display: none !important;
}

.slick-prev::after,
.slick-next::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-top: 2px solid #4a4540;
  border-left: 2px solid #4a4540;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 1))
    drop-shadow(0 0 3px rgba(255, 255, 255, 1));
  opacity: 0.8;
}

.slick-prev::after {
  transform: rotate(-45deg);
  margin-left: 30px;
}

.slick-next::after {
  transform: rotate(135deg);
  margin-right: 30px;
}

/* モーダル */
.lity {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(3px);
}

.lity-container {
  padding: 20px;
}

.modal-inner {
  background: #fcf9f2;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 4px;
  color: #333;
  font-family: "Noto Serif JP", serif;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-inner img {
  max-height: 60vh;
  width: auto;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-inner h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 0.1em;
}

/* 情報テーブル */
.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.modal-table th,
.modal-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.modal-table th {
  width: 30%;
  font-weight: bold;
  color: #666;
}

/* 制作のポイント：スマホでも読みやすい箇条書きスタイル */
.modal-point-title {
  font-weight: bold;
  border-left: 3px solid #251501;
  padding-left: 10px;
  margin: 30px 0 10px;
}

.modal-point-text {
  font-size: 0.85rem;
  line-height: 1.8;
}

/* Skill ----------------*/
.skill-section {
  padding: 80px 20px;
}

.skill-title-group {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

.skill-ja-title {
  margin-top: 10px;
  margin-left: 30px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  row-gap: 1em;
  font-size: 18px;
}

/* Contact ----------------*/
.contact-section {
  background-image: url(images/contact_back.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  margin: 80px 0;
  padding: 80px 20px;
}

.contact-title-group {
  text-align: center;
  margin-bottom: 50px;
}

.contact-en-title {
  margin-bottom: 20px;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 40px;
}

.form-group label {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
}

.form-group label span {
  font-size: 0.8em;
  margin-left: 1.5em;
  letter-spacing: 0.1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  outline: none;
}

.form-btn {
  text-align: center;
  margin-top: 60px;
}

.form-btn button {
  background-color: #4a4540;
  color: #fff;
  padding: 10px 80px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.8em;
  transition: opacity 0.3s;
}

.form-btn button:hover {
  opacity: 0.8;
}

/* footer ----------------*/
.page-footer {
  margin: 100px 50px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-nav a {
  text-decoration: none;
  color: #4a4540;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 1.2rem;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 0.5;
}

.footer-logo {
  font-size: 25px;
  font-family: serif;
  font-weight: 600;
  margin-top: 350px;
  padding-right: 12px;
}

.footer-logo a {
  text-decoration: none;
  color: #4a4540;
  transition: opacity 0.2s;
}

.footer-logo a:hover {
  opacity: 0.5;
}

.copyright {
  text-align: center;
  font-size: 15px;
  margin-top: 80px;
  letter-spacing: 0.1em;
}

/* Back to Top */
.page-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;

  background-color: #4a4540;
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 12px;
  font-family: serif;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s, background-color 0.3s;
  transform: translateY(20px);
}

.page-top.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-top:hover {
  background-color: #6b645d;
}

/* SP版 ----------------*/
@media screen and (max-width: 767px) {
  /* header ----------------*/
  .main-nav.active ~ .header-logo {
    display: none;
  }

  .page-header {
    padding: 15px 20px;
    backdrop-filter: none;
  }

  .hamburger {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 2000;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: 0.3s;
  }

  .hamburger.active span {
    background: #251501;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    top: 11px;
  }

  .hamburger span:nth-child(3) {
    bottom: 0;
  }

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

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100dvh;
    background: rgb(252, 249, 242, 0.95);
    backdrop-filter: blur(10px);
    transition: 0.5s ease-in-out;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nav-header {
    display: block;
    width: 100%;
    padding: 15px 0;
    margin-bottom: 20px;
  }

  .nav-header .header-logo {
    display: block;
    padding: 25px 20px;
    font-size: 20px;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: left;
    width: 100%;
    padding: 0;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid #ccc;
  }

  .main-nav li:first-child {
    border-top: 1px solid #ccc;
  }

  .main-nav a {
    display: block;
    padding: 25px 20px;
    text-decoration: none;
    color: #251501;
    font-size: 1rem;
  }

  .header-logo {
    font-size: 20px;
  }

  .page-header.scrolled .hamburger span {
    background: #251501;
  }

  /* FV ----------------*/
  .pc-only {
    display: none !important;
  }
  .sp-only {
    display: block !important;
  }

  .fv {
    background: url(images/sp_fv.png) no-repeat top center;
    background-size: cover;
    height: 110dvh;
    padding-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: none !important;
    perspective: none !important;
  }

  .fv-content.fade-in-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 5%;
    transform: translateX(30px) !important;
    opacity: 0 !important;
    transition: transform 1.5s ease, opacity 1.5s ease;
  }

  body.fv-show .fv-content.fade-in-target {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }

  .img-name.sp-only {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    align-self: center;
  }

  .img-title.sp-only {
    width: auto;
    max-width: 200px;
    height: auto;
    align-self: flex-end;
    margin-right: 5%;
  }

  /* About ----------------*/
  .about-section {
    padding: 60px 35px;
  }

  .about-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    width: 100%;
  }

  .about-deco-pc-left,
  .about-deco-pc-right {
    display: none;
  }

  .about-deco-sp-only {
    display: block;
    width: 65%;
    margin: -30px auto 20px;
    text-align: center;
  }

  .about-deco-sp-only img {
    width: 100%;
    height: auto;
  }

  .about-profole-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-left: 0;
  }

  .about-name {
    margin-bottom: 8px;
    font-size: 1.5rem;
  }

  .job-title {
    display: block;
    margin-left: 0;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
  }

  /* Hobby ----------------*/
  .hobby-flex-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin: 0 auto;
  }

  /* Work ----------------*/
  .work-img-wrapper {
    width: 100%;
    height: 250px;
  }

  /* モーダル */
  .modal-inner {
    width: 95%;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
  }

  .modal-inner img {
    width: 100%;
    max-height: none;
    height: auto;
  }

  /* テーブルを縦並びに変えて、1画面の圧迫感を減らす */
  .modal-table th,
  .modal-table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }

  .modal-table th {
    padding-bottom: 0;
    background: transparent;
    color: #251501;
  }

  .modal-table td {
    padding-top: 5px;
    border-bottom: 1px solid #eee;
  }

  /* Skill ----------------*/
  .skill-section {
    padding: 80px 35px;
  }

  /* Contact ----------------*/
  .contact-section {
    padding: 80px 35px;
  }

  /* footer ----------------*/
  .page-footer {
    margin: 60px 0 30px;
  }

  .footer-container {
    max-width: 100% !important;
    width: 100%;
  }

  .footer-top {
    display: block;
  }

  .footer-nav li {
    margin-bottom: 0;
    border-bottom: 1px solid #4a45402f;
    width: 100%;
  }

  .footer-nav a {
    display: block;
    padding: 25px 35px;
    text-align: left;
    font-size: 15px;
  }

  .footer-logo {
    margin: 60px auto 10px;
    padding-right: 0;
    text-align: center;
    display: block;
    font-size: 20px;
  }

  .copyright {
    margin-top: 40px;
    font-size: 14px;
  }
}

/* Loading & Opening Animation */
.loader {
  display: flex !important;
}

.loader-text {
  opacity: 0;
  color: #fcf9f2 !important;
  font-size: 1.1rem;
  display: block !important;
}

.lity-container * {
  transform: none !important;
  transition: none !important;
}

@media screen and (min-width: 799px) {
  .hamburger {
    display: none;
  }
}

/* A. ヘッダーを常に最前面で固定 */
.page-header {
  z-index: 2000 !important;
  position: fixed !important;
}

/* B. Topへ戻るボタンを最前面に */
.page-top {
  z-index: 3000 !important;
}

/* C. モーダル(Lity)の崩れを完全ガード */
.lity {
  z-index: 11000 !important;
}
.lity-container * {
  transform: none !important;
  transition: none !important;
}

#vdbanner {
  background-color: #000 !important;
  padding: 20px 0 !important; /* 広告の周りに少し余裕を持たせる */
  border-bottom: 1px solid #4b0082; /* 境界線（例：深めの紫） */
  margin-bottom: 0 !important;
}

/* 3. ヘッダーが広告と重ならないように位置を調整する */
header {
  /* もしヘッダーが固定(fixed)されている場合は、topの数値を調整します */
  /* 固定されていない場合は、以下の記述で広告の下からサイトが始まります */
  position: relative;
}
