@charset "UTF-8";
/**
 * font-jp https://yakuhanjp.qranoko.jp/
 * font-en https://fonts.google.com/specimen/Oswald
 * 横スクロール https://bagelee.com/design/css/scroll_snap_with_css/
 */
@import url("https://fonts.googleapis.com/css2?family=Oswald&display=swap");
:root {
  --color-primary: #800080;
  --color-secondary: #0000ff;
  --color-accent: #ae81ff;
  --color-danger: #f92672;
  --color-white: #ffffff;
  --color-black: #000000;
  --gradient-purple: rgba(128, 0, 128, 0.82);
  --gradient-blue: rgba(0, 0, 255, 0.82);
  --gradient-overlay: linear-gradient(
    45deg,
    var(--gradient-purple),
    var(--gradient-blue)
  );
  --bg-glass: rgba(201, 181, 213, 0.25);
  --bg-glass-dark: rgba(0, 0, 0, 0.3);
  --bg-overlay-light: rgba(0, 0, 0, 0.25);
  --bg-overlay-normal: rgba(0, 0, 0, 0.35);
  --bg-overlay-dark: rgba(0, 0, 0, 0.5);
  --bg-button-hover: rgba(0, 0, 0, 0.2);
  --btn-primary-bg: rgba(249, 38, 114, 0.8);
  --btn-primary-bg-hover: rgba(249, 38, 114, 1);
  --btn-secondary-bg: rgba(174, 129, 255, 0.9);
  --border-light: rgba(255, 255, 255, 0.2);
  --border-normal: rgba(255, 255, 255, 0.3);
  --border-strong: rgba(255, 255, 255, 0.4);
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-vh-sm: 1vh;
  --spacing-vh-md: 2vh;
  --spacing-vh-lg: 4vh;
  --spacing-vh-xl: 6vh;
  --spacing-vh-2xl: 8vh;
  --spacing-vw-sm: 1vw;
  --spacing-vw-md: 2vw;
  --spacing-vw-lg: 4vw;
  --font-primary: "Oswald", sans-serif;
  --font-japanese: YakuHanRP, "M PLUS Rounded 1c", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --font-size-xs: 0.85rem;
  --font-size-sm: 0.9rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.2rem;
  --letter-spacing-tight: 0.05em;
  --letter-spacing-normal: 0.1em;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 50%;
  --shadow-text: drop-shadow(1px 1px 1px black);
  --shadow-text-strong: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
  --shadow-button-normal: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
  --shadow-button-hover: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
  --shadow-box: 0 0 4px #ccc;
  --shadow-focus: 0 0 0 3px rgba(174, 129, 255, 0.2);
  --blur-light: blur(4px);
  --blur-medium: blur(6px);
  --blur-strong: blur(10px);
  --z-base: 0;
  --z-dropdown: 10;
  --z-header: 11;
  --z-modal: 100;
  --z-tooltip: 1000;
  --transition-fast: 0.15s;
  --transition-normal: 0.2s;
  --transition-slow: 0.3s;
  --transition-expand: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --duration-collapse: 5000ms;
  --breakpoint-mobile-sm: 480px;
  --breakpoint-mobile: 768px;
  --breakpoint-tablet: 1024px;
  --breakpoint-desktop: 1200px;
  --touch-target-min: 44px;
  --touch-target-sm: 40px;
  --max-width-content: 1200px;
  --grid-gap: 12px;
  --grid-columns-desktop: 2;
  --grid-columns-mobile: 1;
  --container-width-mobile: 44px;
  --container-width-mobile-sm: 40px;
  --container-width-expanded: 160px;
  --nav-bottom-mobile: 10vh;
  --nav-bottom-desktop: 2vh;
}

/**
  * ======= Flex Box =======
  * Example:
  *   @include flex(center, center)
  *   @include flex(null, end, column, nowrap)
*/
.fx {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-c {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: center;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-c-c {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: center;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-c-b {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: center;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: baseline;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-c-e {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: center;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: flex-end;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-n-c {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-e {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: flex-end;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-n-e {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: flex-end;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-b {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: space-between;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-b-c {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: space-between;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-b-e {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: space-between;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: flex-end;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-s {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: space-around;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-a-c {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: space-around;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

.fx-a-e {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: space-around;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: flex-end;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

button,
input[type=button],
input[type=reset],
input[type=submit] {
  appearance: none;
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  cursor: pointer;
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 0.5em 1em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
button:hover,
input[type=button]:hover,
input[type=reset]:hover,
input[type=submit]:hover {
  opacity: 0.8;
}
button:focus,
input[type=button]:focus,
input[type=reset]:focus,
input[type=submit]:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
button:disabled,
input[type=button]:disabled,
input[type=reset]:disabled,
input[type=submit]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input[type=email],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
textarea,
select {
  appearance: none;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box;
  color: inherit;
  font-size: 1rem;
  padding: 0.5em 0.75em;
  width: 100%;
  transition: border-color 0.2s ease;
}
input[type=email]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=url]:focus,
textarea:focus,
select:focus {
  border-color: var(--color5);
  outline: none;
}
input[type=email]::placeholder,
input[type=number]::placeholder,
input[type=password]::placeholder,
input[type=search]::placeholder,
input[type=tel]::placeholder,
input[type=text]::placeholder,
input[type=url]::placeholder,
textarea::placeholder,
select::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

select {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" viewBox="0 0 29 14" width="29"><path fill="white" d="M9.37727 3.625l5.08154 6.93523L19.54036 3.625"/></svg>') center right no-repeat;
  padding-right: 2rem;
}

label,
legend {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

fieldset {
  border-width: 0;
  padding: 0;
}

a {
  color: var(--color5);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: var(--color4);
}

:root {
  --color1: #f92672;
  --color2: #a6e22e;
  --color3: #fd971f;
  --color4: #66d9ef;
  --color5: #ae81ff;
  --color6: #e6db74;
  --color7: #75715e;
  --color8: #272822;
  --white: whitesmoke;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  scrollbar-width: thin;
}

body {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 100vw;
  height: 100vh;
  padding: 8px 12px 60px;
  font-family: YakuHanRP, "M PLUS Rounded 1c", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}
body:before {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  content: "";
  color: white;
  background-image: linear-gradient(45deg, rgba(128, 0, 128, 0.82), rgba(0, 0, 255, 0.82)), url("https://picsum.photos/1200/800/?image=133");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-size: cover;
  backdrop-filter: blur(6px);
}

p {
  margin: 0.1em 0 0.5em;
  padding: 0;
  line-height: 1.8;
}

input[type=button] {
  margin: 0;
  filter: drop-shadow(1px 1px 0px black);
}

@media only screen and (max-width: 768px) {
  body {
    overflow-y: auto;
  }
  body.main-page {
    padding: 0;
  }
  body:not(.main-page) {
    padding: 8px 12px 64px;
  }
}
nav.garages-nav {
  position: fixed;
  z-index: 100;
  bottom: 8px;
  right: 8px;
  font-family: "Oswald", sans-serif;
}
nav.garages-nav ul {
  list-style: none;
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: baseline;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}
nav.garages-nav ul li {
  margin: 0 0.5em;
}
nav.garages-nav ul li a {
  color: white;
  filter: drop-shadow(1px 1px 0px black);
}
nav.garages-nav ul li button {
  background: rgba(174, 129, 255, 0.8);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  padding: 2px 8px;
  transition: all 0.2s;
  filter: drop-shadow(1px 1px 0px black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1.2rem;
}
nav.garages-nav ul li button:hover {
  background: rgb(174, 129, 255);
  transform: translateY(-1px);
}
nav.garages-nav ul li button:active {
  transform: translateY(0);
}
nav.garages-nav ul li button.active {
  background: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(174, 129, 255, 0.5);
}

@media only screen and (max-width: 768px) {
  nav.garages-nav {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 4px;
    border-radius: 0;
    backdrop-filter: blur(10px);
  }
  nav.garages-nav ul {
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: 4px;
  }
  nav.garages-nav ul li {
    margin: 0;
    flex: 1;
  }
  nav.garages-nav ul li a {
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 4px;
    display: block;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s;
  }
  nav.garages-nav ul li a:hover, nav.garages-nav ul li a:active {
    background: rgba(255, 255, 255, 0.1);
  }
  nav.garages-nav ul li a::before {
    content: "";
  }
  nav.garages-nav ul li:nth-child(1) a::after {
    content: "A";
  }
  nav.garages-nav ul li:nth-child(2) a::after {
    content: "B";
  }
  nav.garages-nav ul li:nth-child(3) a::after {
    content: "C";
  }
  nav.garages-nav ul li:nth-child(4) a::after {
    content: "D";
  }
  nav.garages-nav ul li:nth-child(5) a::after {
    content: "MAN";
  }
  nav.garages-nav ul li a {
    font-size: 0;
    line-height: 0;
  }
  nav.garages-nav ul li a::after {
    font-size: 1rem;
    line-height: 1.5;
  }
  nav.garages-nav ul li button {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}
header.header {
  position: fixed;
  z-index: 10;
  bottom: 2px;
  left: 12px;
  width: auto;
  display: grid;
  grid-template-columns: auto auto auto;
  padding: 0;
  color: white;
  font-family: "Oswald", sans-serif;
  filter: drop-shadow(1px 1px 0px black);
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: center;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: flex-end;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}
header.header .logo-img img {
  width: 24px;
  padding: 2px;
}
header.header h1.logo-title {
  margin: 0 0 4px 4px;
  letter-spacing: 0.05ch;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}
header.header #message {
  margin: 2px 0 7px 5px;
  opacity: 0.7;
  text-shadow: 0 0 3px rgba(255, 255, 0, 0.6);
  font-size: 24px;
}

h2,
h3 {
  margin: 0.2em 0.2em;
  letter-spacing: 0.05ch;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  font-family: "Oswald", sans-serif;
  filter: drop-shadow(1px 1px 0px black);
}

h3 {
  color: var(--color5);
  font-size: 1.5em;
}

.is-hidden {
  visibility: hidden;
}

h2.garage-title {
  margin: 0 16px 8px;
  font-size: 28px;
}

.garage-head {
  margin: 0 16px 4px;
}

input.stroke-title {
  display: flex;
  width: 16em;
  max-width: 50vw;
  height: 2em;
  margin: 0;
  padding: 0.1em 0.8em;
  text-align: center;
  color: #fff;
  border: none;
  border: 1px solid #f8f8ff;
  border-radius: 1em;
  outline: none;
  background: rgba(255, 255, 255, 0.1333333333);
  font-size: 1.3em;
  filter: drop-shadow(1px 1px 0px black);
}

.title-delete {
  margin-left: 2px;
  cursor: pointer;
  transform: scale(1.1, 0.9);
  color: rgba(248, 248, 248, 0.662745098);
  font-size: 24px;
  filter: drop-shadow(1px 1px 0px black);
}

.clear-garage-box {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.clear-garage-box > input[type=button] {
  border: none;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1333333333);
  font-size: 1em;
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: center;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}

@media only screen and (max-width: 768px) {
  header.header {
    bottom: 2px;
    left: 12px;
    flex-wrap: nowrap;
    padding-left: 0;
  }
  header.header .logo-img img {
    width: 20px;
  }
  header.header h1.logo-title {
    display: none;
  }
  header.header #message {
    font-size: 12px;
    margin: 0 0 0 8px;
  }
  h2.garage-title {
    font-size: 22px;
    margin: 0 16px 12px;
  }
  .garage-head {
    margin: 0 16px 12px;
    gap: 8px;
  }
  input.stroke-title {
    width: auto;
    max-width: 100%;
    font-size: 1em;
  }
  .title-delete {
    font-size: 18px;
  }
  .clear-garage-box {
    width: auto;
    margin-left: auto;
    flex-direction: column;
  }
  .clear-garage-box > input[type=button] {
    width: 100%;
    font-size: 0.85em;
    padding: 8px 12px;
  }
}
.garages-container {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100vw;
  height: 100vh;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.garages {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: auto;
  height: 100vh;
  padding: 0;
}
.garages .garage {
  flex-shrink: 0;
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  margin: 0;
  padding: var(--spacing-vh-lg) var(--spacing-vw-md);
  box-sizing: border-box;
  scroll-snap-align: start;
  border: 1px solid var(--border-light);
  border-radius: 0;
  background-color: var(--bg-glass);
  backdrop-filter: var(--blur-light);
}
.garages .garage-strokes {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns-desktop), 1fr);
  gap: var(--grid-gap);
  margin: var(--spacing-md) 0;
  width: 100%;
  height: calc(92vh - 140px);
  border-radius: var(--radius-md);
}
.garages .garage-strokes .garage-stroke-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: var(--spacing-vh-sm) var(--spacing-vw-sm);
  box-sizing: border-box;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-overlay-normal);
}
.garages .garage-strokes .clear-area {
  margin: 8px 0;
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: flex-end;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}
.garages .garage-strokes input[type=button] {
  color: currentcolor;
  border-color: currentcolor;
  background: rgba(0, 0, 0, 0.3333333333);
}
.garages .garage-strokes .garage-stroke-box:nth-child(1) h3,
.garages .garage-strokes .garage-stroke-box:nth-child(1) textarea,
.garages .garage-strokes .garage-stroke-box:nth-child(1) input[type=button] {
  color: var(--color4);
}
.garages .garage-strokes .garage-stroke-box:nth-child(1) textarea::-webkit-scrollbar-thumb {
  background: rgba(102, 217, 239, 0.5);
}
.garages .garage-strokes .garage-stroke-box:nth-child(1) textarea {
  scrollbar-color: rgba(102, 217, 239, 0.5) transparent;
}
.garages .garage-strokes .garage-stroke-box:nth-child(2) h3,
.garages .garage-strokes .garage-stroke-box:nth-child(2) textarea,
.garages .garage-strokes .garage-stroke-box:nth-child(2) input[type=button] {
  color: var(--color2);
  border-color: var(--color2);
}
.garages .garage-strokes .garage-stroke-box:nth-child(2) textarea::-webkit-scrollbar-thumb {
  background: rgba(166, 226, 46, 0.5);
}
.garages .garage-strokes .garage-stroke-box:nth-child(2) textarea {
  scrollbar-color: rgba(166, 226, 46, 0.5) transparent;
}
.garages .garage-strokes .garage-stroke-box:nth-child(3) h3,
.garages .garage-strokes .garage-stroke-box:nth-child(3) textarea,
.garages .garage-strokes .garage-stroke-box:nth-child(3) input[type=button] {
  color: var(--color3);
  border-color: var(--color3);
}
.garages .garage-strokes .garage-stroke-box:nth-child(3) textarea::-webkit-scrollbar-thumb {
  background: rgba(253, 151, 31, 0.5);
}
.garages .garage-strokes .garage-stroke-box:nth-child(3) textarea {
  scrollbar-color: rgba(253, 151, 31, 0.5) transparent;
}
.garages .garage-strokes .garage-stroke-box:nth-child(4) h3,
.garages .garage-strokes .garage-stroke-box:nth-child(4) textarea,
.garages .garage-strokes .garage-stroke-box:nth-child(4) input[type=button] {
  color: var(--color1);
  border-color: var(--color1);
}
.garages .garage-strokes .garage-stroke-box:nth-child(4) textarea::-webkit-scrollbar-thumb {
  background: rgba(249, 38, 114, 0.5);
}
.garages .garage-strokes .garage-stroke-box:nth-child(4) textarea {
  scrollbar-color: rgba(249, 38, 114, 0.5) transparent;
}
.garages textarea {
  flex: 1;
  overflow: auto;
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding: 0.5ch 1ch;
  box-sizing: border-box;
  resize: none;
  transition: 0.15s;
  border: 2px solid currentcolor !important;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.35);
  font-family: YakuHanRP, "M PLUS Rounded 1c", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.9em;
  filter: drop-shadow(1px 1px 0px black);
  touch-action: manipulation;
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: center;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
}
.garages textarea:hover {
  border-color: white !important;
  background-color: rgba(0, 0, 0, 0.2);
}
.garages textarea:focus, .garages textarea:focus-visible {
  border: 2px solid currentcolor !important;
  background-color: rgba(0, 0, 0, 0.5);
}

@media only screen and (max-width: 1024px) {
  .garages-container {
    padding: 12px 12px 24px;
  }
  .garage-strokes {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    width: 100%;
  }
  .garage-strokes .garage-stroke-box {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 400px;
    padding: 12px;
    box-sizing: border-box;
  }
}
@media only screen and (max-width: 768px) {
  .garages-container {
    overflow-x: auto;
    overflow-y: auto;
    padding: 12px 0 80px;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .garages {
    flex-direction: row;
    width: auto;
    height: auto;
    padding: 0;
  }
  .garage {
    flex-shrink: 0;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  .garage-strokes {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 10px !important;
    height: auto !important;
    min-height: auto !important;
    margin: 12px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .garage-strokes .garage-stroke-box {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 200px;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  textarea {
    flex: 1 !important;
    font-size: 1rem !important;
    width: 100% !important;
    max-width: 100%;
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow-y: auto;
  }
  input[type=text].title-input {
    font-size: 1rem !important;
    padding: 8px !important;
  }
  h3 {
    font-size: 0.9rem !important;
    margin-bottom: 6px !important;
  }
  .garage-head {
    margin: 0 16px 12px;
    gap: 8px;
  }
}
@media only screen and (max-width: 480px) {
  .garages-container {
    padding: 0px 0 64px;
    scroll-snap-type: none;
  }
  .garage {
    padding: 12px 8px !important;
  }
  .garage-strokes {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .garage-strokes .garage-stroke-box {
    min-height: 200px;
    padding: 10px !important;
  }
  textarea {
    font-size: 1rem !important;
    padding: 8px 10px !important;
    min-height: 20vh !important;
  }
  input[type=button] {
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
  }
}
/**
 * Markdown Preview Styles
 */
.markdown-toggle-container {
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.markdown-toggle-btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
}
.markdown-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}
.markdown-toggle-btn.active {
  color: #fff;
  background: rgba(100, 200, 255, 0.3);
  border-color: rgba(100, 200, 255, 0.8);
}

.markdown-preview {
  flex: 1;
  overflow: auto;
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding: 0.5ch 1ch;
  box-sizing: border-box;
  transition: 0.15s;
  border: 2px solid currentColor !important;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.35);
  font-family: YakuHanRP, "M PLUS Rounded 1c", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 0.9em;
  line-height: 1.6;
  filter: drop-shadow(1px 1px 0px black);
  color: #ffffff;
  min-height: 0;
}
.markdown-preview .empty-preview {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3, .markdown-preview h4, .markdown-preview h5, .markdown-preview h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: bold;
  line-height: 1.3;
  color: #ffffff;
}
.markdown-preview h1:first-child, .markdown-preview h2:first-child, .markdown-preview h3:first-child, .markdown-preview h4:first-child, .markdown-preview h5:first-child, .markdown-preview h6:first-child {
  margin-top: 0;
}
.markdown-preview h1 {
  font-size: 1.8em;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.3em;
}
.markdown-preview h2 {
  font-size: 1.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.3em;
}
.markdown-preview h3 {
  font-size: 1.3em;
}
.markdown-preview h4 {
  font-size: 1.1em;
}
.markdown-preview h5, .markdown-preview h6 {
  font-size: 1em;
  opacity: 0.9;
}
.markdown-preview p {
  margin-bottom: 1em;
  color: #ffffff;
}
.markdown-preview p:last-child {
  margin-bottom: 0;
}
.markdown-preview ul, .markdown-preview ol {
  margin: 0.5em 0 1em 0;
  padding-left: 2em;
}
.markdown-preview ul {
  list-style-type: disc;
}
.markdown-preview ol {
  list-style-type: decimal;
}
.markdown-preview li {
  margin: 0.25em 0;
  line-height: 1.6;
  color: #ffffff;
}
.markdown-preview li ul, .markdown-preview li ol {
  margin: 0.25em 0;
}
.markdown-preview input[type=checkbox] {
  margin-right: 0.5em;
  cursor: not-allowed;
}
.markdown-preview a {
  color: rgba(100, 200, 255, 0.9);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.markdown-preview a:hover {
  color: rgb(150, 220, 255);
}
.markdown-preview code {
  padding: 0.2em 0.4em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.9em;
  color: #ffffff;
}
.markdown-preview pre {
  margin: 1em 0;
  padding: 1em;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  color: #ffffff;
}
.markdown-preview pre code {
  padding: 0;
  background: none;
  border-radius: 0;
}
.markdown-preview blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  font-style: italic;
  color: #ffffff;
}
.markdown-preview blockquote p:last-child {
  margin-bottom: 0;
}
.markdown-preview table {
  width: 100%;
  margin: 1em 0;
  border-collapse: collapse;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.markdown-preview th, .markdown-preview td {
  padding: 0.5em 1em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}
.markdown-preview th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: bold;
}
.markdown-preview tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
.markdown-preview hr {
  margin: 2em 0;
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}
.markdown-preview strong {
  font-weight: bold;
  color: #ffffff;
}
.markdown-preview em {
  font-style: italic;
  color: #ffffff;
}
.markdown-preview del, .markdown-preview s {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.7);
}
.markdown-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
}

.modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, rgba(128, 0, 128, 0.95), rgba(0, 0, 255, 0.95));
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.modal-header h2 {
  margin: 0;
  color: white;
  font-family: var(--font-primary);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.modal-header .modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.modal-header .modal-close:hover {
  transform: rotate(90deg);
  color: var(--color-danger);
}

.modal-body {
  padding: 24px;
}

.settings-section {
  margin-bottom: 32px;
}
.settings-section h3 {
  color: white;
  font-family: var(--font-primary);
  font-size: 18px;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.settings-section .settings-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.shortcut-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
}
.shortcut-item > label {
  display: block;
  color: white;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.shortcut-config {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.shortcut-config .key-input {
  width: 50px;
  height: 36px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  color: #333;
  text-transform: uppercase;
}
.shortcut-config .key-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(174, 129, 255, 0.3);
}
.shortcut-config label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 13px;
  cursor: pointer;
}
.shortcut-config label input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.garage-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mode-selector .mode-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
}
.mode-selector .mode-info strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}
.mode-selector .mode-info span {
  color: var(--color-accent);
  font-weight: 500;
}
.mode-selector #mode-switch-btn {
  align-self: flex-start;
  min-width: 200px;
}

.garage-order-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: move;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.garage-order-item:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateX(4px);
}
.garage-order-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}
.garage-order-item .drag-handle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: grab;
  padding: 4px;
  min-width: 32px;
  text-align: center;
}
.garage-order-item .drag-handle:active {
  cursor: grabbing;
}
.garage-order-item .garage-label {
  flex: 1;
  color: white;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}
.garage-order-item .order-buttons {
  display: flex;
  gap: 4px;
}
.garage-order-item .order-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  width: 36px;
  height: 36px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.garage-order-item .order-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}
.garage-order-item .order-btn:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0.95);
}
.garage-order-item .order-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .garage-order-item {
    padding: 16px;
    gap: 16px;
  }
  .garage-order-item .drag-handle {
    font-size: 24px;
    min-width: 40px;
  }
  .garage-order-item .order-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: 0.05em;
  color: white;
}
.btn.btn-primary {
  background: var(--btn-primary-bg);
  color: white;
}
.btn.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 38, 114, 0.4);
}
.btn.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn.btn-tertiary {
  background: rgba(0, 0, 0, 0.3);
  color: white;
}
.btn.btn-tertiary:hover {
  background: rgba(0, 0, 0, 0.4);
}

@media only screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }
  .modal-header {
    padding: 16px 20px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .shortcut-config {
    flex-direction: column;
    align-items: flex-start;
  }
  .shortcut-config .key-input {
    width: 100%;
  }
  .shortcut-config label {
    width: 100%;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn {
    width: 100%;
  }
  .settings-btn {
    font-size: 16px;
    padding: 4px 10px;
  }
}
@media only screen and (max-width: 480px) {
  .modal-header h2 {
    font-size: 18px;
  }
  .settings-section h3 {
    font-size: 16px;
  }
  .garage-order-item {
    padding: 10px 12px;
  }
  .garage-order-item .garage-label {
    font-size: 14px;
  }
}
.confirm-modal .modal-content {
  max-width: 450px;
}
.confirm-modal .modal-body {
  padding: 24px;
}
.confirm-modal .modal-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: white;
  text-align: center;
}
.confirm-modal .modal-actions {
  padding: 16px 24px 24px;
  gap: 12px;
}
.confirm-modal .modal-actions .btn {
  min-width: 100px;
}

.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(46, 213, 115, 0.95);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast span {
  display: block;
}

@media only screen and (max-width: 768px) {
  .toast {
    top: 60px;
    right: 12px;
    left: 12px;
    text-align: center;
  }
}
.minimap-toggle-btn {
  background: rgba(102, 217, 239, 0.8);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  font-size: 18px;
  padding: 6px 12px;
  transition: all var(--transition-normal);
  filter: var(--shadow-button-normal);
}
.minimap-toggle-btn:hover {
  background: rgb(102, 217, 239);
  transform: translateY(-1px);
  filter: var(--shadow-button-hover);
}
.minimap-toggle-btn:active {
  transform: translateY(0);
}
.minimap-toggle-btn.active {
  background: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(174, 129, 255, 0.5);
}

.minimap-view {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(128, 0, 128, 0.95), rgba(0, 0, 255, 0.95));
  backdrop-filter: blur(10px);
  z-index: 50;
  overflow-y: auto;
  padding: 80px 20px 20px;
}
.minimap-view.active {
  display: block;
}

.minimap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.minimap-note {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 12px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  cursor: move;
  transition: all var(--transition-fast);
  position: relative;
}
.minimap-note:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.minimap-note.dragging {
  opacity: 0.5;
  transform: rotate(3deg) scale(0.95);
  cursor: grabbing;
}
.minimap-note.drag-over {
  border-color: var(--color-accent);
  background: rgba(174, 129, 255, 0.2);
  transform: scale(1.02);
}
.minimap-note .minimap-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.minimap-note .minimap-note-header .note-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.minimap-note .minimap-note-header .note-label .garage-name {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-primary);
  text-transform: uppercase;
}
.minimap-note .minimap-note-header .note-label .note-title {
  font-size: 13px;
  color: white;
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
}
.minimap-note .minimap-note-header .drag-handle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  cursor: grab;
}
.minimap-note .minimap-note-header .drag-handle:active {
  cursor: grabbing;
}
.minimap-note .minimap-note-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.minimap-note .minimap-note-content textarea {
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  color: inherit;
  font-size: 11px;
  line-height: 1.4;
  font-family: var(--font-japanese);
  resize: none;
  transition: all var(--transition-fast);
}
.minimap-note .minimap-note-content textarea:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.5);
  border-color: white;
}
.minimap-note .minimap-note-content textarea:hover {
  background: rgba(0, 0, 0, 0.4);
}
.minimap-note.stroke-1 {
  border-left: 4px solid var(--color4);
}
.minimap-note.stroke-1 .minimap-note-header .note-title,
.minimap-note.stroke-1 .minimap-note-content textarea {
  color: var(--color4);
}
.minimap-note.stroke-2 {
  border-left: 4px solid var(--color2);
}
.minimap-note.stroke-2 .minimap-note-header .note-title,
.minimap-note.stroke-2 .minimap-note-content textarea {
  color: var(--color2);
}
.minimap-note.stroke-3 {
  border-left: 4px solid var(--color3);
}
.minimap-note.stroke-3 .minimap-note-header .note-title,
.minimap-note.stroke-3 .minimap-note-content textarea {
  color: var(--color3);
}
.minimap-note.stroke-4 {
  border-left: 4px solid var(--color1);
}
.minimap-note.stroke-4 .minimap-note-header .note-title,
.minimap-note.stroke-4 .minimap-note-content textarea {
  color: var(--color1);
}

.minimap-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.minimap-header h2 {
  margin: 0;
  color: white;
  font-family: var(--font-primary);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.minimap-header .minimap-close-btn {
  background: var(--btn-primary-bg);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  padding: 6px 16px;
  font-size: 13px;
  font-family: var(--font-primary);
  text-transform: uppercase;
  transition: all var(--transition-normal);
}
.minimap-header .minimap-close-btn:hover {
  background: var(--btn-primary-bg-hover);
  transform: translateY(-1px);
}

@media only screen and (max-width: 1024px) {
  .minimap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .minimap-note {
    min-height: 180px;
  }
  .minimap-note .minimap-note-content textarea {
    font-size: 10px;
    min-height: 100px;
  }
}
@media only screen and (max-width: 768px) {
  .minimap-view {
    padding: 70px 10px 10px;
  }
  .minimap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .minimap-note {
    min-height: 150px;
    padding: 10px;
  }
  .minimap-note .minimap-note-header {
    margin-bottom: 6px;
    padding-bottom: 6px;
  }
  .minimap-note .minimap-note-header .note-label .garage-name {
    font-size: 9px;
  }
  .minimap-note .minimap-note-header .note-label .note-title {
    font-size: 11px;
  }
  .minimap-note .minimap-note-header .drag-handle {
    font-size: 14px;
  }
  .minimap-note .minimap-note-content textarea {
    font-size: 10px;
    min-height: 80px;
    padding: 6px;
  }
  .minimap-header {
    top: 10px;
    padding: 10px 16px;
  }
  .minimap-header h2 {
    font-size: 14px;
  }
  .minimap-header .minimap-close-btn {
    padding: 5px 12px;
    font-size: 11px;
  }
  .minimap-toggle-btn {
    font-size: 16px;
    padding: 4px 10px;
  }
}
@media only screen and (max-width: 480px) {
  .minimap-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .minimap-note {
    min-height: 130px;
  }
  .minimap-header h2 {
    font-size: 12px;
  }
}
@media print {
  .minimap-view {
    padding: 20px;
    background: white;
  }
  .minimap-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .minimap-note {
    border: 1px solid #333;
    break-inside: avoid;
  }
  .minimap-note .drag-handle {
    display: none;
  }
  .minimap-header {
    position: static;
    transform: none;
    margin-bottom: 20px;
  }
  .minimap-header .minimap-close-btn {
    display: none;
  }
}
body:has(.mandara-editor) {
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  padding: 0;
  height: auto;
  min-height: 100vh;
}

.mandara-editor {
  padding: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(19, 18, 20, 0.5294117647);
  border: 1px solid rgba(223, 223, 223, 0.7607843137);
  border-radius: 12px;
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}
@media (max-width: 768px) {
  .mandara-editor {
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
}

.mandara-header {
  margin-bottom: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.4);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mandara-header .mandara-title-input {
  width: 100%;
  font-size: 1.4rem;
  font-weight: bold;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-normal);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-japanese);
  transition: all var(--transition-normal);
}
.mandara-header .mandara-title-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.mandara-header .mandara-title-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-focus);
}
.mandara-header .mandara-meta {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-japanese);
}
@media (max-width: 768px) {
  .mandara-header .mandara-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

.mandara-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--spacing-xl);
}
@media (max-width: 1024px) {
  .mandara-content {
    grid-template-columns: 1fr;
  }
}

.mandara-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--spacing-md);
  min-height: 600px;
}
@media (max-width: 768px) {
  .mandara-grid {
    min-height: 400px;
    gap: var(--spacing-sm);
  }
}

.mandara-cell {
  background: var(--bg-glass);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  color: var(--color-white);
  font-family: var(--font-japanese);
  font-size: 20px;
  resize: none;
  transition: all var(--transition-normal);
  height: 100%;
  line-height: 1.5;
}
.mandara-cell::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
}
.mandara-cell:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(201, 181, 213, 0.35);
  box-shadow: var(--shadow-focus);
}
.mandara-cell.mandara-center {
  background: rgba(174, 129, 255, 0.2);
  border-color: var(--color-accent);
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mandara-cell.mandara-center::placeholder {
  font-weight: bold;
  font-size: 18px;
}

.mandara-memo-area {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
@media (max-width: 1024px) {
  .mandara-memo-area {
    margin-top: var(--spacing-xl);
  }
}
.mandara-memo-area .memo-title {
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-japanese);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(174, 129, 255, 0.3);
}
.mandara-memo-area h4 {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: bold;
  margin: var(--spacing-xl) 0 var(--spacing-md) 0;
  font-family: var(--font-japanese);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mandara-memo {
  width: 100%;
  min-height: 200px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  color: var(--color-white);
  font-family: var(--font-japanese);
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  transition: all var(--transition-normal);
}
.mandara-memo::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.mandara-memo:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(174, 129, 255, 0.1);
}

.tags-section .tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  min-height: 40px;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
}
.tags-section .tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 4px 4px 4px 12px;
  background: linear-gradient(135deg, rgba(174, 129, 255, 0.8), rgba(128, 0, 128, 0.8));
  border-radius: 20px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-japanese);
  line-height: 1.2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}
.tags-section .tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}
.tags-section .tag .tag-remove {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}
.tags-section .tag .tag-remove:hover {
  background: var(--color-danger);
  transform: scale(1.1);
}
.tags-section .tag-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: 14px;
  font-family: var(--font-japanese);
  transition: all var(--transition-normal);
}
.tags-section .tag-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.tags-section .tag-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(174, 129, 255, 0.1);
}

.todos-section .todos-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  min-height: 40px;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
}
.todos-section .todo-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: grab;
  touch-action: manipulation;
  -webkit-touch-callout: none;
}
.todos-section .todo-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.todos-section .todo-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg) scale(1.02);
  z-index: 1000;
  cursor: grabbing;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.todos-section .todo-item.drag-over {
  border-color: var(--color-accent);
  background: rgba(174, 129, 255, 0.2);
  transform: scale(1.02);
}
.todos-section .todo-item .todo-drag-handle {
  flex-shrink: 0;
  cursor: grab;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  padding: 4px;
  user-select: none;
  transition: color var(--transition-fast);
  touch-action: none;
  -webkit-user-select: none;
}
.todos-section .todo-item .todo-drag-handle:hover {
  color: var(--color-accent);
}
.todos-section .todo-item .todo-drag-handle:active {
  cursor: grabbing;
}
.todos-section .todo-item .todo-checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-accent);
  vertical-align: middle;
}
.todos-section .todo-item .todo-text {
  flex: 1;
  color: var(--color-white);
  font-size: 15px;
  font-family: var(--font-japanese);
  line-height: 20px;
}
.todos-section .todo-item .todo-text.completed {
  text-decoration: line-through;
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.6);
}
.todos-section .todo-item .todo-remove {
  flex-shrink: 0;
  background: rgba(249, 38, 114, 0.2);
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}
.todos-section .todo-item .todo-remove:hover {
  background: var(--color-danger);
  transform: scale(1.1);
}
.todos-section .todo-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: 14px;
  font-family: var(--font-japanese);
  transition: all var(--transition-normal);
}
.todos-section .todo-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.todos-section .todo-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(174, 129, 255, 0.1);
}

.mandara-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .mandara-actions {
    flex-direction: column;
  }
}
.mandara-actions .btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: 0.08em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  width: auto;
}
.mandara-actions .btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.mandara-actions .btn:hover::before {
  width: 100%;
  height: 300px;
}
.mandara-actions .btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.mandara-actions .btn.btn-danger {
  background: transparent;
  border: 1px solid rgba(249, 38, 114, 0.9);
  color: rgba(249, 38, 114, 0.9);
}
.mandara-actions .btn.btn-danger:hover {
  background: rgba(249, 38, 114, 0.1);
  border-color: rgb(249, 38, 114);
  color: rgb(249, 38, 114);
  box-shadow: 0 6px 12px rgba(249, 38, 114, 0.2);
}
.mandara-actions .btn.btn-secondary {
  background: linear-gradient(135deg, rgba(174, 129, 255, 0.9), rgba(128, 0, 128, 0.9));
}
.mandara-actions .btn.btn-secondary:hover {
  background: linear-gradient(135deg, rgb(174, 129, 255), rgb(128, 0, 128));
  box-shadow: 0 6px 12px rgba(174, 129, 255, 0.4);
}
.mandara-actions .btn.btn-warning {
  background: linear-gradient(135deg, rgba(253, 151, 31, 0.9), rgba(230, 126, 34, 0.9));
}
.mandara-actions .btn.btn-warning:hover {
  background: linear-gradient(135deg, rgb(253, 151, 31), rgb(230, 126, 34));
  box-shadow: 0 6px 12px rgba(253, 151, 31, 0.4);
}
.mandara-actions .btn span {
  position: relative;
  z-index: 1;
}

.list-view {
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.3);
}
.list-view.is-hidden {
  display: none;
}
@media (max-width: 768px) {
  .list-view {
    padding: var(--spacing-md);
  }
}

.list-header {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: space-between;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
  margin-bottom: var(--spacing-xl);
}
.list-header h2 {
  color: var(--color-white);
  font-size: 1.8rem;
  font-family: var(--font-primary);
}
.list-header .list-close-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--btn-primary-bg);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  cursor: pointer;
  transition: background var(--transition-normal);
  letter-spacing: var(--letter-spacing-tight);
}
.list-header .list-close-btn:hover {
  background: var(--btn-primary-bg-hover);
}

.list-controls {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}
.list-controls .list-controls-row {
  display: flex;
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: flex-start;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
  gap: var(--spacing-lg);
}
@media (max-width: 768px) {
  .list-controls .list-controls-row {
    flex-direction: column;
    align-items: stretch;
  }
}
.list-controls .list-actions {
  display: flex;
  /**
    * justify-content / Horizontal ===（1st Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
  */
  justify-content: flex-end;
  /**
    * align-items / Vertical |||（2nd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
  */
  align-items: center;
  /**
    * Column === |||（3rd Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
  */
  /**
    * Wrap = Fold at the edge -|（4th Argument）
    * @see: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
  */
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .list-controls .list-actions {
    justify-content: stretch;
  }
  .list-controls .list-actions .btn {
    flex: 1;
    min-width: 120px;
  }
}
.list-controls .sort-select,
.list-controls .filter-input {
  padding: var(--spacing-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-normal);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-japanese);
  font-size: var(--font-size-md);
}
.list-controls .sort-select:focus,
.list-controls .filter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-focus);
}
.list-controls .sort-select {
  flex-shrink: 1;
}
.list-controls .sort-select option {
  background: #2a2a2a;
  color: var(--color-white);
}
.list-controls .filter-input {
  flex: 1;
  min-width: 70vw;
  padding: 8px 12px;
}
@media (max-width: 768px) {
  .list-controls .filter-input {
    min-width: unset;
  }
}
.list-controls .filter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.mandara-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}
@media (max-width: 768px) {
  .mandara-list {
    grid-template-columns: 1fr;
  }
}
.mandara-list .empty-message {
  grid-column: 1/-1;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-lg);
  padding: var(--spacing-2xl);
  font-family: var(--font-japanese);
}

.mandara-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.mandara-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.mandara-card:hover {
  background: linear-gradient(135deg, rgba(201, 181, 213, 0.3), rgba(128, 0, 128, 0.2));
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(174, 129, 255, 0.3);
}
.mandara-card:hover::before {
  opacity: 1;
}
.mandara-card .card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}
.mandara-card .card-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-accent);
}
.mandara-card .card-checkbox:hover {
  transform: scale(1.1);
}
.mandara-card .card-title {
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  flex: 1;
  font-family: var(--font-japanese);
  line-height: 1.4;
}
.mandara-card .card-delete-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 100, 100, 0.5);
  background: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.mandara-card .card-delete-btn:hover {
  background: rgba(255, 0, 0, 0.4);
  border-color: #ff6b6b;
  transform: scale(1.1);
}
.mandara-card .card-delete-btn:active {
  transform: scale(0.95);
}
.mandara-card .card-center {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-japanese);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(174, 129, 255, 0.15);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}
.mandara-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  min-height: 28px;
}
.mandara-card .card-tags .tag {
  font-size: 12px;
  padding: 4px 10px;
}
.mandara-card .card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-japanese);
}
.mandara-card .card-drag-handle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: grab;
  font-size: 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
}
.mandara-card .card-drag-handle:hover {
  color: var(--color-accent);
  background: rgba(174, 129, 255, 0.2);
}
.mandara-card .card-drag-handle:active {
  cursor: grabbing;
}
.mandara-card.dragging {
  opacity: 0.6;
  transform: rotate(2deg) scale(1.02);
  z-index: 1000;
  cursor: grabbing;
  box-shadow: 0 12px 30px rgba(174, 129, 255, 0.4);
  border-color: var(--color-accent);
}
.mandara-card.dragging .card-drag-handle {
  color: var(--color-accent);
}
.mandara-card.drag-over {
  border-color: var(--color-accent);
  background: rgba(174, 129, 255, 0.25);
  transform: translateY(-2px);
}
.mandara-card.drag-over::before {
  opacity: 1;
}

.mandara-list.draggable-list .mandara-card {
  cursor: grab;
}
.mandara-list.draggable-list .mandara-card:active {
  cursor: grabbing;
}

.mandara-nav .new-mandara-btn,
.mandara-nav .list-view-btn,
.mandara-nav .search-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(174, 129, 255, 0.9), rgba(128, 0, 128, 0.9));
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: var(--letter-spacing-tight);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.mandara-nav .new-mandara-btn:hover,
.mandara-nav .list-view-btn:hover,
.mandara-nav .search-btn:hover {
  background: linear-gradient(135deg, rgb(174, 129, 255), rgb(128, 0, 128));
  box-shadow: 0 4px 10px rgba(174, 129, 255, 0.4);
  transform: translateY(-2px);
}
.mandara-nav .new-mandara-btn:active,
.mandara-nav .list-view-btn:active,
.mandara-nav .search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  body:has(.mandara-editor) {
    padding: 0;
  }
  .header {
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  .header .logo-title {
    font-size: 1.2rem;
  }
  .mandara-nav {
    padding: var(--spacing-sm);
    overflow-x: auto;
  }
  .mandara-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--spacing-xs);
  }
  .mandara-nav .new-mandara-btn,
  .mandara-nav .list-view-btn,
  .mandara-nav .search-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .mandara-editor {
    padding: var(--spacing-md);
    margin: var(--spacing-sm);
    padding-bottom: 64px;
  }
  .mandara-header {
    padding: var(--spacing-md);
  }
  .mandara-header .mandara-title-input {
    font-size: 1.3rem;
    padding: var(--spacing-sm) var(--spacing-md);
  }
  .mandara-header .mandara-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
  }
  .mandara-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  .mandara-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    min-height: auto;
  }
  .mandara-cell {
    font-size: 16px;
    padding: var(--spacing-sm);
    min-height: 80px;
  }
  .mandara-cell.mandara-center {
    font-size: 18px;
  }
  .mandara-memo-area {
    padding: var(--spacing-md);
    margin-top: 0;
  }
  .mandara-memo {
    min-height: 120px;
    font-size: 14px;
    padding: var(--spacing-md);
  }
  .tag-input,
  .todo-input {
    padding: 10px 12px;
    font-size: 14px;
  }
  .tag-item {
    font-size: 13px;
    padding: 8px 12px;
  }
  .todo-item {
    padding: 8px 10px;
  }
  .todo-item .todo-text {
    font-size: 14px;
  }
  .mandara-actions {
    flex-direction: column;
  }
  .mandara-actions .btn {
    width: 100%;
    padding: 12px;
  }
  .list-view {
    padding: var(--spacing-md);
  }
  .list-header h2 {
    font-size: 1.4rem;
  }
  .list-controls {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  .list-controls .sort-select,
  .list-controls .filter-input {
    width: 100%;
  }
  .mandara-list-item {
    padding: var(--spacing-md);
  }
  .mandara-list-item .card-title {
    font-size: 1rem;
  }
  .mandara-list-item .card-center {
    font-size: 13px;
  }
}
