/* 全体のスタイル */
:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #333333;
  --text-color: #333333;
  --background-color: #ffffff;
  --gradient-color-1: #f8f9fa;
  --gradient-color-2: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.header {
  background-color: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.header-btn:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.introduce-img {
  margin-left: 300px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary-color);
}

.button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: var(--accent-color);
}

.button2:hover {
  background-color: #999;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
  padding-top: 170px;
  padding-bottom: 100px;
  background-color: #ddd;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.text {
  margin-bottom: 30px;
  flex: none;
}

.hero h1 {
  font-size: 48px;
  margin-left: 0;
  margin-bottom: 30px;
  line-height: 1.2;
}

.hero-button {
  color: #fff;
  background: #d90a0a;
  padding: 15px 30px;
  border-radius: 10px;
  margin-left: 0;
  margin-top: 40px;
  align-self: flex-start;
  text-decoration: none;
  font-size: 1.1rem;
}

.hero-image {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.hero-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

/* レスポンシブデザイン - タブレット */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero-image img {
    max-width: 350px;
  }
  
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .works-list {
    gap: 30px;
  }
  
  .works-item {
    max-width: 320px;
  }
}

/* レスポンシブデザイン - タブレット（小） */
@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .hero-image {
    margin-top: 30px;
  }
  
  .hero-left {
    width: 100%;
    align-items: center;
  }
  
  .hero-button {
    align-self: center;
    margin-top: 30px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-image img {
    max-width: 300px;
  }
  
  .introduce-row,
  .introduce-row.reverse {
    flex-direction: column !important;
    gap: 30px;
  }
  
  .introduce-text {
    margin: 30px 0;
    padding: 30px 15px;
  }
  
  .introduce-image img {
    max-width: 90vw;
  }
  
  .feature-navi-cards {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  
  .feature-navi-card {
    width: 90vw;
    min-width: unset;
    max-width: 400px;
  }
  
  .article-list {
    flex-direction: column;
    gap: 40px;
  }
  
  .article-item {
    width: 100%;
    max-width: 400px;
  }
}

/* レスポンシブデザイン - モバイル */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  
  /* ヘッダーのモバイル対応 */
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--secondary-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .nav.active {
    left: 0;
  }
  
  .nav a {
    margin: 15px 0;
    font-size: 18px;
  }
  
  .dropdown {
    margin: 15px 0;
  }
  
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    margin-top: 10px;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* ヒーローセクション */
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .hero-button {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .hero-image img {
    max-width: 250px;
  }
  
  /* セクションタイトル */
  .section-heading {
    font-size: 20px;
  }
  
  /* スライドショー */
  .slide img {
    height: 300px;
  }
  
  .prev,
  .next {
    padding: 12px;
    font-size: 16px;
  }
  
  /* サービスカード */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  /* ツール・アプリ詳細 */
  .tool-content,
  .app-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .tool-stats,
  .app-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .tool-stats span,
  .app-stats span {
    text-align: center;
  }
  
  /* 制作事例 */
  .works-list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  
  .works-item {
    max-width: 95vw;
  }
  
  .works-heading {
    font-size: 2rem;
  }
  
  /* 記事セクション */
  .article-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .article-item {
    width: 100%;
    height: auto;
    margin-bottom: 40px;
  }
  
  .article-item img {
    width: 100%;
    height: 200px;
  }
  
  .article-item a {
    padding-left: 0;
    text-align: center;
    display: block;
  }
  
  /* フッター */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  /* ポートフォリオページ */
  .portfolio-items {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .category-filters {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .filter-btn {
    width: 80%;
    margin-bottom: 10px;
  }
  
  /* メインビジュアル */
  #mainvisual {
    padding-top: 120px;
    margin-bottom: 40px;
  }
  
  #mainvisual img {
    height: 400px;
  }
  
  .main-p {
    font-size: 24px;
    left: 10%;
  }
  
  .mainvisual-text h2 {
    font-size: 24px;
    left: 8%;
    margin-top: 80px;
  }
  
  /* Works セクション */
  #works {
    padding: 60px 20px;
  }
  
  #works ul {
    flex-direction: column;
    gap: 30px;
  }
  
  .smartphone {
    height: 250px;
    width: 100%;
    margin-left: 0;
  }
  
  .zisseki {
    flex-direction: column;
    gap: 20px;
  }
  
  .zisseki img {
    height: 200px;
    width: 100%;
  }
  
  .work-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .work-text {
    margin-right: 0;
  }
  
  /* ブログセクション */
  .blog-list {
    flex-direction: column;
    gap: 24px;
    margin: 0 20px;
  }
  
  .blog-card {
    width: 100%;
  }
  
  /* お問い合わせフォーム */
  #contact dl {
    flex-direction: column;
  }
  
  #contact dt {
    width: 100%;
    margin-bottom: 5px;
  }
  
  #contact dd {
    width: 100%;
  }
  
  /* News セクション */
  #news dl {
    flex-direction: column;
  }
  
  #news dt {
    width: 100%;
    border-bottom: none;
    padding-bottom: 0;
  }
  
  #news dd {
    width: 100%;
    padding-top: 0;
  }
}

/* レスポンシブデザイン - 小さいモバイル */
@media (max-width: 480px) {
  .container {
    padding: 0 5px;
  }
  
  .hero h1 {
    font-size: 24px;
  }
  
  .hero-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section-heading {
    font-size: 18px;
  }
  
  .works-heading {
    font-size: 1.5rem;
  }
  
  .feature-navi-title {
    font-size: 2rem;
  }
  
  .main-p {
    font-size: 20px;
  }
  
  .mainvisual-text h2 {
    font-size: 20px;
  }
  
  .service-card {
    padding: 15px;
  }
  
  .service-card i {
    font-size: 30px;
  }
  
  .tool-content,
  .app-content {
    gap: 20px;
  }
  
  .feature-list li {
    font-size: 1rem;
  }
  
  .works-item {
    padding: 20px 15px;
  }
  
  .works-title {
    font-size: 1.1rem;
  }
  
  .works-desc {
    font-size: 0.9rem;
  }
  
  .article-item img {
    height: 150px;
  }
  
  .blog-card {
    padding: 15px;
  }
  
  .blog-title {
    font-size: 1rem;
  }
}

/* 実績紹介セクション */
.achievements {
  position: relative;
  padding: 100px 0;
  background: none; /* 一旦消す */
}

.achievements::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(images/background.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0.5; /* 背景だけ透過 */
  z-index: 0;
}

.achievements > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  text-align: center;
  font-size: 24px;
  color: var(--primary-color);
}

.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.slide {
  display: none;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  border-radius: 10px;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--secondary-color);
  padding: 20px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--secondary-color);
  padding: 16px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* 斜め背景のベーススタイル */
.section-with-diagonal {
  position: relative;
  overflow: hidden;
}

.contact2 {
  background-color: #f5f5f5;
}

.section-with-diagonal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--gradient-color-1) 0%,
    var(--gradient-color-1) 50%,
    var(--gradient-color-2) 50%,
    var(--gradient-color-2) 100%
  );
  z-index: -1;
  transform: skewY(-3deg);
  transform-origin: top left;
}

/* 各セクションの背景スタイル */
.services {
  padding: 100px 0;
  background-color: transparent;
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    #f5f5f5 0%,
    #f5f5f5 50%,
    #ffffff 50%,
    #ffffff 100%
  );
  z-index: -1;
  transform: skewY(-3deg);
  transform-origin: top left;
}

.tool-details {
  padding: 80px 0;
  background-color: transparent;
  position: relative;
}

.tool-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #ffffff 50%,
    #f8f9fa 50%,
    #f8f9fa 100%
  );
  z-index: -1;
  transform: skewY(3deg);
  transform-origin: top left;
}

.app-image {
  /* height: 400px;
  width: 100px; */
  object-fit: contain;
  max-width: 400px;
}

.x-image {
  height: 40px;
  width: 40px;
  object-fit: contain;
}
.note-image {
  height: 120px;
  width: 120px;
  object-fit: contain;
}

.app-details {
  padding: 80px 0;
  background-color: transparent;
  position: relative;
}

.app-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    #f8f9fa 0%,
    #f8f9fa 50%,
    #ffffff 50%,
    #ffffff 100%
  );
  z-index: -1;
  transform: skewY(-3deg);
  transform-origin: top left;
}

.works-section {
  background: transparent;
  padding: 100px 0 80px 0;
  position: relative;
}

.works-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #ffffff 50%,
    #f5f6f7 50%,
    #f5f6f7 100%
  );
  z-index: -1;
  transform: skewY(3deg);
  transform-origin: top left;
}

/* セクション内のコンテンツを相対位置に */
.services .container,
.tool-details .container,
.app-details .container,
.works-section .works-container {
  position: relative;
  z-index: 1;
}

/* サービスセクション */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-image-section {
  background: #fff;
  padding: 60px 0 60px 0;
  text-align: center;
}

.service-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* お問い合わせ */
.contact {
  text-align: center;
  padding: 100px 0;
}
.contact h2 {
  padding-bottom: 50px;
}
.contact button {
  margin-top: 50px;
  padding: 20px;
}
.contact2 button {
  color: #000;
  background-color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* フッター */
.footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer-column h4 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-column a {
  display: block;
  color: #999;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--secondary-color);
}

.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

.footer-social a {
  color: var(--secondary-color);
  font-size: 24px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #999;
}

/* アニメーション */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* 既存のレスポンシブデザインは上記の新しいメディアクエリに統合されました */

/* introduce section 白黒デザイン */
.introduce-section {
  background-color: #f5f5f5;
  padding: 150px 0;
}
.introduce-section-title {
  color: #000;
  text-align: center;
  padding-bottom: 50px;
  font-size: 30px;
}
.introduce-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 100px;
  gap: 10px;
}
.introduce-row reverse {
  flex-direction: row-reverse;
}
.introduce-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.introduce-image img {
  max-width: 450px;
  width: 100%;
  border-radius: 16px;
  filter: grayscale(20%);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.3);
}
.introduce-text {
  color: #000;
  padding: 40px 60px;
  text-align: center;
}
.introduce-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #4a90e2;
}
.introduce-text p {
  font-size: 1.2rem;
  line-height: 1.8;
}
/* このメディアクエリは上記の新しいメディアクエリに統合されました */

/* 制作サイト事例セクション */
.works-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.works-heading {
  font-size: 2.8rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}
.works-list {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.works-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 32px 28px 28px 28px;
  max-width: 370px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.works-item:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
  transform: translateY(-6px) scale(1.03);
}
.works-item img {
  width: 100%;
  max-width: 320px;
  height: 100%;
  max-height: 250px;
  border-radius: 10px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.works-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
}
.works-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
}
.works-btn-wrap {
  margin-top: 30px;
}
.works-more-btn {
  background: #fff;
  color: #1a237e;
  border: 2px solid #1a237e;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 18px 48px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.works-more-btn:hover {
  background: #1a237e;
  color: #fff;
}
/* このメディアクエリは上記の新しいメディアクエリに統合されました */

.tool-content,
.app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.tool-image,
.app-image {
  flex: 1;
}

.app-image img {
  width: 100%;
  border-radius: 10px;
}

.tool-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tool-description,
.app-description {
  flex: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.feature-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

.feature-list i {
  color: #000;
  margin-right: 10px;
}

.tool-stats,
.app-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  font-weight: bold;
}

.tool-stats span {
  background-color: #f5f5f5;
  padding: 10px 20px;
  border-radius: 5px;
}

.app-stats span {
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-section {
  padding: 100px 0;
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
}

.article-list {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
  gap: 250px;
}

.article-item {
  width: 300px;
  height: 220px;
  margin-bottom: 100px;
}

.more-articles {
  text-decoration: none;
  color: #000;
}

.article-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-item p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 3行まで表示 */
  -webkit-box-orient: vertical;
}

.article-item img {
  width: 300px;
  height: 190px;
}

.article-item a {
  padding-left: 60%;
}

/* このメディアクエリは上記の新しいメディアクエリに統合されました */

/* ポートフォリオページのスタイル */
.portfolio-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: #f8f9fa;
  text-align: center;
}

.portfolio-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-top: 1rem;
}

.portfolio-categories {
  padding: 2rem 0;
  background-color: #fff;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid #007bff;
  background: transparent;
  color: #007bff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #007bff;
  color: #fff;
}

.portfolio-grid {
  padding: 3rem 0;
}

.portfolio-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.portfolio-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: auto;
  height: auto;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  text-align: center;
  color: #fff;
  padding: 1rem;
}

.portfolio-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.portfolio-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.portfolio-link:hover {
  background-color: #0056b3;
}

.cta-button {
  background-color: #007bff;
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
}

.cta-button:hover {
  background-color: #0056b3;
}

.portfolio-cta {
  background-color: #f8f9fa;
  padding: 4rem 0;
  text-align: center;
}

.portfolio-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.portfolio-cta p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

/* このメディアクエリは上記の新しいメディアクエリに統合されました */

/* プルダウンメニューのスタイル */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .button {
  background-color: #0056b3;
}

/* ヘッダーのドロップダウン用の特別なスタイル */
.header .dropdown-content {
  right: 0;
}

/* 発注ナビの特長セクション */
.feature-navi {
  background: #f7f7f8;
  padding: 60px 0 80px 0;
}
.feature-navi-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: bold;
  color: #7d77b7;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}
.feature-navi-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-navi-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 40px 32px 32px 32px;
  min-width: 280px;
  max-width: 320px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-navi-card i {
  font-size: 48px;
  color: #b3aedc;
  margin-bottom: 18px;
}
.feature-navi-main {
  font-size: 1.5rem;
  font-weight: bold;
  color: #7d77b7;
  margin-bottom: 8px;
}
.feature-navi-num {
  font-size: 2.1rem;
  font-weight: bold;
  color: #7d77b7;
  letter-spacing: 0.02em;
}
.feature-navi-desc {
  font-size: 1.1rem;
  color: #333;
}
/* このメディアクエリは上記の新しいメディアクエリに統合されました */

li {
  list-style: none;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto 130px auto;
  font-size: 0.9rem;
  padding: 0 4%;
}
.site-logo {
  text-decoration: none;
  color: #fff;
}
.site-title {
  line-height: 1px;
}
.site-title a {
  display: block;
}
.sec-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 65px;
}
#mainvisual {
  padding-top: 180px;
  margin-bottom: 80px;
  background-color: #f8f9fa;
  display: flex;
  justify-content: flex-end;
  position: relative;
}
#mainvisual img {
  width: 100%;
  max-width: 1920px;
  height: 700px;
  object-fit: cover;
  display: block;
  opacity: 0.6;
}
.main-p {
  font-size: 40px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 16%;
}
.main-button {
  width: 200px;
  background-color: #ee0000;
  box-shadow: 0 5px 0 #aa0000;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 15px 0;
  border-radius: 50px;
}
.main2-button {
  width: 200px;
  background-color: #34b496;
  box-shadow: 0 5px 0 #298c75;
  color: #fff;
  font-weight: bold;
  padding: 15px 0;
  margin-top: 350px;
  border-radius: 50px;
  margin-right: 80px;
}
.main-button:hover {
  box-shadow: none;
  transform: translateY(5px);
}
.mainvisual-text h2 {
  position: absolute;
  top: 20%;
  left: 12%;
  z-index: 2;
  margin-top: 120px;
  font-size: 40px;
}

#about ul {
  margin-bottom: 30px;
}
#about li:first-child {
  margin-bottom: 30px;
}
#about p {
  text-align: justify;
}
#works {
  padding: 100px;
  background-color: #f8f9fa;
}
#works ul {
  display: flex;
  gap: 20px; /* スマホ画像と実績ブロックの間隔 */
  align-items: flex-start; /* 高さ揃えたい場合に使用 */
  list-style: none;
  padding: 0;
  margin: 0;
}

.smartphone {
  height: 350px;
  width: 600px;
  margin-left: 100px;
}
.zisseki {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.zisseki img {
  height: 250px;
  width: 1300px;
}
.zisseki-heading {
  text-shadow: 2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000,
    -2px -2px 0 #000;
  font-size: 30px;
  color: #fff;
}
#works li {
  width: 31%;
  margin-bottom: 23px;
}
.work-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.work-image {
  flex: 1;
}

.work-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.work-text {
  flex: 1;
  margin-right: 100px;
}

.work-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.work-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #666;
}

.work-list {
  list-style: none;
  padding: 0;
  padding-bottom: 20px;
}

.work-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}
.work-zisseki {
  padding: 100px;
  margin-bottom: 50px;
  background-color: #fff;
  background-image: repeating-linear-gradient(
    45deg,
    #ddd 0,
    #ddd 1px,
    #fff 0,
    #fff 50%
  );
  background-size: 20px 20px;
  height: 400px;
}
#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 dl {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#contact dt {
  width: 15%;
}
#contact dd {
  width: 85%;
  margin-bottom: 10px;
}
#contact dd input,
#contact dd textarea {
  width: 100%;
  border: solid 1px #c8c8c8;
  padding: 10px;
}
#contact dd textarea {
  height: 10rem;
}
#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;
  text-align: center;
}
#blog {
  padding-bottom: 200px;
}
.blog-title {
  text-align: left;
}
.blog-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
  margin: 0 100px;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  width: 30%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.blog-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f4f4f4;
}
.blog-meta {
  font-size: 0.95em;
  color: #1abc9c;
  margin: 16px 20px 0 20px;
}
.blog-title {
  font-size: 1.1em;
  font-weight: bold;
  margin: 12px 20px 20px 20px;
  color: #222;
  line-height: 1.6;
}
.blog-more {
  display: flex;
  margin-top: 40px;
  margin-right: 70px;
  color: #1abc9c;
  font-weight: bold;
  text-decoration: none;
  justify-content: flex-end;
}
.blog-more:hover {
  color: #148c74;
}
.about-text {
  font-size: 15px;
}

.js-scroll.-fadein {
  opacity: 0;
  transform: translateY(5rem);
}
.js-scroll.-fadein.js-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/*-------------------------------------------
  SP
  -------------------------------------------*/
@media screen and (max-width: 600px) {
  .wrapper {
    margin-bottom: 70px;
  }
  .sec-title {
    margin-bottom: 40px;
  }
  #works ul {
    flex-direction: column;
  }
  #works li {
    width: 100%;
  }
  #news dl {
    flex-direction: column;
  }
  #news dt {
    width: 100%;
    border-bottom: none;
    padding-bottom: 0;
  }
  #news dd {
    width: 100%;
    padding-top: 0;
  }
  #contact dl {
    flex-direction: column;
  }
  #contact dt {
    width: 100%;
  }
  #contact dd {
    width: 100%;
  }
  .blog-list {
    flex-direction: column;
    gap: 24px;
  }
  .blog-card {
    width: 100%;
  }
}
