body {
  background: #fffdfa;
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  color: #333;
  margin: 0;
  min-height: 100vh;
}
.main-logo-qr {
  text-align: center;
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  margin: 1.6em 0 0.6em 0;
  font-size: 2.2em;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.main-logo-qr-left {
  color: #ff9800;
  font-weight: 700;
  text-shadow: 1px 1px 6px #ffd580;
}
.main-logo-qr-and {
  color: #ffb347;
  font-weight: 700;
  text-shadow: 1px 1px 6px #fff2d5;
}
.main-logo-qr-center {
  color: #333;
  font-weight: 900;
  text-shadow: 1px 1px 4px #fff;
  margin-left: 0.18em;
}
.main-logo-qr-btn {
  display: inline-block;
  background: linear-gradient(90deg,#ff8c22,#ff9800 80%);
  color: #fff;
  font-size: 0.65em;
  font-weight: 800;
  border-radius: 0.7em;
  padding: 0.20em 1.1em;
  margin-left: 0.65em;
  vertical-align: middle;
  box-shadow: 0 2px 8px #ffae62b3,0 0 0 2px #fff;
  letter-spacing: 0.04em;
}
main {
  max-width: 850px;
  margin: 30px auto 0;
  background: #fff6e5;
  border-radius: 18px;
  box-shadow: 0 2px 16px #ff910010;
  padding: 32px 20px 24px 20px;
}
.usage-guide {
  margin: 14px 0 18px 0;
  background: #fff0e2;
  border-left: 5px solid #ffad42;
  border-radius: 10px;
  font-size: 1.02em;
  padding: 14px 20px 13px 17px;
  color: #7a4c00;
}
.toggle-btn {
  background: #fff4e2;
  color: #ff8a29;
  border: 1px solid #ffbd80;
  padding: 5px 16px;
  border-radius: 22px;
  font-size: 1.02em;
  cursor: pointer;
  margin-bottom: 3px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.toggle-btn:hover {
  background: #ffebcd;
}
.input-section {
  margin: 26px 0 15px 0;
}
textarea {
  width: 100%;
  font-size: 1.14em;
  padding: 13px;
  border-radius: 11px;
  border: 1.8px solid #ffd59a;
  margin-bottom: 14px;
  background: #fffdfa;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}
textarea:focus {
  border-color: #ffad42;
}
.option-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
}
.option-card {
  border-radius: 14px;
  padding: 18px 18px 12px 18px;
  margin-bottom: 0;
  background: #f7f7fe;
  border: 2px solid #e0e3f8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  box-shadow: 0 1px 5px #e6e6ff50;
}
.option-card-size {
  background: #fff8ed;
  border-color: #ffe3b2;
}
.option-card-color {
  background: #f0fafd;
  border-color: #b6e4f7;
}
.option-card-other {
  background: #f7fcf3;
  border-color: #bde5c9;
}
.option-title {
  font-weight: bold;
  color: #1e6fa7;
  margin-right: 7px;
  font-size: 1.05em;
  min-width: 60px;
  display: inline-block;
}
.main-btn {
  background: linear-gradient(90deg, #ffad42, #ff9100);
  color: #fff;
  font-size: 1.13em;
  font-weight: bold;
  border: none;
  border-radius: 18px;
  padding: 11px 32px;
  cursor: pointer;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px #ffd59a55;
  margin: 0 auto 0 auto;
  display: block;
  transition: background 0.2s;
}
.main-btn:hover {
  background: linear-gradient(90deg, #ff9100, #ffad42);
}
.qrcode-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  margin: 30px 0 14px 0;
  justify-items: center;
}
.qr-item {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 7px #ffae0033;
  padding: 18px 10px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-img {
  margin-bottom: 10px;
  background: #f9e9ce;
  border-radius: 8px;
  border: 1px solid #ffd59a;
  min-height: 40px;
  box-sizing: border-box;
  width: fit-content;
  max-width: none;
  display: block;
}
.qr-img img {
  display: block;
  margin: 0 auto;
}
.qr-text {
  font-size: 0.93em;
  color: #ad6700;
  word-break: break-all;
  text-align: center;
  margin-bottom: 7px;
}
.dl-btn {
  background: #ffbd80;
  color: #fff;
  font-size: 1em;
  border: none;
  border-radius: 12px;
  padding: 4px 13px;
  margin-top: 3px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.dl-btn:hover {
  background: #ff9100;
}
footer {
  margin-top: 30px;
  text-align: center;
  font-size: 1em;
  color: #bbb;
}
.copyright {
  padding: 12px 0 10px 0;
}
@media (max-width: 900px) {
  main { max-width: 99vw; }
}
@media (max-width: 700px) {
  .option-card {
    flex-direction: column;
    gap: 7px 0;
    padding: 11px 6vw 10px 6vw;
  }
  .qrcode-list {
    grid-template-columns: 1fr;
    gap: 17px 0;
  }
  .main-logo-qr {
    font-size: 1.22em;
    margin-left: 2vw;
    margin-right: 2vw;
  }
}

/* 追加：タブUI＆中央アイコンスタイル */
.icon-tabs {
  margin: 28px 0 16px 0;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px #e5efec55;
  padding: 0 0 14px 0;
  max-width: 99vw;
}
.icon-tab-list {
  display: flex;
  border-bottom: 3px solid #e6e6e6;
  background: #3a8871;
  border-radius: 13px 13px 0 0;
  overflow-x: auto;
}
.icon-tab {
  flex: 1;
  border: none;
  background: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.06em;
  padding: 16px 0 13px 0;
  cursor: pointer;
  outline: none;
  border-bottom: 3px solid transparent;
  transition: background 0.18s, color 0.16s, border-bottom 0.22s;
}
.icon-tab.active,
.icon-tab:focus {
  color: #fff8e5;
  border-bottom: 4px solid #ffa244;
  background: #388260;
  z-index: 2;
}

.icon-tab-panels {
  padding: 22px 18px 8px 18px;
  min-height: 170px;
}
.icon-tab-panel { display: none; }

.illust-group {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.illust-section {
  min-width: 134px;
}
.illust-label {
  font-size: 1.01em;
  font-weight: bold;
  color: #3a8871;
  margin-bottom: 8px;
}
.illust-icons, .icon-icons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.icn {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #fff;
  border: 1.5px solid #f5f2e9;
  object-fit: contain;
  padding: 2px;
  box-shadow: 0 1px 6px #c8dfd822;
  cursor: pointer;
  transition: border 0.13s, box-shadow 0.17s;
}
.icn:hover {
  border-color: #ffa244;
  box-shadow: 0 2px 8px #ffd7a622;
}

/* アイコン色選択 */
.icon-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.icon-icons-list .icn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  margin-bottom: 2px;
  background: none;
  border: none;
  box-shadow: none;
}

/* カスタム画像・ファビコン */
.custom-panel {
  margin-bottom: 10px;
}
.custom-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 9px;
}

/* テキストパネル */
.text-panel label {
  font-weight: bold;
  color: #3a8871;
  font-size: 1.03em;
}
.text-panel input[type="text"] {
  font-size: 1em;
  border-radius: 7px;
  border: 1.5px solid #d2e1d8;
  padding: 6px 11px;
  margin-right: 8px;
  margin-bottom: 2px;
}
#overlay-text { font-weight: 600; letter-spacing: 0.04em; }
#text-color-hex { margin-right: 7px; }

/* タブレスポンシブ */
@media (max-width: 850px) {
  .icon-tab-list { font-size: 0.98em; }
  .illust-group { gap: 14px; }
}
@media (max-width: 600px) {
  .icon-tab-list { font-size: 0.93em; }
  .icon-tab-panels { padding: 9px 3vw 4px 3vw; }
  .illust-group { flex-direction: column; gap: 8px; }
}
