/*=============== VARIABLES ===============*/
:root {
  --header-height: 4.5rem;
  
  /* Colors */
  --primary-color: #2d2d2d;
  --primary-dark: #1a1a1a;
  --primary-light: #4a4a4a;
  --accent-color: #666666;
  --text-color: #1f2937;
  --text-color-light: #6b7280;
  --white-color: #ffffff;
  --body-color: #f9fafb;
  --container-color: #ffffff;
  --border-color: #e5e7eb;
  --shadow-color: rgba(0, 0, 0, 0.08);
  
  /* Typography */
  --body-font: 'Noto Sans JP', 'Inter', sans-serif;
  --h1-font-size: 3rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font Weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --mb-0-5: 0.5rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* Responsive Typography */
@media screen and (max-width: 992px) {
  :root {
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--text-color);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-bg {
  background-color: var(--white-color);
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--mb-0-5);
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-1);
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: var(--font-semi-bold);
  transition: var(--transition);
  cursor: pointer;
}

.button-primary {
  background: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 8px 24px rgba(45, 45, 45, 0.2);
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45, 45, 45, 0.3);
}

.button-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.button-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.button-full {
  width: 100%;
  justify-content: center;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px var(--shadow-color);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 35px;
  width: auto;
  object-fit: contain;
  /* 透過PNGなのでフィルター不要 */
}

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

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  position: relative;
  transition: var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/*=============== HERO SECTION ===============*/
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 3rem;
}

.hero__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
  line-height: 1.2;
}

.hero__description {
  font-size: 1.25rem;
  color: var(--text-color-light);
  margin-bottom: var(--mb-2);
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__shape {
  width: 400px;
  height: 400px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(80px);
  animation: float 6s ease-in-out infinite;
}

.hero__decoration {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-color);
  opacity: 0.2;
}

.hero__decoration-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 20%;
  animation: float 4s ease-in-out infinite;
}

.hero__decoration-2 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 10%;
  animation: float 5s ease-in-out infinite;
  animation-delay: 1s;
}

.hero__decoration-3 {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 10%;
  animation: float 4.5s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.hero__scroll-button:hover {
  color: var(--primary-color);
  transform: translateY(5px);
}

.hero__scroll-button i {
  font-size: 1.5rem;
  animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/*=============== ABOUT SECTION ===============*/
.about__content {
  max-width: 900px;
  margin: 0 auto;
}

.about__text {
  margin-bottom: var(--mb-3);
}

.about__description {
  font-size: 1.1rem;
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.8;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: var(--mb-3);
}

.feature-card {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--shadow-color);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.feature-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--mb-1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--white-color);
}

.feature-card__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.feature-card__description {
  color: var(--text-color-light);
}

/*=============== SERVICE SECTION ===============*/
.service__container {
  display: grid;
  gap: 2rem;
}

.service-card {
  background: var(--container-color);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

.service-card--main {
  background: var(--container-color);
  color: var(--text-color);
  padding: 3rem;
}

.service-card--main .service-card__title {
  color: var(--text-color);
}

.service-card--main .service-card__description {
  color: var(--text-color-light);
}

.service-card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--mb-1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  border-radius: 20px;
  font-size: 2rem;
  color: var(--white-color);
}

.service-card__icon--large {
  width: 100px;
  height: 100px;
  font-size: 2.5rem;
  background: var(--body-color);
  border-radius: 20px;
}

.service-icon-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.service-card__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.service-card__description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.8;
}

.service-card__features {
  list-style: none;
}

.service-card__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-color);
}

.service-card__features i {
  color: var(--primary-color);
}

.service-additional {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/*=============== COMPANY SECTION ===============*/
.company__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.company__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: var(--transition);
}

.info-item:hover {
  box-shadow: 0 4px 20px var(--shadow-color);
}

.info-item__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-1);
  font-size: 1.1rem;
}

.info-item__label i {
  font-size: 1.5rem;
}

.info-item__value {
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.8;
}

.info-item__sub {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.business-list {
  list-style: none;
}

.business-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.business-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: var(--font-bold);
}

.company__map {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.map-container {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
}

/*=============== CONTACT SECTION ===============*/
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Google Forms用のコンテナ */
.contact__container--form {
  max-width: 1200px;
}

.contact__info-title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.contact__info-description {
  color: var(--text-color-light);
  margin-bottom: var(--mb-2);
  line-height: 1.8;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__detail {
  display: flex;
  gap: 1rem;
}

.contact__detail-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 12px;
  color: var(--white-color);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact__detail-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: var(--font-semi-bold);
}

.contact__detail-info p {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  line-height: 1.6;
}

/* Google Forms iframe用 */
.contact__form-wrapper--iframe {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.contact__form-wrapper--iframe iframe {
  width: 100%;
  min-height: 800px;
  border: none;
  border-radius: 10px;
  background: var(--container-color);
}

/* 従来のフォーム用（使用しない場合は削除可） */
.contact__form-wrapper {
  background: var(--container-color);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.form-group {
  margin-bottom: var(--mb-1-5);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.required {
  color: #ef4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--body-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  background: var(--white-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Message Styles */
.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Loading State */
.button-loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.button-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/*=============== FOOTER ===============*/
.footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: var(--white-color);
  padding: 3rem 0 1.5rem;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: var(--mb-2);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--mb-1);
}

.footer__logo .logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  /* フッターは暗い背景なので白く反転 */
  filter: brightness(0) invert(1);
}

.footer__description {
  color: #9ca3af;
  margin-top: var(--mb-0-5);
}

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

.footer__title {
  font-size: 1.1rem;
  margin-bottom: var(--mb-1);
  color: var(--white-color);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: #9ca3af;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--white-color);
  padding-left: 0.5rem;
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copy {
  color: #9ca3af;
  font-size: var(--small-font-size);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 2rem;
  bottom: -30%;
  background: var(--primary-color);
  color: var(--white-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(45, 45, 45, 0.25);
  z-index: var(--z-tooltip);
  transition: var(--transition);
}

.scrollup:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(45, 45, 45, 0.35);
}

.show-scroll {
  bottom: 2rem;
}

/*=============== RESPONSIVE ===============*/
/* Large devices */
@media screen and (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__image {
    order: -1;
  }
  
  .hero__buttons {
    justify-content: center;
  }
  
  .company__container {
    grid-template-columns: 1fr;
  }
  
  .company__map {
    position: relative;
    top: 0;
  }
  
  .contact__container,
  .contact__container--form {
    grid-template-columns: 1fr;
  }
  
  .footer__container {
    grid-template-columns: 1fr;
  }
}

/* Medium devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white-color);
    box-shadow: -2px 0 16px var(--shadow-color);
    padding: 6rem 3rem;
    transition: var(--transition);
  }
  
  .nav__menu.show-menu {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav__toggle,
  .nav__close {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero {
    min-height: auto;
  }
  
  .hero__shape {
    width: 300px;
    height: 300px;
  }
  
  .about__features {
    grid-template-columns: 1fr;
  }
  
  .service-additional {
    grid-template-columns: 1fr;
  }
  
  .scrollup {
    right: 1rem;
  }
  
  .show-scroll {
    bottom: 1rem;
  }
}

/* Small devices */
@media screen and (max-width: 576px) {
  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__buttons .button {
    width: 100%;
    justify-content: center;
  }
  
  .contact__form-wrapper {
    padding: 1.5rem;
  }
  
  .footer__links {
    grid-template-columns: 1fr;
  }
}