@charset "utf-8";

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

:root {
--base: #F9F9F9;        /* 背景 */
--gry: #d0d0d0;        /* うす背景 */
--text-main: #1a1a1a;   /* 文字（黒猫） */
--text-sub: #555555;    /* サブ文字 */
--red: #b62719;    /* さし色 */
--gold: #bca873;    /* 文字さし色 */
}

ul, ol {
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

/* 基本 */
body {
  background-color: var(--base);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  margin: 0;
  color: var(--text-main);
}

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

/* ボタンをホバーした時 */
.b-hover,
.btn  {
  opacity: 1;
  transition: all 0.3s ease;
}

.b-hover:hover,
.btn:hover {
  box-shadow: none;
  opacity: 0.5 !important;
}


h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.05em;
  }

main {
  padding-top: 100px; /* ヘッダー分 */
}


/* 横幅と左右の余白*/
.w-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* ヘッダー */
header {
  height: 100px;
  background-color: var(--red);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  color: var(--base);
  display: flex;
  justify-content: center;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.05em;;
}

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

/* ナビゲーションボタン */
.nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 32px;
  font-size: 20px;
}

/* メインビジュアル */
.main-visual {
  height: calc(100dvh - 100px);
  display: flex;
  position: relative;
  background-image: url(../image/main.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-main);
}

.main-visual-text {
  text-align: right;
  margin-top: 0px;
}

.main-visual p{
  font-size: 19px;
}

.main-visual h1 {
  text-shadow: 2px 3px 3px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
}

/* 半透明の白 */
.overlay-box {
  width: 100%;
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 30px 0px;
  text-align: right;
}

section {
  padding: 80px 0;
}

#works {
  background-color: var(--base);
}

h2 {
  margin-bottom: 2em;
  font-weight: 700;
  font-size: 22px;
  text-align: center;
}

h2 a {
  background-color: var(--red);
  color: var(--base);
  padding: 5px 20px;
  border: ridge 5px var(--red);
  margin-bottom: 20px;
}

.more a {
  background-color: var(--base);
  color: var(--red);
  padding: 5px 20px;
  border: ridge 5px var(--red);
}

.more {
  text-align: right;
}

.more.reverse {
  flex-direction: row-reverse;
  text-align: left;
  margin-left: 50px;
}

.more-details {
  margin-top: 80px;
  margin-bottom: 80px;
}

.skill-container ul {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.skill-item p {
  font-size: 14px;
  line-height: 1.8;
}

.skill-item {
  background: #fff;
  padding: 24px;
  text-align: center;
}

h3 , h4 {
  text-align: center;
  margin: 10px;
}

/* webサイト */
.site {
  justify-content: center;
  margin-top: 50px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.site img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.site-text {
  max-width: 520px;
}


.site:first-of-type {
  margin-top: 30px;
}

.site.reverse {
  flex-direction: row-reverse;
}

/* バナーサイト */

.slick-arrow {
  z-index: 999;
  width: 100px;
}

.slick-arrow::before {
  font-size:  30px;
  color: #333;
}

.banner-slider img{
  width: auto;
  margin: 0 auto;
  padding: 0 auto;
  text-align: center;
}


/* アバウト、経歴 */

.profile-text p {
  letter-spacing: 0.08em;
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--text-sub);
  text-align: center;
}

.profile-text {
  margin-bottom: 32px;
}

.profile-text ul {
  margin-top: 24px;
  margin-bottom: 30px;
}

.profile-text li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.profile-text span {
  font-weight: 600;
  color: var(--text-sub);
}

.profile-image {
  text-align: center;
}

.about {
  max-width: 520px;
  margin: 0 auto;
}

.me p {
  margin-bottom: 16px;
  line-height: 1.9;
  text-align: left;
}


/* ワークス */
.lp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
  margin-bottom: 50px;
}

/* 左 */
.lp-img {
  background: rgba(0, 0, 0, 0.1);
  object-fit: cover;
  width: 500px;
  height: auto;
}

.lp-text {
  text-align: left;
}

.lp-text {
  text-align: left;
}

.site-text {
  max-width: 500px;
}

.works-desc {
  margin-top: 16px;
}

.works-desc dt {
  font-weight: 700;
  margin-top: 12px;
  font-size: 14px;
}

.works-desc dd {
  margin-left: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* コンタクト */
#contact {
  background-color: var(--gry);
  margin-bottom: 100px;
  text-align: center;
}

/* お問い合わせ */
.contact-container {
  width: 930px;
  max-width: 90%;
  margin-top: 75px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--base);
  border: 3px solid var(--gold);
  margin-top: 25px;
  padding: 30px;
}

.form-area {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px 24px;
}

.form-area dt {
  margin: 15px 0;
  font-size: 15px;
  font-weight: bold;
}

.form-area dt .required::after {
  content: '必須';
  font-size: 11px;
  color: var(--red);
  margin-left: 10px;
}

.form-area dd {
  padding: 15px 0;
}

.input-text {
  max-width: 100%;
  height: 40px;
  padding-left: 10px;
  padding-right: 10px;
}

.message {
  max-width: 100%;
  padding: 30px;
  line-height: 1.5;
}

.confirm-text {
  font-size: 14px;
  line-height: 22px;
  margin-top: 30px;
}

.submit-button {
  background-color: var(--red);
  color: var(--base);
  display: inline-block;
  min-width: 180px;
  line-height: 48px;
  border-radius: 24px;
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
  cursor: pointer;
  border: none;
}

.submit-button:hover {
  opacity: 0.6;
}

/* フッター */
footer {
  margin-top: 100px;
  padding: 10px 0;
  background-color: var(--red);
  color: var(--base);
  text-align: right;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 0.05em;;
}

footer ul {
  display: flex;
  justify-content: end;
  height: 100%;
  gap: 32px;
  font-size: 20px;
}

.container {
  height: 1500px;
  padding: 50px 0;
}


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

/* ページトップ */
a.page-top {
  background-color: var(--red);
  color: var(--base);
  border: ridge 5px var(--red);
  margin: 20px;
  margin-left: auto;
  display: grid;
  place-items: center;

  width: 70px;
  height: auto;
  line-height: 1;
  text-align: center;
  /*box-shadow: 4px 6px 8px rgba(0, 0, 0, 0.25);*/

  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.page-top .tooltip{
  position: absolute;
  right: 0;
  bottom: 110%;
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: 0.2s;
}

.page-top:hover .tooltip{
  opacity: 1;
  transform: translateY(0);
}


/* PC用 */
.nav {
  display: block;
}

/* ボタンはPCでは消す */
.x-wrap {
  display: none;
}

/* =========================
   レスポンシブ（スマホ）
========================= */
@media (max-width: 768px) {

  main {
    padding-top: 80px; /* ヘッダー小さくする前提 */
  }

  section {
    padding: 56px 0;
  }

  .w-container {
    padding: 0 16px; /* これ超大事 */
  }

  /* ヘッダー */
  header {
    height: 80px;
  }

  header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 90px;
}

header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

header__img{
  width: 50px;
}

header__logo{
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

header__txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

-header__txt p {
  margin: 0;
}


  .icon img {
    width: 56px;
    height: 56px;
  }


  /* メインビジュアル */
  .main-visual {
    height: calc(100dvh - 80px);
  }

  .main-visual h1 {
    font-size: 48px;
    line-height: 1.1;
  }

  .main-visual p {
    font-size: 14px;
  }

  .overlay-box {
    padding: 16px 0;
  }

  /* Worksの横並びを縦に */
  .site {
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    align-items: stretch;
  }

  .site.reverse {
    flex-direction: column;
  }

  .site img {
    max-width: 100%;
  }

  .site-text {
    max-width: 100%;
  }

  /* LP（2カラム）を1カラムに */
  .lp {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 16px;
  }

  .lp-img {
    width: 100%;
  }

  /* skillの余白少し詰める */
  .skill-container ul {
    gap: 20px;
  }

  /* フッター */
  footer ul {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 16px;
  }

  /* コンタクトフォーム */
  .contact-container {
    width: 100%;
    padding: 20px;
  }

  .form-area {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-area dt {
    margin: 0;
  }

  .form-area dd {
    padding: 0 0 12px 0;
  }

  .message {
    padding: 14px;
  }


  /* PCメニューを隠す */
  .nav {
    position: fixed;
    top: 80px; /* ヘッダーの高さに合わせる */
    left: 0;
    right: 0;
    background: var(--gold); /* 好きな色に */
    /* 最初は隠す */
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }

  /* bodyにis-openが付いたら出す */
  body.is-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* navの中身 */
  .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
  }

  .nav li {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid #fff;
  }

  .nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
  }

  /* ボタンをスマホで出す */
  .x-wrap {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    padding-right: 10px;
    padding-top: 8px;
    z-index: 1000;
  }

  /* 閉じるボタンは最初は消す */
  .nav-btn__x {
    display: none;
  }

  /* 開いてる時は openボタン消して closeボタン出す */
  body.is-open .menu-btn {
    display: none;
  }

  body.is-open .nav-btn__x {
    display: inline-block;
  }

}
.nav-btn {
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  margin-left: 10px;
  
}
@media (max-width: 768px) {
  body.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 150;
  }

  .nav {
    z-index: 200;
  }

  .x-wrap {
    z-index: 300;
  }

}

