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

main,
main * {
  all: revert;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  color: #1e2a22;
  line-height: 1.8;
  overflow-x: hidden;
  background: #f0fafa url("../images/background.png") no-repeat center center fixed;
  background-size: cover;
}

.container {
  width: 100%;
  max-width: none;
  padding: 0;
}

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  color: #00897b;
  font-size: 2.2rem;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #00acc1;
  margin: 15px auto;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}
header .main-logo {
  height: 45px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
nav li a {
  text-decoration: none;
  font-weight: bold;
  color: #00acc1;
  font-size: 0.9rem;
  transition: 0.3s;
}
nav li a:hover {
  color: #00897b;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn i {
  font-size: 1.5rem;
  color: #00acc1;
}

.hero {
  height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("../images/hiro_area.jpg") no-repeat center/cover;
  background-color: #e0f2f1;
}
.hero .hero-content {
  padding: 40px 60px;
  width: 100%;
  max-width: none;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.6s ease;
}
.hero .hero-content:hover {
  background-color: rgba(255, 255, 255, 0.25);
}
.hero .hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #00897b;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hero-simple {
  height: 40vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.15) 0%, rgba(0, 172, 193, 0.15) 100%);
  border-bottom: 3px solid #00acc1;
}
.hero-simple .hero-content {
  padding-left: 5%;
  width: 100%;
  max-width: none;
}
.hero-simple .hero-content h1 {
  font-size: 2.5rem;
  color: #00897b;
  margin-bottom: 15px;
}
.hero-simple .hero-content .hero-desc {
  font-size: 1rem;
  color: #555;
}

.hero-desc {
  margin-bottom: 30px;
  font-size: 1.2rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1023px) {
  .hero .hero-content {
    padding: 30px 40px;
    backdrop-filter: blur(6px);
  }
}
@media (max-width: 767px) {
  .hero {
    justify-content: center;
  }
  .hero .hero-content {
    padding: 20px 30px;
    backdrop-filter: blur(4px);
    max-width: 100%;
    margin: 0;
  }
}
@supports not (backdrop-filter: blur(8px)) {
  .hero .hero-content {
    background-color: rgba(255, 255, 255, 0.4);
  }
}
.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, #00796b, #00acc1);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 10px 20px rgba(0, 137, 123, 0.2);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 137, 123, 0.4);
}

.btn-outline {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 12px 35px;
  border: 2px solid #00acc1;
  color: #00acc1;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: 0.3s;
}
.btn-outline:hover {
  background: #00acc1;
  color: #fff;
}

.news-box {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.news-item {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  font-size: 0.95rem;
}

.news-date {
  width: 120px;
  color: #00acc1;
  font-weight: bold;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.reason-card {
  background: rgba(255, 255, 255, 0.4);
  padding: 40px 25px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.reason-card h3 {
  color: #00897b;
  margin: 15px 0;
}

.reason-icon {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#philosophy {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.philosophy-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.philosophy-block {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.philosophy-block:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.philosophy-block h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #00897b;
  line-height: 1.6;
}
.philosophy-block p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}
.philosophy-block p strong {
  color: #00acc1;
  font-weight: 600;
}

#portfolio {
  padding: 100px 0;
}
#portfolio .container {
  margin-bottom: 50px;
}

.portfolio-wrapper {
  overflow: hidden;
  width: 100%;
}

.portfolio-grid {
  display: flex;
  gap: 40px;
  width: 100%;
  opacity: 1;
  padding: 40px 0;
}

.portfolio-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex: 1 1 300px;
  min-height: 350px;
}

.portfolio-card__image {
  position: relative;
  height: 200px;
  background: #ddd;
}
.portfolio-card__image span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #888;
  font-weight: bold;
}

.portfolio-card__content {
  padding: 20px;
}

.portfolio-card__title {
  color: #00796b;
  margin-bottom: 10px;
}

.portfolio-card__description {
  color: #555;
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.about-info {
  flex: 1.2;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}
.about-table th,
.about-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(0, 137, 123, 0.1);
  text-align: left;
}
.about-table th {
  width: 30%;
  color: #00796b;
}

.map-box {
  flex: 1;
  min-width: 0;
  height: 350px;
  background: #e0e0e0;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
}

.main-footer {
  background: radial-gradient(circle at 50% 0%, rgba(128, 203, 196, 0.25) 0%, transparent 70%), linear-gradient(180deg, #00695c 0%, #004d40 40%, #002828 100%);
  color: #fff;
  padding: 80px 0 30px;
}
.main-footer h4 {
  margin-bottom: 15px;
}

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

.footer-logo {
  height: 50px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li {
  margin-bottom: 10px;
}
.footer-menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}
.footer-menu li a:hover {
  opacity: 0.8;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  font-size: 0.8rem;
  opacity: 0.6;
}

#contact {
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.05) 0%, rgba(0, 172, 193, 0.05) 100%);
  padding: 100px 0;
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 60px;
  line-height: 1.8;
}

.contact-emergency {
  width: 100%;
  max-width: none;
  margin: 0 0 60px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 152, 0, 0.08) 100%);
  padding: 30px;
  border-left: 5px solid #ff6b6b;
  border-radius: 12px;
  text-align: center;
}

.emergency-title {
  color: #ff6b6b;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.emergency-text {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.emergency-phone a {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ff6b6b;
  text-decoration: none;
  padding: 12px 30px;
  border: 2px solid #ff6b6b;
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.emergency-phone a:hover {
  background: #ff6b6b;
  color: #fff;
}

.emergency-hours {
  font-size: 0.85rem;
  color: #999;
  margin-top: 15px;
}

#privacy-policy {
  padding: 80px 0;
}

.privacy-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

.policy-body h2 {
  font-size: 1.4rem;
  color: #00897b;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #00acc1;
}
.policy-body h2:first-child {
  margin-top: 0;
}
.policy-body p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}
.policy-body ul {
  list-style-position: inside;
  margin: 15px 0 25px 20px;
  color: #555;
  line-height: 1.8;
}
.policy-body ul li {
  margin-bottom: 10px;
}

.contact-info-box {
  background: #f9f9f9;
  border-left: 5px solid #00acc1;
  padding: 25px;
  margin: 30px 0;
  border-radius: 8px;
}
.contact-info-box p {
  margin: 8px 0;
  color: #1e2a22;
  font-size: 0.95rem;
}
.contact-info-box p a {
  color: #00acc1;
  text-decoration: none;
  transition: 0.3s;
}
.contact-info-box p a:hover {
  text-decoration: underline;
}
.contact-info-box strong {
  color: #00897b;
  font-weight: 600;
}

.contact-cta-box {
  background: linear-gradient(135deg, rgba(0, 137, 123, 0.1) 0%, rgba(0, 172, 193, 0.1) 100%);
  border: 2px solid #00acc1;
  padding: 40px;
  margin: 30px 0;
  border-radius: 12px;
  text-align: center;
}
.contact-cta-box p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-contact-form {
  display: inline-block;
  padding: 16px 50px;
  background: linear-gradient(135deg, #00796b, #00acc1);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.05rem;
  box-shadow: 0 10px 20px rgba(0, 137, 123, 0.2);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-contact-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 137, 123, 0.3);
}
.btn-contact-form:active {
  transform: translateY(-1px);
}

.policy-updated {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}
.policy-updated p {
  font-size: 0.85rem;
  color: #999;
}

.contact-form-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 137, 123, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1e2a22;
  font-size: 0.95rem;
}

.form-required {
  display: inline-block;
  background: #ff6b6b;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e2a22;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #00acc1;
  box-shadow: 0 0 0 4px rgba(0, 172, 193, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  font-family: inherit;
}

.form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}
.form-agreement #privacy-agree {
  margin-top: 5px;
  cursor: pointer;
  accent-color: #00acc1;
}

.checkbox-label {
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
  line-height: 1.4;
}
.checkbox-label .link-privacy {
  color: #00acc1;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.checkbox-label .link-privacy:hover {
  text-decoration: underline;
}

.form-submit {
  padding: 16px 40px;
  background: linear-gradient(135deg, #00796b, #00acc1);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-top: 20px;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 137, 123, 0.3);
}
.form-submit:active {
  transform: translateY(0);
}

.reason-icon i,
.emergency-phone a i,
.footer-grid i {
  background: linear-gradient(135deg, #00695c 0%, #00acc1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 1.3em;
}

@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }
  .hamburger-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: 0.3s;
  }
  .hamburger-btn:hover {
    background: rgba(0, 172, 193, 0.1);
  }
  .hamburger-btn:active {
    transform: scale(0.95);
  }
  nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 1000;
    backdrop-filter: blur(8px);
    pointer-events: none;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }
  nav.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  nav li {
    width: 100%;
  }
  nav li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  nav li a:hover {
    background: rgba(0, 172, 193, 0.2);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 30px 20px;
  }
  .form-group label {
    flex-direction: row;
  }
}
