
  /* 全体のリセットとベーススタイル */
  * {
    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: #FFF9F7; /* 非常に薄いピンク */
    color: #333;
  }
  
  /* アプリコンテナ */
  .app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* ナビゲーションバー */
  .nav-bar {
    background-color: #FFEAE5; /* 中ピンク */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
  }
  
  /* 退勤用の背景色（削除） */
  /* .nav-bar-out {
    background-color: #E5F0FF;
  } */
  
  .back-button {
    color: #E57373; /* 濃いピンク */
    font-size: 20px;
    cursor: pointer;
  }
  
  .title {
    flex-grow: 1;
    text-align: center;
    color: #E57373; /* 濃いピンク */
    font-size: 18px;
    font-weight: 500;
    margin-right: 20px; /* 戻るボタンの幅と同じ */
  }
  
  /* コンテンツエリア */
  .content-area {
    flex-grow: 1;
    padding: 20px;
    background-color: #FFF9F7; /* 非常に薄いピンク */
    display: flex;
    flex-direction: column;
  }
  
  /* 画面の共通スタイル */
  .screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
  }
  
  .hidden {
    display: none !important;
  }
  
  /* 日時表示エリア */
  .datetime-display {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .date-display {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
  }
  
  .time-display {
    font-size: 48px;
    font-weight: bold;
    color: #333;
  }
  
  /* 出勤/退勤ボタン */
  .punch-button {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }
  
  .punch-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }
  
  .punch-button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* 出勤ボタン - 修正版 */
  .punch-in-button {
    background: linear-gradient(to bottom, #DD8183, #FFCA61);
    border: 3px solid #F6C8BC;
  }
  
  /* 退勤ボタン - 修正版 */
  .punch-out-button {
    background: linear-gradient(to bottom, #8FCFA1, #CBDB8E);
    border: 3px solid #D0E0C0;
  }
  
  /* 気分選択エリア */
.mood-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .mood-selector {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 0 10px;
    margin-bottom: 20px;
    flex-wrap: nowrap; /* 変更: wrapからnowrapに変更して折り返しを防止 */
  }
  
  /* 気分選択オプション */
  .mood-option {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin: 0 2px; /* 変更: 横幅を小さくするためマージンを縮小 */
    transition: transform 0.2s;
    padding: 5px; /* 変更: パディングを小さく */
  }

  .mood-option:hover {
    transform: translateY(-3px);
  }

  /* レスポンシブデザイン調整 */
  @media screen and (max-width: 480px) {
    .time-display {
      font-size: 40px;
    }
    
    .punch-button {
      width: 160px;
      height: 160px;
      font-size: 24px;
    }
    
    .mood-selector {
      flex-wrap: nowrap; /* 変更: スマホサイズでも折り返しなし */
      padding: 0; /* 変更: 横幅を確保するためパディングを削除 */
    }
    
    .mood-option {
      margin: 0 1px; /* 変更: スマホサイズではさらにマージンを縮小 */
      padding: 1px; /* 変更: パディングも縮小 */
      width: 19.5%; /* 変更: 5つのボタンを均等に配置 */
    }
    
    .mood-icon {
      width: 50px; /* 変更: アイコンサイズを小さく */
      height: 50px;
    }
  }
  
  .mood-option span {
    font-size: clamp(0.563rem, 0.494rem + 0.34vw, 0.75rem);
    color: #666;
    margin-bottom: 8px;
  }
  
  .mood-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  
  .mood-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 完了画面 */
  .completion-screen {
    transition: background-color 0.3s ease;
    border-radius: 20px;
    width: 100%;
    padding: 20px;
  }
  
  /* 出勤完了画面の背景色 - 修正版 */
  .in-screen {
    background-color: #FFF8F4; /* 薄いピンク系 */
  }
  
  /* 退勤完了画面の背景色 - 修正版 */
  .out-screen {
    background-color: #FBFBF0; /* 薄い黄緑系 - 要望通りに変更 */
  }
  
  /* メッセージバブル */
  .message-bubble {
    background-color: #FFF;
    border-radius: 20px;
    padding: 15px 20px;
    max-width: 80%;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .message-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FFF;
  }
  
  .message-bubble p {
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
  }
  
  /* 出勤メッセージ */
  .in-message {
    border: 2px solid #F6C8BC;
  }
  
  /* 退勤メッセージ */
  .out-message {
    border: 2px solid #D0E0C0;
  }
  
  /* キャラクター画像 */
  .character-container {
    margin: 30px 0;
    text-align: center;
  }
  
  .character-image {
    max-width: 200px;
    height: auto;
  }
  
  /* 完了テキスト */
  .completion-text {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
    background-color: #FFF;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* ローディングアニメーション */
  #initial-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFF9F7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
  }
  
  .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;
  }
  
  /* レスポンシブデザイン調整 */
  @media (max-width: 480px) {
    .time-display {
      font-size: 40px;
    }
    
    .punch-button {
      width: 160px;
      height: 160px;
      font-size: 24px;
    }
    
    .mood-selector {
      flex-wrap: wrap;
    }
    
    .mood-option {
      margin: 10px;
    }
  }
</style>