@charset "UTF-8";

html {
  font-size: 100%; /* 1rem = 16px */
}

body {
  font-family: "Noto SansJP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #24292e;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

li {
  list-style: none;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto 130px auto;
  font-size: 0.9rem;
  padding: 0 4%;
}

.site-title {
  line-height: 1px;
}

.site-title a {
  display: block;
}

.sec-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 65px;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
  max-width: 1160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 270px;
  margin: 0 auto;
  padding: 0 4%;
}

#header ul {
  display: flex;
  padding: 10px 0;
}

#header li {
  font-size: 1.3rem;
  margin-left: 30px;
}

#header li a {
  color: #24292e;
}

#header li a:hover {
  opacity: 0.7;
}

#header li img.icon {
  width: 35px;
}

/*-------------------------------------------
Mainvisual
-------------------------------------------*/
#mainvisual {
  margin-bottom: 20%;
}

.main-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 4%;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.main-message {
  width: 50%;
  padding-right: 0;
  margin-left: 0;
  transform: translateY(-60px);
}

.main-message h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.main-message p {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
}

.main-image {
  width: 50%;
  margin-left: 0;
  transform: translateY(-80px);
}

.main-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/*-------------------------------------------
About
-------------------------------------------*/
#about {
  margin-top: 100px;
}

#about .grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 60px;
  margin-bottom: 80px;
}

#about .feature-item {
  position: relative;
}

#about .feature-header {
  margin-bottom: 24px;
}

#about .number {
  font-size: 1rem;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: block;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

#about .number::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background-color: #333;
}

#about h3 {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #333;
}

#about p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #666;
  letter-spacing: 0.01em;
}

/*-------------------------------------------
Examples
-------------------------------------------*/
#examples {
  margin-top: 220px;
}

#examples .examples-list {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

#examples .example-item {
  width: 50%;
  display: flex;
  align-items: center;
  gap: 20px;
}

#examples .example-item img {
  width: 45%;
}

#examples .example-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

/*-------------------------------------------
News
-------------------------------------------*/
#news {
  margin-top: 220px;
}

#news dl {
  display: flex;
  flex-wrap: wrap;
  border-top: solid 1px #c8c8c8;
  margin-bottom: 20px;
}

#news dt {
  width: 20%;
  border-bottom: solid 1px #c8c8c8;
  padding: 15px;
}

#news dd {
  width: 80%;
  border-bottom: solid 1px #c8c8c8;
  padding: 15px;
}

/*-------------------------------------------
Contact
-------------------------------------------*/
#contact {
  margin-top: 220px;
}

#contact .button {
  text-align: center;
}

#contact .button input {
  width: 200px;
  background-color: #24292e;
  color: #fff;
  padding: 15px 0;
  border: solid 1px #24292e;
}

#contact .button input:hover {
  background: #fff;
  color: #24292e;
}

/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
  background-color: #24292e;
  color: #fff;
  font-size: 0.5rem;
  padding: 10px 20px;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#footer .privacy-policy a {
  color: #fff;
}

#footer .privacy-policy a:hover {
  opacity: 0.7;
}

/*-------------------------------------------
プライバシーポリシー
-------------------------------------------*/
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

.policy-section p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.policy-section ul {
  margin: 15px 0;
  padding-left: 20px;
}

.policy-section ul li {
  list-style-type: disc;
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-info {
  text-align: center;
  margin-top: 20px;
}

.contact-info a {
  color: #24292e;
  text-decoration: underline;
}

.contact-info a:hover {
  opacity: 0.7;
}
/*-------------------------------------------
各Examplesのページ
-------------------------------------------*/
.examples-page .page-header {
  background-color: #f5f5f5;
  padding: 60px 0;
  margin-bottom: 80px;
}

.examples-page .page-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
}

.examples-page .page-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  color: #666;
}

.examples-page .content-section {
  max-width: 960px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.examples-page .process-list {
  counter-reset: process;
  margin: 60px 0;
}

.examples-page .process-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.examples-page .process-item::before {
  counter-increment: process;
  content: "STEP " counter(process);
  font-size: 1.2rem;
  font-weight: bold;
  color: #24292e;
  min-width: 100px;
}

.examples-page .process-content {
  flex: 1;
}

.examples-page .process-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #24292e;
}

.examples-page .process-media {
  width: 100%;
  margin: 20px 0;
}

.examples-page .process-media img,
.examples-page .process-media video {
  width: 100%;
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.examples-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 60px;
  margin: 40px 0;
}

.examples-page .feature-item {
  position: relative;
}

.examples-page .feature-item .number {
  font-size: 1rem;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: block;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.examples-page .feature-item .number::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background-color: #333;
}

.examples-page .feature-item h3 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #333;
  margin-bottom: 15px;
}

.examples-page .feature-item p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #666;
  letter-spacing: 0.01em;
}
/*-------------------------------------------
レスポンシブ対応
-------------------------------------------*/
@media screen and (max-width: 960px) {
  #about .grid-container {
    gap: 60px 40px;
  }

  #about h3 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 768px) {
  .wrapper {
    margin-bottom: 70px;
  }

  .site-title {
    margin-top: 20px;
  }

  .sec-title {
    margin-bottom: 40px;
  }

  /* ヘッダー */
  #header {
    max-width: 100%;
    height: auto;
    flex-direction: column;
  }

  #header li {
    font-size: 0.8rem;
    margin-left: 20px;
  }

  #header li:first-child {
    margin-left: 0;
  }

  /* メインビジュアル */
  .main-section {
    flex-direction: column;
    padding: 30px 4%;
    gap: 30px;
    margin-bottom: 60px;
  }

  .main-message,
  .main-image {
    width: 100%;
    text-align: center;
  }

  .main-message {
    order: 0; /* メッセージを画像の上に配置 */
    transform: translateY(0);
  }

  .main-image {
    order: 1; /* 画像を下に配置 */
    transform: translateY(0); /* 上方向へのずれを解消 */
  }

  .main-image img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* About */
  #about {
    margin-top: 60px;
  }

  #about .grid-container {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
    padding: 0 20px;
  }

  #about .feature-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }

  #about .feature-header {
    margin-bottom: 20px;
  }

  #about h3 {
    font-size: 1.5rem;
  }

  #about p {
    font-size: 0.9rem;
  }

  /* Examples */
  #examples {
    margin-top: 80px;
  }

  #examples .examples-list {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  #examples .example-item {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  #examples .example-item img {
    width: 80%;
    margin-bottom: 15px;
  }

  /* News */
  #news {
    margin-top: 80px;
  }

  #news dl {
    flex-direction: column;
    padding: 0 20px;
  }

  #news dt {
    width: 100%;
    padding: 12px 0 6px;
    border-bottom: none;
    font-weight: bold;
  }

  #news dd {
    width: 100%;
    padding: 6px 0 12px;
    border-bottom: 1px solid #eee;
  }

  /* Contact */
  #contact {
    margin-top: 80px;
  }

  .policy-section h3 {
    font-size: 1.1rem;
  }

  .policy-content {
    padding: 0 15px;
  }

  /* 各Examplesのページ */
  .examples-page .page-title {
    font-size: 2rem;
  }

  .examples-page .process-item {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .examples-page .process-item::before {
    margin-bottom: 10px;
  }

  .examples-page .feature-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .examples-page .feature-item h3 {
    font-size: 1.1rem;
  }

  .examples-page .feature-item p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .main-message h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .main-message p {
    font-size: 0.9rem;
    padding: 0 15px;
  }

  #header li {
    font-size: 0.75rem;
    margin-left: 15px;
  }

  #header li img.icon {
    width: 25px;
  }

  .sec-title {
    font-size: 1.3rem;
    margin-bottom: 30px;
  }

  #about .feature-header h3 {
    font-size: 1.2rem;
  }

  #about p {
    font-size: 0.85rem;
  }

  #examples .example-text {
    font-size: 0.9rem;
  }
  /* 各Examplesのページ */
  .examples-page .page-header {
    padding: 40px 0;
    margin-bottom: 60px;
  }

  .examples-page .page-title {
    font-size: 1.8rem;
  }

  .examples-page .process-list {
    margin: 40px 0;
  }

  .examples-page .process-item {
    margin-bottom: 40px;
    padding: 15px;
  }

  .examples-page .process-content h3 {
    font-size: 1.1rem;
  }

  .examples-page .process-media video {
    max-height: 300px;
  }
}

/* パフォーマンス最適化 */
@media screen and (prefers-reduced-motion: no-preference) {
  .main-message h1,
  .main-message p,
  .main-image img {
    transition: transform 0.3s ease-out;
  }
}
