:root {
  --brand: #00a5c8;
  --brand-dark: #0085a4;
  --accent: #edf7fb;
  --text: #1b2a3d;
  --muted: #6f7b8a;
  --border: #e2e8f0;
  --shadow: rgba(10, 46, 78, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f6fafc 0%, #f0f4f8 100%);
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.app-header {
  background: #ffffffd9;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.footer-inner {
  width: min(960px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.app-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 80px;
}

.auth-panel {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 35px 90px rgba(12, 63, 103, 0.16);
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -120px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at center, rgba(0, 165, 200, 0.18), transparent 70%);
  z-index: 0;
}

.auth-panel > * {
  position: relative;
  z-index: 1;
}

.auth-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.auth-subtitle {
  margin: 12px 0 32px;
  color: var(--muted);
  font-size: 0.98rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 600;
  font-size: 0.94rem;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f9fbfd;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 165, 200, 0.15);
}

.input-group input::placeholder {
  color: #a0afc0;
}

.primary-button {
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 18px 35px rgba(0, 165, 200, 0.22);
}

.primary-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(0, 133, 164, 0.28);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 14px 30px rgba(0, 133, 164, 0.22);
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.button-row .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-row .button--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 18px 35px rgba(0, 165, 200, 0.22);
}

.button-row .button--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(0, 133, 164, 0.28);
}

.button-row .button--ghost {
  background: rgba(0, 165, 200, 0.08);
  color: var(--brand);
}

.button-row .button--ghost:hover {
  background: rgba(0, 133, 164, 0.12);
  transform: translateY(-1px);
}

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

.form-note strong {
  color: var(--text);
}

.status-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: var(--accent);
  border: 1px solid rgba(0, 165, 200, 0.18);
}

.status-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.status-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.app-footer {
  background: #ffffffd9;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.footer-inner {
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--brand);
}

.copyright {
  font-size: 0.86rem;
  color: var(--muted);
}

.password-theme-page {
  background: #fff;
  color: #111;
}

.password-theme-page .primary-button {
  border: 1px solid #E7316E;
  background: #fff;
  color: #E7316E;
  box-shadow: none;
  font-weight: 700;
}

.password-theme-page .primary-button:hover,
.password-theme-page .primary-button:active {
  background: #E7316E;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.password-change-page {
  display: block;
}

.password-theme-main {
  width: min(930px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 60px;
}

.password-theme-logo {
  display: flex;
  justify-content: center;
}

.password-theme-logo .signin-logo-image {
  height: 54px;
}

.password-theme-heading {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.password-theme-heading .mypage-user-badge {
  width: 22px;
  height: 22px;
  border: 4px solid #E7316E;
}

.password-theme-heading h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.password-theme-subtitle {
  margin: 8px 0 26px;
  color: #000;
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: 0.05em;
}

.password-theme-panel {
  background: #FFF6F9;
  border-radius: 20px;
  padding: 65px 64px 54px;
}

.password-theme-form {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  column-gap: 44px;
  row-gap: 26px;
}

.password-theme-form .input-group {
  display: contents;
}

.password-theme-form .input-group label {
  color: #E7316E;
  font-size: 16px;
  font-weight: 700;
}

.password-theme-form .input-group input {
  height: 50px;
  border-radius: 6px;
  border: 1px solid #D9D9D9;
  background: #FFFFFF;
  font-size: 14px;
  padding: 0 16px;
}

.password-theme-form .input-group input::placeholder {
  color: #AFAFAF;
}

.password-theme-form .primary-button {
  grid-column: 1 / -1;
  margin-top: 20px;
  justify-self: center;
  width: 260px;
  height: 62px;
  padding: 0;
  font-size: 16px;
}

.password-theme-note {
  margin-top: 24px;
  text-align: center;
  color: #1E1E1E;
  font-size: 13px;
  line-height: 1.54;
}

.password-theme-note a {
  color: #E7316E;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}

/* ===== 共通ヘッダー（result.html と同型） ===== */
.result-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
}

.result-header .brand {
  display: inline-flex;
  align-items: center;
}

.result-header .brand img,
.result-header .brand-logo {
  height: 56px;
  width: auto;
}

.account-button {
  display: block;
  width: 60px;
  height: 60px;
  background: #E7316E;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.account-button::before,
.account-button::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
}

.account-button::before {
  top: 15px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.account-button::after {
  bottom: 12px;
  width: 28px;
  height: 14px;
  border-radius: 14px 14px 8px 8px;
}

.password-reset-page .app-header,
.password-reset-page .app-footer {
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.password-reset-page .header-inner,
.password-reset-page .footer-inner {
  width: min(930px, calc(100% - 48px));
  justify-content: center;
}

.password-reset-page .app-main {
  padding: 26px 24px 72px;
}

.password-reset-page .auth-panel {
  width: min(930px, 100%);
  background: #f8f0f4;
  border-radius: 28px;
  box-shadow: none;
  padding: 56px 64px;
}

.password-reset-page .auth-panel::before {
  content: none;
}

.password-reset-page .auth-title {
  color: #111;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2.6rem;
}

.password-reset-page .auth-title::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 5px solid #f4287e;
  border-radius: 50%;
  flex-shrink: 0;
}

.password-reset-page .auth-subtitle {
  margin: 16px 0 32px;
  color: #111;
  font-size: 1.3rem;
}

.password-reset-page .input-group {
  gap: 12px;
}

.password-reset-page .input-group label {
  color: #f4287e;
  font-size: 1.2rem;
  font-weight: 700;
}

.password-reset-page .input-group input {
  height: 62px;
  border-radius: 9px;
  border: 1px solid #c8ced6;
  background: #f2f2f2;
  font-size: 1.1rem;
}

.password-reset-page .input-group input:focus {
  border-color: #f4287e;
  box-shadow: 0 0 0 3px rgba(244, 40, 126, 0.15);
}

.password-reset-page .primary-button {
  margin-top: 10px;
}

.password-reset-page .form-note {
  color: #111;
  font-size: 0.95rem;
}

.password-reset-page .form-note a,
.password-reset-page .footer-links a {
  color: #f4287e;
}

@media (max-width: 960px) {
  .result-header {
    height: 80px;
    padding: 0 20px;
  }

  .result-header .brand img,
  .result-header .brand-logo {
    height: 36px;
  }

  .account-button {
    width: 42px;
    height: 42px;
    border-radius: 40px;
  }

  .account-button::before {
    top: 9px;
    width: 12px;
    height: 12px;
  }

  .account-button::after {
    bottom: 8px;
    width: 20px;
    height: 11px;
    border-radius: 10px 10px 6px 6px;
  }

  .password-theme-main {
    width: calc(100% - 40px);
    padding: 0 0 36px;
  }

  .password-theme-heading {
    margin-top: 30px;
  }

  .password-theme-heading .mypage-user-badge {
    width: 20px;
    height: 20px;
  }

  .password-theme-heading h1 {
    font-size: 20px;
  }

  .password-theme-subtitle {
    font-size: 13px;
    line-height: 23px;
    margin: 8px 0 0;
  }

  .password-theme-panel {
    border-radius: 0;
    margin: 0 -20px;
    padding: 30px 25px 40px;
  }

  .password-theme-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .password-theme-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .password-theme-form .input-group label {
    font-size: 14px;
  }

  .password-theme-form .input-group input {
    height: 46px;
    font-size: 13px;
    padding: 0 15px;
  }

  .password-theme-form .primary-button {
    margin-top: 40px;
    font-size: 16px;
    width: 260px;
  }

  .password-theme-note {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
  }

  .password-reset-page .header-inner,
  .password-reset-page .footer-inner {
    width: calc(100% - 40px);
  }

  .password-reset-page .app-main {
    padding: 10px 20px 44px;
  }

  .password-reset-page .auth-panel {
    border-radius: 0;
    margin: 0 -20px;
    padding: 32px 20px;
  }

  .password-reset-page .auth-title {
    font-size: 2rem;
  }

  .password-reset-page .auth-subtitle {
    font-size: 1rem;
  }

}

@media (max-width: 720px) {
  .auth-panel {
    padding: 36px 28px;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 1.6rem;
  }

  .header-inner,
  .footer-inner {
    width: 92%;
  }
}

@media (max-width: 480px) {
  body {
    background: #f4f7fb;
  }

  .app-main {
    padding: 48px 12px 64px;
  }

  .auth-panel {
    padding: 32px 22px;
    width: 100%;
  }

  .button-row {
    margin-top: 24px;
  }
}

.signin-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  background: #fff;
  color: #111;
  display: block;
}


.pill-button {
  min-width: 160px;
  padding: 16px 24px;
  border-radius: 40px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.pill-button--pink {
  background: #E7316E;
}

.pill-button--blue {
  background: #00A2DE;
}

.signin-main {
  max-width: 1080px;
  margin: 0 auto;
}

.signin-hero {
  min-height: 220px;
  padding: 48px 56px 36px;
  border-bottom: 1px solid #E7316E;
}

.signin-hero-en {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.signin-hero-title {
  margin: 4px 0 0;
  font-size: 48px;
  color: #E7316E;
  line-height: 1.2;
}

.signin-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.82fr;
  align-items: center;
  gap: 30px;
  padding: 52px 56px 46px;
  border-bottom: 1px solid #FF8E3F;
}

.signin-card {
  background: #FFF6F9;
  border-radius: 20px;
  padding: 46px 40px 38px;
  max-width: 520px;
}

.signin-form {
  display: flex;
  flex-direction: column;
}

.signin-field {
  margin-bottom: 20px;
}

.signin-field label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1E1E1E;
}

.signin-field label span {
  color: #E7316E;
}

.signin-field input {
  width: 100%;
  height: 50px;
  border: 1px solid #D9D9D9;
  border-radius: 6px;
  background: #fff;
  padding: 0 16px;
  font-size: 14px;
}

.signin-login-button {
  margin-top: 10px;
  align-self: center;
  width: 260px;
  height: 62px;
  border: 1px solid #E7316E;
  border-radius: 40px;
  background: #fff;
  color: #E7316E;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.signin-forgot {
  margin: 18px 0 0;
  text-align: center;
}

.signin-forgot a {
  color: #E7316E;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.signup-guide {
  text-align: center;
  padding: 10px 10px 0;
}

.signup-inline-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.signup-inline-field {
  text-align: left;
}

.signup-inline-field label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #101017;
}

.signup-inline-field label span {
  color: #ff2f87;
}

.signup-inline-field input {
  width: 100%;
  height: 48px;
  border: 1px solid #d4dbe4;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  font-size: 1rem;
}

.signup-guide-head {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1E1E1E;
}

.signup-guide-button {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 62px;
  border: none;
  border-radius: 40px;
  background: #FF8E3F;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.signup-guide-note {
  margin: 34px 0 0;
  font-size: 13px;
  line-height: 1.54;
  text-align: center;
  color: #000;
}

.signin-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.signin-footer-copy {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.signin-footer-links {
  display: flex;
  gap: 22px;
}

.signin-footer-links a {
  color: #111;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 960px) {
  .pill-button {
    font-size: 12px;
    min-width: 92px;
    padding: 12px 16px;
  }

  .signin-hero {
    min-height: 0;
    padding: 24px 20px 20px;
  }

  .signin-hero-title {
    font-size: 36px;
  }

  .signin-content {
    grid-template-columns: 1fr;
    padding: 24px 20px 40px;
    gap: 32px;
  }

  .signin-card {
    max-width: 100%;
    padding: 28px 20px;
  }

  .signin-field label {
    font-size: 14px;
  }

  .signin-field input {
    height: 46px;
    font-size: 14px;
  }

  .signin-forgot a {
    font-size: 14px;
  }

  .signup-guide-note {
    font-size: 12px;
  }

  .signin-footer {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px;
    gap: 12px;
  }

  .signin-footer-copy {
    font-size: 10px;
  }

  .signin-footer-links {
    gap: 24px;
  }

  .signin-footer-links a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .pill-button {
    min-width: 92px;
    font-size: 12px;
    padding: 10px 14px;
  }

  .signup-inline-form {
    margin-top: 20px;
    gap: 14px;
  }

  .signup-inline-field label {
    font-size: 1.1rem;
  }

  .signup-inline-field input {
    height: 54px;
    font-size: 1rem;
  }
}

.my-page {
  background: #fff;
  color: #111;
  min-height: 100vh;
}

.my-page a {
  color: inherit;
}

.mypage-header,
.mypage-main,
.mypage-footer {
  width: min(900px, 90%);
  margin: 0 auto;
}

.mypage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.mypage-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mypage-outline-button {
  padding: 9px 28px;
  border: 1px solid #121212;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}

.mypage-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: #f4287e;
  color: #fff;
}

.mypage-main {
  padding: 18px 0 44px;
}

.mypage-username {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mypage-user-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 5px solid #f4287e;
  display: inline-block;
}

.mypage-username h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mypage-panel {
  background: #fff8fb;
  border-radius: 24px;
  padding: 28px;
  margin-top: 67px;
}

.mypage-profile-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mypage-label {
  margin: 0 0 8px;
  color: #f4287e;
  font-size: 16px;
  font-weight: 500;
}

.mypage-value {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.mypage-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.mypage-menu-card {
  min-height: 116px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 12px;
}

.mypage-menu-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f4287e;
  color: #fff;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mypage-menu-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.mypage-menu-arrow {
  margin-left: auto;
  color: #f4287e;
  font-size: 1.5rem;
  line-height: 1;
}

.mypage-links {
  margin-top: 16px;
  display: flex;
  gap: 24px;
}

.mypage-links a {
  font-size: 14px;
  color: #f4287e;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mypage-signout {
  margin: 18px 0 0 auto;
  width: 160px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  color: #c8c8c8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 10px;
  white-space: nowrap;
  pointer-events: auto;
}

.mypage-footer {
  border-top: 1px solid #f28a3b;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: auto;
}

.my-page .footer-links {
  display: flex;
  gap: 40px;
}

.my-page .copyright {
  color: #111;
}

.mypage-settings-page {
  display: block;
}

.mypage-settings-main {
  padding-top: 12px;
}

.mypage-settings-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mypage-settings-heading h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.mypage-settings-panel {
  max-width: 900px;
}

.mypage-settings-subtitle {
  margin: 0;
  color: #111;
  font-size: 1.4rem;
  line-height: 1.7;
}

.mypage-settings-form {
  margin-top: 26px;
  gap: 18px;
}

.mypage-settings-form .input-group {
  gap: 10px;
}

.mypage-settings-form .input-group label {
  color: #f4287e;
  font-size: 1.25rem;
  font-weight: 700;
}

.mypage-settings-form .input-group input {
  height: 62px;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  background: #fff;
  font-size: 1.25rem;
  padding: 0 16px;
}

.mypage-settings-form .primary-button {
  margin-top: 12px;
  width: min(380px, 100%);
  align-self: center;
  border: 1px solid #f4287e;
  border-radius: 999px;
  background: #fff;
  color: #f4287e;
  box-shadow: none;
  font-size: 1.65rem;
  font-weight: 700;
  padding: 16px 24px;
}

.mypage-settings-form .primary-button:hover,
.mypage-settings-form .primary-button:active {
  background: #f4287e;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.mypage-settings-note {
  margin-top: 20px;
  text-align: left;
  font-size: 1.05rem;
}

.mypage-settings-note a {
  color: #f4287e;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .mypage-header,
  .mypage-main,
  .mypage-footer {
    width: calc(100% - 40px);
  }

  .mypage-header {
    padding-top: 18px;
    padding-bottom: 18px;
  }

    .mypage-outline-button {
    display: none;
  }

  .mypage-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }

  .mypage-main {
    padding: 24px 0 46px;
  }

  .mypage-username {
    margin-bottom: 18px;
  }

  .mypage-username h1 {
    font-size: 32px;
  }

  .mypage-user-badge {
    width: 24px;
    height: 24px;
    border-width: 5px;
  }

  .mypage-panel {
    border-radius: 0;
    margin: 69px -20px 0;
    padding: 26px 20px 32px;
  }

  .mypage-profile-card,
  .mypage-menu-grid {
    grid-template-columns: 1fr;
  }

  .mypage-profile-card {
    padding: 24px;
    gap: 20px;
  }

  .mypage-label {
    font-size: 16px;
  }

  .mypage-value {
    font-size: 16px;
  }

  .mypage-menu-card {
    min-height: 130px;
    padding: 18px 24px;
  }

  .mypage-menu-icon {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }

  .mypage-menu-text {
    font-size: 24px;
  }

  .mypage-menu-arrow {
    font-size: 2.2rem;
  }

  .mypage-links {
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

  .mypage-links a {
    font-size: 14px;
  }

  .mypage-signout {
    width: 160px;
    height: 52px;
    margin: 24px auto 0;
    font-size: 14px;
  }

  .mypage-footer {
    flex-direction: column-reverse;
    gap: 10px;
    font-size: 12px;
    text-align: center;
    padding: 18px 0 26px;
  }

  .my-page .footer-links {
    gap: 28px;
  }

  .mypage-settings-main {
    padding-top: 6px;
  }

  .mypage-settings-heading {
    margin-bottom: 18px;
  }

  .mypage-settings-heading h1 {
    font-size: 2.2rem;
  }

  .mypage-settings-subtitle {
    font-size: 1rem;
  }

  .mypage-settings-form {
    margin-top: 18px;
  }

  .mypage-settings-form .input-group label {
    font-size: 1.06rem;
  }

  .mypage-settings-form .input-group input {
    height: 52px;
    font-size: 1rem;
  }

  .mypage-settings-form .primary-button {
    width: 100%;
    font-size: 1.3rem;
    padding: 14px 20px;
  }

  .mypage-settings-note {
    font-size: 0.95rem;
  }
}

.signup-screen {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  background: #fff;
  color: #111;
}

.signup-header {
  padding-top: 72px;
}

.signup-header-inner,
.signup-main {
  width: min(930px, calc(100% - 48px));
  margin: 0 auto;
}

.signup-header-inner {
  display: flex;
  justify-content: center;
}

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

.signup-logo-image {
  height: 44px;
  width: auto;
  display: block;
}

.signup-intro {
  margin-top: 78px;
}

.signup-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.signup-title-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #FF8E3F;
  flex-shrink: 0;
}

.signup-subtitle {
  margin: 16px 0 0 36px;
  font-size: 14px;
  line-height: 1.8;
  color: #171717;
}

.signup-form-area {
  margin-top: 40px;
  margin-bottom: 40px;
  background: #FFF6EA;
  border-radius: 20px;
  padding: 66px 64px 52px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.signup-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  column-gap: 22px;
}

.signup-row label {
  color: #FF8E3F;
  font-size: 16px;
  font-weight: 700;
}

.signup-row input {
  width: 100%;
  height: 50px;
  border: 1px solid #D9D9D9;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 0 20px;
  font-size: 14px;
  color: #111;
}

.signup-row input::placeholder {
  color: #9e9e9e;
}

.signup-submit {
  margin: 22px auto 0;
  width: 260px;
  height: 62px;
  border: none;
  border-radius: 40px;
  background: #FF8E3F;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.signup-note {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
}

.signup-note p {
  margin: 0;
}

.signup-note a {
  color: #FF8E3F;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== signup.html SP ===== */
@media (max-width: 960px) {
  .signup-header {
    padding-top: 32px;
  }

  .signup-intro {
    margin-top: 28px;
  }

  .signup-subtitle {
    font-size: 13px;
    line-height: 23px;
    letter-spacing: 0.05em;
    margin-left: 32px;
  }

  .signup-form-area {
    border-radius: 0;
    margin: 24px -24px 0;
    padding: 30px 24px 40px;
  }

  .signup-form {
    gap: 24px;
  }

  .signup-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signup-row label {
    font-size: 14px;
  }

  .signup-row input {
    height: 46px;
    font-size: 13px;
  }

  .signup-submit {
    margin-top: 40px;
  }

  .signup-note {
    margin-top: 24px;
    font-size: 12px;
    line-height: 20px;
  }
}
