/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* 異世界ギルドクエストボード風フォント */
@import url("https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap");
/* Cinzelフォントを削除 */
@import url("https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Pirata+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Almendra:wght@400;700&display=swap");

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container{
  width: 100%;
}
@media (min-width: 640px){

  .container{
    max-width: 640px;
  }
}
@media (min-width: 768px){

  .container{
    max-width: 768px;
  }
}
@media (min-width: 1024px){

  .container{
    max-width: 1024px;
  }
}
@media (min-width: 1280px){

  .container{
    max-width: 1280px;
  }
}
@media (min-width: 1536px){

  .container{
    max-width: 1536px;
  }
}
.relative{
  position: relative;
}
.mx-auto{
  margin-left: auto;
  margin-right: auto;
}
.\!mt-4{
  margin-top: 1rem !important;
}
.mb-3{
  margin-bottom: 0.75rem;
}
.mb-4{
  margin-bottom: 1rem;
}
.ml-auto{
  margin-left: auto;
}
.mr-2{
  margin-right: 0.5rem;
}
.mt-1{
  margin-top: 0.25rem;
}
.mt-6{
  margin-top: 1.5rem;
}
.line-clamp-2{
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.inline{
  display: inline;
}
.flex{
  display: flex;
}
.inline-flex{
  display: inline-flex;
}
.grid{
  display: grid;
}
.hidden{
  display: none;
}
.h-12{
  height: 3rem;
}
.h-2{
  height: 0.5rem;
}
.h-3{
  height: 0.75rem;
}
.h-32{
  height: 8rem;
}
.h-4{
  height: 1rem;
}
.h-5{
  height: 1.25rem;
}
.h-6{
  height: 1.5rem;
}
.h-full{
  height: 100%;
}
.min-h-\[400px\]{
  min-height: 400px;
}
.min-h-screen{
  min-height: 100vh;
}
.w-12{
  width: 3rem;
}
.w-3{
  width: 0.75rem;
}
.w-32{
  width: 8rem;
}
.w-4{
  width: 1rem;
}
.w-5{
  width: 1.25rem;
}
.w-6{
  width: 1.5rem;
}
.w-full{
  width: 100%;
}
.max-w-md{
  max-width: 28rem;
}
.flex-1{
  flex: 1 1 0%;
}
.flex-shrink-0{
  flex-shrink: 0;
}
.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes pulse{

  50%{
    opacity: .5;
  }
}
.animate-pulse{
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin{

  to{
    transform: rotate(360deg);
  }
}
.animate-spin{
  animation: spin 1s linear infinite;
}
.cursor-pointer{
  cursor: pointer;
}
.grid-cols-1{
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.flex-col{
  flex-direction: column;
}
.flex-wrap{
  flex-wrap: wrap;
}
.items-start{
  align-items: flex-start;
}
.items-center{
  align-items: center;
}
.justify-center{
  justify-content: center;
}
.justify-between{
  justify-content: space-between;
}
.gap-1{
  gap: 0.25rem;
}
.gap-2{
  gap: 0.5rem;
}
.gap-3{
  gap: 0.75rem;
}
.gap-4{
  gap: 1rem;
}
.space-x-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.overflow-hidden{
  overflow: hidden;
}
.rounded{
  border-radius: 0.25rem;
}
.rounded-full{
  border-radius: 9999px;
}
.rounded-md{
  border-radius: 0.375rem;
}
.rounded-xl{
  border-radius: 0.75rem;
}
.border{
  border-width: 1px;
}
.border-b-2{
  border-bottom-width: 2px;
}
.border-blue-600{
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}
.border-gray-300{
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-transparent{
  border-color: transparent;
}
.bg-blue-50{
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-500{
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-card{
  background-color: var(--card);
}
.bg-gray-100{
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-green-500{
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}
.bg-primary{
  background-color: var(--primary);
}
.bg-secondary{
  background-color: var(--secondary);
}
.bg-yellow-500{
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}
.p-2{
  padding: 0.5rem;
}
.p-6{
  padding: 1.5rem;
}
.px-2{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5{
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-4{
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-0\.5{
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1{
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-12{
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-8{
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pt-0{
  padding-top: 0px;
}
.text-center{
  text-align: center;
}
.text-lg{
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm{
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold{
  font-weight: 700;
}
.font-medium{
  font-weight: 500;
}
.font-semibold{
  font-weight: 600;
}
.leading-none{
  line-height: 1;
}
.tracking-tight{
  letter-spacing: -0.025em;
}
.text-blue-600{
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-card-foreground{
  color: var(--card-foreground);
}
.text-foreground{
  color: var(--foreground);
}
.text-gray-600{
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-green-500{
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity, 1));
}
.text-green-600{
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-muted-foreground{
  color: var(--muted-foreground);
}
.text-primary-foreground{
  color: var(--primary-foreground);
}
.text-red-500{
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-red-600{
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-secondary-foreground{
  color: var(--secondary-foreground);
}
.text-white{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline{
  text-decoration-line: underline;
}
.opacity-75{
  opacity: 0.75;
}
.shadow{
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline{
  outline-style: solid;
}
.ring-2{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-blue-500{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}
.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition-all{
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200{
  transition-duration: 200ms;
}

:root {
  /* 木製クエストボード風テーマ */
  --background: #2f2112; /* 深い木目調の背景 */
  --secondary-background: #7b2d2d70;
  --foreground: #2c1810; /* 濃い茶色のテキスト */
  --card: #d4b896; /* 古い羊皮紙のベージュ */
  --card-foreground: #2c1810; /* 濃い茶色のテキスト */
  --primary: #8b4513; /* サドルブラウン（メインカラー） */
  --primary-foreground: #f5e6d3; /* 明るいベージュのテキスト */
  --secondary: #a0522d; /* シエナブラウン */
  --secondary-foreground: #f5e6d3; /* 明るいベージュのテキスト */
  --muted: #c19a6b; /* 薄い木目調 */
  --muted-foreground: #5d4037; /* 中間の茶色のテキスト */
  --border: #bd975b; /* 木枠風の境界線 */
  --ring: #8b4513; /* 茶色のフォーカスリング */
  --star: #efee66; /* 黄色のスター */

  /* 優先度カラー */
  --priority-low: #8fbc8f; /* 優先度低 */
  --priority-medium: #daa520; /* 優先度中 */
  --priority-high: #cd853f; /* 優先度高 */
  --priority-urgent: #982118; /* 優先度緊急 */

  /* ステータスカラー */
  --status-pending: #9c542d; /* 保留  */
  --status-active: #daa520; /* 進行中 */
  --status-completed: #228b22; /* 完了 */

  /* エフェクト */
  --shadow: rgba(45, 24, 16, 0.4);
  --glow: rgba(139, 69, 19, 0.3);
  --parchment-cream: #f5e6d3;
  --wood-brown: #8b4513;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* カスタムスタイル */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== アプリケーション全体 ===== */
.app-container {
  background: var(--background);
  background-attachment: fixed;
  position: relative;
}

/* ===== ヘッダー ===== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--secondary-background);
  border-bottom: 1px solid rgba(139, 69, 19, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.app-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.app-title-main {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: #f5e6d3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(245, 230, 211, 0.3);
  letter-spacing: 0.1em;
  font-family: "Uncial Antiqua", "MedievalSharp", serif;
}

.app-title-sub {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  font-family: "Pirata One", Georgia, serif;
}

/* ===== メインコンテンツ ===== */
.main-content {
  margin-bottom: 3rem;
}

.content-board {
  background: var(--secondary-background);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
  position: relative;
}

.board-header {
  padding: 2rem 2rem;
  background: var(--secondary-background);
  position: relative;
}

.board-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-align: center;
  text-shadow: 2px 2px 4px var(--shadow);
  letter-spacing: 0.2em;
  font-family: "MedievalSharp", "Uncial Antiqua", serif;
  text-transform: uppercase;
  background: var(--card);
  padding: 1.5rem 2rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 500px;
  box-shadow: 0 4px 12px var(--shadow);
  position: relative;
}

.board-content {
  padding: 2rem;
}

/* ===== タスクリスト ===== */
.task-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* タスク統計ボード */
.task-stats-board,
.task-opt-board {
  background: repeating-linear-gradient(
      90deg,
      rgba(205, 133, 63, 0.05) 0px,
      rgba(205, 133, 63, 0.05) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(139, 69, 19, 0.03) 0px,
      rgba(139, 69, 19, 0.03) 1px,
      transparent 1px,
      transparent 15px
    ),
    radial-gradient(
      circle at 30% 30%,
      rgba(212, 175, 55, 0.06) 0%,
      transparent 50%
    ),
    /* ベース色 */ var(--muted);
  border: 2px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 8px 25px var(--shadow), inset 0 2px 0 rgba(255, 215, 0, 0.08),
    inset 0 -1px 0 rgba(139, 69, 19, 0.05);
}

.task-stats-board {
  padding: 2rem;
}

.task-opt-board {
  padding: 0.75rem 2rem;
}

.stats-header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.stats-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  background-color: var(--card);
  border-radius: 8px;
  font-family: "MedievalSharp", "Georgia", serif;
  letter-spacing: 0.05em;
  padding: 0.5rem;
}

.stats-total {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
  font-family: "MedievalSharp", "Georgia", serif;
  letter-spacing: 0.05em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.03);
}

.stat-card:hover {
  box-shadow: 0 4px 12px var(--shadow);
}

.stat-number {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--muted);
  margin-bottom: 0.25rem;
}

/* 統計カード色分け */
.stat-pending .stat-number {
  color: var(--status-pending);
}
.stat-active .stat-number {
  color: var(--status-active);
}
.stat-completed .stat-number {
  color: var(--status-completed);
}
.stat-overdue .stat-number {
  color: var(--priority-urgent);
}
.stat-completion .stat-number {
  color: var(--primary);
}

/* 単体タスクの優先度統計 */
.priority-stats {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.priority-stats-title {
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
  font-family: "MedievalSharp", "Georgia", serif;
  letter-spacing: 0.05em;
}

.priority-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.priority-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--card);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.priority-stat:hover {
  transform: scale(1.05);
}

.priority-count {
  font-size: 1.2rem;
  font-weight: bold;
}

.priority-name {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--muted);
  width: 100%;
  text-align: center;
}

.priority-low .priority-count {
  color: var(--priority-low);
}
.priority-medium .priority-count {
  color: var(--priority-medium);
}
.priority-high .priority-count {
  color: var(--priority-high);
}
.priority-urgent .priority-count {
  color: var(--priority-urgent);
}

/* ===== コントロール ===== */
.task-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 検索セクション */
.search-section {
  display: flex;
  justify-content: center;
}

.search-container {
  position: relative;
  width: 100%;
}

@media (min-width: 767px) {
  .search-container {
    max-width: 400px;
  }
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  background:
  /* 明るい羊皮紙風テクスチャ */ repeating-linear-gradient(
      90deg,
      rgba(205, 133, 63, 0.05) 0px,
      rgba(205, 133, 63, 0.05) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(139, 69, 19, 0.03) 0px,
      rgba(139, 69, 19, 0.03) 1px,
      transparent 1px,
      transparent 15px
    ),
    /* 温かい光の効果 */
      radial-gradient(
        circle at 30% 30%,
        rgba(212, 175, 55, 0.06) 0%,
        transparent 50%
      ),
    /* ベース色 */ var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--glow);
}

.search-input::-moz-placeholder {
  color: var(--muted-foreground);
}

.search-input::placeholder {
  color: var(--muted-foreground);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}

/* コントロールパネル */
.control-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  background:
  /* 明るい羊皮紙風テクスチャ */ repeating-linear-gradient(
      90deg,
      rgba(205, 133, 63, 0.05) 0px,
      rgba(205, 133, 63, 0.05) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(139, 69, 19, 0.03) 0px,
      rgba(139, 69, 19, 0.03) 1px,
      transparent 1px,
      transparent 15px
    ),
    /* 温かい光の効果 */
      radial-gradient(
        circle at 30% 30%,
        rgba(212, 175, 55, 0.06) 0%,
        transparent 50%
      ),
    /* ベース色 */ var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.control-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.control-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.03em;
}

.control-icon {
  width: 1rem;
  height: 1rem;
}

.sort-order-toggle {
  background: none;
  border: none;
  padding: 0.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  color: var(--primary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sort-order-toggle:hover {
  background-color: rgba(139, 69, 19, 0.1);
  transform: scale(1.1);
}

.sort-order-toggle:active {
  transform: scale(0.95);
}

.filter-buttons,
.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-button,
.sort-button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover,
.sort-button:hover {
  box-shadow: 0 2px 8px var(--shadow);
}

.filter-button-active,
.sort-button-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px var(--glow);
}

.filter-button-inactive,
.sort-button-inactive {
  opacity: 0.7;
}

.filter-button-inactive:hover,
.sort-button-inactive:hover {
  opacity: 1;
  border-color: var(--primary);
}

/* ===== タスクカード ===== */
.task-grid-container {
  height: calc(100vh - 100px); /* ヘッダーやコントロール部分を除いた高さ */
  overflow-y: auto;
  padding: 8px;
}

.task-grid-container::-webkit-scrollbar {
  width: 8px;
}

.task-grid-container::-webkit-scrollbar-track {
  background: rgba(139, 69, 19, 0.1);
  border-radius: 4px;
}

.task-grid-container::-webkit-scrollbar-thumb {
  background: rgba(139, 69, 19, 0.3);
  border-radius: 4px;
}

.task-grid-container::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 69, 19, 0.5);
}

.task-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: 1fr; /* 各行の高さを均一にする */
  padding-bottom: 2rem; /* 最後のカードの下に余白 */
}

.task-card {
  background:
    /* 古い羊皮紙のテクスチャ */ repeating-linear-gradient(
      90deg,
      rgba(139, 69, 19, 0.08) 0px,
      rgba(139, 69, 19, 0.08) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(101, 67, 33, 0.05) 0px,
      rgba(101, 67, 33, 0.05) 1px,
      transparent 1px,
      transparent 16px
    ),
    /* 羊皮紙の古い染み */
      radial-gradient(
        circle at 20% 80%,
        rgba(139, 69, 19, 0.06) 0%,
        transparent 40%
      ),
    radial-gradient(
      circle at 80% 20%,
      rgba(160, 82, 45, 0.04) 0%,
      transparent 50%
    ),
    /* ベースカード色 */ var(--card);
  border: 2px solid var(--wood-brown);
  border-radius: 8px;
  box-shadow: 0 8px 25px var(--shadow), inset 0 2px 0 rgba(245, 230, 211, 0.3),
    inset 0 -2px 0 rgba(139, 69, 19, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.task-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(139, 69, 19, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

.task-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(139, 69, 19, 0.3),
    inset 0 3px 0 rgba(245, 230, 211, 0.5),
    inset 0 -3px 0 rgba(139, 69, 19, 0.2);
  border-color: var(--primary);
  background:
    /* ホバー時の光る効果 */ radial-gradient(
      circle at 50% 50%,
      rgba(245, 230, 211, 0.15) 0%,
      transparent 70%
    ),
    /* 元の背景を維持 */
      repeating-linear-gradient(
        90deg,
        rgba(139, 69, 19, 0.08) 0px,
        rgba(139, 69, 19, 0.08) 1px,
        transparent 1px,
        transparent 8px
      ),
    repeating-linear-gradient(
      0deg,
      rgba(101, 67, 33, 0.05) 0px,
      rgba(101, 67, 33, 0.05) 1px,
      transparent 1px,
      transparent 16px
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(139, 69, 19, 0.06) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(160, 82, 45, 0.04) 0%,
      transparent 50%
    ),
    var(--card);
}

/* 優先度別カードスタイル */
.task-card.priority-low {
  border-left: 4px solid var(--priority-low);
}
.task-card.priority-medium {
  border-left: 4px solid var(--priority-medium);
}
.task-card.priority-high {
  border-left: 4px solid var(--priority-high);
}
.task-card.priority-urgent {
  border-left: 4px solid var(--priority-urgent);
  box-shadow: 0 4px 12px var(--shadow), 0 0 20px rgba(239, 68, 68, 0.2);
}

.task-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.task-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.03em;
}

.task-card-content {
  padding: 1.25rem;
  min-height: 240px; /* 依存タスクの有無に関わらず一定の高さを確保 */
  display: flex;
  flex-direction: column;
}

.task-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.task-stat-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.task-stat-value {
  color: white;
  background-color: var(--primary);
  white-space: nowrap;
}

.task-progress {
  height: 0.25rem;
  background: var(--muted);
  border-radius: 2px;
  overflow: hidden;
  flex: 1;
  margin: 0 0.5rem;
}

.task-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.task-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== バッジ ===== */
.priority-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.priority-badge-low {
  background: var(--priority-low);
  color: white;
}

.priority-badge-medium {
  background: var(--priority-medium);
  color: white;
}

.priority-badge-high {
  background: var(--priority-high);
  color: white;
}

.priority-badge-urgent {
  background: var(--priority-urgent);
  color: white;
  animation: urgent-pulse 2s ease-in-out infinite;
}

/* 緊急タスクのパルスアニメーション */
@keyframes urgent-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.status-pending {
  background: var(--status-pending);
  color: white;
}

.status-active {
  background: var(--status-active);
  color: white;
}

.status-completed {
  background: var(--status-completed);
  color: white;
}

/* 締切バッジ */
.deadline-normal {
  background-color: var(--primary);
  color: white;
}

.deadline-urgent {
  background: var(--priority-high);
  color: white;
}

.deadline-overdue {
  background: var(--priority-urgent);
  color: white;
}

/* 依存タグ */
.dependency-tag {
  padding: 0.125rem 0.5rem;
  background: var(--muted);
  color: var(--foreground);
  font-size: 0.7rem;
  border-radius: 4px;
}

/* 優先度スター */
.priority-stars {
  display: flex;
  gap: 0.125rem;
}

.star-filled {
  color: var(--star);
  fill: currentColor;
}

.star-empty {
  color: var(--muted-foreground);
}

/* ===== 空の状態 ===== */
.empty-task-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  background: var(--muted);
  border: 2px dashed var(--border);
  border-radius: 12px;
  margin: 2rem 0;
}

.empty-icon {
  margin-bottom: 2rem;
}

.empty-clock {
  width: 3rem;
  height: 3rem;
  color: var(--muted-foreground);
  opacity: 0.5;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

.empty-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===== フッター ===== */
.app-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  font-family: "Georgia", "Times New Roman", serif;
}

.footer-content p {
  margin-bottom: 0.25rem;
}

.footer-sub {
  opacity: 0.7;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1022px) {
  .task-grid-container {
    height: calc(100vh - 30px) !important;
  }
}

@media (max-width: 768px) {
  .app-title-main {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .priority-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .control-panel {
    flex-direction: column;
    gap: 1rem;
  }

  .task-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app-title-main {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .priority-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* タスクカードの高さを統一するための追加スタイル */
.space-y-3 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1; /* 親要素の空きスペースを埋める */
}

/* 依存タスクがない場合でも同じ高さを確保するためのスタイル */
.task-stat:last-child {
  margin-top: auto;
}

/* 優先度別ホバー効果 */
.task-card.priority-low:hover {
  border-color: var(--priority-low);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(34, 197, 94, 0.3),
    inset 0 3px 0 rgba(245, 230, 211, 0.5),
    inset 0 -3px 0 rgba(34, 197, 94, 0.2);
}

.task-card.priority-medium:hover {
  border-color: var(--priority-medium);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(251, 191, 36, 0.3),
    inset 0 3px 0 rgba(245, 230, 211, 0.5),
    inset 0 -3px 0 rgba(251, 191, 36, 0.2);
}

.task-card.priority-high:hover {
  border-color: var(--priority-high);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(249, 115, 22, 0.3),
    inset 0 3px 0 rgba(245, 230, 211, 0.5),
    inset 0 -3px 0 rgba(249, 115, 22, 0.2);
}

.task-card.priority-urgent:hover {
  border-color: var(--priority-urgent);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(239, 68, 68, 0.4),
    inset 0 3px 0 rgba(245, 230, 211, 0.5),
    inset 0 -3px 0 rgba(239, 68, 68, 0.3);
  animation: urgent-glow 2s ease-in-out infinite alternate;
}

/* 緊急タスクの光る効果 */
@keyframes urgent-glow {
  0% {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2),
      0 8px 20px rgba(239, 68, 68, 0.4), inset 0 3px 0 rgba(245, 230, 211, 0.5),
      inset 0 -3px 0 rgba(239, 68, 68, 0.3);
  }
  100% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
      0 12px 30px rgba(239, 68, 68, 0.6), inset 0 4px 0 rgba(245, 230, 211, 0.6),
      inset 0 -4px 0 rgba(239, 68, 68, 0.4);
  }
}

/* タスクカード内の要素のホバー効果 */
.task-card:hover .task-card-title {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(157, 78, 221, 0.3);
}

.task-card:hover .priority-badge {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.task-card:hover .task-stat-icon {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.task-card:hover .priority-stars .star-filled {
  filter: brightness(1.3) drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

/* 画面サイズが狭いときのタスク詳細表示調整 */
@media (max-width: 640px) {
  .task-stat {
    width: 100%;
    justify-content: space-between;
  }

  .task-stat > span:last-child {
    margin-left: auto;
  }

  .task-progress {
    max-width: 80px;
    margin-left: auto;
    margin-right: 4px;
  }
}

/* グリッドレイアウトの調整 */
@media (min-width: 640px) {
  .task-card-content .grid {
    -moz-column-gap: 5rem;
         column-gap: 5rem;
  }
}

@media (min-width: 767px) {
  .task-card-content .grid {
    -moz-column-gap: 2.5rem;
         column-gap: 2.5rem;
  }
}

/* ===== モーダル ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(139, 69, 19, 0.2),
    inset 0 2px 0 rgba(245, 230, 211, 0.3);
  border: 2px solid var(--border);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* 削除: 重複するmodal-headerクラス */

.modal-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

/* 削除: 重複するmodal-close-buttonクラス */

.modal-body {
  padding: 0 1.5rem 1.5rem;
}

/* ===== フォーム ===== */
.task-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.form-label.required::after {
  content: "*";
  color: #dc2626;
  margin-right: 0.25rem;
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--card-foreground);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-input-error {
  border-color: #dc2626;
}

.form-input-error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

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

.form-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.form-button-primary:hover:not(:disabled) {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.form-button-secondary {
  background: transparent;
  color: var(--muted-foreground);
  border-color: var(--border);
}

.form-button-secondary:hover:not(:disabled) {
  background: var(--muted);
  color: var(--card-foreground);
  border-color: var(--primary);
}

/* ===== 追加ボタン ===== */
.search-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.add-task-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.add-task-button:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

/* ===== 最適化ボタン（FAB） ===== */
.optimization-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
}

.optimization-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px var(--shadow);
  border: 2px solid var(--primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.optimization-button-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--primary-foreground);
  box-shadow: 0 8px 25px var(--shadow), 0 4px 12px rgba(139, 69, 19, 0.3);
}

.optimization-button-active:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px var(--shadow), 0 6px 16px rgba(139, 69, 19, 0.4);
}

.optimization-button-inactive {
  background: var(--muted);
  color: var(--muted-foreground);
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0.6;
  cursor: not-allowed;
}

.optimization-button-content {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 3px;
}

.optimization-count-badge {
  margin-left: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-button {
    width: 100%;
    justify-content: center;
  }

  .search-section {
    flex-direction: column;
    align-items: stretch;
  }

  .task-opt-board > div {
    justify-content: center;
  }
}
/* datetime-localのクリック領域を拡大 */
.datetime-input {
  cursor: pointer;
  position: relative;
}

.datetime-input::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  opacity: 0;
}

/* 右端にシンプルなカレンダーアイコンを表示 */
.datetime-input::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary);
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 25%,
    var(--primary) 25%,
    var(--primary) 35%,
    transparent 35%,
    transparent 65%,
    var(--primary) 65%,
    var(--primary) 75%,
    transparent 75%
  );
}

/* カレンダーの上部（日付部分）を表現 */
.datetime-input::before {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: calc(50% - 6px);
  pointer-events: none;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 1px;
}
/* プレースホルダーの色を黒に変更 */
.form-input::-moz-placeholder, .form-textarea::-moz-placeholder {
  color: #000000;
  opacity: 0.7;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #000000;
  opacity: 0.7;
}

/* ダークモードでも黒を維持 */
@media (prefers-color-scheme: dark) {
  .form-input::-moz-placeholder, .form-textarea::-moz-placeholder {
    color: #000000;
    opacity: 0.7;
  }
  .form-input::placeholder,
  .form-textarea::placeholder {
    color: #000000;
    opacity: 0.7;
  }
}

/* フォームの入力フィールドで大文字変換を無効化とフォント修正 */
.form-input,
.form-textarea,
.form-select {
  text-transform: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif !important;
}

/* 認証フォーム専用のスタイル - 最高優先度 */
.auth-form-container .auth-form-input,
.auth-form-container input[type="email"],
.auth-form-container input[type="password"],
.auth-form-container input[type="text"],
input.auth-form-input {
  text-transform: none !important;
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-variant: normal !important;
  text-rendering: optimizeLegibility !important;
  font-feature-settings: normal !important;
  letter-spacing: normal !important;
  font-style: normal !important;
  font-weight: normal !important;
}

/* 認証フォームコンテナ全体のフォント設定 */
.auth-form-container,
.auth-form-container * {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-transform: none !important;
}

/* 認証フォーム内のすべての要素に適用 */
.auth-form-container input,
.auth-form-container label,
.auth-form-container button,
.auth-form-container textarea,
.auth-form-container select {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-transform: none !important;
  font-variant: normal !important;
  letter-spacing: normal !important;
}
.status-cancelled {
  background: #979797;
  color: white;
}

.stat-cancelled .stat-number {
  color: #979797;
}
/* Optimization Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.optimization-modal {
  background: #f5deb3;
  border-radius: 12px;
  border: 3px solid #8b4513;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 2px solid var(--wood-brown);
  background: linear-gradient(135deg, #deb887 0%, #d2b48c 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2,
.modal-title {
  margin: 0;
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.modal-close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close-button:hover {
  background: rgba(139, 69, 19, 0.1);
  color: var(--primary);
}

.optimization-step-indicator {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #f0c88c;
  border-bottom: 1px solid #d2b48c;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: #d2b48c;
  z-index: 1;
}

.step.active:not(:last-child)::after {
  background: #8b4513;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d2b48c;
  color: #654321;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.step.active .step-number {
  background: #8b4513;
  color: #f5deb3;
}

.step-label {
  font-size: 0.8rem;
  color: #654321;
  font-weight: 500;
}

.modal-body {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

.optimization-step-content h3 {
  margin: 0 0 1.5rem 0;
  color: #654321;
  font-size: 1rem;
}

.selected-tasks-preview {
  background: #fffacd;
  border: 2px solid #d2b48c;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
}

.task-count {
  font-weight: bold;
  color: #8b4513;
  margin-bottom: 1rem;
}

.task-list-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.task-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: #f5deb3;
  border-radius: 4px;
  border: 1px solid #d2b48c;
}

.task-title {
  font-weight: 500;
  color: #654321;
}

.task-priority {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background: #deb887;
  color: #654321;
}

.task-preview-more {
  text-align: center;
  color: #8b4513;
  font-style: italic;
  padding: 0.5rem;
}

.parameter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group label {
  font-weight: bold;
  font-size: 0.9rem;
  color: #9f8163;
}

.priority-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal !important;
}

.radio-option input,
.checkbox-option input {
  margin: 0;
}

.time-slider,
.weight-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #d2b48c;
  outline: none;
  -webkit-appearance: none;
}

.time-slider::-webkit-slider-thumb,
.weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8b4513;
  cursor: pointer;
}

.time-slider::-moz-range-thumb,
.weight-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8b4513;
  cursor: pointer;
  border: none;
}

.time-value,
.weight-value {
  font-weight: bold;
  color: #8b4513;
  text-align: center;
  display: block;
  margin-top: 0.5rem;
}

.weight-description {
  font-size: 0.8rem;
  color: #b3804d;
  margin-top: 0.25rem;
  font-style: italic;
}

.processing-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #d2b48c;
  border-top: 4px solid #8b4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.optimization-results {
  background: #fffacd;
  border: 2px solid #d2b48c;
  border-radius: 8px;
  padding: 1.5rem;
}

.results-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f5deb3;
  border-radius: 6px;
  border: 1px solid #d2b48c;
}

.result-item .label {
  font-weight: 500;
  color: #654321;
}

.result-item .value {
  font-weight: bold;
  color: #8b4513;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 2px solid #d2b48c;
  background: #f0c88c;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.9rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid;
}

.btn-primary {
  background: #8b4513;
  color: #f5deb3;
  border-color: #654321;
}

.btn-primary:hover {
  background: #a0522d;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #d2b48c;
  color: #654321;
  border-color: #8b4513;
}

.btn-secondary:hover {
  background: #deb887;
  transform: translateY(-1px);
}

/* タスク選択関連のスタイル */
.task-card.selected {
  border-color: #8b4513;
  background: linear-gradient(135deg, #f5deb3 0%, #f0e68c 100%);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.task-selection-checkbox {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  accent-color: #8b4513;
  cursor: pointer;
  z-index: 10;
}

.selection-mode-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #8b4513;
  color: #f5deb3;
  border: 2px solid #654321;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  min-height: 48px;
}

.selection-mode-button:hover {
  background: #a0522d;
  transform: translateY(-1px);
}

.selection-mode-button.active {
  background: #654321;
  border-color: #8b4513;
}

.selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f0e68c;
  border: 2px solid #d2b48c;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.selection-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
  color: #654321;
}

.selection-actions {
  display: flex;
  gap: 0.5rem;
}

.selection-action-btn {
  padding: 0.5rem 1rem;
  background: #8b4513;
  color: #f5deb3;
  border: 1px solid #654321;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.selection-action-btn:hover {
  background: #a0522d;
}

@media (max-width: 768px) {
  .optimization-modal {
    margin: 0.5rem;
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .priority-options {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .optimization-step-indicator {
    padding: 0.75rem 1rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .selection-summary {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .selection-info {
    justify-content: center;
  }

  .selection-actions {
    justify-content: center;
  }
}
/* 最適化結果表示のスタイル */
.optimization-success,
.optimization-error {
  text-align: center;
  margin-bottom: 2rem;
}

.optimization-success h3 {
  color: #22c55e;
  margin-top: 1rem;
}

.optimization-error h3 {
  color: #ef4444;
  margin-top: 1rem;
}

.error-message {
  color: #dc2626;
  font-weight: 500;
  margin: 1rem 0;
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.error-suggestion {
  color: #6b7280;
  font-size: 0.9rem;
  font-style: italic;
}

.optimized-task-list {
  margin-top: 2rem;
}

.optimized-task-list h4 {
  color: #654321;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}

.task-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #d2b48c;
}

.overall-score {
  font-size: 0.9rem;
  color: #8b4513;
  font-weight: 600;
  background: #f5deb3;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #d2b48c;
}

.task-order-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  padding: 1rem 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.optimized-task-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fffacd;
  border: 1px solid #d2b48c;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.task-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #8b4513;
  color: #f5deb3;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-name {
  font-weight: 600;
  color: #654321;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-score {
  font-size: 0.8rem;
  color: #8b4513;
  font-weight: 500;
}

.task-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.task-duration,
.task-importance {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  background: #deb887;
  color: #654321;
  font-weight: 500;
}

.task-order-list::-webkit-scrollbar {
  width: 6px;
}

.task-order-list::-webkit-scrollbar-track {
  background: #f0e68c;
  border-radius: 3px;
}

.task-order-list::-webkit-scrollbar-thumb {
  background: #d2b48c;
  border-radius: 3px;
}

.task-order-list::-webkit-scrollbar-thumb:hover {
  background: #8b4513;
}

@media (max-width: 768px) {
  .optimized-task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .task-details {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.5rem;
  }

  .task-rank {
    align-self: flex-start;
  }

  .task-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .overall-score {
    align-self: flex-end;
  }
}
/* 最適化モーダル - 選択されたタスクのプレビュー */
.selected-tasks-preview {
  margin: 1rem 0;
}

.task-count {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.task-list-preview.scrollable {
  max-height: 300px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.task-preview-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.task-preview-item:last-child {
  border-bottom: none;
}

.task-title {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.task-priority {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.task-preview-more {
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  border-top: 1px solid var(--border);
}

/* 複数解表示のスタイル */
.solution-container {
  margin-bottom: 2rem;
  border: 2px solid #d2b48c;
  border-radius: 8px;
  background: #fffacd;
  overflow: hidden;
}

.solution-header {
  background: #f0e68c;
  padding: 1rem;
  border-bottom: 1px solid #d2b48c;
}

.solution-header h5 {
  margin: 0 0 0.75rem 0;
  color: #654321;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.best-solution-badge {
  background: #8b4513;
  color: #f5deb3;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.solution-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.solution-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #8b4513;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background: #f5deb3;
  border-radius: 4px;
}

.solution-container .task-order-list {
  padding: 1rem;
  margin: 0;
  max-height: 250px;
}

@media (max-width: 768px) {
  .solution-info {
    grid-template-columns: 1fr;
  }

  .solution-container .task-order-list {
    max-height: 200px;
  }
}

/* スクロールバーのスタイリング */
.task-list-preview.scrollable::-webkit-scrollbar {
  width: 6px;
}

.task-list-preview.scrollable::-webkit-scrollbar-track {
  background: var(--background-secondary);
  border-radius: 3px;
}

.task-list-preview.scrollable::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.task-list-preview.scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
/* 詳細最適化結果のスタイル */
.solution-info {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--background-secondary);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.solution-info p {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}
/* 認証フォーム用の最強優先度スタイル - 標準フォントを使用 */
.content-board.auth-form-container input,
.content-board.auth-form-container .form-input,
.content-board.auth-form-container input.auth-form-input,
.auth-form-container .task-form input,
.auth-form-container .task-form .form-input {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Hiragino Sans", sans-serif !important;
  text-transform: none !important;
  font-variant: normal !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  text-rendering: optimizeLegibility !important;
  font-feature-settings: normal !important;
}

/* プレースホルダーテキストも標準フォントに */
.auth-form-container input::-moz-placeholder, .content-board.auth-form-container input::-moz-placeholder {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-transform: none !important;
  font-style: normal !important;
}
.auth-form-container input::placeholder,
.content-board.auth-form-container input::placeholder {
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-transform: none !important;
  font-style: normal !important;
}
.hover\:scale-105:hover{
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:transform:hover{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:bg-blue-500\/80:hover{
  background-color: rgb(59 130 246 / 0.8);
}
.hover\:bg-blue-600:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.hover\:bg-green-500\/80:hover{
  background-color: rgb(34 197 94 / 0.8);
}
.hover\:bg-red-300:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(252 165 165 / var(--tw-bg-opacity, 1));
}
.hover\:bg-yellow-500\/80:hover{
  background-color: rgb(234 179 8 / 0.8);
}
.hover\:ring-1:hover{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.hover\:ring-blue-300:hover{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity, 1));
}
.focus\:outline-none:focus{
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-2:focus{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-blue-500:focus{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}
.focus\:ring-ring:focus{
  --tw-ring-color: var(--ring);
}
.focus\:ring-offset-2:focus{
  --tw-ring-offset-width: 2px;
}
@media (min-width: 640px){

  .sm\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-color-scheme: dark){

  .dark\:border-gray-600{
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  }

  .dark\:bg-blue-900\/20{
    background-color: rgb(30 58 138 / 0.2);
  }

  .dark\:bg-gray-700{
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
  }

  .dark\:text-red-400{
    --tw-text-opacity: 1;
    color: rgb(248 113 113 / var(--tw-text-opacity, 1));
  }

  .dark\:ring-offset-gray-800{
    --tw-ring-offset-color: #1f2937;
  }

  .dark\:hover\:bg-red-900\/20:hover{
    background-color: rgb(127 29 29 / 0.2);
  }

  .dark\:focus\:ring-blue-600:focus{
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity, 1));
  }
}

