/*
Theme Name: Yuwa Theme
Theme URI: https://yuwa.biz/
Author: 株式会社ゆうわ
Author URI: https://yuwa.biz/
Description: 株式会社ゆうわ公式サイト用カスタムテーマ - グループホームユウワ・介護付有料老人ホーム出雲ハイツ
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yuwa-theme
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ========================================
   CSS Variables
======================================== */
:root {
  --color-primary: #e17055;
  --color-primary-dark: #d63031;
  --color-secondary: #ffeaa7;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-text-muted: #b2bec3;
  --color-bg: #ffffff;
  --color-bg-light: #fafafa;
  --color-bg-warm: #fff5f3;
  --color-dark: #2d3436;
  
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-display: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50px;
  
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 2px;
}

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

/* ========================================
   Layout
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.section--warm {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-bg-warm) 50%, var(--color-bg) 100%);
}

.section--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

/* ========================================
   Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 112, 85, 0.4);
  color: white;
}

.btn--secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-bg-warm);
  transform: translateY(-2px);
}

.btn--white {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.btn--large {
  padding: 20px 48px;
  font-size: 18px;
}

/* ========================================
   Header
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a.current::after {
  width: 100%;
}

/* Language Selector */
.lang-selector {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.9);
  padding: 4px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.lang-btn {
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  background: var(--color-bg-warm);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

@media (max-width: 992px) {
  .menu-toggle { display: flex; }
  .nav-menu { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active { display: flex; }
}

/* ========================================
   Hero Section
======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(circle, var(--color-primary) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.05;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1.3;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
  white-space: pre-line;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image-frame {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 30px;
  padding: 8px;
  transform: rotate(3deg);
  box-shadow: 0 20px 60px rgba(225, 112, 85, 0.3);
}

.hero-image-inner {
  background: #f5f5f5;
  border-radius: 24px;
  height: 400px;
  transform: rotate(-3deg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  background: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.hero-badge--location {
  top: -20px;
  right: -20px;
  color: var(--color-primary);
}

.hero-badge--stat {
  bottom: 40px;
  left: -30px;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 24px;
  border-radius: var(--radius-md);
}

.hero-badge--stat .label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.hero-badge--stat .value {
  font-size: 28px;
  color: var(--color-primary);
}

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-image { display: none; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Cards
======================================== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.card-image {
  height: 240px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.card-image--purple {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.card-image--blue {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.card-body {
  padding: 32px;
}

.card-tag {
  display: inline-block;
  background: var(--color-bg-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card-text {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
}

.card-link:hover {
  gap: 12px;
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.feature-text {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ========================================
   Recruit Section
======================================== */
.recruit-section {
  position: relative;
  overflow: hidden;
}

.recruit-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, white 2px, transparent 2px);
  background-size: 50px 50px;
  opacity: 0.1;
}

.recruit-content {
  position: relative;
  text-align: center;
}

.recruit-title {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.recruit-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.recruit-benefits {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.benefit-tag {
  background: rgba(255,255,255,0.2);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
}

/* ========================================
   Contact Section
======================================== */
.contact-box {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-bg-warm) 100%);
  padding: 48px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 32px;
}

.contact-phone {
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-hours {
  color: var(--color-text-light);
}

/* ========================================
   Footer
======================================== */
.site-footer {
  background: var(--color-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  width: 48px;
  height: 48px;
}

.footer-logo .logo-text {
  color: white;
}

.footer-address {
  color: var(--color-text-muted);
  line-height: 2;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--color-text-muted);
}

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

.footer-bottom {
  border-top: 1px solid #636e72;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-lang .lang-selector {
  background: #3d3d3d;
}

.footer-lang .lang-btn {
  color: var(--color-text-muted);
}

.footer-lang .lang-btn.active {
  color: white;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

/* ========================================
   News / Blog
======================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-sm);
}

.news-date {
  font-size: 14px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--color-bg-warm);
  color: var(--color-primary);
}

.news-title {
  font-size: 1rem;
  font-weight: 500;
}

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

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

/* ========================================
   Page Templates
======================================== */
.page-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-bg-warm) 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.page-description {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

.page-content {
  padding: 80px 0;
}

.page-content h2 {
  margin-top: 48px;
  margin-bottom: 24px;
}

.page-content p {
  margin-bottom: 16px;
}

/* ========================================
   Forms
======================================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-label .required {
  color: var(--color-primary);
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

/* ========================================
   Utilities
======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
