/* -- Root variables -- */
:root {
  --bg:     #f7f7f7;
  --ink:    #333;
  --line:   #eaeaea;
  --accent: #333;
}

/* -- Base -- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  background-color: #fff;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0 0 1.2rem; }
h2 {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-style: normal;
}
a { color: #00b1bb; }
a:hover { text-decoration: none; }

/* -- Layout -- */
.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: 24px 16px 48px;
}
.section-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  margin: 24px 0 32px;
  line-height: 1em;
}

.toppage .section-title {
  font-size: clamp(44px, 5vw, 60px);
  line-height: .8em;
} 
.section-title span {
  color: #888;
  font-weight: normal;
  font-size: clamp(11px, 1.25vw, 15px);
  letter-spacing: 0;
  display: block;
}

/* -- Hero -- */
.fv {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  /*background: url("../images/bg-y.jpg") center center / cover no-repeat;*/
  background-image: url("../images/bg_type1.png");
  background-attachment: fixed;
  background-repeat: repeat;
}
.logo {
  width: 200px;
}
.logo img {
  width: 100%;
}
.fv-caption {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: .85;
}
.scroll {
  position: absolute;
  bottom: 2em;
  left: 50%;
  transform: translateX(-50%);
  width: 3em;
  height: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.scroll span {
  width: 1em;
  height: 1em;
  position: absolute;
  top: 25%;
  left: 33%;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: translateY(0) rotate(-45deg);
  animation: popping-arrow 2s infinite ease-out;
}
.scroll:hover span {
  transform: translateY(.5em) rotate(-45deg);
  animation-play-state: paused;
}
@keyframes popping-arrow {
  0%, 60% { transform: translateY(0) rotate(-45deg); }
  30%     { transform: translateY(.5em) rotate(-45deg); }
}

/* -- Service -- */
.service {
  position: relative;
  background: #fff;
  padding: 64px 0;
}

.service-list { display: grid; gap: 20px; }
.gray-btn {
  width: 100%;
  display: block;
}
.gray-btn img {
  width: 100%;
  height: auto;
  transition: transform .2s;
}
.gray-btn:hover img { transform: translateY(2px); }


/* -- About -- */
.top {
  background: var(--bg);
}
.about {
  padding: 64px 0;
}
#about {
  background-image: url("../images/bg_c.png");
  background-attachment: fixed;
  background-repeat: repeat;
}
.about .lead {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
  text-align: justify;
  border: 2px solid black;
}
.company-title {
  text-align: center;
  margin-top: 20px;
}
.company-wrap { max-width: 820px; margin: 0 auto; }
.company-table {
  width: 100%;
  max-width: 820px;
  margin: 24px auto 0;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 20px 18px;
  text-align: left;
}
.company-table th { width: 26%; font-weight: 700; }
.company-table tr { border-bottom: 1px solid #ddd; }

/* -- Contact -- */
.contact {
  padding: 64px 0 80px;
  background: #fff;
}
.contact-form { width: min(100%, 824px); margin: 0 auto; }
.cf-item {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.cf-label {
  flex: 0 0 215px;
  position: relative;
  padding: 10px;
  font-weight: 700;
}
.cf-label--required::after {
  content: '必須';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  padding: .2em .4em;
  background: #FF0000;
}
.cf-label--optional::after {
  content: '任意';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  padding: .2em .4em;
  background: #A0A0A0;
}
.cf-input,
.cf-select,
.cf-textarea {
  flex: 1 1 auto;
  border: 1px solid #000;
  border-radius: 5px;
  padding: 10px;
  font-size: 15px;
}
.cf-input { height: 44px; }
.cf-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 44px;
  padding-right: 34px;
  line-height: 1.1em;
  background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1697571/chevron-down.svg) no-repeat right 10px center;
}
.cf-textarea { min-height: 160px; resize: vertical; }
.cf-privacy { margin: 28px 0 24px; }
.kakunin { text-align: center; margin: 1em; }
.cf-privacy__title { font-weight: 700; margin-bottom: 10px; }
.cf-privacy__box {
  border: 1px solid #c0c0c0;
  height: 125px;
  padding: 10px;
  overflow: auto;
  margin-bottom: 10px;
}
.cf-privacy__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #F0F0F0;
  padding: 40px 10px;
  min-height: 50px;
  font-weight: 700;
}
.cf-privacy__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.cf-privacy__agree .required {
  background: #FF0000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  padding: .2em .4em;
  margin-left: 5px;
}
.cf-privacy__agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #111;
}
.cf-message {
  text-align: center;
  color: #FF0000;
  font-weight: 700;
  margin: 24px 0 36px;
}
.cf-actions { text-align: center; }

/* -- Buttons: Submit (cf-actions) -- */
input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 20px;
  width: 300px;
  height: 60px;
  cursor: pointer;
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
}
.cf-actions input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 50px;
  width: 300px;
  height: 60px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .06s ease;
}
@media (hover:hover) and (pointer:fine) {
  .cf-actions input[type="submit"]:hover {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
  }
}
.cf-actions input[type="submit"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.cf-actions input[type="submit"]:active { transform: translateY(1px); }
.cf-actions input[type="submit"][disabled],
.cf-actions input[type="submit"][aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* -- ToTop & Reveal -- */
#toTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .35s;
  z-index: 50;
  cursor: pointer;
}
#toTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-item.is-shown { opacity: 1; transform: none; }

/* -- Responsive -- */
@media (min-width: 960px) {
  .container { padding: 64px 32px 120px; }
  .service-list { grid-template-columns: 1fr 1fr; gap: 32px; max-width: 760px; margin-inline: auto; }
  .about .lead, .sml__ { max-width: 820px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .container { padding: 48px 16px 96px; }
  .cf-item { display: block; margin-bottom: 18px; }
  .cf-label { display: inline-block; padding: 10px 0; }
  .cf-label--required::after,
  .cf-label--optional::after { position: static; transform: none; margin-left: 10px; }
  .cf-input,
  .cf-select,
  .cf-textarea { width: 100%; }
  .cf-privacy__box { height: 75px; font-size: 12px; }
  .cf-privacy__agree { font-size: 12px; word-break: keep-all; }
  input[type="submit"] { width: 100%; height: auto; }
}
@media (max-width: 360px) {
  .cf-privacy__agree { padding: 10px 8px; }
}

/* -- Footer -- */
.site-footer {
  background: #f7f7f7;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 20px 16px;
}
.footer-nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.footer-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.footer-nav a:hover,
.footer-nav a:focus { border-color: currentColor; }
.footer-copy {
  font-size: 14px;
  white-space: nowrap;
  margin-left: 2em;
}
@media (max-width: 640px) {
  .site-footer .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* -- Top Page Link Button -- */
.btn-toplink { text-align: center; margin: 30px auto 0; }
.btn-toplink a {
  display: inline-block;
  background: #000;
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  border: 2px solid #000;
  transition: all .25s ease;
}
.btn-toplink a:hover,
.btn-toplink a:focus {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* -- Terms: TOC & Body -- */
.sml__ { max-width: 820px; margin: 0 auto 60px; text-align: justify;}
.toc {
  background: #efefef;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0 28px;
}
.toc ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.toc li + li { margin-top: 8px; }
.toc a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.toc a:hover,
.toc a:focus { border-color: currentColor; }
.terms { max-width: 820px; margin: 0 auto; }
.terms-section + .terms-section { margin-top: 28px; }
.terms-heading {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 800;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}
.terms-list { margin: 0; padding-left: 1.3em; }
.terms-list li { margin: 6px 0; }
.terms-bullets { margin: 0; padding-left: 1.2em; }
.terms-bullets li { list-style: disc; margin: 6px 0; }
@media (max-width: 640px) {
  .toc { font-size: 14px; padding: 12px 14px; }
  .terms { padding: 0 2px; }
}

/* -- Privacy Policy blocks -- */
.policy { max-width: 820px; margin: 0 auto; }
.policy-section + .policy-section { margin-top: 28px; }
.policy-heading {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 800;
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
}
.policy-bullets { margin: 0; padding-left: 1.2em; }
.policy-bullets li { list-style: disc; margin: 6px 0; }
.policy-note { font-size: 0.92rem; opacity: .85; margin-top: 8px; }
@media (max-width: 640px) {
  .policy { padding: 0 2px; }
}

/* aboutへ追加 */
.about .about_images {
  display: flex;
  gap: 20px;
  max-width: 820px;
  margin: 60px auto 0;
}

.about .about_images div img {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .about .about_images {
    flex-direction: column;
  }
}

/* illust */

.about .container {
  position: relative;
}

.about .ill_01 {
  position: absolute;
  top: -130px;
  right: -130px;
  z-index: 0;
}

.about .ill_01 img {
  width: 400px;
  height: auto;
}

.about .ill_02 {
  position: absolute;
  bottom: -130px;
  left: -100px;
  z-index: 0;
}

.about .ill_02 img {
  width: 200px;
  height: auto;
}

@media (max-width: 767px) {
.about .ill_01 {
  top: -30px;
  right: -40px;
}

.about .ill_01 img {
  width: 200px;
  height: auto;
}

.about .ill_02 {
  bottom: -100px;
  left: 0;
}

.about .ill_02 img {
  width: 100px;
  height: auto;
}
}

.cont_logo {
  width: 120px;
  margin: auto;
}
.cont_logo img {
  width: 100%;
}