
/* === CSS RESET & VARIABLES === */
:root {
  --jp-primary: #0284c7;
  --jp-primary-dark: #0369a1;
  --jp-bg: #ffffff;
  --jp-bg-alt: #f0f9ff;
  --jp-text: #0c4a6e;
  --jp-text-light: #7dd3fc;
  --jp-border: #bae6fd;
  --jp-accent: #38bdf8;
  --jp-round: 8px;
  --jp-shadow: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Georgia, 'Garamond', serif;
  color: var(--jp-text);
  background: var(--jp-bg);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'Yu Gothic', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--jp-text);
}

h1 {
  font-size: 2.8rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--jp-text);
}

a {
  color: var(--jp-primary);
  text-decoration: underline;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--jp-primary-dark);
}

/* === CONTAINERS === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-wrapper {
  width: 100%;
}

/* === HEADER === */
header {
  background: #f5f1e8;
  border-bottom: 2px solid var(--jp-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--jp-text);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--jp-primary);
}

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

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav a {
  color: var(--jp-text);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

nav a:hover::after {
  width: 100%;
}

.cta-btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--jp-primary);
  color: #fff;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cta-btn:hover {
  background: var(--jp-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--jp-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #f5f1e8;
  z-index: 999;
  padding: 5rem 2rem 2rem;
  transition: right 0.3s ease;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.active {
  right: 0;
  display: flex;
}

.mobile-menu a {
  color: var(--jp-text);
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, #d4a574 0%, #c68c5d 100%);
  color: #fff;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--jp-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="vintage" width="80" height="80" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="80" height="80" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/><circle cx="40" cy="40" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1200" height="600" fill="url(%23vintage)"/></svg>');
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-family: Georgia, serif;
  letter-spacing: -2px;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.98;
  font-style: italic;
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem 0;
}

.feature-grid .fade-in {
  text-align: center;
  padding: 2.5rem;
  border-radius: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-grid .fade-in:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--jp-primary);
}

.feature-grid img {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}

.feature-grid h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: Georgia, serif;
}

.feature-grid p {
  color: var(--jp-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === SERVICE CARDS === */
.service-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--jp-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--jp-primary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.service-card p {
  color: var(--jp-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.price-badge {
  display: inline-block;
  background: #f5f1e8;
  color: var(--jp-text);
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--jp-border);
  letter-spacing: 0.5px;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  background: #f5f1e8;
  border-radius: 0;
  padding: 2.5rem;
  margin: 1.5rem 0;
  border-left: 5px solid var(--jp-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 1rem;
  font-size: 4rem;
  color: var(--jp-primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.star-rating {
  color: #d4a574;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

.testimonial-card p {
  color: var(--jp-text);
  margin-bottom: 1.25rem;
  font-style: italic;
  font-family: Georgia, serif;
}

.testimonial-author {
  color: var(--jp-text-light);
  font-size: 0.9rem;
  font-weight: 600;
}

/* === FAQ ACCORDION === */
.faq-accordion {
  margin: 1.5rem 0;
  border: 1px solid #ddd;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.faq-accordion h3 {
  cursor: pointer;
  padding: 1.5rem;
  background: #f5f1e8;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  user-select: none;
  border-bottom: 1px solid #ddd;
  font-size: 1.15rem;
}

.faq-accordion h3:hover {
  background: #ebe5d9;
}

.faq-accordion h3::after {
  content: '▼';
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.faq-accordion h3.active {
  background: var(--jp-primary);
  color: #fff;
  border-bottom-color: var(--jp-primary);
}

.faq-accordion h3.active::after {
  transform: rotate(-180deg);
}

.faq-accordion p {
  padding: 1.5rem;
  background: #fff;
  margin: 0;
  display: none;
  color: var(--jp-text-light);
  border-top: 1px solid #ddd;
}

.faq-accordion p.active {
  display: block;
}

/* === CONTACT FORM === */
.contact-form {
  margin: 2rem 0;
}

.contact-form .fg {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--jp-text);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 0;
  font-family: Georgia, serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--jp-primary);
  box-shadow: inset 0 0 0 2px rgba(212, 165, 116, 0.1);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.field-error {
  color: #c41e3a;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.input-error {
  border-color: #c41e3a !important;
}

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 0;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
  display: none;
}

.form-success.active {
  display: block;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f5f1e8;
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--jp-primary);
  z-index: 500;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.cookie-banner.active {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--jp-text);
  font-size: 0.9rem;
}

.cookie-banner .btn-group {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-banner button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cookie-banner .accept {
  background: var(--jp-primary);
  color: #fff;
}

.cookie-banner .accept:hover {
  background: var(--jp-primary-dark);
}

.cookie-banner .settings {
  background: transparent;
  border: 1px solid var(--jp-border);
  color: var(--jp-text);
}

.cookie-banner .settings:hover {
  background: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-modal-overlay.active {
  display: flex;
}

.cookie-modal {
  background: var(--jp-bg);
  border-radius: 0;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--jp-primary);
}

.cookie-modal h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-family: Georgia, serif;
}

.cookie-modal .toggle-group {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.cookie-modal .toggle-group label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.cookie-modal input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-modal .modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.cookie-modal button {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cookie-modal .accept {
  background: var(--jp-primary);
  color: #fff;
}

.cookie-modal .accept:hover {
  background: var(--jp-primary-dark);
}

.cookie-modal .cancel {
  background: transparent;
  border: 1px solid #ddd;
  color: var(--jp-text);
}

.cookie-modal .cancel:hover {
  background: #f5f1e8;
}

/* === SCROLL TOP BUTTON === */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--jp-primary);
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--jp-primary-dark);
  transform: translateY(-3px);
}

/* === FADE-IN ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* === SECTIONS === */
section {
  padding: 4.5rem 0;
}

section:nth-child(even) {
  background: #f5f1e8;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-family: Georgia, serif;
}

/* === TEXT SECTIONS === */
.text-section {
  padding: 2rem 0;
  line-height: 1.9;
}

.text-section h3 {
  margin: 2.5rem 0 1rem;
  font-family: Georgia, serif;
}

.text-section p {
  margin-bottom: 1.5rem;
}

/* === FOOTER === */
footer {
  background: #3c3c3c;
  color: #fff;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 3px solid var(--jp-primary);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

footer h4 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

footer a {
  color: rgba(255, 255, 255, 0.75);
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

footer p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  footer .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  header {
    padding: 1rem 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    display: none;
  }

  .cta-btn {
    display: none;
  }

  .hero {
    padding: 2.75rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  footer .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo img {
    height: 32px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 2.25rem 0;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .container {
    padding: 0 1rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .testimonial-card {
    padding: 1.75rem;
  }

  .contact-form button {
    width: 100%;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cookie-banner .btn-group {
    width: 100%;
  }

  .cookie-banner button {
    flex: 1;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.05rem;
  }

  .hero {
    padding: 1.75rem 0;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .feature-grid img {
    width: 50px;
    height: 50px;
  }

  section {
    padding: 2rem 0;
  }

  footer {
    padding: 2rem 0 1rem;
  }

  .faq-accordion h3 {
    padding: 1.25rem;
    font-size: 1rem;
  }

  .faq-accordion p {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1rem;
  }

  body {
    font-size: 15px;
  }

  .hero-content {
    max-width: 100%;
  }

  nav {
    gap: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  footer .container {
    gap: 1rem;
  }
}

/* === PRINT STYLES === */
@media print {
  header, footer, .cookie-banner, .scroll-top-btn {
    display: none !important;
  }

  body {
    background: #fff;
  }

  a {
    color: #000;
  }

  .cta-btn {
    border: 1px solid #000;
    color: #000;
  }

  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}
