header {
  width: 100%;
}

.header-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: #ffe4e1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.09);
  border-bottom: 1.5px solid #ffd0d0;
  z-index: 1000;
}
.top-banner { display:block;
  margin: 0 auto 1.5em auto;
  max-width: 1500px;
  width:100%;
  border-radius:16px;
  box-shadow: 0 4px 16px #bfdbe9;}
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 0;
}

.logo img {
  height: 48px;
  width: 48px;
  margin-right: 10px;
  margin-left: 0;
  border-radius: 8px;
  object-fit: contain;
}

.logo span {
  font-weight: bold;
  font-size: 1.18em;
  color: #d33;
  letter-spacing: 0.04em;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin: 0 13px 0 0;
  font-weight: bold;
  font-size: 1.04em;
  line-height: 1.2;
  white-space: nowrap;
}
.navbar ul li:last-child {
  margin-right: 0;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.04em;
  white-space: nowrap;
  transition: color 0.2s;
}
.navbar ul li a:hover {
  color: #ed113a; /* ピンク系・好きな色に調整OK */
}

.navbar .login-btn {
  display: inline-block;
  width: auto; /* 必須！ */
  min-width: 80px;
  max-width: 140px;
  padding: 7px 22px;
  background: #ff8080;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 14px;
  margin-top: 0; /* ←不要なら0に */
  transition: background 0.18s;
}
.navbar .login-btn:hover {
  background: #e65c5c;
}
.login-info {
  display: flex;
  align-items: center;
  margin-left: 14px;
  color: #333;
  font-size: 0.97em;
  vertical-align: middle;
}
.logout-btn {
  margin-left: 10px;
  padding: 4px 14px;
  background: #ff9999;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.98em;
}
.logout-btn:hover {
  background: #e66;
}

/*---------------------------------*/
main {
  margin-top: 78px;
  padding: 0 0 0 0;
}

.section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(255,150,170,0.13), 0 2px 6px rgba(180,50,100,0.06);
  margin: 10px auto;
  padding: 10px 28px 10px 10px;
  max-width: 920px;
  min-height: 180px;
  transition: box-shadow 0.2s;
  border: 1.5px solid #ffb6c1;
}

.section img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-right: 36px;
  box-shadow: 0 4px 24px rgba(255,182,193, 0.16);
  filter: blur(0.5px) brightness(0.97);
}

.section .text {
  flex: 1;
  min-width: 0;
}

.section h2 {
  margin-top: 0;
  color: #d63384;
  font-size: 1.1em;
}

.section p {
  margin-bottom: 0;
  color: #555;
}

@media (max-width: 900px) {
  .section {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    max-width: 98vw;
  }
  .section img {
    margin: 0 0 16px 0;
    width: 100%;
    max-width: 320px;
    height: auto;
  }
  .section .text {
    width: 100%;
  }
}
.navbar .login-btn {
    margin-top: 12px;
  }

.popup-login {
  /*max-width: 350px;*/
  margin: 50px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(80,80,180,0.07), 0 2px 10px rgba(220,70,140,0.07);
  padding: 28px 28px 22px 28px;
  position: relative;
  z-index: 10;
}

.popup-login h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.2em;
  color: #2491e3;
  letter-spacing: 0.05em;
  font-weight: bold;
  text-align: left;
}

.popup-login label {
  display: block;
  font-weight: bold;
  color: #2491e3;
  margin-bottom: 8px;
  margin-top: 18px;
  font-size: 1em;
}

.popup-login input[type="text"],
.popup-login input[type="password"],
.popup-login select {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background: #f7fafd;
  font-size: 1em;
  padding: 8px 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border 0.2s;
}

.popup-login input[type="text"]:focus,
.popup-login input[type="password"]:focus,
.popup-login select:focus {
  border-color: #72b0e9;
  outline: none;
}

.button-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.btn-blue {
  background: linear-gradient(90deg,#47c6ff 0%, #62b3fa 100%);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 22px;
  padding: 10px 34px;
  font-size: 1.06em;
  box-shadow: 0 2px 8px rgba(60,180,255,0.10);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-blue:hover {
  background: #32b3ed;
}

.btn-pink {
  background: linear-gradient(90deg,#faa7ad 0%, #f8c7cf 100%);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 22px;
  padding: 10px 34px;
  font-size: 1.06em;
  margin-left: 14px;
  box-shadow: 0 2px 8px rgba(255,60,120,0.11);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-pink:hover {
  background: #f77f97;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.45em;
  color: #bbb;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
  z-index: 20;
}

.close-btn:hover {
  color: #ff708c;
}

@media (max-width: 600px) {
  .popup-login {
    max-width: 96vw;
    padding: 16px 6vw 16px 6vw;
  }
  .btn-blue,
  .btn-pink {
    width: 45vw;
    min-width: 90px;
    padding: 8px 0;
    font-size: 1em;
  }
  .button-row {
    flex-direction: column;
    gap: 10px;
  }
}
.menu-toggle {
  display: none;
  font-size: 2em;
  color: #d33;
  cursor: pointer;
  margin-left: 18px;
  background: none;
  border: none;
  outline: none;
}

@media screen and (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 10px;
  }
  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100vw;
    background: #ffe4e1;
    margin: 0;
    padding: 0 0 10px 0;
    position: absolute;
    top: 58px; /* ヘッダーの下に */
    left: 0;
    box-shadow: 0 8px 24px rgba(220,80,100,0.10);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2000;
  }
  .navbar.active ul {
    display: flex;
  }
  .navbar ul li {
    margin: 14px 0 0 16px;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 12px;
  }
  
}
.dashboard-list { width:100%; border-collapse:collapse; margin: 30px 0;}
.dashboard-list th, .dashboard-list td { border:1px solid #eee; padding:9px 6px;}
.dashboard-list th { background: #f7d6da; color: #d33;}
.dashboard-list .status-new { color:#d33; font-weight:bold;}
.edit-btn, .progress-btn { background:#eee; color:#2491e3; border:none; border-radius:4px; padding:4px 8px; margin:2px; cursor:pointer;}
.edit-btn:hover, .progress-btn:hover { background: #dbefff;}
/* 管理者メニューグリッド用 */
.admin-menu-container {
  max-width: 740px;
  margin: 40px auto 40px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(233,121,121,0.10), 0 1.5px 6px #ffd0d0;
  padding: 32px 20px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 14px;
  justify-items: center;
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff6f6;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(200,80,80,0.08);
  padding: 18px 8px 14px 8px;
  width: 100px;
  height: 100px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.menu-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 6px #ffd6d6);
  border-radius: 20%;
}
.menu-item div {
  font-size: 0.9em;
  color: #d33;
  font-weight: bold;
  text-align: center;
  margin-top: 4px;
  letter-spacing: 1.5px;
}
.menu-item:hover {
  box-shadow: 0 6px 24px rgba(200,50,50,0.16);
  background: #ffeaea;
  transform: translateY(-5px) scale(1.03);
}
@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .menu-item { width: 160px; height: 160px; }
}
@media (max-width: 600px) {
  .admin-menu-container { padding: 12px 3vw; }
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .menu-item { width: 94vw; height: 120px; }
  .menu-item img { width: 50px; height: 50px; }
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 1em;
  background: #fff;
  box-shadow: 0 2px 8px rgba(220,100,100,0.06);
}
.admin-table th, .admin-table td {
  border-bottom: 1px solid #ffe4e1;
  padding: 8px 12px;
  text-align: center;
}
.admin-table th {
  background: #ffd0d0;
  color: #d33;
  font-weight: bold;
}
.admin-table tr:hover {
  background: #fff6f6;
}
.btn-ghost.small, .btn-blue.small {
  font-size: 0.95em;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 6px;
  text-decoration: none;
}
.btn-ghost.small {
  background: #f5f8ff;
  color: #2491e3;
  border: 1px solid #bdeaff;
}
.btn-ghost.small:hover {
  background: #dff1ff;
  color: #125b9a;
}
.btn-blue.small {
  background: #5bbfff;
  color: #fff;
  border: none;
}
.btn-blue.small:hover {
  background: #2491e3;
}
.popup-login {
  max-width: 380px;
  margin: 60px auto;
  background: #fff6fa;
  border-radius: 16px;
  box-shadow: 0 4px 22px #ecd8f3;
  padding: 32px 24px 25px 24px;
  position: relative;
  border: 2px solid #ffb6b6;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .popup-login {
    max-width: 97vw;
    padding: 13vw 2vw 7vw 2vw;
    margin: 13vw auto 5vw auto;
  }
  table, .admin-table {
    font-size: 0.97em;
    width: 98vw !important;
    min-width: 0 !important;
    margin-left: -2vw !important;
  }
  th, td {
    padding: 10px 2px !important;
    word-break: break-all;
    font-size: 0.97em;
  }
  .button-row {
    flex-direction: column;
    gap: 10px;
  }
  input[type="text"], input[type="email"], select, textarea {
    width: 100% !important;
    font-size: 1.01em;
  }
}
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 4vw;
    min-width: 0;
  }
  .navbar {
    width: 100vw;
    justify-content: flex-start;
  }
  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100vw;
    background: #ffe4e1;
    margin: 0;
    padding: 0 0 10px 0;
    position: absolute;
    top: 58px;
    left: 0;
    box-shadow: 0 8px 24px rgba(220,80,100,0.10);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2000;
  }
  .navbar.active ul { display: flex; }
  .navbar ul li { margin: 14px 0 0 16px; }
  .menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 12px;
  }
  .login-info { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 600px) {
  main, .popup-login {
    max-width: 98vw;
    padding: 10vw 2vw 7vw 2vw;
    margin: 15vw auto 6vw auto;
    min-width: 0;
    box-sizing: border-box;
  }
  table, .admin-table {
    font-size: 0.97em;
    width: 98vw !important;
    min-width: 0 !important;
    margin-left: -2vw !important;
    overflow-x: auto;
    display: block;
  }
  th, td {
    padding: 10px 2px !important;
    word-break: break-all;
    font-size: 0.97em;
  }
  .button-row {
    flex-direction: column;
    gap: 10px;
  }
  input[type="text"], input[type="email"], select, textarea {
    width: 100% !important;
    font-size: 1.01em;
  }
  .logo img {
    height: 40px;
    width: 40px;
  }
  .logo span {
    font-size: 1.03em;
  }
}

@media (max-width: 480px) {
  .popup-login {
    padding: 8vw 2vw 6vw 2vw;
    font-size: 0.98em;
  }
  table, .admin-table {
    font-size: 0.95em;
    margin-left: -2vw !important;
  }
}
.ai-chat-float {
  position: fixed;
  right: 24px; bottom: 34px;
  z-index: 5000;
  text-decoration: none;
  display: flex; align-items: center;
  background: none;
  transition: opacity 0.17s;
}
.ai-chat-balloon {
  background: #ffe4e1;
  border-radius: 50%;
  box-shadow: 0 2px 8px #ffb6b6b0;
  padding: 9px;
  border: 2px solid #ffa0b6;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.15s;
}
.ai-chat-label {
  display: none;
  margin-left: 13px;
  color: #e05b87;
  font-size: 1.04em;
  font-weight: bold;
  background: #fff6fa;
  border-radius: 16px;
  padding: 7px 16px;
  border: 1.2px solid #ffd0d0;
  box-shadow: 0 2px 8px #ffe0ef70;
}
.ai-chat-float:hover .ai-chat-label {
  display: inline-block;
}
.ai-chat-float:hover .ai-chat-balloon {
  box-shadow: 0 8px 32px #ffb6b6;
}
@media (max-width:600px) {
  .ai-chat-float { right: 8px; bottom: 12px;}
  .ai-chat-label { font-size:0.97em; padding: 7px 10px;}
}
.footer-guide {
  width: 100vw;
  text-align: center;

 }
 @media screen and (max-width: 700px) {
  .navbar ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 98vw;
    padding-bottom: 4px;
  }
  .navbar ul li {
    font-size: 0.97em;
    margin-right: 12px;
    display: inline-block;
  }
}
.token-box {
  background: #eaf8fd;
  border-radius: 16px;
  box-shadow: 0 4px 18px #d0e2f6;
  padding: 26px 18px 19px 18px;
  max-width: 370px;
  margin: 25px auto 0 auto;
  border: 2px solid #aee2f8;
  text-align: center;
  font-weight: bold;
}
.login-modal-bg {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(220, 200, 230, 0.13);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.login-modal {
  background: #fff6fa;
  border: 2.5px solid #ffb6b6;
  border-radius: 18px;
  box-shadow: 0 6px 32px #eec6f9;
  padding: 35px 38px 28px 38px;
  width: 340px;
  position: relative;
  text-align: center;
  animation: fadeIn 0.33s;
}
@keyframes fadeIn {
  from { transform: scale(0.96) translateY(40px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.login-title {
  font-size: 1.23em;
  color: #e05b87;
  font-weight: bold;
  letter-spacing: .03em;
  margin-bottom: 25px;
}
.login-modal label {
  display: block;
  text-align: left;
  margin-bottom: 14px;
  color: #e05b87;
  font-weight: bold;
  font-size: 1em;
}
.login-modal input[type="text"], .login-modal input[type="password"] {
  width: 100%;
  padding: 8px 11px;
  margin-top: 6px;
  margin-bottom: 2px;
  border-radius: 8px;
  border: 1.3px solid #ddd;
  background: #f7fafd;
  font-size: 1em;
  box-sizing: border-box;
}
.btn-row {
  margin-top: 18px; display: flex; gap: 16px; justify-content: center;
}
.btn-login {
  background: #2491e3;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 30px;
  font-size: 1.07em;
  cursor: pointer;
  font-weight: bold;
  transition: 0.13s;
}
.btn-login:hover { background: #1670b9; }
.btn-cancel {
  background: #fde3e8;
  color: #e05b87;
  border: none;
  border-radius: 7px;
  padding: 8px 25px;
  font-size: 1.07em;
  cursor: pointer;
  transition: 0.13s;
  font-weight: bold;
}
.btn-cancel:hover { background: #ffe9f0; }
.close-btn {
  position: absolute; top: 13px; right: 20px; font-size: 1.4em;
  color: #bbb; cursor: pointer; font-weight: bold; z-index: 10;
}
.close-btn:hover { color: #e05b87; }
@media (max-width: 500px) {
  .login-modal { width: 98vw; padding: 18px 3vw 14px 3vw; }
}
