﻿@charset "utf-8";

/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
  /* Colors */
  --color-text-primary: #59493f;
  --color-text-secondary: #999999;
  --color-text-link: #555555;
  --color-text-visited: #CCCCCC;
  --color-border-light: #cccccc;
  --color-border-medium: #dcdcdc;
  --color-bg-white: #FFFFFF;
  --color-bg-light: #f3f3f3;
  --color-bg-modal: #FFFCEB;
  --color-primary: #346173;
  --color-accent: #C30;
  --color-success: #9C0;
  --color-gradient-start: #ededed;
  --color-gradient-end: #dfdfdf;
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  
  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  
  /* Layout */
  --max-width-content: 950px;
  --max-width-shelf: 800px;
}

/* ===================================
   Modern CSS Reset
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body, div,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, li, dl, dt, dd,
table, th, td,
form, fieldset, input, textarea {
  margin: 0;
  padding: 0;
}

article, aside, figure, figcaption, details, footer, header, hgroup, nav, section, summary {
  display: block;
}

body {
  color: var(--color-text-primary);
  font-family: "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.6;
  margin: 0 auto;
  text-align: center;
}
/* ===================================
   Base Elements
   =================================== */
img {
  border: none;
  vertical-align: bottom;
}

p {
  line-height: 1.9;
  text-align: justify;
  text-justify: distribute;
}

p, ol, dl, table, pre {
  letter-spacing: 0.02em;
}

ul {
  font-size: 100%;
  letter-spacing: 0.02em;
  list-style: none;
  margin: 0 0 var(--spacing-sm) 0;
  padding: 0;
}

/* Headings */
h1 {
  font-size: 160%;
  font-weight: normal;
  margin: 0 0 var(--spacing-xs) 0;
}

h2 {
  font-size: 100%;
  font-weight: normal;
}

h3 {
  border-left: 3px solid var(--color-border-light);
  font-size: 130%;
  font-weight: normal;
  margin: 2.5em 0 1em 0;
  padding: 0 0 0 var(--spacing-sm);
}

h4 {
  border-bottom: 1px solid var(--color-border-light);
  font-size: 130%;
  font-weight: normal;
  margin: 2.5em 0 1em 0;
  padding: 0 0 var(--spacing-xs) var(--spacing-sm);
}

h5 {
  border-bottom: 1px solid var(--color-border-light);
  font-size: 130%;
  font-weight: normal;
  margin: 0.5em 2em 1em 2em;
  padding: 0 0 var(--spacing-xs) var(--spacing-sm);
}

h5:empty {
  border-bottom: none;
  margin: 0;
  padding: 0;
}

h3:first-child {
  border-left: 3px solid var(--color-border-light);
  font-size: 130%;
  font-weight: normal;
  margin: 0em 0 1em 0;
  padding: 0 0 0 var(--spacing-sm);
}
/* ===================================
   Links
   =================================== */
a {
  text-decoration: none;
  color: var(--color-text-link);
}

div.main a {
  text-decoration: underline;
}

a:link {
  color: var(--color-text-link);
  font-weight: bold;
}

a:visited {
  color: var(--color-text-visited);
  font-weight: normal;
}

a:hover {
  color: var(--color-text-link);
  font-weight: bold;
  font-size: 13px;
}

a[href^="http://"],
a[href^="https://"],
a[href^="./"] {
  padding-right: 15px;
  background: url(../images/icon_blank.gif) no-repeat right .5em;
  font-weight: bold;
}

.guide-link {
  color: #007bff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.guide-link:visited {
  color: #007bff !important;
}

.guide-link:hover {
  color: #0056b3 !important;
  text-decoration: underline;
}

.guide-link-container {
  text-align: right;
  margin-bottom: var(--spacing-sm);
}

.back-to-top-container {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md) 0;
}

.back-to-top-link {
  color: #007bff !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid #007bff;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.back-to-top-link:visited {
  color: #007bff !important;
}

.back-to-top-link:hover {
  color: var(--color-bg-white) !important;
  background-color: #007bff;
  text-decoration: none;
}

/* ===================================
   Layout
   =================================== */
body > div:first-child > div:first-child {
  text-align: left;
  z-index: 1 !important;
  position: relative;
}

body > div:first-child > div:nth-child(2) {
  margin: var(--spacing-md) auto var(--spacing-sm) auto;
  text-align: left;
  width: var(--max-width-content);
}

body > div:first-child > div:first-child > div:first-child {
  letter-spacing: 0.1em;
  text-align: left;
  padding: var(--spacing-sm) 25px;
}

/* ===================================
   Main Content
   =================================== */
div.main {
  letter-spacing: 0.1em;
  padding: 0 3em var(--spacing-lg) 3em;
}

div.main > ul {
  list-style: circle;
  margin: 0 var(--spacing-xs) var(--spacing-xs) 0;
  padding: 3px;
}

div.main > ul > li {
  letter-spacing: 0.02em;
  margin: 0.5em 0 0.5em 1.5em;
  padding: 0.3em 0 0.3em 0.1em;
}

/* ===================================
   Settings List
   =================================== */
.settings_list {
  margin: 0 auto;
  width: var(--max-width-shelf);
  padding: 0 0 var(--spacing-xl) 15px;
  height: 110px;
  overflow: visible;
}

.settings_list ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm) var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.settings_list li {
  list-style: none;
}

.settings_list li label {
  margin-right: var(--spacing-xs);
}

/* ===================================
   Drop Zone
   =================================== */
.drop_zone {
  border: 2px dashed #BBBBBB;
  border-radius: var(--radius-sm);
  color: #BBBBBB;
  padding: 15px var(--spacing-md);
  text-align: center;
  cursor: copy;
  margin: 0 0 0 35px;
  float: left;
}

/* ===================================
   Product Shelf Container
   =================================== */
div[class^=boxContainer] {
  border: 1px solid var(--color-border-light);
  max-width: var(--max-width-shelf);
  max-height: 185px;
  background-image: url("/style/media/common/shelf.jpg");
  background-position: 0 470px;
  width: var(--max-width-shelf);
  height: 185px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
}

div[class^=boxContainer] p {
  margin: 0;
  height: 150px;
}

div[class^=boxContainer] p img {
  image-rendering: auto;
}

div[class^=boxContainer]:hover {
  border: 1px dashed #008800;
}

/* ===================================
   Action Buttons
   =================================== */
div.action_button {
  width: 802px;
  margin: 0 auto;
}

div.action_button ul {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  padding: 0;
  width: 802px;
}

div.action_button ul li {
  list-style: none;
}

/* Modern Button Styling */
div[class^=css_btn_class] {
  font-size: 16px;
  font-family: Arial;
  font-weight: bold;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-medium);
  padding: 9px 18px;
  text-decoration: none;
  background: linear-gradient(to bottom, var(--color-gradient-start) 5%, var(--color-gradient-end) 100%);
  background-color: var(--color-gradient-start);
  color: #000000;
  display: inline-block;
  text-shadow: 1px 1px 0 var(--color-bg-white);
  box-shadow: inset 1px 1px 0 0 var(--color-bg-white);
}

div[class^=css_btn_class]:hover {
  background: linear-gradient(to bottom, var(--color-gradient-end) 5%, var(--color-gradient-start) 100%);
  background-color: var(--color-gradient-end);
}

div[class^=css_btn_class]:active {
  position: relative;
  top: 1px;
}

/* ===================================
   Price Tag & Settings Windows
   =================================== */
div[id^=priceTagElement],
div[id=boxContainerElement],
div[id=boxContainerElementSettingIcon],
div[id=boxContainerElementSettingWindows] {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-medium);
  position: absolute;
  display: none;
  z-index: 2000;
}

div[id=boxContainerElementSettingWindows] img:hover {
  cursor: pointer;
}

.css_btn_class_5 {
  margin: 2px 0;
}

/* ===================================
   LeanModal
   =================================== */
#lean_overlay {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #000;
  display: none;
}

.modal {
  background: var(--color-bg-modal);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 5px #000000;
  display: none;
  min-height: 250px;
  min-width: 350px;
  overflow: auto;
  position: absolute;
  z-index: 1000;
}

.modal h1 {
  background: var(--color-primary);
  border: 1px solid #2A4D5B;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 1px 1px #66A0B8 inset;
  color: var(--color-bg-modal);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 var(--spacing-md);
  padding: 12px var(--spacing-sm) var(--spacing-sm);
  text-align: center;
}

.modal img {
  border: 1px solid #2A4D5B;
  margin: var(--spacing-md);
}

.modal input[type='submit'] {
  background-color: var(--color-primary);
  background-image: linear-gradient(to bottom, #3A6A7E, #2E5869);
  border: 1px solid #2A4D5B;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 1px #66A0B8 inset;
  color: var(--color-bg-modal);
  display: block;
  height: 30px;
  margin: 0 0 var(--spacing-md) var(--spacing-md);
  bottom: var(--spacing-sm);
  text-align: center;
  width: 150px;
}

.modal input[type='text'] {
  color: #AAAAAA;
  font-size: 125%;
  padding: 2px;
  text-align: right;
}

.modal input:focus {
  color: #000000;
  background-color: #bde9ba;
}

.modal span {
  font-size: 125%;
  display: block;
  text-align: right;
}

.closeBtn {
  background: url("../images/closeBtn.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
  display: block;
  height: 22px;
  left: var(--spacing-sm);
  position: absolute;
  top: 12px;
  width: 22px;
  margin: 0 0 0 305px;
}

.btn {
  border: medium none;
  display: block;
  outline: medium none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
div[class^=css_btn_class],
div[class^=boxContainer] img {
  cursor: pointer;
}

/* ===================================
   Price Position
   =================================== */
div[class^='price_'] {
  position: absolute;
}

/* ===================================
   Form Inputs
   =================================== */
input[name=researchNo],
input[name=reglistName],
input[name=qNo] {
  color: #000000;
}

input[name=researchNo]:focus {
  color: #000000;
}

/* ===================================
   Modal Windows (Large/Small)
   =================================== */
#div888 {
  width: 550px;
  height: 320px;
}

#div888 div {
  width: 550px;
  height: 270px;
}

#div888 span.left img {
  left: var(--spacing-sm);
  position: absolute;
}

#div888 span.right {
  float: right;
  width: 150px;
}

#div888 span.right img {
  display: block;
  width: 97px;
}


/* ===================================
   Toggle Switches
   =================================== */
div.option_switch {
  color: var(--color-text-secondary);
  font-size: 16px;
  font-weight: bold;
  width: 802px;
  margin: 0 auto;
  height: 200px;
  overflow: visible;
}

div.option_switch ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  padding: 0;
}

div.option_switch ul li {
  list-style: none;
  height: 80px;
  vertical-align: top;
  margin-left: 40px;
}

div.switch {
  margin-top: var(--spacing-xs);
}

div.switch input {
  display: none;
}

div.switch label {
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

div.switch label:before {
  padding: 6px var(--spacing-sm);
  border-radius: 6px 0 0 6px;
  background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
  box-shadow: 0 0 3px 0 rgba(0,0,0,0.1) inset;
  color: #BBB;
}

div.switch label.on-off:before {
  content: 'O N';
}

div.switch label.answerType:before {
  content: 'S A';
}

div.switch label.itemPosition:before {
  content: '中央';
}

div.switch label.afterAnimation:before {
  content: '消す';
}

div.switch label:after {
  padding: 6px var(--spacing-sm);
  border-radius: 0 6px 6px 0;
  background: var(--color-accent);
  box-shadow: 0 0 3px 0 rgba(0,0,0,0.1) inset;
  color: var(--color-bg-white);
}

div.switch label.on-off:after {
  content: 'OFF';
}

div.switch label.answerType:after {
  content: 'M A';
}

div.switch label.itemPosition:after {
  content: '均等';
}

div.switch label.afterAnimation:after {
  content: '切替';
}

div.switch input + label:hover:before {
  opacity: 0.5;
}

div.switch input:checked + label:before {
  background: var(--color-success);
  color: var(--color-bg-white);
  opacity: 1;
}

div.switch input:checked + label:after {
  background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
  color: #BBB;
}

div.switch input:checked + label:hover:after {
  opacity: 0.5;
}

/* ===================================
   Alert Messages
   =================================== */
.info,
.success,
.warning,
.error,
.validation {
  border: 1px solid;
  margin: 145px 0 var(--spacing-sm) 0;
  padding: 15px var(--spacing-sm) 15px 50px;
  background-repeat: no-repeat;
  background-position: var(--spacing-sm) center;
  position: absolute;
  z-index: 1000;
  display: none;
}

.info {
  color: #00529B;
  background-color: #BDE5F8;
  background-image: url('../images/info.png');
}

.success {
  color: #4F8A10;
  background-color: #DFF2BF;
  background-image: url('../images/success.png');
}

.warning {
  color: #9F6000;
  background-color: #FEEFB3;
  background-image: url('../images/warning.png');
}

.error {
  color: #D8000C;
  background-color: #FFBABA;
  background-image: url('../images/error.png');
}

.validation {
  color: #D63301;
  background-color: #FFCCBA;
  background-image: url('../images/validation.png');
  text-align: left;
}

/* ===================================
   Footer
   =================================== */
#footer {
  position: relative;
  margin: 0 0 -40px 0;
  padding: 0;
  min-height: 59px;
  height: auto !important;
  height: 59px;
  background: var(--color-bg-light) url(../images/cmn_bg_footer01.gif) repeat-x 0 0;
}

/* ===================================
   Bootstrap Overrides
   =================================== */
.label-default {
  font-size: 14px !important;
}

.label + h4 {
  margin-top: 60px !important;
}

@media (min-width: 768px) {
  .container {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  }
  
  .navbar-static-top {
  border-radius: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  }
  
  .navbar {
  border-radius: 0 !important;
  }
}

.modal {
  position: absolute !important;
  right: auto !important;
  bottom: auto !important;
  overflow: auto !important;
  z-index: 1000 !important;
}

.option1ex,
.drop_zone {
  font-size: 12px;
}

/* ===================================
   User Guide Styles
   =================================== */
/* --- ベーススタイル --- */
.fs-guide-container {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: var(--max-width-shelf);
  margin: 60px auto 0 auto;
  padding: var(--spacing-md);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-md);
}

.fs-guide-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: var(--spacing-sm);
}

.fs-guide-intro {
  margin-bottom: 24px;
  font-size: 0.95em;
}

/* --- セクション共通 --- */
.fs-section {
  margin-bottom: 32px;
}

.fs-guide-container .fs-section-title {
  font-size: 18px;
  font-weight: bold;
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-left: 5px solid #007bff;
  margin-bottom: 16px;
  color: #333;
  /* 念のため、h3:first-childで設定されている余計なマージンをリセット */
  margin-top: 0;
}

/* --- 手順リスト (Section 1用) --- */
.fs-step-prep {
  background-color: #eef5ff;
  padding: var(--spacing-sm) 15px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  font-size: 0.95em;
  border-left: 4px solid #cce5ff;
}

.fs-step-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.fs-step-list > li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 24px;
}

.fs-step-list > li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: #007bff;
  color: var(--color-bg-white);
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
}

.fs-step-head {
  font-weight: bold;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

/* --- 警告・注釈ボックス --- */
.fs-alert-box {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-sm);
  font-size: 0.9em;
}

.fs-alert-box strong {
  display: block;
  margin-bottom: 6px;
}

.fs-alert-box ul {
  margin: 4px 0 0 var(--spacing-md);
  padding: 0;
}

/* --- ルールリスト (Section 2用) --- */
.fs-rule-intro {
  margin-bottom: var(--spacing-md);
  font-weight: bold;
  color: #dc3545;
}

.fs-rule-block {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #eee;
}

.fs-rule-block:last-child {
  border-bottom: none;
}

.fs-rule-title {
  font-weight: bold;
  font-size: 15px;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.fs-rule-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #007bff;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.fs-rule-list {
  margin: 0;
  padding-left: var(--spacing-md);
  list-style-type: disc;
}

.fs-rule-list li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.fs-guide-container code {
  background-color: #f1f2f3;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  color: #d63384;
  font-size: 0.9em;
}

