
/* === CSS RESET & VARIABLES === */
:root {
  --cf-primary: #0284c7;
  --cf-primary-dark: #0369a1;
  --cf-bg: #ffffff;
  --cf-bg-alt: #f0f9ff;
  --cf-text: #0c4a6e;
  --cf-text-light: #7dd3fc;
  --cf-border: #bae6fd;
  --cf-accent: #38bdf8;
  --cf-round: 16px;
  --cf-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(--cf-text);
  background: var(--cf-bg);
  line-height: 1.7;
  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.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

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

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

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

.yfa-wrapper-66 {
  width: 100%;
}

/* === HEADER === */
header {
  background: var(--cf-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.yfa-logo-93 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cf-text);
  font-weight: 800;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.yfa-logo-93:hover {
  color: var(--cf-primary);
}

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

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

nav a {
  color: var(--cf-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.yfa-btn-primary-61 {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--cf-primary);
  color: #fff;
  border-radius: var(--cf-round);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.yfa-btn-primary-61:hover {
  background: var(--cf-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.yfa-nav-item-79 {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.yfa-nav-item-79 span {
  width: 25px;
  height: 3px;
  background: var(--cf-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.yfa-nav-list-21 {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--cf-bg);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  transition: right 0.3s ease;
  flex-direction: column;
  gap: 1rem;
}

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

.yfa-nav-list-21 a {
  color: var(--cf-text);
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cf-border);
}

/* === HERO SECTION === */
.yfa-hero-63 {
  background: linear-gradient(135deg, var(--cf-primary) 0%, var(--cf-primary-dark) 100%);
  color: #fff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.yfa-hero-63::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="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  z-index: 0;
}

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

.yfa-hero-text-16 {
  max-width: 600px;
}

.yfa-hero-63 h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

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

.yfa-grid-38 .yfa-card-56 {
  text-align: center;
  padding: 2rem;
  border-radius: var(--cf-round);
  background: var(--cf-bg-alt);
  transition: all 0.3s ease;
}

.yfa-grid-38 .yfa-card-56:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.yfa-grid-38 img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

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

.yfa-grid-38 p {
  color: var(--cf-text-light);
  font-size: 0.95rem;
}

/* === SERVICE CARDS === */
.yfa-card-link-51 {
  background: var(--cf-bg-alt);
  border-radius: var(--cf-round);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.yfa-card-link-51:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.yfa-card-link-51:hover::before {
  transform: scaleX(1);
}

.yfa-card-link-51 h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.yfa-card-link-51 p {
  color: var(--cf-text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.yfa-category-81 {
  display: inline-block;
  background: var(--cf-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--cf-round);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* === TESTIMONIAL CARDS === */
.yfa-article-16 {
  background: var(--cf-bg-alt);
  border-radius: var(--cf-round);
  padding: 2rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--cf-primary);
  transition: all 0.3s ease;
}

.yfa-article-16:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.yfa-tag-58 {
  color: #ffc107;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.yfa-article-16 p {
  color: var(--cf-text);
  margin-bottom: 1rem;
  font-style: italic;
}

.yfa-article-meta-29 {
  color: var(--cf-text-light);
  font-size: 0.9rem;
  font-weight: 600;
}

/* === FAQ ACCORDION === */
.yfa-blog-list-82 {
  margin: 2rem 0;
}

.yfa-blog-list-82 h3 {
  cursor: pointer;
  padding: 1.5rem;
  background: var(--cf-bg-alt);
  border-radius: var(--cf-round);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  user-select: none;
}

.yfa-blog-list-82 h3:hover {
  background: var(--cf-border);
}

.yfa-blog-list-82 h3::after {
  content: '▼';
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.yfa-blog-list-82 h3.active::after {
  transform: rotate(-180deg);
}

.yfa-blog-list-82 p {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0 0 var(--cf-round) var(--cf-round);
  margin-bottom: 1rem;
  display: none;
  color: var(--cf-text-light);
}

.yfa-blog-list-82 p.active {
  display: block;
}

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

.yfa-form-61 .yfa-form-group-97 {
  margin-bottom: 1.5rem;
}

.yfa-form-61 label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--cf-text);
}

.yfa-form-61 input,
.yfa-form-61 textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--cf-border);
  border-radius: var(--cf-round);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.yfa-form-61 input:focus,
.yfa-form-61 textarea:focus {
  outline: none;
  border-color: var(--cf-primary);
  box-shadow: 0 0 0 3px rgba(var(--cf-primary), 0.1);
}

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

.yfa-form-label-21 {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.yfa-form-input-19 {
  border-color: #d32f2f !important;
}

.yfa-form-btn-64 {
  background: #4caf50;
  color: #fff;
  padding: 1rem;
  border-radius: var(--cf-round);
  margin-bottom: 1rem;
  display: none;
}

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

/* === COOKIE BANNER === */
.yfa-cookie-banner-73 {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--cf-bg-alt);
  padding: 1.5rem 2rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  z-index: 500;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

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

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

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

.yfa-cookie-banner-73 button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--cf-round);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

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

.yfa-cookie-banner-73 .settings:hover {
  background: var(--cf-border);
}

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

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

.yfa-cookie-text-33 {
  background: var(--cf-bg);
  border-radius: var(--cf-round);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.yfa-cookie-text-33 h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.yfa-cookie-text-33 .toggle-group {
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cf-border);
}

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

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

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

.yfa-cookie-text-33 button {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--cf-round);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.yfa-cookie-text-33 .accept {
  background: var(--cf-primary);
  color: #fff;
}

.yfa-cookie-text-33 .accept:hover {
  background: var(--cf-primary-dark);
}

.yfa-cookie-text-33 .cancel {
  background: transparent;
  border: 1px solid var(--cf-border);
  color: var(--cf-text);
}

.yfa-cookie-text-33 .cancel:hover {
  background: var(--cf-border);
}

/* === SCROLL TOP BUTTON === */
.yfa-btn-secondary-69 {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--cf-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  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.15);
}

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

.yfa-btn-secondary-69:hover {
  background: var(--cf-primary-dark);
  transform: translateY(-3px);
}

/* === FADE-IN ANIMATION === */
.yfa-card-56 {
  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(--cf-bg-alt);
}

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

/* === TEXT SECTIONS === */
.yfa-article-body-86 {
  padding: 2rem 0;
  line-height: 1.8;
}

.yfa-article-body-86 h3 {
  margin: 2rem 0 1rem;
}

.yfa-article-body-86 p {
  margin-bottom: 1.25rem;
}

/* === FOOTER === */
footer {
  background: var(--cf-text);
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

footer h4 {
  color: #fff;
  margin-bottom: 1rem;
}

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

footer a:hover {
  color: #fff;
}

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

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .yfa-hero-63 {
    padding: 3rem 0;
  }

  .yfa-hero-63 h1 {
    font-size: 2.2rem;
  }

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

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

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

  .yfa-nav-item-79 {
    display: flex;
  }

  nav {
    display: none;
  }

  .yfa-btn-primary-61 {
    display: none;
  }

  .yfa-hero-63 {
    padding: 2.5rem 0;
  }

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

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

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

  section {
    padding: 2.5rem 0;
  }

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

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

  .yfa-logo-93 {
    font-size: 1rem;
  }

  .yfa-logo-93 img {
    height: 32px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .yfa-hero-63 {
    padding: 2rem 0;
  }

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

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

  .yfa-container-46 {
    padding: 0 1rem;
  }

  .yfa-card-link-51 {
    padding: 1.5rem;
  }

  .yfa-article-16 {
    padding: 1.5rem;
  }

  .yfa-form-61 button {
    width: 100%;
  }

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

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

  .yfa-cookie-banner-73 button {
    flex: 1;
  }

  .yfa-btn-secondary-69 {
    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;
  }

  .yfa-hero-63 {
    padding: 1.5rem 0;
  }

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

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

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

  section {
    padding: 1.5rem 0;
  }

  footer {
    padding: 2rem 0 0.75rem;
  }

  .yfa-blog-list-82 h3 {
    padding: 1rem;
    font-size: 1rem;
  }

  .yfa-blog-list-82 p {
    padding: 1rem;
  }
}

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

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1rem;
  }

  body {
    font-size: 15px;
  }

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

  nav {
    gap: 1rem;
  }

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

  footer .yfa-container-46 {
    gap: 1rem;
  }
}

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

  body {
    background: #fff;
  }

  a {
    color: #000;
  }

  .yfa-btn-primary-61 {
    border: 1px solid #000;
    color: #000;
  }

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