/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.l-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Segoe UI", sans-serif;
  color: #222;
  background: #fff;
}

/* Utility */
.u-center { text-align: center; }
.u-primary { color: #00a4c7; }
.u-secondary { color: #ff7f3f; }

._pc { display: none; }
._tb-sp { display: inline; }

@media (min-width: 960px) {
  ._pc { display: inline; }
  ._tb-sp { display: none; }
}

/* Container */
.l-container,
.l-container--md,
.l-container--sm {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.l-container--sm { max-width: 960px; }
.l-container--md { max-width: 1040px; }
.l-container      { max-width: 1200px; }

/* ============================================
   Smart App Banner
   - バナー高さ変数を CSS カスタムプロパティで管理
   - JS が banner.offsetHeight を --banner-h に書き込む
   - ヘッダー・スクロール計算すべてこの変数に依存
   ============================================ */
:root {
  --banner-h: 0px;   /* JS で動的に上書き */
  --header-h: 54px;  /* JS で動的に上書き（実測値） */
}

/* Banner */
.p-app-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.p-app-banner.is-hidden {
  transform: translateY(-100%);
}

.p-app-banner__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 14px;
}

.p-app-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, #00a4c7, #00d1c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.p-app-banner__body {
  flex: 1;
  min-width: 0;
}

.p-app-banner__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-app-banner__desc {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-app-banner__cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #00a4c7, #00d1c7);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,164,199,0.28);
}

.p-app-banner__close {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #aaa;
  flex-shrink: 0;
  line-height: 1;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.p-app-banner__close:hover {
  color: #555;
}

/* Header – バナー高さ分だけ top を下げる */
.l-headerWrap {
  position: sticky;
  top: var(--banner-h);   /* ← ここがズレ防止の核心 */
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: top 0.3s ease;
}

.l-header {
  max-width: 1200px;
  margin: 0 auto;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.l-header__ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.l-header__logo {
  height: 32px;
}

.l-header__nav {
  margin-left: auto;
}

.l-header__list {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.l-header__link {
  text-decoration: none;
  font-size: 14px;
  color: #333;
  position: relative;
}

.l-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #00a4c7;
  transition: width 0.2s;
}

.l-header__link:hover::after {
  width: 100%;
}

/* App DL button in header */
.l-header__btn a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(90deg, #00a4c7, #00d1c7);
  text-decoration: none;
}

/* Burger button (SP) */
.c-btn-burger {
  border: none;
  background: none;
  padding: 4px;
  cursor: pointer;
}

.c-btn-burger__item {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: #333;
}

/* Drawer */
.l-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 90;
}

.l-drawer__inner {
  width: 70%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  padding: 24px 16px;
}

.l-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.l-drawer__link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
}

/* FV */
.p-front-fv {
  padding: 48px 16px 32px;
  background: linear-gradient(180deg, #f5fcff, #fff);
}

.p-front-fv__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.p-front-fv__row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.p-front-fv__col--txt {
  flex: 1;
}

.p-front-fv__ttl {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.p-front-fv__subttl {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.p-front-fv__col--img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.p-front-fv__img img {
  max-width: 260px;
  height: auto;
}

@media (min-width: 960px) {
  .p-front-fv {
    padding: 72px 16px 56px;
  }

  .p-front-fv__row {
    flex-direction: row;
    align-items: center;
  }

  .p-front-fv__ttl {
    font-size: 36px;
  }
}

/* App DL band (top) */
.p-front-dl {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 24px 16px;
}

.p-front-dl__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.p-front-dl__txt01 {
  margin: 0 0 12px;
  font-size: 18px;
}

.p-front-dl__txt02 {
  margin-top: 12px;
  font-size: 14px;
}

.p-front-dl__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

/* NEWS */
.p-front-news {
  padding: 40px 0;
}

.p-front-news__heading {
  text-align: center;
  font-size: 20px;
  margin: 0 0 16px;
}

.c-list__item {
  border-bottom: 1px solid #eee;
}

.c-list__link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.c-list__cat {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #e7f9ff;
  color: #008bb0;
}

.c-list__date {
  font-size: 12px;
  color: #777;
}

/* WHAT'S PYNECA */
.p-front__ttl {
  font-size: 18px;
  letter-spacing: 0.12em;
  color: #00a4c7;
  margin-bottom: 8px;
}

.p-front-about {
  padding: 40px 0;
}

.p-front-about__heading {
  text-align: center;
  font-size: 20px;
  margin-bottom: 24px;
}

.p-front-about__list {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .p-front-about__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.p-front-about__item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}

.p-front-about__img img {
  width: 100%;
  display: block;
}

.p-front-about__cont {
  padding: 16px;
}

.p-front-about__num {
  font-size: 13px;
  color: #00a4c7;
}

.p-front-about__ttl {
  font-size: 16px;
  margin: 4px 0 8px;
}

/* Google Map */
.p-front-map {
  padding: 40px 16px;
  background: #f5fcff;
}

.p-front-map__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.p-front-map__heading {
  text-align: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.p-front-map__desc {
  text-align: center;
  font-size: 14px;
  margin-bottom: 16px;
  color: #555;
}

.p-front-map__search {
  max-width: 520px;
  margin: 0 auto 16px;
  display: flex;
  gap: 8px;
}

.p-front-map__search input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.p-front-map__search button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  background: #00a4c7;
  color: #fff;
  cursor: pointer;
}

#pynecaMap {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ADVANTAGE (POINT) */
.p-front-reason {
  padding: 40px 16px;
}

.p-front-reason__heading {
  font-size: 20px;
  margin-bottom: 24px;
}

.p-front-reason__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

@media (min-width: 960px) {
  .p-front-reason__item {
    flex-direction: row;
    align-items: center;
  }
}

/* FAQ */
.p-front-faq {
  padding: 40px 16px;
}

.c-faq__item {
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 12px;
  background: #fff;
}

.c-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}

.c-faq__ttl {
  margin: 0;
  font-size: 14px;
}

/* Footer */
.l-footer {
  background: #222;
  color: #fff;
  padding: 32px 16px 16px;
  font-size: 12px;
}

.l-footer__nav,
.l-footer__subNav {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.l-footer__link,
.l-footer__subNav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}

.l-footer__link:hover,
.l-footer__subNav a:hover {
  opacity: 1;
}

/* ============================================
   Flow section
   ============================================ */
.p-front-flow {
  padding: 60px 0;
  background: #f8fbfc;
}

.p-front-flow__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: flow-counter;
}

.p-front-flow__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e8f4f7;
  position: relative;
}

.p-front-flow__item:last-child {
  border-bottom: none;
}

.p-front-flow__num {
  font-size: 36px;
  font-weight: 800;
  color: #00a4c7;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  opacity: 0.85;
}

.p-front-flow__body {
  flex: 1;
}

.p-front-flow__ttl {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}

.p-front-flow__desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 768px) {
  .p-front-flow__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
  }
  .p-front-flow__item:nth-child(odd) {
    border-right: 1px solid #e8f4f7;
    padding-right: 40px;
  }
  .p-front-flow__item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* ============================================
   Company section
   ============================================ */
.p-front-company {
  padding: 60px 0;
  background: #fff;
}

.p-front-company__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 14px;
}

.p-front-company__table th,
.p-front-company__table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.p-front-company__table th {
  width: 140px;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
  background: #f8fbfc;
}

.p-front-company__table td a {
  color: #00a4c7;
  text-decoration: none;
}

.p-front-company__table td a:hover {
  text-decoration: underline;
}

@media (max-width: 599px) {
  .p-front-company__table th {
    width: 100px;
    font-size: 12px;
  }
}

/* ============================================
   Terms section
   ============================================ */
.p-front-terms {
  padding: 60px 0;
  background: #f8fbfc;
}

.p-front-terms__body {
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.p-front-terms__ttl {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 28px 0 8px;
  padding-left: 10px;
  border-left: 3px solid #00a4c7;
}

.p-front-terms__body p {
  margin: 0 0 8px;
}

.p-front-terms__note {
  margin-top: 32px !important;
  font-size: 12px !important;
  color: #999 !important;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* ============================================
   Footer enhancements
   ============================================ */
.l-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.l-footer__logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #aaa;
}

.l-footer__contact {
  margin: 16px 0;
}

.l-footer__contact-link {
  color: #aaa;
  font-size: 13px;
  text-decoration: none;
}

.l-footer__contact-link:hover {
  color: #00a4c7;
}
