/* 共通スタイル */
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #000;
  text-align: center;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 0;
  font-size: 25px;
  font-weight: bolder;
  list-style: none;
  margin: 0;
}

.nav a {
  text-decoration: none;
  color: #f05423;
  font-weight: bold;
  font-size: 20px;
}

/* ヘッダー内にハンバーガーを右上に表示 */
.site-header {
  position: relative; /* ← menu-icon の基準にする */
}

.menu-icon {
  position: absolute;
  display: none;
  top: 1rem;
  right: 2rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  color: #f05423;
}

/* スマホ画面でのみ表示（768px以下） */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  /* 必要であればナビゲーションもスマホ用に変更 */
  .nav ul {
    display: none; /* ハンバーガークリックで開くようにする */
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .nav ul.active {
    display: flex;
  }
}

.logo {
  font-family: 'burghi-variable', sans-serif;
  font-size: 200px;  /* ← 画面の幅に応じて自動拡大 */
  color: #2257f3;
  letter-spacing: 5px;
  margin: 5rem;
}

@font-face {
  font-family: 'Burghi';
  src: url('../fonts/Burghi.ttf') format('truetype');
  font-display: swap;
}

.tagline {
  color: #f05423;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 2vw;
  padding: 3rem 0;
  margin-bottom: 10rem;
}

h1 {
  margin-top: 0;
  margin-bottom: 0;
}

h2 {
  font-size: 30px;
  color: #2257f3;
  margin: 2em 0 1em;
}

section {
  max-width: 5000px;
  margin: 0 auto;
}

#profile {
  padding: 4em 1em;
}

.section-title {
  text-align: center;
  font-size: 30px;
  color: #2257f3;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 2em;
  margin-top: 2em;
  font-family: 'Noto Sans JP', sans-serif;
}

.profile-container {
  display: flex;
  flex-direction: column; /* ← 縦並びに変更 */
  align-items: center;
  gap: 2rem;
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
}

.profile-photo img {
  width: 300px; /* ⬅️ この数値を小さくすれば写真も小さくなります（例：200px） */
  height: auto;
  border-radius: 0%; /* 丸くしたい場合はこのまま。四角なら削除OK */
  object-fit: cover;
}


.profile-image {
  width: 350px;
  height: 350px;
  border-radius: 0;     /* 丸くする */
  object-fit: cover;      /* 中央トリミング */
}

.profile-text {
  max-width: 600px;
  font-size: 15px;
  line-height: 2;
  color: #333;
  text-align: left; 
  margin-bottom: 100px;
}

.profile-image img {
  width: 500px;
  height: auto;
  object-fit: cover;
}

.profile-name {
  font-weight: bold;
  color: #f05423;
  margin-bottom: 1em;
  font-size: 16px;
}

.profile-name span {
  color: #f05423;
  font-weight: normal;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto; /* ← 中央寄せ */
  text-align: center;
  max-width: 600px;
  margin-bottom: 150px;
}

form label {
  align-self: flex-start;
  margin: 1em 0 0.3em;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
}

.fancy-button {
  position: relative;
  display: inline-block;
  padding: 0.7em 2em;
  font-size: 14px;
  font-weight: bold;
  color: #f05423;            /* ← ここ！最初は赤文字 */
  background: none;
  border: 2px solid #f05423;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 3em;
}

.fancy-button .bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #f05423;
  transition: all 0.3s ease;
  z-index: 0;
}

.fancy-button .text {
  position: relative;
  z-index: 1;
}

.fancy-button:hover .bg {
  left: 0;
}

.fancy-button:hover {
  color: white;
}

.fancy-button:active {
  color: #f05423;
  background-color: white;
}

.fancy-button:active .bg {
  background-color: #ffffff;
}

footer {
  background: #2257f3;
  color: #fff;
  padding: 5em 0;
  margin-top: 4em;
}

footer nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  font-size: 12px;
  margin: 0;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer p {
  margin-top: 1em;
  font-size: 12px;
}

/* --- メインコンテンツは最初非表示 --- */
#main-content {
  display: none;
}

/* --- アニメーションテキスト --- */
body {
  margin: 0;
  background-color: #ffffff;
  font-family: 'Lato', sans-serif;
}

.content {
  position: relative; /* ← absolute ではなく relative に */
  text-align: center;
  font-size: 35px;
  line-height: 40px;
  color: #3f332f;
}

.content__container {
  display: inline-block; /* ← 横幅調整して中央に揃える */
  font-weight: 600;
  overflow: hidden;
  height: 40px;
  padding: 0 40px;
  position: relative;
}

.content__container:before,
.content__container:after {
  position: absolute;
  top: 0;
  color: #2257f3;
  font-size: 42px;
  line-height: 40px;
  animation: opacity 2s infinite;
}

.content__container:before {
  content: '[';
  left: 0;
}

.content__container:after {
  content: ']';
  right: 0;
}

.content__container__text {
  display: inline;
  float: left;
  margin: 0;
  font-size: 20px;
}

.content__container__list {
  margin: 0;
  padding-left: 110px;
  text-align: left;
  list-style: none;
  animation: change 3s steps(3) 1 forwards;
  animation-fill-mode: forwards;
  height: 160px; /* 4つの項目 × 40px */
}

.content__container__list__item {
  line-height: 40px;
  height: 40px;
  margin: 0;
  font-weight: bold; /* 必要に応じて */
}

/* アニメーション */
@keyframes change {
  0%, 12.5%   { transform: translateY(0); }
  25%, 37.5%  { transform: translateY(-40px); }
  50%, 62.5%  { transform: translateY(-80px); }
  75%, 87.5%  { transform: translateY(-120px); }
  100%        { transform: translateY(0); }
}

@keyframes opacity {
  0%, 100% {opacity: 0;}
  50% {opacity: 1;}
}

/* --- Helloアニメーション画面全体 --- */
#hello-loader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* ← 縦に並べる */
  transition: opacity 1s ease;
}

/* --- ハートアニメーション（上に重ねる） --- */
.loader {
  width: 40px;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  background: linear-gradient(#dc1818 0 0) bottom/100% 0% no-repeat #ccc;
  -webkit-mask:
    radial-gradient(circle at 60% 65%, #000 62%, #0000 65%) top left,
    radial-gradient(circle at 40% 65%, #000 62%, #0000 65%) top right,
    linear-gradient(to bottom left, #000 42%,#0000 43%) bottom left ,
    linear-gradient(to bottom right,#000 42%,#0000 43%) bottom right;
  -webkit-mask-size: 50% 50%;
  -webkit-mask-repeat: no-repeat;
  animation: l19 4s infinite linear;
}

@keyframes l19 {
    90%,100% {background-size:100% 100%}
}

/* キャッチコピー（tagline） */
.tagline {
  font-size: 25px;
  padding: 1.5rem 1rem;
}

/* Helloアニメーション調整 */
.content {
  font-size: 24px;
  line-height: 30px;
}

.content__container {
  height: 30px;
  padding: 0 20px;
}

.content__container:before,
.content__container:after {
  font-size: 30px;
  line-height: 30px;
}

.content__container__list {
  padding-left: 70px;
  height: 120px;
}

.content__container__list__item {
  font-size: 20px;
  height: 30px;
  line-height: 30px;
}


.profile-container {
  flex-direction: column;
  gap: 1.5rem;
}

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

.works-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 10rem;
  padding: 6rem;
}

.works-row .work-item {
  flex: 1 1 calc(50% - 1.5rem);  /* ← 3カラム→2カラムに変更 */
  max-width: calc(50% - 1.5rem); /* ← 同上 */
}

.works-row .work-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.works-row .work-item h3 {
  font-size: 16px;
  margin-top: 2.5rem;
}

.works-row .work-item p {
  font-size: 14px;
}

.works-row .work-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease; /* ← アニメーション効果を追加 */
}

.works-row .work-item img:hover {
  transform: scale(1.05); /* ← ホバー時に1.05倍に拡大 */
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.tag-outline,
.tag-filled {
  display: inline-block;
  font-size: 13px;
  padding: 0.4em 1.2em;
  border-radius: 30px;
  font-weight: bold;
  margin: 0 0.5em 0.5em 0;
  text-decoration: none;
  transition: 0.3s;
}

.tag-outline {
  color: #2257f3;
  border: 1.5px solid #2257f3;
  background-color: #fff;
}

.tag-filled {
  color: #fff;
  background-color: #2257f3;
  border: 1.5px solid #2257f3;
}

/* ハンバーガーボタンの初期設定（PCでは非表示） */
.hamburger {
  display: none;
  color: #f05423;
  font-size: 28px;
  cursor: pointer;
  padding: 1rem;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

/* レスポンシブ（スマホ）対応 */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    right: -14px;
    background: white;
    padding: 12rem;
    margin: -42px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .nav ul.active {
    display: flex;
  }

  .works-row {
  flex-direction: column;
  align-items: center;
  padding: 0px;
  }

  .works-row .work-item {
  max-width: 90%;
  }

  .logo {
    font-size: 15vw;
    margin: auto;
    margin-top: 85px;
    line-height: 1.2;
    display: inline-block;
  }

  .tagline {
    font-size: 14px;
    margin-bottom: 6rem;
    padding: 0 1rem;
    margin-top: 35px;
  }

  .logo,
  .tagline {
    text-align: center;
  }

}

@media screen and (max-width: 768px) {
  form {
    padding: 0 4rem;
  }

  input,
  textarea {
    font-size: 14px;
  }

  .profile-text {
    font-size: 13px;  /* ← 少し小さめに調整 */
    line-height: 1.8;
    padding: 0 3rem;  /* ← 余白を少し確保すると読みやすく */
  }

  .profile-photo img {
    width: 200px;
    height: auto;
  }

  .works-row .work-item img {
    width: 100%;
    max-width: 320px;  /* ← 表示サイズを制限しつつ大きく */
    height: auto;
  }

  .section-title{
    text-align: center;
    font-size: 25px;
    color: #2257f3;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 2em;
    margin-top: 2em;
    font-family: 'Noto Sans JP', sans-serif;
    }
}

.menu-icon {
  display: none;
  /* 以下略 */
}

@media screen and (max-width: 768px) {
  .menu-icon {
    display: block;
  }
}

.work-detail {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.work-detail-img img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.work-detail-text {
  font-size: 16px;
  color: #333;
  line-height: 2;
  text-align: left;
}

.back-button {
  margin-top: 3rem;
  text-align: left;
}

.back-button a {
  color: #2257f3;
  font-weight: bold;
  text-decoration: none;
}

.back-button a:hover {
  text-decoration: underline;
}

