/*
Theme Name: Sketlab Renewal
Theme URI: https://sketlab.jp/
Author: Sketlab LLC
Author URI: https://sketlab.jp/
Description: スケットラボ合同会社のリニューアル用軽量オリジナルテーマ。
Version: 0.1.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: sketlab-renewal
*/
:root {
  --blue: #0878f9;
  --cyan: #06c8dd;
  --navy: #071b38;
  --ink: #12213a;
  --muted: #64728a;
  --line: #dfe7f1;
  --soft: #f3f7fb;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(13, 39, 76, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  padding: 10px 14px;
  background: #fff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 231, 241, 0.8);
}
.site-header__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand img {
  display: block;
  width: 310px;
  max-width: 43vw;
}
.global-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}
.global-nav a {
  padding: 8px 0;
}
.global-nav a:hover {
  color: var(--blue);
}
.global-nav .nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
}
.menu-button {
  display: none;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 60%, #f9fdff 100%);
  border-bottom: 1px solid var(--line);
}
.hero:before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  right: -140px;
  top: -210px;
  background: radial-gradient(circle, rgba(6, 200, 221, 0.17), transparent 70%);
}
.hero__inner {
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 70px;
  padding: 72px 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e7f6;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(20, 68, 124, 0.07);
}
.status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #20b86a;
  box-shadow: 0 0 0 5px rgba(32, 184, 106, 0.12);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.hero .eyebrow {
  margin-top: 25px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.hero__lead {
  font-size: 17px;
  color: #4e5f79;
  max-width: 690px;
  margin: 0;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin: 34px 0 38px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 10px;
  font-weight: 800;
  transition: 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0066d9);
  box-shadow: 0 14px 28px rgba(8, 120, 249, 0.22);
}
.button--ghost {
  background: #fff;
  border: 1px solid #bed2ea;
  color: var(--navy);
}
.hero__facts {
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero__facts li {
  display: flex;
  flex-direction: column;
}
.hero__facts strong {
  font-size: 18px;
}
.hero__facts span {
  color: var(--muted);
  font-size: 12px;
}
.hero__visual {
  position: relative;
  min-height: 420px;
}
.signal-card {
  position: absolute;
  border: 1px solid rgba(132, 168, 205, 0.42);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.signal-card--main {
  width: 92%;
  left: 0;
  top: 24px;
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(-2deg);
}
.monitor-bar {
  height: 36px;
  background: #edf5fc;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 14px;
}
.monitor-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a6bfd8;
}
.monitor-screen {
  height: 245px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #051831, #0b315c);
}
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(81, 161, 226, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 161, 226, 0.15) 1px, transparent 1px);
  background-size: 36px 36px;
}
.wave {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 48%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #23dbf0,
    #4b9eff,
    transparent
  );
  transform: rotate(-7deg);
  box-shadow: 0 0 14px #15d1e6;
}
.wave:before,
.wave:after {
  content: "";
  position: absolute;
  width: 110px;
  height: 70px;
  border: 2px solid #23dbf0;
  border-color: #23dbf0 transparent transparent transparent;
  border-radius: 50%;
  top: -29px;
}
.wave:before {
  left: 33%;
}
.wave:after {
  left: 54%;
  transform: scaleY(-1);
  top: -38px;
}
.crosshair {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(51, 217, 239, 0.7);
  border-radius: 50%;
  top: 57px;
  left: calc(50% - 60px);
}
.crosshair:before,
.crosshair:after {
  content: "";
  position: absolute;
  background: rgba(51, 217, 239, 0.7);
}
.crosshair:before {
  width: 160px;
  height: 1px;
  left: -20px;
  top: 59px;
}
.crosshair:after {
  height: 160px;
  width: 1px;
  top: -20px;
  left: 59px;
}
.monitor-data {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #53708e;
  font-size: 11px;
  font-weight: 800;
}
.signal-card--code,
.signal-card--iot {
  right: -2%;
  width: 170px;
  padding: 18px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}
.signal-card--code {
  top: 270px;
}
.signal-card--iot {
  left: -8%;
  top: 345px;
}
.signal-card--code span,
.signal-card--iot span {
  font-size: 28px;
  color: var(--blue);
  font-weight: 900;
}
.signal-card small {
  color: var(--muted);
}
.hero__glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(8, 120, 249, 0.16);
  filter: blur(60px);
  right: 0;
  bottom: -30px;
  z-index: -1;
}
.section {
  padding: 100px 0;
}
.section--white {
  background: #fff;
}
.section--soft {
  background: var(--soft);
}
.section--dark {
  background: linear-gradient(135deg, #06172f, #0b2b52);
  color: #fff;
}
.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-heading--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.section-heading h2,
.proof-grid h2,
.contact-box h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
}
.text-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 51, 87, 0.05);
}
.service-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #e7f4ff, #e3fbfd);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}
.service-card h3 {
  font-size: 22px;
  margin: 22px 0 8px;
}
.service-card p {
  color: var(--muted);
  margin: 0 0 18px;
}
.service-card ul {
  padding-left: 1.2em;
  margin: 0;
  font-size: 14px;
}
.service-card li + li {
  margin-top: 5px;
}
.app-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 22px;
}
.app-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(23, 51, 87, 0.06);
}
.app-art {
  height: 190px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.app-card--featured .app-art {
  height: 230px;
}
.app-art:before,
.app-art:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.app-art:before {
  width: 140px;
  height: 140px;
  right: -30px;
  top: -50px;
}
.app-art:after {
  width: 90px;
  height: 90px;
  left: -15px;
  bottom: -25px;
}
.app-art span {
  font-size: 38px;
  font-weight: 900;
  z-index: 1;
}
.app-art--photo {
  background: linear-gradient(135deg, #dff4ff, #d9e7ff);
  color: #1774d8;
}
.app-art--privacy {
  background: linear-gradient(135deg, #e9e5ff, #dbe5ff);
  color: #684bd4;
}
.app-art--pen {
  background: linear-gradient(135deg, #dcfbf6, #d6f0ff);
  color: #0989a3;
}
.app-card__body {
  padding: 25px;
}
.tag-row {
  display: flex;
  gap: 7px;
}
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.tag--plain {
  background: #edf3f9;
  color: #607187;
}
.app-card h3 {
  font-size: 21px;
  margin: 14px 0 8px;
}
.app-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}
.card-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}
.card-link span {
  margin-left: 4px;
}
.apps-note {
  margin: 26px 0 0;
  color: #75849a;
  font-size: 12px;
}
.proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.proof-grid .eyebrow {
  color: #57d8ea;
}
.proof-lead {
  color: #c3d2e5;
  font-size: 17px;
}
.proof-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.proof-list article:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.proof-list span {
  font-size: 13px;
  color: #54d8e8;
  font-weight: 900;
}
.proof-list h3 {
  margin: 0 0 3px;
}
.proof-list p {
  margin: 0;
  color: #b9c9dc;
  font-size: 14px;
}
.news-list {
  border-top: 1px solid var(--line);
}
.news-list a {
  display: grid;
  grid-template-columns: 115px 105px 1fr 30px;
  gap: 16px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: 0.2s;
}
.news-list a:hover {
  padding-left: 10px;
  background: #f9fbfd;
}
.news-list time {
  color: var(--muted);
  font-size: 13px;
}
.news-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  background: #ecf5ff;
  border-radius: 999px;
  text-align: center;
  padding: 4px 8px;
}
.news-list strong {
  font-size: 15px;
}
.news-arrow {
  color: var(--blue);
  text-align: right;
}
.section--profile {
  background: linear-gradient(180deg, #f7fbff, #fff);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
  align-items: stretch;
}

.profile-panel,
.company-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 51, 87, 0.05);
}

.profile-label {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.company-panel > .eyebrow {
  margin-bottom: 0;
}

.profile-panel h2,
.company-panel h2 {
  margin: 4px 0 12px;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.company-panel h2 {
  white-space: nowrap;
  word-break: keep-all;
}

.profile-role {
  color: #49627f;
  font-weight: 700;
}

.profile-panel > p:last-of-type {
  color: var(--muted);
}

.license-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.license-row span {
  padding: 6px 9px;
  border: 1px solid #dce6ef;
  border-radius: 7px;
  background: #f8fafc;
  font-size: 11px;
}

.company-panel dl {
  margin: 24px 0;
}

.company-panel dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.company-panel dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.company-panel dd {
  margin: 0;
  font-size: 14px;
}

.company-panel > .text-link {
  margin-top: auto;
}

.contact-section {
  padding: 80px 0;
  background: #fff;
}
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 50px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue), #0754c7);
  color: #fff;
  box-shadow: 0 20px 45px rgba(8, 94, 198, 0.24);
}
.contact-box .eyebrow {
  color: #bfeefd;
}
.contact-box p {
  margin: 0;
  color: #dbeaff;
}
.button--light {
  background: #fff;
  color: #0757ca;
  white-space: nowrap;
}
.site-footer {
  padding: 48px 0 18px;
  background: #07182f;
  color: #c3d2e5;
}
.footer-grid {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 40px;
}
.footer-grid img {
  width: 270px;
  filter: brightness(1.25);
}
.footer-grid p {
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.copyright {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  color: #8092aa;
}
@media (max-width: 900px) {
  .global-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 68px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .global-nav.is-open {
    display: flex;
  }
  .global-nav a {
    padding: 10px;
  }
  .menu-button {
    display: block;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 58px 0 90px;
  }
  .hero__visual {
    width: min(570px, 90%);
    margin: auto;
    min-height: 400px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .app-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-card--featured {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
  }
  .app-card--featured .app-art {
    height: auto;
    min-height: 270px;
  }
  .proof-grid,
  .profile-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 24px;
  }

  .profile-panel h2,
  .company-panel h2 {
    font-size: 30px;
  }

  .company-panel h2 {
    white-space: normal;
  }

  .section-heading--row {
    align-items: start;
    flex-direction: column;
  }
  .contact-box {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }
  .site-header__inner {
    height: 66px;
  }
  .brand img {
    width: 240px;
    max-width: 72vw;
  }
  .section {
    padding: 72px 0;
  }
  .hero__inner {
    min-height: auto;
    padding-top: 42px;
    gap: 35px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero__lead {
    font-size: 15px;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__facts {
    gap: 14px;
    justify-content: space-between;
  }
  .hero__facts strong {
    font-size: 15px;
  }
  .hero__facts span {
    font-size: 10px;
  }
  .hero__visual {
    min-height: 310px;
    width: 100%;
  }
  .monitor-screen {
    height: 175px;
  }
  .signal-card--code,
  .signal-card--iot {
    width: 135px;
    padding: 12px;
  }
  .signal-card--code {
    top: 205px;
  }
  .signal-card--iot {
    top: 245px;
    left: 0;
  }
  .signal-card--main {
    width: 96%;
  }
  .service-card,
  .profile-panel,
  .company-panel {
    padding: 24px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-card--featured {
    grid-column: auto;
    display: block;
  }
  .app-card--featured .app-art {
    height: 210px;
    min-height: 0;
  }
  .news-list a {
    grid-template-columns: 88px 1fr 22px;
    gap: 9px;
  }
  .news-cat {
    display: none;
  }
  .news-list strong {
    font-size: 14px;
  }
  .contact-box {
    padding: 30px 24px;
  }
  .footer-grid {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* 公開アプリ：3件を均等表示 */
.app-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 1件目だけ大きくする旧設定を解除 */
.app-card--featured {
  grid-column: auto;
  display: block;
}

.app-card--featured .app-art {
  height: 190px;
  min-height: 0;
}

/* カード幅のはみ出し防止 */
.app-card {
  min-width: 0;
}

/* カード内画像 */
.app-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* タブレット */
@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card--featured {
    grid-column: auto;
    display: block;
  }

  .app-card--featured .app-art {
    height: 190px;
    min-height: 0;
  }
}

/* スマートフォン */
@media (max-width: 620px) {
  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card--featured .app-art {
    height: 210px;
  }
}

/* 各種アプリ一覧ページ */
.apps-category-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.apps-category-section + .apps-category-section {
  padding-top: 18px;
}

.apps-category-section .section-heading {
  margin-bottom: 24px;
}

.apps-page-grid {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apps-page-grid .app-card {
  width: 100%;
  max-width: none;
}

/* WordPress管理バー表示中の固定ヘッダー位置 */
body.admin-bar .site-header {
  top: 32px;
}

/* スマートフォン・狭い画面の管理バーは高さ46px */
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* 投稿・固定ページ本文内の通常リンク */
.single-post-content a:not(.button):not(.wp-block-button__link),
article.page a:not(.button):not(.wp-block-button__link) {
  color: var(--blue, #0878f9);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.single-post-content a:not(.button):not(.wp-block-button__link):hover,
article.page a:not(.button):not(.wp-block-button__link):hover {
  color: #005fc7;
  text-decoration-thickness: 2px;
}

/* 各種アプリ一覧：カードをコンパクトにする */
.apps-page-grid {
  gap: 18px;
}

.apps-page-grid .app-card {
  border-radius: 14px;
  min-width: 0;
}

/* アイキャッチ画像 */
.apps-page-grid .app-art {
  height: 150px;
  aspect-ratio: auto;
}

.apps-page-grid .app-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 本文部分 */
.apps-page-grid .app-card__body {
  padding: 16px 18px 18px;
}

/* カテゴリーバッジ */
.apps-page-grid .tag-row {
  margin-bottom: 10px;
  gap: 6px;
}

.apps-page-grid .tag {
  padding: 3px 8px;
  font-size: 11px;
}

/* タイトル */
.apps-page-grid .app-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

/* 説明文を3行までに制限 */
.apps-page-grid .app-card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* 紹介記事リンク */
.apps-page-grid .card-link {
  margin-top: 4px;
  font-size: 14px;
}

/* 各種アプリ一覧：スマホ調整 */
@media (max-width: 768px) {
  .apps-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .apps-page-grid .app-card__body {
    padding: 14px 14px 16px;
  }

  .apps-page-grid .tag-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .apps-page-grid .tag {
    writing-mode: horizontal-tb;
    width: auto;
    height: auto;
    padding: 4px 9px;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .apps-page-grid .app-card h3 {
    font-size: 16px;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .apps-page-grid .app-card p {
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 520px) {
  .apps-page-grid {
    grid-template-columns: 1fr;
  }
}

/* お問い合わせボタン：スマホ調整 */
@media (max-width: 768px) {
  .contact-main-button,
  .contact-button,
  .contact-link-button,
  .wp-block-button__link {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 24px auto 0;
    padding: 16px 20px;
    text-align: center;
    writing-mode: horizontal-tb;
    line-height: 1.4;
  }

  .wp-block-buttons {
    width: 100%;
    justify-content: center;
  }

  .wp-block-button {
    width: auto;
  }

  .contact-guide-button {
    display: inline-flex;
    width: auto !important;
    min-width: 180px;
    max-width: none;
    padding: 14px 28px;
    white-space: nowrap;
    overflow: visible;
  }
}

/* ヒーロー右側の画像表示 */
.hero__visual--image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero__visual--image img {
  display: block;
  width: 115%;
  max-width: 760px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(19, 47, 84, 0.16);
  transform: translateX(-4%);
  position: relative;
  z-index: 1;
}

.hero__visual--image::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(73, 174, 255, 0.18) 0%,
    rgba(73, 174, 255, 0.06) 55%,
    transparent 75%
  );
  z-index: 0;
}

@media (max-width: 767px) {
  .hero__visual--image {
    margin-top: 28px;
  }

  .hero__visual--image img {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(19, 47, 84, 0.14);
  }
}

