/* ==========================================
   アメニティ・ライフ株式会社 スタイルシート
   ========================================== */

:root {
  --primary-color: #46738c;
  --primary-dark: #31566d;
  --secondary-color: #7fa4b8;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 
               'Yu Gothic', YuGothic, Meiryo, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-white);
}

/* ==========================================
   ヘッダー
   ========================================== */

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

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

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

/* ナビゲーション */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a.active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* モバイルメニュー */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================
   メインコンテンツ
   ========================================== */

main {
  min-height: calc(100vh - 200px);
}

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

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, #31566d 0%, #46738c 55%, #638fa5 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  opacity: 0.9;
}

/* セクション */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: var(--bg-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

.notice-banner-section {
  padding: 1.5rem 0;
  background: #f4f7f8;
}

.notice-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text-color);
  text-decoration: none;
  background: #edf5f6;
  border: 1px solid #c8dce1;
  border-left: 4px solid var(--primary-color);
  border-radius: 0.375rem;
  box-shadow: var(--shadow);
}

.notice-banner:hover .notice-banner-title {
  color: var(--primary-color);
}

.notice-banner-label {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-size: 0.875rem;
  font-weight: 700;
}

.notice-banner-title {
  flex: 1;
  font-weight: 600;
  transition: color 0.2s ease;
}

.notice-banner time {
  flex: 0 0 auto;
  color: var(--text-light);
  font-size: 0.875rem;
}

.notice-article {
  max-width: 840px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.notice-article > h2 {
  margin-bottom: 2rem;
  color: var(--primary-dark);
  font-size: 1.75rem;
  line-height: 1.5;
}

.notice-date {
  margin-bottom: 2rem;
  text-align: right;
  color: var(--text-light);
  line-height: 1.8;
}

.notice-body p,
.notice-record p {
  margin-bottom: 1.5rem;
  line-height: 2;
  white-space: normal;
}

.notice-record-title {
  margin: 2rem 0 1.5rem;
  color: var(--primary-dark);
  text-align: center;
}

.notice-record {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.notice-closing {
  margin-top: 2rem;
  text-align: right;
}

/* カード */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card ul {
  list-style: none;
}

.card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.card li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* 理念セクション */
.philosophy {
  background: linear-gradient(to right, #eff6ff, #dbeafe);
  padding: 3rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.philosophy h3 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.philosophy-items {
  display: grid;
  gap: 1.5rem;
}

.philosophy-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.375rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
}

/* 認定バッジ */
.certification {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 2px solid var(--primary-color);
  margin: 2rem 0;
}

.certification h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.certification-number {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* 導入スケジュール画像 */
.schedule-image-frame {
  max-width: 1040px;
  margin: 2.5rem auto 0;
  padding: 1rem;
  overflow-x: auto;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.schedule-image-frame img {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.contact-guide {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.contact-guide > p {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-guide-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.contact-guide-item h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.contact-guide-item ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem;
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
}

.contact-number {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.required {
  color: #dc2626;
  margin-left: 0.25rem;
}

.btn {
  background: var(--primary-color);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--primary-color);
}

.btn-secondary {
  background: var(--text-light);
}

/* 会社情報テーブル */
.info-table {
  width: 100%;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.info-table th {
  background-color: var(--bg-light);
  font-weight: 600;
  color: var(--primary-dark);
  width: 200px;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.service-table th,
.service-table td {
  vertical-align: top;
}

.service-table thead th {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.service-table tbody th {
  width: 170px;
  color: var(--primary-dark);
}

.service-table tbody td {
  line-height: 1.8;
}

.company-map {
  margin: 2.5rem auto 0;
  max-width: 800px;
}

.company-map h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.company-map iframe {
  display: block;
  width: 100%;
  min-height: 450px;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

/* ==========================================
   フッター
   ========================================== */

footer {
  background-color: var(--text-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

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

/* ==========================================
   レスポンシブデザイン
   ========================================== */

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

  nav {
    display: none;
  }

  nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }

  nav.mobile-open ul {
    flex-direction: column;
    gap: 0;
  }

  nav.mobile-open li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav.mobile-open a {
    display: block;
    padding: 1rem;
  }

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

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

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

  .section-title {
    font-size: 1.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .info-table th {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
  }

  .info-table td {
    margin-bottom: 1rem;
  }

  .service-table thead {
    display: none;
  }

  .service-table tbody th {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--bg-white);
  }

  .contact-guide {
    padding: 1.5rem 1rem;
  }

  .contact-guide-item ul {
    grid-template-columns: 1fr;
  }

  .company-map iframe {
    min-height: 360px;
  }

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

  .notice-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .notice-banner-title {
    flex-basis: calc(100% - 5.5rem);
  }

  .notice-banner time {
    margin-left: 5.5rem;
  }

  .notice-article {
    padding: 1.5rem 1rem;
  }

  .notice-article > h2 {
    font-size: 1.4rem;
  }

  .schedule-image-frame {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.25rem;
  }

  .logo p {
    font-size: 0.75rem;
  }

  .hero {
    padding: 3rem 0;
  }

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

/* ==========================================
   ユーティリティクラス
   ========================================== */

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
