/* ========================================
   PC・スマホ共通スタイル
======================================== */

* {
  box-sizing: border-box;
}

p {
  font-size: 15px;
}

body {
  max-width: 1080px;
  margin: 0 auto;
  font-family: "Source Sans Pro", "Hiragino Kaku Gothic ProN",
    Meiryo, Arial, sans-serif;
}


/* ========================================
   ヘッダー
======================================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* PC用ナビゲーション */

#nav-pc {
  font-size: 14px;
}

#nav-pc ul {
  display: flex;
  padding-left: 0;
}

#nav-pc li {
  list-style: none;
}

#nav-pc a {
  text-decoration: none;
  margin-left: 20px;
  color: #0d0d0d;
}

#nav-pc a:hover {
  text-decoration: underline;
}


/* PCではスマホ用を非表示 */

#menu-sp {
  display: none;
}

#nav-sp {
  display: none;
}


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

#main-visual {
  position: relative;
  height: 400px;
}

#main-message {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #2710d5;
  color: #ffffff;
  border-radius: 0 0 476px 0;
  max-width: 620px;
  height: 100%;
  width: 100%;
  z-index: 11;
}

#main-message > h1 {
  font-size: 60px;
  margin: 100px 0 0 50px;
}

#main-message > p {
  font-size: 28px;
  margin: 0 0 0 50px;
}

#main-visual > img {
  max-width: 620px;
  border-radius: 476px 0 0 0;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}


/* ========================================
   見出し
======================================== */

h2 {
  margin: 40px 0 0 0;
}

h2::after {
  content: url("images/line.png");
  margin-left: 10px;
}

h3 {
  font-size: 27px;
}


/* ========================================
   MISSION
======================================== */

#mission {
  margin: 80px auto;
}

#mission-flex {
  display: flex;
}

#mission-flex > div {
  width: 50%;
  margin: 20px;
}

#mission-photo {
  width: 100%;
}

#s2dgs {
  margin-top: 50px;
  width: 100%;
}


/* ========================================
   PRODUCT
   トップページ
======================================== */

#product {
  background-color: #fafafa;
  margin: 80px 0;
  padding: 10px 40px 0;
}

#product .product-flex {
  margin-top: 40px;
  display: flex;
}

#product-left {
  width: 50%;
  margin-right: 20px;
}

#product-right {
  width: 50%;
  margin-left: 20px;
  margin-top: 80px;
}

#product-left > div {
  position: relative;
  height: 480px;
  margin-right: 20px;
}

#product-right > div {
  position: relative;
  height: 480px;
  margin-left: 20px;
}

.product-photo {
  width: 100%;
}

.product-explain {
  background-color: #ffffff;
  position: absolute;
  left: 0;
  bottom: 50px;
  margin: 0 40px;
  padding: 20px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
}

.product-explain > span {
  color: #2710d5;
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}

.product-explain > h3 {
  margin: 5px 0;
}

.product-explain > p {
  font-size: 14px;
  margin: 0;
}

#product-more {
  text-align: center;
}

#product-more a {
  position: relative;
  bottom: -42px;
}


/* ========================================
   ABOUT US
======================================== */

#aboutus {
  margin: 80px auto;
}

#aboutus > div {
  display: flex;
}

.culture-img {
  width: 50%;
  align-self: flex-start;
}

.culture-img2 {
  margin-top: 50px;
  width: 100%;
}

.culture-table {
  margin-right: 50px;
}

.culture-num {
  font-size: 80px;
  color: #2710d5;
  padding: 0 20px 0 0;
}

.culture-table th {
  text-align: left;
  font-size: 28px;
  font-weight: bold;
}

.culture-en {
  color: #2710d5;
  font-size: 24px;
}

.culture-description {
  margin: 0;
}


/* ========================================
   VISION
======================================== */

#vision {
  margin: 80px auto;
}

#vision > div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.vision-box {
  width: 300px;
  height: 300px;
  margin-bottom: 30px;
  position: relative;
}

.vision-box > img {
  width: 100%;
  position: relative;
  z-index: 30;
}

.vision-box > div {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 31;
  margin-right: 20px;
}

.vision-box > div > h4 {
  color: #2710d5;
  font-size: 19px;
  margin: 80px 0 0 0;
}

.vision-box > div > h4::first-letter {
  font-size: 40px;
}

.vision-box > div > h5 {
  font-size: 20px;
  margin: 0;
}

.vision-box > div > p {
  margin: 10px 0 0 0;
}


/* ========================================
   COMPANY
======================================== */

#company {
  margin: 80px auto;
}

#company-table {
  width: 100%;
}

.tableheader {
  text-align: left;
  padding: 20px;
  border-bottom: 1px solid #2710d5;
  width: 100px;
}

.tableheader-first {
  border-top: 1px solid #2710d5;
}

.cell {
  padding: 30px;
  border-bottom: 1px solid #ececec;
}

.cell-first {
  border-top: 1px solid #ececec;
}

#company > iframe {
  width: 100%;
  height: 368px;
  margin-top: 40px;
}


/* ========================================
   CONTACT
======================================== */

#contact {
  margin: 80px auto;
}

#contact > form > div {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

.contact-heading {
  width: 240px;
  align-self: center;
}

.contact-label {
  font-weight: bold;
}

.contact-span {
  color: #ce2222;
  margin: 0 0 0 20px;
  font-weight: bold;
}

.contact-textbox {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #707070;
  background-color: #fafafa;
  width: 400px;
  height: 56px;
}

.contact-textarea {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #707070;
  background-color: #fafafa;
  width: 400px;
  height: 200px;
}

#contact dt {
  font-weight: bold;
}

#contact dd {
  margin: 0 0 16px 0;
}

#contact dd p {
  margin: 0;
}

#contact dd ul {
  padding-left: 0;
}

#contact dd li {
  margin-bottom: 0;
  list-style: none;
}


/* ========================================
   フッター
======================================== */

footer {
  background-color: #0d0d0d;
  text-align: center;
  padding: 80px 80px 30px;
}

#footer-logo {
  margin-bottom: 30px;
}

#footer-link {
  margin-bottom: 50px;
}

#footer-link > a {
  text-decoration: none;
  margin: 10px;
  color: #ffffff;
}

#footer-link > a:hover {
  text-decoration: underline;
}

#sns-footer {
  display: flex;
  justify-content: space-between;
}

#sns-footer a {
  margin-right: 30px;
}

#copyright {
  color: #ffffff;
  margin: 0;
}


/* ==================================================
   mission.html用スタイル
================================================== */


/* ミッションのメインビジュアル */

.mission-main-inner {
  background-image: url("images/mission/mission-main.png");
  background-repeat: no-repeat;
  background-position-y: center;
}

#mission-title {
  background-color: #2710d5;
  width: 368px;
  color: #ffffff;
  height: 496px;
  border-radius: 0 248px 248px 0;
  position: relative;
}

#mission-title h1 {
  position: absolute;
  top: 0;
  left: 100px;
  font-size: 80px;
  line-height: 1;
}

#mission-title h1 span {
  font-size: 26px;
}

#mission-title > p {
  position: absolute;
  top: 350px;
  left: 100px;
  font-size: 16px;
}


/* ミッションページ S2DGs */

#mission-s2dgs {
  padding: 20px;
}

.mission-h2 {
  color: #2710d5;
  font-size: 40px;
}

.mission-h2::after {
  content: none;
}


/* ミッションページ 5つのゴール */

#mission-five-goals {
  padding: 20px;
  display: flex;
}

#mission-five-goals .five-goals-image {
  width: 30%;
  padding: 20px;
}

#mission-five-goals .five-goals-image img {
  width: 100%;
}

#mission-five-goals .five-goals-read {
  width: 70%;
  padding: 20px;
}

#mission-five-goals .five-goals-read > div {
  margin-bottom: 40px;
}

.fivegoals-image-right {
  float: right;
  margin: 20px;
}

.fivegoals-image-left {
  float: left;
  margin: 20px;
}

.fivegoals-number {
  color: #2710d5;
  font-size: 48px;
  font-weight: bold;
  margin: 0;
}

.fivegoals-h3 {
  font-size: 28px;
  margin: 0;
}

.fivegoals-p {
  margin: 0;
}


/* ==================================================
   product.html用スタイル
   20章 PC版
================================================== */


/* プロダクトページ メインビジュアル */

.product-main-inner {
  background-image: url("images/product/product-main.png");
  background-repeat: no-repeat;
  background-position-y: center;
}

#product-title {
  background-color: #2710d5;
  width: 368px;
  color: #ffffff;
  height: 496px;
  border-radius: 0 248px 248px 0;
  position: relative;
}

#product-title h1 {
  position: absolute;
  top: 0;
  left: 100px;
  font-size: 80px;
  line-height: 1;
}

#product-title h1 span {
  font-size: 26px;
}

#product-title > p {
  position: absolute;
  top: 350px;
  left: 100px;
  font-size: 16px;
}


/* プロダクトページ セクション */

.product-section {
  display: flex;
  padding: 20px 20px 0;
}

.product-section .product-section-img {
  width: 450px;
}


/* 左が画像のセクション */

.product-section-left .product-section-img img {
  width: 100%;
  padding: 0 40px 30px 0;
  border-radius: 0 432px 0 0;
}

.product-section-left .product-read {
  width: 50%;
  flex-grow: 1;
}

.product-section-left .product-read p {
  margin-bottom: 0;
}


/* 右が画像のセクション */

.product-section-right {
  justify-content: space-between;
}

.product-section-right .product-section-img img {
  width: 100%;
  padding: 0 0 30px 40px;
  border-radius: 432px 0 0 0;
}

.product-section-right .product-read {
  width: 500px;
}

.product-h2 {
  color: #2710d5;
  font-size: 24px;
  margin: 0;
}

.product-h3 {
  font-size: 28px;
  margin: 0;
}


/* ==================================================
   スマートフォン用
================================================== */

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

  body {
    width: 100%;
    margin: 0;
  }


  /* ----------------------------------------
     ヘッダー
  ---------------------------------------- */

  header {
    width: 100%;
    height: 60px;
    align-items: center;
  }

  #logo {
    margin-left: 10px;
  }

  #logo img {
    display: block;
    max-width: 180px;
    height: auto;
  }

  #nav-pc {
    display: none;
  }


  /* ハンバーガーメニュー */

  #menu-sp {
    display: block;
    background-color: transparent;
    padding: 0;
    border: none;
    margin-left: auto;
  }

  #menu-sp img {
    display: block;
  }


  /* ----------------------------------------
     スマホナビゲーション
  ---------------------------------------- */

  #nav-sp {
    background-color: #2710d5;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: none;
    z-index: 100;
  }

  #close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
  }

  #nav-sp nav ul {
    padding-left: 0;
  }

  #nav-sp nav li {
    list-style: none;
  }

  #logo-sp {
    margin: 80px 0 30px 20px;
  }

  #nav-sp nav a {
    display: block;
    color: #ffffff;
  }

  #nav-sp nav a:hover {
    text-decoration: underline;
  }

  #nav-sp .menu {
    text-decoration: none;
    margin: 0 20px;
    height: 44px;
    font-size: 16px;
    background-image: url("images/arrow.png");
    background-repeat: no-repeat;
    background-position: right top;
  }

  #sns {
    position: absolute;
    bottom: 20px;
    left: 20px;
  }

  #sns > a {
    margin-right: 30px;
  }


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

  #main-visual {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
  }

  #main-visual > img {
    position: absolute;
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 235px;
    object-fit: cover;
    object-position: center center;
    border-radius: 0;
    z-index: 1;
  }

  #main-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 270px;
    background-color: #2710d5;
    color: #ffffff;
    border-radius: 0 0 100% 0;
    z-index: 2;
  }

  #main-message > h1 {
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
    margin: 85px 0 0 0;
  }

  #main-message > p {
    font-size: 14px;
    text-align: center;
    margin: 8px 0 0 0;
  }


  /* ----------------------------------------
     見出し
  ---------------------------------------- */

  h2 {
    font-size: 22px;
    margin: 20px 0;
  }

  h3 {
    font-size: 20px;
  }


  /* ----------------------------------------
     MISSION
     トップページ
  ---------------------------------------- */

  #mission {
    margin: 20px 20px 40px;
  }

  #mission > h2 {
    margin-top: 0;
  }

  #mission-flex {
    display: block;
  }

  #mission-flex > div {
    width: 100%;
    margin: 0 0 40px 0;
  }

  #mission-photo {
    display: block;
    width: 100%;
  }

  #s2dgs {
    display: block;
    width: 100%;
    margin-top: 30px;
  }

  #mission p {
    line-height: 1.7;
  }


  /* ----------------------------------------
     PRODUCT
     トップページ
  ---------------------------------------- */

  #product {
    margin: 40px 0;
    padding: 20px;
  }

  #product .product-flex {
    display: block;
    margin-top: 20px;
  }

  #product-left,
  #product-right {
    width: 100%;
    margin: 0;
  }

  #product-left > div,
  #product-right > div {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0 0 40px 0;
  }

  .product-photo {
    display: block;
    width: 100%;
  }

  .product-explain {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -20px 20px 0;
    padding: 20px;
  }

  #product-more a {
    bottom: 0;
  }


  /* ----------------------------------------
     ABOUT US
  ---------------------------------------- */

  #aboutus {
    margin: 40px 20px;
  }

  #aboutus > div {
    display: block;
  }

  .culture-table {
    width: 100%;
    margin-right: 0;
  }

  .culture-num {
    font-size: 50px;
    padding-right: 10px;
  }

  .culture-table th {
    font-size: 20px;
  }

  .culture-en {
    font-size: 18px;
  }

  .culture-img {
    display: block;
    width: 100%;
    margin-top: 30px;
  }

  .culture-img2 {
    display: block;
    width: 100%;
    margin-top: 30px;
  }


  /* ----------------------------------------
     VISION
  ---------------------------------------- */

  #vision {
    margin: 40px 20px;
  }

  #vision > div {
    display: block;
  }

  .vision-box {
    width: 100%;
    height: 300px;
    margin-bottom: 30px;
  }

  .vision-box > img {
    width: 100%;
  }


  /* ----------------------------------------
     COMPANY
  ---------------------------------------- */

  #company {
    margin: 40px 20px;
  }

  #company-table {
    width: 100%;
  }

  .tableheader {
    width: 90px;
    padding: 10px;
  }

  .cell {
    padding: 10px;
  }

  #company > iframe {
    width: 100%;
    height: 300px;
    margin-top: 30px;
  }


  /* ----------------------------------------
     CONTACT
  ---------------------------------------- */

  #contact {
    margin: 40px 20px;
  }

  #contact > form > div {
    display: block;
    padding-bottom: 25px;
  }

  .contact-heading {
    width: 100%;
    margin-bottom: 10px;
  }

  .contact-textbox,
  .contact-textarea {
    width: 100%;
  }


  /* ==================================================
     PRODUCTページ
     21章 スマートフォン版
  ================================================== */

  #product-main {
    height: 256px;
    margin-top: 4%;
    position: relative;
  }

  .product-main-inner {
    height: 80%;
    background-size: cover;
  }

  #product-title {
    width: 136px;
    height: 256px;
    position: absolute;
    top: -10%;
  }

  #product-title h1 {
    left: 20px;
    font-size: 40px;
  }

  #product-title h1 span {
    font-size: 18px;
  }

  #product-title > p {
    top: 180px;
    left: 20px;
    font-size: 13px;
  }


  /* PRODUCTページ セクション */

  .product-section {
    flex-direction: column;
  }

  .product-section .product-section-img {
    width: 100%;
  }

  .product-section .product-section-img img {
    width: 100%;
    padding: 0;
  }


  /* 左が画像のセクション */

  .product-section-left .product-section-img img {
    border-radius: 0 300px 0 0;
  }

  .product-section-left .product-read {
    width: 100%;
    flex-grow: 1;
  }


  /* 右が画像のセクション */

  .product-section-right .product-section-img {
    order: 1;
  }

  .product-section-right .product-section-img img {
    border-radius: 300px 0 0 0;
  }

  .product-section-right .product-read {
    order: 2;
    width: 100%;
  }


  /* ----------------------------------------
     フッター
  ---------------------------------------- */

  footer {
    padding: 40px 20px 20px;
  }

  #footer-link {
    margin-bottom: 30px;
  }

  #footer-link > a {
    display: block;
    margin: 15px 0;
  }

  #sns-footer {
    display: block;
  }

  #sns-footer a {
    margin: 0 15px;
  }

  #copyright {
    margin-top: 30px;
  }

}