/*
Theme Name: Cocoyori
Theme URI: https://marriage.cocoyori.co.jp
Author: 株式会社ココヨリ
Description: ココヨリ結婚相談所 オリジナルテーマ(STUDIO版デザイン踏襲)
Version: 1.0.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cocoyori
*/

:root {
  --c-text: #3a3a3a;
  --c-text-dark: #222;
  --c-text-light: #666;
  --c-accent: #588bc6;
  --c-bg-blue: rgba(232, 243, 254, 0.65);
  --c-bg-blue2: rgba(239, 247, 255, 0.55);
  --c-bg-gray: #fafafa;
  --c-line: #e6e6e6;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  font-size: 15px;
  line-height: 2;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  height: 72px;
  display: flex;
  align-items: center;
}
.site-header .inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo img { width: 190px; height: auto; }
.global-nav { display: flex; align-items: center; gap: 28px; }
.global-nav a { font-size: 14px; color: var(--c-text); transition: color .2s; }
.global-nav a:hover { color: var(--c-accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.sns-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.sns-circle:hover { background: #e8f0fa; }
.sns-circle svg { width: 18px; height: 18px; fill: #333; }
.btn-contact {
  background: var(--c-accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s;
}
.btn-contact:hover { opacity: .85; }
.nav-toggle { display: none; }

/* ===== Buttons ===== */
.wp-block-button__link,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--c-accent);
  border: 1px solid #c3d6ec;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  box-shadow: 0 2px 10px rgba(88, 139, 198, .08);
}
.wp-block-button__link:hover,
.btn-outline:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

/* ===== Sections common ===== */
.section { padding: 110px 24px; }
.section .inner { max-width: 1080px; margin: 0 auto; }
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 500; color: var(--c-text-dark); }
.sec-title { font-size: 40px; line-height: 1.7; letter-spacing: .06em; }

/* ===== Hero ===== */
.sec-hero {
  margin-top: 72px;
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sec-hero .bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sec-hero .inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.sec-hero h1 {
  font-size: 54px;
  line-height: 1.8;
  color: #fff;
  letter-spacing: .1em;
  text-shadow: 0 2px 24px rgba(40, 60, 100, .45);
}
.sec-hero p {
  margin-top: 32px;
  font-size: 20px;
  color: #fff;
  letter-spacing: .12em;
  line-height: 2.2;
  text-shadow: 0 2px 18px rgba(40, 60, 100, .5);
  font-family: var(--font-serif);
}

/* ===== 原因(淡青背景) ===== */
.sec-cause { background: var(--c-bg-blue); }
.sec-cause .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.sec-cause p + p { margin-top: 28px; }
.sec-cause .wp-block-buttons { margin-top: 40px; }

/* ===== お悩みカード ===== */
.sec-worries { padding: 90px 24px; background: #fff; }
.worry-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.worry-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
  padding: 44px 24px;
  text-align: center;
}
.worry-card .icon { color: var(--c-accent); font-size: 34px; margin-bottom: 18px; }
.worry-card p { font-size: 15px; color: var(--c-text-dark); }

/* ===== なぜ ===== */
.sec-why .cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.sec-why .sec-title { margin-bottom: 36px; }
.sec-why p + p { margin-top: 26px; }
.sec-why img { border-radius: 12px; }

/* ===== 選ばれる理由 ===== */
.sec-reasons .sec-title { margin-bottom: 56px; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.reason-card {
  background: var(--c-bg-blue2);
  border-radius: 10px;
  padding: 40px 40px 36px;
}
.reason-card .icon { color: var(--c-accent); font-size: 26px; margin-bottom: 16px; }
.reason-card h3 { font-size: 21px; margin-bottom: 14px; letter-spacing: .05em; }
.reason-card p { font-size: 14px; color: var(--c-text); }

/* ===== 3つの入口 ===== */
.sec-service { background: #fff; text-align: center; }
.sec-service .sec-title { margin-bottom: 36px; }
.sec-service .lead { margin-bottom: 64px; }
.service-cols { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto; }
.service-col { padding: 20px 32px; }
.service-col + .service-col { border-left: 1px solid var(--c-line); }
.service-col .icon { color: var(--c-accent); font-size: 34px; margin-bottom: 20px; }
.service-col h3 { font-size: 24px; margin-bottom: 18px; letter-spacing: .08em; }
.service-col p { font-size: 14px; }
.sec-service .note { margin-top: 60px; font-size: 14px; }

/* ===== 代表プロフィール ===== */
.sec-profile { background: var(--c-bg-gray); }
.sec-profile .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }
.sec-profile .label { font-size: 14px; letter-spacing: .2em; color: var(--c-text-light); font-family: var(--font-serif); }
.sec-profile h2 { font-size: 34px; margin: 10px 0 40px; letter-spacing: .15em; }
.sec-profile p + p { margin-top: 26px; }
.sec-profile p { font-size: 14.5px; }
.profile-photo img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  background: radial-gradient(circle, #eaf4ff 0%, #fff 70%);
}

/* ===== 成婚事例 ===== */
.sec-cases .sec-title { margin-bottom: 56px; }
.sec-cases .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.case-item { margin-bottom: 48px; }
.case-item:last-child { margin-bottom: 0; }
.case-item h3 {
  font-size: 21px;
  line-height: 1.9;
  margin-bottom: 20px;
  letter-spacing: .05em;
  display: flex;
  gap: 14px;
}
.case-item h3 .icon { color: var(--c-accent); font-size: 22px; flex-shrink: 0; margin-top: 6px; }
.case-item p { font-size: 14px; padding-left: 36px; }
.case-item p + p { margin-top: 20px; }
.sec-cases .photo { align-self: center; }
.sec-cases .photo img { border-radius: 8px; }

/* ===== 無料カウンセリングCTA ===== */
.sec-cta { background: #f6f6f4; }
.sec-cta .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.sec-cta .sec-title { font-size: 36px; }
.sec-cta .sub { font-size: 13px; margin-top: 14px; color: var(--c-text-light); }
.sec-cta p + p { margin-top: 26px; }
.sec-cta .wp-block-buttons { margin-top: 40px; }

/* ===== FAQ ===== */
.sec-faq { text-align: left; }
.sec-faq .sec-title { text-align: center; margin-bottom: 70px; }
.faq-item { border-top: 1px solid var(--c-line); padding: 34px 0; max-width: 820px; margin: 0 auto; }
.faq-item:last-of-type { border-bottom: 1px solid var(--c-line); }
.faq-q {
  font-size: 16.5px;
  color: var(--c-text-dark);
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: var(--font-serif);
}
.faq-q .icon { color: var(--c-text-light); font-size: 18px; flex-shrink: 0; }
.faq-a {
  margin-top: 24px;
  background: var(--c-bg-gray);
  border-radius: 6px;
  padding: 30px 36px;
  font-size: 14px;
}
.faq-a p + p { margin-top: 20px; }
.faq-more { text-align: center; margin-top: 60px; }
.faq-more p { margin-bottom: 28px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--c-line); padding: 46px 24px 30px; }
.site-footer .inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer .footer-nav { display: flex; gap: 28px; font-size: 13px; }
.site-footer .footer-nav a:hover { color: var(--c-accent); }
.site-footer .copyright {
  max-width: 1240px;
  margin: 26px auto 0;
  text-align: right;
  font-size: 12px;
  color: var(--c-text-light);
}

/* ===== 会社概要ページ ===== */
.page-simple { margin-top: 72px; padding: 100px 24px 120px; min-height: 60vh; }
.page-simple .inner { max-width: 820px; margin: 0 auto; }
.page-simple h1, .page-simple h2 { font-size: 34px; margin-bottom: 50px; letter-spacing: .1em; }
.company-table p { padding: 18px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.company-table p:first-of-type { border-top: 1px solid var(--c-line); }

/* ===== WPコアブロック調整 ===== */
.wp-block-columns { gap: 60px; }
.wp-block-image img { border-radius: 12px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sec-title { font-size: 30px; }
  .sec-hero h1 { font-size: 36px; }
  .sec-hero p { font-size: 16px; }
  .sec-hero { min-height: 520px; }
  .sec-cause .cols, .sec-why .cols, .sec-profile .cols,
  .sec-cases .cols, .sec-cta .cols { grid-template-columns: 1fr; gap: 40px; }
  .worry-cards, .reason-grid, .service-cols { grid-template-columns: 1fr; }
  .service-col + .service-col { border-left: none; border-top: 1px solid var(--c-line); padding-top: 44px; margin-top: 24px; }
  .global-nav { display: none; }
  .profile-photo { max-width: 320px; margin: 0 auto; }
  .section { padding: 70px 20px; }
}


/* ===== mobile hamburger menu ===== */
.menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px;margin-left:4px}
.menu-toggle span{display:block;width:24px;height:2px;background:#3a3a3a;margin:5px 0;border-radius:2px;transition:transform .3s,opacity .3s}
body.nav-open .menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
body.nav-open .menu-toggle span:nth-child(2){opacity:0}
body.nav-open .menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media (max-width:900px){
  .menu-toggle{display:block}
  .global-nav{display:none;position:fixed;top:72px;left:0;right:0;background:rgba(255,255,255,.98);flex-direction:column;align-items:stretch;gap:0;padding:8px 0 16px;box-shadow:0 12px 30px rgba(58,74,92,.12);border-bottom:1px solid rgba(58,74,92,.1)}
  body.nav-open .global-nav{display:flex}
  .global-nav a{padding:14px 24px;font-size:15px}
}
@media (max-width:640px){
  .btn-contact{padding:10px 18px;font-size:13px}
}


/* ===== mobile menu: contact inside nav, vertical footer nav ===== */
.global-nav .nav-contact-mobile{display:none}
@media (max-width:900px){
  .header-actions .btn-contact{display:none}
  .site-header .inner{justify-content:flex-start}
  .site-logo{margin-right:auto}
  .menu-toggle{order:2}
  .global-nav .nav-contact-mobile{display:block;margin:10px 24px 4px;background:var(--c-accent);color:#fff !important;text-align:center;border-radius:999px;padding:12px;font-weight:600}
  .site-footer .inner{flex-direction:column;align-items:flex-start;gap:16px}
  .footer-nav{flex-direction:column;align-items:flex-start;gap:0}
  .footer-nav a{padding:10px 0}
}

.footer-sns{display:flex;gap:12px}

/* ===== mobile: text wrapping & footer cleanup ===== */
@media (max-width:900px){
  .site-footer .footer-nav,.site-footer .footer-sns{display:none}
  .site-footer .inner{gap:8px}
}
@media (max-width:640px){
  h1,h2,h3,h4,.sec-title{text-wrap:balance;word-break:auto-phrase}
  p,li{text-wrap:pretty}
  p br{display:none}
  .sec-title{font-size:26px}
  .reason-card h3,.case-item h3{font-size:18px}
}

/* ===== mobile: CTA title one line & profile photo under name ===== */
@media (max-width:640px){
  .sec-cta .sec-title{font-size:24px;white-space:nowrap}
}
@media (max-width:900px){
  .sec-profile .cols{gap:0}
  .sec-profile .cols>div:first-child{display:contents}
  .sec-profile .cols .label{order:1}
  .sec-profile .cols h2{order:2;margin-bottom:4px}
  .sec-profile .profile-photo{order:3;margin:16px 0 24px}
  .sec-profile .cols p{order:4}
}
