/* #BASE CSS (Initital Setup)
---------------------------------
#BASE RESET  
#BASE CONTENT
        #TYPOGRAPHY
            #BODY
            #HEADINGS 
            #HEADING LAYOUT
            #PARAGRAPHS
            #LINKS
            #HELPERS
        #MEDIA
            #IMAGES
            #OVERLAY
        #COMPONENTS
            #BUTTONS
  #BASE LAYOUT
        #SIMPLE RESET
        #MEDIAQUERIES
        #CONTAINER
        #GRID SYSTEM
        #GSAP
  #BASE SITE
        #SITE STRUCTURE
            #HEADER
                # site-id (LOGO)
                # hero
            #FOOTER
            #SECTIONS
            #SUB PAGES
        #SITE NAVIGATION
            #TOGGLE-NAV (Default for Small Screens)
  #SITE MAIN
        #TEXT RIGHT 
        #KEYFRAMES
        ＃TITLE
  #ANIMATION
  #VIDEO
  ＃ABOUT
--------------------------------- */

:root {

  /* DEFINE ALL COMMONLY USED COLORS HERE */
  --color-white: #ebf2f2;

  /* SIZING UNITS */
  --unit-2xs: 0.25rem;
  --unit-xs: 0.5rem;
  --unit-s: 1rem;
  --unit-m: 1.8rem;
  --unit-l: 2.5rem;
  --unit-xl: 3rem;
  --unit-2xl: 4rem;
  --unit-3xl: 6rem;
  --unit-4xl: 9rem;
  --container-width: 1100px;
  --container-width: 80vw;

  /*  DEFINE ALL FONTS USED HERE */
  --font-headings: "alga", serif;
  --font-body: "textbook-new", sans-serif;
}

/* RESET */
* {
  box-sizing: border-box;
  /* font-family: sans-serif; */
}

/* BASE TYPOGRAPHY */
/* BODY */
body {
  font-family: var(--font-body);
  font-weight: 100;
  font-style: normal;
  color: #333;
  line-height: 1.4;
  font-size: 100%;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #f0e6db;
}

/* ALL HEADINGS */

h1 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-style: normal;
  color: var(--color-white);
}

h2 {
  font-size: var(--unit-l);
  font-family: var(--font-headings);
}

h3 {
  font-size: var(--unit-m);
  font-family: var(--font-headings);
  font-weight: 700;

}

h4 {
  font-size: var(--unit-s);
  font-family: var(--font-body);
  font-weight: 500;
  color: #D5B339;
}

/* ALL IMAGES */

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

/* FULL WIDTH IMAGES */
img.full-width {
  width: 100%;
  height: auto;
  display: block;
}

img.centered {
  margin-inline: auto;
}

/* ALL VIDEOS */
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* BASE RAYOUT */

/* CONTAINERS */
.container2 {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: 2em;
}

.container {
  /* border: 1px solid rgb(43, 0, 255); */
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 2em;
}


/* #GRID SYSTEM */
/* GRID SYSTEM (12 column) */

.row {
  --grid-gap: var(--unit-s);
}

.row>* {
  margin-block-end: var(--grid-gap);
}

/* NEW width SYNTAX (updated from min-width: 768px)  */
@media (width >=768px) {

  .row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
  }

  /* COMMONLY USED SEMANTIC COLUMNS */
  .one-whole {
    grid-column: auto / span 12;
  }

  .one-half {
    grid-column: auto / span 6;
  }

  .one-third {
    grid-column: auto / span 4;
  }

  .two-thirds {
    grid-column: auto / span 8;
  }

  .one-fourth {
    grid-column: auto / span 3;
  }

  .three-fourths {
    grid-column: auto / span 9;
  }

  /* SWAP (REVERSE COLUMNS) - WORKS ONLY w/ 2 COLUMNS */
  .row.swapped>*:first-child {
    order: 2;
  }

  .row.swapped>*:last-child {
    order: 1;
  }

  /* CENTERED COLUMNS */
  .one-half.centered {
    grid-column-start: 4;
  }

  .two-thirds.centered {
    grid-column-start: 3;
  }

  /* 12 COLUMN CLASS-BASED GRID SYSTEM */
  .col-1 {
    grid-column: auto / span 1;
  }

  .col-2 {
    grid-column: auto / span 2;
  }

  .col-3 {
    grid-column: auto / span 3;
  }

  .col-4 {
    grid-column: auto / span 4;
  }

  .col-5 {
    grid-column: auto / span 5;
  }

  .col-6 {
    grid-column: auto / span 6;
  }

  .col-7 {
    grid-column: auto / span 7;
  }

  .col-8 {
    grid-column: auto / span 8;
  }

  .col-9 {
    grid-column: auto / span 9;
  }

  .col-10 {
    grid-column: auto / span 10;
  }

  .col-11 {
    grid-column: auto / span 11;
  }

  .col-12 {
    grid-column: auto / span 12;
  }

  /* PUSHES */
  .push-1 {
    grid-column-start: 2;
  }

  .push-2 {
    grid-column-start: 3;
  }

  .push-3 {
    grid-column-start: 4;
  }

  .push-4 {
    grid-column-start: 5;
  }

  .push-5 {
    grid-column-start: 6;
  }

  .push-6 {
    grid-column-start: 7;
  }

  .push-7 {
    grid-column-start: 8;
  }

  .push-8 {
    grid-column-start: 9;
  }

  .push-9 {
    grid-column-start: 10;
  }

  .push-10 {
    grid-column-start: 11;
  }

  .push-11 {
    grid-column-start: 12;
  }
}

.one-half {
  grid-column: auto / span 6;
}




/*  MEDIA QUERIES */

@media (max-width: 768px) {

  /* MOBILE SIZED STYLING GOES HERE */
  .body {
    font-size: 60%;
  }
}

@media (min-width: 1050px) {
  body {
    font-size: 112.5%;
  }
}

@media (min-width: 1250px) {
  body {
    font-size: 137.5%;
  }

}

/* BASE SITE - SITE STRUCTURE */

/* HEADER */


.site-header {
  /* border: 1px solid; */
  display: flex;
  justify-content: space-between;
  padding: 1em;
  position: static;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.site-header a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

.home-page .site-header {
  position: sticky;
  margin-top: -100px;
}

.project-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
}

.site-title {
  position: absolute;
  top: -9999px;
  left: -9999px;
  font-size: 1.25em;
  line-height: 1;
  margin: 0;
  font-family: var(--font-body);
  margin: 0;
}

.site-title a {
  display: block;
  padding: .25em 0;
}

.site-header {

  .site-nav {
    font-size: 1em;
    line-height: 1;
  }

  .site-nav ul {
    list-style: none;
    display: flex;
    /* gap: 1em; */
    margin: 0;
    padding: 0;
    justify-content: space-between;
  }

  .site-nav a {
    text-decoration: none;
    color: white;
    display: block;
    padding: .5em;
  }

}

/* FOOTER */
/* .site-footer {
  padding: 100px;
  padding-bottom: 50px;
  background-color: #ffffff;
  width: 100%;
  border-radius: 60px 60px 0 0;
  margin: auto 0;
  border-top: 1px solid #1c1c1c;
} */

h2 {
  margin: 0;
}

a {
  color: #000000;
  text-decoration: none;
}

.site-nav ul {
  list-style: none;
  padding: 0;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 50px;
  }
}

/*  */
.site-footer {
  background-color: #d67923;
  padding: 45px 0 20px 0;
  font-size: 15px;
  line-height: 24px;
  color: #ffffff;
  border-radius: 60px 60px 0 0;
}

.site-footer hr {
  border-top-color: #bbb;
  opacity: 0.5;
}

.site-footer hr.small {
  margin: 20px 0;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: #3366cc;
  text-decoration: none;
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-links li {
  display: block;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
}

.footer-links a:active,
.footer-links a:focus,
.footer-links a:hover {
  color: #cc3333;
  text-decoration: none;
}

.footer-links.inline li {
  display: inline-block;
}

.site-footer .social-icons {
  text-align: right;
}

.site-footer .social-icons a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-left: 6px;
  margin-right: 0;
  border-radius: 100%;
  background-color: #33353d;
}

@media (max-width:991px) {
  .site-footer [class^=col-] {
    margin-bottom: 30px;
  }
}

@media (max-width:767px) {
  .site-footer {
    padding-bottom: 0
  }

  .site-footer .copyright-text,
  .site-footer .social-icons {
    text-align: center;
  }
}

.social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;

  display: flex;
}

.social-icons li {
  display: flex;
  margin-bottom: 4px;
  justify-content: space-between;
}

.social-icons li.title {
  margin-right: 15px;
  text-transform: uppercase;
  color: #96a2b2;
  font-weight: 700;
  font-size: 13px;
}

.social-icons a {
  background-color: #eceeef;
  color: #ffffff;
  font-size: 16px;
  display: inline-block;
  line-height: 44px;
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  -webkit-transition: all .2s linear;
  -o-transition: all .2s linear;
  transition: all .2s linear;
}

.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #fff;
  background-color: #29aafe;
}

.social-icons a.facebook:hover {
  background-color: #3b5998;
}

.social-icons a.twitter:hover {
  background-color: #00aced;
}

.social-icons a.linkedin:hover {
  background-color: #007bb6;
}

.social-icons a.dribbble:hover {
  background-color: #ea4c89;
}

@media (max-width:767px) {
  .social-icons li.title {
    display: block;
    margin-right: 0;
    font-weight: 600;
  }
}




/* PAGE-SPECIFIC STYLING */

/* COL */
.image-left {
  display: block;
  margin-left: auto;
}

.video-conversation video {
  width: 70%;
  height: auto;
  object-fit: cover;
  border-radius: 12%;
}

.costom-illustration video {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 12%;
}

/* .right-title {
  text-align: right;
} */

/* HOME PAGE  */
.home-page {
  overflow-x: hidden;
}

/* HERO */
h2.subtitle {
  color: #ffffff;
}

/* TALKMATE HERO */

.talkmate-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: clamp(500px, 80vh, 900px);
  /* ←これ重要 */
  padding: 5%;

  background-image: url("../img/island-illustration3.png");
  /* ←パスも修正 */
  background-size: cover;
  background-position: center;
}

.hero-text,
.hero-video {
  position: relative;
  z-index: 2;
}


.hero-text {
  flex: 1;
  padding-left: 20%;
  color: #fff;
}

.hero-video {
  flex: 1;
}

.hero-video video {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 12%;
}

/* GSAP HOME HERO SECTION*/

.hero {
  padding: 0;
  color: rgb(0, 0, 0);
}

.hero h2 {
  font-family: var(--font-headings);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 80px);
  margin: 0 0 2em 0;
}

.hero p {
  text-wrap: balance;
  /* margin-inline: auto; */
  max-width: 45ch;
  text-align: center;
  font-size: clamp(20px, 1.8vw, 30px);
}


.hero a.button {
  /* color: #333; */
  display: inline-block;
  font-size: .8em;
  margin-top: .5em;
  ;
  color: white;
  text-decoration: none;
}

.hero .section1,
.hero .section2 {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.hero .zindex-container {
  position: relative;
  /* width: 100vw; */
  height: 100vh;
  border: 1px solid purple;
  z-index: 100;
  /* background: #000; */
}

.hero .panel {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  z-index: 100;
}

.hero .section1 {
  /* background-color: #c19b66; */
  background-color: rgba(183, 98, 0, 0.5);
  z-index: 3;
}

.hero .section2 {
  background-color: #c19b66;
  z-index: 2;
}

.hero .section2 .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* MAIN CONTENT AREA */

.site-main {
  position: relative;
  /* z-index: 2000; */
  /* background-color: yellow; */
  /* padding-top: 200vh; */
  padding-bottom: 200px;
}

/* ALL SECTIONS */
section {
  padding-block: 2em;
}

.section4 {
  margin-top: -30vh
    /* border: 10px solid green; */
}




/* PROJECT GRID */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  --project-gap: 5vw;
  gap: var(--project-gap);
  padding: 7vw;
}

.project-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.main-project-grid {
  display: grid;
  grid-template-columns: 2fr .5fr 1fr;
  grid-template-rows: 1fr 1fr;
  --project-gap: 5vw;
  gap: var(--project-gap);
  padding: 7vw;

  .project-item {
    &:nth-child(1) {
      grid-column: 1 / 2;
      grid-row: 1 / 3;
    }

    &:nth-child(2) {
      grid-column: 3 / 4;
      grid-row: 2 / 3;
    }
  }
}

.submain-project-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  --project-gap: 5vw;
  gap: var(--project-gap);
  padding: 7vw;
}



/* SITE MAIN */
h2 span {
  font-size: 2rem;
  font-style: italic;
}

span.moveright {
  margin-left: 12px;
}

/* text-animation */
b {
  float: left;
  overflow: hidden;
  position: relative;
  height: 40px;
}

.hero p {
  height: 40px;
  float: left;
  margin-right: 0.3em;
}

.hero span {
  display: inline-block;
  color: #e74c3c;
  position: relative;
  white-space: nowrap;
  top: 0;
  left: 0;
  animation: move 5s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

@keyframes move {
  0% {
    top: 0px;
  }

  20% {
    top: -50px;
  }

  40% {
    top: -100px;
  }

  60% {
    top: -150px;
  }

  80% {
    top: -200px;
  }
}

/* TEXT ANIMATION-HERO */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* paper */