/* 全体のリセットとベーススタイル */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }
  
  body {
    line-height: 1.6;
    background-color: #FFF5F5; /* 画像に合わせてより薄いピンク色に変更 */
    color: #333;
  }
  
  /* アプリコンテナ */
  .app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* ナビゲーションバー */
  .nav-bar {
    background-color: #FFF5F5; /* 背景色を本体と同じに変更 */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(229, 115, 115, 0.1); /* 薄い区切り線を追加 */
  }
  
  .back-button {
    color: #E57373; /* 濃いピンク */
    font-size: 20px;
    cursor: pointer;
    width: 24px; /* 固定幅を設定 */
  }
  
  .title {
    flex-grow: 1;
    text-align: center;
    color: #E57373; /* 濃いピンク */
    font-size: 18px;
    font-weight: 500;
    margin-right: 24px; /* 左の戻るボタンの幅と同じ */
  }
  
  /* コンテンツエリア */
  .content-area {
    flex-grow: 1;
    padding: 15px;
    background-color: #FFF8F4; /* 背景色を変更 */
  }
  
  /* フォームリスト */
  .form-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* アイテム間の間隔を調整 */
    max-width: 500px; /* 最大幅を制限 */
    margin: 0 auto; /* 中央寄せ */
  }
  
  /* リストアイテム */
  .list-item {
    background-color: #FFFFFF; /* 白 */
    padding: 15px 15%;
    border-radius: 5px; /* 角の丸みを調整 */
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: none; /* 影を削除 */
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent; /* 透明なボーダーを追加 */
    width: 100%; /* 幅を100%に */
  }
  
  /* グラデーションボーダー */
  .list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    padding: 2px; /* ボーダーの太さ */
    background: linear-gradient(to right, #FFDAB9, #FFC0CB); /* グラデーションを調整 */
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  
  .list-item:hover, .list-item:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  .item-icon {
    color: #E57373; /* 濃いピンク */
    font-size: 28px; /* アイコンサイズを大きく */
    margin-right: 18px;
    min-width: 50px; /* アイコン領域を広げる */
    height: 50px; /* アイコン領域を広げる */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* アイコンサイズを固定 */
  }
  
  /* Google Driveから読み込んだ画像用のスタイル */
  .menu-icon {
    width: 38px; /* 画像サイズを大きく */
    height: 38px; /* 画像サイズを大きく */
    object-fit: contain;
    display: block;
    /* 画像の最適化 */
    will-change: transform; /* GPU加速のヒント */
  }
  
  .item-text {
    color: #E57373; /* テキストを濃いピンクに変更 */
    font-size: 16px;
    font-weight: 400; /* フォントの太さを調整 */
    text-align: left; /* テキストは左揃え */
    max-width: calc(100% - 70px); /* アイコン＋マージンを引いた幅（アイコンが大きくなったので調整） */
    /* 長いテキストの改行対応 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    line-height: 1.3;
  }
  
  /* ローディングスピナー */
  #loading {
    display: flex; /* JavaScriptで直接制御 */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
  }
  
  .spinner {
    border: 4px solid rgba(229, 115, 115, 0.1);
    border-radius: 50%;
    border-top: 4px solid #E57373;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* メッセージスタイル - 従来のメッセージスタイル */
  .success-message, .error-message {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    margin: 30px 0;
  }
  
  .success-message {
    background-color: #e6f4ea;
    color: #34A853;
  }
  
  .error-message {
    background-color: #fce8e6;
    color: #E57373;
  }
  
  .success-message i, .error-message i {
    font-size: 48px;
    margin-bottom: 15px;
  }
  
  /* 新しい送信結果表示用スタイル */
  .result-container {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 30px 20px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
  }
  
  /* 送信結果に表示される画像コンテナ */
  .result-image-container {
    margin: 0 auto 20px;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* 送信結果に表示される画像 */
  .result-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  /* 送信結果のタイトル */
  .result-title {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
  }
  
  /* 送信結果のメッセージテキスト */
  .result-message-text {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.5;
  }
  
  /* 自動リダイレクトのカウントダウンテキスト */
  .auto-redirect-text {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
  }
  
  /* カウントダウン数字のスタイル */
  #countdown {
    color: #E57373;
    font-weight: 600;
    font-style: normal;
  }
  
  /* 送信結果のボタン */
  .result-button {
    min-width: 180px;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #E57373;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
  }
  
  .result-button:hover {
    background-color: #EF5350;
  }
  
  .result-button:active {
    transform: translateY(1px);
  }
  
  /* 成功コンテナのカスタムスタイル */
  
  .success-container .result-title {
    background: linear-gradient(90deg, #FFDAB9, #FFC0CB);
    background: -webkit-linear-gradient(0deg, #FFDAB9, #FFC0CB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  /* エラーコンテナのカスタムスタイル */
  .error-container {
    border-top: 4px solid #E57373;
  }
  
  .error-container .result-title {
    color: #E57373;
  }
  
  .hidden {
    display: none;
  }
  .container{
    width: 90%;
    margin: 20px auto;
  }
  /* フォーム入力スタイル（form.htmlで使用） */
  .form-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    position: relative;
  }
  
  /* グラデーションボーダーをフォームコンテナにも適用 */
  .form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px; /* ボーダーの太さ */
    background: linear-gradient(to right, #FFDAB9, #FFC0CB); /* グラデーションを調整 */
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  /* フォーム行のスタイル（横並び用） */
  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 0;
  }

  .half-width {
    flex: 1 1 calc(50% - 8px);
    min-width: 120px;
  }

  /* フォーム行のレスポンシブ対応 */
  @media (max-width: 480px) {
    .form-row {
      flex-direction: column;
      gap: 0;
    }
    .half-width {
      flex: 1 1 100%;
      margin-bottom: 20px;
    }
    .half-width:last-child {
      margin-bottom: 0;
    }
  }
  
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
  }
  
  .required {
    color: #E57373;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="date"],
  input[type="tel"],
  textarea,
  select {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.2s, box-shadow 0.2s;
    background-color: #FFFFFF;
  }
  
  /* セレクトボックスのスタイル改善 */
  select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23E57373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: #E57373;
    box-shadow: 0 0 0 2px rgba(229, 115, 115, 0.2);
  }
  
  /* テキストエリアの高さ調整 */
  textarea {
    resize: vertical;
    min-height: 80px;
  }
  
  /* フォームセクション区切り */
  .form-section {
    border-top: 1px dashed rgba(229, 115, 115, 0.2);
    padding-top: 20px;
    margin-top: 25px;
  }
  
  .form-section-title {
    font-size: 16px;
    color: #E57373;
    margin-bottom: 15px;
    font-weight: 500;
  }
  
  .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
  }
  
  .primary-button, .secondary-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
  }
  
  .primary-button {
    background-color: #E57373;
    color: white;
  }
  
  .secondary-button {
    background-color: #F5F5F5;
    color: #333;
  }
  
  .primary-button:hover {
    background-color: #EF5350;
  }
  
  .primary-button:active {
    transform: translateY(1px);
  }
  
  .secondary-button:hover {
    background-color: #EEEEEE;
  }
  
  /* 結果メッセージのボタンスタイル修正 */
  #result-message button {
    margin-top: 20px;
    min-width: 150px;
  }

  /* フォーム送信成功・エラー時のスタイル */
  #result-message .success-message h2,
  #result-message .error-message h2 {
    margin-bottom: 15px;
    font-size: 20px;
  }

  #result-message .success-message,
  #result-message .error-message {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  /* 追加スタイル */
.form-instructions {
  margin-bottom: 20px;
  color: #666;
  font-size: 15px;
  text-align: center;
  padding: 0 15px;
}

.full-width {
  width: 100%;
}

/* サブミットボタンのスタイル強化 */
.primary-button.full-width {
  padding: 15px 24px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

/* サブミットボタンのエフェクト */
.primary-button.full-width::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.primary-button.full-width:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

  /* かわいいローディングアニメーション */
.cute-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.cute-loading-circle {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  border-radius: 50%;
  background-color: #E57373;
  animation: bounce 1.4s infinite ease-in-out both;
}

.cute-loading-circle:nth-child(1) {
  animation-delay: -0.32s;
  background-color: #FFCC80;
}

.cute-loading-circle:nth-child(2) {
  animation-delay: -0.16s;
  background-color: #E57373;
}

.cute-loading-circle:nth-child(3) {
  animation-delay: 0s;
  background-color: #FFCDD2;
}

@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0);
  } 40% { 
    transform: scale(1.0);
  }
}

.loading-text {
  font-size: 14px;
  color: #E57373;
  margin-top: 15px;
  text-align: center;
}

/* 初期ローディングトランジション */
#initial-loading {
  transition: opacity 0.5s ease;
  background-color: #FFF5F5; /* ローディング背景も本体と同じ色に変更 */
}

/* リストローディング表示 */
.list-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
/* エラーメッセージ用の再試行ボタン */
  .retry-button {
    background-color: #E57373;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin-top: 15px;
    font-weight: 500;
    cursor: pointer;
  }
  
  .retry-button:hover {
    background-color: #EF5350;
  }/* スケルトンローディング */
.skeleton-item {
  background-color: #FFFFFF;
  padding: 15px 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  height: 80px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 15px auto;
  position: relative;
  overflow: hidden;
}

.skeleton-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
  padding: 2px;
  background: linear-gradient(to right, #FDB9A6, #FFDB94);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.skeleton-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* フォームのセクション分け */
.form-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(229, 115, 115, 0.2), transparent);
  margin: 25px 0;
}

/* プレースホルダーテキストの色 */
::placeholder {
  color: #BDBDBD;
}

/* 説明テキスト */
.form-help-text {
  font-size: 13px;
  color: #757575;
  margin-top: 5px;
  display: block;
}

/* 選択可能なラベル（チェックボックス、ラジオボタンなど） */
.selectable-label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
  margin-bottom: 10px;
}

.selectable-label input {
  margin-right: 10px;
}

/* LINE WORKS WOFF関連のスタイル追加 */
/* 担当者情報フィールドのスタイル */
.woff-auto-field {
  background-color: #f8f9fa;
  position: relative;
}

.woff-auto-field input {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
}

/* 自動入力インジケーター */
.woff-auto-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #8897a8;
  font-size: 14px;
  pointer-events: none;
}

/* ユーザー情報セクションのスタイル */
.user-info-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  border-left: 3px solid #E57373;
}

/* 読み取り専用フィールドのスタイル */
input[readonly].woff-field {
  background-color: #f5f5f5;
  border-color: #e0e0e0;
  color: #666;
  cursor: not-allowed;
}