@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap');
.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.zen-maru-gothic-medium {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.zen-maru-gothic-bold {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* ─── CSS変数定義 ─── */
:root {
  /* カラーパレット - かわいい系 */
  --accent-color: #e47b88;
  --primary-color: #FFBCBC;
  --primary-hover: #f7a7a7;
  --secondary-color: #FFD1DC;
  --secondary-hover: #FFB6C1;
  --danger-color: #FFB3BA;
  --danger-hover: #FF9AA7;
  --text-primary: #5a4a5a;
  --text-secondary: #8A7B8A;
  --text-muted: #A69BA6;
  --border-color: #F0E6E6;
  --border-light: #F7F0F0;
  --background-light: #FFF8F8;
  --background-white: #FFFEFE;
  --shadow-light: rgba(0, 0, 0, 0.12);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.1);
  
  /* サイズ */
  --border-radius: 4px;
  --border-radius-large: 8px;
  --padding-small: 8px;
  --padding-medium: 12px;
  --padding-large: 20px;
  --margin-small: 10px;
  --margin-medium: 20px;
  --margin-large: 30px;
  
  /* フォントサイズ */
  --font-size-small: 14px;
  --font-size-base: 16px;
  --font-size-large: 18px;
  --font-size-xl: 28px;
  
  /* トランジション */
  --transition-fast: 0.2s ease;
}

body { 
  font-family: sans-serif; 
  padding: 2em 0 0 0; 
  margin: 0;
  background-color: #ffe7e7;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  pointer-events: none;
  z-index: 0;
}

/* メインコンテンツを前面に */
.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.main-header {
  position: relative;
  z-index: 1;
}

/* ─── ボタンのカーソル統一 ─── */
button, 
input[type="button"], 
input[type="submit"], 
.btn, 
.google-login-btn, 
.create-sheet-btn, 
.submit-btn, 
.pdf-btn, 
.new-page-btn,
.header-edit-btn {
  cursor: pointer !important;
  /* タッチターゲットの最適化 */
  min-height: 44px;
  min-width: 44px;
  padding: 12px 16px;
}

button:hover, 
input[type="button"]:hover, 
input[type="submit"]:hover, 
.btn:hover, 
.google-login-btn:hover, 
.create-sheet-btn:hover, 
.submit-btn:hover, 
.pdf-btn:hover, 
.new-page-btn:hover,
.header-edit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all var(--transition-fast);
}

/* タッチフィードバック */
button:active, 
input[type="button"]:active, 
input[type="submit"]:active, 
.btn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

button#createSheetBtn {
  background: #fff;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: var(--padding-large) var(--padding-medium);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px var(--shadow-light);
  margin-top: 1rem;
}

.start_btn-counseling,
.start_btn-trimming {
  display: flex;
}


.start_btn button { 
  margin: 1rem;
  width: calc(100% / 2);
  align-items: center;
  background: var(--background-white);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: var(--padding-large) var(--padding-medium);
  font-size: var(--font-size-large);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px var(--shadow-light);
}
.start_btn button:hover {
  background: var(--background-light);
}

button#startTrimmingBtn {
  width: 100%;
}

@media (width < 768px) {
  .start_btn-counseling,
  .start_btn-trimming {
    flex-wrap: wrap;
  }
  .start_btn button {
    width: 100%;
}
}

.next_step {margin: 2rem 0 0; color: #333;}
.d_f{display: flex; align-items: center; gap: 1rem;}
.g_botn-dorev{background-color: #000; color: #fff; padding: 0.5rem 1rem; border-radius: 0.5rem;}
    .nsm7Bb-HzV7m-LgbsSe:hover {
    border-color: #d2e3fc;
    background-color: #d2e3fc;
    outline: none;
}
.logo_icon{
  width: 3%;
  margin-right: 1rem;
}
@media (width < 768px) {
  .logo_icon{
    width: 10%;
  }
}
.site-title {
  width: 80%;
  margin: 5rem auto 2rem;
  color: #333;
}
.main-content {
  width: 90%;
  margin: 0 auto 5rem;
}
@media (max-width: 768px) {
  .main-content{
    padding-left: 1rem;
  }
}


/* ─── Googleログインボタンのスタイル ─── */
.section-description {
  color: #333;
}
.login-section, .start_btn {
  position: relative;
  border: 1px solid var(--primary-color);
  border-radius: var(--border-radius-large);
  padding: var(--padding-large) var(--margin-large)var(--margin-large);
  margin: var(--margin-large) 0;
  width: 100%;
    box-sizing: border-box;
    background-color: var(--background-white);
}
@media (max-width: 768px) {
  .login-section, .start_btn {
    padding: 1rem;
}
}

.login-section:before,
.start_btn:before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  z-index: 1;
}

.login-section:after,
.start_btn:after {
  content: '1';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
  z-index: 2;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.start_btn:after{
  content: '2';

}


.google-login-btn {
  display: inline-flex;
  align-items: center;
  background: var(--background-white);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: var(--padding-large) var(--padding-medium);
  font-size: var(--font-size-large);
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px var(--shadow-light);
  width: 100%;
  justify-content: center;
}

.google-login-btn:hover {
  background: var(--background-light);
  box-shadow: 0 2px 6px var(--shadow-medium);
}

.google-login-btn:active {
  background: #f1f3f4;
}

.google-icon {
  width: var(--font-size-large);
  height: var(--font-size-large);
  margin-right: var(--padding-small);
}

/* 事前ボタンレイアウト　スタイル */
.start_btn-customer-form{
  border-bottom: 1px solid #f8b199;
  padding: 0 0 1rem;
  margin: 0 0 1rem;
}
/* ヘルプテキスト */
.help-text {
  text-align: left;
  display: block;
  font-size: 14px;
  color: var(--trim-background-light);
  font-weight: normal;
}

/* モーダルスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  /* left: 0;
  top: 0; */
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  overflow: auto;
  justify-content: center;
     align-items: flex-start;
     padding: 40px 16px;   /* 画面端に張り付かないよう余白 */
     background: rgba(0, 0, 0, 0.8);
     box-sizing: border-box;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15rem;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background-color: #4CAF50;
  color: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5em;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #ddd;
}

.modal-body {
  padding: 20px;
}
.modal-footer {
  padding: 0 0 2rem 2rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group textarea {
  height: 40px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 30px;
}

.submit-btn {
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.submit-btn:hover {
  background-color: #45a049;
}

.cancel-btn {
  background-color: #f44336;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.cancel-btn:hover {
  background-color: #da190b;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  /* 基本レイアウト */
  /* body {
    padding: 1rem;
  } */
  
  /* モーダルの最適化 */
  .modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 5% auto;
    overflow-y: auto;
  }
  
  /* フォーム入力の最適化 */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px; /* ズーム防止 */
    padding: 12px;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    width: 100%;
    box-sizing: border-box;
  }
  
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  input[type="date"]:focus,
  input[type="password"]:focus,
  textarea:focus,
  select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 123, 136, 0.2);
  }
  
  /* フォームグループの間隔 */
  .form-group {
    margin-bottom: 20px;
  }
  
  /* ラベルの最適化 */
  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  /* ボタンレイアウト 
  .form-actions {
    flex-direction: column;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }*/
  
  .submit-btn,
  .cancel-btn {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  
  /* ヘッダー編集モーダル */
  .header-edit-modal .modal-content {
    max-height: 85vh;
  }
  
  .header-items-container {
    max-height: 50vh;
    overflow-y: auto;
  }
}

/* ヘッダー編集モーダル用スタイル */
.header-list {
  margin-bottom: 20px;
}

.header-list h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2em;
}

.header-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: all 0.2s ease;
}

.header-item:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}


.header-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.header-item.drag-over {
  border-color: #4CAF50;
  background-color: #e8f5e8;
}

.header-item input {
  flex: 1;
  margin-right: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.header-item .delete-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.header-item .delete-btn:hover {
  background-color: #da190b;
}

.drag-icon {
  font-size: 16px;
  font-weight: bold;
  user-select: none;
}

.add-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 15px;
}

.add-btn:hover {
  background-color: #45a049;
}

/* ─── スタッフキー関連のスタイル ─── */
.staff-key-section {
  margin: var(--margin-large) 0;
  padding: var(--padding-large);
  background-color: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-large);
}

.staff-key-section h3 {
  margin: 0 0 15px 0;
  color: var(--trim-text-primary);
  font-size: 1.2em;
}

.staff-key-input {
  display: flex;
  gap: var(--margin-small);
  margin-bottom: var(--margin-small);
}

.staff-key-input input {
  flex: 1;
  padding: var(--margin-small);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
}

.set-key-btn {
  background-color: var(--secondary-color);
  color: var(--trim-text-primary);
  border: none;
  padding: var(--margin-small) var(--padding-large);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: var(--font-size-base);
}

.set-key-btn:hover {
  background-color: var(--secondary-hover);
}

.key-info {
  margin: 0;
  font-size: var(--font-size-small);
  color: var(--trim-text-secondary);
  font-style: italic;
}

/* ─── モーダル内のスタッフキー入力エリア ─── */
.staff-key-area {
  margin-bottom: var(--margin-large);
  padding: 15px;
  background-color: var(--background-light);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.staff-key-input-modal {
  display: flex;
  flex-direction: column;
  gap: var(--padding-small);
}

.staff-key-input-modal label {
  font-weight: bold;
  color: var(--text-primary);
  font-size: var(--font-size-small);
}

.staff-key-input-modal input {
  padding: var(--margin-small);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
}

.button-area {
  display: flex;
  gap: var(--margin-small);
  justify-content: flex-end;
}

.header-item:first-of-type input,
.header-item:nth-of-type(2) input {
  color: #666;
} 

/* ─── アクセシビリティ ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── その他のスタイル ─── */
.sheet_ok {
  background-color: var(--primary-color);
  color: white;
  padding: var(--padding-medium);
  border-radius: var(--border-radius);
  margin: var(--margin-medium) 0;
  text-align: center;
}

.sheet_ok a {
  color: white;
  text-decoration: underline;
}

.sheet_ok a:hover {
  color: #e47b88;
}

.message-field {
  margin: var(--margin-medium) 0;
  padding: var(--padding-medium);
  background-color: var(--background-light);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
}

.message-field p {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

/* ─── レスポンシブデザイン ─── */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  
  
  .staff-key-input {
    flex-direction: column;
  }
  
  .add-header-input {
    flex-direction: column;
  }
  
  .header-actions {
    flex-direction: column;
  }
}

/* ─── ステータス表示の追尾スタイル ─── */
.status-display {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: block;
  background: var(--primary-color);
  z-index: 10;
  padding: 10px;
  box-sizing: border-box;
  border-bottom: 1px solid #fff;
  color: #333;
}

/* ─── ドラッグ&ドロップ挿入型スタイル ─── */
/* ドラッグ中のスタイル */
.header-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  transition: all 0.2s ease;
}

/* ドラッグオーバー中のスタイル */
.header-item.drag-over {
  border: 2px dashed #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
  transition: all 0.2s ease;
}

/* ドロップ位置インジケーター */
.drop-indicator {
  height: 3px;
  background: #4CAF50;
  margin: 2px 0;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* 保護項目のドラッグ無効化 */
.header-item[data-index="0"] {
  cursor: not-allowed;
  opacity: 0.7;
}

.header-item[data-index="0"] .drag-icon {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ─── フッター ─── */
.app-footer {
  background-color: var(--background-white);
  border-top: 1px solid var(--border-light);
  padding: var(--padding-large) 0;
  /* position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10; */
}

.footer-content {
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
  display: flex;
    justify-content: space-around;
    align-items: center;
}
@media (width < 768px) {
  .footer-content {
    flex-wrap: wrap;
}
}

.footer-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--font-size-small);
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.app-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--accent-color);
  font-family: "Zen Maru Gothic", sans-serif;
}

.copyright {
  margin-top: 4rem;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "Zen Maru Gothic", sans-serif;
  text-align: center;
}

.footer-links .footer-link {
  font-size: 13px;
  margin: 0 8px;
}


/* ─── プライバシーポリシーと利用規約 ─── */
.privacy-container {
  max-width: 800px;
  margin: 2rem auto 15rem;
  padding: 2rem;
  background: var(--background-white);
  border-radius: var(--border-radius-large);
  box-shadow: 0 2px 8px var(--shadow-light);
  line-height: 1.6;
}

.privacy-title {
  text-align: center;
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
}

.privacy-section {
  margin-bottom: 2rem;
}

.privacy-section h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700;
}

.privacy-section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  transition: var(--transition-fast);
}

.back-link:hover {
  background: var(--primary-hover);
}

/* お客様検索 */
button#searchCustomerBtn{
  color: var(--background-white);
}

/* 使い方動画 */
.site-howto{
  width: 80%;
    margin: 0 auto;
    color: #333;
}