@charset "UTF-8";
/*
Theme Name:Ikedakamiten 
Author: Daiki Ikeda
Description: A theme for Ikedakamiten.
Version: 1.0
*/





/*
 * Variables
 */
:root {
  --home-width: 1000px;
  --text-color: #6f2123;
  --bg-color: #f2ece5;
  --dark-color: #333;
  --hover-color: orange;
  --font-mincho: "Noto Serif JP", "Yu Mincho", serif;
  --font-gothic: "Yu Gothic", sans-serif;
}





/*
 * Global Settings
 */
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text-color);
  background: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--dark-color);
  border-bottom: 1.2px solid;
  transition: color 200ms;
}

a:hover {
    color: var(--hover-color);
}

p, h1, h2, h3, h4, h5, h6, ul, li {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ul li {
  list-style: none;
}

main {
  width: 100%;
}

section {
  width: var(--home-width);
  max-width: 100%;
  position: relative;
}





/*
 * Header
 */
header#header {
  width: 100%;
  font-family: var(--font-mincho);
  position: fixed;
  top: 0;
  z-index: 10000;
}

header#header nav {
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
}

header#header nav a {
  color: white;
  border: none;
}

header#header nav a:hover {
  color: var(--hover-color);
}

header#header nav ul {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

header#header nav ul li {
  margin: 0 20px;
  font-size: 16px;
  line-height: 300%;
}

@media screen and (max-width: 768px) {
  header#header {
    width: 72px;
    height: 72px;
    overflow: hidden;
    right: 0;
    transition: width 300ms, height 300ms;
  }

  header#header::after {
    content: "≡";
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 72px;
    font-family: serif;
    font-weight: lighter;
  }

  header#header nav {
    background: transparent;
    right: 0;
    position: absolute;
    width: 100vw;
    height: 100vh;
    transition: background 300ms;
  }

  header#header nav ul {
    flex-flow: column;
  }

  header#header nav ul li {
    font-size: 21px;
    margin: 10px 0;
  }

  header#header nav ul li a {
    color: var(--dark-color);
  }

  header#header.full {
    width: 100vw;
    height: 100vh;
  }

  header#header.full::after {
    content: "×"
  }

  header#header.full nav {
    background: rgba(255, 255, 255, 0.96);
  }
}





/*
 * main-home
 */
main#main-home {
  font-family: var(--font-mincho);
}





/*
 * main-image
 */
section#main-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  background: white;
  overflow: hidden;
}

section#main-image img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

section#main-image #company-name {
  z-index: 1000;
  color: white;
  width: 1600px;
  max-width: 96%;
}

section#main-image #company-name h1 {
  font-size: 36px;
  letter-spacing: 10px;
}

section#main-image #company-name p {
  width: 100%;
  margin: 0;
  font-size: 10px;
  letter-spacing: 4px;
}

@media screen and (max-width: 768px) {
  section#main-image #company-name {
    writing-mode: vertical-lr;
    width: auto;
    margin-top: 59%;
    margin-left: 30%;
    background: white;
    padding: 2px;
    color: var(--text-color);
  }

  section#main-image #company-name h1 {
    font-size: 30px;
    letter-spacing: 5px;
    border-bottom: none;
    border-right: 1px solid var(--text-color);
  }

  section#main-image #company-name p {
    font-size: 10px;
    letter-spacing: 2px;
    text-align: right;
    margin: 4px 0;
    line-height: 20px;
  }
}





/*
 * Messages
 */
section#message {
  color: var(--text-color);
  width:  100%;
}

section#message h2 {
  font-size: 81px;
  margin: 80px 10%;
  text-align: center;
}

section#message p {
  width: 600px;
  max-width: 68%;
  margin: 80px auto;
  font-size: 18px;
  line-height: 36px;
}

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

  section#message h2 {
    text-align: justify;
    word-wrap: break-word;
    font-size: 40px;
  }

  section#message p {
    font-size: 16px;
    line-height: 32px;
  }
}



section.product {
  margin: 120px auto;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
}

section.product:nth-child(odd) {
  flex-flow: row-reverse wrap;
}

section.product h2 {
  position: absolute;
  writing-mode: vertical-rl;
  top: 50px;
  left: 30px;
  z-index: 1000;
  font-size: 54px;
  background: white;
}

section.product > img {
  width: 100%;
  max-width: 630px;
  height: auto;
}

section.product p {
  font-size: 15px;
  line-height: 30px;
  flex: 1;
  margin: 28px;
  min-width: 200px;
  max-width: 100%;
}

section.product:nth-child(odd) h2 {
  right: 30px;
  left: auto;
}


section.product .img-box {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  margin: 60px 0;
}

section.product .img-box img {
  width: 42vw;
  height: 42vw;
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
  background: white;
}

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

  section.product h2 {
    font-size: 54px;
  }

  section.product p {
    padding-left: 120px;
  }

  section.product:nth-child(odd) p {
    padding-left: 0;
    padding-right: 120px;
  }

  section.product .img-box img {
    width: 46vw;
    height: 46vw;
    margin: 2vw 0;
  }

}





/* News */
section#news {
  width: 720px;
  margin: 120px auto;
  display: flex;
  justify-content: center;
  flex-flow: column wrap;
}

section#news div {
  display: flex;
}

section#news div div {
  display: block;
  flex: 1;
  margin: 24px 0;
}

section#news article {
  font-family: var(--font-gothic);
  margin: 12px 0;
}

section#news article h3 {
  font-size: 16px;
}

section#news article time {
  font-size: 14px;
}

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

  section#news {
    max-width: 81%;
  }

  section#news div {
    flex-direction: column;
    width: 100%;
  }

  section#news article {
    width: 100%;
  }

  section#news article h3 {
    font-size: 17px;
  }

  section#news article time {
    margin-bottom: 21px;
  }

}





/* Footer */
footer#footer {
  font-family: var(--font-mincho);
  width: 100%;
  color: var(--dark-color);
  padding: 36px 0;
  margin-top: auto;
}

footer#footer p {
  font-size: 10px;
  margin-top: 32px;
  text-align: center;
}

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

  footer#footer {
    padding: 32px 0;
  }

  footer#footer p {
    font-size: 9px;
  }

}





/*
 * main except home
 */
main:not(#main-home) {
  width: 100%;
  max-width: 1024px;
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  padding-top: 96px;
}

main:not(#main-home) article {
  font-family: var(--font-mincho);
  width: 100%;
  margin-bottom: 70px;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: start;
  color: black;
}

main:not(#main-home) article time {
  font-size: 16px;
  margin: 8px 0 24px 0;
  color: var(--text-color);
}

main:not(#main-home) article p {
  width: 100%;
  margin: 6px 0;
  text-align: justify;
  font-size: 17px;
  line-height: 26px;
}

main:not(#main-home) article img {
  height: auto;
}

main#main-singular h1 {
  font-size: 28px;
}

.title, main#main-singular h1.title {
  color: var(--text-color);
  font-family: var(--font-mincho);
  align-self: center;
  width: auto;
  border: 1px solid;
  font-size: 18px;
  padding: 12px 24px;
  margin: 42px 0;
  border-radius: 1000px;
}

main#main-archive h2 {
  font-size: 38px;
}

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

  main:not(#main-home) article {
    width: 85%;
    margin-bottom: 36px;
  }

  main:not(#main-home) article p {
    font-size: 15px;
    line-height: 24px;
  }

  main#main-archive article h2 {
    font-size: 21px;
  }

  main#main-singular article h1 {
    font-size: 21px;
  }
}



main#main-singular.page-22 {
  width: 100%;
  max-width: 100%;
}

main#main-singular.page-22 article {
  width: 100%;
  max-width: 100%;
  align-items: center;
}

main#main-singular.page-22 article table {
  border-spacing: 0 24px;
}

main#main-singular.page-22 article table tr td:first-child {
  text-align: right;
  padding-right: 12px;
}

main#main-singular.page-22 article table tr td:last-child {
  text-align: left;
  border-left: 3px solid lightgray;
  padding-left: 12px;
}

main#main-singular.page-22 article figure#google-map {
  width: 100%;
  height: 640px;
  max-height: 100vw;
  margin: 48px 0;
}

main#main-singular.page-22 article figure iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (max-width: 768px) {
  main#main-singular article table {
    font-size: 12px;
  }

  main#main-singular.page-22 article img {
    display: block;
    margin: 0 auto;
    width: 72%;
    height: auto;
  }
}





/* regular page */


