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

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

html, body {
  height: 100%;
}

body {
  font-family: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
  color: var(--yy-text);
  background: var(--yy-bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1rem;
  color: var(--yy-text);
}

a {
  color: var(--yy-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.content-wrapper {
  width: 100%;
}

/* === HEADER === */
header {
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

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

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

nav a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.cta-btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--yy-primary);
  color: #fff;
  border-radius: 0;
  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(--yy-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.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: #fff;
  border-radius: 0;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  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: #fff;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--yy-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--yy-primary) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

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

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

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

/* === 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: var(--yy-bg-alt);
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

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

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

.feature-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

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

/* === SERVICE CARDS === */
.service-card {
  background: var(--yy-bg-alt);
  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 2px 8px rgba(0, 0, 0, 0.06);
}

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

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

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

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

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

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  background: var(--yy-bg-alt);
  border-radius: 0;
  padding: 2.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--yy-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

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

.star-rating {
  color: var(--yy-accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--yy-text);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  color: var(--yy-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: var(--yy-bg-alt);
  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.1rem;
}

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

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

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

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

.faq-accordion p {
  padding: 1.5rem;
  background: #fff;
  margin: 0;
  display: none;
  color: var(--yy-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(--yy-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: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yy-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

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

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

.input-error {
  border-color: #d32f2f !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: #2d2d2d;
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  z-index: 500;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

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

.cookie-banner p {
  margin: 0;
  color: #fff;
  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(--yy-primary);
  color: #fff;
}

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

.cookie-banner .settings {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cookie-banner .settings:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* === 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(--yy-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);
}

.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.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(--yy-primary);
  color: #fff;
}

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

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

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

/* === SCROLL TOP BUTTON === */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--yy-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 12px rgba(0, 0, 0, 0.2);
}

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

.scroll-top-btn:hover {
  background: var(--yy-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: 4rem 0;
}

section:nth-child(even) {
  background: var(--yy-bg-alt);
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.text-section h3 {
  margin: 2rem 0 1rem;
}

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

/* === FOOTER === */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--yy-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: 1rem;
  letter-spacing: 0.5px;
}

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

footer a:hover {
  color: #fff;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  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.6rem;
  }

  .hero {
    padding: 3rem 0;
  }

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

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

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

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

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

  nav {
    display: none;
  }

  .cta-btn {
    display: none;
  }

  .hero {
    padding: 2.5rem 0;
  }

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

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

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

  section {
    padding: 2.5rem 0;
  }

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

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

  .logo {
    font-size: 1rem;
  }

  .logo img {
    height: 32px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero {
    padding: 2rem 0;
  }

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

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

  .container {
    padding: 0 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .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.4rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero {
    padding: 1.5rem 0;
  }

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

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

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

  section {
    padding: 1.5rem 0;
  }

  footer {
    padding: 2rem 0 0.75rem;
  }

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

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

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

  h1 {
    font-size: 1.25rem;
  }

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