/* ============================================================
   結婚相談所ヨリソイ  yorisoi-kekkon.com
   STUDIO版を静的HTMLで再現したスタイルシート
   基準幅 1280px / ブレークポイント 840px(タブレット) 540px(モバイル)
   ============================================================ */

:root {
  --navy: #050f77;
  --gold: #be9f77;
  --gray-bg: #f5f5f5;
  --text: #000;
  --text-sub: #666;
  --shadow: #646464;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-en: "Rubik", sans-serif;
  --font-script: "Bad Script", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: #fff;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.page { max-width: 1280px; margin: 0 auto; position: relative; }

/* ---------- ヘッダー ---------- */
.header { padding: 30px 0 20px; text-align: center; position: relative; }
.header__logo { display: inline-block; }
.header__logo img { width: 275px; height: auto; margin: 0 auto; }
.nav { margin-top: 36px; }
.nav ul { display: flex; justify-content: center; gap: 61px; }
.nav a {
  font-size: 16px; font-weight: 500; letter-spacing: 0.1em; line-height: 1.4;
  transition: opacity .3s;
}
.nav a:hover { opacity: .5; }

/* ハンバーガー（モバイルのみ） */
.menu-btn {
  display: none; position: absolute; right: 20px; top: 26px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; z-index: 60;
}
.menu-btn span {
  position: absolute; left: 8px; width: 28px; height: 2px; background: #000; transition: .3s;
}
.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 30px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(255,255,255,.97); z-index: 50;
  flex-direction: column; justify-content: center; align-items: center; gap: 28px;
}
.mobile-menu a { font-size: 18px; font-weight: 500; letter-spacing: .1em; }
.menu-open .mobile-menu { display: flex; }

/* ---------- 画面端の縦書きキャッチ ---------- */
.side-text {
  position: fixed; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: 16px; font-weight: 500; letter-spacing: 0.15em;
  line-height: 1.4; z-index: 10; pointer-events: none;
}
.side-text--left { left: 14px; }
.side-text--right { right: 14px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; margin: 0 50px 0; height: 1360px; border-radius: 4px; overflow: hidden;
  background: #222 url(../assets/hero.jpg) center / cover no-repeat;
}
.hero__copy {
  position: absolute; left: 242px; top: 626px; display: flex; align-items: flex-start; color: #fff;
}
.hero__for {
  font-family: var(--font-script); font-size: 30px; line-height: 1.7; margin-right: 4px; margin-top: -8px;
}
.hero__title {
  font-family: var(--font-en); font-size: 48px; font-weight: 700; letter-spacing: 0.05em; line-height: 1.7;
}
.medals {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; gap: 56px;
}
.medals img { width: 200px; height: 200px; }

/* ---------- セクション共通 ---------- */
.sec { position: relative; padding: 100px 0 100px 220px; }
.sec__inner { display: flex; align-items: flex-start; }
.sec__title {
  writing-mode: vertical-rl; font-size: 22px; font-weight: 500; letter-spacing: 0.05em; line-height: 1.4;
  padding: 0 12px 0 10px; border-right: 2px solid #000; flex: none; margin-right: 73px;
  white-space: pre-line;
}
.sec__body { width: 700px; flex: none; padding-top: 44px; }
.lead { font-size: 32px; font-weight: 500; letter-spacing: 0.12em; line-height: 1.72; margin-bottom: 25px; }
.txt { width: 600px; font-size: 14px; line-height: 1.9; letter-spacing: 0.05em; text-align: justify; }

/* 番号付き見出し（1／ 婚活のプランニング） */
.item { margin-bottom: 70px; }
.item:last-child { margin-bottom: 0; }
.item__head { position: relative; padding-left: 30px; padding-top: 25px; }
.item__num {
  position: absolute; left: 0; top: 0; width: 40px;
  font-family: var(--font-en); font-size: 28px; line-height: 1; color: var(--navy);
}
.item__num::after {
  content: ""; display: block; width: 40px; height: 40px; margin-top: -10px;
  background: linear-gradient(135deg, transparent 49%, var(--navy) 49%, var(--navy) 51%, transparent 51%);
}
.item__title { font-size: 32px; font-weight: 500; letter-spacing: 0.12em; line-height: 1.93; }
.item__txt { margin-top: 16px; }
.item__photos { display: flex; gap: 40px; margin-top: 23px; }
.item__photos img { width: 280px; height: 190px; object-fit: cover; border-radius: 4px; }
.item__figure { margin-top: 23px; width: 600px; }
.item__figure img { width: 600px; }

/* ---------- ご挨拶 ---------- */
#message { padding-bottom: 177px; }
.greeting { display: flex; gap: 22px; margin-top: 30px; }
.greeting__photo { width: 250px; height: 291px; object-fit: cover; flex: none; }
.greeting__txt { width: 328px; text-align: justify; }
.greeting__name { margin-top: 30px; }

/* 全幅写真（影付き） */
.wide-photo { margin: 0 45px; height: 416px; background-size: cover; background-position: center; }
.wide-photo--couple { background-image: url(../assets/couple-mountain.jpg); box-shadow: 10px 10px 0 0 var(--shadow); }
.wide-photo--sand { background-image: url(../assets/sand-heart.jpg); box-shadow: -10px 10px 0 0 var(--shadow); margin-top: -90px; }

/* ---------- 私たちの仕事 ---------- */
#works { padding-top: 110px; }
.btn-more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 122px; height: 30px; border: 1px solid #000; border-radius: 16px;
  font-family: var(--font-en); font-size: 14px; letter-spacing: 0.05em; transition: .3s;
}
.btn-more:hover { background: #000; color: #fff; }
.works__more { margin-top: 75px; width: 600px; text-align: right; }

/* ---------- コラム ---------- */
#info { background: var(--gray-bg); padding-bottom: 224px; }
.cards { display: flex; flex-direction: column; gap: 34px; }
.card { display: flex; align-items: center; gap: 33px; width: 600px; }
.card__img { width: 240px; height: 320px; object-fit: cover; flex: none; }
.card__body { width: 327px; }
.card__date { font-family: var(--font-en); font-size: 12px; color: #686868; letter-spacing: 0.1em; line-height: 1; }
.card__title { font-size: 18px; font-weight: 500; letter-spacing: 0.05em; line-height: 1.4; margin-top: 10px; }
.card__excerpt { font-size: 12px; color: var(--text-sub); line-height: 1.62; letter-spacing: 0.05em; text-align: justify; margin-top: 10px; }
.card:hover .card__title { opacity: .6; }

/* ---------- 料金プラン ---------- */
.price-table { width: 784px; margin-top: 20px; }

/* ---------- 選ばれる理由 ---------- */
#numbers { padding-bottom: 0; }
#numbers .item { margin-bottom: 52px; }

/* ---------- 成婚者VOICE ---------- */
#success { padding: 110px 0 48px 243px; }
.sec__inner--col { flex-direction: column; }
#success .sec__title { margin: 0; }
.voices { width: 694px; margin: 40px 0 0 50px; display: flex; flex-direction: column; gap: 65px; }
.voice { display: flex; gap: 40px; width: 694px; }
.voice__img { width: 347px; height: 280px; object-fit: cover; flex: none; }
.voice__body { width: 307px; position: relative; }
.voice__date { font-size: 14px; color: var(--text-sub); line-height: 1; }
.voice__title { font-size: 28px; font-weight: 900; color: #333; line-height: 1.2; letter-spacing: 0; margin-top: 10px; }
.voice__excerpt {
  font-size: 15px; color: var(--text-sub); line-height: 1.2; letter-spacing: 0; margin-top: 12px;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.voice__circle { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.09); margin-top: 12px; }
.voice:hover .voice__title { opacity: .6; }

/* ---------- 無料オンライン相談 ---------- */
#contact { background: var(--gray-bg); padding: 60px 0 12px; text-align: center; }
.contact__title { font-size: 32px; font-weight: 500; letter-spacing: 0.05em; line-height: 1.4; }
.contact__lead { font-size: 14px; letter-spacing: 0.07em; margin-top: 22px; }
.contact__note { width: 719px; margin: 60px auto 0; text-align: left; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.contact__form { width: 757px; height: 764px; margin: 20px auto 0; background: #fff; overflow: hidden; }
.contact__form iframe { width: 100%; height: 100%; border: 0; }

/* ---------- フッター ---------- */
.footer { background: #fdfeff; padding: 21px 0 25px; text-align: center; }
.footer__logo img { width: 274px; margin: 0 auto; }
.footer__follow { font-size: 30px; color: var(--gold); line-height: 1.4; margin-top: 4px; }
.sns { display: flex; justify-content: center; gap: 62px; margin-top: 18px; }
.sns a { color: #333; display: block; width: 24px; height: 24px; transition: opacity .3s; }
.sns a:hover { opacity: .5; }
.sns svg { width: 24px; height: 24px; fill: currentColor; }
.footer__meta { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; color: var(--gold); letter-spacing: 0.1em; line-height: 1.4; }
.footer__meta .copy { font-family: var(--font-en); }

/* ---------- 下層ページ ---------- */
.sub-hero {
  margin: 0 50px; height: 458px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  background: #333 url(../assets/works-hero.jpg) center / cover no-repeat;
}
.sub-hero h1 {
  writing-mode: vertical-rl; color: #fff; font-size: 22px; font-weight: 500; letter-spacing: 0.05em;
  padding: 0 12px 0 10px; border-right: 2px solid #fff;
}
.works-page { padding: 100px 100px 90px; }
.works-page .item__txt { width: 700px; }
.works-page .item__photos { margin-top: 30px; }
.works-page .item__photos img { width: 280px; height: 210px; }
.works-page .item { margin-bottom: 110px; }

.article-page { padding: 90px 20px 100px; text-align: center; }
.article-page__label { font-size: 24px; font-weight: 400; letter-spacing: 0.05em; }
.article { width: 700px; margin: 0 auto; text-align: left; }
.article__date { font-family: var(--font-en); font-size: 12px; color: #969696; letter-spacing: 0.05em; text-align: center; margin-top: 14px; }
.article__cover { width: 400px; margin: 22px auto 0; display: block; }
.article__title { font-size: 28px; font-weight: 900; line-height: 1.5; letter-spacing: 0; margin-top: 60px; }
.rich { margin-top: 40px; color: #323232; font-size: 14px; line-height: 1.9; }
.rich h2 { font-size: 20px; font-weight: 700; margin: 2.2em 0 .8em; line-height: 1.5; }
.rich h3 { font-size: 17px; font-weight: 700; margin: 2em 0 .8em; line-height: 1.5; }
.rich h2:first-child, .rich h3:first-child { margin-top: 0; }
.rich p { margin-bottom: 1.1em; min-height: 1em; }
.rich strong { font-weight: 900; }
.rich a { text-decoration: underline; }
.rich img { margin: 1.5em 0; }
.btn-back {
  display: inline-block; margin-top: 60px; font-family: var(--font-en); font-size: 14px; letter-spacing: .05em;
  border-bottom: 1px solid #000; padding-bottom: 2px; transition: opacity .3s;
}
.btn-back:hover { opacity: .5; }

.simple-page { padding: 100px 20px 120px; text-align: center; min-height: 60vh; }
.simple-page h1 { font-size: 28px; font-weight: 500; letter-spacing: .1em; }
.simple-page .body { max-width: 700px; margin: 40px auto 0; text-align: left; }

/* ---------- スクロール出現アニメーション ---------- */
.appear { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.appear.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .appear { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   タブレット (〜840px)
   ============================================================ */
@media (max-width: 840px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header { padding: 20px 0 16px; }
  .header__logo img { width: 200px; }
  .side-text--left { left: auto; right: 14px; top: auto; transform: none; margin-top: 0; }
  .side-text--right { top: 120px; transform: none; }
  .side-text--left { top: 420px; }
  .side-text { font-size: 15px; }

  .hero { margin: 0; height: 640px; border-radius: 0; }
  .hero__copy { left: 24px; top: 40%; flex-direction: column; }
  .hero__for { margin: 0 0 -10px 0; }
  .hero__title { font-size: 40px; line-height: 1.3; }
  .medals { justify-content: flex-start; gap: 18px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .medals::-webkit-scrollbar { display: none; }
  .medals img { width: 150px; height: 150px; flex: none; }

  .sec { padding: 70px 56px 70px 16px; }
  .sec__inner { flex-direction: column; }
  .sec__title { margin: 0 0 30px 0; }
  .sec__body { width: 100%; padding-top: 0; }
  .txt, .item__txt, .item__figure, .item__figure img, .works__more, .card, .price-table { width: 100%; }
  .lead { font-size: 26px; }
  .item__title { font-size: 26px; line-height: 1.6; }
  .item__photos { flex-wrap: wrap; gap: 16px; }
  .item__photos img { width: calc(50% - 8px); height: auto; aspect-ratio: 280/190; }

  #message { padding-bottom: 90px; }
  .greeting { flex-direction: column; }
  .greeting__photo { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
  .greeting__txt { width: 100%; font-size: 15px; }
  .greeting__name { text-align: right; }

  .wide-photo { margin: 0 24px 0 0; height: 300px; }
  .wide-photo--sand { margin: -60px 0 0 24px; }
  #info { padding-bottom: 130px; }
  .card { gap: 20px; }
  .card__img { width: 40%; height: auto; aspect-ratio: 3/4; }
  .card__body { width: 60%; }

  #success { padding: 80px 56px 40px 16px; }
  .voices { width: 100%; margin: 30px 0 0; gap: 40px; }
  .voice { width: 100%; flex-direction: column; gap: 16px; }
  .voice__img { width: 100%; height: auto; aspect-ratio: 4/3; }
  .voice__body { width: 100%; }
  .voice__title { font-size: 24px; }

  #contact { padding: 60px 16px 20px; }
  .contact__title { font-size: 26px; }
  .contact__note { width: 100%; font-size: 15px; margin-top: 36px; }
  .contact__form { width: 100%; height: 720px; }

  .sub-hero { margin: 0; border-radius: 0; height: 320px; }
  .works-page { padding: 70px 56px 60px 16px; }
  .works-page .item__txt { width: 100%; }
  .works-page .item { margin-bottom: 70px; }
  .works-page .item__photos img { width: calc(50% - 8px); height: auto; aspect-ratio: 4/3; }
  .article-page { padding: 60px 56px 80px 16px; }
  .article { width: 100%; }
  .article__cover { width: 100%; max-width: 400px; }
  .article__title { font-size: 22px; margin-top: 40px; }
}

/* ============================================================
   モバイル (〜540px)
   ============================================================ */
@media (max-width: 540px) {
  .hero__title { font-size: 36px; }
  .lead { font-size: 22px; letter-spacing: .08em; }
  .item__title { font-size: 22px; letter-spacing: .08em; }
  .item__photos img { width: 100%; aspect-ratio: 280/190; }
  .card { flex-direction: column; align-items: flex-start; }
  .card__img { width: 60%; }
  .card__body { width: 100%; }
  .sns { gap: 44px; }
  .footer__logo img { width: 200px; }
  .footer__follow { font-size: 24px; }
  .contact__form { height: 760px; }
}
