@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  color: #20313a;
  background: #f8f8f4;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, #e8f2ed 0, transparent 34%),
    radial-gradient(circle at 92% 72%, #f3e9d7 0, transparent 32%),
    #f8f8f4;
}
.shell {
  max-width: 1240px;
  min-height: 100vh;
  margin: auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d8e0dc;
}
.product-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.product-logo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; object-fit: contain; }
.product-brand:focus-visible { outline: 2px solid #24554c; outline-offset: 5px; border-radius: 5px; }
.product-brand-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.product-brand-copy strong { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.product-brand-copy > span { font-size: 11px; letter-spacing: .01em; color: #65777e; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #946939; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0 48px;
}
.intro, .card { min-width: 0; }
.eyebrow { display: flex; gap: 9px; align-items: center; }
.intro h1 {
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -.045em;
  margin: 18px 0 24px;
}
.intro h1 em { font-style: normal; color: #a87840; white-space: nowrap; }
.lead { font-size: 15px; line-height: 1.9; max-width: 480px; color: #52646d; margin: 0; }
.steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; color: #52646d; font-size: 11px; letter-spacing: .02em; }
.arrow { color: #a87840; font-size: 18px; }
.card, .result, .login-card {
  border: 1px solid #d8e1df;
  background: #fff;
  box-shadow: 0 24px 55px #344c4814;
  border-radius: 15px;
}
.card { padding: clamp(22px, 2.4vw, 32px); }
.field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.field-head label, legend, .login-card label { font-size: 14px; font-weight: 700; }
#counter { font-size: 11px; color: #74858b; }
textarea, input[type=password] {
  width: 100%;
  background: #fbfcfb;
  border: 1px solid #b9c9ca;
  border-radius: 8px;
  color: #20313a;
  font: inherit;
  outline: none;
}
textarea { resize: vertical; min-height: 205px; padding: 18px; line-height: 1.85; font-size: 14px; }
textarea::placeholder { color: #73858b; opacity: 1; }
textarea:focus, input[type=password]:focus { border-color: #a87840; box-shadow: 0 0 0 3px #d8bb923b; }
.hint, .privacy, .result-foot { font-size: 11px; line-height: 1.75; color: #65777e; }
.hint { margin: 9px 0 26px; }
.language { border: 0; padding: 0; margin: 0 0 25px; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.language legend { width: 100%; margin-bottom: 11px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1px solid #afbec1; border-radius: 6px; color: #41565e; padding: 9px 17px; font-size: 13px; background: #fff; }
.choice input:checked + span { background: #e5efe9; color: #174d46; border-color: #7fa99a; font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid #a87840; outline-offset: 2px; }
.cf-turnstile { margin: 0 0 20px; max-width: 100%; }
.primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 7px;
  background: #24554c;
  color: #fff;
  padding: 16px 19px;
  font: 700 14px 'DM Sans', 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.primary:hover { background: #317062; transform: translateY(-1px); }
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
.privacy { margin: 17px 0 0; }
.result { padding: 27px 32px; margin-bottom: 30px; }
.result-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.result h2 { margin: 6px 0 0; font-size: 25px; font-weight: 500; }
.copy { border: 1px solid #8c673d; color: #75532e; background: #fff; border-radius: 6px; padding: 10px 17px; font: inherit; font-size: 12px; cursor: pointer; }
.copy:hover { background: #faf3e9; }
#style-text { font-size: 17px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; margin: 28px 0; border-left: 3px solid #bd905b; padding-left: 20px; }
.result-foot { margin-bottom: 0; }
#status { min-height: 24px; color: #825827; margin: 0 0 22px; font-size: 13px; }
#status:empty { min-height: 0; margin: 0; }
.explain { max-width: 800px; margin: 16px 0 40px; padding: 24px 0 0; border-top: 1px solid #d8e0dc; }
.explain h2 { font-size: 17px; font-weight: 600; margin: 0 0 13px; }
.explain h3 { font-size: 13px; font-weight: 600; margin: 19px 0 6px; }
.explain p { font-size: 12px; line-height: 1.85; color: #52646d; margin: 0; }
.explain a, .privacy a, footer a { color: #24554c; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid #d8e0dc; padding: 23px 0 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: #71838a; font-size: 11px; letter-spacing: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer nav a { color: #52646d; }
.site-footer nav a:hover { color: #24554c; }
.site-footer nav span { color: inherit; }
.legal-content { margin-top: 34px; }
.login-shell { max-width: 650px; }
.login-card { padding: 45px; margin: auto 0; }
.login-card h1 { font-size: clamp(55px, 9vw, 80px); margin: 26px 0; }
.login-card p { color: #52646d; line-height: 1.8; }
.login-card form { margin-top: 38px; }
.login-card label { display: block; margin-bottom: 10px; }
.login-card input { height: 49px; padding: 10px 14px; margin-bottom: 20px; }
@media (max-width: 850px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 0 36px; }
  .intro { max-width: 680px; }
  .intro h1 { font-size: clamp(36px, 6vw, 48px); }
  .steps { margin-top: 28px; }
  .card { width: 100%; max-width: 680px; }
}
@media (max-width: 560px) {
  .shell { padding: 0 20px; }
  .topbar { min-height: 72px; }
  .product-brand { gap: 10px; }
  .product-logo { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
  .product-brand-copy strong { font-size: 16px; }
  .product-brand-copy > span { font-size: 10px; }
  .layout { gap: 26px; padding: 28px 0 32px; }
  .card, .result { padding: 22px 18px; }
  .intro h1 { font-size: clamp(32px, 8.5vw, 40px); line-height: 1.4; margin: 16px 0 20px; }
  .steps { gap: 8px; font-size: 10px; }
  .lead { font-size: 14px; }
  textarea { min-height: 170px; }
  .login-card { padding: 30px 23px; }
}

/* Keep the minimum 300px Turnstile widget inside very narrow phone viewports. */
@media (max-width: 360px) {
  .shell { padding: 0 8px; }
  .card { padding: 18px 2px; border: 0; box-shadow: none; background: transparent; }
  .intro h1 { font-size: 31px; }
}
