@charset "UTF-8";
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q, blockquote {
  quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
  display: block;
}

/****************************************
 	mixin								*
*****************************************/
/****************************************
 	フォント設定							*
*****************************************/
/****************************************
 	基本設定								*
*****************************************/
:root {
  --header-height: 3rem;
  --menu-item-size: 80px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Kosugi Maru","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ","Lucida Grande",Verdana,"ＭＳ Ｐゴシック",sans-serif;
  background: var(--bg-rgb);
  color: #696969;
  -ms-overflow-style: none;
  /* IE, Edge 対応 */
  scrollbar-width: none;
  /* Firefox 対応 */
}
body::-webkit-scrollbar {
  display: none;
}

input, select, textarea, button, option {
  font-family: "Kosugi Maru","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ","Lucida Grande",Verdana,"ＭＳ Ｐゴシック",sans-serif;
  color: #696969;
  font-size: 1rem;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: #696969;
}

.logo {
  font-family: 'Oswald', cursive;
}

input[type="submit"] {
  -webkit-appearance: none;
}

body {
  width: 100%;
  min-height: 100%;
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}
@media screen and (max-width: 1024px) {
  body {
    padding-left: 0;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}
body header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  background: #232323;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body header .left,
body header .right {
  flex: 0 0 auto;
}
body header .left .spacer,
body header .right .spacer {
  width: 48px;
  height: 48px;
}
body header.album_mode_header .left,
body header.album_mode_header .right {
  min-width: 48px;
}
body header .center {
  flex: 1;
  display: flex;
  justify-content: center;
}
body header .center .undo,
body header .center .redo {
  padding: 1rem;
  display: inline-flex;
  cursor: pointer;
}
body header .center .undo:hover,
body header .center .redo:hover {
  background: #363636;
  color: #ffffff;
}
body header .center .undo p {
  order: 0;
}
body header .center .undo i {
  order: 1;
}

.canavas_wrap {
  padding-top: calc(var(--header-height) + 16px);
  padding-right: 16px;
  padding-bottom: 16px;
  padding-left: calc(var(--menu-item-size) + 16px);
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media screen and (max-width: 1024px) {
  .canavas_wrap {
    padding-left: 16px;
    padding-bottom: calc(var(--menu-item-size) + 16px);
  }
}
.canavas_wrap .border {
  max-width: 100%;
  max-height: 100%;
  overflow: visible;
}

.border {
  display: inline-block;
  border: 1px solid #6e6e6e;
}

.menus {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
@media screen and (max-width: 1024px) {
  .menus {
    padding-top: 0;
    top: auto;
    width: 100%;
  }
}
.menus .wrap {
  position: relative;
  top: 0;
  bottom: 0;
  height: 100%;
}
.menus .wrap .main_menu {
  position: relative;
  z-index: 10;
  top: 0;
  bottom: 0;
  height: 100%;
  background: #232323;
  overflow-y: auto;
  -ms-overflow-style: none;
  /* IE, Edge 対応 */
  scrollbar-width: none;
  /* Firefox 対応 */
}
.menus .wrap .main_menu::-webkit-scrollbar {
  display: none;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .main_menu {
    overflow-y: visible;
    overflow-x: auto;
  }
}
.menus .wrap .main_menu .menu {
  min-width: 80px;
  min-height: 80px;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.menus .wrap .main_menu .menu p {
  padding-top: .5rem;
  font-size: .8rem;
}
.menus .wrap .main_menu .menu:hover {
  background: #363636;
  color: #ffffff;
}
.menus .wrap .options {
  position: absolute;
  top: 0;
  left: -200px;
  bottom: 0;
  background: #232323;
  min-width: 200px;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .options {
    top: auto;
    left: 0;
    right: 0;
  }
}
.menus .wrap .options.open {
  left: 100%;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .options.open {
    left: 0;
    bottom: 100%;
  }
}
.menus .wrap .options > * {
  position: relative;
  top: 0;
  bottom: 0;
  height: 100%;
}
.menus .wrap .options .wrap > [class*="_option"] {
  position: relative;
  top: 0;
  bottom: 0;
  height: 100%;
  z-index: 1;
  overflow-y: auto;
  -ms-overflow-style: none;
  /* IE, Edge 対応 */
  scrollbar-width: none;
  /* Firefox 対応 */
  display: none;
}
.menus .wrap .options .wrap > [class*="_option"]::-webkit-scrollbar {
  display: none;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .options .wrap > [class*="_option"] {
    overflow-y: visible;
    overflow-x: auto;
  }
}
.menus .wrap .options .wrap > [class*="_option"].open {
  display: block;
}
.menus .wrap .options .wrap .text_option ul .option,
.menus .wrap .options .wrap .image_option ul .option,
.menus .wrap .options .wrap .stamp_option ul .option {
  display: flex;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .options .wrap .text_option ul .option,
  .menus .wrap .options .wrap .image_option ul .option,
  .menus .wrap .options .wrap .stamp_option ul .option {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
    box-sizing: border-box;
  }
  .menus .wrap .options .wrap .text_option ul .option i,
  .menus .wrap .options .wrap .image_option ul .option i,
  .menus .wrap .options .wrap .stamp_option ul .option i {
    font-size: 2rem;
  }
  .menus .wrap .options .wrap .text_option ul .option p,
  .menus .wrap .options .wrap .image_option ul .option p,
  .menus .wrap .options .wrap .stamp_option ul .option p {
    padding-top: .5rem;
    font-size: .8rem;
  }
  .menus .wrap .options .wrap .text_option ul .option:hover,
  .menus .wrap .options .wrap .image_option ul .option:hover,
  .menus .wrap .options .wrap .stamp_option ul .option:hover {
    background: #363636;
    color: #ffffff;
  }
}
.menus .wrap .options .wrap .text_option ul li,
.menus .wrap .options .wrap .image_option ul li,
.menus .wrap .options .wrap .stamp_option ul li {
  padding: 1rem;
  cursor: pointer;
}
.menus .wrap .options .wrap .text_option ul li i,
.menus .wrap .options .wrap .image_option ul li i,
.menus .wrap .options .wrap .stamp_option ul li i {
  margin-right: .5rem;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .options .wrap .text_option ul li i,
  .menus .wrap .options .wrap .image_option ul li i,
  .menus .wrap .options .wrap .stamp_option ul li i {
    margin-right: 0;
  }
}
.menus .wrap .options .wrap .text_option ul li:hover,
.menus .wrap .options .wrap .image_option ul li:hover,
.menus .wrap .options .wrap .stamp_option ul li:hover {
  background: #363636;
  color: #ffffff;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .options .wrap .stamp_option ul .option {
    width: auto;
    min-width: auto;
    padding: 1rem;
    white-space: nowrap;
  }
}
.menus .wrap .options .wrap .option_content {
  position: absolute;
  top: 0;
  left: 100%;
  bottom: 0;
  background: #232323;
  overflow-y: auto;
  -ms-overflow-style: none;
  /* IE, Edge 対応 */
  scrollbar-width: none;
  /* Firefox 対応 */
}
.menus .wrap .options .wrap .option_content::-webkit-scrollbar {
  display: none;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .options .wrap .option_content {
    top: auto;
    left: 0;
    width: 100%;
    overflow-y: visible;
    overflow-x: auto;
  }
  .menus .wrap .options .wrap .option_content.open {
    bottom: 100%;
  }
}
.menus .wrap .options .wrap .option_content > * {
  display: none;
}
.menus .wrap .options .wrap .option_content > *.open {
  display: block;
}
.menus .wrap .options .wrap .option_content .color_icon {
  padding: 1rem;
  cursor: pointer;
}
.menus .wrap .options .wrap .option_content .color_icon .color {
  border: 2px solid;
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-sizing: border-box;
  padding: 1rem;
}
.menus .wrap .options .wrap .option_content .font_family [data-fontfamily] {
  padding: 1rem;
  cursor: pointer;
  white-space: nowrap;
}
.menus .wrap .options .wrap .option_content .font_family [data-fontfamily]:hover {
  background: #363636;
  color: #ffffff;
}
.menus .wrap .options .wrap .option_content .stamps .stamp {
  display: block;
  width: 100px;
  min-width: 100px;
  height: 100px;
  min-height: 100px;
}
@media screen and (max-width: 1024px) {
  .menus .wrap .options .wrap .option_content .stamps .stamp {
    width: 80px;
    min-width: 80px;
    height: 80px;
    min-height: 80px;
  }
}
.menus .wrap .options .wrap .option_content .stamps .stamp img {
  width: 100%;
  height: 100%;
}
.menus .wrap .options .wrap .option_content .stamps .stamp:hover {
  background: #363636;
  color: #ffffff;
}
.menus ul {
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 1024px) {
  .menus ul {
    flex-direction: row;
  }
}

.form {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .5s left;
}
.form.open {
  left: 0;
}
.form h2 {
  text-align: center;
  font-size: 1.5rem;
}
.form h2 span {
  margin-top: .5rem;
  color: #da4f49;
  font-size: .9rem;
  display: block;
}
.form .form_wrap {
  width: 500px;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 1rem;
}
.form .form_wrap .input_wrap {
  display: flex;
  padding: 1rem;
}
.form .form_wrap .input_wrap label {
  width: 100%;
}
.form .form_wrap .input_wrap label * {
  display: block;
}
.form .form_wrap .input_wrap label span {
  margin-bottom: .3rem;
}
.form .form_wrap .input_wrap label input {
  width: 100%;
}
.form .form_wrap .button_wrap {
  flex-direction: column;
}
.form .form_wrap .button_wrap > input.button, .form .form_wrap .button_wrap > button {
  width: 100%;
  font-size: 1.2rem;
}
.form .form_wrap .button_wrap > input.button + input.button, .form .form_wrap .button_wrap > input.button + button, .form .form_wrap .button_wrap > button + input.button, .form .form_wrap .button_wrap > button + button {
  margin-top: .5rem;
}

.modal-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-wrap .overlay,
.modal-wrap .overlay_nodelete {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 998;
  background: rgba(0, 0, 0, 0.4);
  animation: fadeIn .5s ease 0s 1 normal;
}
.modal-wrap .modal {
  max-width: 90vw;
  max-height: 85vh;
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  box-sizing: border-box;
  position: relative;
  border-radius: 5px;
  border: 1px solid #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.modal-wrap .modal .modal_head {
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  color: #ffffff;
}
.modal-wrap .modal .modal_body {
  overflow-x: auto;
  -ms-overflow-style: none;
  /* IE, Edge 対応 */
  scrollbar-width: none;
  /* Firefox 対応 */
  padding: .5rem;
  position: relative;
}
.modal-wrap .modal .modal_body::-webkit-scrollbar {
  display: none;
}

@keyframes fadeIn {
  /*animation-nameで設定した値を書く*/
  0% {
    opacity: 0;
  }
  /*アニメーション開始時は不透明度0%*/
  100% {
    opacity: 1;
  }
  /*アニメーション終了時は不透明度100%*/
}
.button_wrap {
  display: flex;
  padding: 1rem;
}
.button_wrap.center {
  justify-content: space-around;
}

.explanation {
  background: #ffffff;
  padding: 1rem;
}
.explanation + .button_wrap .button {
  font-size: 1.2rem;
}

ul.explanation {
  list-style: disc;
}
ul.explanation li {
  margin-inline-start: .75rem;
}
ul.explanation li:not(:last-child) {
  margin-bottom: .75rem;
}

.text {
  position: relative;
}
.text [name="text"] {
  width: 100%;
  height: 200px;
}
.text [data-add="text"] {
  position: absolute;
  color: #ab0000;
  right: .5rem;
  bottom: .5rem;
  font-size: 2rem;
  cursor: pointer;
}

.image {
  padding: 1rem;
  position: relative;
}
.image label b {
  padding: 1rem 2rem;
  background: #ab0000;
  color: #ffffff;
  cursor: pointer;
}
.image label [type="file"] {
  display: none;
}

.primary {
  color: #006dcc;
}

.success {
  color: #5bb75b;
}

.info {
  color: #49afcd;
}

.warning {
  color: #faa732;
}

.danger {
  color: #da4f49;
}

.inverse {
  color: #363636;
}

.clear {
  color: #e0e0e0;
}

.white {
  color: #fff;
}

.bg_primary {
  background: #006dcc;
  color: #fff;
}
.bg_primary.hover:hover {
  background: #005299;
}

.bg_success {
  background: #5bb75b;
  color: #fff;
}
.bg_success.hover:hover {
  background: #449b44;
}

.bg_info {
  background: #49afcd;
  color: #fff;
}
.bg_info.hover:hover {
  background: #3195b2;
}

.bg_warning {
  background: #faa732;
  color: #000;
}
.bg_warning.hover:hover {
  background: #f39106;
}

.bg_danger {
  background: #da4f49;
  color: #fff;
}
.bg_danger.hover:hover {
  background: #c72f29;
}

.bg_inverse {
  background: #363636;
  color: #fff;
}
.bg_inverse.hover:hover {
  background: #1d1d1d;
}

.bg_clear {
  background: #e0e0e0;
  color: #000;
}
.bg_clear.hover:hover {
  background: #c7c7c7;
}

.bg_white {
  background: #fff;
  color: #000;
}
.bg_white.hover:hover {
  background: #e6e6e6;
}

.badge {
  padding: .5rem;
  font-size: .7rem;
  border-radius: 5px;
}
.badge.primary {
  background: #006dcc;
  color: #fff;
}
.badge.success {
  background: #5bb75b;
  color: #fff;
}
.badge.info {
  background: #49afcd;
  color: #fff;
}
.badge.warning {
  background: #faa732;
  color: #000;
}
.badge.danger {
  background: #da4f49;
  color: #fff;
}
.badge.inverse {
  background: #363636;
  color: #fff;
}
.badge.clear {
  background: #e0e0e0;
  color: #000;
}
.badge.white {
  background: #fff;
  color: #000;
}
.badge * .badge {
  margin-left: .5rem;
}

button, .button {
  display: inline-block;
  font-size: 1rem;
  padding: .5rem .7rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #898989;
  color: #fff;
  text-align: center;
}
button:focus, .button:focus {
  outline: 0;
}
button:hover, .button:hover {
  background: #636363;
}

button.primary, .button.primary {
  background: #006dcc;
  color: #fff;
}
button.primary:hover, .button.primary:hover {
  background: #005299;
}

button.success, .button.success {
  background: #5bb75b;
  color: #fff;
}
button.success:hover, .button.success:hover {
  background: #449b44;
}

button.info, .button.info {
  background: #49afcd;
  color: #fff;
}
button.info:hover, .button.info:hover {
  background: #3195b2;
}

button.warning, .button.warning {
  background: #faa732;
  color: #000;
}
button.warning:hover, .button.warning:hover {
  background: #f39106;
}

button.danger, .button.danger {
  background: #da4f49;
  color: #fff;
}
button.danger:hover, .button.danger:hover {
  background: #c72f29;
}

button.inverse, .button.inverse {
  background: #363636;
  color: #fff;
}
button.inverse:hover, .button.inverse:hover {
  background: #1d1d1d;
}

button.clear, .button.clear {
  background: #e0e0e0;
  color: #000;
}
button.clear:hover, .button.clear:hover {
  background: #c7c7c7;
}

button.white, .button.white {
  background: #fff;
  color: #000;
}
button.white:hover, .button.white:hover {
  background: #e6e6e6;
}

/****************************************
 	フォームパーツ						*
*****************************************/
input[type='text'],
input[type='url'],
input[type='tel'],
input[type='email'],
input[type='number'],
input[type='password'],
input[type='file'],
textarea,
select,
.textarea[contenteditable="true"] {
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  font-size: 1em;
  padding: .8rem;
  box-sizing: border-box;
}
input[type='text']:invalid,
input[type='url']:invalid,
input[type='tel']:invalid,
input[type='email']:invalid,
input[type='number']:invalid,
input[type='password']:invalid,
input[type='file']:invalid,
textarea:invalid,
select:invalid,
.textarea[contenteditable="true"]:invalid {
  border-color: #da4f49;
}
input[type='text']:focus,
input[type='url']:focus,
input[type='tel']:focus,
input[type='email']:focus,
input[type='number']:focus,
input[type='password']:focus,
input[type='file']:focus,
textarea:focus,
select:focus,
.textarea[contenteditable="true"]:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem var(--main-rgba4);
}
input[type='text']:disabled,
input[type='url']:disabled,
input[type='tel']:disabled,
input[type='email']:disabled,
input[type='number']:disabled,
input[type='password']:disabled,
input[type='file']:disabled,
textarea:disabled,
select:disabled,
.textarea[contenteditable="true"]:disabled {
  color: #e3e3e3;
  pointer-events: none;
}
input[type='text']::placeholder,
input[type='url']::placeholder,
input[type='tel']::placeholder,
input[type='email']::placeholder,
input[type='number']::placeholder,
input[type='password']::placeholder,
input[type='file']::placeholder,
textarea::placeholder,
select::placeholder,
.textarea[contenteditable="true"]::placeholder {
  color: #bbb;
}

@media screen and (max-width: 414px) {
  input[type='text'],
  input[type='url'],
  input[type='tel'],
  input[type='email'],
  input[type='number'],
  input[type='password'],
  input[type='file'] {
    width: 100%;
  }
}
textarea {
  height: 100px;
}

.textarea[contenteditable="true"] {
  min-height: 100px;
  color: #696969;
  background: #fff;
}
.textarea[contenteditable="true"]:empty:before {
  color: #adadad;
  content: attr(placeholder);
  pointer-events: none;
  display: block;
  /* For Firefox */
}
.textarea[contenteditable="true"] .emoji {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0 .1rem;
  vertical-align: text-bottom;
}
.textarea[contenteditable="true"] .emoji img {
  width: 100%;
  height: 100%;
  display: inline;
}
.textarea[contenteditable="true"] .emoji + .emoji {
  margin-left: 0;
}

label {
  display: inline-block;
}
label input[type=radio],
label input[type=checkbox] {
  display: none;
}
label input[type=radio] + span,
label input[type=checkbox] + span {
  transition: ease-out .5s;
  display: inline-block;
  position: relative;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-weight: 900;
  font-family: "fontawesome";
}
label input[type=radio] + span:after,
label input[type=checkbox] + span:after {
  color: #ffffff;
  font-size: .7rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
label input[type=radio] + span + b,
label input[type=checkbox] + span + b {
  margin-left: 3px;
  position: relative;
  top: -0.3rem;
}
label input[type=radio]:disabled + span,
label input[type=checkbox]:disabled + span {
  background-color: #d5d5d5;
  cursor: no-drop;
}
label input[type=radio]:checked + span,
label input[type=checkbox]:checked + span {
  background-color: var(--main-rgb);
  border-color: rgba(100, 100, 100, 0.8);
}
label input[type=checkbox]:checked + span:after {
  content: '\f00c';
}
label input[type=radio] + span {
  border-radius: 50%;
}
label input[type=radio]:checked + span:after {
  content: '';
  background: #fff;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
label + label {
  margin-left: 8px;
}

.output_only {
  display: none;
}
.output_only * {
  display: none;
}

.error {
  font-size: .8rem;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #da4f49;
}

/* アルバムモード用スタイル */
.album_grid_selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: absolute;
  top: var(--header-height);
  right: 0;
  z-index: 10;
  max-width: 400px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  will-change: opacity;
}
.album_grid_selector .close_grid_btn {
  padding: 6px 16px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.album_grid_selector .close_grid_btn:hover {
  background: #f0f0f0;
  color: #666;
}

.grid_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  width: 300px;
  height: 300px;
}

.grid_item {
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}
.grid_item:hover {
  border-color: #007bff;
  background: #f0f8ff;
}
.grid_item.selected {
  border-color: #007bff;
  background: #e3f2fd;
}
.grid_item.has_image {
  border-color: #28a745;
  background: #f8fff8;
}
.grid_item .grid_preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
  border-radius: 4px;
}
.grid_item.has_preview .grid_preview {
  opacity: 1;
}

/* アルバムモード用キャンバス調整 */
.album_mode .canavas_wrap .border {
  border-radius: 10px;
}
.album_mode canvas {
  border-radius: 10px;
}

/* アルバムデザイン選択モーダル */
.modal.design_selection {
  position: absolute;
  top: var(--header-height);
  right: 0;
  left: 0;
  bottom: 0;
  max-width: 960px;
  margin: 0 auto;
  height: 100vh;
  padding: 16px;
}
.modal.design_selection .modal_head {
  text-align: center;
}
.modal.design_selection .design_options {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
}
.modal.design_selection .design_options .design_option {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  text-align: center;
  cursor: pointer;
  padding: 15px;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.modal.design_selection .design_options .design_option:hover {
  border-color: #FFE181;
  background-color: #FFFEF0;
  transform: scale(1.02);
}
.modal.design_selection .design_options .design_option.selected {
  border-color: #FF6B6B;
  background-color: #FFF0F0;
  transform: scale(1.05);
}
.modal.design_selection .design_options .design_option img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}
.modal.design_selection .design_options .design_option h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #333;
}
.modal.design_selection .design_options .design_option p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* レイアウトB用スタイル */
.grid_container.layout_b {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
}
.grid_container.layout_b .grid_item.large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: 1;
}
.grid_container.layout_b .grid_item.small {
  aspect-ratio: 1;
}
.grid_container.layout_b .grid_item.small:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}
.grid_container.layout_b .grid_item.small:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}
.grid_container.layout_b .grid_item.small:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}
.grid_container.layout_b .grid_item.small:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}
.grid_container.layout_b .grid_item.small:nth-child(6) {
  grid-column: 3;
  grid-row: 3;
}

/* グリッドトグルボタン */
.grid_toggle_btn {
  background: transparent;
  border: none;
  color: #999;
  padding: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.grid_toggle_btn:hover {
  background: #363636;
}
.grid_toggle_btn.active {
  background: #363636;
  color: #ffffff;
}
.grid_toggle_btn svg {
  width: 24px;
  height: 24px;
}

/* 楽天チャンネル用注意書き */
ul.rakuten-attention {
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 20px;
  font-size: 0.75rem;
}
ul.rakuten-attention li:not(:last-child) {
  margin-bottom: 0.5rem;
}
