@charset "utf-8";
/* =========================================================
   株式会社godspade 静的サイト
   もとの WordPress テーマ（godspade2018）の見た目を引き継ぎ、
   Works を外して、Service を写真カードにしたもの
   ========================================================= */

:root {
  --teal: #1FAEAE;
  --dark: #281E1C;
  --text: #333;
  --line: #ddd;
  --bg-soft: #f9f9f9;
  --font-en: 'Josefin Sans', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, li, dl, dt, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; vertical-align: bottom; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

html { scroll-behavior: smooth; }
html.is-modal-open { overflow: hidden; }
body {
  font-family: var(--font-ja);
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .lead, .lead__en, .kv-lead { font-family: var(--font-en); font-weight: 400; }
.serif { font-family: var(--font-serif); }

.pc { display: block; }
.sp { display: none; }

/* ---------- header ---------- */
header {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  z-index: 900;
}
.site-title { font-size: 0; line-height: 0; }
.logo { height: 35px; width: auto; }
.gnav { position: fixed; right: 20px; top: 15px; z-index: 900; }
.gnav ul { display: flex; }
.gnav li { margin-left: 15px; line-height: 35px; font-size: 18px; }
.gnav a { color: var(--dark); transition: color .3s; }
.gnav a:hover { color: var(--teal); }

/* ---------- layout: 左に本文、右に固定の見出し ---------- */
.content { display: flex; }
.content-left { width: 74%; min-width: 920px; }
.content-right {
  position: fixed;
  top: 0; right: 0;
  width: 26%;
  height: 100vh;
  background: #fff;
  pointer-events: none;
  z-index: 5;
}
.containar { position: relative; height: 100%; }

/* ---------- 右側の大きな見出し ---------- */
.content-right .lead {
  position: absolute;
  top: 35vh;
  right: 10px;
  width: 100vw;
  font-size: 5vw;
  line-height: 7vw;
  color: var(--dark);
  text-align: right;
  transform-origin: right;
  transform: translateY(30%);
  opacity: 0;
  transition: all .4s ease-in;
}
.content-right .lead.scrollin { transform: translateY(0); opacity: 1; }
.content-right #head.small { transform: scale(.4) translateY(30%); opacity: 0; }
.content-right #head.small.scrollin { transform: scale(.4) translateY(0); opacity: 1; }
.content-right #service,
.content-right #aboutus,
.content-right #contact { width: 35vw; line-height: 14vw; }
.content-right .lead .serif {
  position: absolute;
  right: 0;
  width: 26vw;
  margin-top: -40px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0;
}

/* ---------- ヒーロー（今のサイトのまま） ---------- */
.kv { position: relative; }
.slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  overflow: hidden;
}
.slider li {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slider li.is-active { opacity: 1; z-index: 1; }
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(80%) brightness(200%);
}
/* 切り替わるときに、青緑と焦げ茶の帯が右へ抜けていく */
.slider li::before,
.slider li::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
}
.slider li::before { background: var(--teal); }
.slider li::after { background: var(--dark); }
.slider li.is-active::after { animation: slide-anime 1s ease 0s 1 normal none; }
.slider li.is-active::before { animation: slide-anime 1.1s ease .1s 1 normal none; }
@keyframes slide-anime {
  0%   { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 1; }
}

/* ---------- お知らせ ---------- */
.news {
  position: relative;
  display: flex;
  width: 100%;
  height: 100px;
  background: var(--teal);
  overflow: hidden;
}
.news::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: width 2s ease .2s;
  pointer-events: none;
}
.news.scrollin::after { width: 0; }
.news__item {
  display: block;
  width: 100%;
  padding-top: 20px;
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease 1s, transform .5s ease 1s;
}
.news.scrollin .news__item { opacity: 1; transform: translateY(0); }
.news__item time {
  display: block;
  font-family: var(--font-en);
  font-size: 70px;
  letter-spacing: .3em;
  line-height: .7em;
}
.news__title {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: .2em;
}
.news__item:hover .news__title { text-decoration: underline; text-underline-offset: 4px; }
.news__item:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

/* ---------- セクション番号（縦線つき） ---------- */
.sep {
  position: relative;
  margin: 60px 60px 0;
  font-size: 12px;
  color: var(--text);
}
.sep::before {
  content: "";
  position: absolute;
  top: 200%;
  left: .5em;
  width: 1px;
  height: 1px;
  background: var(--text);
  transition: height .3s ease .5s;
}
.sep.scrollin::before { height: 120px; }

/* ---------- 01 Service（写真カード） ---------- */
.service {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 60px 120px 120px;
}
.service-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.service-card.is-shown { opacity: 1; transform: translateY(0); }
.service-card:nth-child(2) { transition-delay: .12s; }
.service-card:nth-child(4) { transition-delay: .12s; }
/* 写真 */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--img) var(--pos, center) / cover no-repeat; /* --pos で写真の見せる位置を変えられる */
  filter: saturate(70%);
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}
/* 文字を読みやすくする暗いグラデーション */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(40, 30, 28, .15) 0%, rgba(40, 30, 28, .55) 45%, rgba(40, 30, 28, .9) 100%);
  transition: background .6s ease;
}
.service-card:hover::before { transform: scale(1.1); filter: saturate(100%); }
.service-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 36px 40px;
}
/* 青緑の短い線 */
.service-card__body::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--teal);
  transition: width .6s ease;
}
.service-card:hover .service-card__body::before { width: 80px; }
.service-card h3 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
}
.service-card__ja {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .1em;
  color: #8fe0e0;
}
.service-card p {
  margin-top: 18px;
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, .9);
}

/* ---------- 02 About Us ---------- */
.aboutus { padding: 60px 240px; }
table {
  position: relative;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text);
  text-align: left;
}
th, td { border-top: 1px solid var(--line); vertical-align: middle; font-weight: 400; }
th { width: 30%; padding: 20px 0; white-space: nowrap; }
td { padding: 20px 0 20px 60px; }
table a { text-decoration: underline; }
table a:hover { color: var(--teal); }

/* ---------- 03 Contact ---------- */
#sec04 { margin-bottom: 40px; }
.contact {
  padding: 60px 8vw;
  background: url("../img/contact.jpg") center / cover;
}
.contact__box {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 3vw;
  background: var(--bg-soft);
  font-size: 12px;
  color: var(--text);
}
.contact-form { padding: 10px 0; }
.field {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 8px 30px;
  padding: 12px 0 12px 30px;
}
.field > label, .field > legend {
  float: left; /* legend を grid の中に置くため */
  padding-top: 8px;
  line-height: 1.6;
}
fieldset.field { display: grid; }
.field__control { min-width: 0; }
.require { color: #f00; }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
  width: 100%;
  max-width: 420px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #e04848; background: #fff6f6; }
.checks label { display: block; line-height: 2.2; cursor: pointer; }
.checks input, .checkbox input { margin: 0 8px 0 0; accent-color: var(--teal); vertical-align: -2px; }
.field__error { margin-top: 6px; color: #e04848; font-size: 12px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-agree { margin: 20px auto 30px; text-align: center; }
.form-agree .text-link { display: block; margin: 0 auto 16px; text-decoration: underline; font-size: 12px; }
.form-agree .text-link:hover { color: var(--teal); }
.checkbox { cursor: pointer; }
.form-agree .field__error { text-align: center; }

.form-error { margin-bottom: 16px; color: #e04848; text-align: center; }

/* 送信ボタン（今のサイトと同じ、左から青緑が満ちる動き） */
.btn {
  position: relative;
  display: block;
  width: 200px;
  height: 40px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 14px;
  letter-spacing: .1em;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s ease;
}
.btn span { position: relative; z-index: 1; transition: color 0s linear .1s; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover span, .btn:focus-visible span { color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }

.form-thanks { padding: 40px 10px; text-align: center; line-height: 2; }
.form-thanks:focus { outline: none; }
.form-thanks__en { font-family: var(--font-en); font-size: 40px; color: var(--teal); }
.form-thanks__title { margin: 8px 0 16px; font-size: 16px; color: var(--dark); }
.form-thanks__demo { margin-top: 16px; color: #999; }

/* ---------- footer ---------- */
footer {
  position: relative;
  z-index: 3;
  padding: 80px 100px 50px 50px;
  font-size: 12px;
  color: var(--text);
  text-align: center;
}

/* ---------- モーダル（お知らせ・個人情報保護方針） ---------- */
.modal {
  width: min(720px, calc(100% - 32px));
  max-height: min(80vh, 800px);
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--text);
  overflow: hidden;
}
.modal::backdrop { background: rgba(40, 30, 28, .7); }
.modal[open] { animation: modal-in .35s ease; }
.modal[open]::backdrop { animation: fade-in .35s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal__inner { position: relative; display: flex; flex-direction: column; max-height: inherit; }
.modal__inner::before { content: ""; display: block; height: 6px; background: var(--teal); flex: none; }
.modal__body { padding: 48px 56px 56px; overflow-y: auto; }
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  z-index: 1;
}
.modal__close::before, .modal__close::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 1px;
  background: var(--dark);
  transition: background .2s;
}
.modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__close:hover::before, .modal__close:hover::after { background: var(--teal); }
.modal__label { font-family: var(--font-en); font-size: 14px; letter-spacing: .2em; color: var(--teal); }
.modal__date { display: block; margin-top: 18px; font-family: var(--font-en); font-size: 14px; letter-spacing: .2em; color: #888; }
.modal__title { margin-top: 8px; font-family: var(--font-ja); font-size: 22px; font-weight: 500; line-height: 1.6; color: var(--dark); letter-spacing: .05em; }
.modal__text { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; line-height: 2; }
.modal__text p + p, .modal__text p + dl, .modal__text dl + p { margin-top: 1em; }
.modal__text dt { margin-top: 20px; font-weight: 500; color: var(--dark); }
.modal__text dt::before { content: "■"; margin-right: 10px; }
.modal__text dd { font-size: 13px; }
.modal__list { margin-top: 40px; }
.modal__list-head { font-size: 12px; letter-spacing: .1em; color: #888; margin-bottom: 8px; }
.modal__list li { border-top: 1px solid var(--line); }
.modal__list li:last-child { border-bottom: 1px solid var(--line); }
.modal__list button { display: flex; gap: 20px; width: 100%; padding: 14px 4px; text-align: left; font-size: 13px; }
.modal__list button:hover { color: var(--teal); }
.modal__list button[aria-current="true"] { color: var(--teal); }
.modal__list time { font-family: var(--font-en); letter-spacing: .1em; color: #888; flex: none; }

/* ---------- スマホ用メニュー ---------- */
#spmenu {
  position: fixed;
  inset: 0;
  z-index: 1005;
  background: var(--dark);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: .5s ease;
}
#spmenu.active { opacity: 1; visibility: visible; transform: translateX(0); }
#spmenu ul { width: 50%; margin: 40% 25% 0; }
#spmenu a { color: #fff; font-size: 32px; line-height: 1.8; }
.hbmenu {
  position: fixed;
  top: 0; right: 2vw;
  z-index: 1006;
  width: 30px;
  height: 44px;
  overflow: hidden;
  display: none;
}
.hbmenu span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal);
  border-radius: 4px;
  transition: all .4s;
}
.hbmenu span:nth-of-type(1) { top: 10px; }
.hbmenu span:nth-of-type(2) { top: 20px; }
.hbmenu span:nth-of-type(3) { top: 30px; }
.hbmenu.active span:nth-of-type(1) { top: 20px; transform: rotate(45deg); }
.hbmenu.active span:nth-of-type(2) { opacity: 0; }
.hbmenu.active span:nth-of-type(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- 動きを減らす設定の人には、動きを止める ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   中くらいの画面（タブレット横など）
   ========================================================= */
@media (max-width: 1280px) and (min-width: 835px) {
  .content-left { min-width: 0; }
  .service { padding: 60px 60px 100px; gap: 16px; }
  .service-card h3 { font-size: 24px; }
  .aboutus { padding: 60px 120px; }
}

/* =========================================================
   スマホ（834px 以下）
   ========================================================= */
@keyframes marquee {
  from { transform: translateX(0); }
  99%, to { transform: translateX(-100%); }
}
@media (max-width: 834px) {
  .pc { display: none; }
  .sp { display: block; }
  header { padding: 2vw; }
  .gnav { display: none; }
  .hbmenu.sp { display: block; }

  .content-left { width: 100%; min-width: 0; }
  .content-right { display: none; }

  /* ヒーロー */
  .slider { height: 95vh; }
  .kv-lead {
    position: absolute;
    top: 30vh;
    right: 0;
    width: 95vw;
    padding-right: 5vw;
    font-size: 12vw;
    line-height: 1.2;
    text-align: right;
    z-index: 2;
  }
  .content-under { margin-top: -15vh; position: relative; z-index: 3; }
  .news { width: 60%; height: 100px; top: 40px; z-index: 2; }
  .news__item { padding: 30px 20px 0; text-align: left; overflow: hidden; }
  .news__item time { font-size: 22px; letter-spacing: .3em; line-height: 1; }
  .news__title { display: block; white-space: nowrap; font-size: 14px; animation: marquee 10s linear infinite; }

  /* 見出しブロック */
  .lead-sp {
    padding: 0 5%;
    opacity: 0;
    transform: translateY(20px);
    transition: all .5s ease;
  }
  .lead-sp.scrollin { opacity: 1; transform: translateY(0); }
  .lead-sp h2 { font-size: 17vw; text-align: right; line-height: 1.1; }
  .lead-sp p { margin-top: 10px; font-size: 13px; line-height: 1.8; letter-spacing: .05em; text-align: right; }
  .sep { margin: 40px 4%; }

  .vision {
    position: relative;
    min-height: 100vw;
    background: url("../img/vision.jpg") center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .vision .lead-sp {
    position: absolute;
    right: 0;
    width: 80%;
    padding: 20px 5vw 20px 0;
    background: #fff;
  }
  .vision .sep { position: absolute; top: 10%; color: #fff; }
  .vision .sep::before { background: #fff; top: 20px; }

  /* Service */
  .service { grid-template-columns: 1fr; gap: 16px; padding: 40px 5% 60px; }
  .service-card { min-height: 340px; }
  .service-card__body { padding: 28px 24px 30px; }
  .service-card h3 { font-size: 26px; white-space: normal; }

  /* About */
  .aboutus { padding: 40px 5% 60px; }
  .aboutus table { table-layout: fixed; }
  .aboutus th { white-space: normal; padding-left: 10px; }
  .aboutus td { padding-left: 10px; }

  /* Contact */
  .lead-contact {
    position: relative;
    height: 50vh;
    margin-top: 60px;
    background: url("../img/contact-sp.jpg") center / cover;
  }
  .lead-contact .lead-sp { position: absolute; right: 0; top: 15%; width: 80%; padding: 40px 5%; background: #fff; }
  .lead-contact .sep { position: absolute; top: 0; color: var(--text); }
  .lead-contact .sep::before { background: var(--text); top: 20px; }
  .contact { padding: 30px 5vw; background: none; }
  .contact__box { padding: 20px 4vw; }
  .field { grid-template-columns: 1fr; padding: 10px 0; gap: 6px; }
  .field > label, .field > legend { padding-top: 0; }
  .field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { max-width: none; }

  footer { padding: 40px 0 30px; }

  .modal__body { padding: 40px 24px 40px; }
  .modal__title { font-size: 18px; }
}
