/*
Theme Name: PTT Blog Theme
Version: 1.1.58
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4

*/

:root {
  --line-green: #06c755;
  --action-red: #d83e23;
  --ink: #101828;
  --muted: #475467;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.72);
  --bg-start: #f4fff7;
  --bg-end: #ecfdf3;
  --border: rgba(16, 24, 40, 0.08);
  --shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
  --ptt-blue: #5b93ce;
  --ptt-blue-dark: #3d7bb4;
  --ptt-gradient-sky-start: #5fa8c9;
  --ptt-gradient-sky-end: #67cfc7;
  --article-card-radius: 18px;
}
@font-face {
  font-family: "PTT45Pride";
  src: url("assets/fonts/PTT45Pride-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PTT45Pride";
  src: url("assets/fonts/PTT45Pride-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PTT45Pride";
  src: url("assets/fonts/PTT45Pride-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  font-family: "PTT45Pride", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  font-weight: 400;
  background-image: url("https://line-pttgroup.com/wp-content/uploads/2026/08/BG-blue.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ink);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
}

.theme-alert-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.4);
}

.theme-alert-dialog[hidden] {
  display: none;
}

.theme-alert-box {
  width: min(100%, 340px);
  padding: 24px;
  border: 1px solid rgba(6, 199, 85, 0.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
  text-align: center;
}

.theme-alert-message {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.theme-alert-button {
  min-width: 120px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ptt-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.theme-alert-button:focus-visible {
  outline: 3px solid rgba(91, 147, 206, 0.28);
  outline-offset: 2px;
}

.liff-loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.42);
}

.liff-loading[hidden] {
  display: none;
}

.liff-loading-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.liff-loading-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 3px solid rgba(91, 147, 206, 0.25);
  border-top-color: var(--ptt-blue);
  border-radius: 50%;
  animation: liff-loading-spin 0.8s linear infinite;
}

@keyframes liff-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.godgi-footer-scene {
  position: relative;
  isolation: isolate;
  width: min(100% - 20px, 560px);
  aspect-ratio: 4 / 3;
  height: auto;
  margin: 8px auto 0;
  pointer-events: none;
}
.godgi-footer-scene div {
  position: absolute;
}
.godgi-footer-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.godgi-footer-cloud {
  z-index: 2;
}
.godgi-footer-light {
  top: 10%;
  left: 50%;
  z-index: 1;
  width: 100%;
  transform: translateX(-50%) scale(1.3);
  transform-origin: center top;
}
.godgi-footer-world {
  top: 20%;
  left: 50%;
  z-index: 3;
  width: 100%;
  transform: translateX(-50%);
}
.godgi-footer-godji {
  top: 25%;
  left: 50%;
  z-index: 4;
  width: 40%;
  transform: translateX(-50%);
}
.godgi-footer-nezo {
  top: 18%;
  right: 2%;
  z-index: 5;
  width: 25%;
}
.godgi-footer-cloud-left {
  left: -15%;
  top: 20%;
  width: 50%;
}
.godgi-footer-cloud-right {
  right: -10%;
  top: 0;
  width: 22%;
}
.godgi-footer-light img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 12px;
}

.card {
  background: var(--panel-soft);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 400;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button-error {
  color: #fff;
  background: var(--action-red);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.06);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-badge.is-ok {
  color: #067647;
  background: rgba(6, 199, 85, 0.14);
}

.status-badge.is-warn {
  color: #b54708;
  background: rgba(255, 183, 3, 0.18);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: var(--ink);
}

/* Shared site header */
.site-header {
  padding: 0;
  border-top: 0;
  box-shadow: none;
}

.site-topbar {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-brand {
  position: relative;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  width: clamp(118px, 34vw, 178px);
  height: auto;
}
body.menu-open .menu-button {
  color: #fff;
}

.header-profile {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.header-profile .status-badge {
  padding: 5px 8px;
  font-size: 0.72rem;
}

.menu-button {
  min-width: 48px;
  padding: 8px 12px;
  color: #3978ee;
  background: #fff;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.site-shell {
  width: min(100% - 20px, 1120px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  transition: background-color 200ms ease;
}

html.header-solid .site-header {
  background: linear-gradient(
    45deg,
    var(--ptt-gradient-sky-start),
    var(--ptt-gradient-sky-end)
  );
}

body {
  padding-top: 82px;
}

.header-profile {
  position: relative;
}

.menu-button {
  position: relative;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: transparent;
  box-shadow: none;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.menu-button:focus-visible {
  outline: 3px solid rgba(57, 120, 238, 0.28);
  outline-offset: 2px;
}

.menu-button:active {
  transform: scale(0.96);
}

.menu-dropdown {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: 8px;
  width: auto;
  padding: 110px 24px 28px;
  border: 0;
  border-radius: 0;
  background: rgba(61, 123, 180, 0.86);
  box-shadow: none;
  backdrop-filter: blur(2px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.menu-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 28px;
  border-radius: 999px;
  color: #050505;
  background: #fff;
  box-shadow: 0 8px 18px rgba(33, 85, 127, 0.16);
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.menu-dropdown-link::after {
  content: "→";
  flex-shrink: 0;
  margin-left: 18px;
  font-size: 1.35em;
  font-weight: 300;
  line-height: 0.7;
}

.menu-dropdown-link:hover,
.menu-dropdown-link:focus-visible {
  color: #050505;
  background: #f5fbff;
}

.menu-dropdown-link:focus-visible {
  outline: 3px solid rgba(57, 120, 238, 0.2);
  outline-offset: -2px;
}

.site-topbar {
  min-height: 82px;
  gap: 8px;
}

.site-nav {
  display: none;
}

@media (max-width: 1024px), (pointer: coarse) {
  .menu-button {
    display: grid;
    flex: 0 0 44px;
    visibility: visible;
    opacity: 1;
  }
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.menu-open .site-header,
body.menu-open .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--ptt-blue-dark);
  border-top-color: var(--ptt-blue-dark);
  box-shadow: none;
  transition: none;
}

body.menu-open .menu-button {
  color: #fff;
}

body.menu-open .menu-button {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.site-nav-list {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  gap: 14px;
  overflow-x: auto;
  padding: 0;
  list-style: none;
}
.site-nav-link {
  position: relative;
  display: inline-flex;
  padding: 14px 6px;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.site-nav-link:hover::after,
.site-nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav-link {
  display: inline;
  padding: 14px 6px;
  border-radius: 0;
  color: #172033;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 481px) and (max-width: 1024px) {
  .site-shell {
    width: min(100% - 32px, 1120px);
  }

  .site-brand-logo {
    width: 160px;
  }
}

@media (min-width: 1025px) {
  html.header-solid .site-header {
    background: transparent;
  }

  html.menu-open,
  body.menu-open {
    overflow: auto;
    overscroll-behavior: auto;
  }

  .menu-button {
    display: none;
  }

  .menu-dropdown {
    display: none;
  }

  .site-header {
    position: static;
    box-shadow: none;
  }

  body {
    padding-top: 0;
  }

  .site-shell {
    width: min(100% - 32px, 1120px);
  }

  .site-topbar {
    min-height: 100px;
    gap: 20px;
  }

  .site-brand-logo {
    width: 178px;
  }

  .header-profile .status-badge {
    display: flex;
  }

  .site-nav {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
  }

  .site-nav-list {
    flex-direction: row;
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-nav-link {
    display: inline;
    padding: 14px 6px;
    border-radius: 0;
    color: #fff;
  }
}
