/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 
body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #3b2b2b;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}*/
.facepattern-container h2
{background-color: transparent;}
.facepattern-container .mt20{margin-top: 20px;}
/* Container */
.facepattern-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  max-width: 480px;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #3b2b2b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;	
}

.main {
  flex: 1;
  position: relative;
}

/* Hero Section */
.hero-section {
  padding: 24px;
  text-align: center;
  background: #316aae;
}

.hero-section .hero-content {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.hero-text {
  padding: 12px;
}

.main-visual {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.lead-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #3b2b2b;
  margin-bottom: 20px;
  text-align: center;
}

.terms-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #666666;
  text-align: center;
}

.link {
  color: #2d68ac;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* Step Section */
.step-section {
  padding: 24px;
  background-color: #316aae;
  position: relative;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  color: #3b2b2b;
  text-align: center;
  margin-bottom: 32px;
}

.step-section-title {
  color: white;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}

.step-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding-top: 24px;
  padding-bottom: 10px;	
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-number {
  display: inline-grid;
  place-items: center;
  background-color: #a8c8e8;
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50%;
  margin-bottom: 12px;
  line-height: 1.2;
  width: 64px;
  height: 64px;
}

.step-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.step-content > div {
  padding-left: 24px;
}

.step-content > img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: #3b2b2b;
  margin-bottom: 5px;
  padding: 0;	
}

.step-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #666666;
}

/* Content Sections */
.content-section {
  padding: 48px 24px;
  position: relative;
  --text-color: #3b2b2b;
}

.face-type-section {
  background: linear-gradient(to bottom, #e8f3fa 0px, #c9dfea 100%);
  position: relative;
  padding-top: 48px;
}

.color-type-section {
  background: linear-gradient(to bottom, #fdf5f3 0px, #f7e2dc 100%);
  position: relative;
  padding-top: 48px;
}

.section-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: #3b2b2b;
  margin-bottom: 32px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-align-last: left;
}

.chart-placeholder {
  width: 100%;
  height: 120px;
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999999;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
  flex-shrink: 0;
}

/* System Requirements Section */
.requirements-section {
  padding: 48px 24px;
  background-color: #fafafa;
  text-align: center;
}

.requirements-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}

.requirements-group {
  flex: 1;
  max-width: 160px;
}

.requirements-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #3b2b2b;
  margin-bottom: 12px;
}

.requirements-detail {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: #666666;
}

.requirements-note {
  font-size: 12px;
  font-weight: 400;
  color: #999999;
  text-align: center;
}

/* QR Section */
.qr-section {
  display: none;
  padding: 24px 32px;
  text-align: center;
  background-color: #fafafa;
  position: fixed;
  right: 48px;
  bottom: 48px;
  z-index: 1000;
  background: #fefefe;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

.qr-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #3b2b2b;
  margin-bottom: 12px;
}

.qr-image {
  width: 160px;
  height: 160px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
}

.start-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f4ccbc 0%, #ffddd4 100%);
  color: #5183ed;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(244, 204, 188, 0.3);
  border: 4px solid #fafafa;
  min-height: 48px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}

.start-button:hover {
  background: linear-gradient(135deg, #ffddd4 0%, #ffe5dd 100%);
  color: #3a69d8;
}

.start-button:active {
  background: linear-gradient(135deg, #e8baa8 0%, #f4ccbc 100%);
  color: #3a69d8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.face-type-container,
.color-type-container {
  position: relative;
}

.face-type-content,
.color-type-content {
  background: white;
  border-radius: 16px;
  padding: 24px 32px;
  z-index: 2;
  position: relative;
}

figure img {
  width: 100%;
}

.section-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5em;
  text-align: center;
  color: var(--text-color, #2b2b2b);
  position: relative;
  transform: scaleX(0.9);
  transform-origin: center;
}

.section-heading::before,
.section-heading::after {
  content: "";
  display: block;
  height: 0.5px;
  background: var(--line-color, #999999);
  align-self: center;
  flex-grow: 1;
}

.section-heading::before {
  margin-left: -5%;
  margin-right: 16px;
}

.section-heading::after {
  margin-left: 16px;
  margin-right: -5%;
}

figcaption {
  text-align: center;
  font-weight: 600;
}

.cta-container {
  display: none;
  margin-top: 16px;
}

body.mobile .cta-container {
  display: block;
}

body.desktop .qr-section {
  display: block;
}

.accent-image {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  display: block;
  margin-inline: auto;
  background: white;
  padding: 4px;
  box-sizing: border-box;
}

.colortypechart {
  width: 100%;
}
