* {
margin: 0px;
padding: 0px;
border: 0;
outline: 0;
box-sizing: border-box;
-webkit-text-size-adjust:none; /*iPhone対策*/
}
body{
position: relative;
margin: 0;
padding: 0;
font-family:'Lexend', sans-serif;
font-size: 16px;
color: #626262;
background-color: #FFFFFF;
}
@media screen and (max-width: 767px) {
	body{
	font-size: 15px;
	max-1width:100%;
	}
}


table {
border-collapse: collapse;
border-spacing: 0;
word-break : break-all;
}
ol, ul {
list-style: none;
}
a {
color: inherit;
}

img {
display: block;
width: 100%;
height: auto;
}


.container {
max-width: 1260px;
margin-right: auto;
margin-left: auto;
padding: 0px 24px 70px 24px;
}

@media screen and (max-width: 767px) {
	.container {
	padding:  0px 20px 50px 20px;
	}
}

/**/
.clearfix {
zoom: 1;
}
.clearfix:after {
display: block;
clear: both;
content: '';
}



/* header */

a{
	text-decoration: none;
}

header {
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 30.5px 30px;
	background: #fff;
	box-sizing: border-box;
	filter: drop-shadow(1px -3px 13px rgba(10,50,80,0.35));
}


h1 {
	font-size: 16px;
	letter-spacing: 3px;
	font-weight: 100;
	white-space: nowrap;
}

.nav{
   	display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
}



@media screen and (max-width: 1100px) {
	.navitem-link{
	padding-left: 10px;
	padding-right: 10px;
	}
	.navitem{
	font-size: 13px;
	}
}

@media screen and (max-width: 767px) {
	header{
	padding: 32px 20px;
	}
	h1{
	font-size: 11.5px;
	letter-spacing: 1.5px;
	}
	.navitem-link{
	padding-left: 7px;
	padding-right: 7px;
	}
	ul .navitem{
	font-size: 9px;
	}

	
	
}



/* ナビの下線アニメーション */
.navitem-link {
	position: relative;
	padding-left: 17px;
	padding-right: 17px;
	text-decoration: none;
	color: inherit;
}

.navitem-link:after {
	content: '';
	position: absolute;
	left: 17px;
	right: 17px;
	bottom: -2px;
	height: 1px;
	background: #52a367;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
}

.navitem-link:hover:after {
	transform: scaleX(1);
}

.navitem{
	position: relative;  
	list-style: none;	
}
/* ナビの下線アニメーションここまで */


.nav li {
    margin-left:0px;
	margin-right:0px;
	letter-spacing: 3px;
}

.nav li a {
	display: inline-block;
	text-decoration: none;
	color: #626262;
	background: none;
	background-image: none;
	-webkit-text-fill-color: #626262;
}

.nav li a:hover {
	color: #52a367;
	background: none;
	background-image: none;
	-webkit-text-fill-color: #52a367;
}


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

#main .container {
	max-width: 100%;
	padding: 0px 0px 60px 0px;
}

#main{
	position:  relative;  
	overflow: hidden;
}

#main img {
	animation: kenburns 16s ease-in-out infinite alternate;
}

@keyframes kenburns {
	0%   { transform: scale(1); }
	100% { transform: scale(1.08); }
}

@media screen and (max-width: 767px) {
#main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
}
 

@media screen and (max-width: 1100px) {
#main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
}
	
	
.fuwafuwa {
	animation: fuwafuwa 10s infinite ease-in-out .10s alternate;
	transition: 1s ease-in-out;
	color:#ffffff;
	letter-spacing: 32px;
	font-size: 18px;
	position: absolute;
	z-index: 2;
	left: 38%;
	top: 45%;
	transform: translate(-50%,-50%);
}
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-3deg);
  }
  50% {
    transform:translate(0, -15px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(1deg);
  }
}
 

@media screen and (max-width: 767px) {
.fuwafuwa {
	animation: fuwafuwa 10s infinite ease-in-out .10s alternate;
	transition: 1s ease-in-out;
	color:#ffffff;
	letter-spacing: 12px;
	font-size: 15px;
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	top: 53%;
	width: 100%;
	text-align: center;
	transform: translateY(-50%);
}
 
@keyframes fuwafuwa {
  0% {
    transform:translate(0, 0) rotate(-3deg);
  }
  50% {
    transform:translate(0, -15px) rotate(0deg);
  }
  100% {
    transform:translate(0, 0) rotate(1deg);
  }
}
 
	
	
}

@media screen and (max-width: 400px) {
.fuwafuwa {
	letter-spacing: 8px;
	font-size: 13px;
}
}


/* WORKS */

.line img{
	padding:0px 10px 0px 10px;
}

h2 {
	font-size: 24px;
	text-align: center;
	letter-spacing: 11px;
	font-weight:60;
	padding: 0px 0px 13px 0px;
}

.title{
	text-align: center;
	letter-spacing: 5px;
	padding-bottom: 33px;
}




#works{
	clear:both;
}


.sec_title{
	padding:46px;
	letter-spacing: 4.1px;
	font-size: 21px;
}

ul{
   	display: flex;
}

.center {
   	display: block;
    margin-left: auto;
    margin-right: auto;
	width:60%;}



@media screen and (max-width: 767px) {
	
ul{
	flex-wrap: wrap;
	justify-content: center;
}
.center {
	width:100%;}

}




  #works li:nth-child(n) {
    margin: 0 10px;
  }

.detail{
	padding-top:15px;
	text-align: center;
	letter-spacing: 1px;
}


.hovermask-parent {
  cursor: pointer;
  max-width: 500px;
  position: relative;
}



.hovermask img {
	width: 33px;
	margin:15px;
}

.hovermask {
	align-items: center;
	text-align: left;
	background: rgba(0, 0, 0, .5);
	bottom: 0;
	color: #fff;
  display: flex;
  height: auto;
  justify-content: center;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity .6s ease;
  width: 100%;
	
}
.hovermask:hover {
  opacity: 1;
}

.hovermask p {
  width: 50%;
}

  




/* フッター */

/***追従するトップへ戻るボタン***/
#page-top {
    position: fixed;
    right: 10px;
    bottom: 0px;
	filter:brightness(01px 0px 6px rgba(90,90,90,0.65));
	opacity: 0.8;
}
/***トップへ戻るボタンここまで***/


/***背景固定★
body{
    position: relative;
	padding-bottom: 150px;
}
footer{
	background-image:url(img/back.png);
	width: 100%;
    position: absolute;
    bottom: 0;
	text-align: center;
    padding: 85px 0;
}
背景固定★ここまで***/



footer img{
	position: relative;
}

footer {
    width: 100%;
    text-align: center;
    padding: 100px 0 50px;
}

footer p {
    text-align: center;
    letter-spacing: 1px;
	font-size: 11px;
}


@media screen and (max-width: 767px) {
	footer img{
	 object-fit: cover;
		}
/***追従するトップへ戻るボタン***/
#page-top {
    position: fixed;
    right: -30px;
    bottom: 0px;
	filter:brightness(01px 0px 6px rgba(90,90,90,0.65));
	opacity: 0.8;
	width:52%;
}
/***トップへ戻るボタンここまで***/
	}


/* ===== WORKS リニューアル追加分 ===== */

h2 {
	font-size: 34px;
	letter-spacing: 11px;
	color: #3d3d3d;
}

@media screen and (max-width: 767px) {
	h2 {
		font-size: 24px;
		letter-spacing: 6px;
	}
}

/* タブ */
.tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0 45px;
}

.tab {
	appearance: none;
	cursor: pointer;
	background: #fff;
	border: 1px solid #d8d8d8;
	color: #626262;
	font-family: 'Lexend', sans-serif;
	font-size: 13px;
	letter-spacing: 2px;
	padding: 10px 24px;
	border-radius: 999px;
	transition: all .3s ease;
}

.tab:hover {
	border-color: #52a367;
	color: #52a367;
}

.tab.active {
	background: #52a367;
	border-color: transparent;
	color: #fff;
}

@media screen and (max-width: 767px) {
	.tab {
		font-size: 11px;
		padding: 8px 16px;
	}
}

/* カードグリッド */
.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media screen and (max-width: 1100px) {
	.card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 767px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(10,50,80,0.12);
}

.card-media {
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform .5s ease;
}

.card:hover .card-media img {
	transform: scale(1.08);
}

.card-body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.card-cat {
	font-size: 10.5px;
	letter-spacing: 2px;
	color: #5289a3;
	font-weight: 600;
}

.card-title {
	font-size: 14px;
	letter-spacing: 1px;
	line-height: 1.5;
}

.card-note {
	font-size: 12px;
	letter-spacing: .5px;
	color: #999;
	line-height: 1.6;
}

.card-year {
	margin-top: auto;
	padding-top: 10px;
	font-size: 11px;
	letter-spacing: 1px;
	color: #aaa;
	border-top: 1px solid #eee;
}

.card.hidden {
	display: none;
}

/* WORKSカードのスクロール出現・タブ切替フェード */
.card.will-animate {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease, box-shadow .3s ease;
}

.card.will-animate.in-view {
	opacity: 1;
	transform: translateY(0);
}


/* ===== ABOUT ページ ===== */

#about .container {
	padding-top: 143px;
}

.about-block + .about-block {
	margin-top: 90px;
}

.about-block-title {
	font-size: 19px;
	letter-spacing: 4px;
	color: #3d3d3d;
	padding-bottom: 14px;
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
}

/* プロフィール */
.profile {
	display: flex;
	gap: 60px;
	align-items: center;
}

.profile-photo {
	width: 210px;
	flex-shrink: 0;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1/1;
}

.profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-text p {
	font-size: 14px;
	line-height: 2;
	letter-spacing: .5px;
	color: #626262;
	margin-bottom: 1.4em;
}

.profile-role {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 2px;
	color: #52a367;
	border: 1px solid #52a367;
	border-radius: 999px;
	padding: 6px 18px;
	margin-bottom: 20px;
}

@media screen and (max-width: 767px) {
	.profile {
		flex-direction: column;
		align-items: center;
		gap: 30px;
		text-align: center;
	}
	.profile-photo {
		width: 180px;
	}
}

/* ENVIRONMENT */
.env-list {
	display: block;
}

.env-list li {
	display: flex;
	gap: 16px;
	padding-bottom: 14px;
	font-size: 13px;
	letter-spacing: .5px;
	color: #626262;
}

.env-list li span.label {
	flex-shrink: 0;
	width: 160px;
	color: #999;
	letter-spacing: 1px;
	font-size: 11px;
}

/* SKILLS */
.skills-list {
	max-width: 420px;
}

.skill-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-bottom: 22px;
}

.skill-name {
	width: 90px;
	font-size: 13px;
	letter-spacing: 1px;
	color: #626262;
}

.skill-dots {
	display: flex;
	gap: 8px;
}

.skill-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e6e6e6;
	transition: background .3s ease, transform .3s ease;
}

.skill-dots .dot.filled {
	background: #52a367;
}

/* ドットの順番点灯アニメーション */
.skill-dots.will-animate .dot {
	opacity: 0;
	transform: scale(.4);
}

.skill-dots.will-animate.in-view .dot {
	opacity: 1;
	transform: scale(1);
}

.skill-dots.will-animate .dot:nth-child(1) { transition: opacity .3s ease .0s, transform .3s ease .0s, background .3s ease; }
.skill-dots.will-animate .dot:nth-child(2) { transition: opacity .3s ease .12s, transform .3s ease .12s, background .3s ease; }
.skill-dots.will-animate .dot:nth-child(3) { transition: opacity .3s ease .24s, transform .3s ease .24s, background .3s ease; }
.skill-dots.will-animate .dot:nth-child(4) { transition: opacity .3s ease .36s, transform .3s ease .36s, background .3s ease; }
.skill-dots.will-animate .dot:nth-child(5) { transition: opacity .3s ease .48s, transform .3s ease .48s, background .3s ease; }

/* EXPERIENCE タイムライン */
.timeline {
	position: relative;
	padding-left: 28px;
	border-left: 1px solid #e2e2e2;
}

.timeline-item {
	position: relative;
	padding-bottom: 42px;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.timeline-item.will-animate {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .6s ease, transform .6s ease;
}

.timeline-item.will-animate.in-view {
	opacity: 1;
	transform: translateY(0);
}

.timeline-item:before {
	content: '';
	position: absolute;
	top: 6px;
	left: -33px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #52a367;
}

.timeline-period {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: #52a367;
	margin-bottom: 6px;
}

.timeline-role {
	font-size: 15px;
	letter-spacing: .5px;
	color: #3d3d3d;
	margin-bottom: 4px;
}

.timeline-company {
	font-size: 12px;
	letter-spacing: .5px;
	color: #999;
	margin-bottom: 10px;
}

.timeline-desc {
	font-size: 12.5px;
	line-height: 1.9;
	letter-spacing: .3px;
	color: #626262;
}

/* INDUSTRIES */
.industry-group + .industry-group {
	margin-top: 24px;
}

.industry-group-label {
	font-size: 11px;
	letter-spacing: 2px;
	color: #52a367;
	margin-bottom: 12px;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 1px;
	color: #626262;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
	padding: 7px 16px;
}

/* 箇条書きリスト（LIKES / VALUES / GOALS） */
.info-list {
	display: block;
}

.info-list li {
	position: relative;
	padding-left: 22px;
	padding-bottom: 14px;
	font-size: 13px;
	letter-spacing: .5px;
	color: #626262;
	line-height: 1.7;
}

.info-list li:before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #52a367;
}

/* CONTACT */
.contact-box {
	text-align: center;
	padding: 60px 20px;
	background: #f7f9f8;
	border-radius: 18px;
}

.contact-box p {
	font-size: 13px;
	letter-spacing: 1px;
	color: #626262;
	margin-bottom: 30px;
}

.mail-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #52a367;
	transition: opacity .3s ease;
}

.mail-btn svg {
	width: 22px;
	height: 22px;
}

.mail-btn:hover {
	opacity: .8;
}

.contact-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.contact-email {
	font-size: 14px;
	letter-spacing: .5px;
	color: #3d3d3d;
}

@media screen and (max-width: 767px) {
	.contact-row {
		flex-direction: column;
		gap: 12px;
	}
}

@media screen and (max-width: 767px) {
	#about .container {
		padding-top: 113px;
	}
	.about-block + .about-block {
		margin-top: 60px;
	}
}


/* ===== オープニング（縦書きイントロ） ===== */

/* 2回目以降（同一セッション）は最初から出さない */
.intro-done .intro {
	display: none;
}

.intro {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: introOut 1s ease 2.3s forwards;
}

@keyframes introOut {
	to { opacity: 0; visibility: hidden; }
}

.intro-text {
	writing-mode: vertical-rl;
	font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "MS PMincho", serif;
	font-size: 17px;
	letter-spacing: .38em;
	margin-bottom: -.38em; /* 縦書きの字間で下にズレる分を相殺 */
	color: #3d3d3d;
	opacity: 0;
	animation: introTextIn 1.3s ease .15s forwards;
}

@keyframes introTextIn {
	from { opacity: 0; transform: translateY(-12px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 767px) {
	.intro-text {
		font-size: 15px;
		letter-spacing: .32em;
		margin-bottom: -.32em;
	}
}

/* アニメーションを減らす設定の環境では短めに */
@media (prefers-reduced-motion: reduce) {
	.intro {
		animation: introOut .4s ease .6s forwards;
	}
	.intro-text {
		opacity: 1;
		animation: none;
	}
}
