/*
Theme Name: 味亜（あじあ）
Theme URI: https://example.com/
Author: 就労継続支援B型事業所 味亜
Author URI: https://example.com/
Description: 就労継続支援B型事業所 味亜のオフィシャルサイトテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asia
*/

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* =====================
   Layout
   ===================== */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 900px;  margin: 0 auto; padding: 0 1.5rem; }

/* =====================
   Header
   ===================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.14); }

header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.logo-area { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-area img { height: 56px; width: auto; }
.logo-text h1 { font-size: 1.125rem; font-weight: 800; color: #1a1a1a; margin: 0; line-height: 1.3; }
.logo-text p  { font-size: 0.75rem; color: #9CA3AF; letter-spacing: 0.05em; }

.main-nav { display: flex; gap: 0.125rem; align-items: center; }
.main-nav a {
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: #EDE9FE;
  color: #7C3AED;
}

.phone-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #7C3AED;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-btn:hover { background: #6D28D9; transform: scale(1.03); color: #fff; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: 2px solid #7C3AED;
  color: #7C3AED;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s;
}
.mobile-menu-btn:hover { background: #EDE9FE; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #F3F4F6;
  background: #FAFAFA;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: block;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s;
}
.mobile-menu a:hover { background: #EDE9FE; color: #7C3AED; }
.mobile-menu .phone-btn { display: flex; margin-top: 0.75rem; justify-content: center; }
body.menu-open { overflow: hidden; }

@media (max-width: 1024px) {
  .main-nav, header .phone-btn { display: none; }
  .mobile-menu-btn { display: block; }
}

/* =====================
   Footer
   ===================== */
footer {
  background: linear-gradient(135deg, #4C1D95 0%, #5B21B6 50%, #6D28D9 100%);
  color: #fff;
  padding: 3.5rem 0 1.5rem;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #DDD6FE;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: #C4B5FD; transition: color 0.2s; font-size: 0.875rem; }
.footer-section a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8125rem;
  color: #A78BFA;
}

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-content { position: relative; z-index: 10; max-width: 600px; padding: 2rem 0; }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: #DDD6FE;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.0625rem;
  color: #fff;
  margin-bottom: 2rem;
  line-height: 1.8;
  background: rgba(109,40,217,0.45);
  backdrop-filter: blur(6px);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #A78BFA;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: #fff;
  color: #7C3AED;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: #EDE9FE;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-violet {
  background: #7C3AED;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}
.btn-violet:hover {
  background: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124,58,237,0.45);
  color: #fff;
}

/* =====================
   Sections
   ===================== */
section { padding: 5rem 1.5rem; }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #6B7280;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Section Backgrounds */
.bg-white          { background: #fff; }
.bg-gray           { background: #F9FAFB; }
.bg-orange         { background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%); }
.bg-amber          { background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%); }
.bg-violet         { background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%); }
.bg-light-violet   { background: #F5F3FF; }
.bg-gradient-orange {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 60%, #5B21B6 100%);
  color: #fff;
}
.bg-gradient-orange .section-title  { color: #fff; }
.bg-gradient-orange .section-subtitle { color: #C4B5FD; }

/* =====================
   Cards
   ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0,0,0,0.04);
}
.card:hover, .card.hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(124,58,237,0.15);
}
.card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.875rem;
  text-align: center;
  color: #1a1a1a;
}
.card p {
  color: #6B7280;
  line-height: 1.8;
  text-align: center;
  font-size: 0.9375rem;
}

/* =====================
   Staff Cards
   ===================== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.staff-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(124,58,237,0.15);
}
.staff-card-image { width: 100%; height: 220px; object-fit: cover; background: linear-gradient(135deg,#EDE9FE,#DDD6FE); }
.staff-card-body { padding: 1.5rem; }
.staff-card-name { font-size: 1.25rem; font-weight: 800; color: #1a1a1a; margin-bottom: 0.25rem; }
.staff-card-position { font-size: 0.875rem; color: #7C3AED; font-weight: 600; margin-bottom: 0.875rem; }
.staff-card-bio { color: #6B7280; font-size: 0.9375rem; line-height: 1.7; }

/* =====================
   Page Hero
   ===================== */
.page-hero {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #DDD6FE;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.page-hero p { font-size: 1.125rem; color: #6B7280; }

/* =====================
   Info Table
   ===================== */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid #E5E7EB; }
.info-table tr:last-child { border-bottom: none; }
.info-table th {
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #374151;
  width: 30%;
  vertical-align: top;
  background: #F5F3FF;
}
.info-table td { padding: 1.25rem 1rem; color: #4B5563; line-height: 1.7; }

/* =====================
   Announce Cards
   ===================== */
.announce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.announce-card {
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.3s;
}
.announce-card:hover { transform: translateY(-4px); }
.announce-card-violet { background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%); }
.announce-card-indigo { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); }
.announce-card-green  { background: linear-gradient(135deg, #059669 0%, #0D9488 100%); }

/* =====================
   CTA Section
   ===================== */
.cta-section { text-align: center; }
.cta-section .section-title { color: #fff; margin-bottom: 1.5rem; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: #7C3AED;
  padding: 1.125rem 2.5rem;
  border-radius: 12px;
  font-size: 1.375rem;
  font-weight: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.25s;
  letter-spacing: 0.03em;
}
.cta-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: #6D28D9;
}
.cta-note { font-size: 0.875rem; color: rgba(255,255,255,0.75); margin-top: 1rem; }

/* =====================
   Map
   ===================== */
.map-wrapper {
  width: 100%;
  min-height: 420px;
  background: #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.map-wrapper iframe { width: 100%; min-height: 420px; border: 0; display: block; }

/* =====================
   Form
   ===================== */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 700; margin-bottom: 0.5rem; color: #374151; font-size: 0.9375rem; }
.form-required {
  display: inline-block;
  background: #7C3AED;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  margin-left: 0.375rem;
  vertical-align: middle;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* =====================
   Badge
   ===================== */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 700; }
.badge-violet { background: #EDE9FE; color: #7C3AED; }
.badge-green  { background: #D1FAE5; color: #059669; }

/* =====================
   Fade-in
   ===================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =====================
   Utilities
   ===================== */
.text-center  { text-align: center; }
.text-white   { color: #fff; }
.text-violet  { color: #7C3AED; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}
.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}
.rounded{border-radius:8px}.rounded-lg{border-radius:12px}.rounded-xl{border-radius:16px}.rounded-full{border-radius:9999px}
.shadow{box-shadow:0 2px 8px rgba(0,0,0,.08)}.shadow-lg{box-shadow:0 8px 24px rgba(0,0,0,.12)}
.w-full{width:100%}.flex{display:flex}.gap-2{gap:.5rem}.gap-4{gap:1rem}.items-center{align-items:center}.justify-center{justify-content:center}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
  section { padding: 3.5rem 1rem; }
  .hero { min-height: 520px; }
  .hero-content { padding: 1.5rem 0; }
  .card-grid, .staff-grid { grid-template-columns: 1fr; }
  .cta-phone { font-size: 1.125rem; padding: 1rem 1.75rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.9375rem; }
  .hero-buttons { flex-direction: column; }
  .card { padding: 1.75rem 1.25rem; }
}
@media print {
  header, footer, .mobile-menu-btn, .hero-buttons, .cta-section { display: none; }
}
