/* ===========
  common
  ============ */

body {
 font-family: "Yu Mincho", "Hiragino Mincho Pro", "MS PMincho", "IPAmj Mincho", "Noto Serif JP", serif;
 background: #fff;
 color: #444;
 font-size: 16px;
 line-height: 1.6;
 animation: fadeIn 5s ease 0s 1 normal;
}
@keyframes fadeIn {
 0% {
  opacity: 0;
 }
 100% {
  opacity: 1;
 }
}
@-webkit-keyframes fadeIn {
 0% {
  opacity: 0;
 }
 100% {
  opacity: 1;
 }
}
@media screen and (max-width: 768px) {
 body {
  font-size: 16px;
  line-height: 1.4;
 }
}

main {
 margin-top: 80px;
}
@media screen and (max-width: 768px) {
 main {
  margin-top: 64px;
 }
}

footer {
 background: #f8f8f8;
 padding: 64px 0;
}
footer p {
 text-align: center;
 color: #888;
 font-size: 0.64rem;
 letter-spacing: 1px;
}
footer .qr {
 margin: 0 16px;
}
footer .sns {
 margin: 0;
}
@media screen and (max-width: 768px) {
 footer .qr {
  margin: auto;
 }
 footer .sns {
  margin: auto;
 }
}

img {
 object-fit: cover;
}

hr {
 border: 0;
 height: 1px;
 background: #ddd;
}

.wrapper {
 display: block;
 margin: auto;
 width: 1280px;
 max-width: 100%;
 overflow: hidden;
}

section {
 padding: 80px 0;
 color: #444;
}

@media screen and (max-width: 768px) {
 section {
  padding: 40px 0;
 }
}

a {
 color: #666;
 text-decoration: none;
 transition: 0.4s !important;
}

a:hover {
 opacity: 0.64;
}

p {
 line-height: 1.6;
}

h1 {
 font-size: 2rem;
}
h2 {
 font-size: 1.8rem;
 border-bottom: 1px solid #ccc;
 padding: 8px 4px;
}

@media screen and (max-width: 68px) {
 h3 {
  font-size: 24px;
 }
}

table {
 width: 100%;
 border-collapse: collapse;
 table-layout: fixed;
 font-size: 0.88rem;
}

th,
td {
 border: 1px solid #ccc;
 padding: 8px;
 text-align: left;
 vertical-align: top;
}

th {
 white-space: nowrap;
 width: 120px;
 background-color: #f9f9f9;
}

@media (max-width: 768px) {
 table,
 thead,
 tbody,
 tr,
 th,
 td {
  display: block;
  width: 100%;
 }

 tr {
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  border: 0;
 }

 th {
  font-weight: bold;
  border: 0;
  display: block;
  width: auto;
 }

 td {
  display: block;
  border: 0;
 }
}

.txt__bl {
 color: #008da0;
}

.btn {
 display: block;
 width: 300px;
 max-width: 80%;
 height: 64px;
 margin: auto;
 line-height: 64px;
 color: #fff;
 background: #008da0;
 border: 1px solid #ccc;
 text-align: center;
 letter-spacing: 1px;
}

.btn:hover {
 background: transparent;
 scale: 1.04;
 opacity: 1;
 border-color: #444;
 color: #444;
}

@media screen and (max-width: 768px) {
 .btn {
  scale: 80%;
 }
}

.wrap {
 width: 1024px;
 max-width: 90%;
 margin: auto;
}
.wrap-2 {
 max-width: 100%;
}

.vertical {
 -ms-writing-mode: tb-rl;
 writing-mode: vertical-rl;
}

.fadein {
 opacity: 0.1;
 -webkit-transform: translate(0, 50px);
 transform: translate(0, 50px);
 -webkit-transition: 0.8s;
 transition: 0.8s;
}
.fadein.scrollin {
 opacity: 1;
 -webkit-transform: translate(0, 0);
 transform: translate(0, 0);
}

/* scroll_up ｜下から上へ出現 */
.scroll_up {
 transition: 0.8s ease-in-out;
 transform: translateY(30px);
 opacity: 0;
}
.scroll_up.on {
 transform: translateY(0);
 opacity: 1;
}

/* scroll_left ｜左から出現 */
.scroll_left {
 transition: 0.8s ease-in-out;
 transform: translateX(-30px);
 opacity: 0;
 filter: alpha(opacity=0);
}
.scroll_left.on {
 opacity: 1;
 filter: alpha(opacity=100);
 transform: translateX(0);
}

/* scroll_right ｜右から出現 */
.scroll_right {
 transition: 0.8s ease-in-out;
 transform: translateX(30px);
 opacity: 0;
 filter: alpha(opacity=0);
}
.scroll_right.on {
 opacity: 1;
 filter: alpha(opacity=100);
 transform: translateX(0);
}

/* ============
                            index
                        ============ */
.mv {
 margin-top: 40px;
}
.mv img {
 height: 640px;
 width: 100vw;
 object-fit: cover;
}
.mv video {
 position: relative;
 top: 24px;
 display: block;
 margin: 40px auto 64px;
 object-fit: cover;
}

/* about */
#index__about {
 background: url(../img/common/bg.jpg);
 background-size: cover;
}
#index__about h1 {
 font-size: 2.4rem;
 margin: 0 40px;
}
#index__about .flex {
 flex-direction: row-reverse;
 height: 440px;
}
#index__about .flex__txt {
 margin-left: 40px;
}
#index__about .flex__txt a {
 margin: auto 40px 0;
}
#index__about .flex__img {
}

#index__about .flex__img img {
 margin: 0;
 max-width: 100%;
 height: 640px;
 object-fit: cover;
 filter: drop-shadow(2px 2px 0.64rem rgba(0, 0, 0, 0.4));
}
@media screen and (max-width: 768px) {
 #index__about .flex:not(.flex__txt) {
  flex-direction: column;
  height: auto;
 }
 #index__about * {
  text-box-trim: trim-both;
  text-box-edge: text;
 }
 #index__about h1 {
  font-size: 1.8rem;
 }
 #index__about .flex__img img {
  width: 240px;
  height: auto;
  margin: 40px auto 0;
 }
 #index__about .flex__txt {
  max-width: 90%;
  height: auto;
  margin: 0;
  justify-content: center;
 }
}

/* works */
#works__list .flex {
 align-items: stretch;
 flex-wrap: wrap;
 gap: 24px 0;
}
#works__list .flex li {
 flex-basis: calc(90% / 3);
 background: #fff;
 filter: drop-shadow(0 0 0.4rem rgba(0, 0, 0, 0.14));
}
#works__list .flex li a:hover,
#works__list .flex li a img:hover {
 opacity: 1;
}
#works__list .flex li a {
 display: block;
 padding: 8px;
 background: #fff;
 border-radius: 4px;
 transition: 0.3s;
}
#works__list .flex li a:hover {
 scale: 1.02;
}
#works__list .flex li img {
 max-height: 240px;
 outline: 1px solid #eee;
}

#works__list .flex li p {
 display: none;
}

#works__list .flex figcaption {
 text-align: center;
 padding: 8px;
 white-space: pre-line;
}

@media screen and (max-width: 768px) {
 #works__list .flex {
  justify-content: center;
  gap: 24px;
 }
 #works__list .flex li {
  flex-basis: 90%;
 }

 #works__list .flex li a img {
  max-height: 300px;
  width: 100%;
  object-fit: contain;
 }
}

/* news */
@media screen and (max-width: 768px) {
 #index__news .flex {
  flex-direction: column;
 }
}
.eui-widget-title,
.eapps-widget-toolbar {
 display: none !important;
}
.es-post a {
 max-width: 90%;
 margin: 0 auto 16px !important;
 border-radius: 4px !important;
 border: 1px solid #ccc;
 filter: drop-shadow(0 0 0.4rem rgba(0, 0, 0, 0.14));
}

/* ============
                          subpage
                        ============ */

.subpage {
 background: #f8f8f8;
}
.subpage section {
 padding-top: 0;
}
.subpage p {
 font-size: 0.88rem;
}
.subpage p.sentence:not(:last-child) {
 padding: 0 0 16px;
}
.subpage .ttl {
 padding: 40px 0;
}
.subpage .ttl h1 {
 font-size: 1.24rem;
 letter-spacing: 2.4px;
 font-weight: 900;
}
.subpage h2 {
 font-size: 2.4rem;
 letter-spacing: 2.4px;
 padding: 0;
 border: 0;
}
.subpage h2 span {
 font-size: 1rem;
 display: block;
}
.subpage h3 {
 font-size: 1rem;
}
.wh__box {
 padding: 48px 0;
 background: #fff;
}
.wh__box-inner {
 margin: auto;
 max-width: 90%;
}
@media (max-width: 768px) {
 .subpage .ttl {
  padding: 24px 0;
 }
 .subpage .ttl h1 {
  font-size: 1rem;
  font-weight: 900;
 }
 .subpage h2 {
  font-size: 1.6rem;
 }
}

/* works */
#works .flex {
 justify-content: space-between;
}
#works .flex__txt {
 flex-basis: 55%;
}
#works .flex__img {
 flex-basis: 40%;
}
#works iframe {
 width: 100%;
}

ul.works {
 flex-wrap: wrap;
}
ul.works li {
 flex-basis: 30%;
}

@media screen and (max-width: 768px) {
 #works .flex {
  flex-direction: column;
 }
}

section#works_table .flex__img {
 flex-basis: auto;
}

/* contact */
#contact table {
 justify-content: center;
}
#contact input[type="text"],
#contact textarea {
 padding: 4px 8px;
 background: #fff;
 width: 100%;
 border-radius: 2px;
 border: 1px solid #ccc;
}

#contact .required th::after {
 content: "*必須";
 font-size: 0.6rem;
 color: red;
 padding: 8px;
 vertical-align: middle;
}
#contact input[type="submit"],
#contact input[type="reset"] {
 font-size: 0.8rem;
 color: #666;
 background: #ccc;
 padding: 8px 16px;
 width: 160px;
 max-width: 45%;
 border-radius: 50px;
 cursor: pointer;
 letter-spacing: 2px;
}
#contact input[type="submit"]:hover,
#contact input[type="reset"]:hover {
 background: #666;
 color: #fff;
}
@media screen and (min-width: 767px) {
 #contact table th {
  width: 30%;
 }
}
@media screen and (max-width: 768px) {
 #contact table td {
  padding: 8px 0;
 }
}
