/*
一般お問い合わせフォーム 専用CSS
00 共通 / 01 メイン画像 / 02 サイドバー / 03 フォーム
04 確認画面 / 05 CONTACT
Ctrl+Fで日本語の項目名を検索してください。
*/

/* #region 00 共通設定・本文幅
======================================== */
.gi-page { color: #102b43; background: #fff; }
.gi-container { width: min(1500px, calc(100% - 80px)); margin: 0 auto; }
.gi-page h2 { font: 500 clamp(25px, 2.4vw, 36px)/1.5 "Yu Mincho", "YuMincho", serif; }
.gi-heading { border-left: 2px solid #1685c1; padding-left: 16px; margin-bottom: 20px; }
.gi-heading > p { color: #627d9e; font: 11px/1.8 Georgia, serif; letter-spacing: .18em; }
.gi-small { font-size: 12px; line-height: 1.8; color: #536a84; }
.gi-page button, .gi-page input, .gi-page textarea { font-family: inherit; font-size: inherit; }
.gi-page button { cursor: pointer; }
.gi-page button:disabled { cursor: default; opacity: .65; }
.gi-page :focus-visible { outline: 3px solid #00a6a6; outline-offset: 3px; }
.gi-skip { position: absolute; top: -100px; left: 16px; z-index: 200; padding: 12px 20px; background: #fff; }
.gi-skip:focus { top: 10px; }
.gi-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gi-layout { display: grid; grid-template-columns: .75fr 1.65fr; gap: 35px; padding-top: 30px; padding-bottom: 30px; }
@media (max-width: 1000px) { .gi-layout { grid-template-columns: 1fr; } .gi-sidebar { order: 2; } }
@media (max-width: 767px) { .gi-container { width: calc(100% - 40px); } .gi-page h2 { font-size: 26px; } }
/* #endregion */

/* #region 01 メイン画像・お問い合わせ
======================================== */
.gi-hero { color: #fff; background: linear-gradient(90deg, #001321f2, #001321bb 42%, #00132100), url("../images/General Inquiries/淡い光のモダンオフィスとノートパソコン.png.webp") center / cover no-repeat; }
.gi-hero-inner { position: relative; min-height: 360px; padding: 22px 0 30px; }
.gi-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .08em; margin-bottom: 20px; }
.gi-hero h1 { font: 500 clamp(30px, 4vw, 57px)/1.5 "Yu Mincho", "YuMincho", serif; margin-bottom: 5px; }
.gi-hero-english { display: inline-block; font: 15px/1.8 Georgia, serif; letter-spacing: .18em; border-bottom: 1px solid #5fd2d5; margin-bottom: 15px; }
.gi-hero-copy { font: 500 clamp(20px, 2.2vw, 30px)/1.5 "Yu Mincho", serif; }
.gi-hero-message { font: 10px/1.8 Georgia, serif; letter-spacing: .17em; margin-top: 12px; }
.gi-hero-side { position: absolute; right: 0; bottom: 30px; font: 10px/1.8 Georgia, serif; letter-spacing: .18em; text-shadow: 0 1px 5px #001321; }
@media (max-width: 767px) { .gi-hero-side { display: none; } .gi-hero h1 { font-size: 30px; } .gi-breadcrumb { font-size: 10px; } }
/* #endregion */

/* #region 02 サイドバー・FAQ・電話・資料
======================================== */
.gi-side-box { padding: 22px 20px; margin-bottom: 22px; background: #f3f9fd; border-radius: 4px; }
.gi-side-box h2 { font-size: 28px; }
.gi-category-links { display: grid; gap: 2px; margin-top: 14px; }
.gi-category-links button { display: flex; align-items: center; gap: 18px; padding: 17px 14px; text-align: left; color: #102b43; background: #fff; border: 0; border-bottom: 1px solid #e3ecf3; font-size: 14px; }
.gi-category-links button > span:last-child { margin-left: auto; }
.gi-category-links button img { width: 30px; height: 30px; object-fit: contain; }
.gi-category-links button:hover { background: #eaf4fc; }
.gi-phone { overflow: hidden; padding-bottom: 0; }
.gi-phone-number { font-size: 25px; color: #073b76; margin-bottom: 8px; }
.gi-phone > img { width: 100%; height: 200px; object-fit: cover; object-position: center 65%; margin-top: 15px; }
.gi-download > p { font-size: 14px; line-height: 1.8; }
.gi-download > img { width: 100%; max-height: 140px; object-fit: contain; margin: 12px 0; }
.gi-outline-button { width: 100%; padding: 13px 18px; color: #102b43; background: #fff; border: 1px solid #506b85; font-size: 13px; }
/* #endregion */

/* #region 03 フォーム・4つの入力ブロック
======================================== */
.gi-form-area { min-width: 0; }
.gi-intro { font-size: 14px; line-height: 1.9; }
.gi-preview-note { background: #edf5fc; border-left: 3px solid #1771af; padding: 10px 14px; margin: 12px 0; font-size: 13px; line-height: 1.8; }
.gi-required-note, .gi-required, .gi-error { color: #ba2634; }
.gi-required-note { font-size: 12px; margin: 10px 0; }
.gi-required { margin-left: 10px; font-size: 12px; }
.gi-controls { border: 0; min-width: 0; }
.gi-form-section { margin-bottom: 20px; border: 1px solid #e2ebf3; box-shadow: 0 2px 6px #15334c08; }
.gi-form-section > h3 { display: flex; align-items: center; gap: 20px; font-size: 21px; font-weight: 600; padding: 5px 10px; background: linear-gradient(90deg, #dceaf6, #eef5fa); }
.gi-form-section > h3 > span { display: grid; place-items: center; flex: 0 0 49px; width: 49px; height: 49px; border: 4px solid #fff; border-radius: 50%; background: #005390; color: #fff; font: 25px/1 Georgia, serif; }
.gi-form-body { padding: 18px 22px; }
.gi-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 20px; margin-bottom: 14px; }
.gi-row:last-child { margin-bottom: 0; }
.gi-row-top { align-items: start; }
.gi-row > label, .gi-row > span { font-size: 15px; font-weight: 600; }
.gi-row > div { min-width: 0; }
.gi-page input:not([type=checkbox]):not([type=radio]):not([type=file]), .gi-page textarea { width: 100%; min-width: 0; border: 1px solid #bdcede; border-radius: 3px; padding: 11px 14px; font-size: 14px; background: #fff; color: #102b43; }
.gi-page input::placeholder, .gi-page textarea::placeholder { color: #71839b; }
.gi-page textarea { resize: vertical; min-height: 150px; }
.gi-name-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gi-category-fieldset { border: 0; padding: 0; min-width: 0; }
.gi-category-fieldset legend { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.gi-radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.gi-radio-grid label, .gi-consent-row > label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.7; }
.gi-page input[type=checkbox], .gi-page input[type=radio] { width: 19px; height: 19px; flex: 0 0 19px; margin-top: 3px; accent-color: #0068b7; }
.gi-counter { text-align: right; font-size: 12px; color: #61738b; }
.gi-page input[type=file] { max-width: 100%; font-size: 13px; }
.gi-page input[type=file]::file-selector-button { padding: 10px 15px; background: #fff; border: 1px solid #526e86; color: #102b43; margin-right: 10px; cursor: pointer; }
.gi-error { font-size: 12px; margin-top: 6px; }
.gi-text-button { background: none; border: 0; padding: 3px 0; text-decoration: underline; color: #123e66; font-size: 12px; text-align: left; }
.gi-consent-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.gi-submit-wrap { text-align: center; }
.gi-submit { display: inline-block; border: 0; border-radius: 3px; padding: 17px 35px; background: linear-gradient(90deg, #00336b, #05264b); color: #fff; font-size: 17px; font-weight: 600; }
.gi-submit:hover { background: #00629c; }
.gi-submit-wrap .gi-small { margin-top: 8px; }
@media (max-width: 1200px) { .gi-row { grid-template-columns: 140px minmax(0, 1fr); gap: 15px; } }
@media (max-width: 600px) {
    .gi-form-body { padding: 18px 15px; }
    .gi-row { grid-template-columns: 1fr; gap: 7px; margin-bottom: 18px; }
    .gi-radio-grid { grid-template-columns: 1fr; }
    .gi-form-section > h3 { font-size: 18px; gap: 12px; }
    .gi-submit-wrap .gi-submit { width: 100%; }
}
/* #endregion */

/* #region 04 入力確認・個人情報保護方針のダイアログ
======================================== */
.gi-page dialog { margin: auto; width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid #bfd3e3; border-radius: 6px; padding: 28px; color: #102b43; }
.gi-page dialog::backdrop { background: #00182bbb; }
.gi-page dialog h2 { margin-bottom: 15px; }
.gi-page dialog > p { line-height: 1.9; }
.gi-page dialog dl { display: grid; grid-template-columns: 170px minmax(0,1fr); margin: 20px 0; }
.gi-page dialog dt, .gi-page dialog dd { padding: 10px; border-bottom: 1px solid #dce7ef; font-size: 14px; }
.gi-page dialog dt { background: #f0f6fb; font-weight: 600; }
.gi-page dialog dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.gi-page dialog form { text-align: center; margin-top: 20px; }
@media (max-width: 600px) { .gi-page dialog { padding: 20px; } .gi-page dialog dl { grid-template-columns: 1fr; } }
/* #endregion */

/* #region 05 CONTACT・既存ページと統一
======================================== */
.gi-contact {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 65px 0;
  box-sizing: border-box;

  background:
    linear-gradient(
      90deg,
      rgba(0, 17, 34, 0.72) 0%,
      rgba(0, 25, 46, 0.30) 55%,
      rgba(0, 17, 34, 0.18) 100%
    ),
    url("../images/Circuit design/黄金の夕陽と跳ねるイルカの海.png.webp")
    center center / cover no-repeat;

  color: #ffffff;
}

/* コンテンツ全体 */

.gi-contact .contact-cta-inner {
  position: relative;
  z-index: 1;

  width: calc(100% - 80px);
  max-width: 1440px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

/* 左側 */

.gi-contact .contact-cta-content {
  max-width: 780px;
  flex: 1;
}

.gi-contact-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.gi-contact .contact-cta-title {
  margin: 0 0 22px;

  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.55;

  color: #ffffff;
}

.gi-contact .contact-cta-text {
  margin: 0 0 32px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;

  color: #ffffff;
}

/* ボタン */

.gi-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gi-contact-btn {
  min-height: 60px;
  padding: 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;

  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.8);

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.gi-contact-btn-white {
  background: #ffffff;
  color: #102235;
}

.gi-contact-btn-white:hover {
  background: #e7f0f6;
  color: #102235;
}

.gi-contact-btn-dark {
  background: rgba(0, 13, 27, 0.78);
  color: #ffffff;
}

.gi-contact-btn-dark:hover {
  background: rgba(0, 45, 75, 0.85);
  color: #ffffff;
}

/* 右側の英語 */

.gi-contact-message {
  flex-shrink: 0;
  margin: 0;

  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.16em;
}

/* スマートフォン */

@media (max-width: 767px) {

  .gi-contact {
    min-height: auto;
    padding: 65px 0;

    background-position: 62% center;
  }

  .gi-contact .contact-cta-inner {
    width: calc(100% - 40px);
    display: block;
  }

  .gi-contact .contact-cta-title {
    font-size: 27px;
  }

  .gi-contact .contact-cta-text {
    font-size: 14px;
  }

  .gi-contact-buttons {
    flex-direction: column;
  }

  .gi-contact-btn {
    width: 100%;
    min-height: 56px;
  }

  .gi-contact-message {
    margin-top: 35px;
    font-size: 10px;
  }

}



/* #endregion */
