

/*===========
PC・スマホ共通
===========*/
body {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
		background-color: #E0E0E0;;
  }

.en {
	font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
}

.pc {
      display: block !important;
  }
  
  .sp {
      display: none !important;
  }

	/* プリローダー全体を画面全体にカバー */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;           /* お好みでブランドカラーに */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

/* スピナー例 */
.spinner {
  width: 60px; height: 60px;
  border: 6px solid rgba(0,0,0,0.1);
  border-top-color: #00A0F4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ローディングが終わったらフェードアウト */
#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* スピナー回転 */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 初期状態はちょっと下げて透明 */
#hero {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* loaded クラスが付いたら表示 */
.loaded #hero {
  opacity: 1;
  transform: translateY(0);
}

/* ヘッダーを初期は透明＋少し上にずらしておく */
#header {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* サイト全体の loaded クラスが付いたらフェードイン */
#site-content.loaded #header {
  opacity: 1;
}

/*PC用ヘッダー*/

/* ─────────────────────────────────────────────
   1. ヘッダーの幅を固定して位置をキープ
───────────────────────────────────────────── */
#header {
  position: fixed;
  right: 40px;
  top: 40px;
  width: 250px;               /* ← 横幅を固定 */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 32px;
  z-index: 10000;
}

/* ─────────────────────────────────────────────
   2. 共通セクションスタイル（#menu, #works, #aboutme）
   下を支点に縮む & フェード用のトランジションを追加
───────────────────────────────────────────── */
#header > div {
  background-color: #fff;
  padding: 30px;
  border-radius: 30px;
  width: 100%;               /* 親の 200px に合わせる */
  
  transform-origin: bottom;  /* 下を支点に */
  transform: scaleY(1);      /* 初期は全開 */
  opacity: 1;                /* フェード用 */
  
  transition:
    transform 0.6s ease,
    opacity   0.6s ease,
    padding   0.6s ease;     /* compact 時にパディングも変化 */
}

/* ─────────────────────────────────────────────
   3. メニューの中身（タイトル・サブタイトル）はそのまま
───────────────────────────────────────────── */
.menu-title {
  border-bottom: solid 1px #333;
  padding-bottom: 5px;
  font-size: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
	color: #333;
}
.menu-title::after {
  content: url(images/arrow-blue.svg);
  padding-left: 14px;
  margin-bottom: 5px;
}
.menu-subtitle {
  font-size: 16px;
  padding-top: 5px;
}
.menu-subtitle-jp {
  font-size: 10px;
  color: #747474;
  margin-top: 3px;
}

/* ─────────────────────────────────────────────
   4. compact モード（スクロール後）設定
───────────────────────────────────────────── */
#header.compact {
  right: 40px;
  top: 40px;
}

 /* compact ＆ expanded じゃないときだけ 全セクションを 下から上に縮めて隠す */
	#header.compact:not(.expanded) > div {
  transform: scaleY(0);
  opacity: 0;
  padding: 0;
}

/* compact 時だけ #menu を再度展開 */
#header.compact #menu {
  transform: scaleY(1);
  opacity: 1;
  padding: 20px 20px;    /* 小さめに */
  border-radius: 20px;   /* 角丸も控えめに */
}

/* compact ＆ expanded じゃないときだけ MENU のリンクを隠す */
#header.compact:not(.expanded) #menu a:not(:first-child) {
  display: none;
	transform: translateY(-10px);
  pointer-events: none; /* 押せなくする */
}

/* compact 状態でも expanded が付いたら全セクションを展開 */
#header.compact.expanded > div {
  transform: scaleY(1);
  opacity: 1;
  padding: 30px;      /* 元のパディングに戻す */
}

/* ① メニューリンクにトランジションを追加 */
#header #menu a {
  transition: 
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* ③ compact ＋ expanded のときにサブリンクを出す */
#header.compact.expanded #menu a:not(:first-child) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* compact状態で展開していないときは全体をクリック不能に */
#header.compact:not(.expanded) {
  pointer-events: none;
}

/* ただし、MENUボタン（開閉用）はクリックできるように戻す */
#header.compact:not(.expanded) #menu a:first-child {
  pointer-events: auto;
}


/*PC用メインビジュアル*/

#main-visual {
	position: relative;
	background-image: url(images/back-ground.png);
	background-repeat: repeat;
	height: 95vh;
	/* 適宜調整 */
  perspective: 800px;
}

#komachi {
	position: absolute;
	bottom: 0;
}

#main-title {
	position: absolute;
	top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease; /* 位置・変形をアニメーション */
}

/* スクロール後に付けるクラス */
#main-title.scrolled {
  /* 例：左下に移動 */
  top: auto;      /* 中央指定を解除 */
  bottom: -50px;   /* 親要素の下から20px */
  left: 80px;     /* 親要素の左から20px */
  transform: none;/* translateも解除 */
}

#main-title h2 {
	color: #00A0F4;
	font-size: 56px;
	font-weight: bold;
}

#main-title h1 {
	color: #00A0F4;
	font-size: 80px;
	font-weight: bold;
}

/* ─────────────────────────────────────────────
   タイプライター用スタイル
───────────────────────────────────────────── */
#main-title h2,
#main-title h1 {
  display: block;        /* 2行に分ける */
  overflow: visible;     /* カーソルがはみ出しても表示 */
  white-space: nowrap;
  margin: 0;
}

/* カーソル */
#main-title .cursor {
  display: inline-block;
  width: .08em;            /* 細め */
  height: 1em;
  background-color: #00A0F4;
  margin-left: .1em;
  vertical-align: bottom;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}



/*PC用メインメッセージ*/

#main-message {
	background-color: #E0E0E0;
}

#main-message-container {
	position: relative;
	max-width: 1280px;
	display: flex;
	gap: 32px;
	margin: 80px auto;
	padding: 160px 100px;
	align-items: center;
}

/* 子要素を等幅にする */
.main-message-wrap {
  flex: 1;  
}

/* 真ん中に縦線を引く */
#main-message-container::before {
  content: "";
  position: absolute;
  left: 50%;               /* コンテナ幅の中央 */
  top: 100px;
  bottom: 0;
  width: 1px;              /* 線の太さ */
  background-color: #ccc;  /* 線の色（お好みで調整） */
	height: 300px;
}

#main-message-en {
	font-size: 48px;
	color: #00A0F4;
	line-height: 56px;
}

#main-message-jp {
	font-weight: bold;
	margin-top: 24px;
	font-size: 20px;
	color: #333;
}

#main-message-p {
	line-height: 32px;
	margin-left: 100px;
}


/*PC用works*/

#works-detail {
	margin: 80px;
}

.title::before {
  content: "";
  display: block;
  width: 0%; /* 初期は幅ゼロ */
  height: 1px;
  background-color: #00A0F4;
  margin-bottom: 32px;
  transition: width 3s ease; /* アニメーション指定 */
}

.title.show::before {
  width: 100%;
}

.title {
	font-size: 56px;
	color: #00A0F4;
	font-weight: 500;
}

.title-jp {
	font-size: 24px;
	color: #00A0F4;
}

#works-container {
	max-width: 1440px;
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	margin: 80px auto;
	justify-content: space-between;
}

.work-item {
	width: calc(50% - 16px);
}

.works-wrap {
  position: relative;
  border-radius: 30px;
  overflow: hidden; /* 🔸ここで画像のはみ出しを隠す */
}

.works-img {
  width: 100%;
  object-fit: cover;
  height: auto;
  transition: transform 0.4s ease; /* 🔸スムーズな拡大に必要 */
}

.work-item:hover .works-img {
  transform: scale(1.03); /* 🔸拡大 */
}

.works-wrap {
	position: relative;
	border-radius: 30px;
}

.works-img {
	width: 100%;
	object-fit: cover;
	height: auto;
}

.works-detail-sentence {
	position: absolute;
	top: 50px;
	right: 20px;
	text-align: right;
	color: #fff;
}

.works-detail-sentence h3 {
	font-size: 15px;
	font-weight: 200;
}

.works-detail-sentence h2 {
	font-size: 20px;
	font-weight: 500;
	margin-top: 8px;
}

.works-detail-sentence h4 {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 200;
	margin-bottom: 24px;
}

.works-detail-bottun {
	background-color: #00A0F4;
	border-radius: 5px;
	padding: 10px;
	width: 140px;
	display: inline-flex;
  align-items: center;      /* 縦中央揃え */
  justify-content: center; /* 左寄せ */
}

.works-detail-bottun img {
	margin-bottom: 4px;
	margin-left: 10px;
}


@media screen and (max-width: 1100px) {

.works-detail-sentence {
	top: 20px;
}

.work-item {
	width: 100%;
}


}

.title-small {
	color: #00A0F4;
	font-size: 40px;
	text-align: center;
	font-weight: 500;
}

#banner {
  margin: 160px auto;
  max-width: 1440px;
  padding: 0 16px; /* 左右にちょっと余白を入れたい場合 */
}

#banner-container {
  margin: 80px auto;
  display: flex;
  flex-wrap: wrap;           /* 複数行が必要なら折り返し */
  justify-content: center;   /* 中央寄せ */
  gap: 8px;                  /* 要素間の隙間 */
	/* 追加する部分 */
  height: 375px;     /* 固定高さ */
  overflow: hidden;  /* はみ出た部分を隠す */
  position: relative;/* 後で必要なら */
}

.banner-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;                  /* 画像間の縦余白 */
  /* flex: 1; 削除 */
}

.banner-wrap img {
  display: block;
  max-width: 100%;           /* 横幅をはみ出さないように */
  height: auto;
}


/*PC用スキル*/

#skill {
	margin: 80px;
}

#skill-container {
	margin: 80px auto;
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

.skill-wrap {
	background-color: #fff;
	padding: 30px;
	display: flex;
	justify-content: space-around;
	width: calc(32% - 11px);
	border-radius: 30px;
	gap: 16px;
}

@media screen and (max-width: 1000px) {

	.skill-wrap {
	width: calc(50% - 16px);
}

}

.skill-wrap img {
	width: 70px;
}

.skill-title h2 {
	font-size: 20px;
	border-bottom: solid 1px #333;
	padding-bottom: 5px;
	font-weight: 500;
	color: #333;
}

.skill-title p {
	margin-top: 10px;
	font-size: 14px;
	color: #696969;
	line-height: 20px;
}

/*PC用私のこと*/

#aboutme-detail {
	margin-top: 160px;
	position: relative;
}

.title-no-line {
	position: absolute;
	top: 40px;
	left: 80px;
	width: 25%;
}

.title-blue {
	font-size: 56px;
	color: #00A0F4;
	font-weight: 500;
}

.title-no-line h3 {
	border-bottom: solid 1px #fff;
	padding-bottom: 5px;
	color: #fff;
	margin-top: 48px;
	font-size: 24px;
}

.title-no-line h4 {
	color: #fff;
	margin-top: 24px;
}

.title-no-line p {
	color: #fff;
	font-size: 13px;
	margin-top: 24px;
	line-height: 24px;
	
}

#aboutme-container {
	display: flex;
}

#aboutme-sentence {
	background-color: #212121;
	padding: 80px;
}

#aboutme-sentence p {
	color: #fff;
	line-height: 32px;
	font-size: 13px;
}

/*PC用コンタクト*/

#contact {
	margin: 160px auto;
	display: flex;
	justify-content: center;
}

#contact-container {
	background-color: #00A0F4;
	border-radius: 30px;
	width: 700px;
	padding: 60px 0 100px 0;
	text-align: center;
}

.title-small-white h2 {
	color: #fff;
	font-size: 40px;
}

#contact-container h3 {
	color: #fff;
	margin-top: 16px;
}

#contact-container img {
	margin-right: 16px;
}

/*PC用フッター*/

#footer-container {
	margin: 80px;
}

.footer-subname {
	font-size: 32px;
	color: #00A0F4;
	margin-bottom: 8px;
}

.footer-subname::before {
  content: "";
  display: block;              /* 要素として表示 */
  width: 100%;                 /* 見出し幅いっぱい */
  height: 1px;                 /* 線の太さ */
  background-color: #00A0F4;   /* 青色 */
  margin-bottom: 32px;         /* 線と見出しの間隔 */
}

.footer-name {
	font-size: 48px;
	color: #00A0F4;
	font-weight: 500;
}

#footer-container h3 {
	border-bottom: solid 1px #00A0F4;
	margin-bottom: 5px;
	width: 200px;
	color: #00A0F4;
	font-size: 20px;
	margin-top: 16px;
}

#copyright {
	background-color: #00A0F4;
	text-align: center;
	padding: 5px;
	color: #fff;
	font-size: 10px;
}


@media screen and (max-width: 767px) {


	.pc {
		display: none !important;
	}

	.sp {
		display: block !important;
	}


	/*スマホ用ヘッダー*/

	#header {
		width: 150px;
		top: 40px;
		right: 16px;
	}

	#header.compact #menu {
  padding: 15px;    /* 小さめに */
}

#header.compact {
	right: 16px;
}

	/* expanded じゃないときだけ全セクションを隠す */
  #header:not(.expanded) > div {
    transform: scaleY(0);
    opacity: 0;
    padding: 0;
  }

  #header #menu {
    transform: scaleY(1);
    opacity: 1;
    padding: 15px;
    border-radius: 20px;
  }

  /* MENU のサブリンクは非表示 */
  #header:not(.expanded) #menu a:not(:first-child) {
    display: none;
    transform: translateY(-10px);
    pointer-events: none;
  }

	/* expanded が付いたら全セクションを展開 */
  #header.expanded > div {
    transform: scaleY(1);
    opacity: 1;
    padding: 15px; /* 元のサイズ感に戻す */
  }

	.menu-title {
		font-size: 16px;
	}

	.menu-subtitle {
		font-size: 14px;
	}

	.menu-subtitle-jp {
		font-size: 8px;
	}


	/*スマホ用メインビジュアル*/

#komachi img {
	width: 90%;
	height: auto;
}

#main-title.scrolled {
	bottom: -20px;
	left: 16px;
}

#main-title h2 {
	font-size: 24px;
}

#main-title h1 {
	font-size: 36px;
}

/*スマホ用メインメッセージ*/

#main-message-container {
	max-width: 100%;
	gap: 16px;
	margin: 16px auto;
	padding: 40px 16px;
	flex-wrap: wrap;
}

/* 子要素を等幅にする */
.main-message-wrap {
  flex: none;  
}

/* 真ん中に縦線を引く */
#main-message-container::before {
	display: none;
}

#main-message-en {
	font-size: 28px;
	line-height: 40px;
}

#main-message-jp {
	margin-top: 16px;
	font-size: 16px;
}

#main-message-p {
	margin-top: 48px;
	line-height: 32px;
	margin-left: 0;
	width: 100%;
	font-size: 14px;
}

/*スマホ用works*/

#works-detail {
	margin: 16px;
}

.title {
	font-size: 32px;
}

.title-jp {
	font-size: 18px;
}

#works-container {
	max-width: 100%;
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
	margin: 40px auto;
	justify-content: center;
}


.works-img-sp {
	width: 100%;
	height: 300px;
  object-fit: cover;
  border-radius: 15px;
}

.title-small {
	font-size: 32px;
}


/*スマホ用スキル*/

#skill {
	margin: 16px;
}

#skill-container {
	margin: 40px auto;
}

.skill-wrap {
  display: flex;             /* 画像とタイトルを横並び */
  align-items: flex-start;   /* 上端を揃える */
  gap: 16px;                 
	width: 100%;
}

.skill-title {
  text-align: left;          /* テキストを左寄せ */
  flex: 1;                   /* 余白を埋めてレイアウト安定 */
}

/*スマホ用私のこと*/

#aboutme-detail {
	margin-top: 120px;
	position: relative;
	width: 100%;
}

.title-no-line {
	position: absolute;
	top: 40px;
	left: 16px;
	width: 90%;
}

.title-blue {
	font-size: 32px;
}

.title-no-line h3 {
	font-size: 18px;
}

.title-no-line h4 {
	font-size: 16px;
}

.title-no-line p {
	color: #fff;
	font-size: 13px;
	margin-top: 24px;
	line-height: 24px;
	width: 100%;
}

#aboutme-container {
	flex-wrap: wrap;
}

#aboutme-container img {
	width: 100%;
	object-fit: cover;
}

#aboutme-sentence {
	padding: 16px;
}

/*スマホ用コンタクト*/

#contact {
	margin: 100px 16px;
}

.title-small-white h2 {
	font-size: 32px;
}

#contact-container h3 {
	font-size: 18px;
	color: #fff;
	font-weight: 300;
	margin-top: 16px;
}

#contact-container img {
	margin-right: 8px;
}

/*スマホ用フッター*/

#footer-container {
	margin: 16px;
}

.footer-subname {
	font-size: 18px;
}

.footer-subname::before {
  content: "";
  display: block;              /* 要素として表示 */
  width: 100%;                 /* 見出し幅いっぱい */
  height: 1px;                 /* 線の太さ */
  background-color: #00A0F4;   /* 青色 */
  margin-bottom: 32px;         /* 線と見出しの間隔 */
}

.footer-name {
	font-size: 24px;
}

#footer-container h3 {
	border-bottom: solid 1px #00A0F4;
	margin-bottom: 5px;
	width: 100px;
	color: #00A0F4;
	font-size: 16px;
	margin-top: 16px;
}



















}


