/*
Theme Name: WANDERMUST
Theme URI: https://wandermust.net/
Author: WANDERMUST
Description: 島根・山陰のクリエイティブパートナー WANDERMUST のオリジナルテーマ
Version: 1.0.10
Text Domain: wandermust
*/

/* MW WP Form で出力されるフォームにもテーマの入力スタイルを適用します。 */
.mw-wp-form-wrap .mw_wp_form form {
  display: grid;
  gap: 22px;
}

.mw-wp-form-wrap .mw_wp_form form > p {
  margin: 0;
}

.mw-wp-form-wrap .mw_wp_form label {
  display: grid;
  gap: 8px;
  color: #4c4948;
  font-weight: 700;
}

.mw-wp-form-wrap .mw_wp_form input:not([type="checkbox"]):not([type="radio"]),
.mw-wp-form-wrap .mw_wp_form select,
.mw-wp-form-wrap .mw_wp_form textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(76, 73, 72, .42);
  border-radius: 0;
  outline: 0;
  background: rgba(248, 245, 239, .7);
  color: #4c4948;
  font: inherit;
}

.mw-wp-form-wrap .mw_wp_form textarea { min-height: 154px; }

.mw-wp-form-wrap .mw_wp_form input[type="submit"],
.mw-wp-form-wrap .mw_wp_form input[type="button"] {
  min-width: 260px;
  min-height: 64px;
  border: 0;
  border-radius: 0;
  background: #de0039;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Kept here (after legacy.css) so mobile navigation is never affected by a stale cached legacy stylesheet. */
.mobile-contact {
  display: none;
}

@keyframes mobileContactPulse {
  0%, 100% {
    box-shadow: 0 12px 28px rgba(222, 0, 57, .24);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 18px 34px rgba(222, 0, 57, .38);
    transform: translateY(-2px);
  }
}

@media (max-width: 760px) {
  .header .header-contact {
    display: none !important;
  }

  .mobile-contact {
    position: fixed !important;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    left: 16px;
    z-index: 1000;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin: 0;
    border: 0;
    background: #de0039;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(222, 0, 57, .24);
    animation: mobileContactPulse 2.8s ease-in-out infinite;
  }

  .mobile-contact::after {
    width: 18px;
    height: 1px;
    margin-left: 10px;
    background: currentColor;
    content: "";
  }

  .footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

/* Mobile layout refinements for the home and contact pages. */
@media (max-width: 760px) {
  .home .hero {
    padding-top: 8px !important;
  }

  .home .hero-copy {
    min-height: 0;
    padding: 13px 20px 46px 66px !important;
  }

  .home .hero-copy::before {
    top: 22px;
    left: -7px;
    width: 2px;
    height: 132px;
  }

  .home .vertical {
    top: 38px;
    left: 18px;
    color: rgba(76, 73, 72, .78);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.65;
  }

  .home .hero-title {
    gap: 0;
    font-size: clamp(40px, 12vw, 52px) !important;
    line-height: 1.24;
    letter-spacing: .09em;
  }

  .home .title-line {
    white-space: nowrap;
  }

  .home .title-line:nth-child(1) {
    margin-left: 0;
  }

  .home .title-line:nth-child(2) {
    margin-left: 0;
  }

  .home .title-line:nth-child(3) {
    margin-left: 0;
  }

  .home .mini-lines {
    margin-top: 26px;
    margin-bottom: 22px;
  }

  .home .hero-lead {
    max-width: 300px;
    font-size: 14px;
    line-height: 2;
  }

  .home .strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0;
    margin-top: 32px;
    border-left: 1px solid rgba(76, 73, 72, .16);
  }

  .home .strength-item {
    min-height: 214px;
    padding: 20px 13px 22px;
    border-right: 1px solid rgba(76, 73, 72, .16);
    border-bottom: 1px solid rgba(76, 73, 72, .16);
  }

  .home .strength-item:nth-child(even) {
    border-right: 0;
  }

  .home .strength-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .home .strength-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
  }

  .home .strength-icon.material-symbols-outlined {
    font-size: 39px;
  }

  .home .strength-item h3 {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .home .strength-item p {
    font-size: 11px;
    line-height: 1.8;
  }

  .home .works.container {
    width: calc(100% - 32px);
  }

  .home .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 14px;
  }

  .home .work h3 {
    margin-top: 10px;
    font-size: 13px;
  }

  .contact-page,
  .contact-confirmation-page {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .contact-page .contact-form-section,
  .contact-confirmation-page .contact-confirmation-body {
    padding-bottom: calc(142px + env(safe-area-inset-bottom, 0px));
  }

  .site-cta {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-cta h2 {
    max-width: 100%;
    font-size: clamp(17px, 4.5vw, 18px) !important;
    line-height: 1.65;
    letter-spacing: .02em;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .footer {
    margin-top: 42px;
    padding-top: 128px;
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-mask-image: none;
    mask-image: none;
    isolation: isolate;
  }

  .footer::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 82px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23F8F5EF' d='M0 0H1440V45C1290 28 1180 58 1045 48C900 37 810 70 660 54C510 38 385 78 235 57C120 42 52 63 0 52Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    content: "";
    pointer-events: none;
  }

  .footer::before {
    z-index: 0;
  }

  .footer-wave {
    top: 34px;
    z-index: 2;
    height: 94px;
  }

  .footer-inner {
    gap: 34px;
  }

  .footer-brand,
  .footer-brand img {
    width: min(210px, 64vw);
  }

  .footer-copy {
    max-width: none;
    font-size: 13px;
    line-height: 1.95;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0;
    border-top: 1px solid rgba(255, 253, 249, .16);
  }

  .footer-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 253, 249, .16);
  }

  .footer-bottom {
    gap: 9px;
    margin-top: 30px;
    padding-top: 18px;
    font-size: 10px;
    line-height: 1.7;
  }

  .footer-inner,
  .footer-bottom {
    position: relative;
    z-index: 3;
  }
}
