@charset "UTF-8";
/* =========================================
   Project: 処方箋リーダー
   ========================================= */
/* -----------------------------------------
   Hero Section (.p-hero)
   ----------------------------------------- */
.p-hero {
  position: relative;
  background-color: #C6EBFF;
  background-image: url('../img/bg_hero-main.png');
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 0 40px;
  overflow: hidden;
}
.p-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.p-hero__content {
  flex: 0 1 55%;
}
.p-hero__logo {
  margin-bottom: 20px;
}
.p-hero__logo img {
  max-width: 400px;
  height: auto;
}
.p-hero__catch {
  font-size: 2.25rem;
  font-weight: 700;
  color: #404089;
  line-height: 1.4;
  margin-bottom: 25px;
}
.p-hero__lead {
  font-size: 1.05rem;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 40px;
}
/* CTAエリアのコンテナ */
.p-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
/* ボタンサイズの微調整（必要に応じて） */
.p-hero__btn {
  font-size: 1.1rem;
}
/* 画像エリア */
.p-hero__visual {
  flex: 0 1 45%; 
  position: relative;
}
.p-hero__visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}
/* =========================================
   Problem Section (.p-problem)
   ========================================= */
.p-problem {
  background-color: #F8F9FA;
  padding: 80px 0;
}
.p-problem__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 40px;
}
/* --- お悩みセクションのカードレイアウト --- */
.p-problem__box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center; /* 上下中央揃え */
  justify-content: center;
  gap: 50px; /* テキストと画像の間隔 */
  margin-bottom: 40px;
}
/* リスト側の設定 */
.p-problem__list {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.p-problem__item {
  font-size: 1.5rem;
  color: #333333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.p-problem__item:last-child {
  margin-bottom: 0;
}

/* 画像に合わせ、チェックマークをオレンジ色に */
.p-problem__item i {
  color: #F39800;
  font-size: 1.5rem;
}

/* 画像側の設定 */
.p-problem__img {
  flex: 0 0 250px; /* 画像エリアの横幅を固定 */
  text-align: center;
}

.p-problem__img img {
  width: 100%;
  max-width: 200px;
  height: auto;
}
/* --- 追加：下矢印と解決策メッセージ --- */
.p-problem__solution {
  text-align: center;
}
.p-problem__arrow {
  font-size: 3rem;
  color: #336699;
  /* フワフワ上下に動くアニメーション */
  animation: bounceArrow 2s infinite;
}
@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}
.p-problem__message {
  max-width: 1500px;
  margin: 0 auto;
}
/* --- 解決策メッセージのタイトル --- */
.p-problem__message-title {
  font-size: 2.2rem; /* サイズを大きく (旧: 1.8rem) */
  font-weight: 700;
  color: #336699; /* 矢印と同じ青色に統一 */
  line-height: 1.4;
  margin-bottom: 25px; /* テキストとの余白 */
}
/* 以前設定した赤い下線装飾を無効化 */
.p-problem__message-title span {
  border-bottom: none;
}
/* --- サブテキスト --- */
.p-problem__message-text {
  font-size: 1.05rem;
  color: #333333;
  line-height: 1.8;
  text-align: left;
  display: block;
  max-width: 900px;
  margin: 0 auto 40px; /* 図解との間に余白（40px）を設定 */
}
/* --- 図解エリア --- */
.p-problem__solution-img {
  margin: 0 auto;
  text-align: center;
  max-width: 1500px;
}
.p-problem__solution-img img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
/* =========================================
   Image Modal & Zoom Icon
   ========================================= */
/* --- 拡大用リンクとアイコン --- */
.p-problem__solution-link {
  display: inline-block;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}
.p-problem__solution-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: rgba(51, 102, 153, 0.9); /* 青色の半透明背景 */
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.p-problem__solution-link:hover .p-problem__solution-icon {
  transform: scale(1.1); /* ホバー時にアイコンが少し大きくなる */
  background-color: rgba(230, 0, 18, 0.9); /* ホバー時は赤色等のアクセントにしてもOK */
}
/* --- モーダル (c-modal) --- */
.c-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* JSでこのクラスが付与されると表示される */
.c-modal.is-open {
  opacity: 1;
  visibility: visible;
}
/* 黒い半透明の背景 */
.c-modal__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
/* モーダルの中身（画像とボタン） */
.c-modal__content {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90vh;
}
.c-modal__content img {
  width: 100%;
  height: auto;
  max-height: 90vh; /* 画面の高さを超えないように制限 */
  object-fit: contain;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}
/* 閉じるボタン（右上のバツ印） */
.c-modal__close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease;
}
.c-modal__close-btn:hover {
  opacity: 0.7;
}
/* =========================================
   Feature Section (.p-feature)
   ========================================= */
.p-feature {
  padding: 80px 0 100px;
  background: #EAF2F8;
}
.p-feature__header {
  text-align: center;
  margin-bottom: 50px;
}
.p-feature__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 25px;
}
.p-feature__header-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  display: inline-block;
  text-align: left;
  color: #555555;
  max-width: 900px; /* 広がりすぎ防止 */
  margin: 0 auto;
}
/* --- ナビゲーションカード --- */
.p-feature__nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 80px;
}
/* --- ナビゲーションカードの基本スタイル --- */
.p-feature__nav-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* 色が変わるアニメーション */
.p-feature__nav-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #336699;
}
/* ホバー時のアニメーション */
.p-feature__nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
/* --- タイトルと数字を横並びにする --- */
.p-feature__nav-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* 数字とタイトルの間隔 */
  margin-bottom: 20px;
}
.p-feature__nav-num {
  position: static; /* absolute（絶対配置）を解除 */
  font-size: 2.25rem;
  font-weight: 700;
  color: #336699;
  line-height: 1;
}
.p-feature__nav-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #336699;
  margin: 0; /* flexで並べるためマージンをリセット */
}
/* --- アイコンエリア（画像用スタイルに修正） --- */
.p-feature__nav-icon {
  margin-bottom: 15px;
  margin-top: 5px; 
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
}

/* 配置したPNG画像のサイズ調整 */
.p-feature__nav-icon img {
  width: 150px; /* 画像の大きさを指定（お好みで調整してください） */
  height: auto;
  object-fit: contain;
}
/* --- 説明テキスト --- */
.p-feature__nav-text {
  font-size: 0.938rem;
  line-height: 1.6;
  color: #555555;
  text-align: left; /* 読みやすさ重視で左揃え */
}
/* --- 詳細セクション（左テキスト・右画像） --- */
.p-feature__item {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-bottom: 60px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 50px 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  scroll-margin-top: 100px;
}
.p-feature__item:last-of-type {
  margin-bottom: 0;
}
.p-feature__item-content {
  flex: 0 1 45%;
}
/* --- 特長セクションのバッジ（「1 手軽に」など） --- */
.p-feature__item-badge .num {
  display: inline-flex;
  color: #336699;
  font-size: 2.5rem; 
  font-weight: 700;
  line-height: 1;
}

/* 数字（丸の部分） */
.p-feature__item-badge .num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px; */
  height: 46px;
  color: #336699;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

/* テキスト（「手軽に」などの部分） */
.p-feature__item-badge .text {
  font-size: 1.8rem;
  font-weight: 700;
  color: #336699;
  line-height: 1;
  margin-top: 10px;
}
.p-feature__item-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
  margin-bottom: 25px;
}
.p-feature__item-list {
  list-style: none;
  padding: 0;
}
.p-feature__item-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.938rem;
  line-height: 1.6;
}
.p-feature__item-list li i {
  color: #336699;
  margin-top: 4px;
}
/* 改善案②: 画像のトンマナを統一するプレースホルダー */
.p-feature__item-img {
  flex: 0 1 55%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; 
  background-color: transparent; 
  box-shadow: none; 
}
.p-feature__item-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
/* --- 特長直下のCTA（ボタンのみ） --- */
.p-feature__cta {
  margin-top: 60px; /* 上のカード群との間隔 */
  text-align: center;
}
/* =========================================
   Step Section (.p-step)
   ========================================= */
.p-step {
  padding: 80px 0;
  background-color: #ffffff;
}
.p-step__header {
  text-align: center;
  margin-bottom: 50px; /* 余白を少し広めに調整 */
}
.p-step__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 25px; /* リード文との間の余白を追加 */
}
/* 追加：タイトルの下のサブテキスト（リード文） */
.p-step__lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555555;
  text-align: center;
}
.p-step__visual {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.p-step__visual img {
  width: 100%;
  height: auto;
  display: block;
}
/* Media Queries (スマホ用: max-width: 768px) */
.u-hidden-pc {
  display: none;
}
/* =========================================
   Media Queries (スマホ用上書き)
   ========================================= */
@media screen and (max-width: 768px) {
  .p-hero {
    padding: 50px 0 0 0; /* 下部は画像がつくようにパディングを0に */
  }
  .p-hero__inner {
    flex-direction: column;
    gap: 0; /* 余白は各要素で制御 */
  }
  /*
    スマホ時の表示順序（Flexboxのorderを利用）
    1. バッジ画像 (order: 1)
    2. ロゴ (order: 2)
    3. キャッチコピー (order: 3)
    4. 画像 (order: 4)
    5. ボタン (order: 5)
  */
  .p-hero__content {
    flex: 1 1 auto;
    width: 100%;
    order: 1;
    display: contents;
  }
 

  /* ▼ ロゴ */
  .p-hero__logo {
    order: 1;
    text-align: center;
    margin-bottom: 20px;
  }

  /* キャッチコピー  */
  .p-hero__catch {
    order: 2;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 15px;
  }
 
  /* ビジュアル（トラブル画像） */
  .p-hero__visual {
    order: 3;
    width: 100%;
    text-align: center;
    margin-bottom: 40px; /* ボタンとの間の余白をしっかり取る */
  }
  
  .p-hero__visual img {
    width: 90%; /* 画面幅に対して少し大きめに表示 */
    max-width: 400px; /* ただし上限を設けて綺麗に収める */
    margin: 0 auto;
  }

  /* ▼ 修正：CTAボタンエリアの横幅調整 */
  .p-hero__cta {
    order: 4; /* バッジが消えたので順序を繰り上げ */
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 20px 40px;
  }
  
  .p-hero__btn {
    width: 100%;
    max-width: 320px; 
    margin: 0 auto;   
    justify-content: center; 
    padding: 15px 20px !important;
  }
  .p-problem {
    padding: 50px 0;
  }
  .p-problem__title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  /* ▼ 修正：お悩みセクションを縦並びにし、テキストの潰れを解消 ▼ */
  .p-problem__box {
    flex-direction: column; /* 横並びから縦並びに変更 */
    padding: 30px 20px;
    gap: 25px; /* 画像とテキストの間の余白 */
  }
  
  /* 画像エリアのスマホ表示 */
  .p-problem__img {
    width: 100%;
    max-width: 200px; /* スマホでは画像を少し小さめに */
    margin: 0 auto;   /* 中央寄せ */
  }

  /* テキスト（リスト）エリアのスマホ表示 */
  .p-problem__list {
    width: 100%;      /* ★重要：横幅いっぱいに広げて押しつぶされないようにする */
  }
  
  .p-problem__item {
    font-size: 1rem;
    align-items: flex-start; /* テキストが複数行になった時、チェックマークを上端に合わせる */
    margin-bottom: 15px;
  }
  
  .p-problem__item i {
    margin-top: 4px; /* チェックマークの縦位置を微調整 */
  }
  .p-problem__arrow {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  .p-problem__message-title {
    font-size: 1.5rem; /* スマホでも少し大きめに */
    margin-bottom: 20px;
  }
  .p-problem__message-text {
    font-size: 0.95rem;
    text-align: left; /* スマホ閲覧時は左揃えの方が読みやすいため左に */
    margin-bottom: 30px;
  }
  .p-problem__arrow i {
    font-size: 2.5rem;
  }
  .p-problem__solution-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 10px;
    right: 10px;
  }
  .c-modal__close-btn {
    top: -40px;
    font-size: 2rem;
  }
  .p-feature {
    padding: 50px 0;
  }
  .p-feature__title {
    font-size: 1.6rem;
  }
  .u-hidden-pc {
    display: inline;
  }
  .p-feature__nav {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
  }
  .p-feature__nav-card {
    padding: 25px;
  }
  .p-feature__item {
    flex-direction: column;
    gap: 0px;
    margin-bottom: 40px; 
    padding: 25px 20px; 
    scroll-margin-top: 80px;
  }
  .p-feature__item-content, .p-feature__item-img {
    flex: 1 1 auto;
    width: 100%;
  }
  .p-feature__item-img {
    padding: 20px 15px;
  }
  .p-feature__item-title {
    font-size: 1.5rem;
  }
  .p-feature__item-title br {
    display: none; /* スマホ時は変な位置での改行を防ぐ */
  }
  .p-feature__cta {
    margin-top: 50px;
    padding: 0 15px;
  }
  .p-feature__cta .c-btn {
    width: 100%;
    max-width: 100%; /* max-width: 320px; を解除して親要素いっぱいまで広げる */
    margin: 0 auto;
    box-sizing: border-box;
    display: flex; /* flexboxで中身を中央に配置 */
    justify-content: center;
    align-items: center;
    padding: 15px 20px !important;
  }
  .p-step {
    padding: 60px 0;
  }
  .p-step__header {
    margin-bottom: 40px;
  }
  .p-step__title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  .p-step__lead {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left; /* スマホでは読みやすさ重視で左揃え */
  }
  .p-step__visual {
    padding: 0 15px;
  }
}