:root {
  --background: #ffffff;
  --background-light: #EED9D6;
  --background-beige: #fdf2e4;;
  --background-yellow: #FFFAEB;
  --black: #333333;
  --base-blue: #002E72;
  --light-pink: #E69FA3;
  --pink: #FF6DB6;
  --warm-pink: #e7b09f;
  --light-red: #B74B5D;
  --yellow: #FDB800;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #343a40;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-story: "Story Script", sans-serif;
  --font-family-noto-sans: "Noto Sans JP", sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2l: 24px;
}

html{
  font-size: 62.5%;
  height: 100%;
}

body{
  background: var(--background);
  font-family: var(--font-family-noto-sans);
  margin: 0;
  padding: 0;
  height: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-family-noto-serif);
}

p {
  line-height: 1.6;
  letter-spacing: 0.06rem;
}

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

/* ************************************ */
/* ヘッダー */
/* ************************************ */
header {
  background: var(--background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* スクロール時のヘッダー */
header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header.hide {
  transform: translateY(-100%);
}

.header-container {
  margin: 0 auto;
  padding: 1rem 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.header-inner .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header_logo img {
  width: 70px;
}

.header_site--title {
  color: var(--black);
  font-family: var(--font-family-story);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.8;
  text-align: center;
}

.header_site--title .jpn {
  font-family: var(--font-family-noto-sans);
  font-size: 1.2rem;
  display: block;
  letter-spacing: 0;
  line-height: 0;
}

/* ロゴ */
.logo {
  letter-spacing: 0.15rem;
}

.header_logo {
  margin: 0;
}

/* PCナビゲーション */
.header-nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.header-nav-menu li a {
  text-decoration: none;
  color: var(--black);
  font-family: var(--font-family-noto-serif);
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.header-nav-menu li a:hover {
  color: var(--dark);
}

.header-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.3s ease;
}

.header-nav-menu li a:hover::after {
  width: 100%;
}

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

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

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

.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: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--background);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 999;
  padding-top: 100px;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu ul li {
  padding: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 15px 30px;
  text-decoration: none;
  color: var(--black);
  font-family: var(--font-family-noto-serif);
  font-size: 1.2rem;
  font-weight: 500;
  border-bottom: 1px solid var(--base-blue);
  transition: background-color 0.3s ease;
}

.mobile-menu ul li a:hover {
  background-color: #f8f9fa;
  color: var(--base-blue);
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ************************************ */
/* フッター */
/* ************************************ */
.footer {
  /* background: #dde4e6; */
  background: #D9D9D9;
  color: var(--black);
  padding: 40px 0;
  margin-top: 60px;
  position: sticky;
  top: 100vh;
  width: 100%;
}

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

.footer-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center; /* または left */
  gap: 10px;
}

.footer_title {
  color: var(--black);
  font-family: var(--font-family-story);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

.footer_subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  margin: 0;
}

/* フッターロゴ */
.footer-logo {
  font-size: 4rem;
  font-weight: 700;
  color: var(--black);
  display: inline-block;
  letter-spacing: 0.15rem;
  text-decoration: none;
}

.footer-logo img {
  max-height: 40px;
  width: auto;
}

.footer .custom-logo {
  width: 65px;
}

/* フッターナビゲーション */
.footer-nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.footer-nav-menu li a {
  text-decoration: none;
  color: var(--black);
  font-size: 1.4rem;
  font-weight: 600;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-nav-menu li a:hover {
  opacity: 0.8;
}

/* copyright */
.footer-copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  color: #999;
  font-size: 1rem;
}

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

.copyright-link {
  color: #999;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-copyright p {
  margin: 0;
}

/* ************************************ */
/* button */
/* ************************************ */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  margin: 0 auto;
  padding: 1em 2em;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 1.8rem;
}

.btn_main {
  background: var(--yellow);
  border: solid 1px var(--yellow);
}

.btn_main:hover {
  background: var(--background);
  color: var(--yellow);
  transition: background 0.4s ease, color 0.4s ease;
}

.btn_sub {
  background: var(--light-red);
  border: solid 1px var(--light-red);
}

.btn_sub:hover {
  background: var(--background);
  color: var(--light-red);
  transition: background 0.4s ease, color 0.4s ease;
}

.btn__wrapper {
  margin-top: 4.8rem;
}

/* ************************************ */
/* breadcrumb */
/* ************************************ */
.breadcrumb {
  margin: 20px 0;
  font-size: 14px;
}

.breadcrumb-list {
  list-style: none;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1240px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: #999;
  font-weight: normal;
}

.breadcrumb-item a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--light-pink);
  text-decoration: underline;
}

.breadcrumb-item.current span {
  color: var(--light-pink);
  font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .breadcrumb {
      font-size: 12px;
      margin: 15px 0;
  }
  
  .breadcrumb-item:not(:last-child)::after {
      margin: 0 4px;
  }
}


/* ************************************ */
/* メインコンテンツ（front-page.php） */
/* ************************************ */
#front-page {
  background: var(--background);
}

main {
  padding: 5rem 0 0;
}

.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.hero img {
  width: 100%;
  height: auto;
}

.section_title {
  text-align: center;
  position: relative;
}

/* .page__title {
  color: var(--base-blue);
  font-family: var(--font-family-noto-sans);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-align: center;
} */

.content-section {
  padding: 80px 40px;
}

.sectionWrapper {
  padding: 90px 40px 80px;
  position: relative;
  overflow: hidden;
}

.section__title {
  color: #333;
  font-family: var(--font-family-story);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.section__header {
  margin: 0 0 5rem;
  text-align: center;
}

.section__header .subtitle {
  color: var(--black);
  font-size: 1.4rem;
  margin-top: 0;
}

/* ************************************ */
/* top-service */
/* ************************************ */

.serviceContainer {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 200px 150px 150px 200px;
}

.service__card {
  background: var(--background);
  border-radius: 3px;
  box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
  position: relative;
}

.card__1 {
  grid-row: 1 / 3;
}
.card__2 {
  grid-row: 1 / 3;
}
.card__3 {
  grid-row: 1 / 3;
}
.card__4 {
  grid-row: 3 / 5;
}
.card__5 {
  grid-row: 3 / 4;
}
.card__6 {
  grid-row: 3 / 5;
}
.card__7 {
  grid-row: 4 / 5;
}


.service__card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.service__card-content {
  padding: 2rem;
  text-align: left;
}

.service__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #333;
  line-height: 1.3;
}

.service__card-description {
  color: #64748b;
  font-size: 1.2rem;
  line-height: 1.6;
}

.service__card-tag {
  position: absolute;
  left: 20px;
  bottom: 10px;
}

/* Responsive */
@media (min-width: 1000px) {
  .serviceContainer {
    gap: 1.6rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 300px 150px 150px 300px;
  }
}

@media (max-width: 999px) {
  .service__card-content {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .serviceContainer {
    gap: 1.6rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .service-card-tag {
    position: inherit;
    left: inherit;
    bottom: inherit;
  }

  .card__1,
  .card__2,
  .card__3,
  .card__4,
  .card__5,
  .card__6,
  .card__7 {
    grid-column: 1;
    grid-row: auto;
  }

  .service_content h2 {
    font-size: 2rem;
  }

  .service-card-content {
    padding: 1.5rem;
    min-height: 120px;
  }

  .service-card-title {
    font-size: 1.4rem;
  }

  .service-card-description {
    font-size: 1.2rem;
  }

}

/* ************************************ */
/* top-about */
/* ************************************ */
.section__title-about {
  color: #333;
  font-family: var(--font-family-story);
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.8;
  margin: 0 0 1rem;
}

.msg__content {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.msg__text {
  font-size: 1.4rem;
  letter-spacing: .08em;
  line-height: 2.5;
  margin-bottom: 3.2rem;
}

.top_about {
  background: var(--background-yellow);
}

.about_box-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}

.about_greeting {
  background: var(--background);
  padding: 30px 50px;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto 3.2rem;
}

.about_box {
  background: var(--background);
  padding: 30px 50px;
  border-radius: 20px;
}

.about_image {
  max-width: 200px;
  margin: auto;
}

.about_content-title {
  font-size: 1.8rem;
  text-align: center;
}

.about_heading {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.about_content-text {
  font-size: 1.4rem;
  line-height: 2;
  margin: 0;
}

.about_content p {
  font-size: 1.4rem;
  line-height: 2;
  margin: 0;
}

.solution_list {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.solution_list li {
  line-height: 1.8;
  list-style: none;
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .section__title-about {
    font-size: 2.4rem;
    line-height: 1.8;
    margin: 0 0 1rem;
  }

  .about_box-wrapper {
    grid-template-columns: 1fr;
  }

  .about_box {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .msg__content {
    text-align: left;
  }
}

/* ************************************ */
/* top-works */
/* ************************************ */
.works_inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}

@media (max-width: 768px) {
  .works_inner {
    grid-template-columns: 1fr;
  }
}


/* ************************************ */
/* 404.php */
/* ************************************ */
.page-404 {
  text-align: center;
}

.page-404,
.page-404 h1,
.page-404 p {
  color: var(--black);
}

.page-404 h1 {
  font-size: 2.4rem;
  margin-bottom: 4rem;
}

.page-404 p {
  font-size: var(--font-size-md);
  margin-bottom: 3rem;
}

.page-404 .return-link {
  color: var(--yellow);
  font-size: var(--font-size-md);
}

/* ************************************ */
/* page-work.php */
/* ************************************ */
.works--list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
  padding-left: 0;
  list-style: none;
}

.page-work .works--item {
  box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
  list-style: none;
}

.works--link {
  text-decoration: none;
}

.page-work .works--content {
  padding: 1.6rem;
}

.works--categories {
  margin: 1.6rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-tag.category-wordpress {
  background: linear-gradient(135deg, #21759b, #2ea2cc);
}

.category-tag.category-shopify {
  background: linear-gradient(135deg, #7ab55c, #95bf47);
}

.category-tag.category-roblox {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.category-tag.category-fortnite {
  background: linear-gradient(135deg, #9c27b0, #673ab7);
}

.category-tag.category-html {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.works--title {
  color: var(--black);
}

@media (max-width: 768px) {
  .works--list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ************************************ */
/* page-work.php */
/* ************************************ */

.page-about .about_greeting {
  background: var(--background-yellow);
  padding: 30px 50px;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto 3.2rem;
}

.page-about .about_box {
  background: var(--background-yellow);
  padding: 30px 50px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .page-about .about_greeting {
    padding: 30px 20px;
  }

  .page-about .about_box {
    padding: 30px 20px;
  }
}

/* ************************************ */
/* page-xxx.php */
/* ************************************ */
.page .title-header {
  margin: 0 0 6rem;
}

.page__header {
  height: 300px;
  background: url(../img/xxx/xxx.jpeg) no-repeat center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: multiply;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page .page__title {
  color: var(--black);
  display: block;
  font-family: var(--font-family-noto-sans);
  font-weight: 700;
  font-size: 3.6rem;
  letter-spacing: 0.03em;
  padding: 0 0 1rem;
  position: relative;
  text-align: center;
}

.page .page__title:before {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 30px);
  width: 60px;
  height: 5px;
  content: '';
  border-radius: 3px;
  background: var(--yellow);
}

/* ************************************ */
/* レスポンシブデザイン */
/* ************************************ */
@media (max-width: 850px) {
  /* ***** header ***** */
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-container {
    padding: 0 15px;
  }

  main {
    padding: 8rem 0 0;
  }
}

@media (max-width: 768px) {
  p {
    font-size: var(--font-size-sm);
  }
  
  /* ***** footer ***** */
  /* フッターモバイル対応 */
  .footer-container {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0px;
    padding: 0 15px;
  }

  .footer-logo {
    font-size: 3.5rem;
    margin-bottom: 10px;
  }

  .footer-nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0;
    padding-top: 1rem;
    padding-left: 0;
    text-align: center;
    width: 100%;
  }

  .footer-nav-menu li {
    width: 100%;
  }

  .footer-nav-menu li a {
    display: block;
    padding: 5px 0;
  }

  .footer-copyright {
    margin-top: 20px;
  }

  .footer-copyright p {
    font-size: 10px;
  }

  .sectionWrap {
    padding: 10px 0 0;
  }

  .sectionWrapper {
    padding: 60px 20px 80px;
  }

  .section_title {
    font-size: 3.8rem;
  }


  /* business */
  .tab-button {
    padding: 12px 6px;
    font-size: 14px;
    font-weight: 700;
  }

  .tab-content {
    padding: 20px 0;
  }

  .tab-panel.active {
    flex-direction: column;
    gap: 20px;
  }

  .tab-image, .tab-text {
    max-width: 100%;
  }

  .tab-text p {
    font-size: var(--font-size-md);
  }

}


