body {
  color: #000000;
  margin: 0;
  font-size: 14px;
}


h1,
h2 {
  font-family: 'Josefin Sans', 'Noto Sans JP', serif;
  font-weight: 400;
}


header {
  max-width: 960px;
}

.header-nav {
  width: 100%;
  position: fixed;
  z-index: 10;
}

.header-ul {
  display: flex;
  justify-content: flex-end;
  padding-top: 25px;
}

.header-ul a {
  text-decoration: none;
  color: #000000;
  display: inline-block;
  margin-right: 33px;
  position: relative;
}

.header-ul a li::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 1px;
  bottom: 3px;
  background: #000000;
  visibility: hidden;
}

.header-ul a li:hover::after {
  visibility: visible;
}

.header-ul a li {
  list-style: none;
  font-size: 14px;
}

#fixed-header {
  position: fixed;
  top: -70px;
  width: 100%;
  height: 70px;
  line-height: 70px;
  font-size: 2em;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: solid 1px gainsboro;
  box-sizing: border-box;
  transition: .5s;
  /* アニメーションタイミング */
  z-index: 9;
}

#fixed-header.is-show {
  top: 0;
}

.sp-header {
  display: none;
}

.header-nav-sp {
  display: none;
}

.burger {
  display: none;
}

.is-active {
  display: none;
}




/* メイン */


.main-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.img-container {
  height: 568px;
}

.img-container img {
  width: 1280px;
  height: 568px;
  position: relative;
  display: block;
  left: 50%;
  transform: translate(-50%, 0);
}

.main-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}

.main-logo h1 {
  font-family: 'Pacifico', cursive;
  font-size: 40px;
  color: white;
}

.main-logo h2 {
  color: white;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 20px;
}

/* VISION */
#section-vision {
  text-align: center;
  padding: 70px 0;
}

#section-vision p {
  width: 60%;
  text-align: left;
  margin: 0 auto;
  display: inline-block;
  font-size: 14px;
  font-weight: 200;
  line-height: 30px;
}

.vision-contents {
  font-size: 22px;
  font-weight: normal;
  padding-bottom: 30px;
  font-weight: bold;
}

/* MESSAGE */
.message-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  background-color: #f6f6f6;
}

.message {
  padding: 50px 20px;
}

.message-img {
  height: 100%;
}

.message-img img {
  width: 100%;
  height: 100%;
}


.message h2 {
  box-sizing: border-box;
  text-align: center;
  padding-bottom: 30px;
}

.message p {
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 1px;
  line-height: 2;
  width: 100%;
}

/* SERVICE */

.service-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 55px 30px;
  justify-content: center;
  gap: 30px;
}

.service-item {
  text-align: center;
}

.service-item h2 {
  margin-bottom: 20px;
}

.service-item p {
  text-align: left;
  letter-spacing: 1.2px;
  line-height: 2;
  font-size: 12px;
  max-width: 288px;
}

.service-item img {
  max-width: 288px;
  width: 100%;
  margin-bottom: 10px;
}

/* STORY */
#story-section {
  width: 100%;
}

.container-story {
  height: auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  background: url(img/bgSec04.jpg) no-repeat 100% 100% fixed;
  background-size: cover;
  padding: 100px 165px;
}

.story-item {
  color: white;
  width: 450px;
  text-align: center;
}

.story-item h2 {
  margin-bottom: 20px;
}

.story-item p {
  text-align: left;
  display: inline-block;
  letter-spacing: 1.2px;
  line-height: 2;
  font-size: 13px;
}


/* PROFILE */
.profile-container {
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  padding: 100px 50px;
  max-width: 1024px;
  margin: 0 auto;
}

table {
  width: 50%;
}


.name-td {
  text-align: right;
  padding-right: 20px;
}

.td-bottom {
  padding-bottom: 25px;
}

.map-right {
  position: relative;
  width: 50%;
}

.map {
  height: 0;
  padding-top: 70%;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position:absolute;
  left:0;
  top: 0;
}

.td-a {
  text-decoration: none;
  color: blue;
}


/* フッター */
footer p {
  padding-bottom: 75px;
  font-weight: 500;
  text-align: center;
}

footer a {
  text-decoration: none;
  color: blue;
}

/* sp */
@media screen and (max-width:1199px) {
  .container-story {
    padding: 50px 100px;
  }
}

@media screen and (max-width:799px) {
  .header-nav {
    display: none;
  }

  .sp-header {
    display: block;
  }

  .header-nav-sp {
    position: absolute;
    z-index: 11;
    width: 100%;
    display: none;
    margin-top: 70px;
    border-bottom: 1px solid #ccc;
    background-color: white;
  }

  .header-nav-sp.is-active {
    pointer-events: all;
  }

  .header-ul-sp a {
    text-decoration: none;
    color: #000000;
  }

  .header-ul-sp a li {
    width: 100%;
    font-weight: 400;
    padding: 20px 25px;
    position: relative;
    border-bottom: 1px solid #ccc;
  }

  .material-symbols-outlined {
    position: absolute;
    left: 0;
    bottom: 20px;
  }

  .burger {
    position: absolute;
    top: 12px;
    right: 15px;
    display: grid;
    width: 44px;
    aspect-ratio: 1;
    border: none;
    background-color: transparent;
    place-items: center;
    --opacity: 1;
    --rotate: 0;
    --translate: .5rem;
    z-index: 12;
  }

  .burger.is-active {
    --opacity: 0;
    --rotate: 135deg;
    --translate: 0;
  }

  .burger-span {
    display: block;
    width: 60%;
    height: 2px;
    background-color: white;
    grid-area: -2 / -2 / -2 / -1;
    transition: ease-in-out 0.3s;
  }

  .burger-span:nth-child(1) {
    opacity: var(--opacity);
  }

  .burger-span:nth-child(2) {
    translate: 0 calc(var(--translate) * -1);
    rotate: var(--rotate);
  }

  .burger-span:nth-child(3) {
    translate: 0 var(--translate);
    rotate: calc(var(--rotate) * -1);
  }

  #fixed-header {
    display: none;
  }

  .main-logo h1 {
    font-size: 31px;
  }

  .main-logo h2 {
    font-size: 16px;
  }

  .message-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .order1 {
    order: 1;
  }

  .order2 {
    order: 2;
  }

  .order3 {
    order: 3;
  }

  .order4 {
    order: 4;
  }

  .service-container {
    flex-wrap: wrap;
  }
}

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

  .container-story {
    flex-wrap: wrap;
    padding: 100px 20px;
  }


}

@media screen and (max-width:640px) {
  .profile-container {
    flex-wrap: wrap;
    gap: 50px;
    padding: 70px 30px;
  }

  .name-td {
    padding-right: 50px;
  }

  .map-right{
    width: 100%;
  }
  
}