:root {
  --background: #0a0a0a;
  --yellow: #fcee09;
  --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-oswald: "Oswald", sans-serif;
  --font-family-noto-sans: "Noto Sans JP", sans-serif;
  --font-family-murecho: "Murecho", 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-murecho);
}

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

img{
  vertical-align: bottom;
  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);
  border-bottom: solid 1px #666;
}

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

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

/* ロゴ */
.logo {
  font-family: var(--font-family-oswald);
  font-size: 6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15rem;
  text-decoration: none;
}

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

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

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

.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(--yellow);
  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: 80px;
}

.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(--yellow);
  font-family: var(--font-family-murecho);
  font-size: 1.2rem;
  font-weight: 500;
  border-bottom: 1px solid var(--yellow);
  transition: background-color 0.3s ease;
}

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

/* オーバーレイ */
.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: #0a0a0a;
  border-top: solid 1px #666;
  color: #fcee09;
  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 {
  font-family: var(--font-family-oswald);
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.15rem;
  text-decoration: none;
}

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

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

.footer-nav-menu li a {
  text-decoration: none;
  color: var(--yellow);
  font-family: var(--font-family-murecho);
  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;
}
/* ************************************ */
/* メインコンテンツ（front-page.php） */
/* ************************************ */
#front-page {
  background: var(--background);
}

main {
  margin-top: 70px;
  padding: 1rem 0 0;
}

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

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

.title-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section_title {
  color: var(--yellow);
  font-size: 4.8rem;
  position: relative;
}

.section_title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background-color: #fcee09;
}

.sectionWrap {
  padding: 50px 0 70px;
}

.sectionInner {
  color: var(--white);
}

.sectionInner p {
  color: var(--white);
  font-size: 1.6rem;
}

/* About */
.about .sectionInner {
  background-color: var(--background);
}

.aboutTitle {
  font-family: var(--font-family-oswald);
  font-size: 4.6rem;
  letter-spacing: 0.15rem;
  text-align: center;
}

.aboutTitle-sub {
  font-size: 1.6rem;
}

.aboutContainer {
  border: solid 1px var(--yellow);
  margin: 0 auto clamp(1.4rem, 1.171rem + 1.14vw, 1.6rem);
  padding: 10px 20px 50px clamp(1.4rem, 1.327rem + 0.36vw, 1.6rem);
}

.aboutInner {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.6rem;
}

/* business */
.container {
  max-width: 1000px;
  margin: 0 auto;
  background: #0a0a0a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(252, 238, 7, 0.1);
  overflow: hidden;
  border: 2px solid #333;
}

.tab-header {
  display: flex;
  border: 1px solid var(--yellow);
  background: #0a0a0a;
  margin-bottom: 1rem;
}

.tab-button {
  flex: 1;
  padding: 16px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #fcee07;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
}

.tab-button.active {
  color: #fff;
  border-bottom-color: #fcee07;
}

.tab-content {
  background: var(--background);
  border: 1px solid var(--yellow);
  padding: 32px;
  min-height: 400px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
  display: flex;
  gap: 32px;
  align-items: center;
}

.tab-image {
  flex: 1;
  max-width: 50%;
}

.tab-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.tab-text {
  flex: 1;
  max-width: 50%;
}

.tab-text p {
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: var(--font-size-xl);
  font-weight: 400;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* works */
#works .col-3 {
  max-width: 980px;
  margin: 0 auto;
}

.col-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 5rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover .card {
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}

/* company */
.company-info {
  border-collapse: collapse;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.company-info, .company-info th, .company-info td {
  border: 1px solid var(--yellow);
}

.company-info th {
  background-color: var(--background);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 400;
  padding: 2rem;
  text-align: center;
  width: 25%;
}

.company-info td {
  background-color: var(--background);
  color: var(--white);
  font-size: 1.6rem;
  padding: 2rem 2rem 2rem 3rem;
  width: 75%;
}

.contactWrap {
  text-align: center;
}

.contactWrap p{
  color: var(--yellow);
  font-size: 1.6rem;
  padding: 30px 0;
}

/* button */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  margin: 0 auto;
  padding: .9em 2em;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  color: var(--background);
  font-weight: 600;
  font-size: 1.6rem;
}

.contact-btn {
  background-color: var(--yellow);
}


.btn:hover {
  background: #fff;
  transition: background 0.4s ease, color 0.4s ease;
}

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

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

.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);
}

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

  .hamburger {
    display: flex;
  }

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

  .logo {
    font-size: 3.5rem;
  }

  /* ***** 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 {
    gap: 15px;
    margin-top: 0;
    padding-top: 1rem;
    padding-left: 0;
    width: 100%;
  }

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

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

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

  .sectionWrap {
    padding: 10px 0 0;
  }

  .section_title {
    font-size: 3.8rem;
  }

  /* about */
  .aboutTitle {
    font-size: 3.2rem;
  }

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

  .tab-content {
    padding: 20px;
  }

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

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

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

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

  /* ***** comapany-table ***** */
  .company-info {
    border: none;
    width: 100%;
    border: 1px solid var(--yellow);
  }

  .company-info thead {
    display: none;
  }

  .company-info tr {
    display: block;
    border: none;
  }

  .company-info th, .company-info td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    font-size: 1.4rem;
  }

  .company-info th {
    background-color: #333;
    color: var(--yellow);
    text-align: left;
    padding: 8px 10px;
  }

  .company-info td {
    border-bottom: 1px solid var(--yellow);
    padding: 12px 10px;
  }

  .company-info tr:last-child td {
    border-bottom: none;
  }
}