body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  font-size: 1.6rem;
  overflow-x: hidden;
}
html{
  font-size: 62.5%;
}
.en{
  font-family: 'Quicksand'
}
header, footer {
  padding: 20px 40px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
}

header a{
  text-decoration: none;
  color: #333;
}
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
nav a:last-child {
  background: #f58220;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
}
.hero {
  background: url('img/pc4.jpg') no-repeat center center/cover;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  padding-left: 60px;
}
.hero-text h1 {
  font-size: 40px;
  margin-bottom: 10px;
}
.hero-text p {
  color: #eee;
}
.about h2,.works-section h2,.services-section h2,.blog-section h2 {
  text-align: center;
  color: #f58220;
  margin-bottom: 0;
}
.about h3,.works-section h3,.services-section h3,.blog-section h3,.faq-section h3 {
  margin: 0; 
  text-align: center;
}

.works-section h3{
  margin-bottom: 4%;
}

.works-section a{
  text-decoration: none;
}
section {
  padding: 0 40px 40px;
}
.works, .services, .blog {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.about{
  margin-top: 2%;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 40px;
}
.about-photo{
  margin: auto 0;
}

.about-photo img {
  max-width: 200px;
  border-radius: 8px;
}

.about-text {
  flex: 1;
  min-width: 260px;
  max-width: 600px;
  line-height: 1.8;
  text-align-last: left;
}

.about-text h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.about-text .accent {
  color: #f58220;
  font-weight: bold;
}

.more-button-container {
  text-align: center;
  margin-top: 30px;
}

.more-button {
  display: inline-block;
  background-color: #f58220;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.more-button:hover {
  background-color: #e06d0d;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  width: 28%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  margin-top: 3%;
  margin: 0 auto 20px;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

/* タグ（HP / LP / SNS）用 */
.card p b {
  display: inline-block;
  margin-top: 8px;
  background-color: #f58220;
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 13px;
}


.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  background: #fffdf8;
  border: 1px solid #f58220;
  border-radius: 12px;
  padding: 25px 20px;
  width: 30%;
  box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 3%;
}

.service-card img {
  width: 50px;
  height: auto;
  margin-bottom: 10px;
}

.service-card h4 {
  color: #f58220;
  font-size: 18px;
  margin: 0 0 10px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.service-card .price {
  font-weight: bold;
  color: #333;
  margin-top: auto;
}

.service-card .price span {
  color: #f58220;
  font-weight: bold;
  margin-right: 5px;
}

.service-text{
  text-align: center;
  margin: 40px auto;
  font-size: 1.6rem;
  line-height: 2;
  max-width: 800px;
  padding: 0 20px;
  color: #444;
}


.mission-section {
  padding: 60px 40px;
  background-color: #fff;
}

.mission-section h2 {
  text-align: center;
  color: #f58220;
  margin-top: 60px;
  font-size: 2rem;
}

.mission-section h3 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 2.2;
  font-size: 1.6rem;
  color: #333;
}

.mission-content p {
  margin-bottom: 20px;
}

.mission-content img {
  max-width: 100%;
  height: auto;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.mission-image img{
  width: 30%;
}


.wp-posts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 0 7%;
  box-sizing: border-box;
  margin-top: 30px;
}

.post-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 340px; /* 例：1列あたりの最大幅を指定 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.single-post {
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.6rem;
  line-height: 2;
}

.wp-posts a{
  text-decoration: none;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-content p {
  margin-bottom: 1.5em;
}



.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.post-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-card .date {
  font-size: 14px;
  color: #999;
  margin-bottom: 5px;
}

.post-card .ttl {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  font-weight: bold;
}


.contact {
  background: #f58220;
  padding:30px;
  color: #fff;
  text-align: center;
}

.contact h2,
.contact h3 {
  margin: 0;
}

.contact-page{
  padding: 4%;
}

.wpcf7-form {
  background: #fff;
  padding:20px 30px; 
  max-width: 500px;
  margin: 20px auto 0;
  color: #000;
  border-radius: 8px;
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.wpcf7-form textarea {
  height: 100px; 
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  background: #f58220;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
}

.faq-section {
  padding: 0 40px 40px;
}

.faq-section h2{
  text-align: center;
  color: #f58220;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 2%;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #ccc;
}

.faq-question {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: #333;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.faq-item.open .faq-answer {
  max-height: 500px; /* 十分な高さに設定（必要に応じて調整） */
  padding: 10px 0;
}

footer{
  font-size: 1.5rem;
}

.site-footer {
  background: #444;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
}

.footer-left h2 {
  margin: 0 0 10px;
}

.footer-left p {
  margin: 0;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.footer-contact-btn {
  background: #fff;
  color: #f58220;
  padding: 10px 20px;
  border-radius: 9999px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  max-width: 500px;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
  margin: 4px 0;
  transition: all 0.3s;
}

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

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

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


/* モバイルメニュー：初期状態は画面外 */
.mobile-menu {
  position: fixed;
  top: -250px;
  right: 0;
  width: 90vw;
  height: 120vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* 表示されたとき */
.mobile-menu.active {
  right: 0;
}

/* メニュー内リンク */
.mobile-menu a {
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
  width: 100%;
  font-size: 1.6rem;
  font-weight: bold;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.footer-copyright {
  margin-top: 30px;
  font-size: 1.2rem;
  color: #ccc;
  text-align: center;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  max-width: 1200px; 
  margin: 0 auto;   
  width: 100%;        
}


@media (max-width: 960px) {
  header nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-menu.active {
    display: flex;
  }
  .hero {
    height: 60vh;
  }

  .services {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
  }

  .service-card {
    width: 100%;
    max-width: 700px;
    margin-bottom: 20px;
    box-sizing: border-box;
    padding: 20px;
  }
}


@media (max-width: 960px) {
  .works,
  .services {
    flex-direction: column;
    align-items: center;
  }

  .card,
  .service-card {
    width: 100% !important;
    max-width: 500px;
    margin-bottom: 20px;
  }

  .wp-posts {
    flex-direction: column;
    align-items: center;
  }

  .post-card {
    width: 100% !important;
    max-width: 700px;
    margin-bottom: 20px;
  }

  .hero-text{
    background: rgba(0, 0, 0, 0.1); 
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-nav a:last-child {
    align-self: flex-start;
  }
}


@media (max-width: 480px) {

.card img {
  height: 170px;
}

.hero {
  height: 40vh;
}

.hero-text h1 {
  font-size: 2rem;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
}
}
