/* ========================================
   download.css - 資料ダウンロードページ専用スタイル
   対象: download/index.html (itf-oa.jp/download/)
   ======================================== */

/* ----------------------------------------
   Header
   ---------------------------------------- */
.dl-header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.dl-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dl-header .site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0066cc;
  text-decoration: none;
}

.dl-header .site-logo:hover {
  text-decoration: none;
}

.site-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.site-logo-text {
  font-size: 1.125rem;
  font-weight: bold;
  white-space: nowrap;
}

.dl-header-back {
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  padding: 6px 0;
}

.dl-header-back:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.dl-hero {
  background: linear-gradient(135deg, #003d80 0%, #0066cc 60%, #0080e0 100%);
  color: #fff;
  padding: 48px 0 40px;
  text-align: center;
}

.dl-hero-title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.dl-hero-sub {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.7;
}

/* ----------------------------------------
   Content Layout
   ---------------------------------------- */
.dl-content {
  padding: 48px 0 64px;
  background-color: #f7f8fa;
}

.dl-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ----------------------------------------
   Sidebar
   ---------------------------------------- */
.dl-sidebar {
  flex: 0 0 300px;
  position: sticky;
  top: 80px;
}

.dl-sidebar-title {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0066cc;
}

/* 資料サムネイル */
.dl-doc-preview {
  margin-bottom: 28px;
  text-align: center;
}

.dl-doc-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 260px;
  margin: 0 auto 12px;
  background: linear-gradient(160deg, #e8f0fa 0%, #d0dff0 100%);
  border: 1px solid #c8d6e8;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dl-doc-thumb-text {
  font-size: 1rem;
  font-weight: bold;
  color: #0066cc;
  line-height: 1.6;
  text-align: center;
}

.dl-doc-format {
  font-size: 0.8125rem;
  color: #888;
}

/* 資料内容リスト */
.dl-doc-contents {
  margin-bottom: 28px;
}

.dl-doc-contents-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.6;
}

.dl-doc-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 2px;
}

/* バッジ */
.dl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-badges span {
  display: inline-block;
  background-color: #e8f0fa;
  color: #0066cc;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ----------------------------------------
   Form Wrapper
   ---------------------------------------- */
.dl-form-wrapper {
  flex: 1;
  min-width: 0;
}

.dl-form {
  background-color: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Fieldset */
.dl-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

.dl-fieldset-legend {
  font-size: 1.0625rem;
  font-weight: bold;
  color: #222;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
  width: 100%;
}

/* フォーム要素 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-required {
  display: inline-block;
  background-color: #cc3333;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccd0d5;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #aaa;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* 送信エリア */
.dl-form-submit {
  text-align: center;
  padding-top: 8px;
}

.dl-submit-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 16px;
  padding: 16px 32px;
  font-size: 1.0625rem;
  background-color: #0066cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.dl-submit-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.dl-form-note {
  font-size: 0.8125rem;
  color: #888;
  line-height: 1.6;
}

/* ----------------------------------------
   完了メッセージ（JS挿入）
   ---------------------------------------- */
.dl-complete {
  background-color: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  padding: 64px 32px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dl-complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: #0066cc;
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  margin-bottom: 24px;
}

.dl-complete-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 12px;
}

.dl-complete-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.7;
}

.dl-complete-link {
  display: inline-block;
  padding: 12px 32px;
  background-color: #0066cc;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.dl-complete-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

.dl-complete-back {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  color: #666;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.dl-footer {
  background-color: #1a1a2e;
  color: #999;
  padding: 32px 0;
  text-align: center;
}

.dl-footer .footer-service {
  font-size: 1rem;
  font-weight: bold;
  color: #ccc;
  margin-bottom: 4px;
}

.dl-footer .footer-company {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 8px;
}

.dl-footer .footer-company-link {
  color: #aab;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.dl-footer .footer-company-link:hover {
  color: #ccd;
  border-bottom-color: #ccd;
  text-decoration: none;
}

.dl-footer .footer-copy {
  font-size: 0.75rem;
}

/* ========================================
   レスポンシブ（768px以下）
   ======================================== */
@media (max-width: 768px) {

  /* Header */
  .site-logo-img {
    height: 34px;
  }

  .site-logo-text {
    font-size: 1rem;
  }

  .dl-header-back {
    font-size: 0.8125rem;
  }

  /* Hero */
  .dl-hero {
    padding: 36px 0 28px;
  }

  .dl-hero-title {
    font-size: 1.375rem;
  }

  .dl-hero-sub {
    font-size: 0.9375rem;
  }

  .dl-hero-sub br {
    display: none;
  }

  /* Layout */
  .dl-content {
    padding: 32px 0 48px;
  }

  .dl-layout {
    flex-direction: column;
    gap: 28px;
  }

  .dl-sidebar {
    flex: none;
    width: 100%;
    position: static;
  }

  .dl-doc-thumb {
    width: 160px;
    height: 208px;
  }

  /* Form */
  .dl-form {
    padding: 24px 20px;
    border-radius: 10px;
  }

  .dl-fieldset-legend {
    font-size: 1rem;
  }

  .dl-submit-btn {
    max-width: 100%;
  }

  /* Complete */
  .dl-complete {
    padding: 48px 20px;
  }
}
