:root {
  --primary-color: #603813;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  text-align: justify;

}

img {
  width: 100%;
  display: block;
}

p {
  margin: 0;
  padding: 0;
  font-size: 1.67vw;
  line-height: 1.5;
}

@media screen and (max-width: 400px) {
  p {
    font-size: 10px;
  }
}


@media screen and (min-width: 1200px) {
  p {
    font-size: 20px;
  }
}

iframe#contact-form {
  width: 100%;
  height: 2000px;
}

h2 {
  color: var(--primary-color);
  font-size: 25px;
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.5;
}

@media screen and (min-width: 1200px) {
  h2 {
    font-size: 40px;
  }
}

h3 {
  margin: 5px 0;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
}

@media screen and (min-width: 1200px) {
  h3 {
    font-size: 30px;
  }
}

article {
  margin: 0 auto;
}

.text-justify {
  text-align: justify;
}

.white {
  color: #fff;
}

.hide {
  display: none !important;
}

span.note {
  font-size: 1.5vw;
}

@media screen and (min-width: 1200px) {
  span.note {
    font-size: 18px;
  }
}

header .header-top {
  padding: 5px;
  font-size: 10px;
  background-color: var(--primary-color);
  color: white;
}


@media screen and (min-width: 1200px) {
  header .header-top {
    padding-right: 50px;
    font-size: 15px;
  }
}

#header-title {
  font-size: 12px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.first-view {
  position: relative;
}

div.logo {
  margin: 50px;
}

img.logo {
  max-width: 500px;
  width: 100%;
}

div.catchcopy {
  margin: 50px;
}

img.catchcopy {
  max-width: 463px;
  width: 100%;
}

div.bg-star {
  position: absolute;
  top: -40px;
  right: -15vw;
  z-index: -1;
}

img.bg-star {
  max-width: 800px;
  width: 70vw;
}

.album {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0;
}

.album img {
  width: 100%;
  height: auto;
  display: block;
}

.album img.image-half {
  max-width: 600px;
  max-height: 482px;
}

.album img.image-octa {
  max-width: 300px;
  max-height: 241px;
}

.album div {
  overflow: hidden;
}

.album .pos1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.album .pos2 {
  grid-column: 3;
  grid-row: 1;
}

.album .pos3 {
  grid-column: 4;
  grid-row: 1;
}

.album .pos4 {
  grid-column: 3;
  grid-row: 2;
}

.album .pos5 {
  grid-column: 4;
  grid-row: 2;
}

.album img,
.album div {
  margin: 0;
  padding: 0;
}

article.about-apaman {
  position: relative;
}

article.full-cover {
  position: relative;
}

article.full-cover section {
  width: 50%;
  top: 0;
  bottom: 0;
  position: absolute;
  max-height: 100%;
  overflow: hidden;
}

div.bg-image {
  opacity: .75;
}

article.full-cover section.left {
  left: 4.25%;
}

article.full-cover section.right {
  right: 4.25%;
}

article.point,
article.company,
article.inquiry {
  text-align: center;
}

article.customer-voice {
  background-color: #fff3e6;
}

article.customer-voice h2 {
  text-align: center;
  margin-top: 0;
  padding-top: 30px;
}

table.company {
  margin: 0 auto;
  color: var(--primary-color);
  font-size: 15px;
  border-collapse: collapse;
}

@media screen and (min-width: 1200px) {
  table.company {
    font-size: 25px;
  }
}


table.company th {
  vertical-align: top;
  text-align: right;
  border: none;
  border-right: 1px solid;
  border-right-color: var(--primary-color);
  font-weight: 400;
}

table.company td {
  text-align: left;
}

table.company th,
table.company td {
  padding: 10px 20px;
}

.footer-copyright {
  padding-top: 18px;
  padding-bottom: 18px;
  text-align: center;
  font-size: 12px;
  background-color: var(--primary-color);
  color: white;
}

@media screen and (min-width: 1200px) {
  .footer-copyright {
    font-size: 15px;

  }
}

.map {
  margin: 55px auto;
  max-width: 1100px;
  max-height: 490px;
}

.map iframe {
  max-width: 1100px;
  height: 400px;
}

.danger {
  color: red;
}

.card {
  max-width: 1100px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0;
  background-color: #f3ebe2;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.card .card-image {
  align-self: center;
}

.card .description {
  height: 100%;
  grid-column: span 2;
  padding: 10px 4.2vw;
  overflow: hidden;
}

.voice-card-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  justify-items: center;
}

@media screen and (max-width: 400px) {
  .voice-card-area {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.voice-card {
  margin: 30px;
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

h4.customer-name,
h4.staff-name {
  margin: 0;
  font-size: 18px;
}

.customer::before,
.staff::before {
  content: ' ';
  margin-right: 30px;
  width: 60px;
  height: 120px;
  display: block;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 1;
}

@media screen and (max-width: 400px) {
  .customer::before,
  .staff::before {
    width: 30px;
    height: 60px;
  }

}

.customer::before {
  background-image: url(img/customer.png);
}

.staff::before {
  background-image: url(img/staff.png);

}

.customer,
.staff {
  display: flex;
}

.customer-body,
.staff-body {
  flex-shrink: 10;
}

.voice-card {
  padding: 30px;
  max-width: 400px;
}

@media screen and (max-width: 400px) {
  .voice-card {
    margin: 15px;
    padding: 15px;
    max-width: 100vw;
    font-size: 4vw;
    line-height: 1.5;
  }
}

.continue-button {
  padding: 15px;
  text-align: right;
}

@media screen and (max-width: 400px) {
  .w80p {
    width: 80% !important;
  }
}

h4.intitle {
  color: var(--primary-color);
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: 400;
}


/** MDL **/

@media screen and (max-width: 1024px) {
  .mdl-layout__header {
    display: block;
  }
}

.mdl-layout__header-row > * {
  flex-shrink: initial;
}
