@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Zen+Kaku+Gothic+New&display=swap');

:root {
  --c-green: #03EBB4;
  --c-yellow: #FFFF39;
  --c-yellow-dark: #919101;
  --c-yellow-dark2: #eaea0c;
  --c-green-dark: #00b58a;
  --c-green-right: #43ffd3;

  --c-dark-blue: #152a45;
  --c-dark-blue2: rgba(21,42,69,0.8);
  --c-text: #ccc;

  --w-content: 1080px;

  --bp-sm: 768px;
}

body {
  font-family: "Helvetica Neue", Helvetica, "Noto Sans JP", sans-serif;
  color: var(--c-text);
  line-height: 180%;
  font-size: 15px;
  margin: 0px;

  @media screen and (min-width: 800px){
    font-size: 16px;
  }
}

.content {
  margin: 0 auto;
  position: relative;

  @media screen and (min-width: 800px){
    width: var(--w-content);
  }
}

.lr {
  @media screen and (min-width: 800px){
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;

  &.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  background-color: var(--c-dark-blue);
  color: white;
}

header .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: url("../image/sungoliath/logo.png");
  background-size: contain;
  background-position: 20px top;
  background-repeat: no-repeat;
  height: 70px;

  @media screen and (min-width: 800px){
    flex-direction: row;
    background-size: auto;
    height: 120px;
  }

  .show {
    display: flex;
  }
}

header .menu {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 20px;

  button {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 0;
    display: none;
  }

  @media screen and (min-width: 800px){
    display: none;
  }
}

header .tabs {
  display: none;
  flex-direction: column;
  position: absolute;
  width: 200px;
  right: 0;
  margin-top: 5px;
  text-align: right;
  background-color: var(--c-dark-blue);
  box-shadow: 1px 1px 5px #000;
  padding: 20px;
  z-index: 100;

  @media screen and (min-width: 800px){
    display: flex;
    gap: 20px;
    margin-bottom: 0px;
    position: static;
    flex-direction: row;
    width: auto;
    margin-top: 0px;
    text-align: left;
    box-shadow: none;
    padding: 0;
  }

  .tab {
    text-decoration: none;
    position: relative; 
    display: inline-block;
    transition: color 0.3s ease-in-out;
    color: #eee;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 1px 1px 5px #000;
    margin: 5px 0px;

    @media screen and (min-width: 800px){
      font-size: 16px;
      margin: 0;
    }

    &:hover {
      color: var(--c-green);
    }

    &::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      
      width: 0;
      height: 1px; 
      background-color: var(--c-green); 
      transition: width 0.3s ease-in-out; 
      
      left: 0;
      right: auto;
    }
    &:hover::after {
      width: 100%;
    }
  }
}

footer {
  background-color: var(--c-dark-blue);
  color: #fff;
  font-size: 12px;

  .inner {
    padding: 40px 20px 20px;
    background: #152a45;

    @media screen and (min-width: 800px){
      padding: 40px 0px;
    }
  }

  .top {
    background-color: transparent;
    
    @media screen and (min-width: 800px){
      display: flex;
      justify-content: space-between;
      align-items: center;

      margin-bottom: 40px;
    }
  }

  .logo {
    margin-bottom: 30px;
    text-align: center;

    @media screen and (min-width: 800px){
      margin-bottom: 0;
    }
  }

  .rights {
    text-align: center;

    @media screen and (min-width: 800px){
      text-align: right;
    }
  }

  .disclaimer {
    font-size: 11px;
    margin: 0px;

    @media screen and (min-width: 800px){
      font-size: 12px;
    }
  }

  .name {
    font-size: 11px;
    text-align: center;
    margin-bottom: 20px;

    span {
      display: block;
    }

    @media screen and (min-width: 800px){
      text-align: right;

      span {
        display: inline;
      }

      span:nth-child(2):after {
        content: "";
        display: block;
      }
    }
  }

  .message {
    margin: 20px 0 0;
    line-height: 1.5;
  }

  .copyright {
    margin: 0px;
    text-align: center;
    line-height: 1.3333;
    background: #061e3a;
    padding: 30px 20px 100px;

    @media screen and (min-width: 800px){
      padding: 30px 40px 55px 40px;
      justify-content: center;
    }
  }

  .extarnalLinks {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 30px 0 0;
    padding: 0;
    font-size: 12px;
    list-style: none;

    @media screen and (min-width: 800px){
      margin-top: 40px;
      justify-content: center;
    }

    > li + li {
      margin-left: 4px;
    }

    img {
      vertical-align: unset;
    }
  }
}

.center-title {
  text-align: center;
  margin: 50px 20px 50px 20px;
  color: var(--c-dark-blue);
  font-size: 24px;
  line-height: 36px;

  @media screen and (min-width: 800px){
    margin: 100px 0px 100px 0px;
    font-size: 32px;
    line-height: 44px;
  }
}

.infoTable {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
}

.video-background {
  position: relative;
  width: 100%;
  overflow: hidden;

  video, .splide {
    position: absolute;
    background-color: #22222a;
    top: 0;
    left: 0;
    
    width: 100%;
    height: calc(100vh - 70px);
    object-fit: cover; 
    
    z-index: -1;

    @media screen and (min-width: 800px){
      height: calc(100vh - 120px);
    }

    .splide__track {
      width: 100%;
      height: calc(100vh - 70px);

      @media screen and (min-width: 800px){
        height: calc(100vh - 120px);
      }
    }
  }
}

.index {
  section.s1 {

    .content {
      height: calc(100vh - 70px);
      justify-content: center;
      display: flex;
      align-items: center;

      @media screen and (min-width: 800px){
        padding-top: 100px;
        display: block;
      }
    }

    .right {
      background-color: var(--c-dark-blue2);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 20px;
      margin: 20px;
      height: fit-content;

      @media screen and (min-width: 800px){
        margin: 0px 0px 0px 640px;
        padding: 50px;
        height: auto;
      }

      .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        margin-bottom: 10px;
      }

      .box {
        border: 1px solid var(--c-yellow);
        padding: 1px solid transparent;

        p {
          color: #22222a;
          font-weight: bold;
          margin: 1px;
          text-align: center;
          background-image: linear-gradient(to bottom, var(--c-yellow), var(--c-yellow-dark));
          padding: 10px;
          line-height: 24px;
        }
      }

      p {
        margin-top: 20px;
        margin-bottom: 0px;
        color: #fff;
        font-size: 14px;

        @media screen and (min-width: 800px){
          font-size: 16px;
        }
      }
    }
  }
  section.s2 {
    background-image: url("../image/sungoliath/home/001.jpg");
    background-size: cover;
    margin-bottom: 50px;
    padding: 0px;

    .left {
      padding: 100px 30px;
      background-color: var(--c-dark-blue2);
      color: white;

      @media screen and (min-width: 800px){
        padding: 100px 50px;
        font-size: 16px;
      }
    }

    .infoTable {
      margin-top: 30px;
    }
  }

  section.s3 {
    margin-bottom: 50px;

    @media screen and (min-width: 800px){
      margin-bottom: 100px;
    }

    img {
      width: calc(100% - 40px);
      border: 1px solid #999;
      padding: 1px;
      margin: 0px 20px;

      @media screen and (min-width: 800px){
        margin: 0px;
        width: 100%;
      }
    }

    .lr {
      color: #22222a;

      @media screen and (min-width: 800px){
        margin-bottom: 50px;
      }

      .box {
        padding: 20px;
        text-align: left;

        h3 {
          color: var(--c-dark-blue);
          text-align: center; 
          margin-bottom: 50px;
          position: relative;

          &::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            
            width: 60%;
            height: 1px; 
            background-color: var(--c-green); 

            left: 20%;
          }
        }

        @media screen and (min-width: 800px){
          padding: 30px;
        }
      }
    }

    .lr.reverse {
      direction: rtl;
      .box {
        direction: ltr; 
        text-align: left;

        h3 {
          &::after {
            background-color: var(--c-yellow-dark2); 
          }
        }
      }
    }
  }

  section.s4 {
    background-color: #c8d2ea;
    background-image: linear-gradient(to bottom, #c8d2ea, #e4e9f7);
    color: #22222a;
    padding: 50px 20px;

    @media screen and (min-width: 800px){
      padding: 50px 0px;
    }

    h2 {
      text-align: center;
      margin-bottom: 50px;
      color: var(--c-dark-blue);
    }

    .right {
      margin-top: 50px;
      text-align: right;
    }
  }
}

.campaign {

  section.s1 {
    background-color: rgba(21,42,69, 0.4);
    background-image: url("../image/sungoliath/campaign/003.jpg");
    background-size: cover;
    background-blend-mode: multiply;
    padding: 60px 0px;

    @media screen and (min-width: 800px){
      padding: 200px 0px;
    }

    text-align: center;
    color: #FFF;
    font-weight: bold;;

    h1 {
      font-size: 36px;
      line-height: 60px;
      text-shadow: 0px 0px 8px #000;
      margin: 30px 0px 20px 0px;

      @media screen and (min-width: 800px){
        font-size: 90px;
        line-height: 100px;
        margin: 60px 0px;
      }
    }
    .sub {
      font-size: 16px;
      text-shadow: 0px 0px 4px #000;
      position: relative;
      margin: 0px 20px;

      &::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        
        width: 100%;
        height: 1px; 
        background-color: var(--c-green); 
      }

      @media screen and (min-width: 800px){
        font-size: 34px;
        margin: 0;

        &::after {
          width: 70%;
          bottom: -16px;
          left: 15%;
        }
      }
    }
    .box {
      border: 1px solid var(--c-green);
      padding: 1px solid;
      margin: 0px 20px;

      @media screen and (min-width: 800px){
        margin: 0px auto;
        width: fit-content;
      }

      p {
        color: #22222a;
        font-size: 14px;
        font-weight: bold;
        margin: 1px;
        text-align: center;
        background-image: linear-gradient(to bottom, var(--c-green), var(--c-green-dark));
        padding: 16px;
        line-height: 20px;

        @media screen and (min-width: 800px){
          font-size: 20px;
          line-height: 32px;
          padding: 16px 60px;
          width: fit-content;
        }
      }
    }
  }
  section.s2 {
    background-image: url("../image/sungoliath/campaign/002.jpg");
    background-color: rgba(21,42,69, 0.5);
    background-size: cover;
    background-blend-mode: multiply;
    padding: 20px;

    @media screen and (min-width: 800px){
      padding: 100px;
    }

    .whitebox {
      background-color: var(--c-dark-blue2);
      padding: 50px;
      margin-bottom: 50px;
      color: white;

      @media screen and (max-width: 800px) {
        margin-bottom: 100px;
      }

      .sub {
        margin-top: 30px;
        font-weight: bold;

        .infoTable {
          font-weight: normal;
          margin-top: 10px;
        }
      }
    }

    h3 {
      text-align: center;
      color: #fff;
      font-size: 24px;
      text-shadow: 0px 0px 4px #000;
      position: relative;
      margin-bottom: 50px;

      &::after {
        content: '';
        position: absolute;
        bottom: -16px;
        left: 0;
        
        width: 40%;
        height: 1px; 
        background-color: var(--c-green); 

        left: 30%;
      }
    }
  }
  section.s3 {
    background-image: url("../image/sungoliath/campaign/001.jpg");
    background-size: cover;
    margin-bottom: 50px;
    padding: 50px 20px;

    @media screen and (min-width: 800px){
      padding: 100px;
    }

    h3 {
      text-align: center;
      color: #fff;
      font-size: 24px;
      text-shadow: 0px 0px 4px #000;
      position: relative;
      margin-bottom: 50px;

      &::after {
        content: '';
        position: absolute;
        bottom: -16px;
        left: 0;
        
        width: 40%;
        height: 1px; 
        background-color: var(--c-green); 

        left: 30%;
      }
    }

    .steps {
      display:flex;
      flex-direction: column;
      gap: 30px;

      @media screen and (min-width: 800px){
        flex-direction: row;
      }

      .step {
        background-color: var(--c-dark-blue2);
        padding: 0px;
        color: white;

        @media screen and (min-width: 800px){
          width: 30%;
        }

        h5 {
          text-align: center;
          font-size: 20px;
          color: var(--c-green);
          background-color: rgba(0,0,0, 0.4);
          padding: 30px;
          margin: 0px;

          .number {
            font-size: 48px;
            margin-left: 2px;
          }
        }
        p {
          padding: 30px;
        }
      }
    }
  }

  section.s4 {
    margin: 100px 0px;

    h3 {
      text-align: center;
      color: var(--c-dark-blue);
      font-size: 24px;
      margin-bottom: 50px;
    }

    table {
      width: 100%;
      border-collapse: collapse;

      td, th {
        padding: 16px;
        color: #333;
        text-align: center;
      }

      .team, .place {
        * { 
          vertical-align: middle;
        }
        width: 300px;
      }

      .team {
        .logo {
          width: 50px;
        }
        span {
          font-weight: bold;
          line-height: 24px;
          display: block;
          margin: 4px 0px 0px 0px;
        }
      }

      .action {
        a {
          display: block;
          padding: 8px 30px;
          border: 0px;
          background-color: rgba(21,42,69,0.4);
          border-radius: 4px;
          box-shadow: 0px 0px 3px #999;
          color: #fff;
          font-size: 15px;
          text-decoration: none;
          cursor: default;
  
          &.active {
            background-color: var(--c-dark-blue);
            cursor: pointer;

            &:hover {
              background-color: var(--c-dark-blue2);
              box-shadow: 0px 0px 5px #999;
            }
          }
        }
        .date {
          margin-top: 8px;
          font-size: 14px;
          line-height: 24px;
          white-space: nowrap;
        }
      }

      thead {
        tr {
          background-color: #ddd;
        }
      }

      tr {
        background-color: #f2f2f2;
        border: 5px solid #fff;
      }

      @media screen and (max-width: 800px) {
  
        .team, .place {
          width: auto;
        }

        thead {
          display: none;
        }
        tr {
          display: block;
          margin: 0px 20px 15px 20px;
          border: none;
        }
        
        td {
          display: flex;
          flex-direction: column;
          border-left: none;
          border-right: none;
          text-align: center;
          padding: 8px;
          align-items: center;
          justify-content: center;

          &.date {
            padding-top: 20px;
          }
          &.action {
            padding-bottom: 20px;
          }
        }
      }
    }
  }
}

.oanda {
  section.s1 {
    background-size: cover;

    text-align: center;
    color: #FFF;
    height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;

    @media screen and (min-width: 800px) {
      height: calc(100vh - 120px);
    }

    .logo {
      width: 80%;
      filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.8));

      @media screen and (min-width: 800px) {
        width: 500px;
      }
    }

    h1 {
      text-align: center;
      color: #fff;
      font-size: 18px;
      text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8);
      margin: 20px;

      @media screen and (min-width: 800px) {
        font-size: 28px;
        margin: 0px;
      }
    }
  }
  section.s2 {
    background-size: cover;
    
    .content {
      display: flex;
      justify-content: flex-end;
    }
    .content.right {
      justify-content: flex-start;
    }

    .whitebox {
      color: #fff;
      background-color: var(--c-dark-blue2);
      padding: 30px;
      margin: 50px 20px;

      @media screen and (min-width: 800px) {
        width: 40%;
        padding: 50px;
        margin: 100px 0px;
      }

      p {
        margin-bottom: 30px;
      }

      a {
        display: block;
        padding: 8px 30px;
        text-align: center;
        border: 0px;
        background-color: var(--c-green);
        border-radius: 28px;
        box-shadow: 0px 0px 3px #000;
        color: #333;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 16px;
        text-decoration: none;

        &:hover {
          background-color: var(--c-green-right);
        }
      }
    }

    h3 {
      text-align: center;
      color: #fff;
      font-size: 24px;
      position: relative;
      margin-bottom: 50px;

      &::after {
        content: '';
        position: absolute;
        bottom: -14px;
        left: 0;
        
        width: 70%;
        height: 1px; 
        background-color: var(--c-green); 

        left: 15%;
      }
    }

    .row1 {
      background-image: url("../image/sungoliath/OANDA/002.jpg");
      background-color: rgba(21,42,69, 0.5);
      background-size: cover;
      background-blend-mode: multiply;
    }
    .row2 {
      background-image: url("../image/sungoliath/OANDA/001.jpg");
      background-size: cover;
      background-color: rgba(21,42,69, 0.5);
      background-size: cover;
      background-blend-mode: multiply;
    }
    .row3 {
      background-image: url("../image/sungoliath/OANDA/004.jpg");
      background-size: cover;
    }
    .row4 {
      background-image: url("../image/sungoliath/OANDA/003.jpg");
      background-size: cover;
    }
  }

  section.s3 {
    color: #333;
    margin: 50px 20px;

    @media screen and (min-width: 800px) {
      margin-bottom: 100px;
    }

    .infoTable {
      margin-top: 50px;
      border: 1px solid #ddd;
      border-bottom: 0px;
      gap: 0;

      span {
        padding: 8px 12px;
        border-bottom: 1px solid #ddd;
      }
      .label {
        background-color: #f0f0f0;
        border-right: 1px solid #ddd;
        font-size: 15px;

        @media screen and (min-width: 800px) {
          min-width: 200px;
        }
      }
    }
  }


  .whitebox {
    background-color: rgba(0,0,0,0.7);
    padding: 50px;
    margin-bottom: 100px;
  }
}