@import url('./root.css');

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans_serif);
  color: var(--color-dark-gray);
  background-color: var(--color-bg-gray);
  overflow-x: hidden;
  font-size: 16px;
  letter-spacing: 0.15em;
}

main {
  padding-top: 80px;
}

header,
footer {
  background-color: white;
}

a {
  color: var(--color-dark-gray);
  text-decoration: none;
}

a:hover {
  opacity: 0.6;
  transition: all 0.3s ease;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-size: 4.7rem;
}

h1 > span {
  font-size: 1.4rem;
}

h2 {
  font-size: 3.2rem;
}

h2 > span {
  font-size: 0.9rem;
}

p {
  line-height: 2.2;
}

@media screen and (max-width: 768px) {
  main {
    padding-top: 64px;
  }
  h1 {
    font-size: 3.2rem;
  }
  h1 > span {
    font-size: 1.2rem;
  }
  h2 {
    font-size: 2.4rem;
  }
  h2 > span {
    font-size: 0.9rem;
  }
}

/* Common Styles */
.flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.flex-end {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.text-center {
  text-align: center !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

.bg-grid {
  background-image: linear-gradient(white 1px, transparent 1px),
    linear-gradient(to right, white 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: var(--color-light-yellow);
  background-position: -14px 14px;
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.3rem 0;
  transition: all 0.3s ease;
}

/* Sections */
section {
  margin: 0 auto;
  padding: 80px 0;
}

/* セクションタイトル */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
}

.section-title h1,
.section-title h2 {
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.section-title h1 > span,
.section-title h2 > span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.1em;
}

@media screen and (max-width: 768px) {
  section {
    padding: 40px 0;
  }
}

.page-header .container {
  max-width: 1300px;
  border-bottom: 2px solid var(--color-yellow);
}
.page-header .section-title {
  padding: 0 50px;
}
.page-header__title h1 {
  padding: 0 0 1.2em;
}

.page-header__title-text {
  padding-bottom: 1.2em;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .page-header .container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0;
  }
  .page-header .section-title {
    padding: 0;
  }
  .page-header__title h1 {
    padding: 0.8em 0 1.2em;
  }
}

/* ========================
  Header
========================= */
.site-header {
  position: fixed;
  z-index: 100;
  width: 100%;
  background-color: white;
  transition: transform 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  height: 80px;
  max-width: unset;
}

/* Logo Styles */
.site-branding {
  display: flex;
  align-items: center;
}

/* Navigation Styles */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-gray);
}

.main-navigation .menu-item a {
  text-decoration: none;
  color: var(--color-gray);
  position: relative;
}

.main-navigation .menu-item a:hover {
  opacity: 1;
}

.main-navigation .menu-item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background-color: var(--color-yellow);
  transition: width 0.3s ease;
}

.main-navigation .menu-item.contact-btn a::after {
  display: none;
}

.main-navigation .menu-item a:hover::after {
  width: 100%;
}

/* Contact Button */
.menu-item.contact-btn a {
  background-color: var(--color-yellow);
  color: var(--color-gray);
  border: 1px solid black;
  padding: 8px 16px;
  font-weight: 500;
}

.menu-item.contact-btn a:hover {
  background-color: white;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Language Switch */
.menu-item.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
}

.menu-item.language-switch .globe-icon,
.drawer-language .globe-icon {
  font-size: 1.1rem;
  margin-right: 4px;
  filter: grayscale(1);
}

.menu-item.language-switch a {
  color: var(--color-gray);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation ul {
    display: none;
  }
}

/* ========================
  SPドロワーメニュー
========================= */
.sp-drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-gray);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.sp-drawer-menu.open {
  transform: translateX(0);
}

/* ドロワーヘッダー */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: white;
}

.drawer-logo {
  max-width: 200px;
}

.drawer-logo img {
  width: auto;
  height: auto;
  max-height: 40px;
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close-icon {
  position: relative;
  width: 28px;
  height: 3px;
  background-color: transparent;
}

.menu-close-icon::before,
.menu-close-icon::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 4px;
  background-color: var(--color-yellow);
  transition: all 0.3s ease;
}

.menu-close-icon::before {
  top: 0;
  right: 0;
  transform: rotate(45deg);
}

.menu-close-icon::after {
  top: 0;
  right: 0;
  transform: rotate(-45deg);
}

/* ドロワーメニューリスト */
.drawer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 32px;
}

.drawer-menu-list li {
  border-bottom: 1px solid var(--color-yellow);
}

.drawer-menu-list li:last-child {
  border-bottom: none;
}

.drawer-menu-list a {
  display: block;
  padding: 16px 24px;
  color: var(--color-dark-gray);
  font-size: 1.15rem;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.drawer-menu-list a:hover {
  background-color: rgba(224, 219, 30, 0.1);
}

.drawer-contact-btn {
  display: block;
  background-color: var(--color-yellow);
  color: var(--color-dark-gray);
  padding: 16px 24px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.drawer-contact-btn:hover {
  background-color: var(--color-dark-gray);
  color: var(--color-yellow);
}

.drawer-language {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-dark-gray);
  font-size: 0.9rem;
}

.drawer-language .globe-icon {
  font-size: 1.1rem;
}

.drawer-language a {
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: opacity 0.3s ease;
  padding: 20px 0;
}

.drawer-language a:hover {
  opacity: 0.7;
}

/* PC表示時はドロワーメニューを非表示 */
@media screen and (min-width: 769px) {
  .sp-drawer-menu {
    display: none !important;
  }
}

/* SP表示時のヘッダー調整 */
@media screen and (max-width: 768px) {
  .main-navigation ul,
  .main-navigation li {
    display: none !important;
  }

  .menu-toggle {
    display: block !important;
  }

  .site-header .container {
    height: 64px;
    padding: 12px 16px;
  }

  .site-branding {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 102;
  }

  .site-logo img {
    max-height: 40px;
    width: auto;
  }

  .main-navigation {
    width: 100%;
    margin-top: 0;
  }

  .menu-toggle {
    display: block !important;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 103;
    background: none;
    border: none;
    cursor: pointer;
  }

  .menu-toggle-icon {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-yellow);
    position: relative;
    transition: all 0.3s ease;
  }

  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--color-yellow);
    transition: all 0.3s ease;
  }

  .menu-toggle-icon::before {
    top: -10px;
    right: 0;
  }

  .menu-toggle-icon::after {
    top: 10px;
    right: 0;
  }

  /* メニューオープン時のハンバーガーアイコン */
  .menu-toggle.open .menu-toggle-icon {
    background-color: transparent;
  }

  .menu-toggle.open .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle.open .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ========================
  Footer
========================= */
.footer-main {
  padding: 60px 120px 80px;
  color: var(--color-gray);
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
}
.footer-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}
.footer-main-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-logo-area {
  display: flex;
  width: 100%;
  max-width: 320px;
}
.footer-address {
  font-size: 0.9rem;
  line-height: 2.2;
}
.footer-main-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
}

/* Footer Menu Grid - 3 Column Layout */
.footer-menu-grid {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.footer-menu-column {
  flex: 1;
}

.footer-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
}

.footer-menu-column ul li {
  margin-bottom: 1em;
  white-space: nowrap;
  width: fit-content;
}

.footer-menu-column ul li a {
  color: var(--color-gray);
  text-decoration: none;
}

.footer-menu-column ul li > ul {
  font-size: 0.9rem;
}

.footer-menu-column ul li > ul li {
  margin-bottom: 0.5rem;
}

.footer-menu-column ul li > ul li a {
  margin-left: 1.5rem;
}

.copyright {
  color: var(--color-gray);
  font-size: 0.8rem;
  line-height: 2;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .footer-main {
    padding: 50px 0;
  }
  .footer-main-inner {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-main-left,
  .footer-main-right {
    padding: 0 2vw;
  }
  .footer-menu-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    width: 80%;
    margin: 0 auto;
    gap: 20px;
  }
  .footer-menu-column ul li a {
    font-size: 1rem;
  }
  .site-info {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  .footer-address {
    font-size: 0.9rem;
  }
  .copyright {
    font-size: 0.8rem;
  }
}

/* ========================
  ページネーション
========================= */
.pagination {
  margin-top: 4rem;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin: 0 0.25rem;
  padding: 0 0.5rem;
  color: var(--color-border-gray);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination .page-numbers li {
  list-style: none;
}

.pagination .page-numbers:hover {
  color: var(--color-bg-gray);
}

.pagination .page-numbers.current {
  background-color: var(--color-primary);
  color: var(--color-txt-gray);
}

@media screen and (max-width: 768px) {
  .breadcrumb {
    padding: 1.5rem 0;
    font-size: 0.6rem;
  }

  .pagination .page-numbers {
    font-size: 1rem;
  }
}

/* =========================
  フォーム
========================= */
.contact-form {
  background-color: white;
}

/* ========================
  view moreボタン
========================= */
.view-more-button {
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.view-more-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 92px 14px 24px;
  background: white;
  color: var(--color-dark-gray);
  border: 1px solid var(--color-yellow);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.view-more-text::before {
  background-color: var(--color-yellow);
  position: absolute;
  top: 50%;
  right: 20px;
  width: 24px;
  height: 1px;
  margin-top: 0px;
  content: '';
  transition: all 0.3s ease;
}
.view-more-text::after {
  content: '';
  border-top: 1px solid var(--color-yellow);
  display: inline-block;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 51%;
  right: 22px;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s ease;
}

.view-more-link:hover {
  background: var(--color-yellow);
  text-decoration: none;
  opacity: 1;
}

.view-more-link:hover .view-more-text::before {
  right: 10px;
  background-color: var(--color-dark-gray);
}
.view-more-link:hover .view-more-text::after {
  right: 12px;
  border-color: var(--color-dark-gray);
}

/* ホバー時のアニメーション */
.view-more-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-bg-gray);
  transition: left 0.3s ease;
  z-index: -1;
}

.view-more-link:hover::before {
  left: 0;
}

/* ========================
  共通セクション Product
========================= */
.product__wrapper {
  padding: 100px 0;
}
.product__wrapper .container {
  padding: 0 40px;
}
.product-part__content {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  width: 100%;
}
.product-part__content-image {
  width: 40%;
}
.product-part__content-text {
  flex: 1;
}
.product-part__content-text .view-more-button {
  text-align: right;
}

@media screen and (max-width: 768px) {
  .product__wrapper .container {
    padding: 0 15px;
  }
  .product-part__content {
    flex-direction: column;
    gap: 2rem;
  }
  .product-part__content-image {
    width: 100%;
  }
  .product-part__content-text {
    width: 100%;
  }
  .product-part__content-text .view-more-button {
    text-align: left;
  }
}

@media screen and (max-width: 400px) {
  .product-part__content-text p {
    letter-spacing: 0.1em;
  }
}

/* ========================
  共通セクション Contact
========================= */
.contact__wrapper {
  padding: 100px 0 60px;
  background-color: var(--color-dark-gray);
  border: 6px solid var(--color-yellow);
  color: white;
  position: relative;
}
.contact-part__title h2 {
  margin-bottom: 1em;
}
.contact__wrapper::after {
  content: '';
  position: absolute;
  top: 5%;
  right: -10px;
  width: 30%;
  height: 100%;
  max-width: 450px;
  background: url(../images/x-mark.svg) no-repeat top left / cover;
  opacity: 0.6;
}

@media screen and (max-width: 768px) {
  .contact__wrapper {
    padding: 60px 0 30px;
  }
  .contact__wrapper p {
    font-size: 0.9rem;
  }
  .contact__wrapper::after {
    top: 41%;
    width: 50%;
    height: 70%;
  }
}

/* ======= フェードアニメーション ======= */
.fade {
  opacity: 0;
  transition: opacity 0.8s ease-out;
  transition-delay: 0.5s;
}

.fade.animate-in {
  opacity: 1;
}

/* フェードアニメーションのバリエーション（上下左右の動き付き） */
.fade.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade.fade-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.fade.fade-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade.fade-down.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.fade.fade-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade.fade-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.fade.fade-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade.fade-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* ======= 順次フェードインアニメーション ======= */
.fade.fade-left-sequential {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade.fade-left-sequential.animate-in {
  opacity: 1;
}

/* 順次アニメーション用の遅延設定 */
.fade.fade-left-sequential:nth-child(1) {
  transition-delay: 0.15s;
}
.fade.fade-left-sequential:nth-child(2) {
  transition-delay: 0.3s;
}
.fade.fade-left-sequential:nth-child(3) {
  transition-delay: 0.45s;
}
.fade.fade-left-sequential:nth-child(4) {
  transition-delay: 0.6s;
}
.fade.fade-left-sequential:nth-child(5) {
  transition-delay: 0.75s;
}
.fade.fade-left-sequential:nth-child(6) {
  transition-delay: 0.9s;
}
