/* assets/css/main.css
   参考サイトのトーンを踏まえた、モバイル優先のクリーンUI
   - ヘッダー固定・スクロールで縮小
   - ハンバーガーメニュー（JSがボタンを自動挿入）
   - フッターは濃いめブルーで明瞭なナビ
   - ページトップボタン表示制御
*/

/* =========================
   Theme (カスタムプロパティ)
========================= */
:root {
  --brand-blue: #1ca8d3;
  --brand-blue-dark: #1484a7;
  --text: #1c1c1c;
  --muted: #667085;
  --bg: #ffffff;
  --bg-soft: #f6f9fe;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;


  --header-h: 70px;
  /* 通常のヘッダー高（モバイル） */
  --header-h-lg: 166px;
  /* PC基準 */
  --z-header: 1000;

  --break-point: 768px;
  /*カレンダー*/
  --c-border:#d7e6ef;    /* 罫線 */
  --c-bg:#f7fbfe;   
}

/* =========================
   Base
========================= */

body {
  min-height: 100dvh;
  padding-top: var(--header-h);
  color: var(--text);
  background: var(--bg);
  touch-action: manipulation;
  
}

/* 共通コンテナ */
.container {
  width: min(960px, 92%);
  margin-inline: auto;
}

/* リンク */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: .9;
}

/* 画像 */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 見出し */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: .02em;
}

h1 {
  font-size: clamp(22px, 4.4vw, 34px);
}

h2 {
  font-size: clamp(22px, 3.6vw, 28px);
}

h3 {
  font-size: clamp(18px, 1.5vw, 22px);
}

.lead {
  color: var(--muted);
  line-height: 1.9;
  font-size: clamp(15px, 2.8vw, 17px);
}

/* =========================
   Header
========================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--brand-blue);
  height: var(--header-h);
  background-color: white;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 92%);
  z-index: 1000;
}

@media (min-width: 768px) {
  body{
    padding-top:0;
  }
  .site-header {
    height: var(--header-h-lg);
    position: static;
    transform: none;
    left: auto;
    width: auto;

  }
}

/* ロゴ */
.site-header .site-logo {
  padding-top: 50px;
  padding-right: 50px;
  padding-left: 24px;
  padding-bottom: 60px;
  position: relative;
  width: fit-content;
  overflow: hidden;
}

.site-header .site-logo::before {
  content: "";
  position: absolute;
  top: -137px;
  /* 位置を微調整 */
  left: -19px;
  width: 337px;
  /* 円の大きさ（調整ポイント） */
  height: 300px;
  border: 6px solid var(--brand-blue);
  /* ブランドブルー */
  border-radius: 50%;
  /* 完全な円形 */
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

@media (max-width: 768px) {
  .site-header .site-logo {
    padding: 12px 0px 0px 0px;
  }

  .site-header .site-logo img {
    height: 36px;
  }

  .site-header .site-logo::before {
    width: 0;
  }
}

/* ===== グローバルナビ（PC表示） ===== */
.global-nav ul {
  display: none;
  /* モバイルは隠す（ハンバーガーで表示） */
  align-items: center;
  gap: clamp(10px, 2.6vw, 28px);
  font-size: clamp(15px, 2vw, 21px);
  padding-right: 20px;
}

@media (min-width: 768px) {
  .global-nav ul {
    display: flex;
  }
}

.global-nav a {
  display: inline-block;
  padding: 10px 4px;
  color: var(--brand-blue);
  font-weight: 600;
  letter-spacing: .01em;
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background: var(--brand-blue);
  opacity: .85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ===== モバイルメニュー（オーバーレイ） ===== */
.mobile-nav-panel {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  translate: 0 -8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, translate .18s ease;
  padding: 16px 20px 28px;
  overflow-y: auto;
}

body.nav-open .mobile-nav-panel {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
}

.mobile-nav-panel ul {
  display: grid;
  gap: 6px;
}

.mobile-nav-panel a {
  display: block;
  padding: 14px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  background: var(--bg-soft);
}

/* モバイルのヘッダー右にでるトグルボタン */
.nav-toggle {
  position: relative;
  overflow: hidden;
}

.nav-toggle .bars {
  position: relative;
  width: 20px;
  height: 22px;
  margin: 0 auto;
  top: 2px;
}

.nav-toggle .bar {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 2px;
}

.nav-toggle .bar.top {
  top: 1px;
}

.nav-toggle .bar.mid {
  top: 8px;
}

.nav-toggle .bar.bot {
  top: 15px;
}

body.nav-open .nav-toggle .bar.top {
  top: 8px;
  transform: translateX(-50%) rotate(45deg);
}

body.nav-open .nav-toggle .bar.mid {
  opacity: 0;
}

body.nav-open .nav-toggle .bar.bot {
  top: 8px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .mobile-nav-panel {
    display: none;
  }
}

/* ボタン本体：はみ出し防止＆描画安定 */
.nav-toggle {
  position: relative;
  overflow: hidden;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-blue);
}



/* =========================
   Main
========================= */
.site-main {
  padding-top: 24px;
  padding-bottom: 50px;
}

/* セクション余白の基準 */
.section {
  padding-block: clamp(24px, 6vw, 64px);
}

/* カード */
.panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  padding: clamp(16px, 3.2vw, 28px);
}

/* =========================
   Footer
========================= */
.footer-wrapper{
  margin-top:5vw;
  overflow:hidden;
  padding-bottom:60px;
}
.site-footer {
  width:clamp(700px,92%,1020px);
  margin-inline: auto;
  padding:40px 0 30px;
  border: 5px solid var(--brand-blue);
  display: flex;
  justify-content: space-around;
  font-size:1.1rem;
  position: relative;
}
.site-footer::after{
  content: "";
  position: absolute;
  bottom: -176px;
  left: -56px;
  width: 337px;
  height: 300px;
  border: 6px solid var(--brand-blue);
  border-radius: 50%;
}
.site-footer p{
  font-weight:bold;
}
#footer-first p{
  margin-top:10px;
  padding-left:13px;
}
#footer-second  p,
#footer-third p
{
  font-size:1.3rem;
}
/* 青丸付きリスト（QUICK LINKS 用） */
.quick-links {
  list-style: none;
  margin-top:14px;
}

.quick-links li {
  position: relative;
  padding-left: 1.4em;   /* 文字の左に余白 */
  margin-bottom: .4em;
}

.quick-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;           /* 縦位置微調整 */
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background:var(--brand-blue);   /* ぽのブルー */
}
/* PC のみ hover 演出を有効化 */
@media (hover: hover) {

  .quick-links a {
    position: relative;
    display: inline-block;  /* underline のため */
    text-decoration: none;
    padding-bottom: 2px;
  }

  /* 下線の初期状態（非表示） */
  .quick-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
  }

  /* hover で左→右へ伸びるアニメーション */
  .quick-links a:hover::after {
    width: 100%;
  }
}

.tel-link {
  margin-top:10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

/* SVGアイコン */
.tel-link .icon-phone {
  width: 1.2em;
  height: 1.2em;
  stroke: var(--brand-blue); /* ← color がそのままアイコン色になる */
  stroke-width: 2;
  fill: var(--brand-blue);
}
#third-two p{
  margin-left:2px;
  margin-top:22px;
}

/* ホバー時（PCのみ） */
@media (hover: hover) {
 .site-footer .quick-links li a::after {

 }
  .tel-link:hover {
    opacity: .75;
  }
}

#footer-third img{
  width:clamp(100px,134px,150px);
  height:auto;
  margin-left:22px;
}


@media (max-width: 768px) {
 .site-footer{
  flex-direction: column;
  width:99%;
  align-items: center;
  padding:20px 0;
 } 
 #footer-first,
 #footer-second,
 #footer-third{
  width:min(320px,80%);
 }
 #footer-first p{
  margin-top:10px;
  padding-left:0px;
  }
  #footer-second p{
  margin-top:20px;
  padding-left:0px;
  }
  #footer-third p{
  margin-top:20px;
  padding-left:0px;
  }
  .site-footer::after{
  bottom: -235px;
  left: auto;
  right: -217px;
  width: 337px;
  height: 300px;
  border: 6px solid var(--brand-blue);
  border-radius: 50%;
}
}
/* フッターナビ（スマホ最適化） */
@media (max-width: 680px) {
  .site-footer .quick-links {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding-bottom: 10px;
  }

  .site-footer .quick-links li a {
    display: block;
  padding: 14px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  background: var(--bg-soft);
  }
  

  .site-footer .quick-links li:last-child a {
    border-bottom: none;
  }
  .quick-links li{
    padding-left:0;
    margin-bottom:0;
  }
  .quick-links li::before {
    display: none;
  }
}

/* =========================
   PageTop
========================= */
.pagetop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

.pagetop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pagetop a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
}

/* =========================
   Accessibility
========================= */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-sky);
  outline-offset: 2px;
  border-radius: 8px;
}

/* =========================
   Print
========================= */
@media print {

  .site-header,
  .site-footer,
  .pagetop {
    display: none !important;
  }

  .container {
    width: 100%;
  }
}

/* =========================
   home
========================= */

/* --------------------------------------------------
    HERO セクション
-------------------------------------------------- */
/* ▼ 青帯全体 */
.hero {
  position: relative;
  background: var(--brand-blue);
  color: #fff;
  padding: 30px 10px 40px;
  overflow: visible; /* ← はみ出し必要 */
}

/* ▼ テキスト部：flex横並び（PC） */
.hero_inner {
  display: flex;
  align-items: center;
  min-height: 260px;
}

.hero_copy {
  width:min(46%,500px);
  
}

.hero_title {
  font-size: 1.6rem;
  line-height: 1.4;
  margin-bottom: 18px;
  font-weight: 700;
  margin-top:0.6em;
}

.hero_text {
  line-height: 1.8;
  font-size: 0.98rem;
}

/* ▼ 円形ビジュアル（絶対配置で上下に飛び出す） */
.hero_visual {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 40vw);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  border-radius: 50%;
  border:18px solid white;
  background: #fff;
}


/* ▼ スライド（クロスフェード） */
.hero_slide {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: hero_crossfade 10s infinite;
}

.slide1 {
  background-image: url("../images/hero1.webp");
  background-position: 80% 61%;
  background-size:168%;
  animation-delay: 0s;
}

.slide2 {
  background-image: url("../images/hero2.webp");
  background-position: 63% 61%;
  animation-delay: 5s; /* 10秒の半分ずらす */
}

/* ▼ クロスフェード */
@keyframes hero_crossfade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  45%  { opacity: 1; }
  55%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ▼ スマホ時（縦並びに変更） */
@media (max-width: 768px) {

  .hero {
    /* 円の半径ぶん + 余白を padding-top にする */
    padding-top: calc( (clamp(320px, 82vw, 430px)) / 2 + 10px );
    margin-top: calc( (clamp(320px, 82vw, 430px)) / 2  );
  }

  .hero_inner {
    display: block;
    min-height: auto;
  }

  .hero_visual {
    /* 円のサイズ：PCより少し小さめでOK */
    width: clamp(320px, 82vw,430px);
    aspect-ratio: 1 / 1;

    position: absolute;
    left: 50%;
    top: 0;                     /* 円の中心を hero の上端に置く */
    transform: translate(-50%, -50%);  /* ← 一行でまとめるのが大事 */

    pointer-events: none;
    border-radius: 50%;
    border-width: 12px;
  }

  .hero_copy {
    width: 100%;
    padding-inline: 3%;
    text-align: left;
  }

  .hero_title {
    font-size: 1.5rem;
  }

  .hero_text {
    font-size: 0.95rem;
  }
}
/* --------------------------------------------------
    お知らせ セクション
-------------------------------------------------- */

.news {
  padding: 24px 10px;
  background: #f6f9fe;
}

.news_inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 50px;
  border-radius: 12px;
  border: 2px solid var(--brand-blue);
  background: #fff;
}

.news_heading {
  font-size: 1.1rem;
  margin-left:-32px;
  margin-bottom: 8px;
  color: var(--brand-blue-dark);
  position: relative;
  padding-left:30px;
}
.news_heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;           /* 縦位置微調整 */
  width: 1.2em;
  height: 1.2em;
  background-image:url(../images/icons/capsule.svg);
  background-repeat: no-repeat;
}


.news_body {
  line-height: 1.8;
  font-size: 0.95rem;
}
.news-placeholder {
  height: 30px;
}
/* --------------------------------------------------
    about セクション
-------------------------------------------------- */
.about{
  margin-top:30px;
}
.about-first{
  display: flex;
  align-items: flex-start;
  padding-left:3vw;

}
.about-first img{
  width:100%;
  height:auto;
}
.about-first-one{
  width:50%;
}
.about-first-one img{
  border-radius:3vw;
}
.about-first-two{
  width:50%;
  padding:0 3vw;
  display:grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
  align-items:start;

}
.about-first-two a{
  display: block;

}.about-first-two a img{
  display: block;
}
@media (max-width: 600px) {
  .news_inner {
  padding: 10px 10px;
}

.news_heading {
  font-size: 1.1rem;
  margin-left:0px;
  margin-bottom: 6px;
  padding-left:25px;
}
.news_heading::before {
  top: 0.3em;           /* 縦位置微調整 */
  width: 1.2em;
  height: 1.2em;
}

  .about-first{
    flex-direction: column;
    padding-right:3vw;

  }
  .about-first-one{
    width:100%;
  }
  .about-first-two{
    margin-top:30px;
    width:100%;
  }
}

/* --------------------------------------------------
    about カレンダー セクション
-------------------------------------------------- */

.table-wrap{
    width:clamp(540px,93%,1020px);
    margin:30px auto;
    background:#fff;
    border-radius: 18px;
    overflow:hidden;
    border:3px solid var(--brand-blue);
  }

  .about-second table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    table-layout: fixed;
  }


  .about-second thead th{
    background:var(--brand-blue);
    color:#fff;
    font-weight:700;
    font-size:1.3rem;
    text-align:center;
    padding:16px 10px;
    border-right:3px solid rgba(255,255,255,.25);
  }
  .about-second  thead th:first-child{
    text-align:center;
    width:180px;
  }
  .about-second  thead th:last-child{
    border-right:none;
  }

  .about-second  tbody th{
    text-align:center;
    font-weight:700;
    padding:16px 10px;
    border-right:3px solid var(--c-border);
    border-bottom:3px solid var(--c-border);
    vertical-align:middle;
    background:#fff;
  }

  .about-second  tbody th .sub{
    display:block;
    font-size:.86rem;
    color:#5a6a75;
  }

  .about-second  tbody td{
    text-align:center;
    padding:17px 10px;
    border-right:3px solid var(--c-border);
    border-bottom:3px solid var(--c-border);
    vertical-align:middle;
    background:#fff;
  }
  .about-second tbody tr:last-child td,
  .about-second tbody tr:last-child th{ border-bottom:none; }
  .about-second tbody td:last-child, tbody th:last-child{ border-right:none; }

  /* シンボル */
  .mark{ display:inline-flex; align-items:center; gap:.5em; font-weight:700; }
  .sr-only{
    position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }
  .dot, .cross, .tri{
    display:inline-block;
    width:24px; height:24px; line-height:24px;
    border-radius:50%;
    text-indent:-9999px;
  }
  .dot{ background:#4391bf; }          /* ● 診療 */
  .tri{
    background:transparent;
    width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:16px solid #e6b622; /* ▲ 土曜午後 */
    border-radius:0;
  }
  .cross{
    width:auto;height:auto;border-radius:0;text-indent:0;
    color:#333;  line-height:1;
  }

  /* 丸みの表現（外周だけ角丸に） */
  .table-wrap table{ border-radius: 18px; }
  .table-wrap thead th:first-child{ border-left: none; }
  .table-wrap thead th{ position:relative; }

  /* スマホ表示：横スクロールorカード風 */
  @media (max-width: 600px){
    .table-wrap{
      width:98%;
      border-width:3px;
    }
    .about-second thead th{ padding:6px 0; font-size:.9rem; }
    .about-second tbody th{ padding:4px 0; font-size:.95rem; }
    .about-second tbody th .sub{ font-size:.78rem; }
    .about-second tbody td{ padding:4px 0; }
    .about-second thead th:first-child {
      width:90px;
    }
    .dot{
      width:18px;
      height:18px;
      line-height: 18px;
    }
  }

  .shop-info {
    padding-left:3vw;
  display: grid;
  row-gap: 0.4em;
  font-size: 1.2rem;
}

.shop-info div {
  display: flex;
  column-gap: .5em;
}

.shop-info dt {
  text-align:right;
  font-weight: 700;
  margin-right:1vw;
  min-width: 4.2em; /* 住所,電話,定休日 の幅調整 */
}
@media (max-width: 600px){
  .shop-info{
    font-size: 1.1rem;
  }
}
/* --------------------------------------------------
      ボタン
  -------------------------------------------------- */
.btn-wrap{
  margin-top:30px;
  text-align:center;
}
/* 店舗情報ボタン */
.btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px 14px 32px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

/* テキスト部分 */
.btn-label {
  white-space: nowrap;
}

/* 右側の白い丸 */
.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* 中の「▶」を三角形で表現 */
.btn-icon-inner {
  width: 0;
  height: 0;
  border-left: 9px solid var(--brand-blue);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transition: transform .2s ease;
}

/* ホバー演出（PC） */
@media (hover: hover) {
  .btn-detail:hover {
    background: #1484a7; /* すこし濃いブルー */
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
  }

  .btn-detail:hover .btn-icon-inner {
    transform: translateX(2px); /* 矢印がちょっと進む */
  }
}

/* スマホでの余白調整（任意） */
@media (max-width: 600px) {
  .btn-detail {
    width: min(320px, 90%);
    justify-content: center;
  }
}
/* --------------------------------------------------
      recommend
  -------------------------------------------------- */
.recommend{
  margin-top:50px;
  display:flex;
  align-items: center;
}
.h2wrap{
  text-align:left;
}
.recommend h2,
.homecare h2,
.shop-information h2,
.line-information h2,
.homecare-information h2
{
  display: inline-flex;
  align-items: center;
  gap: 8px; /* 文字とアイコンの間隔 */
}
.recommend h2::before,
.homecare h2::before,
.shop-information h2::before,
.line-information h2::before,
.homecare-information h2::before
{
  content: "";
  width: 30px;
  height: 30px;
  background: url("../images/icons/capsule.svg") no-repeat center / contain;
}
.recommend h2::after,
.homecare h2::after,
.shop-information h2::after,
.line-information h2::after,
.homecare-information h2::after
{
  content: "";
  width: 30px;
  height: 30px;
  background: url("../images/icons/capsuleafter.svg") no-repeat center / contain;
}
.recommend-first{
  width:50%;
  padding-left:3vw;
}
.recommend-first p{
  font-size:1.2rem;
}
.recommend-second{
  width:50%;
  padding:0 3vw;

}
.second-img-wrap{
  width:100%;
  padding:10% 0% 0% 4%;
  background-color:var(--brand-blue);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow:hidden;

}
.second-img{
  width:92%;
  background-image:url(../images/recommend.webp);
  background-size:cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border:12px solid white;
  overflow:hidden;
}
.lightblue{
  color:var(--brand-blue);
}
.recommend ul{
  margin-top:30px;
}
.recommend ul li{
  position: relative;
  padding-left: 1.6em;
  font-size:1.5rem;
  margin-bottom:2vw;
}

.recommend li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;           /* 縦位置微調整 */
  width: 1.2em;
  height: 1.2em;
  background-image:url(../images/icons/checkmark.svg);
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .h2wrap{
    text-align:center;
  }
  .recommend{
  margin-top:50px;
  display:flex;
  flex-direction: column;
}
.recommend h2,
.homecare h2{
    margin-left:0px;
    margin-inline: auto;
    text-align: center;
  }
.recommend-first p{
  text-align:center;
}
.recommend-first{
  width:100%;
  margin-bottom:4vw;
}
.recommend-second{
  width:100%;
}

.recommend ul li{
  font-size:1.3em;
}
.recommend-first p{
  font-size:1.0rem;
}
}

/* =========================================
   LINE 送信フロー
========================================= */

.line-flow {
  position: relative;
  border: 5px solid var(--brand-blue);
  border-radius: 32px;
  padding: 36px 32px 44px;
  margin-top: 70px;
  background: #fff;
}

/* タイトルを枠の上にまたがって配置 */
.line-flow-title {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 20px;
  background: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.line-flow-title div{
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
}


/* サブコピー */
.line-flow-lead {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 32px;
  font-weight: 600;
}

/* 3ステップの並び */
.line-flow-steps {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.line-flow-step {
  flex: 1 1 0;
  max-width: 260px;
  margin-inline: auto;
  text-align: center;
  font-size: 0.95rem;
}

/* ステップの見出し（番号＋タイトル） */
.line-flow-step-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.line-flow-step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

.line-flow-step-title {
  font-size: 1rem;
  font-weight: 700;
}

/* 丸いアイコン枠 */
.line-flow-icon-wrap {
  width: 90%;
  aspect-ratio: 1 / 1;
  background-color: var(--brand-blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 10px auto 12px;
  overflow: hidden;
  padding:10px 7px 0 0px;
}

.line-flow-icon-wrap img {
  display: block;
  border-radius: 50%;
  width: 90%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* 説明文 */
.line-flow-step-text {
  line-height: 1.7;
  text-align: left;
}

/* 友だち追加ボタン（STEP1 内） */
.line-add-btn {
  display: block;
  width:60%;
  height:auto;
  margin-top:20px;
  margin-inline: auto;

}


/* スマホ用レイアウト */
@media (max-width: 768px) {

  .line-flow {
    padding: 40px 18px 38px;
    border-radius: 24px;
  }

  .line-flow-title {
    font-size: 1.5rem;
    white-space: normal;
  }

  .line-flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .line-flow-step {
    max-width: 320px;
  }

  .line-flow-step-text {
    text-align: left;
  }
  
}

/* =========================================
   homecare
========================================= */

.homecare{
  margin-top:60px;
  padding-inline:3vw;
}
.homecare-problem-box{
  width:max(100%);
  margin-inline: auto;
  margin-top:3vw;
  padding-top:1vw;
  padding-right:2vw;
  border:6px solid var(--brand-blue);
  display: flex;
  justify-content: space-around;
  position: relative;
  background-color:var(--bg-soft);
}
/* 下向きの小さな三角（吹き出し感） */
.homecare-problem-box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  border-width: 44px 32px 0 32px;
  border-style: solid;
  border-color: var(--brand-blue) transparent transparent transparent;
}
.pc{
  display: block;
}
.sp{
  display: none;
}

.homecare-bubble{
  width:36%;
  transform: rotate(-6deg) translate(0vw,-3vw);
  transform-origin: left top;
  margin-left: -8px;   /* 枠から気持ち左に出す */
}
.homecare-problem-list ul li{
  font-size:1.3em;
  position:relative;
  padding-left:30px;
  margin-left: 3vw;
  margin-block: 2vw;
}
.homecare-problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;           /* 縦位置微調整 */
  width: 1.2em;
  height: 1.2em;
  background-image:url(../images/icons/checkmark.svg);
  background-repeat: no-repeat;
}
.homecare-lead{
  margin-top:5vw;
  text-align: center;
  font-size:1.6em;
  font-weight: bold;
}
.homecare-illust{
  width:clamp(180px,40%,280px);
  margin-top:5vw;
  margin-bottom:4vw;
  margin-inline:auto;
}

.marker-pink{
    display: inline;
    background-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 65%,
    #6ad5f6 70%,
    #6ad5f6 100%
  );
}

@media (max-width: 768px) {
  .homecare{
  margin-top:50px;
  padding-inline:0vw;
}
  .homecare-problem-box{
    width:100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top:30px;
    padding-bottom:40px;
  }
  .homecare-bubble{
    width:min(80%,300px);
    transform: rotate(-5deg) translate(0,-2vw);
    transform-origin: left top;
    margin-left: 0px;   /* 枠から気持ち左に出す */
  }
  .pc{
    display: none;
  }
  .sp{
    display: block;
  }
  .homecare-problem-list ul{
    margin-top:-25px;
  }
  .homecare-problem-list ul li{
    font-size:1.2em;
    padding-left:30px;
    margin-block: 2vw;
  }
  .homecare-problem-list li::before {
    top: 0.22em;
    width: 1.2em;
    height: 1.2em;
  }
  .homecare-lead{
    margin-top:10vw;
    font-size:1.3em;
  }
  .homecare-problem-box::after {
    bottom: -34px;
    border-width: 34px 22px 0 22px;
  }
}

/* =========================================
   security
========================================= */
.security{
  margin-top:min(20vw,70px);
  width:100%;
  padding-top:2.5vw;
  position: relative;
  background:var(--bg-soft);
  border:4px solid var(--brand-blue);
  border-radius:10px;
  overflow: hidden;
}


/* ボルト共通 */
.sec-bolt {
  position: absolute;
  width: 32px;
  height: 32px;
}

/* 4隅の位置調整（枠からちょっと内側 or 外側に出す） */
.sec-bolt--tl { top: 8px; left: 8px; }
.sec-bolt--tr { top: 8px; right: 8px; }
.sec-bolt--bl { bottom: 8px; left: 8px; }
.sec-bolt--br { bottom: 8px; right: 8px; }

/* ボルト共通 */
.sec-bolt {
  position: absolute;
  width: 32px;
  height: 32px;
}

/* 4隅の位置調整（枠からちょっと内側 or 外側に出す） */
.sec-bolt--tl { top: 8px; left: 8px; }
.sec-bolt--tr { top: 8px; right: 8px; }
.sec-bolt--bl { bottom: 8px; left: 8px; }
.sec-bolt--br { bottom: 8px; right: 8px; }
.security-heading-wrap{
  text-align: center;
}
.security-inner h2{
  display: inline-block;
  position:relative;
  
}
.security-inner h2::after{
  content: "";
  position: absolute;
  top: -3px;
  right: -105px;
  width: 80px;
  height: 80px;
  background-image: url(../images/icons/sec1.svg);
  background-repeat: no-repeat;
}
.security-inner > p{
  text-align:center;

}

.security-points{
  margin-top:3vw;
  display: flex;
  justify-content: space-around;
  gap:20px;
  background-color: var(--brand-blue);
  padding:3vw 20px 6vw;
}
.security-point{
  flex:1 1 0; 
  max-width: 260px;
  margin-inline: auto;
  background-color:white;
  display:flex;
  flex-direction:column;
  border-radius: 5px;
}
.security-icon{
  width:30%;
  margin:2vw auto 1.5vw;
}
.security-point h3{
  text-align: center;
}
.security-point p{
  padding:1vw 2vw 3vw;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .security-inner h2{
    font-size: clamp(22px, 4vw, 28px);
  }
  .security-inner h2::after{
  top: -3px;
  right: -105px;
  width: 80px;
  height: 80px;
  background-image: url(../images/icons/sec1.svg);
  background-repeat: no-repeat;
}
.security-points{
  flex-direction: column;
  padding:5vw 3vw 11vw;

}
.security-point{
  max-width:96%;
  padding:1em;
  flex-direction: row;
  justify-content: space-around;
}
.security-main h3{
  text-align:left;
  padding:1vw 2vw 0;
}
.security-icon{
  width:max(115px,20%);
}
}

@media (max-width: 600px) {
.security-heading-wrap{
  text-align: left;
  margin-top:30px; 
  padding-inline:5vw;
}
.security-inner h2 span{
  display: block;
}
.security-inner > p{
  margin-top:14px;
  text-align: left;
  padding-inline:5vw;
}
.security-inner h2::after{
  top: -3px;
  right: -85px;
  width: 70px;
  height: 70px;
}
.security-point{
  flex-direction:column;
}
.security-points{
  padding:5vw 3vw 20vw;

}
.security-icon{
  width:max(70px,20%);
}
}

.blueline{
  margin-top:32px;
  margin-bottom:20px;
  border-left:10px solid var(--brand-blue);
  padding-left:20px;
}
/* ==============================
   404 Not Found
============================== */

.not-found {
  padding: 60px 20px;
  text-align: center;
}

.not-found h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.not-found .lead {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.not-found .description {
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.not-found-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.not-found-links li {
  margin: 0.5rem 0;
}

.not-found-links a {
  color: #0073aa;
  text-decoration: none;
}

.not-found-links a:hover {
  text-decoration: underline;
}