@charset "utf-8";

/*=========================================================
===========================================================
sec-001 基本
===========================================================
==========================================================*/
#p_gsap #sec-001 {
	width: 100%;
	height: 100vh;
}
#p_gsap #sec-001 .box {
	width: 200px;
	height: 200px;
	background: #fff;
}
#p_gsap #sec-001 .box + .box {
	margin-top: 50px;
}

/*=========================================================
===========================================================
sec-002 よく使うCSSプロパティとGASAP特有のプロパティ
===========================================================
==========================================================*/
#p_gsap #sec-002 {
	width: 100%;
	height: 100vh;
}
#p_gsap #sec-002 .box {
	width: 200px;
	height: 200px;
	background: crimson;
}

/*=========================================================
===========================================================
sec-003 イージングを制するものがアニメーションを制する
===========================================================
==========================================================*/
#p_gsap #sec-003 {
	width: 100%;
	height: 100vh;
}
#p_gsap #sec-003 .box {
	width: 200px;
	height: 200px;
	background: skyblue;
}

/*=========================================================
===========================================================
sec-004 【知ってたら便利】実用的なutils関数について
===========================================================
==========================================================*/
#p_gsap #sec-004{
	width: 100%;
	height: 100vh;
}
#p_gsap #sec-004 .box {
	width: 200px;
	height: 200px;
	background: purple;
}

/*=========================================================
===========================================================
sec-005 疑似要素を動かすためには【疑似要素DOM要素ではないってよ】
===========================================================
==========================================================*/
#p_gsap #sec-005{
	width: 100%;
	height: 100vh;
}
#p_gsap #sec-005 .heading {
	font-size: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	/* <!-- ハイフンを二つつなげるとカスタムプロパティになる --> */
	--scaleX:0;
}
#p_gsap #sec-005 .heading::before {
	margin-right: 10px;
	transform-origin: right center;
}
#p_gsap #sec-005 .heading::after {
	margin-left: 10px;
	transform-origin: left center;
}
#p_gsap #sec-005 .heading::before,
#p_gsap #sec-005 .heading::after
{
	content: "";
	display: inline-block;
	width: 60px;
	height: 1px;
	background-color: #fff;
	transform: scaleX(var(--scaleX));
}

/*=========================================================
===========================================================
sec-006 アニメーション制御の助っ人 コントロールメソッド
===========================================================
==========================================================*/
#p_gsap #sec-006{
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
#p_gsap #sec-006 .list {
	width: 100%;
	position: absolute;
	top: 10px;
	left: 50%;
	transform:translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
#p_gsap #sec-006 .list li {
	background-color: #2f9a68;
	padding: 10px 15px;
	border-radius: 5px;
	cursor: pointer;
}
#p_gsap #sec-006 .box {
	width: 200px;
	height: 200px;
	background-color: crimson;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: bold;
}

/*=========================================================
===========================================================
sec-007 超万能プラグインScrollTo
===========================================================
==========================================================*/
#p_gsap #sec-007{
	width: 100%;
	position: relative;
	background-color: #fff;
}
#p_gsap #sec-007 .list {
	width: 100%;
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding-top: 20px;
}
#p_gsap #sec-007 .list li {
	background-color: #2f9a68;
	border-radius: 5px;
}
#p_gsap #sec-007 .list li a{
	display: block;
	padding: 10px 15px;
}
#p_gsap #sec-007 section {
	width: 100%;
	height: 50vh;
	display: flex;
	/* align-items: center; */
	justify-content: center;
	background-color: white;
}
#p_gsap #sec-007 section h2 {
	font-size: 20px;
	font-weight: bold;
	color: black;
}
#p_gsap #sec-007 .crimson {
	background-color: crimson;
}
#p_gsap #sec-007 .skyblue {
	background-color: skyblue;
}
#p_gsap #sec-007 .pink {
	background-color: pink;
}
#p_gsap #sec-007 .sandybrown {
	background-color: sandybrown;
}

/*=========================================================
===========================================================
sec-008 これで万事解決！？ScrollTriggerプラグインの使い方解説

sec-009 実際の案件で1日溶かしたと語っているease:’none’をつけて対処した際のソースコード

sec-010 同じクラス名がついているものに対する処理
sec-011 timelineの中でscrollTriggerを指定
===========================================================
==========================================================*/
#p_gsap #sec-008 {
	width: 100%;
	height: 300vh;
	position: relative;
}
#p_gsap #sec-008 .spacer {
	width: 100%;
	height: 100vh;
}
#p_gsap #sec-008 .container {
	width: 100%;
	height: 100vh;
	/* display: flex;
	align-items: center; */
}
#p_gsap #sec-008 .box {
	width: 200px;
	height: 200px;
	border-radius: 15px;
	background: greenyellow;
}
#p_gsap #sec-008 .box2 {
	width: 100px;
	height: 100px;
	border-radius: 15px;
	/* margin-top: 200px;
	margin-left: 80px; */
	background: orange;
	margin-top: 40px;
}
#p_gsap #sec-008 .box.is-active {
	background: orange;
}


/* sec-009 実際の案件で1日溶かしたと語っているease:’none’をつけて対処した際のソースコード */
#p_gsap #sec-009 {
	width: 100%;
	height: 100vh;
	position: relative;
}
#p_gsap #sec-009 .img-fixed{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
#p_gsap #sec-009 .header{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    font-size: 24px;
    font-weight: bold;

    position: sticky;
    top: 0;
    left: 0;
}
#p_gsap #sec-009 .header ul{
    display: flex;
    gap: 20px;
}
#p_gsap #sec-009 .header ul li{
    list-style: none;
}
#p_gsap #sec-009 .header ul li a{
    color: white;
    font-size: 24px;
    text-decoration: none;
}
#p_gsap #sec-009 .spacer{
    width: 100%;
    height: 500px;
}
#p_gsap #sec-009 .container{
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    margin: 0 auto;
    padding: 40px;
		color: #000;
}


/* sec-010 同じクラス名がついているものに対する処理 */
#p_gsap #sec-010 {
	width: 100%;
	position: relative;
}
#p_gsap #sec-010 .spacer {
	width: 100%;
	height:400px;
}
#p_gsap #sec-010 .container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#p_gsap #sec-010 .box,
#p_gsap #sec-010 .box2 {
	width: 200px;
	height: 200px;
	margin-top: 40px;
}
#p_gsap #sec-010 .box {
	background-color: #88CE02;
}
#p_gsap #sec-010 .box2 {
	background-color: orange;
}


/* sec-011 timelineの中でscrollTriggerを指定 */
#p_gsap #sec-011 {
	width: 100%;
	height: 100vh;
	position: relative;
}
#p_gsap #sec-011 .container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#p_gsap #sec-011 .box {
	width: 200px;
	height: 200px;
	background-color: #88CE02;
}

/*=========================================================
===========================================================
sec-012 gsap.matchMedia レスポンシブになくてはならない存在
===========================================================
==========================================================*/
#p_gsap #sec-012 {
	width: 100%;
	height: 100vh;
	position: relative;
}
#p_gsap #sec-012 .card {
	width: 100%;
	opacity: 0;
	visibility: hidden;
}
#p_gsap #sec-012 .card-wrapper {
	max-width: 900px;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	margin: 0 auto;
	gap: 20px;
}
@media screen and (max-width: 900px) {
	#p_gsap #sec-012 .card-wrapper {
		max-width: 400px;
		grid-template-columns: 1fr;
	}
}
#p_gsap #sec-012 .card__figure{
	width: 100%;
	height: auto;
	max-height: 150px;
	overflow: hidden;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}
#p_gsap #sec-012 .card__figure img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

#p_gsap #sec-012 .card__body {
	padding: 20px;
	background-color: #fff;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

#p_gsap #sec-012 .card__title {
	font-size: 18px;
	color: #000;
	font-weight: bold;
}

#p_gsap #sec-012 .card__text {
	font-size: 16px;
	color: #000;
}



/*=========================================================
===========================================================
sec-01 ドロワーメニュー(ストライプ)
===========================================================
==========================================================*/
#p_gsap #sec-01 .container {
	width: 100%;
	height: 100vh;
	position: relative;
}
/* ===============================================
# ボタン
=============================================== */
#p_gsap #sec-01 .btn{
    position: absolute;
    top: 20px;
    right: 50px;
    z-index: 99;
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 10px;
    font-size: 32px;
    font-weight: bold;
    color: white;
}
/* ===============================================
# メニュー
=============================================== */
#p_gsap #sec-01 .menu{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
#p_gsap #sec-01 .menu__item{
    list-style: none;
    overflow: hidden;
}
#p_gsap #sec-01 .menu__item a{
    display: block;
    font-size: 32px;
    font-weight: 900;
    padding: 10px;
    color: #333;
    transform: translateY(100%);
}
/* ===============================================
# カーテン
=============================================== */
#p_gsap #sec-01 .curtain{
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}
/* ===============================================
# ストライプ
=============================================== */
#p_gsap #sec-01 .stripe{
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform: translateY(-100%);
}

/*=========================================================
===========================================================
sec-02 メニュー開閉時のアニメーション
===========================================================
==========================================================*/
#p_gsap #sec-02 .container {
	width: 100%;
	height: 100vh;
	position: relative;
	background-color: #fff;
}
/*ボタン*/
#p_gsap #sec-02 .header-menu-trigger {
  width: 64px;
  height: 64px;
  border-radius: 28px;
  background-color: crimson;
  position: absolute;
  top: 64px;
  right: 64px;
  border: none;
  cursor: pointer;
  z-index: 99;
  transition: background-color 0.5s;
}
#p_gsap #sec-02 .header-menu-trigger.is-active {
  background-color: #fff;
}
#p_gsap #sec-02 .header-menu-trigger.is-active .line,
#p_gsap #sec-02 .header-menu-trigger.is-active .dot {
  background-color: crimson;
}
#p_gsap #sec-02 .line {
  width: 13px;
  height: 3px;
  border-radius: 1px;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
}
#p_gsap #sec-02 .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
}
#p_gsap #sec-02 .line[data-index="1"] {
  transform: translate(calc(-50% + 3px), calc(-50% - 5px));
}
#p_gsap #sec-02 .line[data-index="2"] {
  transform: translate(calc(-50% + 3px), calc(-50% + 5px));
}
#p_gsap #sec-02 .dot[data-index="1"] {
  transform: translate(calc(-50% - 8px), calc(-50% - 5px));
}
#p_gsap #sec-02 .dot[data-index="2"] {
  transform: translate(calc(-50% - 8px), calc(-50% + 5px));
}
#p_gsap #sec-02 .circle-bg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: crimson;
  position: absolute;
  top: 64px;
  right: 64px;
  transform: scale(0);
}
/*メニュー内のスタイル*/
#p_gsap #sec-02 .header-menu {
  max-width: 500px;
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}
#p_gsap #sec-02 .header-menu.is-active {
  opacity: 1;
  visibility: visible;
}
#p_gsap #sec-02 .header-lists {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

	position: absolute;
	z-index: 1;
}
#p_gsap #sec-02 .header-lists li {
  color: white;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transform: translate(20px);
}
#p_gsap #sec-02 .header-lists li + li {
  margin-top: 80px;
}


/*=========================================================
===========================================================
sec-03 メニュー開閉時アニメーション【要素が増えてもやることは一緒】
===========================================================
==========================================================*/
#p_gsap #sec-03 {
	position: relative;
}
#p_gsap #sec-03 .container {
	width: 100%;
	height: 100vh;
	position: relative;
}

#p_gsap #sec-03 .header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}
/*ボタン*/
#p_gsap #sec-03 .header-menu-trigger{
    width: 64px;
    height: 64px;
    border-radius: 28px;
    background-color: crimson;
    position: absolute;
    top: 64px;
    right: 64px;
    border: none;
    cursor: pointer;
    z-index: 99;
    transition:background-color .5s;
}
#p_gsap #sec-03 .header-menu-trigger.is-active{
    background-color: #fff;
}
#p_gsap #sec-03 .header-menu-trigger.is-active .line,
#p_gsap #sec-03 .header-menu-trigger.is-active .dot{
    background-color: crimson;
}
#p_gsap #sec-03 .line{
    width: 13px;
    height: 3px;
    border-radius: 1px;
    background-color: #fff;

    position: absolute;
    top: 50%;
    left: 50%;
}
#p_gsap #sec-03 .dot{
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fff;

    position: absolute;
    top: 50%;
    left: 50%;
}
#p_gsap #sec-03 .line[data-index="1"]{
    transform: translate(calc(-50% + 3px),calc(-50% - 5px));
}
#p_gsap #sec-03 .line[data-index="2"]{
    transform: translate(calc(-50% + 3px),calc(-50% + 5px));
}
#p_gsap #sec-03 .dot[data-index="1"]{
    transform: translate(calc(-50% - 8px),calc(-50% - 5px));
}
#p_gsap #sec-03 .dot[data-index="2"]{
    transform: translate(calc(-50% - 8px),calc(-50% + 5px));
}

/*メニュー*/
#p_gsap #sec-03 .menu{
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;

    display: none;/*初期状態*/
}
#p_gsap #sec-03 .menu__left,
#p_gsap #sec-03 .menu__right{
    width: 50%;
    height: 100%;
}
#p_gsap #sec-03 .menu__left{
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clip-path: inset(100% 0% 0% 0%);
}
#p_gsap #sec-03 .menu__left img{
    display: block;
    width: 200px;
    height: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    clip-path: inset(100% 0% 0% 0%);
}
#p_gsap #sec-03 .menu__right{
    background-color: #333;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    clip-path: inset(0% 0% 100% 0%);
}
#p_gsap #sec-03 .menu__col + #p_gsap #sec-03 .menu__col{
    margin-top: 40px;
}
#p_gsap #sec-03 .menu__lists{
    padding-top: 20px;
}
#p_gsap #sec-03 .menu__list a{
    display: block;
    font-size: 18px;
    color: white;
    padding: 5px 0;
}
#p_gsap #sec-03 .menu__title{
    font-size: 24px;
    font-family: 'Montserrat',sans-serif;
    font-weight: bold;
    color: crimson;
    padding: 0 15px 5px 0;
    position: relative;
    --scaleX:0;
}
#p_gsap #sec-03 .menu__title::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background-color:#fff;
    width: 100%;
    height: 1px;
    transform-origin: center left;
    transform: scaleX(var(--scaleX));
}

/*テキストを囲む要素*/
#p_gsap #sec-03 .text-wrap{
    overflow: hidden;
}
/*予め移動しておく*/
#p_gsap #sec-03 .js-text-move{
    transform: translateY(100%);
}

#p_gsap #sec-03 .mainVisual{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*=========================================================
===========================================================
sec-04
===========================================================
==========================================================*/
#p_gsap #sec-04 {
	position: relative;
}
#p_gsap #sec-04 .container {
	width: 100%;
	height: 100vh;
	position: relative;
}
#p_gsap #sec-04 .opening{
    width: 100%;
    height: 100vh;
    position: relative;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;

    display: flex;
    align-items: center;
    justify-content: center;
}
#p_gsap #sec-04 .opening__mask{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,1);
    z-index: 1;
}
#p_gsap #sec-04 .opening__logo{
    display: block;
    width: 500px;
    height: 500px;
    z-index: 2;
    clip-path: inset(0 100% 0 0);/*予め切り取り*/
    transform: scale(1.1);/*予め大きくしておく*/
    opacity: 0;/*予め透明に*/
}
#p_gsap #sec-04 .mainVisual{
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
#p_gsap #sec-04 .mainVisual img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);/*背景画像も予め大きくしておく*/
}


/*=========================================================
===========================================================
sec-05
===========================================================
==========================================================*/
#p_gsap #sec-05 {
	position: relative;
}
#p_gsap #sec-05 .container {
	width: 100%;
	height: 100vh;
	position: relative;
}
#p_gsap #sec-05 .opening{
    width: 100%;
    height: 100vh;
    position: relative;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;

    display: flex;
    align-items: center;
    justify-content: center;
}
#p_gsap #sec-05 .opening__mask{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,1);
    z-index: 1;
    transform-origin: top right;
}
#p_gsap #sec-05 .opening__logo{
    display: block;
    width: 500px;
    height: 500px;
    z-index: 2;
    /* // opacity: 0; */
}
#p_gsap #sec-05 .mainVisual{
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
#p_gsap #sec-05 .img-wrap img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* // transform: scale(1.3); */
}
#p_gsap #sec-05 .img-wrap:nth-of-type(1){
    width: 50vw;
    height: 500px;
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(0 100% 0 0);
    overflow: hidden;
}
#p_gsap #sec-05 .img-wrap:nth-of-type(2){
    width: 40vw;
    height: 500px;
    position: absolute;
    bottom: 0;
    right: 0;
    clip-path: inset(0 100% 0 0);
    overflow: hidden;
}

/*=========================================================
===========================================================
sec-06
===========================================================
==========================================================*/
#p_gsap #sec-06 {
	position: relative;
}
/*ヘッダー*/
#p_gsap #sec-06 .header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}
#p_gsap #sec-06 .header__nav{
    width: 100%;
    height: 100%;
}
#p_gsap #sec-06 .header__lists{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#p_gsap #sec-06 .header__list{
    height: 100%;
}
#p_gsap #sec-06 .header__list a{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    padding: 10px 20px;
}
/*オープニング*/
#p_gsap #sec-06 .opening{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}
#p_gsap #sec-06 .opening__img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate(0,50%) scale(.5);
    filter:grayscale(1);
    object-fit: cover;
}
#p_gsap #sec-06 .opening__container{
    position: absolute;
    left: 0;
    bottom: 0;
    width: fit-content;
    height: fit-content;
    padding: 40px;
}
#p_gsap #sec-06 .opening__title{
    font-size: 80px;
    color: #000;
    font-weight: 900;
    font-family: 'Montserrat',sans-serif;
}
#p_gsap #sec-06 .opening__heading{
    font-size: 64px;
    color: #000;
    font-weight: 900;
    font-family: 'Montserrat',sans-serif;
    margin: 40px 0;
}
#p_gsap #sec-06 .opening__text{
    font-size: 32px;
    color: #000;
    font-weight: 900;
    font-family: 'Montserrat',sans-serif;
}

/*アニメーションの下準備*/
#p_gsap #sec-06 .header{
    transform: translateY(-100%);
}
#p_gsap #sec-06 .js-textAnimation{
    overflow: hidden;
}
#p_gsap #sec-06 .js-textAnimation span{
    display: inline-block;
    transform: translateY(100%);
}
