/*
Theme Name: MinoreAI
Theme URI: https://minoreai.com/
Author: Sugimoto
Description: 自作テーマ
Version: 1.0
*/

/* 一般設定 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: white;
  color: #4a4a4a;
  margin: 0;
  padding: 0;
  padding-top: 100px;
  font-size: 1.2rem;
}

body h1,
body h2,
body h3,
body p {
  text-align: center;
  margin-inline-start: 1rem;
  margin-inline-end: 1rem;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

body.admin-bar header {
  top: 32px;
  /* WP管理バーの高さ分だけ下げる */
}


/* ヘッダー設定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 9999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 0 0 4rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 1rem;
}

/* メニューのスタイル */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.global-nav li a {
  text-decoration: none;
  color: #4a4a4a;
}

.contact-button a {
  text-decoration: none;
  color: white;
}

.contact-button a {
  display: flex;
  align-items: center;
  height: 100px;
  background: linear-gradient(135deg, #00b5ad, #a3dc2f);
  padding: 0rem 2rem;
  margin-left: 5rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
}

.contact-button a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  transform: skewX(-25deg);
}

.contact-button a:hover::before {
  animation: shine 0.8s forwards;
}

@keyframes shine {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

.logo {
  max-width: 94px;
  height: auto;
  display: block;
}

.main-logo {
  max-width: 100%;
}

.hamburger {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  display: block;
  height: 5px;
  background: #7da570;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

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

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.keyvisual {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.keyvisual-sp {
  display: none;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}


.overlay-content {
  position: absolute;
  top: 200px;
  left: 50px;
  z-index: 20;
  padding: 20px;
  border-radius: 8px;
}

.section-contents h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin: 0 auto 2rem;
  text-align: left;
}

.section-contents p {
  font-size: 2rem;
  font-weight: bold;
  margin: 1rem auto;
  text-align: left;
}

.hero-title {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease-out forwards;
  animation-delay: 1s;
  /* 任意で遅延設定 */
}

.hero-sub {
  margin-bottom: 0rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease-out forwards;
  animation-delay: 3s;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* レシポンシブ設定 */
@media screen and (max-width: 768px) {
  body.admin-bar header {
    top: 46px;
    /* WP管理バーの高さ分だけ下げる */
  }

  body {
    padding-top: 60px;
    font-size: 1rem;
  }

  .header-inner {
    display: flex;
    align-items: center;
    padding: 0rem 2rem 0 1rem;
    gap: 3rem;
  }

  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 95px;
    right: 0;
    background: white;
    width: 100%;
    z-index: 999;
  }

  .header-nav.active {
    display: block;
  }

  .contact-button a {
    display: block;
    height: 60px;
    margin-left: 0;
    text-align: center;
    align-content: center;
    color: white;
  }

  .global-nav ul {
    flex-direction: column;
    padding: 10px;
    gap: 0.5rem;
  }

  .global-nav li {
    margin: 10px auto;
  }

  .logo-header {
    display: inline-block;
    max-width: 300px;
  }

  .keyvisual-sp {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .keyvisual {
    display: none;
  }

  .overlay-content {
    top: 150px;
    left: 0;
  }

  .section-contents h1 {
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
    margin-bottom: 2rem;
  }

  .section-contents p {
    font-size: 0.9rem;
    margin: 1rem 0 0;
  }
}


/* About-usセクション */
.aboutus-section {
  margin: 10rem auto 0rem;
  padding: 5rem;
}

.flex-box {
  display: flex;
  /* 横並びにする */
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: center;
  /* 縦位置を揃える */
  gap: 5rem;
  /* 文章と画像の間隔 */
  max-width: 1500px;
}

.aboutus-image {
  max-width: 750px;
  min-width: 500px;
}

.aboutus-image img {
  max-width: 100%;
}

.aboutus-box {
  position: relative;
  z-index: 1;
  max-width: 550px;
  min-width: 300px;
}


.text-title {
  margin: 3rem auto 0;
}

.text-title h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
  font-weight: bold;
}

.aboutus-text {
  margin: 2rem auto;
}

.aboutus-text h3 {
  text-align: left;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.aboutus-text p {
  text-align: left;
  margin-bottom: 2rem;
}

.more-button {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.button-link {
  display: inline-block;
  position: relative;
  z-index: 1;
  text-decoration: none;
  padding: 1.5rem 2rem;
  font-size: 1.2rem;
  border-radius: 40px;
  margin: 0 4px;
  background: linear-gradient(135deg, #00b5ad, #a3dc2f);
  color: white;
  transition: background 0.2s ease;
}

.button-link a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  transform: skewX(-25deg);
}

.button-link a:hover::before {
  animation: shine 0.8s forwards;
}

.aboutus-bg {
  position: relative;
  z-index: 0;
  margin-left: auto;
  right: -5rem;
  margin-top: -150px;
  width: 300px;
}

.aboutus-bg img {
  width: 100%;
}


/* topサービスセクション */
.service-section {
  padding: 8rem 0.5rem 8rem;
}

.section-title {
  max-width: 400px;
  margin: 2rem auto 0;
}

.section-title h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 5rem;
  color: #d6edcc;
}

.section-title p {
  font-size: 1.5rem;
  margin-top: -2rem;
  margin-bottom: 5rem;
  font-weight: bold;
}

.app-2column {
  display: flex;
  justify-content: space-between;
  margin: 2rem 5rem;
  gap: 5rem
}

.each-column {
  max-width: 800px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 水平方向中央 */
  text-align: center;
  /* テキスト中央 */
}

.each-column h2 {
  font-weight: normal;
}

.each-column img {
  display: block;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.each-column img:hover {
  transform: scale(1.1); /* 1.1倍に拡大 */
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}



/* Top Featureセクション */
.feature-section {
  background-image: url('https://minoreai.com/wp-content/uploads/2025/08/bg-feature.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 4rem 0.5rem;
}

.recruit-text h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.ft-4column {
  display: flex;
  position: relative;
  justify-content: center;
  max-width: 1500px;
  margin: 2rem auto;
  gap: 2rem;
  margin-bottom: 10rem;
}

.ft-each-column {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  padding: 2rem 0;
}

.ft-each-column img {
  height: 50px;
  margin-bottom: 2rem;
}

.ft-each-column h2 {
  font-size: 1.3rem;
}



/* トップページレシポンシブ設定 */
@media screen and (max-width: 768px) {
  .aboutus-section {
    padding: 0;
  }

  .section-title h2 {
    font-size: 3.5rem;
  }

  .section-title p {
    font-size: 1.2rem;
  }

  .flex-box {
    flex-wrap: wrap;
    gap: 0;
  }

  .aboutus-bg {
    right: 0;
    margin-top: -150px;
    width: 230px;
  }

  .button-link {
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .more-button {
    margin-top: 3rem;
  }

  .arrow {
    width: 15px;
  }

  .aboutus-image {
    position: relative;
    max-width: 100%;
    min-width: 100px;
    margin-left: 0;
    margin-top: 0;
  }

  .aboutus-box {
    position: relative;
    max-width: 100%;
    top: -6px;
    left: 0;
    padding: 20px;
  }

  .text-title h2 {
    font-size: 1.1rem;
  }

  .app-2column {
    display: block;
    margin: 2rem 1rem;
  }

  .each-column {
    margin-bottom: 3rem;
  }

  .ft-4column {
    flex-wrap: wrap;
    margin: 2rem auto;
    gap: 2rem;
    margin-bottom: 10rem;
  }

  .ft-each-column {
    width: 300px;
    margin: 0;
  }


}



/* フッター設定 */
footer {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #00b5ad, #a3dc2f);
  color: white;
}

.footer-contents {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  margin: 0 auto;
  gap: 3rem
}

.footer-contents-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30%;
}

.footer-contents-sitemap {
  width: 70%;
}

.enterprise-logo {
  max-width: 100px;
  height: auto;
  display: block;
  margin: 1rem auto 0;
}

.enterprise-logo img {
  max-width: 100%;
}

.enterprise-detail {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.enterprise-detail p {
  margin-block-start: 0rem;
  margin-block-end: 0rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 1rem;
}

footer ul li {
  padding: 0 1rem;
  position: relative;
  text-align: center;
}

footer ul li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background-color: #999;
}

.footer-nav li a {
  text-decoration: none;
  color: white;
}

.divider {
  width: 2px;
  height: 200px;
  background-color: white;
}

.contact-message p {
  margin-block-start: 0.5;
  margin-block-end: 0.5;
}

.btn-2column {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem auto;
  gap: 2rem;
}

.contact-button-f {
  flex: 1;
  max-width: 400px;
}

.contact-button-f a {
  display: block;
  /* 横幅を100%に */
  width: 80%;
  border: 1px solid white;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}


.button-link-contact:hover {
  background: linear-gradient(135deg, #a0cbea, #129fc5);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: background-linear-gradient 0.8s ease;
}

/* フッターレシポンシブ設定 */
@media screen and (max-width: 768px) {

  .footer-contents,
  .footer-contents-contact,
  .footer-nav ul {
    display: block;
    padding: 0 0;
    margin: 0 auto;
    width: 100%;
  }

  .footer-nav ul {
    text-decoration: underline;
  }

  .enterprise-logo {
    margin: 2rem auto 0;
  }

  .enterprise-detail {
    margin: 0 auto 3rem;
  }

  .btn-2column {
    display: grid;
    gap: 1rem;
  }

  .divider {
    display: none;
  }

  .footer-contents-sitemap {
    margin: 2rem auto;
    font-size: 0.9rem;
    width: 90%;
  }

  .footer-contents-sitemap p {
    margin-inline-start: 0;
    margin-inline-end: 0;
  }

  footer ul li:not(:first-child)::before {
    display: none;
  }

  footer ul li {
    margin-bottom: 1rem;
  }
}


/* 個別ページカスタム設定 */
.page-header {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.page-header img {
  width: 100%;
  height: auto;
}

.page-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0;
  #38b6ff
}

.page-title-overlay-jp {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #d6edcc;
  font-size: 1.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0;
}

/* 個別ページ　レシポンシブ設定 */
@media screen and (max-width: 768px) {
  .page-header img {
    width: auto;
  }

  .page-title-overlay {
    font-size: 3rem;
  }

  .page-title-overlay-jp {
    font-size: 1rem;
    top: 58%;
  }
}


/* サービス紹介 */
.service-area {
  margin: 5rem auto 15rem;
}

.content-title h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 5rem;
  color: #d6edcc;
}

.img-txt-2column {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 3rem auto 5rem;
  padding: 0;
  gap: 3rem;
}

.service-img {
  max-width: 800px;
}

.service-img img {
  width: 100%;
}

.service-txt {
  max-width: 600px;
}

.service-txt p {
  text-align: left;
}


@media screen and (max-width: 768px) {
  .service-page {
    padding: 1rem;
  }

  .img-txt-2column {
    margin: 2rem auto 6rem;
    gap: 0;
  }

  .service-txt {
    margin-top: 2rem;
  }

  .content-title {
    margin: 8rem auto 2rem;
  }

  .content-title h2 {
    font-size: 2.5rem;
  }
}

/* 制作実績 */
.works-area {
  margin: 5rem auto 15rem;
}

.content-txt {
  margin: 0 auto 10rem;
}

.each-works {
  margin: 3rem auto 10rem;
  padding: 0;
}

.works-img {
  display: block;
  margin: 0 auto;
  max-width: 1000px;
}

.works-img img {
  width: 100%;
}

.works-txt {
  max-width: 600px;
  margin: 0 auto;
}

.works-txt p {
  margin-block-start: 0;
  margin-block-end: 0;
}

@media screen and (max-width: 768px) {
  .works-page {
    padding: 1rem;
  }

  .content-txt {
    margin: 8rem auto 5rem;
  }

  .each-works {
    margin: 3rem auto 5rem;
    padding: 0;
  }

}


/* お問い合わせ */
.bg-contact-sp {
  display: none;
}

.contact-page {
  margin: 0 auto;
  padding: 5rem 3rem 8rem;
  justify-content: center;
}

.company-add-map {
  display: flex;
  margin: 5rem auto 0;
  max-width: 1400px;
  flex-wrap: wrap;
}

.company-address {
  margin: 1rem auto;
  align-items: center;
  max-width: 600px;
}

.company-address ul {
  list-style: none;
  padding-inline-start: 0;
  padding-bottom: 2rem;
  margin: 1em 0;
  max-width: 100%;
}

.company-address li {
  display: flex;
  padding: 1rem 2rem 1rem 0;
  border-bottom: 1px solid #4a4a4a;
  flex-wrap: nowrap;
}

.company-address .label {
  width: 200px;
  margin: auto 3rem auto 1rem;
}

.company-address h2 {
  margin: 5rem auto 0 1rem;
  text-align: left;
}

.company-map {
  margin: 3rem auto 0;
  max-width: 100%;
}

.google-map {
  max-width: 100%;
}

.contact-form {
  text-align: left;
}

.contact-form p {
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
}

.form-inner {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: left;
}

.input-box {
  display: flex;
  align-items: center;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.label-area {
  display: inline-block;
  width: 170px;
  font-weight: bold;
}

.input-area {
  flex: 1;
}

.input-area input,
.input-area textarea {
  width: 100%;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #ccc;
  /* 境界線を設定 */
  border-radius: 5px;
  /* 角を丸める（任意） */
}

@media screen and (max-width: 768px) {
  .bg-contact {
    display: none;
  }

  .bg-contact-sp {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
  }

  .contact-page {
    padding: 1rem;
  }

  .company-add-map {
    display: block;
  }

  .company-map {
    margin: 2rem auto 5rem;
    max-width: 400px;
  }

  .google-map {
    width: 100%;
  }

  .input-box {
    display: block;
  }

  .form-inner {
    margin: 5rem auto;
    padding: 0rem;
  }

  .label-area {
    width: -webkit-fill-available;
    text-align: left;
  }

  .company-address {
    margin: 5rem auto;
  }

  .company-address .label {
    width: 125px;
    min-width: 80px;
    margin: auto 1rem;
  }

  .company-address h2 {
    margin: 5rem auto 0 1rem;
  }
}

.post-content {
  margin: 8rem auto;
}

.privacy-text {
  margin: 8rem auto;
  max-width: 800px;
}

@keyframes shine {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

.animate {
  opacity: 0;
  transform: translateY(50px);
  /* 下から */
  transition: all 0.8s ease-out;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
  /* 元の位置に戻る */
}