/* ==========================================================================
   株式会社エンドワン - スタイルシート
   ========================================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
}

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

ul {
  list-style: none;
}

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

/* --- Variables --- */
:root {
  --color-primary: #F5A623;
  --color-primary-dark: #E0900A;
  --color-dark: #222;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg-light: #f9f9f9;
  --color-white: #fff;
  --header-height: 80px;
  --section-padding: 80px 0;
  --max-width: 1100px;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.section-title .en {
  display: block;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-logo img {
  height: 50px;
}

/* --- Navigation --- */
.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

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

.nav-list a:hover::after {
  width: 100%;
}

/* --- Hamburger (mobile) --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-primary) 0%, #f7b84e 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 520px;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

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

.hero-logo {
  width: 260px;
  margin: 0 auto 30px;
  filter: brightness(0) invert(1);
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================================================
   News (新着情報)
   ========================================================================== */
.news {
  padding: var(--section-padding);
}

.news-list {
  max-width: 780px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.news-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  white-space: nowrap;
  min-width: 100px;
}

.news-tag {
  font-size: 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.news-text {
  font-size: 0.95rem;
}

.news-text a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Service (サービス)
   ========================================================================== */
.service {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   Philosophy (企業理念)
   ========================================================================== */
.philosophy {
  padding: var(--section-padding);
}

.philosophy-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.philosophy-content .catchphrase {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.philosophy-content p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 2;
}

/* ==========================================================================
   Company (企業情報)
   ========================================================================== */
.company {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}

.company-table {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.company-table th {
  width: 140px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
}

.company-table td {
  color: var(--color-text-light);
}

/* ==========================================================================
   Contact (問合せ)
   ========================================================================== */
.contact {
  padding: var(--section-padding);
}

.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner p {
  margin-bottom: 30px;
  color: var(--color-text-light);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.required {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

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

.form-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-submit {
  text-align: center;
}

.btn-contact {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 56px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-family: inherit;
}

.btn-contact:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-contact:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
  margin-bottom: 8px;
}

.footer-logo p {
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  transition: color 0.3s;
}

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

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Mobile nav */
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 260px;
    height: calc(100vh - var(--header-height));
    background: var(--color-white);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
    transition: right 0.3s;
    padding: 20px 0;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li a {
    display: block;
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .nav-list a::after {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 400px;
    padding: 40px 20px;
  }

  .hero-logo {
    width: 180px;
  }

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

  /* Service */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* News */
  .news-item {
    flex-direction: column;
    gap: 6px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}
