/* Global Styles & Reset */
:root {
  --color-text: #1f2937; /* text-gray-800 */
  --color-text-dark: #111827; /* text-gray-900 */
  --color-text-light: #4b5563; /* text-gray-600 */
  --color-border: #e5e7eb; /* border-gray-200 */
  --color-bg-white: #ffffff;
  --color-bg-hover: #f9fafb; /* hover:bg-gray-50 */
  --color-crafcolor-bg: #E3FFFF;
  --color-tcg-checker-bg: #FFF9E3;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--color-bg-white);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-title {
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  text-align: center;
  color: var(--color-text-dark);
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem; /* 48px */
  }
}


/* Header */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 70;
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.header-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem; /* 80px */
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  height: 2.5rem; /* 40px */
  width: 2.5rem; /* 40px */
  border-radius: 9999px;
}

.logo-text {
  height: 2rem; /* 32px */
}

.menu-toggle-button {
  position: relative;
  z-index: 100;
  height: 2rem; /* 32px */
  width: 2rem; /* 32px */
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  position: absolute;
  left: 0;
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text-dark);
  transition: all 0.3s ease-in-out;
}
.hamburger-line.top { top: 6px; }
.hamburger-line.middle { top: 50%; transform: translateY(-50%); }
.hamburger-line.bottom { bottom: 6px; }

.menu-panel.is-open .hamburger-line.top { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-panel.is-open .hamburger-line.middle { opacity: 0; }
.menu-panel.is-open .hamburger-line.bottom { top: 50%; transform: translateY(-50%) rotate(-45deg); }


/* Menu Panel */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: var(--color-bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
}
.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.menu-button {
  font-size: 1.5rem;
  font-weight: 600;
  background-color: black;
  color: white;
  border: 2px solid black;
  border-radius: 9999px;
  padding: 0.75rem 3rem;
  width: 20rem; /* 320px */
  text-align: center;
  transition: all 0.3s;
  transform: translateY(1rem);
  opacity: 0;
}
.menu-panel.is-open .menu-button {
  transform: translateY(0);
  opacity: 1;
}
.menu-panel.is-open .menu-button:nth-child(1) { transition-delay: 0.2s; }
.menu-panel.is-open .menu-button:nth-child(2) { transition-delay: 0.3s; }
.menu-panel.is-open .menu-button:nth-child(3) { transition-delay: 0.4s; }

.menu-button:hover {
  background-color: white;
  color: black;
}

/* Hero Section */
.hero-section {
  background-color: var(--color-bg-white);
}

.hero-container {
  max-width: 56rem; /* 896px */
  padding-top: 8rem;
  padding-bottom: 0rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.hero-description {
  margin-top: 2rem;
  color: var(--color-text-dark);
  font-size: 1.5rem;
  letter-spacing: 0.025em;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .hero-container {
    padding-top: 12rem;
    padding-bottom: 4rem;
  }
  .hero-title {
    font-size: 3.6rem;
  }
  .hero-description {
    font-size: 1.875rem; /* 30px */
  }
}

/* News Section */
.news-section {
  background-color: var(--color-bg-white);
  padding: 4rem 0;
}

.news-container {
  max-width: 68rem; /* 896px */
}

.news-list {
  border-top: 1px solid var(--color-border);
}

.news-item {
  display: block;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}
.news-item:hover {
  /* background-color: var(--color-bg-hover); */
}
.news-item:hover .news-item-arrow {
  opacity: 1;
}
.news-item:hover .news-title {
  color: #000;
}

.news-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem;
}
.news-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.news-date {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 500;
  flex-shrink: 0;
  width: 7rem;
}
.news-category {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  flex-shrink: 0;
}
.news-category-info { background-color: #dbeafe; color: #1e40af; }
.news-category-event { background-color: #d1fae5; color: #065f46; }

.news-title {
  font-size: 1.125rem;
  color: var(--color-text);
  font-weight: 500;
}
.news-item-arrow {
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-left: 1rem;
}
.arrow-icon {
  height: 1.5rem;
  width: 1.5rem;
  color: #6b7280; /* text-gray-500 */
}

.news-more-button-container {
  margin-top: 3rem;
  text-align: center;
}
.btn {
  display: inline-block;
  border: 2px solid black;
  border-radius: 9999px;
  padding: 1rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: black;
  color: white;
}
.btn-primary:hover {
  background-color: white;
  color: black;
}

@media (min-width: 640px) {
  .news-section {
    padding: 1rem 0 6rem 0;
  }
  .news-item-meta {
    gap: 2rem;
  }
  .news-date { font-size: 1.125rem; }
  .news-category { font-size: 1rem; }
  .news-title { font-size: 1.25rem; }
  .btn { font-size: 1.125rem; }
}

/* Service Sections (Crafcolor & TCG Checker) */
.crafcolor-section { background-color: var(--color-crafcolor-bg); }
.tcg-checker-section { background-color: var(--color-tcg-checker-bg); }

.crafcolor-section, .tcg-checker-section {
  transition: all 0.3s ease-in-out;
}
.crafcolor-section:hover, .tcg-checker-section:hover {
  filter: brightness(0.95);
}

.service-section-container {
  max-width: 1440px;
  margin: 0 auto;
}
.service-section-link {
  display: block;
}
.service-section-content {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.service-section-text-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.crafcolor-logo {
  width: 80%;
}
@media (min-width: 640px) {
  .crafcolor-logo  {
    width: auto;
  }
}
.service-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-dark);
}
.service-section-description {
  color: var(--color-text-dark);
  font-size: 1rem;
  letter-spacing: 0.025em;
  line-height: 1.75;
}
.service-section-arrow-icon {
  background-color: black;
  color: white;
  border-radius: 9999px;
  padding: 1rem;
  display: inline-block;
}
.service-section-arrow-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}
.service-section-image-wrapper {
  flex-shrink: 0;
  width: 100%;
  max-width: 12rem; /* 192px */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tcg-image-wrapper {
  width: 12rem;
}
.service-section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .service-section-content {
    flex-direction: row;
    padding: 6rem 4rem;
  }
  .service-section-image-wrapper {
    width: 12rem;
  }
  .service-section-title { font-size: 2.25rem; }
  .service-section-description { font-size: 1.125rem; }
}


/* Footer */
.site-footer {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
}
.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.footer-content {
  text-align: right;
  color: var(--color-text-dark);
}
.footer-links {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.footer-link:hover {
  text-decoration: underline;
}
.footer-link-separator {
  margin: 0 0.5rem;
  color: #6b7280;
}
.copyright {
  font-size: 1rem;
}

@media (min-width: 640px) {
    .footer-container {
        padding: 2rem 1.5rem;
    }
}
@media (min-width: 1024px) {
    .footer-container {
        padding: 2rem;
    }
}
