/****************************************
 
診断ナビ　共通スタイル
common.css
Aug-23-2021 kawanoM.

****************************************/

body {
  background-color: steelblue;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, 'ヒラギノ角ゴ ProN w3',
    'Hiragino Kaku Gothic ProN w3', 'メイリオ', Meiryo, sans-serif;
  -webkit-text-size-adjust: 100%;
  color: #333;
}
* {
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ここからcontainerのスタイル */
.container {
  position: relative;
  width: 100%;
  background-color: white;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 12px;
}
.container:first-of-type {
  padding-top: 10px;
  padding-bottom: 10px;
  padding: 0;
}
.container:nth-of-type(2) {
  height: 100%;
  min-height: 500px;
  padding: 14px 16px 30px;
}
.container:last-of-type {
  padding-top: 10px;
  padding-bottom: 10px;
  padding: 0;
}
/* ここまでcontainerのスタイル */

/* ここからヘッダーとフッターのスタイル */
h1 {
  margin: 0;
  padding: 8px 0;
  width: auto;
  text-align: center;
  color: white;
  line-height: 1;
  background-color: #1d436a;
  border: 1px solid #1d436a;
}

.sub-title {
  display: block;
  font-size: 16px;
  padding: 10px 0 2px;
}
.main-title {
  display: block;
  font-size: 24px;
  padding: 2px 0 5px;
}

/* ここから機種カルテのスタイル */
.karte {
  display: none;
  margin: 0 0 20px;
}

.inview {
  display: block;
}

.karte h4.category {
  margin: 0 0 0;
  padding: 0 0.5em 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.25;
  color: black;
}

.karte h3.model_number {
  word-wrap: break-word;
  margin: 0 0 0;
  padding: 0.25em 0.25em 0.25em;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
}

.karte ul {
  list-style: none;
  margin: 0 0;
  padding: 6px;
  background-color: gray;
  border-radius: 4px;
}

.karte li {
  margin: 0;
  padding: 0;
  border: 1px solid silver;
  border-radius: 0.5em;
  background-color: white;
  font-size: 16px;
  line-height: 1.25;
}

.karte li:hover {
  background-color: lightblue;
  cursor: pointer;
}

.karte h5.keyword {
  display: none;
}

.karte li a {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0.8em 0.5em;
  color: black;
  text-decoration: none;
}

.footer {
  font-size: 16px;
  font-weight: normal;
  margin: 0;
  padding: 40px 0;
  line-height: 1;
}
/* ここまでヘッダーとフッターのスタイル */

/* リリース日 */
.container:nth-of-type(2) {
  position: relative;
}
.release {
  display: block;
  position: absolute;
  bottom: 12px;
  opacity: 1;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 12px;
  color: deepskyblue;
}
.release .written,
.release .code {
  display: none;
}

/****************************************
original button for scroll back to top
****************************************/

.btntotop {
  position: fixed;
  bottom: 20px;
  right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #abc;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.btntotop::before {
  content: '';
  display: block;
  position: relative;
  top: 20px;
  left: 16px;
  width: 16px;
  height: 16px;
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  transform: rotate(45deg);
}

.btntotop.showFadein {
  animation-name: fadein;
  animation-duration: 1s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

.btntotop.hideFadeout {
  animation-name: fadeout;
  animation-duration: 1s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

@keyframes fadein {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  1% {
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
  }
}

@keyframes fadeout {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  99% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}
@media screen and (min-width: 480px) {
  /****************************************

  min-width: 480px

  ****************************************/
  .container:nth-of-type(2) {
    height: 100%;
    min-height: 600px;
    padding: 14px 24px 30px;
  }
  .sub-title {
    font-size: 16px;
  }
  .main-title {
    font-size: 28px;
  }

  .karte h3.model_number {
    font-size: 28px;
  }
  .karte h4.category {
    font-size: 14px;
  }
}
@media screen and (min-width: 600px) {
  /****************************************

  min-width: 600px

  ****************************************/
  .container {
    width: 100%;
    background-color: white;
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 38px;
  }
  .container:nth-of-type(2) {
    height: 100%;
    min-height: 800px;
    padding: 16px 32px 32px;
  }

  .sub-title {
    font-size: 20px;
  }
  .main-title {
    display: inline-block;
    font-size: 28px;
  }
}
@media screen and (min-width: 960px) {
  /****************************************

  min-width: 960px

  ****************************************/
  body {
    padding: 5px 0 20px;
  }
  .container:nth-of-type(2) {
    height: 100%;
    min-height: 500px;
    padding: 16px 64px 48px;
  }
  h1 {
    padding: 24px 0;
  }
  .sub-title {
    display: inline-block;
    font-size: 28px;
  }
  .main-title {
    display: inline-block;
    font-size: 28px;
  }
  .main-title::before {
    content: '『';
  }
  .main-title::after {
    content: '』';
  }
  .btntotop {
    right: 30px;
  }
  .release {
    font-size: 14px;
  }
}
@media screen and (min-width: 1280px) {
  /****************************************

  min-width: 1280px

  ****************************************/
  .container:nth-of-type(2) {
    height: 100%;
    min-height: 600px;
    padding: 16px 64px 48px;
  }
}

/****************************************
end of common.css
****************************************/
