:root {
  --primary: #0a1d37;
  --primary-light: #1e3a8a;
  --primary-gradient: linear-gradient(135deg, #0a1d37 0%, #1e3a8a 100%);
  --text: #2d2d2d;
  --sub-text: #666666;
  --bg-light: #f4f7fa;
  --white: #ffffff;
  --accent: #d4a373;
  --accent-hover: #c49363;
  --border: #e2e8f0;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.8;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-padding {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.m-auto {
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.small-caption {
  font-size: 0.75rem;
  color: var(--sub-text);
  display: block;
  margin-top: 8px;
}

img {
  max-width: 100%;
}

/* PC Mockup */
.pc-mockup {
  width: 100%;
  padding: 10px;
  background: #333;
  border-radius: 8px 8px 0 0;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pc-mockup::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 10px;
  width: 6px;
  height: 6px;
  background: #ff5f56;
  border-radius: 50%;
  box-shadow: 12px 0 #ffbd2e, 24px 0 #27c93f;
}

.pc-mockup-screen {
  background-color: var(--bg-light);
  background-image: url(../images/sample01.jpg);
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.pc-mockup-base {
  width: 110%;
  margin-left: -5%;
  height: 8px;
  background: #222;
  border-radius: 0 0 8px 8px;
}

.bg-decor {
  position: absolute;
  z-index: -1;
  opacity: 0.05;
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.05em;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.header-cta {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 14px 32px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border-radius: 4px;
  display: inline-block;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(10, 29, 55, 0.2);
}

/* Hero */
.hero {
  padding-top: 180px;
  padding-bottom: 260px;
  background: var(--primary-gradient);
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  text-align: left;
}

.hero-text {
  flex: 1;
  z-index: 2;
}

.hero-visual {
  flex: 0.9;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-label {
  color: rgba(255, 255, 255, 0.6);
}

.hero-cta-main {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 22px 56px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.hero-cta-main:hover {
  transform: translateY(-4px);
  background: var(--accent-hover);
  color: var(--white);
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* Mockup Placement */
.visual-container {
  position: relative;
  width: 100%;
}

.smartphone-mockup {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 32%;
  background: #222;
  border: 8px solid #222;
  border-radius: 30px;
  aspect-ratio: 9 / 19;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smartphone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smartphone-placeholder {
  color: #666;
  font-size: 10px;
}

/* Design Gallery Loop Animation */
.design-gallery-loop {
  padding: 60px 0;
  background: var(--white);
  overflow: hidden;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: loopScroll 40s linear infinite;
}

.gallery-track img {
  width: 320px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

@keyframes loopScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* CTA Block */
.cta-block {
  padding: 80px 0;
  background: var(--primary-gradient);
  color: var(--white);
  text-align: center;
}

.cta-block h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 32px;
}

/* Sections */
.problem-section {
  background: var(--bg-light);
}

.section-header {
  max-width: 800px;
  margin-bottom: 72px;
}

.section-label {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.4em;
  display: block;
  margin-bottom: 20px;
  text-transform: uppercase;
}

/* Problem Section Redesign */
.problem-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
  position: relative;
}

.problem-bubbles {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.problem-center {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.problem-center img {
  width: 100%;
  height: auto;
  max-width: 260px;
}

.speech-bubble {
  background: var(--white);
  padding: 24px 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.speech-bubble:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.speech-bubble p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.6;
}

/* Arrows for speech bubbles */
.bubbles-left .speech-bubble::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.bubbles-right .speech-bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-strong {
  margin-top: 100px;
}

.problem-strong-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 40px;
  font-style: italic;
}

/* Reasons */
.reasons-section {
  background: var(--white);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.reason-card {
  background: var(--bg-light);
  padding: 56px 48px;
  text-align: left;
  transition: var(--transition);
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reason-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(10, 29, 55, 0.1);
}

.reason-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.reason-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
}

.reason-card p {
  font-size: 0.95rem;
  color: var(--sub-text);
  line-height: 1.9;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.gallery-item {
  text-align: center;
}

.gallery-info {
  margin-top: 32px;
}

.gallery-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.gallery-bottom-cta {
  margin-top: 80px;
}

.gallery-outline-cta {
  background: none !important;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 18px 48px;
}

/* mock backgrounds */
.webrie-gallery-mock-1 {
  background-image: url("../images/mockup01.jpg");
}

.webrie-gallery-mock-2 {
  background-image: url("../images/mockup02.jpg");
}

.webrie-gallery-mock-3 {
  background-image: url("../images/mockup03.jpg");
}

/* Pricing */
.pricing-section {
  background: var(--primary-gradient);
  color: var(--white);
  padding-bottom: 140px;
}

.pricing-section h2,
.pricing-section .section-label {
  color: var(--white);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--white);
  color: var(--text);
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  border-radius: 8px;
}

.price-card:hover {
  transform: scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.plan-title {
  font-size: 1.2rem;
  color: var(--primary);
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 24px 0;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price span {
  font-size: 1.1rem;
  font-weight: 400;
}

.plan-list {
  list-style: none;
  margin: 40px 0;
  flex-grow: 1;
}

.plan-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.plan-list li::before {
  content: "✔";
  color: var(--accent);
  margin-right: 12px;
  font-weight: 900;
}

.plan-cta {
  text-align: center;
  border-radius: 4px;
}

.price-notes {
  margin-top: 80px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: left;
  /* Changed from center to left */
}

.price-notes .small-caption {
  color: white;
  font-size: 0.9rem;
}

.price-note-strong {
  font-weight: 800;
}

/* Comparison */
.comparison-section {
  background: var(--bg-light);
}

.comparison-lead {
  margin-top: 16px;
  color: var(--sub-text);
}

.comparison-wrapper {
  margin-top: 64px;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  background: white;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  color: var(--text);
}

.comp-table th,
.comp-table td {
  padding: 32px 24px;
  border: 1px solid var(--border);
  text-align: center;
}

.comp-table th {
  background: #fdfdfd;
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
}

.comp-table td {
  font-size: 1rem;
}

.comp-table .who-ai-col {
  background: rgba(10, 29, 55, 0.02);
  font-weight: 800;
  color: var(--primary);
  border: 3px solid var(--primary);
  position: relative;
}

.who-ai-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  padding: 2px 12px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.who-ai-small {
  color: var(--accent);
}

/* Timeline */
.process-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 60px;
  margin-top: 80px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-gradient);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -67px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 800;
}

.process-text {
  font-size: 1rem;
}

/* Contact / Form */
.contact-section {
  background: var(--primary);
  position: relative;
}

.contact-head {
  margin-bottom: 80px;
  color: white;
}

.contact-head h2 {
  color: white;
  font-size: 2.8rem;
}

.contact-head p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.form-area {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  padding: 80px;
  border-radius: 12px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.form-group {
  margin-bottom: 40px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--primary);
}

.required::after {
  content: "必須";
  font-size: 10px;
  background: #e63946;
  color: white;
  padding: 2px 8px;
  margin-left: 12px;
  border-radius: 2px;
  vertical-align: middle;
}

input,
select,
textarea {
  width: 100%;
  padding: 18px;
  border: 2px solid var(--border);
  background: #fafafa;
  outline: none;
  transition: var(--transition);
  border-radius: 4px;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background: white;
}

.form-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-options label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-options input[type="checkbox"] {
  width: auto;
}

.submit-btn {
  width: 100%;
  padding: 28px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.form-note {
  text-align: center;
  margin-top: 32px;
  font-weight: 600;
}

/* FAQ */
.faq-section {
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  padding: 32px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
}

.faq-q.active::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--sub-text);
  font-size: 1rem;
  line-height: 2;
}

.faq-a-inner {
  padding-bottom: 32px;
}

/* Footer */
.webrie-footer {
  padding: 100px 0;
  background: #050d1a;
  color: white;
  text-align: center;
}

.footer-logo {
  color: white;
  font-size: 2rem;
  margin-bottom: 24px;
}

.footer-lead {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding-bottom: 180px;
  }

  .hero-visual {
    width: 100%;
    max-width: 500px;
    margin-top: 40px;
  }

  .grid-4,
  .gallery-grid,
  .reason-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .problem-layout {
    flex-direction: column;
  }

  .problem-center {
    order: -1;
    margin-bottom: 40px;
  }

  .speech-bubble::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid-4,
  .gallery-grid,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
    /* スマホ用に小さく調整 */
  }

  .hero-cta-main {
    padding: 16px 24px;
    /* スマホ用に余白を調整 */
    white-space: nowrap;
    /* ボタン内のテキスト改行を防止 */
    font-size: 1rem;
    display: inline-block;
    width: auto;
  }

  h2 {
    font-size: 1.6rem;
    /* 各見出しのテキストを少し小さく */
  }

  .section-padding {
    padding: 80px 0;
  }

  .form-area {
    padding: 40px 24px;
  }

  .nav-links {
    display: none;
  }

  .form-options {
    grid-template-columns: 1fr;
  }

  .comp-table {
    min-width: 700px;
    /* 横スクロールを可能にするため最小幅を指定 */
  }

  .comparison-wrapper {
    overflow-x: auto;
    /* コンテンツ幅に収まらない場合にスクロール可能に */
  }

  .gallery-track img {
    width: 240px;
  }
}

.gallery-info .small-caption {
  margin-bottom: 15px;
}

.reason-icon-placeholder {
  text-align: center;
  margin: 0 auto;
}

.reason-icon-placeholder img {
  max-width: 200px;
  height: auto;
}

.sp-br {
  display: none;
}

@media screen and (max-width: 767px) {
  .problem-center {
    flex: 0;
    margin-bottom: 0;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .reason-card {
    padding: 20px;
  }
  .price-card {
    padding: 20px;
  }
  .price-notes {
    padding: 20px;
    gap: 10px;
  }
  .section-padding {
    padding: 40px 0;
  }
  .contact-head h2 {
    font-size: 18px;
  }
  .problem-strong-text {
    font-size: 20px;
  }
  .sp-br {
    display: block;
  }
  .problem-strong {
    margin-top: 30px;
  }
}

.h-logo {
  width: 100px;
}

.footer-logo {
  width: 150px;
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .h-logo {
    width: 70px;
  }
  .footer-logo {
    width: 100px;
  }
}
