@charset "UTF-8";

/* * {
    box-sizing: border-box;
}  */

* {
  -webkit-tap-highlight-color: rgba(
    204,
    78,
    33,
    0.2
  ); /* タップ時のハイライトを透明にする */
}

body {
  font-family: "Shippori Mincho", "Yu Mincho Light", "YuMincho", "Yu Mincho",
    "游明朝体", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", sans-serif;
  letter-spacing: 3%;
  font-weight: lighter;
  width: 100%;
}

h2 {
  padding: 0;
  margin: 0;
  line-height: 1;
}

/* 左右の余白 */
.ends-padding {
  padding-left: 3%; /* marginでやると右側に謎の空白ができる */
  padding-right: 3%; /* 1366pt分の30pt */
}

/* フォントサイズ */
.font-english {
  font-family: "Cormorant";
  font-weight: lighter;
}

.font-size-extra-large {
  font-size: 150px;
}

.font-size-heading {
  font-size: 100px;
}

.font-size-medium-large {
  font-size: 36px;
}

.font-size-medium,
.skill-set h3,
.skill-set p,
.form p {
  font-size: 24px;
}

.font-size-medium-small {
  font-size: 18px;
}

.font-size-small {
  font-size: 16px;
}

.Noto-Sans-JP {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 2;
}

.bold {
  font-weight: bolder;
  padding: 0;
}

.parent span {
  color: #898989;
}

/* 見出しA */
.heading-decoration-a {
  text-align: center;
  padding: 35px 20px;
  margin-top: 60px;
}

/* 見出しB */
.heading-decoration-b {
  border-top: 0.5px solid #000000;
  padding: 35px 20px;
}

/* ヘッダー */
#header {
  max-width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.navigation {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
}

.navigation:last-of-type {
  margin-left: auto;
}
.navigation-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.menu-contact {
  list-style: none;
  text-align: left;
  margin-left: 40px;
}

.navigation-list li a {
  text-decoration: none;
  color: black;
}

.menu-contact a span {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.hamburger-menu {
  display: none;
}

/* ヒーローイメージ */
.top-img {
  height: 720px;
  background-image: url(img/hero_image2.png);
  background-size: cover;
  background-position: center bottom;
  text-decoration: none;
}

/* キャッチコピー */
.catchphrase {
  display: flex;
  justify-content: flex-end;
  padding: 120px 230px 120px 0;
}

.text {
  margin: 35px 0;
}

.introduction {
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: 100px;
  line-height: 2.5;
}

/*スキル*/
.skills {
  background-image: url(img/skills_background.png);
  background-size: cover;
  padding-top: 85px;
  padding-bottom: 120px;
}

/*スキル*/
.skill-set {
  padding-left: 15.3%;
}

.skills .heading-decoration-b {
  color: #e7e6e4;
  border-color: #e7e6e4;
}

.skill-set {
  font-family: "Open Sans", sans-serif;
  font-weight: lighter;
}

.skill-set p {
  margin-bottom: 50px;
}

.portfolio {
  margin-bottom: 100px;
}

.values {
  padding-top: 85px;
  height: auto;
  /* height: 3000px; */
}

.values h4 {
  margin-top: 100px;
  font-weight: lighter;
}

/* ポートフォリオ */
.parent {
  width: 100%;
  max-height: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto;
  gap: 1px;
}

.fade-wrapper {
  display: contents;
  min-height: 1px;
}

/* Gridの各アイテム（画像の親divなど）をマス目いっぱいに広げる */
.fade-wrapper > div {
  width: 100%;
  height: 100%;
}

/* 中の画像自体も、親のdiv（Gridのマス）に合わせて広がるようにする */
.fade-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* マス目に合わせて切り抜く、または contain で収める */
  display: block;
}

.portfolio {
  width: 100%;
  padding: 20px;
}

.parent img {
  width: 100%;
  height: auto;
  display: block;
  grid-template-rows: masonry;
}

.div1-img {
  grid-column: span 4 / span 4;
  grid-row: span 3 / span 3;
  grid-column-start: 1;
  grid-row-start: 1;
}

.div1-text {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 4;
}

/* .div2 {
  grid-column: span 2 / span 2;
  grid-row: span 5 / span 5;
  grid-column-start: 5;
  grid-row-start: 1;
} */

.div2-img {
  grid-column: span 2 / span 2;
  grid-row: span 5 / span 5;
  grid-column-start: 5;
  grid-row-start: 1;
}

.div2 img {
  vertical-align: top;
}

.div2-text {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 5;
  grid-row-start: 5;
}

.div3-img {
  grid-column: span 3 / span 3;
  grid-row: span 2 / span 2;
  grid-column-start: 2;
  grid-row-start: 4;
}

.div3-text {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 2;
  grid-row-start: 6;
}

.div4-img {
  grid-column: span 3 / span 3;
  grid-row: span 2 / span 2;
  grid-column-start: 4;
  grid-row-start: 6;
}

.div4-text {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 4;
  grid-row-start: 8;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 80vh;
}

.text-box {
  padding: 10%;
}

/* values */
/* 通常（画像が右）のとき、テキストは右寄せ（中央線に寄せる） */
.section-grid:not(.is-reverse) .text-box {
  justify-self: end;
  text-align: left;
}

/* 反転（画像が左）のとき、テキストは左寄せ（中央線に寄せる） */
.is-reverse .text-box {
  justify-self: start;
  text-align: left;
}

/* 画像を右側（2列目）に配置 */
.section-grid:not(.is-reverse) .image-box {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* 文字を右側（1列目）に配置 */
.is-reverse .text-box {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

/* 画像を左側（2列目）に配置 */
.is-reverse .image-box {
  grid-column: 1 / 2;
  grid-row: 2 / 3; /* HTMLの順序に関わらず、1列目に持ってくる */
}

/* 反転のとき画像を中央寄せ */
.is-reverse .image-box img {
  display: block;
  justify-self: end;
}

/* 画像を端いっぱいに伸ばす */
.image-box {
  width: 100%;
  height: 60vh; /* デフォルトの高さ */
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* contact */
.contact {
  box-sizing: border-box; /* padding（余白）とborder（線）を幅と高さに含める指定 */
  width: 100%;
  margin-bottom: 50px;
}

.contact-box {
  display: flex;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.contact-box-info {
  width: 50%;
  box-sizing: border-box;
}

.contact-box-form {
  width: 50%;
  box-sizing: border-box;
}

.textbox {
  color: #a0a0a0;
  background-color: #d6d0ce;
  box-sizing: border-box;
  width: 100%;
  max-width: 655px;
  height: 54px;
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: 10px;
  border: 0.5px solid #634f48;
}

.textbox:focus,
.long-textbox:focus {
  outline: 0;
  border: 0.5px solid #cc4e21;
}

.long-textbox {
  color: #a0a0a0;
  background-color: #d6d0ce;
  box-sizing: border-box;
  width: 100%;
  max-width: 655px;
  padding: 3px 7px;
  margin-bottom: 10px;
  border-radius: 3px;
  border: 0.5px solid #634f48;
  height: 209px; /* Figma通りの高さ */
  resize: vertical; /* ユーザーが縦方向にだけ伸ばせるようにする（推奨） */
}

.btn-container {
  width: 100%;
  max-width: 655px;
}

.btn {
  display: block;
  margin: 0 0 0 auto;
  font-family: sans-serif;
  letter-spacing: 5%;
  font-weight: nomal;
  color: #fcf7f5;
  padding: 15px 30px;
  text-align: right;
  background-color: #634f48;
  border-radius: 3px;
  text-align: center;
  box-shadow: 0.7px 0.7px 8px 0px #b9b6b6;
}

.btn:hover {
  background-color: #cc4e21;
}

/* footer */
.page-footer {
  width: 100%;
  height: 715px;
  background-color: #d6d0ce;
  padding: 70px 2.2%;
}

.footer-logo {
  height: 23px;
}

.works h2 {
  padding-left: 0;
}

.footer-menu {
  list-style: none;
  margin-top: -3px; /* TODO: 修正 */
  padding: 0;
}

.footer-menu a {
  text-decoration: none;
  color: black;
}

.footer-nav {
  margin: 80px 60px 42px auto;
  display: flex;
  gap: 70px;
  justify-content: flex-end;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.sns {
  display: flex;
  gap: 20px;
  justify-content: right;
  align-items: flex-start;
}

.works {
  width: 100%;
}

.works a {
  letter-spacing: 23%;
}

small {
  font-size: 8px;
}

/* ----------------アニメーション--------------------------------------------- */
/*== ヘッダー追従のためのCSS */
#header {
  position: fixed; /*追従ナビのためpositionをfixedにする*/
  z-index: 1000; /* 追加 */
  top: 0; /*ポジション設定topを0*/
  height: 65px; /*headerの高さを指定*/
  width: 100%; /*position:fixed;にしたため、横幅100%を設定*/
  background: transparent; /* color:#fff; */
}

/* valuesの動き */
.fadeUp {
  opacity: 0;
  transform: translateY(100px); /* 最初は下にずらしておく */
  /* transition: opacity 1.5s, transform 1.5s; 3秒だと長く感じるため調整はお好みで */
  /* transition を使うことで、クラスが外れた時もスムーズに元の状態に戻ります */
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fadeUp-img,
.fadeUp-text {
  opacity: 0;
  transform: translateY(10px); /* 最初は下にずらしておく */
  /* transition: opacity 1s, transform 2s; 3秒だと長く感じるため調整はお好みで */
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* 画面に入った時に付与するクラス */
.fadeUp.is-active,
.fadeUp-img.is-active,
.fadeUp-text.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ホバー時の動き */
a:hover {
  color: silver;
  opacity: 0.5;
  transition: 0.3s;
}

a img:hover {
  opacity: 0.5;
  transition: 0.3s;
}

/* スマホでのみ表示（PCでは非表示） */
.sp-only {
  display: none; /* 通常時は非表示 */
}

.sp-only-text {
  display: none; /* 通常時は非表示 */
  margin-top: 20px;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 768px) {
  .pc-only {
    display: none; /* スマホサイズでは非表示 */
  }

  .sp-only {
    display: block; /* スマホサイズでは表示 */
  }

  .sp-only-text {
    display: block;
    height: auto; /* スマホサイズでは表示 */
  }
  .menu-contact {
    display: none; /* スマホサイズでは非表示 */
  }

  .ends-padding {
    padding-left: 20px; /* marginでやると右側に謎の空白ができる */
    padding-right: 20px;
  }

  /* フォントサイズ */
  .font-size-extra-large {
    font-size: 52px;
  }

  .font-size-heading {
    font-size: 60px;
  }

  .font-size-medium-large {
    font-size: 18px;
  }

  .font-size-medium,
  .skill-set h3,
  .skill-set p,
  .form p {
    font-size: 16px;
  }

  .font-size-medium-small {
    font-size: 14px;
  }

  .font-size-small {
    font-size: 12px;
  }

  /* 見出しA */
  .heading-decoration-a {
    padding: 20px;
    margin-top: 30px;
    letter-spacing: -1px;
  }

  /* 見出しB */
  .heading-decoration-b {
    border-top: 0.5px solid #000000;
    margin: 0 20px;
    padding: 90px 0 45px;
    letter-spacing: -1px;
  }

  /* ヘッダー */
  .logo img {
    height: 10px;
    vertical-align: middle;
  }

  /* ハンバーガーメニュー */
  .hamburger-menu {
    display: block;
    width: 50px;
    height: 50px;
    position: relative;
    border: none;
    background: transparent;
    appearance: none;
    cursor: pointer;
  }

  .hamburger-menu-bar {
    display: inline-block;
    width: 44%;
    height: 2px;
    background: black;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.5s;
  }

  .hamburger-menu-bar:first-child {
    top: 16px;
  }

  .hamburger-menu-bar:nth-child(2) {
    top: 24px;
  }

  .hamburger-menu-bar:last-child {
    top: 32px;
  }

  .hamburger-menu--open .hamburger-menu-bar {
    top: 50%;
  }

  .hamburger-menu--open .hamburger-menu-bar:first-child {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
  }

  .hamburger-menu--open .hamburger-menu-bar:last-child {
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
  }

  .hamburger-menu--open .hamburger-menu-bar:nth-child(2) {
    display: none;
  }

  .navigation {
    display: none;
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 20px;
    top: 65px;
    width: 50%;
    z-index: 9999;
  }

  .navigation-list {
    text-align: center;
    padding: 0;
    margin: 0;
    color: black;
  }

  .navigation-link {
    color: tomato;
    font-weight: 700;
    text-decoration: none;
    display: block;
    padding: 24px 0;
    transition: 0.5s;
  }

  .menu-contact {
    margin-left: 0px;
  }

  .menu-contact a {
    font-weight: lighter;
  }

  @media (hover: hover) and (pointer: fine) {
    .navigation-link:hover {
      background: #333;
    }
  }

  /* キャッチコピー */
  .catchphrase {
    width: 100%;
    display: block;
    padding: 60px 0;
  }

  .catchphrase-text {
    width: fit-content;
    margin: 0 40pt 0 auto;
  }

  .introduction {
    max-width: 350px;
    margin-bottom: 100px;
  }

  .values {
    width: 100%;
    padding-top: 0px;
  }

  .values h4 {
    margin-top: 0;
    margin-bottom: 40px;
  }

  /* ポートフォリオ */
  .parent {
    width: 100%;
    display: block;
  }

  .parent img {
    height: 100%;
    margin-bottom: 20px;
  }

  .div1,
  .div2,
  .div3,
  .div4 {
    grid-column: auto;
    grid-row: auto;
    margin-bottom: 45px;
  }

  .section-grid {
    display: flex;
    min-height: auto;
    flex-direction: column-reverse;
    margin-bottom: 70px;
  }

  .text-box {
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
  }

  .box {
    display: block;
  }

  /* 以下重複チェック */
  /* contact */
  .contact {
    box-sizing: border-box; /* padding（余白）とborder（線）を幅と高さに含める指定 */
    width: 100%;
    margin-bottom: 50px;
  }

  .contact-box {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-box-info {
    width: 100%;
    box-sizing: border-box;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .contact-box-form {
    width: 100%;
    box-sizing: border-box;
  }

  .textbox {
    height: 25px;
    margin-bottom: 25px;
  }

  .long-textbox {
    max-width: 768px;
    height: 145px; /* Figma通りの高さ */
    resize: vertical; /* ユーザーが縦方向にだけ伸ばせるようにする（推奨） */
  }

  .btn-container {
    width: 100%;
    max-width: 768px;
  }

  .btn {
    padding: 10px 20px;
    margin-top: 45px;
    margin-bottom: 90px;
    margin-inline: auto;
  }

  .btn:hover {
    background-color: #cc4e21;
  }

  /* footer */
  .page-footer {
    height: 715px;
    padding: 70px 0;
  }

  .footer-logo {
    height: 23px;
    padding-left: 20px;
  }

  .footer-menu {
    list-style: none;
    margin-top: 20px;
    padding-left: 20px;
  }

  .footer-menu a {
    text-decoration: none;
    color: black;
  }

  .footer-nav {
    margin-top: 40px;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column-reverse;
  }

  .footer-link-group {
    display: block;
  }

  .sns {
    display: flex;
    gap: 20px;
    justify-content: left;
    align-items: flex-start;
    padding-left: 20px;
    padding-top: 20px;
  }

  .works {
    width: 100%;
  }

  .works h2 {
    padding-left: 0;
  }

  .works img {
    width: 60%;
    height: auto;
  }

  .works a {
    letter-spacing: 1%;
    padding-left: 20px;
  }

  small {
    font-size: 8px;
    padding-left: 20px;
  }
}
