@charset "utf-8";

/* うちの子いちばん！ サイト共通デザイン */

:root {
  --pink-page: #fff6f4;
  --pink-band: #fed3d5;
  --pink-soft: #fdeced;
  --pink-line: #f3cfd2;
  --coral: #ee515b;
  --coral-deep: #d63c4a;
  --coral-ink: #b12f3c;
  --ink: #3a2c2e;
  --ink-soft: #6d575a;
  --white: #ffffff;
  --gold: #f4b942;
  --shadow: 0 20px 48px rgba(180, 62, 78, 0.12);
  --shadow-btn: 0 12px 28px rgba(238, 81, 91, 0.35);
  --radius: 28px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-round: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--pink-page);
  scroll-behavior: smooth;
}

body.page-home,
body.page-form {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  text-align: left;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  background-color: var(--pink-page);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(238, 81, 91, 0.06) 0 18%, transparent 19%),
    radial-gradient(circle at 88% 8%, rgba(244, 185, 66, 0.12) 0 12%, transparent 13%),
    radial-gradient(circle at 92% 78%, rgba(238, 81, 91, 0.05) 0 16%, transparent 17%);
}

body.page-form {
  display: flex;
  flex-direction: column;
}

body.page-form .wrap {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--coral-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--coral-ink);
}

a:focus-visible,
.btn-apply:focus-visible,
.btn-sub:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.hero {
  background: linear-gradient(180deg, var(--pink-band) 0 78%, var(--pink-page) 100%);
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: 0;
}

.hero a {
  display: block;
}

.hero img {
  display: block;
  width: min(100%, 1280px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 32px rgba(180, 62, 78, 0.16));
}

.wrap {
  width: min(calc(100% - 32px), 860px);
  margin: 0 auto;
  padding: 0 0 72px;
}

.panel {
  position: relative;
  z-index: 1;
  margin-top: -36px;
  padding: 40px 28px 44px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--pink-soft);
  pointer-events: none;
}

#copy,
.page-form .panel > h2 {
  position: relative;
  margin: 0 0 28px;
  padding: 8px 12px 18px;
  font-family: var(--font-round);
  font-size: clamp(1.25rem, 3.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--coral-deep);
}

#copy::after,
.page-form .panel > h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

.notice {
  margin: 0 0 28px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff8e8 0%, var(--pink-soft) 100%);
  border-radius: 16px;
  border: 1px solid #f8e0b0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink);
}

.spec {
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 11.5em 1fr;
  gap: 8px 20px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--pink-line);
}

.spec-row:last-of-type {
  border-bottom: 0;
}

.spec-row-accent {
  background: var(--pink-soft);
  margin: 0 -8px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 14px;
  border-bottom-color: transparent;
}

.spec-row dt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-family: var(--font-round);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coral-ink);
  line-height: 1.6;
}

.spec-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--coral);
}

.spec-row-accent .spec-icon {
  background: var(--white);
}

.spec-icon svg {
  width: 18px;
  height: 18px;
}

.spec-row dd {
  margin: 0;
  padding-top: 6px;
  color: var(--ink);
}

ul.komelist {
  list-style: none;
  margin: 10px 0 0;
  padding-left: 1em;
  text-indent: -1em;
}

ul.komelist > li:before {
  content: "※";
}

.red {
  color: #d32f2f;
  font-weight: 500;
}

.badge-date,
.badge-free {
  display: inline-block;
  font-family: var(--font-round);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-date {
  color: var(--coral-deep);
  font-size: 1.08em;
}

.badge-free {
  padding: 2px 14px 3px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.95em;
}

#formlink {
  margin-top: 36px;
  text-align: center;
}

button.btn-apply,
button.btn-sub,
input.btn-apply {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 320px);
  padding: 18px 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6b75 0%, var(--coral) 55%, var(--coral-deep) 100%);
  color: var(--white) !important;
  font-family: var(--font-round);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-apply::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.55em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}

.btn-apply:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 32px rgba(238, 81, 91, 0.42);
}

.btn-apply:active {
  transform: translateY(0);
}

#footer {
  padding: 28px 16px 36px;
  background: #4a3335;
  color: #f7e9ea;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* FORM */
.page-form .err {
  margin: 0 0 24px;
  padding: 14px 18px;
  background: #fff1f1;
  border: 1px solid #f5c2c2;
  border-radius: 14px;
  color: #c62828;
  font-weight: 700;
  text-align: left;
}

.page-form h3 {
  margin: 8px 0;
  padding: 12px 16px;
  font-family: var(--font-round);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--coral-deep);
  background: var(--pink-soft);
  border-radius: 12px;
}

.page-form table.form {
  width: 100%;
  border-collapse: collapse;
}

.page-form table.form th,
.page-form table.form td {
  padding: 18px 8px;
  vertical-align: top;
  border-bottom: 1px solid var(--pink-line);
}

.page-form table.form th {
  width: 10.5em;
  padding-right: 20px;
  font-family: var(--font-round);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coral-ink);
  text-align: left;
  white-space: nowrap;
}

.page-form table.form td {
  color: var(--ink);
}

.page-form table.form tr:last-child th,
.page-form table.form tr:last-child td {
  border-bottom: 0;
}

.page-form table.form td[colspan="6"],
.page-form table.form th[colspan="2"] {
  padding-top: 32px;
  padding-bottom: 8px;
  border-bottom: 0;
}

.page-form table.form input[type="text"],
.page-form table.form input[type="tel"],
.page-form table.form input[type="email"],
.page-form table.form input[type="number"],
.page-form table.form select,
.page-form table.form textarea {
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--pink-line);
  border-radius: 12px;
  background: #fffdfd;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-form table.form input:focus,
.page-form table.form select:focus,
.page-form table.form textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(238, 81, 91, 0.15);
}

.page-form .name-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.page-form .name-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.page-form table.form input.name {
  width: 200px;
  max-width: 100%;
  margin: 0;
}

.page-form table.form input.photo_title {
  width: min(100%, 320px);
}

.page-form table.form input.coment,
.page-form table.form input.mail {
  width: 100%;
}

.page-form table.form input.tel,
.page-form table.form input.age,
.page-form table.form #zip {
  width: min(100%, 200px);
}

.page-form table.form #oya_address {
  width: 100%;
}

.page-form table.form textarea.bikou {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}

.page-form table.form select {
  min-width: min(100%, 220px);
}

.page-form .file-drop {
  position: relative;
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
}

.page-form .file-drop-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.page-form .file-drop-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 22px 16px;
  border: 2px dashed var(--pink-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfd 0%, var(--pink-soft) 100%);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-form .file-drop:hover .file-drop-ui,
.page-form .file-drop:focus-within .file-drop-ui,
.page-form .file-drop.is-dragover .file-drop-ui {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(238, 81, 91, 0.12);
}

.page-form .file-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--coral);
  box-shadow: 0 8px 18px rgba(180, 62, 78, 0.1);
}

.page-form .file-drop-icon svg {
  width: 26px;
  height: 26px;
}

.page-form .file-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5em;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--pink-line);
  color: var(--coral-ink);
  font-family: var(--font-round);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-form .file-drop-name {
  max-width: 100%;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  word-break: break-all;
}

.page-form .file-drop-preview {
  display: none;
  max-width: min(100%, 240px);
  max-height: 160px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(180, 62, 78, 0.14);
}

.page-form .file-drop.has-file .file-drop-ui {
  border-style: solid;
  border-color: #f3b4b8;
  background: #fff;
}

.page-form .file-drop.has-file .file-drop-icon {
  display: none;
}

.page-form .file-drop.has-file .file-drop-preview {
  display: block;
}

.page-form .file-drop.has-file .file-drop-btn {
  border-color: var(--coral);
}

.page-form .panel > p {
  margin: 0 0 1em;
}

.page-form table.form td p,
.page-form table.form td > span {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-form table.form td p {
  display: block;
}

.page-form #btnarea {
  width: 100%;
  margin: 36px auto 0;
  text-align: center;
}

.page-form #btnarea ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-form #btnarea ul li {
  margin: 0;
}

.btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 200px);
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--white);
  color: var(--coral-ink) !important;
  font-family: var(--font-round);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  box-shadow: none;
  border: 2px solid var(--pink-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-sub:hover {
  transform: translateY(-2px);
  border-color: var(--coral);
  box-shadow: 0 10px 22px rgba(180, 62, 78, 0.12);
}

@media (min-width: 768px) {
  .panel {
    margin-top: -56px;
    padding: 52px 56px 56px;
  }

  .notice {
    font-size: 1.02rem;
  }

  .spec-row {
    padding: 20px 12px;
  }
}

@media (max-width: 639px) {
  .wrap {
    width: min(calc(100% - 20px), 860px);
    padding-bottom: 48px;
  }

  .panel {
    margin-top: -20px;
    padding: 28px 16px 32px;
    border-radius: 22px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 4px;
  }

  .spec-row-accent {
    margin: 0;
    padding: 14px 12px;
  }

  .spec-row dd {
    padding-top: 0;
    padding-left: 46px;
  }

  .btn-apply,
  .btn-sub {
    width: 100%;
    min-width: 0;
    letter-spacing: 0.1em;
  }

  .page-form table.form,
  .page-form table.form tbody,
  .page-form table.form tr,
  .page-form table.form th,
  .page-form table.form td {
    display: block;
    width: 100%;
  }

  .page-form table.form th {
    padding: 16px 4px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .page-form table.form td {
    padding: 8px 4px 16px;
  }

  .page-form table.form td[colspan="6"],
  .page-form table.form th[colspan="2"] {
    padding-top: 24px;
  }

  .page-form #btnarea ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .page-form #btnarea ul li {
    flex: 1 1 0;
    min-width: 0;
  }

  .page-form #btnarea .btn-apply,
  .page-form #btnarea .btn-sub {
    width: 100%;
    min-width: 0;
    padding: 14px 10px;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .page-form .name-field {
    width: 100%;
  }

  .page-form table.form .name-field input.name {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn-apply,
  .btn-sub {
    transition: none;
  }

  .btn-apply:hover,
  .btn-sub:hover {
    transform: none;
  }
}

@media print {
  body.page-home,
  body.page-form {
    background: #fff;
  }

  .hero {
    background: none;
  }

  .panel {
    margin-top: 0;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .btn-apply {
    box-shadow: none;
    background: #fff;
    color: #000 !important;
    border: 1px solid #000;
  }

  #footer {
    background: none;
    color: #000;
  }
}
