@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  line-height: calc(0.25rem + 1em + 0.25rem);
}

*,
::before,
::after {
  box-sizing: border-box;
}

*:where(:not(fieldset, progress, meter)) {
  border-width: 0;
  border-style: solid;
  background-origin: border-box;
  background-repeat: no-repeat;
}

html {
  block-size: 100%;
  -webkit-text-size-adjust: none;
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}
body {
  text-rendering: optimizeSpeed;
  min-block-size: 100%;
}

:where(img, svg, video, canvas, audio, iframe, embed, object) {
  display: block;
}

:where(img, svg, video) {
  block-size: auto;
  max-inline-size: 100%;
}

:where(svg) {
  stroke: none;
  fill: currentColor;
}

:where(svg):where(:not([fill])) {
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(svg):where(:not([width])) {
  inline-size: 5rem;
}

:where(input, button, textarea, select),
:where(input[type=file])::-webkit-file-upload-button {
  color: inherit;
  font: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
}

:where(textarea) {
  resize: vertical;
}

@supports (resize: block) {
  :where(textarea) {
    resize: block;
  }
}
:where(p, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
}

h1 {
  font-size: 2em;
}

:where(ul, ol) {
  list-style-position: inside;
}

:where(ul, ol)[role=list] {
  list-style: none;
}

:where(li) {
  list-style: none;
}

a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

:where(a[href],
area,
button,
input,
label[for],
select,
summary,
textarea,
[tabindex]:not([tabindex*="-"])) {
  cursor: pointer;
  touch-action: manipulation;
}

:where(input[type=file]) {
  cursor: auto;
}

:where(input[type=file])::-webkit-file-upload-button,
:where(input[type=file])::file-selector-button {
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  :focus-visible {
    transition: outline-offset 145ms cubic-bezier(0.25, 0, 0.4, 1);
  }
  :where(:not(:active)):focus-visible {
    transition-duration: 0.25s;
  }
}
:where(:not(:active)):focus-visible {
  outline-offset: 5px;
}

:where(button,
button[type],
input[type=button],
input[type=submit],
input[type=reset]),
:where(input[type=file])::-webkit-file-upload-button,
:where(input[type=file])::file-selector-button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
          user-select: none;
  text-align: center;
}

:where(button,
button[type],
input[type=button],
input[type=submit],
input[type=reset])[disabled] {
  cursor: not-allowed;
}

a {
  text-decoration: none;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: #1a1a1c;
}

.text-base {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #1a1a1c;
}

.text-lg {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #1a1a1c;
}
@media screen and (max-width: 640px) {
  .text-lg {
    font-size: 1rem;
    line-height: 1.7;
  }
}

.text-xl {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #1a1a1c;
}
@media screen and (max-width: 640px) {
  .text-xl {
    font-size: 1.25rem;
  }
}

.text-2xl {
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #1a1a1c;
}
@media screen and (max-width: 640px) {
  .text-2xl {
    font-size: 1.25rem;
  }
}

.text-3xl {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #1a1a1c;
}
@media screen and (max-width: 768px) {
  .text-3xl {
    font-size: 1.5rem;
  }
}

.text-4xl {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #1a1a1c;
}
@media screen and (max-width: 640px) {
  .text-4xl {
    font-size: 1rem;
    line-height: 2;
  }
}

.text-5xl {
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #1a1a1c;
}
@media screen and (max-width: 768px) {
  .text-5xl {
    font-size: 2.25rem;
    line-height: 2;
  }
}
@media screen and (max-width: 640px) {
  .text-5xl {
    font-size: 1.25rem;
    line-height: 2;
  }
}

.text-link {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-underline-offset: 0.2em;
  color: #0017c1;
}
.text-link:hover {
  color: #6c2754;
}
.text-link:visited {
  color: #6c2754;
}

.text-description {
  color: #626264;
}

.button-primary {
  display: inline-block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  background-color: #6c2754;
  border-radius: 12px;
  color: #ffffff;
}
.button-primary:hover {
  background-color: #511d3f;
}
.button-primary:active {
  background-color: #511d3f;
}
.button-primary:disabled {
  background-color: #949497;
}

.button-secondary {
  display: inline-block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  background-color: #ffffff;
  border: 1px solid #511d3f;
  border-radius: 12px;
  color: #511d3f;
}
.button-secondary:hover {
  background-color: #e8f1fe;
}
.button-secondary:active {
  background-color: #e8f1fe;
}
.button-secondary:disabled {
  border: 1px solid #949497;
  color: #949497;
}

.container {
  width: 1000px;
  max-width: calc(100vw - 4rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 2rem;
}
.container > * {
  grid-column: 1/-1;
}
@media screen and (max-width: 768px) {
  .container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.inner {
  max-width: calc(100vw - 6rem);
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .inner {
    max-width: calc(100vw - 2rem);
  }
}

:root {
  --swiper-theme-color: #727171;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "游ゴシック", "YuGothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo, Osaka", "MS Pゴシック", "MS PGothic", sans-serif;
}
body textarea {
  resize: none;
}
body li a:hover {
  transition: 0.2s ease-in-out;
  color: #6c2754;
  opacity: 0.8;
}
body .fadeIn {
  opacity: 0;
  transform: translate(0, 0);
  transition: all 1.5s;
}
body .fadeIn-bottom {
  transform: translate(0, 30px);
}
body .scrollIn {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}
body header {
  font-family: "Noto Serif JP", serif;
  padding: 1.5rem 0;
}
body header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body header .inner h1 {
  display: flex;
  align-items: center;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
body header .inner h1 img {
  width: 50px;
  height: 50px;
  margin: 0 0.5rem 0 0;
}
body header .inner nav .pc-nav {
  display: flex;
}
body header .inner nav .pc-nav li {
  padding: 0 0.5rem;
  border-left: 1px solid #6c2754;
}
body header .inner nav .pc-nav li a {
  padding: 0.3rem;
  line-height: 1;
}
body header .inner nav .pc-nav li:last-child {
  border-right: 1px solid #6c2754;
}
body header .inner nav .modal,
body header .inner nav .openBtn {
  display: none;
}
body header .inner nav .openBtn {
  width: 55px;
  height: 55px;
  background-color: #6c2754;
}
body header .inner nav .openBtn span {
  display: block;
  margin: 0 auto;
  width: 50%;
  height: 1px;
  border: 1px solid #ffffff;
}
body header .inner nav .openBtn span:not(:last-child) {
  margin: 0 auto 5px auto;
}
body header .inner nav .closeBtn {
  width: 50px;
  height: 50px;
  margin: 0.5rem;
}
body header .inner nav .closeBtn span {
  display: block;
  margin: 0 auto;
  width: 55%;
  height: 1px;
  border: 1px solid #1a1a1c;
}
body header .inner nav .closeBtn span:nth-child(1) {
  transform: translateY(1px) rotate(45deg);
}
body header .inner nav .closeBtn span:nth-child(2) {
  transform: translateY(-1px) rotate(-45deg);
}
body header .inner nav .modal {
  overflow: hidden;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
body header .inner nav .modal .mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0.9;
  cursor: pointer;
}
body header .inner nav .modal .content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: -moz-fit-content;
  height: fit-content;
  background-color: white;
  padding: 1rem;
}
body header .inner nav .modal .content ul button {
  position: absolute;
  right: 0;
  top: 0;
}
body header .inner nav .modal .content ul li a {
  padding: 1rem 0;
  display: block;
  text-align: center;
  border-bottom: 1px solid #1a1a1c;
}
@media screen and (max-width: 768px) {
  body header {
    padding: 0;
  }
  body header .inner {
    max-width: calc(100vw - 0.5rem);
    margin: 0 0 0 auto;
  }
  body header .inner h1 {
    padding: 0;
  }
  body header .inner h1 img {
    width: 30px;
    height: 30px;
    margin: 0 0.3rem 0 0;
  }
  body header .inner h1 p {
    font-size: 1rem;
  }
  body header .inner nav .pc-nav {
    display: none;
  }
  body header .inner nav .openBtn {
    display: block;
  }
}
body main section {
  padding: 2rem 0 3rem 0;
}
@media screen and (max-width: 768px) {
  body main section {
    padding: 1rem 0 2rem 0;
  }
}
body main section .inner {
  padding: 0 2rem;
}
@media screen and (max-width: 768px) {
  body main section .inner {
    padding: 0 1rem;
  }
}
body main section .inner .container {
  max-width: 100%;
  overflow: hidden;
}
body main section .inner .container .heading {
  font-family: "Noto Serif JP", serif;
  margin: 0 auto 3rem auto;
  position: relative;
}
body main section .inner .container .heading:before, body main section .inner .container .heading::after {
  position: absolute;
  content: "";
  top: 100%;
}
body main section .inner .container .heading:before {
  width: 100%;
  left: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 3px solid #6c2754;
  z-index: 2;
}
body main section .inner .container .heading:after {
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: 3px solid #ababab;
  z-index: 1;
}
@media screen and (max-width: 768px) {
  body main section .inner .container .heading {
    margin: 0 auto 2rem auto;
  }
  body main section .inner .container .heading:before {
    width: 120%;
    border-bottom: 3px solid #6c2754;
  }
}
body main #hero {
  padding: 0;
  margin: 0;
  display: grid;
  grid-template: "hero";
  justify-items: flex-start;
  align-items: center;
}
body main #hero > * {
  grid-area: hero;
}
body main #hero img {
  width: 100%;
  max-height: 970px;
  min-height: 220px;
  -o-object-fit: cover;
     object-fit: cover;
}
body main #hero .text-wrap {
  margin: 0 0 0 20%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
body main #hero .text-wrap h2 {
  font-family: "Noto Serif JP", serif;
  padding: 1rem 0;
  line-height: 1.24;
  background-color: rgba(255, 255, 255, 0.8);
  writing-mode: vertical-lr;
}
body main #hero .text-wrap h2:first-child {
  order: 1;
}
@media screen and (max-width: 768px) {
  body main #hero .text-wrap h2 {
    padding: 0.25rem 0;
  }
}
body main #about {
  background-image: url(../img/img_about_bg.png);
  background-repeat: repeat;
}
body main #about .inner {
  position: relative;
  background-color: #ffffff;
}
body main #about .inner .container {
  position: relative;
  padding: 2rem 0;
  z-index: 1;
}
body main #about .inner .container .content .item {
  display: flex;
}
body main #about .inner .container .content .item img {
  width: 50%;
  padding: 0 2rem 0 0;
  -o-object-fit: cover;
     object-fit: cover;
}
body main #about .inner .container .content .item .text-wrap {
  font-family: "Noto Serif JP", serif;
  padding: 0 0 0 2rem;
}
body main #about .inner .container .content .item .text-wrap h3 {
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 0 0.5rem 0;
  border-bottom: 3px solid #6c2754;
  font-weight: 600;
}
body main #about .inner .container .content .item:nth-of-type(2n) {
  margin: 5rem 0 0 0;
}
body main #about .inner .container .content .item:nth-of-type(2n) img {
  order: 1;
  padding: 0 0 0 2rem;
}
body main #about .inner .container .content .item:nth-of-type(2n) .text-wrap {
  padding: 0 2rem 0 0;
}
body main #about .inner .bg {
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
body main #about .inner .bg1 {
  top: 50%;
  transform: scale(50%) translateY(-50%);
  right: 4rem;
}
body main #about .inner .bg2 {
  bottom: 0;
  transform: scale(-50%, 50%);
  left: 4rem;
}
@media screen and (max-width: 1600px) {
  body main #about .inner .bg {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  body main #about .inner .container .content .item {
    flex-direction: column;
    gap: 1rem;
  }
  body main #about .inner .container .content .item img {
    width: 100%;
    padding: 0;
  }
  body main #about .inner .container .content .item .text-wrap {
    padding: 0;
  }
  body main #about .inner .container .content .item:nth-of-type(2n) {
    margin: 3rem 0 0 0;
  }
  body main #about .inner .container .content .item:nth-of-type(2n) img {
    order: 0;
    padding: 0;
  }
  body main #about .inner .container .content .item:nth-of-type(2n) .text-wrap {
    padding: 0;
  }
}
@media screen and (max-width: 640px) {
  body main #about {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
body main #merit .content .item {
  background-color: #ede2eb;
}
body main #merit .content .item .container {
  display: flex;
  padding: 2rem 0;
}
body main #merit .content .item .container > img {
  width: 50%;
  padding: 0 1.5rem 0 0;
  -o-object-fit: cover;
     object-fit: cover;
}
body main #merit .content .item .container .text-wrap {
  font-family: "Noto Serif JP", serif;
  padding: 0 0 0 1.5rem;
}
body main #merit .content .item .container .text-wrap img {
  width: 60%;
  height: auto;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
body main #merit .content .item .container .text-wrap h3 {
  width: -moz-fit-content;
  width: fit-content;
  border-bottom: 3px solid #6c2754;
  margin: 0 0 1rem 0;
  font-weight: 600;
}
body main #merit .content .item:nth-of-type(2n) {
  background-color: #ffffff;
}
body main #merit .content .item:nth-of-type(2n) .container > img {
  order: 1;
  padding: 0 0 0 1.5rem;
}
body main #merit .content .item:nth-of-type(2n) .container .text-wrap {
  padding: 0 1.5rem 0 0;
}
@media screen and (max-width: 768px) {
  body main #merit .content .item .container {
    flex-direction: column;
    gap: 0.5rem;
  }
  body main #merit .content .item .container > img {
    width: 100%;
    padding: 0;
  }
  body main #merit .content .item .container .text-wrap {
    padding: 0;
  }
  body main #merit .content .item .container .text-wrap img {
    margin: 0 0 1rem 0;
  }
  body main #merit .content .item:nth-of-type(2n) .container > img {
    order: 0;
    padding: 0;
  }
  body main #merit .content .item:nth-of-type(2n) .container .text-wrap {
    padding: 0;
  }
}
body main #awards {
  padding: 0 0 auto 0;
}
body main #awards .inner {
  position: relative;
  -o-border-image: url(../img/img_frame.png) 101/50px/0px round;
     border-image: url(../img/img_frame.png) 101/50px/0px round;
}
body main #awards .inner .container {
  padding: 2rem 0 6rem 0;
  text-align: center;
}
body main #awards .inner .container .text-wrap {
  position: relative;
  z-index: 4;
  margin: 0 0 3.5rem 0;
}
body main #awards .inner .container .text-wrap p:not(:last-child) {
  margin: 0 0 1rem 0;
}
body main #awards .inner .container .content {
  position: relative;
  z-index: 4;
}
body main #awards .inner .container .content .item p:first-child {
  font-weight: 400;
}
body main #awards .inner .container .content .item p:nth-of-type(2) {
  margin: 1rem 0 0 0;
  padding: 0.5rem 0;
  background-color: #ede2eb;
}
body main #awards .inner .container .content .item:not(:last-child) {
  margin: 0 0 4rem 0;
}
body main #awards .inner .bg {
  transform: scale(50%);
  pointer-events: none;
  position: absolute;
  z-index: 3;
}
body main #awards .inner .bg1 {
  top: 4rem;
  left: 4rem;
}
body main #awards .inner .bg2 {
  bottom: 0;
  right: 4rem;
}
@media screen and (max-width: 1600px) {
  body main #awards .inner .bg {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  body main #awards .inner .container {
    text-align: left;
    padding: 2rem 1rem 2.5rem 1rem;
  }
  body main #awards .inner .container .text-wrap {
    margin: 0 0 4rem 0;
  }
  body main #awards .inner .container .content {
    overflow: hidden;
  }
  body main #awards .inner .container .content .item:not(:last-child) {
    margin: 0 0 2.5rem 0;
  }
  body main #awards .inner .container .content .item p:first-child {
    position: relative;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    font-size: 1.875rem;
  }
  body main #awards .inner .container .content .item p:first-child:before, body main #awards .inner .container .content .item p:first-child::after {
    position: absolute;
    content: "";
    top: 100%;
  }
  body main #awards .inner .container .content .item p:first-child:before {
    width: 120%;
    left: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 3px solid #6c2754;
    z-index: 2;
  }
  body main #awards .inner .container .content .item p:first-child:after {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 3px solid #ababab;
    z-index: 1;
  }
  body main #awards .inner .container .content .item p:nth-of-type(2) {
    padding: 0;
    background-color: #ffffff;
  }
}
body main #gallery {
  position: relative;
  background-color: #ede2eb;
}
body main #gallery .bg {
  pointer-events: none;
  position: absolute;
  max-width: 15%;
  min-width: 50px;
  height: auto;
}
body main #gallery .bg1 {
  top: 4rem;
  left: 6%;
}
body main #gallery .bg2 {
  bottom: 0;
  left: 6%;
}
body main #gallery .bg3 {
  top: 0;
  right: 6%;
}
body main #gallery .bg4 {
  bottom: 0;
  right: 6%;
}
body main #gallery .inner .container .wrapper .swiper {
  width: 100%;
}
body main #gallery .inner .container .wrapper .swiper .swiper-wrapper .swiper-slide img {
  width: 100%;
  max-height: 500px;
  min-height: 190px;
  -o-object-fit: cover;
     object-fit: cover;
  margin: 0 auto;
}
body main #gallery .inner .container .wrapper .swiper .swiper-pagination {
  position: static;
  margin: 1rem 0 0 0;
  height: -moz-fit-content;
  height: fit-content;
  line-height: 1;
}
body main #gallery .inner .container .wrapper .swiper .swiper-pagination span {
  width: 10px;
  height: 10px;
}
@media screen and (max-width: 768px) {
  body main #gallery .bg {
    max-width: 10%;
  }
  body main #gallery .bg1 {
    top: 3rem;
    left: 1%;
    max-width: 15%;
  }
  body main #gallery .bg2 {
    left: 1%;
  }
  body main #gallery .bg3 {
    right: 1%;
  }
  body main #gallery .bg4 {
    right: 1%;
  }
  body main #gallery .inner .container .wrapper .swiper .swiper-pagination {
    margin: 0.5rem 0 0 0;
  }
}
body main #recruit {
  padding: 2rem 0;
}
body main #recruit .inner .container a {
  text-align: center;
  margin: 0 auto;
  display: inline-block;
  padding: 0.5rem 4rem;
  color: #ffffff;
  background-color: #6c2754;
}
body main #recruit .inner .container a:hover {
  background-color: #511d3f;
}
body main #recruit .inner .container a:active {
  background-color: #511d3f;
}
@media screen and (max-width: 768px) {
  body main #recruit .inner .container a {
    width: 80%;
    padding: 0.4rem 0.5rem;
    min-width: -moz-fit-content;
    min-width: fit-content;
  }
}
body main #contents_mailform {
  background-color: #ffffff;
}
body main #contents_mailform .inner .container form table {
  display: block;
  margin: 0 0 2rem 0;
}
body main #contents_mailform .inner .container form table tbody {
  display: block;
}
body main #contents_mailform .inner .container form table tbody tr {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid #1a1a1c;
}
body main #contents_mailform .inner .container form table tbody tr:last-child {
  border-bottom: 1px solid #1a1a1c;
}
body main #contents_mailform .inner .container form table tbody tr th {
  padding: 0 0 0 2rem;
  flex-grow: 1;
  text-align: left;
}
body main #contents_mailform .inner .container form table tbody tr th label p {
  display: inline;
  margin: 0 0.5rem 0 0;
}
body main #contents_mailform .inner .container form table tbody tr th label .label-required,
body main #contents_mailform .inner .container form table tbody tr th label .label-option {
  color: #ffffff;
  padding: 0.1rem 0.5rem;
  word-break: keep-all;
}
body main #contents_mailform .inner .container form table tbody tr th label .label-required {
  background-color: #6c2754;
}
body main #contents_mailform .inner .container form table tbody tr th label .label-option {
  color: #6c2754;
  border: 1px solid #6c2754;
  font-weight: 500;
}
body main #contents_mailform .inner .container form table tbody tr td {
  padding: 0 2rem 0 0;
  width: 68%;
}
body main #contents_mailform .inner .container form table tbody tr td label {
  font-weight: 400;
}
body main #contents_mailform .inner .container form table tbody tr td ins {
  border: 1px solid #1a1a1c;
}
body main #contents_mailform .inner .container form table tbody tr td label {
  display: flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  gap: 0.5rem;
  margin: 0 2rem 0 0;
}
body main #contents_mailform .inner .container form table tbody tr td label p {
  line-height: 1;
}
body main #contents_mailform .inner .container form table tbody tr td input,
body main #contents_mailform .inner .container form table tbody tr td textarea,
body main #contents_mailform .inner .container form table tbody tr td select {
  background-color: #ffffff;
  border: 1px solid #1a1a1c;
  scroll-margin: 20px;
  width: 100%;
  padding: 0.3rem;
  font-weight: 400;
}
body main #contents_mailform .inner .container form table tbody tr td input:focus,
body main #contents_mailform .inner .container form table tbody tr td select:focus,
body main #contents_mailform .inner .container form table tbody tr td textarea:focus {
  outline: none;
}
body main #contents_mailform .inner .container form table tbody tr .column {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body main #contents_mailform .inner .container form table tbody tr .column label {
  margin: 0;
}
body main #contents_mailform .inner .container form table tbody .age {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
body main #contents_mailform .inner .container form table tbody .age input {
  text-align: center;
  width: 3rem;
}
body main #contents_mailform .inner .container form table tbody .age input[type=number]::-webkit-outer-spin-button,
body main #contents_mailform .inner .container form table tbody .age input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body main #contents_mailform .inner .container form table tbody .age input[type=number] {
  -webkit-appearance: textfield;
          appearance: textfield;
  -moz-appearance: textfield;
}
body main #contents_mailform .inner .container form table tbody .privacy {
  padding: 0.5rem;
}
body main #contents_mailform .inner .container form .wrap_button {
  text-align: center;
}
body main #contents_mailform .inner .container form .wrap_button button {
  padding: 0.5rem 4rem;
  color: #ffffff;
  background-color: #6c2754;
}
body main #contents_mailform .inner .container form .wrap_button button:hover {
  background-color: #511d3f;
}
body main #contents_mailform .inner .container form .wrap_button button:active {
  background-color: #511d3f;
}
@media screen and (max-width: 768px) {
  body main #contents_mailform .inner .container form table tbody tr {
    flex-direction: column;
    gap: 0.5rem;
  }
  body main #contents_mailform .inner .container form table tbody tr th {
    padding: 0;
    width: 100%;
  }
  body main #contents_mailform .inner .container form table tbody tr td {
    padding: 0;
    width: 100%;
  }
  body main #contents_mailform .inner .container form .wrap_button button {
    width: 80%;
    padding: 0.4rem 0.5rem;
    min-width: -moz-fit-content;
    min-width: fit-content;
  }
}
@media screen and (max-width: 640px) {
  body main #contents_mailform .inner .container form table tbody tr .column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
body footer {
  background-color: #ede2eb;
}
body footer nav {
  padding: 3rem 0 0 0;
  margin: 0 auto 3rem auto;
}
body footer nav ul {
  display: flex;
  gap: 3rem;
  justify-content: center;
  font-family: "Noto Serif JP", serif;
}
body footer #c-company {
  margin-top: 3rem;
}
body footer .company {
  margin: 0 0 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body footer .company img {
  margin: 0 0.5rem 0 0;
}
body footer .company .text-wrap h4 {
  line-height: 1;
}
body footer .address {
  margin: 0 0 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
body footer .address img {
  width: 2rem;
  margin: 0 0.25rem 0 0;
}
body footer .footer-bottom {
  background-color: #231815;
}
body footer .footer-bottom .inner p {
  color: rgba(255, 255, 255, 0.7);
  padding: 1rem 0;
  text-align: center;
}
@media screen and (max-width: 768px) {
  body footer nav {
    margin: 0 auto 2.5rem auto;
  }
  body footer nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  body footer nav ul li a {
    display: block;
  }
  body footer #c-company {
    margin-top: 0rem;
    border-top: none;
  }
  body footer .company {
    border-top: 1px solid #1a1a1c;
    padding: 2.5rem 0 0 0;
    margin: 0 0 0.5rem 0;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  body footer .company img {
    image-rendering: -webkit-optimize-contrast;
    margin: 0;
    width: 30px;
    height: auto;
  }
  body footer .address {
    font-size: 1.25rem;
    font-weight: 400;
  }
  body footer .address img {
    width: 1rem;
  }
}

#thanks {
  display: grid;
  grid-template: "main" 1fr "footer" auto/auto;
  min-height: 100vh;
}
#thanks main {
  margin-top: 1rem;
  grid-area: main;
  text-align: center;
}
#thanks footer {
  text-align: center;
  grid-area: footer;
}