/*
Theme Name: Local Business LP Theme
Theme URI: https://example.com/
Description: 地方企業のWebマーケティング支援LP用テーマ
Author: Your Name
Author URI: https://example.com/
Version: 1.0.1
*/

/* ----------------------------------------------------------------
   Landing Page Styles (.lp-wrapper)
   スコープ: .lp-wrapper 内に限定し、他への影響を防ぎます
----------------------------------------------------------------- */

:root {
  --lp-primary: #0F2350; /* 信頼のネイビー */
  --lp-accent: #E67E22;  /* 活気のオレンジ */
  --lp-text: #333333;    /* 基本テキスト */
  --lp-gray: #F4F7F6;    /* 背景グレー */
  --lp-white: #ffffff;
  --lp-font-base: "Noto Sans JP", sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

.lp-wrapper {
  font-family: var(--lp-font-base);
  color: var(--lp-text);
  line-height: 1.6;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.lp-wrapper * {
  box-sizing: border-box;
}

.lp-wrapper img {
  max-width: 100%;
  height: auto;
}

.lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilities */
.lp-text-center { text-align: center; }
.lp-text-bold { fontWeight: 700; }
.lp-text-highlight {
  background: linear-gradient(transparent 60%, #fff9c4 60%);
  font-weight: bold;
}
.u-sp-only { display: none; }
.u-mt-40 { margin-top: 40px; }
@media (max-width: 768px) {
  .u-sp-only { display: block; }
}

/* Buttons */
.lp-btn {
  display: inline-block;
  background-color: var(--lp-accent);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  border: 2px solid var(--lp-accent);
  text-align: center;
}
.lp-btn:hover {
  background-color: #fff;
  color: var(--lp-accent);
}
.lp-btn--lg {
  font-size: 1.2rem;
  padding: 15px 40px;
  box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}
.lp-btn--sm {
  font-size: 0.9rem;
  padding: 8px 20px;
}
.lp-btn--outline {
  background-color: transparent;
  color: var(--lp-primary);
  border-color: var(--lp-primary);
}
.lp-btn--outline:hover {
  background-color: var(--lp-primary);
  color: #fff;
}
.lp-btn--white {
  background-color: #fff;
  color: var(--lp-accent);
  border-color: #fff;
}
.lp-btn--white:hover {
  background-color: var(--lp-accent);
  color: #fff;
  border-color: #fff;
}

/* 1. Header */
.lp-header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 15px 0;
  position: relative;
  z-index: 100;
}
.lp-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-header__logo img {
  height: 40px;
  width: auto;
}
.lp-header__nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-header__nav li {
  margin-left: 20px;
}
.lp-header__nav a {
  text-decoration: none;
  color: var(--lp-primary);
  font-weight: bold;
}
.lp-header__contact {
  display: flex;
  align-items: center;
  gap: 15px;
}
.lp-header__tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.lp-header__tel-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--lp-primary);
}
.lp-header__tel-note {
  font-size: 0.7rem;
}
@media (max-width: 900px) {
  .lp-header__nav, .lp-header__tel { display: none; }
}

/* 2. Hero */
.lp-hero {
  position: relative;
  background-color: #f0f0f0;
  padding: 100px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.lp-hero__bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
}
.lp-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
/* 画像の上に文字を載せるためのオーバーレイ */
.lp-hero__bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
}

.lp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.lp-hero__title {
  font-size: 2.5rem;
  color: var(--lp-primary);
  margin-bottom: 20px;
  line-height: 1.4;
}
.lp-hero__title-sub {
  font-size: 1.5rem;
  color: #555;
  display: block;
  margin-bottom: 10px;
}
.lp-hero__desc {
  font-size: 1.1rem;
  margin-bottom: 40px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .lp-hero { padding: 60px 0; }
  .lp-hero__bg::after { background: rgba(255,255,255,0.85); }
  .lp-hero__title { font-size: 1.8rem; }
  .lp-hero__title-sub { font-size: 1.1rem; }
  .lp-btn--lg { width: 100%; box-sizing: border-box; }
}

/* Sections Common */
.lp-section {
  padding: 80px 0;
}
.lp-section-title {
  font-size: 2rem;
  color: var(--lp-primary);
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .lp-section { padding: 50px 0; }
  .lp-section-title { font-size: 1.5rem; margin-bottom: 30px; text-align: left;}
}

/* 3. Problem */
.lp-problem {
  background-color: var(--lp-white);
}
.lp-problem__box {
  background: #fff;
  border: 2px solid var(--lp-primary);
  padding: 40px;
  border-radius: 10px;
}
.lp-problem__lead {
  text-align: center;
  font-weight: bold;
  margin-bottom: 30px;
}
.lp-problem__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
}
.lp-problem__list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: bold;
}
.lp-problem__list li::before {
  content: '✔';
  position: absolute;
  left: 0; top: 0;
  color: red;
  font-size: 1.2rem;
}
@media (max-width: 768px) {
  .lp-problem__box { padding: 20px; }
  .lp-problem__list li { font-size: 1rem; }
}

/* 4. Solution */
.lp-solution {
  background-color: var(--lp-gray);
}
.lp-solution__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.lp-solution__text p {
  margin-bottom: 20px;
}
.lp-solution__message {
  font-size: 1.2rem;
  color: var(--lp-primary);
  font-weight: bold;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
  margin-top: 30px;
}
@media (max-width: 768px) {
  .lp-solution__content { text-align: left; }
}

/* 5. Services */
.lp-services {
  background-color: var(--lp-white);
}
.lp-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.lp-service-card {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}
.lp-service-card:hover {
  transform: translateY(-5px);
}
.lp-service-card__head {
  background: var(--lp-primary);
  color: #fff;
  padding: 20px;
}
.lp-service-card__label {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  margin-bottom: 5px;
}
.lp-service-card__title {
  font-size: 1.3rem;
  margin: 0;
}
.lp-service-card__body {
  padding: 25px;
}
.lp-service-card__catch {
  font-weight: bold;
  color: var(--lp-accent);
  margin-bottom: 15px;
}
.lp-service-card__desc {
  font-size: 0.95rem;
  color: #666;
}
@media (max-width: 768px) {
  .lp-services__grid { grid-template-columns: 1fr; }
}

/* 6. Advantage (Equal Height Fix) */
.lp-advantage {
  background-color: #ECF0F1;
}
.lp-advantage__flow {
  display: flex;
  justify-content: space-between;
  /* align-items: stretch; (デフォルトの挙動) - これで子要素の高さが揃います */
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.lp-advantage__step {
  background: #fff;
  padding: 20px;
  width: 22%; /* 4列の場合の間隔調整 */
  border-radius: 8px;
  text-align: center;
  position: relative;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  /* 内部コンテンツの配置調整 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto; /* flexアイテムなので自動的に一番高いものに揃います */
}
.lp-step-num {
  font-size: 0.8rem;
  color: #999;
  font-weight: bold;
}
.lp-step-icon {
  font-size: 3rem;
  margin: 10px 0;
}
.lp-advantage__step h3 {
  font-size: 1.1rem;
  color: var(--lp-primary);
  margin-bottom: 10px;
}
.lp-advantage__step p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: auto; /* コンテンツ量が違ってもテキスト下端を揃えたい場合は有効 */
  margin-bottom: 0;
}
.lp-advantage__arrow {
  display: none; /* レイアウト変更に伴い矢印は非表示 */
}
.lp-advantage__message {
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
}
@media (max-width: 900px) {
  .lp-advantage__flow { flex-direction: column; align-items: center; }
  .lp-advantage__step { width: 100%; max-width: 400px; margin-bottom: 20px; }
}

/* 7. Message */
.lp-message {
  background-color: var(--lp-white);
}
.lp-message__inner {
  display: flex;
  gap: 50px;
  align-items: center;
}
.lp-message__img {
  flex: 1;
}
.lp-message__img img {
  border-radius: 10px;
  box-shadow: 20px 20px 0 var(--lp-gray);
}
.lp-message__text {
  flex: 1.5;
}
.lp-message__title {
  font-size: 1.8rem;
  color: var(--lp-primary);
  margin-bottom: 30px;
  border-left: 5px solid var(--lp-accent);
  padding-left: 15px;
}
.lp-message__sign {
  text-align: right;
  font-weight: bold;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .lp-message__inner { flex-direction: column; }
  .lp-message__img { width: 100%; }
}

/* 8. FAQ */
.lp-faq {
  background-color: var(--lp-gray);
}
.lp-faq__list {
  max-width: 800px;
  margin: 0 auto;
}
.lp-faq__item {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  padding: 20px;
}
.lp-faq__q {
  font-weight: bold;
  color: var(--lp-primary);
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}
.lp-faq__q::before {
  content: 'Q.';
  position: absolute;
  left: 0; color: var(--lp-accent);
}
.lp-faq__a {
  padding-left: 25px;
  position: relative;
}
.lp-faq__a::before {
  content: 'A.';
  position: absolute;
  left: 0; color: var(--lp-primary);
  font-weight: bold;
}

/* 9. News */
.lp-news {
  background-color: #fff;
}
.lp-news__list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}
.lp-news__list li {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.lp-news__date {
  font-size: 0.9rem;
  color: #888;
  margin-right: 15px;
}
.lp-news__tag {
  background: #eee;
  font-size: 0.8rem;
  padding: 2px 8px;
  margin-right: 15px;
  border-radius: 4px;
}
.lp-news__list a {
  color: var(--lp-text);
  text-decoration: none;
}
.lp-news__list a:hover {
  text-decoration: underline;
}

/* 10. Footer */
.lp-footer {
  background-color: var(--lp-primary);
  color: #fff;
  padding: 80px 0 20px;
}
.lp-footer__inner {
  text-align: center;
}
.lp-footer__title {
  font-size: 2rem;
  margin-bottom: 20px;
}
.lp-footer__actions {
  background: rgba(255,255,255,0.1);
  padding: 40px;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 800px;
}
.lp-footer__tel p { margin: 0 0 10px; }
.lp-tel-link {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.lp-tel-note { font-size: 0.9rem; display: block; margin-bottom: 30px; }
.lp-btn-note { font-size: 0.8rem; display: block; margin-top: 10px; }

.lp-footer__nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}
.lp-footer__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}
.lp-copyright {
  font-size: 0.8rem;
  color: #ccc;
}
@media (max-width: 768px) {
  .lp-footer__title { font-size: 1.5rem; }
  .lp-tel-link { font-size: 1.8rem; }
  .lp-footer__actions { padding: 20px; }
  .lp-footer__nav ul { flex-direction: column; gap: 10px; }
}

/* ----------------------------------------------------------------
   Animation (.fade-up)
----------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}