/*
 * 保険募集人のプロフィールページ（独自ドメイン用）の共通の見た目
 * 色は元のページ（ほけん知恵袋 /Fp-Profile/）と同じ値にそろえている（2026-11-14 TONY様「オリジナルのページの色に合わせて」）。
 * 元の CSS：base.css・common.css・page02.css・footer.css・jquery.shortslider.js
 */
:root {
  --orange: #f18e1d;        /* 見出し・線・枠・リンクを押したとき（common.css .orange／.bd_tp） */
  --cream: #f7f3e8;         /* ページの地（page02.css .container） */
  --cream-out: #fffdf7;     /* 1280px より外側の地（base.css html） */
  --cream-2: #fef4e8;       /* 札の地（common.css .bg_harfor） */
  --text: #666;             /* 文字（base.css body／.defalt） */
  --th: #a6a6a6;            /* 表の見出しの地と表の線（page02.css table.profile） */
  --link: #1ec8f5;          /* リンク（common.css a.type_b） */
  --green: #8cc63f;         /* 訪問相談（.bg_green） */
  --blue: #1ec8f5;          /* 来店相談（.bg_blue） */
  --pink: #ff7691;          /* オンライン相談（.bg_pink） */
  --footer-gray: #808080;   /* コピーライトの帯（footer.css .copyright） */
  --slider-btn: #333;       /* 写真の矢印・今の点（jquery.shortslider.js） */
  --slider-dot: #999;       /* 写真のほかの点（同上） */
  --radius: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream-out);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "YuGothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange);
}

a:focus-visible,
button:focus-visible,
.slider-track:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* 1280px の帯（元と同じ）。上のしま模様は元の画像 */
.site {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--cream) url(img/content_header_line.png) top center / 100% auto no-repeat;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 0;
}

.card {
  background: #fff;
  border: 1px solid var(--orange);
  padding: 32px;
}

/* ---------- 上の段：写真と名前 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.slider {
  position: relative;
}

.slider-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius);
  background: var(--cream);
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* 写真の左右・上下の余りを、同じ写真をぼかして埋める（写真は切らずに全部見せる） */
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.2);
  opacity: .55;
}

.slide-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-btn {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--slider-btn);
  color: #fff;
  cursor: pointer;
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 6px;
}

.slider-dot {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slider-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slider-dot);
}

.slider-dot[aria-current="true"]::before {
  background: var(--slider-btn);
}

/* JavaScript が動かないときは、指で横に送るだけにする */
.no-js .slider-btn,
.no-js .slider-dots {
  display: none;
}

.name {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: .04em;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.badge {
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.badge--visit {
  background: var(--green);
}

.badge--store {
  background: var(--blue);
}

.badge--online {
  background: var(--pink);
}

.summary {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
}

.summary > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  padding: 3px 0;
}

.summary dt {
  color: var(--text);
}

.summary dt::after {
  content: "：";
}

.summary dd {
  margin: 0;
  color: var(--text);
}

/* ---------- 節 ---------- */
.sec {
  margin-top: 48px;
}

.sec-title {
  margin: 0 0 20px;
  padding: 10px 12px;
  border-top: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  color: var(--orange);
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: .04em;
}

/* プロフィールの表 */
.profile {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid var(--th);
  border-right: 1px solid var(--th);
}

.profile th {
  width: 26%;
  padding: 12px;
  border-bottom: 1px solid #fff;
  background: var(--th);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
}

.profile tr:last-child th {
  border-bottom-color: var(--th);
}

.profile td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--th);
  color: var(--text);
  vertical-align: middle;
}

.profile td.url {
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 12px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.message p {
  margin: 0 0 1em;
  line-height: 1.9;
}

.message p:last-child {
  margin-bottom: 0;
}

.note {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 14px;
}

/* YouTube動画 */
.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 仮のトップページ ---------- */
.site--home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site--home .page {
  flex: 1 0 auto;
  width: 100%;
}

.home {
  max-width: 720px;
  margin: 0 auto;
}

.home p {
  margin: 0 0 1em;
}

.home .home-org {
  margin: 28px 0 0;
  font-size: 15px;
}

/* ---------- 下（元と同じ：白い帯の上にオレンジの線、灰色のコピーライトの帯） ---------- */
.site-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 5px solid var(--orange);
  background: #fff;
}

.copyright {
  margin-top: 15px;
  padding: 8px 16px 16px;
  background: var(--footer-gray);
}

.copyright p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.pagetop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.pagetop.is-show {
  opacity: 1;
  visibility: visible;
}

.pagetop:hover {
  color: #fff;
}

.pagetop svg {
  width: 22px;
  height: 22px;
}

/* ---------- 幅に合わせる ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 12px 10px 0;
  }

  .card {
    padding: 16px 14px 24px;
  }

  .name {
    font-size: 26px;
  }

  .sec {
    margin-top: 36px;
  }

  .sec-title {
    margin-bottom: 16px;
    font-size: 19px;
  }

  /* 表は「見出しの帯＋中身」を縦に積む */
  .profile,
  .profile tbody,
  .profile tr,
  .profile th,
  .profile td {
    display: block;
    width: 100%;
  }

  .profile {
    border: 0;
  }

  .profile th {
    padding: 7px 12px;
    border: 0;
    border-radius: 4px 4px 0 0;
    text-align: left;
  }

  .profile td {
    margin-bottom: 12px;
    padding: 10px 12px 14px;
    border: 1px solid var(--th);
    border-top: 0;
    border-radius: 0 0 4px 4px;
  }

  .videos {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    margin-top: 28px;
    padding-top: 16px;
  }

  .pagetop {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }
}
