/* ハンバーガー初期状態（PCでは非表示） */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-color);
  margin: 3px 0;
  border-radius: 2px;
}

/* ヘッダーのレイアウト都合 */
.site-header .container { position: relative; z-index: 5; }

/* スクロールロック（任意） */
body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
  /* ハンバーガーを表示 */
  .menu-toggle { display: flex; }

  /* ナビをドロップダウンに変更（初期は非表示） */
  .site-nav {
    position: absolute;
    top: 64px;       /* ヘッダー高さに合わせて調整 */
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 6px 16px var(--card-shadow);
    display: none;
  }
  .site-nav.open { display: block; }

  /* 縦並びメニュー */
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem;
  }
  .site-nav li a {
    display: block;
    padding: 0.75rem 0.25rem;
  }
}


/* Global styles */
:root {
  /* Theme colors: yellow palette */
  --primary-color: #f4b400; /* warm yellow for highlights and buttons */
  --secondary-color: #cfa000; /* darker shade for hover and accents */
  --background-color: #fffef7; /* very light yellow for page background */
  --text-color: #333; /* dark text for readability */
  --accent-color: #e2a700; /* accent colour derived from primary */
  --card-background: #ffffff; /* cards remain white for contrast */
  --card-shadow: rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
}

/* Container utility */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Header styles */
.site-header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Logo image styling */
.logo-image {
  /* ロゴを2倍の大きさに調整 */
  width: 80px;
  height: auto;
  display: block;
}

.logo-text {
  display: inline-block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--primary-color);
}

/* Hero section */
.hero-section {
  position: relative;
  height: 65vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 70px; /* offset for fixed header */
}

.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  z-index: -1;
}

.hero-section .hero-content {
  max-width: 800px;
  padding: 0 1rem;
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Overview section */
.overview-section {
  padding: 4rem 0 3rem;
  background-color: #fff;
}

.overview-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.overview-section p {
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-list li {
  position: relative;
  padding-left: 1.2rem;
}

.features-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1;
}

/* Services section */
.services-section {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.service-card {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--card-shadow);
  overflow: hidden;
  max-width: 320px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.service-card p {
  margin: 0 1rem 1rem;
  flex-grow: 1;
}

.service-card .card-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #fff;
  background-color: var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.service-card .card-link:hover {
  background-color: var(--secondary-color);
}

/* About section */
.about-section {
  padding: 4rem 0;
  background-color: #fff;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-section p {
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

.news-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.news-item {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--card-shadow);
  padding: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.news-item h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.news-item time {
  font-size: 0.9rem;
  color: #666;
  display: block;
  margin-bottom: 0.5rem;
}

.news-item p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Contact section */
.contact-section {
  padding: 4rem 0;
  background-color: #fff;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-section p {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.btn {
  width: fit-content;
  align-self: center;
  padding: 0.7rem 2rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* Footer */
.site-footer {
  background-color: #f2f2f2;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px var(--card-shadow);
  transition: background-color 0.2s;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
}

/* Page header (subpages) */
.page-header {
  padding: 4rem 0 2rem;
  background-color: var(--background-color);
  text-align: center;
}

.page-header h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.page-header p {
  margin: 0 auto;
  max-width: 600px;
  font-size: 1rem;
  color: #555;
}

/* Page content wrapper */
.page-content {
  padding: 2rem 0 4rem;
}

/* Price table */
.price-table-wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: var(--card-background);
  box-shadow: 0 2px 6px var(--card-shadow);
}

.price-table th,
.price-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.price-table thead th {
  background-color: var(--primary-color);
  color: #fff;
}

.price-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.price-table tbody tr:hover {
  background-color: #f2f2f2;
}

.price-table .note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* Section headings inside page content */
main h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

main h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

/* CTA section on subpages */
.cta-section {
  margin-top: 2rem;
  text-align: center;
  font-weight: 600;
}

.cta-section a {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cta-section a:hover {
  border-color: var(--secondary-color);
}

/* Workflow section styles */
.workflow-section {
  margin-top: 2rem;
}

.workflow-step {
  margin-bottom: 2rem;
}

.workflow-step .step-image {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--card-shadow);
}

/* Responsive styles */
@media (max-width: 768px) {
  .service-card {
    max-width: 100%;
  }
  .site-nav ul {
    gap: 1rem;
  }
  .hero-section h1 {
    font-size: 1.6rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
}

/* Additional LP section styling */
.lp-section {
  padding: 4rem 0;
  background-color: #fff;
}

/* Alternate background colors for LP sections to create visual separation */
#price-section {
  background-color: var(--background-color);
}
#data-section {
  background-color: #fff;
}
#print-section {
  background-color: var(--background-color);
}

/* Price rules list styling */
.price-rules-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.price-rules-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}
.price-rules-list svg {
  flex-shrink: 0;
}

/* Template download buttons */
.template-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Price examples images layout */
.price-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}
.price-example {
  flex: 1 1 300px;
  max-width: 100%;
}
.price-example img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--card-shadow);
}

/* Price main image */
.price-main-image {
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--card-shadow);
  display: block;
}
