@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* 横幅修正のためのグローバル設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

:root {
  --back: linear-gradient(160deg, #fbf3f3 0%, #f1f3fc 46%, #ebeef7 100%);
  --glass-bg: hsla(0, 0%, 100%, 0.22);
  --glass-border: hsla(0, 0%, 100%, 0.37);
  --glass-shadow: 0 8px 40px hsla(200, 30%, 70%, 0.13), 0 1.5px 11px hsla(220, 30%, 32%, 0.13);
  --glass-highlight: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  --glass-radius: 28px;
  --glass-radius-sub: 16px;
  --glass-blur: 23px;
  --glass-saturate: 1.20;
  --glass-brightness: 1.08;
  --brand: hsl(208, 90%, 54%);
  --ink: hsl(0, 0%, 10%);
  --ink-weak: hsl(0, 0%, 43%);
  --focus-ring: hsl(210, 100%, 68%);
  --footer-bg: hsla(0, 0%, 100%, .21);
  --footer-border: hsla(0, 0%, 100%, .28);
  --btn-bg: hsla(0, 0%, 100%, 0.17);
  --popup-bg: linear-gradient(135deg, hsla(0, 0%, 100%, .45) 0%, hsla(210, 90%, 74%, .17) 78%, hsla(0, 0%, 100%, .17) 100%);
}

[data-theme="dark"] {
  --back: linear-gradient(140deg, #191b1f 0%, #25282f 45%, #30333a 100%);
  --glass-bg: hsla(225, 18%, 19%, 0.18);
  --glass-border: hsla(225, 18%, 52%, 0.25);
  --glass-shadow: 0 12px 54px hsla(210, 60%, 38%, 0.13), 0 2px 16px hsla(0, 0%, 100%, 0.13) inset;
  --glass-highlight: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  --brand: hsl(208, 90%, 62%);
  --ink: hsl(0, 0%, 90%);
  --ink-weak: hsl(0, 0%, 67%);
  --focus-ring: hsl(210, 80%, 56%);
  --footer-bg: hsla(218, 28%, 11%, 0.22);
  --footer-border: hsla(222, 22%, 32%, .25);
  --btn-bg: hsla(224, 16%, 15%, 0.24);
  --popup-bg: linear-gradient(130deg, hsla(228, 18%, 17%, .34) 0%, hsla(210, 80%, 64%, .11) 39%, hsla(225, 18%, 19%, .19) 100%);
}

body {
  background: var(--back);
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, Roboto, "Noto Sans JP", sans-serif;
  transition: background .22s, color .21s;
}

section {
  padding: 50px 4px;
  max-width: 900px;
  margin: auto;
  width: 100%;
}

@media(min-width:580px) {
  section {
    padding: 70px 0;
  }
}

.site-title {
  color: var(--brand);
  font-size: clamp(32px, 5vw, 36px);
  margin-bottom: 10px;
  text-align: center;
}

.section-title {
  color: var(--brand);
  font-size: clamp(24px, 4vw, 27px);
  margin-bottom: 10px;
  text-align: center;
}

.section-lead {
  color: var(--ink-weak);
  text-align: center;
  margin-bottom: 10px;
  font-size: clamp(16px, 3vw, 18px);
}

.section-article {
  color: var(--ink-weak);
  text-align: left;
  font-size: clamp(14px, 3vw, 14px);
}

.section-article-center {
  color: var(--ink-weak);
  text-align: center;
  font-size: clamp(14px, 3vw, 14px);
}

.glass-block {
  position: relative;
  border-radius: var(--glass-radius);
  background: var(--glass-bg);
  border: 1.3px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  padding: 24px 12px;
  margin: 12px auto 24px auto;
  max-width: 600px;
  width: 100%;
  transition: background .22s, border .22s, box-shadow .23s, transform .2s;
  overflow: hidden;
}

.glass-block::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--glass-radius);
  background: var(--glass-highlight);
  box-shadow: inset 0 0 20px -5px rgba(255, 255, 255, 0.3), inset -10px -10px 20px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.glass-block>* {
  position: relative;
  z-index: 1;
}

@media(min-width:600px) {
  .glass-block {
    padding: 20px 16px;
  }
}

.glass-block:hover {
  box-shadow: 0 12px 50px hsla(200, 30%, 70%, 0.2);
}

.btn,
.bottom-nav .menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--glass-radius-sub);
  height: 44px;
  min-width: 44px;
  font-size: 0.99rem;
  font-weight: 500;
  background: var(--btn-bg);
  color: var(--ink);
  border: 1px solid var(--glass-border);
  box-shadow: 0 3px 14px hsla(200, 30%, 44%, .08);
  cursor: pointer;
  text-decoration: none !important;
  transition: background .17s, box-shadow .17s, transform .14s, color .20s;
  padding: 0 18px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left .5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover,
.btn:focus-visible,
.bottom-nav .menu-trigger:hover,
.bottom-nav .menu-trigger:focus-visible {
  background: color-mix(in oklab, var(--brand) 20%, white 80% / .18);
  box-shadow: 0 8px 30px hsla(210, 90%, 56%, .17), inset 0 0 10px rgba(255, 255, 255, 0.1);
  transform: scale(1.10);
}

.btn:active,
.bottom-nav .menu-trigger:active {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 3px 10px hsla(0, 0%, 0%, .13);
}

.btn--primary {
  background: color-mix(in oklab, var(--brand) 28%, white 72% / .17);
}

.btn--ok {
  background: color-mix(in oklab, hsl(150, 85%, 50%) 24%, white 76% / .16);
}

.btn--danger {
  background: color-mix(in oklab, hsl(0, 90%, 50%) 21%, white 79% / .15);
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.card {
  padding: 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px hsla(200, 30%, 70%, 0.15);
}

/* ===== 下部ナビ調整版 ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 12px 16px 19px;
  margin-bottom: 5px;
  background: var(--footer-bg);
  border: 1.2px solid var(--footer-border);
  border-radius: 28px;
  backdrop-filter: blur(13px) saturate(1.08);
  -webkit-backdrop-filter: blur(13px) saturate(1.08);
  box-shadow: 0 -2px 13px hsla(0, 0%, 0%, .07);
  width: min(92vw, 560px);
  max-width: 100%;
  flex-wrap: nowrap;
  z-index: 80;
  transition: transform .2s;
}

.bottom-nav:hover {
  transform: translateX(-50%) translateY(-2px);
}

.bottom-nav .btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: clamp(44px, 20vw, 56px);
  height: clamp(44px, 20vw, 56px);
  border-radius: 18px;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  transition: width .21s, background .17s, box-shadow .17s, transform .14s, color .20s;
}

.bottom-nav .btn.active {
  width: clamp(70px, 28vw, 90px);
  background: color-mix(in oklab, var(--brand) 32%, white 68%/.22);
}

.bottom-nav .btn i {
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1;
  transition: transform .2s;
}

.bottom-nav .btn:hover i {
  transform: scale(1.1);
}

.bottom-nav .btn span {
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1;
}

.bottom-nav .menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 20vw, 56px);
  height: clamp(44px, 20vw, 56px);
  border-radius: 18px;
}

.bottom-nav .menu-trigger i {
  font-size: clamp(18px, 5vw, 22px);
  transition: transform .2s;
}

.bottom-nav .menu-trigger:hover i {
  transform: rotate(90deg);
}

/* ===== ポップアップメニュー ===== */
.popup-menu {
  position: absolute;
  right: 16px;
  bottom: calc(100% + 12px);
  z-index: 500;
  min-width: 275px;
  max-width: 95vw;
  background: var(--popup-bg);
  border-radius: 30px;
  border: 1.3px solid var(--glass-border);
  box-shadow: 0 12px 54px hsla(210, 60%, 38%, 0.13), 0 2px 16px hsla(0, 0%, 100%, 0.13) inset;
  backdrop-filter: blur(23px) saturate(1.20) brightness(1.08);
  -webkit-backdrop-filter: blur(23px) saturate(1.20) brightness(1.08);
  color: var(--ink);
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: popupfade .28s cubic-bezier(.37, .51, .32, 1.06);
  transform: scale(0.95);
  transition: transform .2s;
}

@keyframes popupfade {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-menu.active {
  display: flex;
  transform: scale(1);
}

.popup-menu .popup-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 26px;
  font-size: 1.08rem;
  cursor: pointer;
  user-select: none;
  transition: background .14s, transform .1s;
}

.popup-menu .popup-item:hover {
  background: color-mix(in oklab, var(--brand)8%, white 92% / .17);
  border-radius: 18px;
  transform: translateX(5px);
}

/* トグルスイッチ */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 26px;
  background: hsla(0, 0%, 100%, 0.11);
  border-radius: 13px;
  box-shadow: 0 1px 9px hsla(0, 0%, 0%, 0.09) inset;
  display: inline-block;
  cursor: pointer;
  transition: background .18s;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-switch .toggle-thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 1px 10px hsla(210, 80%, 56%, .14);
  transition: left .17s, background .13s, transform .2s;
}

.toggle-switch input:checked+.toggle-thumb {
  left: 20px;
  background: hsl(220, 22%, 22%);
  transform: scale(1.05);
}

/* 価格テーブル */
.pricing-table {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .pricing-table {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius-sub);
  padding: 15px;
  text-align: center;
  transition: transform .2s;
}

.plan:hover {
  transform: scale(1.02);
}

.plan h3 {
  color: var(--brand);
  margin-bottom: 5px;
}

.plan .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ink);
}

/* 連絡フォーム */
.contact-form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius-sub);
  padding: 12px;
  color: var(--ink);
  backdrop-filter: blur(10px);
  transition: box-shadow .2s;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px var(--focus-ring);
  outline: none;
}

/* 画像ポップアップモーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFade 0.3s ease-out;
}

@keyframes modalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate)) brightness(var(--glass-brightness));
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  cursor: zoom-out;
  transition: transform 0.2s ease;
}

.modal-content:hover {
  transform: translateY(-50%) scale(1.02);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: var(--ink);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
  background: var(--glass-bg);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.close:hover {
  color: var(--brand);
}

.preview-img {
  cursor: zoom-in;
  border-radius: var(--glass-radius-sub);
  box-shadow: 0 4px 20px hsla(200, 30%, 40%, 0.12);
  transition: transform 0.2s ease;
  max-width: 100%;
  height: auto;
}

.preview-img:hover {
  transform: scale(1.02);
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {

  .glass-block,
  .btn,
  .bottom-nav,
  .popup-menu,
  .input,
  textarea,
  .modal-content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: hsla(0, 0%, 100%, 0.92);
  }

  .modal {
    background-color: rgba(0, 0, 0, 0.8);
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  .modal-content {
    width: 95%;
  }
}

.glass-footer {
  width: 100%;
  max-width: 100%;
  padding: 20px 0 160px 0;
  text-align: center;
  background: var(--footer-bg);
  border-top: 1.5px solid var(--footer-border);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -3px 18px hsla(0, 0%, 0%, .07);
  backdrop-filter: blur(11px) saturate(1.12);
  -webkit-backdrop-filter: blur(11px) saturate(1.12);
  color: var(--ink-weak);
  font-size: 1.05rem;
  position: relative;
  z-index: 22;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

@media (max-width:560px) {
  .footer-content {
    flex-direction: column;
    gap: .15em;
  }

  .glass-footer {
    padding: 20px 0 100px 0;
  }
}

.download-options {
  display: none;
  gap: 8px;
  margin-top: 12px;
  transition: all 0.32s cubic-bezier(.37, .51, .32, 1.06);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
}

.download-options.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0) scale(1);
  gap: 8px;
  align-items: center;
}

.option-btn {
  border-radius: var(--glass-radius-sub, 16px);
  background: var(--glass-bg, hsla(0, 0%, 100%, .22));
  border: 1px solid var(--glass-border, hsla(0, 0%, 100%, .37));
  box-shadow: var(--glass-shadow, 0 8px 40px hsla(200, 30%, 70%, .13));
  padding: 10px 20px;
  color: var(--brand, #3640ff);
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow .18s, background .18s;
}

.option-btn:hover {
  background: var(--brand, #3640ff);
  color: #fff;
  box-shadow: 0 10px 32px hsla(210, 90%, 56%, .18);
}

.img-normal {
  width:100%;
  border-radius:16px;box-shadow:0 4px 20px hsla(200,30%,40%,0.12);
}