/* =========================================================
   まるっとけあ お問い合わせページ – リニューアル用スタイル
   ========================================================= */

:root {
  --color-primary: #4f85ab;
  --color-primary-dark: #3a6a8a;
  --color-primary-light: #93b5cd;
  --color-accent: #dc3545;
  --color-text: #333333;
  --color-bg-light: #f2f3f3;
  --color-white: #ffffff;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.7;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

.l-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 10px;
  background: #fff;
  padding: 6px 10px;
  z-index: 999;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid #e5e7e8;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 500;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.header-branding__link img {
  width: 220px;
  max-width: 60vw;
}

/* ---------- Page header banner ---------- */
.page-banner {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(30,50,65,.55), rgba(30,50,65,.55)), url('../images/hero-bg.jpg') center center / cover no-repeat;
}
.page-banner__title {
  color: #fff;
  font-size: 2rem;
  letter-spacing: .06em;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: #666;
}
.breadcrumb ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb a { color: var(--color-primary-dark); }
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  color: #aaa;
}

/* ---------- Main content ---------- */
main.l-content {
  padding-top: 20px;
  padding-bottom: 60px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  border-left: 6px solid var(--color-primary);
  padding-left: 14px;
  margin: 0 0 24px;
}

.contact-intro {
  margin-bottom: 32px;
  color: #444;
}

.contact-info-box {
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.contact-info-box dt {
  font-weight: bold;
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.contact-info-box dd { margin: 0; }

/* ---------- Contact Form ---------- */
.contact-form {
  background: #fafafa;
  border-radius: 10px;
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.required-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(79,133,171,.15);
}
.form-group textarea { resize: vertical; min-height: 160px; }

.privacy-box {
  overflow: auto;
  width: 100%;
  height: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px;
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 16px;
}

.acceptance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.acceptance-row input { width: 18px; height: 18px; }

.submit-row { text-align: center; }
.btn-submit {
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
  font-size: 1.05rem;
  padding: 14px 48px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.btn-submit:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-submit:disabled { background: #aaa; cursor: not-allowed; transform: none; }

.form-message {
  margin-top: 18px;
  text-align: center;
  font-weight: bold;
  padding: 12px;
  border-radius: 6px;
  display: none;
}
.form-message.is-success {
  display: block;
  background: #e3f7ea;
  color: #1a7a41;
}
.form-message.is-error {
  display: block;
  background: #fdecea;
  color: #b02a2a;
}

.field-error {
  color: var(--color-accent);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: var(--color-accent); }
.form-group.has-error .field-error { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #484848;
  color: #eee;
}
.footer-inner {
  padding: 48px 0 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand {
  flex: 1 1 260px;
  text-align: center;
}
.footer-brand img { width: 150px; margin: 0 auto 14px; }
.footer-brand p { font-size: 0.9rem; }

.footer-links {
  flex: 2 1 600px;
}
.footer-links-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 24px;
}
.footer-links-group a {
  font-size: 0.88rem;
  color: #eee;
  transition: color .2s ease;
}
.footer-links-group a:hover { color: var(--color-primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom .footer-sns {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.footer-bottom .footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
}
.footer-copy {
  font-size: 0.78rem;
  color: #ccc;
}
.footer-copy a { color: #ddd; text-decoration: underline; }
.footer-note { font-size: 0.7rem; color: #999; display: block; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-banner { height: 180px; }
  .page-banner__title { font-size: 1.4rem; }
  .contact-form { padding: 22px 18px; }
}
