/* ============================= 基本設定 ============================= */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.8;
  font-size: 16px;
  background-color: #fdfaf7;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* ============================= ヘッダー ============================= */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.with-header-space {
  padding-top: 80px; /* 固定ヘッダーの高さに合わせて調整 */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
}

/* ============================= ヒーローセクション ============================= */
#hero {
  background: url("../images/hero.png") center/cover no-repeat;
  position: relative;
  color: #fff;
  padding: 6rem 1rem 4rem;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  background-color: #d69f62;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #b67d40;
}

/* ============================= セクション基本 ============================= */
.section {
  padding: 4rem 0;
  background-color: #fff;
}

.section.alt {
  background-color: #fef7ef;
}

.section h3 {
  text-align: center;
  font-size: 1.5rem;
  color: #5c432a;
  margin-bottom: 2rem;
}

.profile-section h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-img img {
  max-width: 180px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.profile-text p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

/* ============================= メニュー・リスト ============================= */
.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.menu-list li {
  background: #fffaf3;
  border: 1px solid #e6cdb5;
  padding: 1rem;
  border-radius: 6px;
  font-weight: bold;
}

/* ============================= 診療の流れ ============================= */
.flow-steps {
  list-style: decimal inside;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 0;
}

.flow-steps li {
  margin-bottom: 1rem;
  background: #fffaf3;
  padding: 1rem;
  border-left: 5px solid #d69f62;
  border-radius: 4px;
}

/* ============================= フォーム ============================= */
form label {
  font-weight: bold;
  margin-top: 1rem;
  display: block;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fffaf3;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  margin-top: 1.5rem;
  background-color: #d69f62;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #b67d40;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  white-space: nowrap;
}

/* ============================= トップへ戻る ============================= */
.to-top-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.to-top {
  color: #d69f62;
  text-decoration: none;
  font-weight: bold;
}

.to-top:hover {
  text-decoration: underline;
}

/* ============================= フッター ============================= */
.site-footer {
  background-color: #fff5e6;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  margin-top: 4rem;
}

.cta-link {
  color: #d69f62;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px dotted #d69f62;
  transition: opacity 0.2s;
}
.cta-link:hover {
  opacity: 0.8;
  text-decoration: none;
}
