@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  /* Colors */
  --primary-color: #83b62b; /* 黄緑色のボタンなど */
  --primary-hover: #98cc3b; /* 明るめのホバー色 */
  --primary-shadow: #69981f; /* 少し濃いめの影 */
  --blue-color: #006dd9; /* 青いお知らせバー */
  --blue-hover: #005bb5;
  --text-dark: #222222;
  --text-muted: #666666;
  --border-color: #cacaca; /* 少し濃いグレーのボーダー色に変更 */
  --bg-color: #ffffff; /* 白背景 */
  --white: #ffffff;
  --danger-color: #ff0000;

  /* Typography */
  --font-family: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
  
  /* Shadow & Radius */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
  
  /* Layout */
  --app-max-width: 900px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
  max-width: var(--app-max-width);
  margin: 0 auto;
  position: relative;
}

/* Header */
.header {
  background-color: var(--white);
  width: 100%;
}

.header-inner {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo-left {
  height: 48px;
  object-fit: contain;
}

.header-logo-right {
  height: 36px;
  object-fit: contain;
  align-self: flex-end;
}

/* Notification Bar (Blue) */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-70px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification-bar {
  display: block;
  background-color: var(--blue-color);
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  width: 100%;
  animation: slideDownFade 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.notification-bar:hover {
  background-color: var(--blue-hover);
}

.notification-bar-inner {
  max-width: var(--app-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  position: relative;
}

.notification-bar-icon {
  font-size: 24px;
}

.notification-bar-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
}

.notification-bar-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-new {
  background-color: var(--danger-color);
  color: var(--white);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
}

.notification-bar-date {
  font-weight: 500;
}

.notification-bar-title {
  font-weight: 700;
  font-size: 15px;
}

.notification-bar-arrow {
  position: absolute;
  right: 0;
  font-size: 16px;
}

/* User Profile Section */
.user-profile-section {
  padding: 24px 24px 0;
}

.user-profile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.user-icon {
  width: 48px;
  height: 48px;
  color: #999;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-room {
  font-size: 15px;
  font-weight: 700;
  color: #555555;
}

.user-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Main Content */
.main-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Big Button (困ったときはこちら) */
.btn-primary-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(to bottom, #98cc3b, #83b62b);
  color: var(--white);
  padding: 36px 16px; /* Increased padding to make height 1.5x larger */
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 4px 6px 8px rgba(0,0,0,0.15); /* Removed the solid border-like shadow */
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary-big:hover {
  background: linear-gradient(to bottom, #a4d642, #8ec132); /* 明るめのホバー色 */
  transform: translateY(-2px);
  box-shadow: 4px 8px 12px rgba(0,0,0,0.2);
}

.btn-primary-big:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-primary-icon {
  width: 52px;
  height: 52px;
}
.btn-primary-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.btn-primary-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.btn-primary-title {
  font-size: 24px;
  font-weight: 700;
}

.btn-primary-desc {
  font-size: 14px;
  font-weight: 500;
}

/* Section Title */
.section-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  border-left: 6px solid var(--primary-color);
  padding-left: 14px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #333333;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.section-link {
  font-size: 14px;
  font-weight: 700;
  color: #1a8c4c;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Menu Grid Cards */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Slightly larger border radius to match image */
  padding: 24px 16px; /* Decreased vertical padding */
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 2px 3px 0 #bcbcbc; /* Darker, slightly tighter bottom right shadow */
  transition: transform 0.1s ease;
  height: 100%;
}

.menu-card:hover, .menu-card:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0 #bcbcbc;
}

.menu-card-icon {
  width: 54px; /* Decreased icon size */
  height: 54px; /* Decreased icon size */
  margin-bottom: 12px; /* Decreased gap between icon and title */
  object-fit: contain;
}

.menu-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.menu-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.list-box {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--white);
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover, .list-item:active {
  background-color: #f9f9f9;
}

.list-item-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
}

.list-item-icon {
  width: 44px;
  height: 44px;
  color: #5c636a;
  margin-top: 2px;
}

.list-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-item-date {
  font-size: 14px;
  color: var(--text-muted);
}

.list-item-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

.list-item-arrow {
  color: #a0aab2; /* A darkish grey that matches the caret color */
  font-size: 16px;
  font-weight: 900; /* Makes font awesome icons bolder if supported, or we can use webkit-text-stroke */
  -webkit-text-stroke: 1px currentColor; /* Force make it bold */
}

/* Info Card (契約照会ページ用) */
.info-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.info-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  border-left: 6px solid var(--primary-color);
  padding-left: 12px;
}

/* Info Row */
.info-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  flex: 0 0 140px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.info-value {
  flex: 1;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

.info-value-multi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(140, 187, 38, 0.1); /* primary-color with opacity */
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

.btn-edit {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Footer Section */
.footer {
  margin-top: 48px;
  background: var(--white);
  position: relative;
  width: 100%;
}

.footer-inner {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 32px 24px;
}

.footer::before {
  content: "";
  display: block;
  height: 1px;
  background-color: #e5e5e5;
  width: 100%;
}

.footer-company {
  margin-bottom: 32px;
}

.footer-company-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-logo {
  height: 36px;
  object-fit: contain;
}

.footer-company-text {
  display: flex;
  flex-direction: column;
}

.footer-company-label {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-company-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-company-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-top: 8px;
}

.footer-read-more {
  color: #1a8c4c; /* 深い緑 */
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

.footer-links-section {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-bottom: 32px;
}

.footer-links-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-epark {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
}

.epark-logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.epark-e { color: #8cbb26; }
.epark-park { color: #333333; }

.footer-copyright {
  font-size: 11px;
  color: var(--text-muted);
}



.eroom-modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(2px); 
  animation: fadeIn 0.2s ease-out;
}

.eroom-modal-content {
  background-color: #ffffff;
  max-height: 90vh; 
  overflow-y: auto;
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0; 
  
  width: 90%;
  max-width: 400px; 
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUpCenter 0.3s ease-out forwards;
}

.eroom-modal-body {
  padding: 24px;
}

.eroom-modal-header {
  padding: 24px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eroom-modal-footer {
  padding: 0 24px 24px 24px;
}

#eroomNewsModal2 .eroom-modal-body {
  padding-top: 16px;
  padding-bottom: 20px;
}

.eroom-modal-label {
  background-color: #dc3545;
  color: #ffffff !important;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.eroom-modal-date {
  font-size: 13px;
  color: #888888;
  margin-bottom: 8px;
}

.eroom-modal-header .eroom-modal-date {
  margin-bottom: 0; 
}

.eroom-modal-title {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeeee; 
}

.eroom-modal-text {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.eroom-modal-image {
  text-align: center;
  margin-bottom: 24px;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 10px;
}

.eroom-modal-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.eroom-modal-close-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: #54595f; 
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}

.eroom-modal-close-btn:hover {
  background-color: #3b3f43;
}

.eroom-modal-close-btn:active {
  transform: scale(0.98);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpCenter {
  from { 
    opacity: 0; 
    transform: translate(-50%, calc(-50% + 20px)); 
  }
  to { 
    opacity: 1; 
    transform: translate(-50%, -50%); 
  }
}