@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&display=swap');

:root {
  --default-width: 100%;
  --max-width: 1080px;
  --default-color: #333333;
  --default-background-color: #FFFFFF;
  --overlay-background-color: rgba(250, 250, 250, 0.9);
  --main-padding: 24px;
  --block-margin: 12px;
}

html {
  color: var(--default-color);
  font-family: 'BIZ UDPGothic', sans-serif;
}

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

@media (max-width: 768px) {

  #main>* {
    margin-left: 1em !important;
    margin-right: 1em !important;
  }

  #footer nav ul {
    margin-left: 1em !important;
    margin-right: 1em !important;
  }
}

#header {
  padding: 0;
  background-color: var(--default-background-color);
  background-image: url(bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
}

#header.top {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
}

#main {
  padding: 0 0 var(--main-padding);
  background-color: var(--default-background-color);
}

#footer {
  padding: var(--main-padding) 0;
  background-color: #F0F0F0;
}

@media (min-width: 768px) {
  #footer nav {
    margin: auto;
    width: var(--default-width);
    max-width: var(--max-width);
  }
}
@media (max-width: 768px) {
  #footer nav {
    width: 100%;
  }
}

.site-nav {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.site-nav-lr {
  gap: 15px;
  flex-direction: row;
}

.site-nav-tb {
  flex-direction: column;
}

.site-nav li {
  line-height: 1.6;
}

.site-nav a:link,
.site-nav a:visited {
  color: var(--default-color);
}

.site-nav a:hover,
.site-nav a:active,
.site-nav a:focus {
  color: #0067C0;
}

.url {
  word-break: break-all;
}

/*
 * header
 */

#header h1 {
  margin: 0;
}

#header .brand {
  background-color: var(--overlay-background-color);
}

#header .brand #logo {
  align-self: center;
}

#header .brand nav {
  margin: auto;
  width: var(--default-width);
  max-width: var(--max-width);
}

.brand .site-nav {
  justify-content: center;
  align-self: center;
}

@media (max-width: 768px) {
  #header .brand {
    padding-bottom: 1em;
  }
}
@media (min-width: 768px) {
  #header .brand nav {
    display: flex;
    justify-content: space-between;
  }
}

.message {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-container {
  margin: auto;
  width: var(--default-width);
  max-width: var(--max-width);
}

.message-container p {
  width: fit-content;
  padding: 8px;
  background-color: var(--overlay-background-color);
  margin-bottom: 14px;
}

.slogan {
  font-size: 2.6rem;
  font-weight: bold;
}

/*
 * main
 */

#main h2 {
  margin: 0 0 var(--block-margin);
  text-align: center;
  line-height: 3;
}

@media (min-width: 768px) {
  #main h2 {
    line-height: 3;
    font-size: 2.4rem;
  }

  #main>section {
    min-height: 240px;
    margin: 0 0 50px;
  }
}

/*
 * サービス
 */
#services .service {
  padding: 20px 0;
}

#services .service h3 {
  margin: 0 0 var(--block-margin);
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#services .service ul {
  margin-left: 0;
  padding-left: 1rem;
}

#services .service li {
  margin-left: 0;
  padding-left: 0;
}

#services .service p,
#services .service li {
  line-height: 1.3;
}

@media (min-width: 768px) {
  #services .service {
    width: var(--default-width);
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    gap: 20px;
  }

  #services .service:nth-child(even) {
    grid-template-columns: 1fr max-content;
  }

  #services .service:nth-child(even) .service-details {
    order: 1;
  }

  #services .service:nth-child(even) .service-diagram {
    order: 2;
  }

  #services .service:nth-child(odd) {
    grid-template-columns: max-content 1fr;
  }

  #services .service:nth-child(odd) .service-details {
    order: 2;
  }

  #services .service:nth-child(odd) .service-diagram {
    order: 1;
  }

  #services .service-diagram {
    max-width: 500px;
    height: 100%;
  }

  #services .service-diagram img {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
}

.service-diagram {
  max-width: 100%;
  padding: 0;
}

.service-diagram img {
  max-width: 100%;
}

.link-button {
  text-align: center;
}

.link-button a {
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
  padding: 16px;
  border-radius: 5px;
  background-color: #F0F0F0;
  color: #000000;
  text-decoration: none;
}

/*
 * ニュース
 */
#news ul {
  width: var(--default-width);
  max-width: var(--max-width);
  margin: auto;
  padding: 0;
  list-style-type: none;
}

#news li {
  display: flex;
  flex-direction: row;
  margin: 0 0 0.6rem 0;
}

#news li .title {
  order: 2;
  display: block;
}

#news li .date {
  order: 1;
  display: block;
  margin-right: 6px;
  font-size: 0.86rem;
  white-space: nowrap;
}

#news li .date::before {
  content: "（";
}

#news li .date::after {
  content: "）";
}


/*
 * 企業情報
 */
#corporate table {
  margin: auto;
  width: var(--default-width);
  max-width: var(--max-width);
  border-top: solid 2px #000000;
  border-bottom: solid 2px #000000;
  border-collapse: collapse;
}

#corporate tr {
  border-top: solid 1px #000000;
  border-bottom: solid 1px #000000;
}

#corporate tr:nth-child(odd) {
  background-color: #FFFFFF;
}

#corporate tr:nth-child(even) {
  background-color: #F0F0F0;
}

#corporate th,
#corporate td {
  padding: 15px 12px;
  text-align: left;
}

#corporate th {
  white-space: nowrap;
}

#corporate caption {
  margin-top: 8px;
  caption-side: bottom;
  text-align: left;
}

#corporate .list-in-table {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
#corporate .list-in-table li + li {
  margin-top: 0.6rem;
}

/*
 * プライバシーポリシー
 */

#privacy-policy h3 {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#privacy-policy .revised-date {
  text-align: right;
  margin-bottom: var(--block-margin);
}

#privacy-policy p,
#privacy-policy li,
#privacy-policy dd {
  line-height: 1.3;
}

#privacy-policy dt::before {
  content: "「";
}
#privacy-policy dt::after {
  content: "」";
}

@media (min-width: 768px) {
  #privacy-policy h3,
  #privacy-policy p,
  #privacy-policy ul,
  #privacy-policy dl {
    width: var(--default-width);
    max-width: var(--max-width);
    margin: 0 auto 1.5rem;
  }

  #privacy-policy dt {
    margin: 1em 0;
    margin-bottom: var(--block-margin);
    font-weight: bold;
  }
  #privacy-policy dd {
    margin: 1em 0 0 1em;
  }
  #privacy-policy p,
  #privacy-policy li,
  #privacy-policy dd {
    text-align: justify;
  }
}

@media (max-width: 768px) {
  #privary-policy > * {
    width: 100%;
  }
  #privacy-policy ul {
    padding-left: 1em;
  }

  #privacy-policy p,
  #privacy-policy li,
  #privacy-policy dt,
  #privacy-policy dd {
    margin-left: 0;
  }

  #privacy-policy p,
  #privacy-policy dt,
  #privacy-policy dd {
    margin-bottom: 1em;
  }
  #privacy-policy li {
    margin-bottom: 0.5em;
  }
  #privacy-policy dt {
    font-weight: bold;
  }
}

/*
 * コピーライト
 */

#copyright {
  margin-top: var(--main-padding);
  font-size: 0.75rem;
  text-align: center;
  color: #666666;
}

#ga-optout {
  border: solid 1px #666666;
  width: 100%;
  background-color: rgba(0, 32, 96, 0.5);
  position: fixed;
  bottom: 0;
}
#ga-optout #ga-optout-description {
  color: #F0F0F0;
}
#ga-optout #ga-optout-description a {
  color: #F0F0F0;
}
