/* Smartphone design overrides. Desktop styles remain in style.css/subpages.css. */
.menu-toggle {
  display: none;
}

.brand-break,
.footer-address-break,
.mobile-break {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --site-header-height: 64px;
  }

  br.pc {
    display: none !important;
  }

  br.sp {
    display: inline !important;
  }

  body {
    font-size: 15px;
    overflow-wrap: break-word;
  }

  .container {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 64px;
    min-height: 64px;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0 16px 0 12px;
  }

  .brand {
    padding: 0;
    gap: 8px;
    min-width: 0;
  }

  .brand img {
    width: 100px;
    height: 48px;
  }

  .brand > span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
  }

  .brand-break {
    display: block;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    z-index: 2;
  }

  .menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s, width .25s;
  }

  .menu-toggle span:last-child {
    width: 18px;
    align-self: flex-start;
  }

  .menu-toggle[aria-expanded=true] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded=true] span:nth-child(3) {
    width: 28px;
    transform: translateY(-8px) rotate(-45deg);
  }

  .header-nav {
    position: fixed;
    inset: var(--site-header-height) 0 0;
    height: calc(100vh - var(--site-header-height));
    height: calc(100dvh - var(--site-header-height));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    padding: 40px 20px max(40px, env(safe-area-inset-bottom));
    margin: 0;
    background: var(--off-white);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, visibility .2s;
  }

  .header-nav > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 57px;
    padding: 18px 14px 18px 0;
    border-top: 1px solid #d6d6d6;
    font-size: 18px;
    font-weight: 700;
  }

  .header-nav > a:not(.header-contact):after {
    content: '›';
    font-size: 28px;
    font-weight: 400;
    color: var(--cyan);
    line-height: 1;
  }

  .header-nav > a:nth-last-child(2) {
    border-bottom: 1px solid #d6d6d6;
  }

  .header-nav > .header-contact {
    display: flex;
    position: relative;
    justify-content: center;
    align-self: auto;
    width: 100%;
    min-height: 64px;
    margin: 56px 0 0;
    padding: 16px 52px 16px 35px;
    border: 0;
    border-radius: 4px;
    color: white;
    font-size: 22px;
    background: linear-gradient(110deg, var(--blue), var(--dark-blue));
  }

  .header-contact span {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
  }

  .header-contact > span:before,
  .header-contact > span:after,
  .button > span:before,
  .button > span:after {
    left: calc(50% - 5.5px);
    width: 11px;
    height: 2px;
    transform-origin: 10.5px center;
  }

  .menu-open {
    overflow: hidden;
  }

  .menu-open .header-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-open .site-header:before {
    opacity: 1;
  }

  .hero {
    max-height: none;
    overflow: visible;
  }

  .hero-picture {
    display: block;
  }

  .hero-picture img {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-copy {
    position: absolute;
    left: 7%;
    top: 27.5%;
    bottom: auto;
    width: 86%;
    padding: 12px 10px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .86);
    text-align: center;
  }

  .hero-lead {
    font-size: 6.4cqw;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .hero-catch {
    font-size: 20cqw;
    line-height: 1.12;
    justify-content: center;
    letter-spacing: -.06em;
    margin-top: 0;
  }

  .hero-quote {
    font-size: 18cqw;
    line-height: 1;
  }

  .hero-quote-open {
    margin-right: 0;
  }

  .hero-catch-end {
    width: 9cqw;
  }

  .hero-catch-end > .hero-quote {
    left: -1cqw;
    top: 0;
  }

  .hero-period {
    font-size: 14cqw;
    bottom: 0;
    right: 0;
  }

  .hero-description {
    font-size: 3.74cqw;
    line-height: 1.55;
    white-space: normal;
    letter-spacing: 0;
    margin-top: 4px;
  }

  .hero-note {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .hero-scroll:before {
    top: 57px;
    width: 9px;
    height: 9px;
    animation-name: mobile-scroll-dot;
  }

  .hero-scroll:after {
    top: 61px;
    bottom: 0;
  }

  @keyframes mobile-scroll-dot {
    0%,
    10% {
      transform: translateY(0);
      opacity: 1;
    }

    75% {
      transform: translateY(38px);
      opacity: 1;
    }

    90%,
    100% {
      transform: translateY(38px);
      opacity: 0;
    }
  }

  .section {
    padding: 50px 0;
  }

  .eyebrow {
    font-size: 14px;
  }

  .section-heading h2 {
    font-size: 24px;
    line-height: 1.5;
  }

  .section-heading:after {
    width: 36px;
    margin-top: 12px;
  }

  .about-area {
    padding: 50px 0;
  }

  .about-area:before {
    right: -6%;
    top: 0;
    width: 90%;
    height: 500px;
  }

  .about-intro {
    margin-bottom: 50px;
  }

  .about-intro h2 {
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .about-copy {
    font-size: 15px;
    line-height: 1.9;
    margin-top: 24px;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .coverage-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
  }

  .coverage-card h3 {
    display: flex;
    flex-direction: column;
    gap: 2px;
    order: 2;
    font-size: 20px;
    white-space: normal;
    text-align: center;
    margin: 16px 0 8px;
    line-height: 1.5;
  }

  .coverage-card h3 span {
    order: -1;
    font-size: 12px;
  }

  .coverage-body {
    display: contents;
  }

  .coverage-body img {
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 300/169;
    object-fit: cover;
  }

  .coverage-body p {
    order: 3;
    font-size: 15px;
    line-height: 1.6;
  }

  .section-intro {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 24px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
  }

  .product-lightstick {
    grid-row: 6;
  }

  .product-pouch {
    grid-row: 4;
  }

  .product-card {
    padding: 16px;
  }

  .product-card h3 {
    font-size: 20px;
    line-height: 1.5;
  }

  .product-en {
    font-size: 12px;
    margin-top: 14px;
  }

  .description {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 10px;
  }

  .image-note {
    font-size: 12px;
    margin-top: 12px;
  }

  .consultation {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 24px;
    padding: 20px 24px;
  }

  .reasons {
    padding: 50px 0;
  }

  .reason-grid {
    margin-top: 44px;
    gap: 32px;
  }

  .reason-card {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px 14px;
    padding: 30px 16px 20px;
  }

  .reason-number {
    left: auto;
    right: 18px;
    top: -21px;
    font-size: 36px;
  }

  .reason-number:after {
    width: 36px;
    margin: 0 auto;
  }

  .reason-card > img {
    width: 64px;
    height: 64px;
    margin: 0;
    align-self: center;
  }

  .reason-card h3 {
    font-size: 18px;
    line-height: 1.45;
    text-align: left;
    margin: 0;
    padding-right: 22px;
    align-self: center;
  }

  .reason-card p {
    grid-column: 1/-1;
    font-size: 15px;
    line-height: 1.6;
  }

  .flow {
    padding: 50px 0;
  }

  .flow-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    margin-top: 28px;
  }

  .flow-list li {
    height: 48px;
    font-size: 15px;
    flex-shrink: 0;
  }

  .flow-list .step-number {
    left: 12px;
    top: 10px;
    width: 28px;
    height: 28px;
    font-size: 15px;
  }

  .flow-list li:not(:last-child):after {
    display: block;
    top: auto;
    right: auto;
    left: calc(50% - 14px);
    bottom: -10px;
    border: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 10px solid var(--cyan);
  }

  .flow-list li:last-child {
    background-size: auto 44px;
  }

  .company {
    padding: 50px 0 60px;
  }

  .company-card {
    display: flex;
    flex-direction: column-reverse;
  }

  .company-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 680/322;
    object-fit: cover;
  }

  .company-copy {
    padding: 24px 20px;
    text-align: center;
  }

  .company-copy .section-heading {
    text-align: center;
  }

  .company-copy .section-heading:after {
    margin-left: auto;
    margin-right: auto;
  }

  .company-copy > p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
  }

  .company-copy .button {
    max-width: 220px;
    margin: 24px auto 0;
  }

  .contact {
    padding: 48px 0;
  }

  .contact:before,
  .contact:after {
    opacity: .65;
    top: 50px;
    height: 210px;
  }

  .contact:before {
    left: -250px;
  }

  .contact:after {
    right: -245px;
  }

  .contact p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 24px;
  }

  .button-white {
    width: 100%;
    height: 64px;
    font-size: 20px;
    margin-top: 30px;
  }

  .site-footer {
    text-align: left;
    padding: 32px 20px 0;
  }

  .footer-logo {
    width: 150px;
    margin: 0 0 20px;
  }

  .footer-company {
    font-size: 18px;
    margin: 0 0 8px;
  }

  .site-footer address {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
  }

  .footer-address-break {
    display: block;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin: 30px 0 36px;
    padding: 0;
    font-size: 15px;
  }

  .footer-nav a {
    min-height: 30px;
    display: flex;
    align-items: center;
  }

  .copyright {
    margin: 0 -20px;
    text-align: center;
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Interior page images precede the title panel on phones. */
  .page-hero {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .page-hero > img {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 2.5;
    object-fit: cover;
  }

  .page-title {
    align-self: stretch;
    padding: 24px 20px;
  }

  .page-title h1 {
    font-size: 24px;
    line-height: 1.5;
    margin-top: 4px;
  }

  .page-title:after {
    display: none;
  }

  .breadcrumb {
    font-size: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .business-concept {
    padding: 35px 0 50px;
  }

  .business-concept:before {
    inset: 70px 0 40px;
    background-size: 90% auto;
  }

  .business-concept h2 {
    font-size: 24px;
    line-height: 1.5;
  }

  .mobile-break {
    display: block;
  }

  .business-concept p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
    margin-top: 26px;
  }

  .business-concept ul {
    display: block;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 24px;
  }

  .business-concept li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
  }

  .business-concept li:before {
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    margin: 0;
  }

  .overview-section {
    padding: 50px 0 70px;
  }

  .overview {
    padding: 24px 16px;
  }

  .overview h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 22px;
    margin-bottom: 16px;
  }

  .overview h2 span {
    font-size: 12px;
  }

  .overview dl > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
    font-size: 15px;
  }

  .overview dt {
    font-size: 16px;
  }

  .access-map iframe {
    aspect-ratio: 1;
    height: auto;
    min-height: 240px;
  }

  .office-name {
    font-size: 14px;
    margin-top: 14px;
  }

  .overview address {
    font-size: 14px;
    line-height: 1.6;
  }

  .contact-content {
    padding: 30px 0 70px;
  }

  .contact-steps {
    width: 280px;
    max-width: 85%;
  }

  .contact-steps li {
    font-size: 14px;
    gap: 6px;
  }

  .contact-steps li span {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .contact-steps:before {
    top: 18px;
  }

  .contact-intro {
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    margin: 36px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .form-label {
    padding: 0;
    align-items: center;
    font-size: 15px;
    gap: 12px;
  }

  .badge {
    font-size: 12px;
    line-height: 24px;
    padding: 0 8px;
  }

  .form-control input:not([type=checkbox]),
  .form-control select,
  .form-control textarea {
    font-size: 15px;
    min-height: 48px;
    padding: 12px;
  }

  .form-control textarea {
    min-height: 140px;
  }

  .address-fields > select,
  .address-fields .postal {
    width: 100%;
  }

  .field-error {
    margin-top: 10px;
  }

  .privacy-text {
    height: 300px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  .privacy-text h3 {
    font-size: 14px;
  }

  .consent-label {
    align-items: flex-start;
    line-height: 1.6;
    margin-top: 14px;
  }

  .form-actions {
    margin-top: 32px;
    gap: 16px;
  }

  .form-actions .button {
    width: 220px;
    max-width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  .form-actions .button > span {
    right: 12px;
  }

  .form-actions .button-back > span {
    right: auto;
    left: 12px;
  }

  .form-actions .button > span:before,
  .form-actions .button > span:after {
    left: calc(50% - 4px);
    width: 8px;
    height: 1.5px;
    transform-origin: 7.5px center;
  }

  .confirmation .form-actions {
    flex-direction: column;
  }

  .confirmation .button-back {
    order: 2;
  }

  .confirmation #send-button {
    order: 1;
  }

  .confirmation-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
    font-size: 15px;
    line-height: 1.6;
  }

  .confirmation-list dd {
    min-width: 0;
  }

  .confirmation .contact-intro {
    padding: 0 8px;
  }

  .completion-copy {
    margin-top: 38px;
  }

  .completion-copy h2 {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .completion-copy p {
    font-size: 15px;
    line-height: 1.9;
  }

  .completion-copy .button {
    width: 240px;
    margin-top: 30px;
  }

  .completion {
    padding-bottom: 75px;
  }

  .not-found {
    padding: 35px 0 70px;
  }

  .not-found h1 strong {
    font-size: 92px;
  }

  .not-found h1 span {
    font-size: 30px;
  }

  .not-found h2 {
    font-size: 24px;
    margin: 28px 0 22px;
  }

  .not-found p {
    font-size: 15px;
    line-height: 1.9;
  }

  .not-found .button {
    max-width: 100%;
    width: 240px;
    margin-top: 30px;
  }
}

@media (max-width: 359px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand img {
    width: 92px;
  }

  .brand > span {
    font-size: 11px;
  }

  .hero-copy {
    width: 90%;
    left: 5%;
    padding-inline: 8px;
  }

  .hero-description {
    font-size: 4cqw;
  }

  .reason-card {
    grid-template-columns: 56px 1fr;
    gap: 12px;
  }

  .reason-card > img {
    width: 56px;
  }

  .reason-card h3 {
    font-size: 15px;
  }

  .footer-nav {
    font-size: 14px;
  }

  .overview h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle span,
  .header-nav {
    transition: none;
  }

  .hero-scroll:before {
    animation: none;
  }
}

@media print {
  .menu-toggle,
  .header-nav {
    display: none;
  }

  .menu-open {
    overflow: visible;
  }
}
