/* ==============================
   SunsCreate Air Solution CSS
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  background: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/* ==============================
   Header / Navigation
   ============================== */

header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: #0e4b85;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: 0.2s;
}

nav ul li a:hover {
  color: #0e4b85;
}

/* ==============================
   Hero Section
   ============================== */

.hero {
  background: url('images/air_conditioning_bg.png') center/cover no-repeat;
  padding: 110px 20px;
  text-align: center;
  color: #fff;
}

.hero-home {
  background: url('images/IMG_0383.JPG') center/cover no-repeat;
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0,0,0,0.45);
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 0 2px 5px rgba(0,0,0,0.45);
}

.hero-btns {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn, .btn-outline {
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}

.btn {
  background: #0e4b85;
  color: #fff;
}

.btn:hover {
  background: #06315a;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #0e4b85;
}

/* ==============================
   Sections
   ============================== */

.section-white {
  background: #fff;
  padding: 70px 20px;
}

.section-light {
  background: #eef3f7;
  padding: 70px 20px;
}

.section-white h2,
.section-light h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 40px;
  color: #0e4b85;
}

/* ==============================
   Service Cards
   ============================== */

.service-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ddd;
  transition: 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #0e4b85;
}

.service-card h3 {
  margin-bottom: 14px;
  color: #0e4b85;
}

/* ==============================
   Price List / Form Area
   ============================== */

.price-list {
  max-width: 600px;
  margin: auto;
  text-align: center;
  font-size: 16px;
  line-height: 2;
}

.price-list span {
  font-weight: 700;
  color: #0e4b85;
  float: right;
}

/* ==============================
   Form Styling
   ============================== */

form {
  max-width: 700px;
  margin: auto;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input, textarea, select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 15px;
}

textarea {
  height: 140px;
  resize: vertical;
}

.required-tag {
  color: red;
  font-size: 12px;
  margin-left: 4px;
}

.unit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unit-row label {
  font-size: 15px;
  width: 60%;
}

.unit-row select {
  width: 80px;
}

/* ==============================
   Total Price Display
   ============================== */

.total-box {
  background: #fff8d9;
  padding: 14px;
  border: 2px solid #e0c76e;
  font-size: 18px;
  font-weight: 700;
  color: #5a4600;
  border-radius: 6px;
  text-align: center;
}

/* ==============================
   Error Message
   ============================== */

.error-msg {
  color: red;
  font-size: 14px;
  margin: -6px 0 6px;
}

/* ==============================
   Modal (対応エリア)
   ============================== */

.modal-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-box {
  background: white;
  width: 90%;
  max-width: 600px;
  padding: 28px;
  border-radius: 10px;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeIn .25s ease;
}

.modal-box h3 {
  text-align: center;
  color: #0e4b85;
  margin-bottom: 16px;
}

.modal-close {
  display: block;
  text-align: center;
  margin-top: 22px;
  padding: 10px;
  background: #0e4b85;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

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

/* ==============================
   Footer
   ============================== */

footer {
  text-align: center;
  padding: 24px;
  background: #0e4b85;
  color: white;
  font-size: 14px;
  margin-top: 60px;
}

/* ==============================
   Responsive
   ============================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 26px;
  }
  .hero p {
    font-size: 15px;
  }
  nav ul {
    gap: 16px;
  }
  .unit-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .unit-row select {
    width: 100%;
    margin-top: 6px;
  }
}

/* ==============================
   Modal (対応エリア) – 追加調整
   ============================== */

.modal-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-box {
  background: white;
  width: 90%;
  max-width: 600px;
  padding: 28px;
  border-radius: 10px;
  max-height: 85vh;
  overflow-y: auto;
  animation: fadeIn .25s ease;
  border: 2px solid #0e4b85;
}

.modal-box p {
  line-height: 1.8;
  font-size: 15px;
}

.modal-close {
  display: block;
  text-align: center;
  margin-top: 22px;
  padding: 10px;
  background: #0e4b85;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
}

.modal-close:hover {
  background: #06315a;
}

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

/* ==============================
   Error Field Style – 日付重複チェック
   ============================== */

input.error {
  border: 2px solid red !important;
}

/* ==============================
   Form Title Adjust
   ============================== */

.form-block-title {
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0e4b85;
}

/* ==============================
   Hero Button Alignment Fix (業務用トップ)
   ============================== */

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

/* ボタン色調整 */
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #0e4b85;
}

/* ==============================
   業務用トップページ調整
   ============================== */

/* ヒーローテキストの横寄り修正＆最大幅指定 */
.hero > div {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* ボタンデザイン微調整 */
.hero .btn,
.hero .btn-outline {
  min-width: 240px;
  text-align: center;
  font-size: 16px;
  padding: 14px 24px;
}

/* ボタンの影と視認性アップ */
.hero .btn {
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.hero .btn-outline {
  box-shadow: 0 3px 8px rgba(255,255,255,0.4);
}

/* スマホ時のヒーロー余白改善 */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero .btn,
  .hero .btn-outline {
    width: 100%;
  }
}
