/* ============================================================
   Reset
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Base
   ============================================================ */
.xvieworks {
  font-family: 'Nunito Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: #333;
  background: #fff;
  min-width: 1240px;
}

@media (max-width: 767px) {
  .xvieworks {
    min-width: 0;
  }
}

@media (min-width: 768px) {
  .xvieworks br.only-sp { display: none; }
}
@media (max-width: 767px) {
  .xvieworks br.only-pc { display: none; }
}

/* ============================================================
   Header
   ============================================================ */
.xvieworks__header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 83px;
  background: linear-gradient(0deg, #eeeeee 0%, #ffffff 100%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xvieworks__menu-btn {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.xvieworks__menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}

/* ロゴ：縦横1.3倍（28px → 36px） */
.xvieworks__logo {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.04em;
}

/* ============================================================
   Drawer
   ============================================================ */
.xvieworks__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.xvieworks__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.xvieworks__drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: #fff;
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 30px 0 40px;
}

.xvieworks__drawer.is-open {
  transform: translateX(0);
}

.xvieworks__drawer-close {
  position: absolute;
  top: 20px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #333;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xvieworks__nav-list {
  margin-top: 60px;
}

.xvieworks__nav-list li a {
  display: block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #333;
  transition: background 0.2s;
}

.xvieworks__nav-list li a:hover {
  background: #f5f5f5;
}

/* ============================================================
   TOP — Hero（「素」切れ対応：top.jpg上に55px余白）
   ============================================================ */
.xvieworks__top {
  position: relative;
  height: 760px;
  margin-top: 83px;
  background: #fff;
  overflow: hidden;
}

.xvieworks__top-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 55px);
  object-fit: cover;
  object-position: center;
}

.xvieworks__top-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
}

/* 縦書きキャッチコピー */
.xvieworks__kv-text {
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 48px;
  font-weight: 800;
  color: #000;
  writing-mode: vertical-rl;
  -ms-writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  line-height: 1.4;
  padding: 20px;
  height: 499px;
  width: 186px;
  text-align: left;
}

/* ============================================================
   CONCEPT（テキスト60% / 画像40%）
   ============================================================ */
.xvieworks__concept {
  background: #fff;
}

.xvieworks__concept-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 1100px;
  max-width: 100%;
  margin: 209px auto 50px;
  gap: 40px;
}

.xvieworks__concept-text {
  flex: 0 0 calc(60% - 20px);
  max-width: calc(60% - 20px);
}

.xvieworks__concept-title {
  font-size: 28px;
  font-weight: 800;
  color: #333;
  line-height: 1.4;
  margin-bottom: 20px;
}

.xvieworks__concept-desc {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

.xvieworks__concept-img {
  flex: 0 0 calc(40% - 20px);
  max-width: calc(40% - 20px);
  height: 300px;
  overflow: hidden;
}

.xvieworks__concept-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   VISION（テキスト60% / 画像40%）
   ============================================================ */
.xvieworks__vision {
  background: #fff;
  margin-top: 83px;
  margin-bottom: 115px;
}

.xvieworks__vision-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
  gap: 60px;
}

.xvieworks__vision-img {
  flex: 0 0 calc(40% - 30px);
  max-width: calc(40% - 30px);
}

.xvieworks__vision-img img {
  width: 100%;
  height: auto;
  display: block;
}

.xvieworks__vision-text {
  flex: 0 0 calc(60% - 30px);
  max-width: calc(60% - 30px);
}

.xvieworks__vision-title {
  font-size: 28px;
  font-weight: 800;
  color: #333;
  line-height: 1.4;
  margin-bottom: 20px;
}

.xvieworks__vision-desc {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

/* ============================================================
   PROFILE
   ============================================================ */
.xvieworks__profile {
  background: #fff;
}

.xvieworks__profile-inner {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
  padding: 80px 0;
}

.xvieworks__profile-heading {
  font-size: 28px;
  font-weight: 800;
  color: #333;
  line-height: 1.4;
  margin-bottom: 40px;
  width: 80%;
  max-width: 80%;
}

.xvieworks__profile-table {
  width: 1000px;
  max-width: 100%;
}

/* 各行：dt＋dd を横並び */
.xvieworks__profile-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  margin-bottom: 24px;
}

.xvieworks__profile-row dt {
  font-size: 24px;
  font-weight: 800;
  color: #333;
  line-height: 1.4;
  flex: 0 0 30%;
  max-width: 30%;
}

.xvieworks__profile-row dd {
  font-size: 24px;
  font-weight: 400;
  color: #333;
  line-height: 1.4;
  flex: 0 0 70%;
  max-width: 70%;
}

/* ============================================================
   PRODUCT
   ============================================================ */
.xvieworks__product {
  background: #fff;
  padding: 37px 0;
}

.xvieworks__product-inner {
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  padding: 37px 0;
}

.xvieworks__product-grid-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
}

.xvieworks__product-grid-row + .xvieworks__product-grid-row {
  margin-top: 52px;
}

.xvieworks__product-item {
  width: 47%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin-bottom: 30px;
}

.xvieworks__product-name {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-bottom: 20px;
}

.xvieworks__product-desc {
  font-size: 18px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin-bottom: 40px;
}

.xvieworks__product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s;
  margin-bottom: 10px;
  font-family: inherit;
}

.xvieworks__product-btn:hover {
  transform: scale(1.05);
}

/* ============================================================
   PARTITION
   ============================================================ */
.xvieworks__partition {
  width: 100%;
  height: 200px;
  background: rgb(125, 132, 148);
}

/* ============================================================
   INQUIRY — FAQ + Form
   ============================================================ */
.xvieworks__inquiry {
  background: #fff;
}

.xvieworks__inquiry-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 74px 30px;
  gap: 40px;
}

/* FAQ */
.xvieworks__faq {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
}

.xvieworks__faq-heading {
  font-size: 48px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-bottom: 29px;
  text-align: center;
}

.xvieworks__faq-list {
  border-top: 1px solid #e0e0e0;
}

.xvieworks__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.xvieworks__faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  padding: 18px 40px 18px 0;
  line-height: 1.5;
  position: relative;
  display: block;
}

.xvieworks__faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: #999;
  transition: transform 0.3s;
}

.xvieworks__faq-item.is-open .xvieworks__faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.xvieworks__faq-a {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  padding: 0 0 18px;
  display: none;
}

.xvieworks__faq-item.is-open .xvieworks__faq-a {
  display: block;
}

/* Contact Form */
.xvieworks__form-wrap {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
}

.xvieworks__form-heading {
  font-size: 48px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.xvieworks__form-lead {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 32px;
}

.xvieworks__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.xvieworks__form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xvieworks__form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.xvieworks__form-required {
  color: #e53935;
  font-size: 14px;
}

.xvieworks__form input[type="text"],
.xvieworks__form input[type="tel"],
.xvieworks__form input[type="email"],
.xvieworks__form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.xvieworks__form input:focus,
.xvieworks__form textarea:focus {
  border-color: #999;
}

.xvieworks__form textarea {
  height: 120px;
  resize: vertical;
}


.xvieworks__form-confirm-btn,
.xvieworks__form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 60px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  margin-top: 8px;
  align-self: flex-start;
}

.xvieworks__form-confirm-btn:hover,
.xvieworks__form-submit:hover {
  opacity: 0.75;
}

/* 確認画面 */
.xvieworks__confirm {
  display: none;
}

.xvieworks__confirm.is-active {
  display: block;
}

.xvieworks__confirm-heading {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 24px;
}

.xvieworks__confirm-note {
  font-size: 14px;
  color: #555;
  margin-bottom: 28px;
  line-height: 1.6;
}

.xvieworks__confirm-list {
  border-top: 1px solid #e0e0e0;
  margin-bottom: 32px;
}

.xvieworks__confirm-row {
  display: flex;
  flex-direction: row;
  padding: 14px 0;
  border-bottom: 1px solid #e0e0e0;
  gap: 16px;
}

.xvieworks__confirm-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  flex: 0 0 100px;
}

.xvieworks__confirm-value {
  font-size: 14px;
  color: #333;
  flex: 1;
  line-height: 1.6;
  white-space: pre-wrap;
}

.xvieworks__confirm-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.xvieworks__confirm-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 40px;
  border-radius: 6px;
  border: 1px solid #333;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.xvieworks__confirm-back-btn:hover {
  background: #f5f5f5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.xvieworks__footer {
  background: #fff;
  text-align: center;
  padding: 30px 0;
}

.xvieworks__footer p {
  font-size: 20px;
  font-weight: 400;
  color: #333;
}

/* ============================================================
   MODAL
   ============================================================ */
.xvieworks__modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.xvieworks__modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.xvieworks__modal-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  padding: 40px 44px;
  width: 480px;
  max-width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.xvieworks__modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #333;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xvieworks__modal-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.xvieworks__modal-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.xvieworks__modal-thumb {
  flex: none;
  width: 156px;
  height: 116px;
  overflow: hidden;
  border-radius: 4px;
}

.xvieworks__modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xvieworks__modal-label {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1.4;
}

/* ============================================================
   PC（min-width: 768px）
   ============================================================ */
@media (min-width: 768px) {
  .xvieworks__inquiry-inner {
    flex-wrap: nowrap;
  }
}

/* ============================================================
   SP（max-width: 767px）
   ============================================================ */
@media (max-width: 767px) {
  .xvieworks__header {
    height: 60px;
  }

  .xvieworks__logo {
    font-size: 22px;
  }

  .xvieworks__top {
    height: 500px;
    margin-top: 60px;
  }

  .xvieworks__top-bg {
    height: calc(100% - 40px);
  }

  .xvieworks__kv-text {
    font-size: 30px;
    height: auto;
    width: auto;
    right: 10px;
    top: 10px;
    padding: 10px;
  }

  .xvieworks__concept-inner {
    flex-direction: column;
    margin: 60px auto 40px;
    padding: 0 20px;
  }

  .xvieworks__concept-text,
  .xvieworks__concept-img {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .xvieworks__concept-img {
    height: 240px;
  }

  .xvieworks__concept-title {
    font-size: 22px;
  }

  .xvieworks__concept-desc {
    font-size: 16px;
  }

  .xvieworks__vision {
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .xvieworks__vision-inner {
    flex-direction: column;
    padding: 0 20px;
  }

  .xvieworks__vision-img,
  .xvieworks__vision-text {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .xvieworks__vision-img {
    height: auto;
  }

  .xvieworks__vision-title {
    font-size: 22px;
  }

  .xvieworks__vision-desc {
    font-size: 16px;
  }

  /* Profile SP：ラベル上・値下に縦スタック */
  .xvieworks__profile-inner {
    padding: 50px 20px;
  }

  .xvieworks__profile-heading {
    font-size: 22px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .xvieworks__profile-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .xvieworks__profile-row dt {
    font-size: 15px;
    flex: none;
    max-width: 100%;
    width: 100%;
    margin-bottom: 4px;
  }

  .xvieworks__profile-row dd {
    font-size: 15px;
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .xvieworks__product-inner {
    padding: 20px 0;
  }

  .xvieworks__product-item {
    width: 100%;
    padding: 0 20px;
  }

  .xvieworks__product-name {
    font-size: 24px;
  }

  .xvieworks__product-desc {
    font-size: 16px;
  }

  .xvieworks__inquiry-inner {
    flex-direction: column;
    padding: 40px 20px;
  }

  .xvieworks__faq {
    max-width: 100%;
  }

  .xvieworks__faq-heading,
  .xvieworks__form-heading {
    font-size: 28px;
  }

  .xvieworks__form-wrap {
    max-width: 100%;
  }

  .xvieworks__confirm-heading {
    font-size: 22px;
  }

  .xvieworks__confirm-row {
    flex-direction: column;
    gap: 4px;
  }

  .xvieworks__confirm-label {
    flex: none;
  }

  .xvieworks__modal-box {
    padding: 30px 24px;
  }

  .xvieworks__modal-thumb {
    width: 120px;
    height: 90px;
  }

  .xvieworks__modal-label {
    font-size: 16px;
  }
}
