
/* With GORA Directory - modern single-column delivery-first UI */
:root {
  --wgd-green: #17623b;
  --wgd-green-dark: #0f4329;
  --wgd-green-soft: #edf8f2;
  --wgd-border: #dbe7df;
  --wgd-text: #17231d;
  --wgd-muted: #637166;
  --wgd-bg: #ffffff;
  --wgd-card-shadow: 0 10px 28px rgba(15, 67, 41, 0.08);
}

/* Try to force golf-course pages to one column, especially with Lightning-like themes. */
body.wgd-layout-one-column .subSection,
body.wgd-layout-one-column .sideSection,
body.wgd-layout-one-column #secondary,
body.wgd-layout-one-column .sidebar,
body.wgd-layout-one-column .widget-area,
body.wgd-layout-one-column .l-sidebar {
  display: none !important;
}
body.wgd-layout-one-column .mainSection,
body.wgd-layout-one-column .siteContent .mainSection,
body.wgd-layout-one-column .site-body .mainSection,
body.wgd-layout-one-column .content-area,
body.wgd-layout-one-column .l-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
body.wgd-layout-one-column .siteContent,
body.wgd-layout-one-column .site-body {
  display: block !important;
}

.wgd-search-wrap,
.wgd-course-detail,
.wgd-card,
.wgd-checklist,
.wgd-memo {
  box-sizing: border-box;
}

.wgd-search-wrap {
  max-width: 980px;
  margin: 1.75rem auto;
}

.wgd-search-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid var(--wgd-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfffc);
  box-shadow: var(--wgd-card-shadow);
}
.wgd-search-form label {
  font-weight: 800;
  color: var(--wgd-text);
}
.wgd-search-form input[type="search"] {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  font-size: 1.05rem;
  border: 1px solid #cfd9d3;
  border-radius: 12px;
  background: #fff;
}
.wgd-search-form button,
.wgd-button,
.wgd-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.wgd-search-form button,
.wgd-button {
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--wgd-green);
  background: #fff;
  color: var(--wgd-green);
  font-weight: 800;
}
.wgd-search-form button,
.wgd-primary {
  background: var(--wgd-green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 98, 59, 0.18);
}
.wgd-search-form button:hover,
.wgd-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 98, 59, 0.16);
}

.wgd-card {
  width: 100%;
  max-width: 980px;
  margin: 1.25rem auto;
  padding: 1.15rem;
  border: 1px solid var(--wgd-border);
  border-radius: 22px;
  background: var(--wgd-bg);
  box-shadow: var(--wgd-card-shadow);
}
.wgd-result-item,
.wgd-course-detail {
  display: block;
}
.wgd-result-item > * + *,
.wgd-course-detail > * + * {
  margin-top: 1rem;
}
.wgd-result-body h3,
.wgd-course-detail h2 {
  color: var(--wgd-text);
}
.wgd-address {
  color: var(--wgd-muted);
}

.wgd-thumb {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e7eee9;
  background: #f4f7f5;
}

.wgd-result-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
}
.wgd-result-image-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}
.wgd-result-image-link:hover .wgd-thumb {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 98, 59, 0.16);
}
.wgd-result-image-link .wgd-thumb {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wgd-delivery-box {
  padding: 1.15rem;
  border: 1px solid #cfe8d9;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fff9, #ffffff);
}
.wgd-delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wgd-kicker {
  margin: 0 0 0.3rem;
  color: var(--wgd-green);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.wgd-delivery-box h3,
.wgd-course-visual h3,
.wgd-map-box h3 {
  margin: 0;
  color: var(--wgd-text);
  font-size: 1.25rem;
  line-height: 1.35;
}
.wgd-course-logo {
  flex: 0 0 auto;
  max-width: 150px;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e5eee8;
  border-radius: 14px;
  background: #fff;
}
.wgd-logo-image {
  display: block;
  max-width: 130px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wgd-info-table {
  display: grid;
  gap: 0.85rem;
}
.wgd-info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid #e7f0ea;
}
.wgd-info-row:last-child {
  border-bottom: 0;
}
.wgd-info-label {
  font-weight: 800;
  color: var(--wgd-muted);
  font-size: 0.95rem;
}
.wgd-info-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--wgd-text);
}
.wgd-info-text {
  font-size: 1.1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.wgd-info-row--postal .wgd-info-text,
.wgd-info-row--address .wgd-info-text {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.wgd-info-row--tel .wgd-info-text {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
}

.wgd-copy {
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border: 1px solid #cbd8d0;
  background: #f8fbf9;
  color: #536359;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: none;
}
.wgd-copy:hover {
  background: #edf5f0;
  color: var(--wgd-green-dark);
}
.wgd-copy-large {
  min-height: 36px;
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  color: var(--wgd-green);
  border-color: #b9d9c8;
  background: #f3fbf6;
}

.wgd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.wgd-notice {
  padding: 0.85rem;
  border-radius: 14px;
  background: #fff8df;
  color: #5e4b14;
}
.wgd-error {
  padding: 0.85rem;
  border-radius: 14px;
  background: #ffe6e6;
  color: #8a1f1f;
  font-weight: 800;
}
.wgd-small,
.wgd-id {
  color: var(--wgd-muted);
  font-size: 0.92rem;
}
.wgd-course-visual,
.wgd-map-box {
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
}
.wgd-course-main-image {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #e5eee8;
  background: #f4f7f5;
}
.wgd-map-embed {
  width: 100%;
  height: 330px;
  border: 0;
  border-radius: 20px;
  background: #f5f5f5;
  box-shadow: inset 0 0 0 1px #e5eee8;
}
.wgd-checklist ul {
  margin-bottom: 0;
}
.wgd-checklist li {
  margin: 0.35rem 0;
}

@media (min-width: 720px) {
  .wgd-search-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .wgd-search-form label {
    grid-column: 1 / -1;
  }
  .wgd-map-embed {
    height: 390px;
  }
  .wgd-card {
    padding: 1.35rem;
  }
}

@media (max-width: 540px) {
  .wgd-delivery-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .wgd-course-logo {
    max-width: 100%;
  }
  .wgd-info-row--postal .wgd-info-text,
  .wgd-info-row--address .wgd-info-text {
    font-size: 1.7rem;
    line-height: 1.35;
  }
  .wgd-info-row--tel .wgd-info-text {
    font-size: 1.45rem;
  }
  .wgd-actions .wgd-button {
    width: 100%;
  }
}

.wgd-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
  position: relative;
}
.wgd-voice-button {
  white-space: nowrap;
  background: #fff !important;
  color: var(--wgd-green) !important;
  box-shadow: none !important;
}
.wgd-voice-button.is-listening {
  background: var(--wgd-green-soft) !important;
  outline: 2px solid rgba(23, 98, 59, 0.18);
}
.wgd-voice-button.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.wgd-voice-status {
  margin: 0;
  min-height: 1.35em;
  color: var(--wgd-muted);
  font-size: 0.92rem;
}
.wgd-search-help {
  margin: 0.2rem 0 0;
}
.wgd-suggest-panel {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--wgd-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--wgd-card-shadow);
}
.wgd-suggest-panel.is-active {
  display: block;
}
.wgd-suggest-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem 0.85rem;
  color: var(--wgd-text);
  text-decoration: none;
  border-bottom: 1px solid #edf3ef;
}
.wgd-suggest-item:last-child {
  border-bottom: 0;
}
.wgd-suggest-item:hover,
.wgd-suggest-item:focus {
  background: var(--wgd-green-soft);
  outline: none;
}
.wgd-suggest-item img {
  width: 54px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #f4f7f5;
}
.wgd-suggest-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.wgd-suggest-text strong {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wgd-suggest-text small {
  color: var(--wgd-muted);
}
.wgd-suggest-open {
  color: var(--wgd-green);
  font-size: 0.85rem;
  font-weight: 800;
}
@media (max-width: 720px) {
  .wgd-search-controls {
    grid-template-columns: 1fr;
  }
  .wgd-suggest-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .wgd-suggest-open {
    display: none;
  }
}

/* Voice input feedback */
.wgd-search-form.wgd-voice-active {
  border-color: rgba(23, 98, 59, 0.42);
  box-shadow: 0 12px 32px rgba(23, 98, 59, 0.16);
}
.wgd-voice-button.is-listening {
  position: relative;
  background: var(--wgd-green) !important;
  color: #fff !important;
  outline: 3px solid rgba(23, 98, 59, 0.18);
  box-shadow: 0 0 0 0 rgba(23, 98, 59, 0.38) !important;
  animation: wgdVoicePulse 1.15s ease-out infinite;
}
.wgd-voice-status.is-active {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d5e8dc;
  border-radius: 999px;
  background: #f4fbf7;
  color: var(--wgd-green-dark);
  font-weight: 700;
}
.wgd-voice-status.is-active::before {
  content: '';
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--wgd-green);
}
.wgd-voice-status.is-listening::before {
  animation: wgdVoiceBlink 0.85s ease-in-out infinite;
}
.wgd-voice-status.is-error {
  border-color: #f3c7c7;
  background: #fff0f0;
  color: #8a1f1f;
}
.wgd-voice-status.is-error::before {
  background: #c0392b;
}
.wgd-voice-status.is-success {
  border-color: #bedfc9;
  background: #effaf3;
  color: var(--wgd-green-dark);
}
.wgd-voice-status.is-idle {
  border-color: #e0e6e2;
  background: #f8fbf9;
  color: var(--wgd-muted);
}
@keyframes wgdVoicePulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 98, 59, 0.32) !important; }
  70% { box-shadow: 0 0 0 10px rgba(23, 98, 59, 0) !important; }
  100% { box-shadow: 0 0 0 0 rgba(23, 98, 59, 0) !important; }
}
@keyframes wgdVoiceBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.38; transform: scale(0.78); }
}

/* v0.3.5: voice input should be obvious while listening */
.wgd-search-form.wgd-voice-active {
  border-color: rgba(214, 48, 49, 0.58) !important;
  box-shadow: 0 12px 34px rgba(214, 48, 49, 0.20) !important;
}
.wgd-voice-button.is-listening {
  background: #d63031 !important;
  color: #fff !important;
  outline: 3px solid rgba(214, 48, 49, 0.24) !important;
  box-shadow: 0 0 0 0 rgba(214, 48, 49, 0.46) !important;
  animation: wgdVoicePulseRed 1.05s ease-out infinite !important;
}
.wgd-voice-status.is-listening,
.wgd-voice-status.is-active.is-listening {
  border-color: #f3b2b2 !important;
  background: #fff0f0 !important;
  color: #9f1f1f !important;
}
.wgd-voice-status.is-listening::before,
.wgd-voice-status.is-active.is-listening::before {
  background: #d63031 !important;
}
@keyframes wgdVoicePulseRed {
  0% { box-shadow: 0 0 0 0 rgba(214, 48, 49, 0.44) !important; }
  70% { box-shadow: 0 0 0 11px rgba(214, 48, 49, 0) !important; }
  100% { box-shadow: 0 0 0 0 rgba(214, 48, 49, 0) !important; }
}

/* v0.3.7: non-reservable course guidance */
.wgd-notice-soft {
  margin-top: 0.9rem;
  border-color: #d9e6d9;
  background: #f6fbf7;
  color: #33443a;
}

/* v0.4.10: make voice/search buttons easier to read and tap */
.wgd-search-form .wgd-voice-button,
.wgd-search-form .wgd-search-submit {
  min-height: 56px !important;
  padding: 0.82rem 1.25rem !important;
  font-size: 1.12rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
}

.wgd-search-form .wgd-search-submit {
  font-weight: 900 !important;
}

@media (max-width: 720px) {
  .wgd-search-form .wgd-voice-button,
  .wgd-search-form .wgd-search-submit {
    width: 100%;
    min-height: 58px !important;
    font-size: 1.18rem !important;
  }
}

/* v0.4.11: result images link to the same detail page as the action button. */

/* v0.4.11: result images link to the same detail page as the action button. */

/* v0.5.0: prefecture and course list shortcodes */
.wgd-prefecture-list-wrap,
.wgd-course-list-wrap {
  max-width: 1040px;
  margin: 0 auto;
}
.wgd-prefecture-list-intro,
.wgd-course-list-lead {
  font-size: 1.02rem;
  color: var(--wgd-muted);
  margin: 0 0 1.2rem;
}
.wgd-pref-region {
  margin: 1.4rem 0 1.8rem;
}
.wgd-pref-region h2,
.wgd-course-list-wrap h2 {
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  margin: 0 0 0.8rem;
  line-height: 1.35;
}
.wgd-pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wgd-pref-grid li {
  margin: 0;
}
.wgd-pref-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--wgd-border);
  border-radius: 16px;
  background: #fff;
  color: var(--wgd-text);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(22, 49, 35, 0.06);
}
.wgd-pref-grid a:hover,
.wgd-pref-grid a:focus {
  border-color: rgba(31, 107, 67, 0.35);
  box-shadow: 0 10px 26px rgba(22, 49, 35, 0.10);
  transform: translateY(-1px);
}
.wgd-pref-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--wgd-green-soft);
  color: var(--wgd-green-dark);
  font-size: 0.86rem;
  white-space: nowrap;
}
.wgd-course-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.wgd-course-list-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: stretch;
}
.wgd-course-list-image-link {
  display: block;
  border-radius: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: #eef3ef;
  min-height: 120px;
}
.wgd-course-list-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}
.wgd-course-list-body h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.12rem, 3vw, 1.35rem);
  line-height: 1.35;
}
.wgd-course-list-body h3 a {
  color: var(--wgd-text);
  text-decoration: none;
}
.wgd-course-list-body h3 a:hover,
.wgd-course-list-body h3 a:focus {
  text-decoration: underline;
}
.wgd-course-list-city {
  margin: 0 0 0.8rem;
  color: var(--wgd-muted);
  font-weight: 700;
}
@media (max-width: 720px) {
  .wgd-pref-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .wgd-pref-grid a {
    min-height: 56px;
    padding: 0.8rem 0.75rem;
    border-radius: 14px;
    font-size: 1rem;
  }
  .wgd-course-list-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .wgd-course-list-image-link,
  .wgd-course-list-thumb {
    min-height: 180px;
  }
}


/* Map-top advertisement slot */
.wgd-ad-slot {
  margin: 1.25rem 0;
  padding: 0.75rem;
  border-radius: 18px;
  background: #f8faf9;
  border: 1px solid rgba(31, 107, 67, 0.10);
  text-align: center;
}
.wgd-ad-slot-map { clear: both; }
.wgd-ad-label {
  margin: 0 0 0.35rem;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.04em;
}
.wgd-ad-inner {
  display: block;
  width: 100%;
  min-height: 90px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.wgd-ad-inner ins.adsbygoogle {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 720px) {
  .wgd-ad-slot {
    margin: 1rem 0;
    padding: 0.55rem 0.35rem;
    border-radius: 14px;
  }
  .wgd-ad-inner { min-height: 100px; }
}

.wgd-ad-inner amp-ad,
.wgd-ad-inner iframe,
.wgd-ad-inner img {
  max-width: 100%;
}
.wgd-ad-inner amp-ad {
  display: inline-block;
}
.wgd-ad-slot-amp .wgd-ad-inner {
  white-space: nowrap;
}

/* Image-top advertisement slots */
.wgd-ad-slot-image-top {
  clear: both;
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
}
.wgd-ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
  gap: 0.8rem;
  align-items: center;
}
.wgd-ad-inner-rect {
  min-height: 250px;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.wgd-ad-inner-rect amp-ad,
.wgd-ad-inner-rect iframe,
.wgd-ad-inner-rect img {
  max-width: 100%;
}
@media (max-width: 680px) {
  .wgd-ad-grid {
    grid-template-columns: 1fr;
  }
  .wgd-ad-inner-rect {
    max-width: 300px;
  }
}
