/* =========================================================
   お問い合わせ｜あるふぁ
   contact.css v1.0
   水彩風 / 水色＋白 / スマホファースト
========================================================= */

/* ------------------------------
   01. 変数
------------------------------ */
:root {
  --color-main: #7ecfe6;
  --color-main-dark: #45aac6;
  --color-main-soft: #dff7fb;
  --color-main-pale: #f4fcfe;
  --color-accent: #8fe0ee;

  --color-text: #35525c;
  --color-heading: #247996;
  --color-muted: #6d8790;
  --color-white: #ffffff;

  --color-border: rgba(126, 207, 230, 0.34);
  --color-glass: rgba(255, 255, 255, 0.78);

  --shadow-soft: 0 12px 35px rgba(91, 166, 190, 0.18);
  --shadow-card: 0 8px 24px rgba(91, 166, 190, 0.13);
  --shadow-strong: 0 20px 60px rgba(54, 142, 168, 0.22);

  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --header-height: 72px;
  --container-width: 980px;

  --ease-main: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------
   02. リセット・基本
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    system-ui,
    sans-serif;
  line-height: 1.9;
  background:
    radial-gradient(circle at 10% 8%, rgba(126, 207, 230, 0.22), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(206, 241, 249, 0.58), transparent 30%),
    radial-gradient(circle at 50% 94%, rgba(143, 224, 238, 0.18), transparent 32%),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 48%, #f2fbfd 100%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(69, 170, 198, 0.45);
  outline-offset: 4px;
}

/* ------------------------------
   03. 共通
------------------------------ */
.container {
  width: min(100% - 32px, var(--container-width));
  margin-inline: auto;
}

.section-label {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 3px 13px;
  border-radius: var(--radius-pill);
  color: #34869b;
  background: rgba(223, 247, 251, 0.95);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--color-heading);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 10vw, 4rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 6vw, 2.1rem);
}

p {
  font-size: 1rem;
}

/* ------------------------------
   04. ヘッダー
------------------------------ */
.contact-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(126, 207, 230, 0.25);
  backdrop-filter: blur(16px);
}

.header-logo {
  color: #247996;
  font-weight: 900;
  line-height: 1.45;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  color: #397d92;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.22s var(--ease-main),
    box-shadow 0.22s var(--ease-main);
}

.header-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 166, 190, 0.2);
}

/* ------------------------------
   05. ヒーロー
------------------------------ */
.contact-hero {
  position: relative;
  padding: 84px 0 42px;
  text-align: center;
  overflow: hidden;
}

.contact-hero::before {
  content: "🌿";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  opacity: 0.85;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 18px 16px auto;
  height: 180px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(126, 207, 230, 0.16), transparent 62%);
  filter: blur(14px);
  z-index: -1;
}

.contact-hero .container {
  width: min(100% - 32px, 860px);
  padding: 34px 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 16% 18%, rgba(126, 207, 230, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.74));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.contact-hero p:last-child {
  margin-bottom: 0;
  color: #466975;
  font-weight: 700;
}

/* ------------------------------
   06. お問い合わせエリア
------------------------------ */
.contact-section {
  padding: 42px 0 72px;
}

.contact-section .container {
  display: grid;
  gap: 24px;
}

.support-message,
.contact-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.74));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.support-message {
  padding: 28px 20px;
  text-align: center;
}

.support-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(223, 247, 251, 0.95);
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(91, 166, 190, 0.14);
}

.support-message p {
  margin-bottom: 0;
  color: #466975;
}
/* ------------------------------
   07. フォーム
------------------------------ */
.contact-form {
  padding: 28px 20px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  color: #2f788c;
  font-weight: 900;
}

.form-group label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: linear-gradient(135deg, #5fc6df, #9ae6ef);
  font-size: 0.72rem;
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(126, 207, 230, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  box-shadow: 0 6px 18px rgba(91, 166, 190, 0.07);
  transition:
    border-color 0.22s var(--ease-main),
    box-shadow 0.22s var(--ease-main),
    background 0.22s var(--ease-main);
}

input,
select {
  min-height: 52px;
  padding: 12px 16px;
}

textarea {
  min-height: 180px;
  padding: 14px 16px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94abb3;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(69, 170, 198, 0.8);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(126, 207, 230, 0.16),
    0 10px 24px rgba(91, 166, 190, 0.12);
  outline: none;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #45aac6 50%),
    linear-gradient(135deg, #45aac6 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 46px;
}

.privacy-box {
  margin: 22px 0 14px;
  padding: 16px;
  border: 1px solid rgba(126, 207, 230, 0.34);
  border-radius: 20px;
  background: rgba(223, 247, 251, 0.42);
}

.privacy-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #466975;
  font-weight: 800;
}

.privacy-box input {
  width: 20px;
  height: 20px;
  min-height: auto;
  margin-top: 5px;
  accent-color: var(--color-main-dark);
  box-shadow: none;
  flex: 0 0 auto;
}

.privacy-box a {
  color: #247996;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  background: linear-gradient(135deg, #5fc6df, #9ae6ef);
  font-weight: 900;
  font-size: 1.02rem;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.24s var(--ease-main),
    box-shadow 0.24s var(--ease-main),
    opacity 0.24s var(--ease-main);
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(91, 166, 190, 0.26);
}

.submit-button:active {
  transform: translateY(-1px) scale(0.99);
}

.submit-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ------------------------------
   08. バナーリンク
------------------------------ */
.contact-banner-section {
  padding: 0 0 72px;
}

.banner-links {
  display: grid;
  gap: 16px;
}

.site-banner {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(126, 207, 230, 0.34);
  color: #2f788c;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.92), transparent 36%),
    linear-gradient(135deg, rgba(223,247,251,.96), rgba(255,255,255,.92));
  box-shadow: var(--shadow-card);
  text-align: left;
  transition:
    transform 0.24s var(--ease-main),
    box-shadow 0.24s var(--ease-main);
}

.site-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -36px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(126, 207, 230, 0.18);
}

.site-banner::after {
  content: "→";
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background: linear-gradient(135deg, #6dccdf, #98e4ee);
  font-weight: 900;
}

.site-banner span {
  position: relative;
  color: #5b93a4;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-banner strong {
  position: relative;
  padding-right: 44px;
  color: #247996;
  font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  line-height: 1.45;
}

.site-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.instagram-banner {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(135deg, #fff7fb, #e5f9fd 72%);
}

.homepage-banner {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(135deg, #f2fbfd, #ffffff 72%);
}

/* ------------------------------
   09. フッター
------------------------------ */
.contact-footer {
  padding: 46px 0 80px;
  text-align: center;
  color: #4d7480;
  background:
    linear-gradient(180deg, rgba(242,251,253,0), rgba(223,247,251,.85));
}

.footer-name {
  margin-bottom: 8px;
  color: #247996;
  font-size: 1.18rem;
  font-weight: 900;
}

.contact-footer p {
  margin: 6px 0;
}

/* ------------------------------
   10. Toast
------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10000;
  width: min(calc(100% - 32px), 520px);
  padding: 14px 20px;
  border-radius: 18px;
  color: #2f788c;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition:
    opacity 0.28s var(--ease-main),
    transform 0.28s var(--ease-main);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* ------------------------------
   11. アニメーション
------------------------------ */
.contact-hero .container,
.support-message,
.contact-form,
.site-banner {
  animation: fadeUp 0.75s ease both;
}

.support-message {
  animation-delay: 0.08s;
}

.contact-form {
  animation-delay: 0.16s;
}

.site-banner:nth-child(1) {
  animation-delay: 0.08s;
}

.site-banner:nth-child(2) {
  animation-delay: 0.16s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------
   12. PC・タブレット調整
------------------------------ */
@media (min-width: 720px) {
  .contact-header {
    padding-inline: 28px;
  }

  .contact-hero {
    padding: 104px 0 56px;
  }

  .contact-hero .container {
    padding: 48px 44px;
  }

  .contact-section {
    padding: 56px 0 96px;
  }

  .contact-section .container {
    grid-template-columns: 0.9fr 1.4fr;
    align-items: start;
    gap: 28px;
  }

  .support-message {
    position: sticky;
    top: calc(var(--header-height) + 22px);
    padding: 34px 26px;
  }

  .contact-form {
    padding: 36px 32px;
  }

  .submit-button {
    width: fit-content;
    min-width: 260px;
    display: flex;
    margin-inline: auto;
    padding-inline: 34px;
  }

  .banner-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-banner {
    min-height: 136px;
    padding: 28px 30px;
  }
}

@media (min-width: 1040px) {
  .contact-section .container {
    grid-template-columns: 360px 1fr;
    gap: 34px;
  }
}

/* ------------------------------
   13. スマホ調整
------------------------------ */
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container-width));
  }

  .contact-header {
    min-height: 64px;
    padding: 9px 12px;
  }

  .header-logo {
    font-size: 0.9rem;
  }

  .header-link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .contact-hero {
    padding: 76px 0 36px;
  }

  .contact-hero .container {
    padding: 30px 16px;
    border-radius: 28px;
  }

  .contact-section {
    padding: 36px 0 64px;
  }

  .support-message,
  .contact-form {
    border-radius: 24px;
  }

  .support-message {
    padding: 26px 16px;
  }

  .contact-form {
    padding: 26px 16px;
  }

  input,
  select {
    min-height: 50px;
  }

  textarea {
    min-height: 160px;
  }

  .privacy-box {
    padding: 14px;
  }

  .contact-banner-section {
    padding-bottom: 64px;
  }

  .site-banner {
    min-height: 108px;
    padding: 20px 18px;
    border-radius: 22px;
  }

  .site-banner::after {
    right: 18px;
    bottom: 16px;
  }

  .contact-footer {
    padding-bottom: 72px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, var(--container-width));
  }

  .contact-hero .container,
  .support-message,
  .contact-form {
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  h2 {
    font-size: 1.35rem;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    font-size: 0.95rem;
  }

  input,
  select,
  textarea {
    border-radius: 16px;
  }

  .submit-button {
    min-height: 54px;
  }
}

/* ------------------------------
   14. 動きが苦手な方向け
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------
   15. 印刷
------------------------------ */
@media print {
  .contact-header,
  .contact-banner-section,
  .submit-button,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .contact-hero,
  .contact-section {
    padding: 24px 0;
  }

  .container {
    width: 100%;
  }

  .support-message,
  .contact-form {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ------------------------------
   16. 最終微調整
------------------------------ */
html {
  scroll-padding-top: calc(var(--header-height) + 12px);
}

main {
  overflow: hidden;
}

input,
select,
textarea,
button {
  touch-action: manipulation;
}
