/* frontend/style.css */

body {
  font-family: 'Yu Gothic', 'Meiryo', sans-serif;
  background: #f6f9fb;
  color: #1a202c;
  margin: 0;
}

/* New Styles for Header Layout */
.header-title-group {
  display: flex;           /* This aligns items side-by-side */
  align-items: center;     /* This centers them vertically (top to bottom) */
  justify-content: center; /* This centers the whole group on the page */
  gap: 15px;               /* Adds space between the logo and the text */
  margin-bottom: 1rem;     /* Adds space below the group before the paragraph */
}

.logo {
  height: 50px;            /* Control the logo size (adjust as needed) */
  width: auto;             /* Keeps the aspect ratio correct */
}

/* Optional: If the H1 margin is too big, reset it slightly */
.header-title-group h1 {
  margin: 0;
}

header {
  background: #1976d2;
  color: #fff;
  padding: 2.3rem 0 1.3rem 0;
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 900px;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 1.7rem auto;
  display: block;
  box-shadow: 0 2px 16px rgba(30, 40, 60, 0.11);
}

.lead {
  font-size: 1.23em;
  font-weight: 500;
  margin: 0 0 1.7rem 0;
  color: #2b4168;
}

nav {
  background: #1652a4;
  padding: 0.5rem 0;
  text-align: center;
}

nav a {
  color: #fff;
  margin: 0 1.2rem;
  text-decoration: none;
  font-weight: 500;
}

main {
  max-width: 950px;
  margin: 2rem auto;
  padding: 2.1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(30, 30, 50, 0.09);
}

h2 {
  border-left: 4px solid #1976d2;
  padding-left: 1rem;
  margin-top: 2.5rem;
}

section {
  margin-bottom: 2.6rem;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 0.7rem;
}

.photo-box {
  flex: 1 1 280px;
  background: #f5f7fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 7px rgba(30, 30, 50, 0.07);
  text-align: center;
}

.photo-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.photo-caption {
  font-size: 0.98em;
  color: #455;
  padding: 0.5rem 0.7rem 0.9rem 0.7rem;
}

ul {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #f9fbfd;
}

th,
td {
  border: 1px solid #c1c7cd;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

th {
  background: #e3ecfa;
}

.flow-step {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.flow-step span {
  font-weight: bold;
  color: #1976d2;
  margin-right: 0.7rem;
}

.contact {
  background: #e3ecfa;
  padding: 1.5rem;
  border-radius: 12px;
}

footer {
  text-align: center;
  color: #666;
  padding: 1.1rem 0;
  margin-top: 3rem;
  font-size: 0.96em;
  background: #f2f5fa;
}

@media (max-width: 650px) {
  main {
    padding: 0.7rem;
  }

  .photo-grid {
    flex-direction: column;
    gap: 0.7rem;
  }

  .photo-box img {
    height: 160px;
  }
}

/* FAQ Styles */
#faq dl {
  margin-top: 1.5rem;
}

#faq dt {
  background-color: #f0f7ff;
  border: 1px solid #d4e8ff;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  border-radius: 8px;
}

#faq dt:hover {
  background-color: #e0f0ff;
}

#faq dt i {
  transition: transform 0.3s ease;
  color: #1976d2;
}

#faq dt.active i {
  transform: rotate(90deg);
}

#faq dd {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 15px 20px;
  margin-left: 0;
  margin-bottom: 10px;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  visibility: hidden;
  border-radius: 0 0 8px 8px;
}

#faq dd.active {
  max-height: 200px;
  padding-top: 15px;
  padding-bottom: 15px;
  opacity: 1;
  visibility: visible;
}
