/*
Theme Name: もりたか法務事務所 Renewal
Theme URI: https://www.moritaka-leo.jp/
Author: DNS.inc
Description: 司法書士もりたか法務事務所のコンテンツ移行・刷新用オリジナルテーマです。
Version: 1.1.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: moritaka-leo-renewal
*/

:root {
  --ink: #17324b;
  --muted: #607486;
  --green: #005bb5;
  --green-deep: #06427f;
  --sky: #34b0ec;
  --gold: #c58b45;
  --cream: #f3f8fc;
  --paper: #ffffff;
  --line: #d7e5f0;
  --shadow: 0 18px 55px rgba(0, 73, 139, .11);
  --radius: 22px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--green-deep); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.site-wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus { top: 8px; left: 8px; width: auto; height: auto; padding: 10px 14px; background: #fff; clip: auto; z-index: 9999; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-top: 5px solid var(--green); border-bottom: 1px solid rgba(215,229,240,.9); box-shadow: 0 5px 20px rgba(0,73,139,.06); backdrop-filter: blur(14px); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; min-width: 228px; padding: 9px 12px; border-radius: 7px; background: var(--green); color: var(--ink); text-decoration: none; line-height: 1.3; }
.brand-legacy-logo { width: 215px; height: auto; margin: 0; border-radius: 0; }
.brand-kicker { color: var(--green); font-size: .72rem; letter-spacing: .16em; font-weight: 700; }
.brand-name { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.28rem; font-weight: 700; letter-spacing: .04em; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .89rem; font-weight: 700; white-space: nowrap; }
.main-nav a { position: relative; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--green); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 3px; border-radius: 3px; background: var(--sky); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after { right: 0; }
.header-phone { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.2; }
.header-phone span { color: var(--muted); font-size: .68rem; }
.header-phone strong { color: var(--green); font-size: 1.08rem; letter-spacing: .02em; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.menu-toggle::before, .menu-toggle::after, .menu-toggle span { content: ""; display: block; width: 19px; height: 2px; margin: 5px auto; background: var(--ink); transition: .2s ease; }
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; overflow: hidden; background-color: #fff; background-image: linear-gradient(rgba(0,91,181,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,91,181,.045) 1px, transparent 1px), linear-gradient(128deg, #fff 0 58%, #eef7fd 58% 100%); background-size: 28px 28px, 28px 28px, 100% 100%; border-bottom: 5px solid var(--green); }
.hero::before { content: ""; position: absolute; right: -160px; top: -240px; width: 660px; height: 660px; border: 1px solid rgba(0,91,181,.15); border-radius: 50%; }
.hero-inner { position: relative; min-height: 630px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
.hero h1 { max-width: 680px; margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(2.45rem, 4.3vw, 3.65rem); font-weight: 600; line-height: 1.35; letter-spacing: .02em; }
.hero h1 em { color: var(--green); font-style: normal; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(52,176,236,.35); text-decoration-thickness: .2em; text-underline-offset: -.08em; text-decoration-skip-ink: none; }
.hero-office { white-space: nowrap; }
.hero-lead { max-width: 600px; margin: 24px 0 34px; color: var(--muted); font-size: 1.02rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { color: #fff; background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(13,92,77,.18); }
.button-light { background: transparent; color: var(--green); }
.button-light:hover { color: #fff; }
.hero-panel { position: relative; padding: 34px; border: 1px solid rgba(255,255,255,.9); border-top: 7px solid var(--sky); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.hero-panel::after { content: "司法書士"; position: absolute; right: -18px; top: -22px; padding: 11px 18px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .14em; }
.legacy-books { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 74px; margin: -7px 0 18px; border-bottom: 7px solid #9f7042; }
.legacy-books i { display: block; width: 24px; border: 2px solid rgba(76,37,19,.22); border-radius: 4px 4px 1px 1px; box-shadow: inset 4px 0 rgba(255,255,255,.14); }
.legacy-books i:nth-child(1) { height: 48px; background: #9e2f2c; }
.legacy-books i:nth-child(2) { height: 61px; background: #bd8538; }
.legacy-books i:nth-child(3) { height: 53px; background: #65432d; }
.legacy-books i:nth-child(4) { height: 66px; background: #b94f2d; transform: rotate(-7deg); transform-origin: bottom; }
.legacy-books span { width: 72px; height: 17px; margin-left: 14px; border: 2px solid rgba(76,37,19,.18); border-radius: 2px 7px 7px 2px; background: #e8c989; box-shadow: 0 -18px 0 #b84b30, 0 -36px 0 #dba95e; }
.hero-panel h2 { margin: 0 0 18px; font-family: "Yu Mincho", serif; font-size: 1.4rem; }
.hero-points { margin: 0; padding: 0; list-style: none; }
.hero-points li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 15px 0; border-top: 1px solid var(--line); }
.hero-points li::before { content: "✓"; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #e5f0eb; color: var(--green); font-weight: 900; }
.hero-contact { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-contact small { display: block; color: var(--muted); }
.hero-contact a { color: var(--ink); text-decoration: none; font-family: Georgia, serif; font-size: 2rem; font-weight: 700; }

.section { padding: 104px 0; }
.section-soft { background: var(--cream); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.3; }
.section-head p { margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.service-card { position: relative; min-height: 370px; padding: 26px; border: 1px solid var(--line); border-top: 6px solid var(--sky); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow); }
.service-number { color: var(--gold); font-family: Georgia, serif; font-size: .86rem; }
.legacy-service-icon { width: 112px; height: 112px; margin: 14px auto 0; border-radius: 50%; transition: transform .2s ease; }
.service-card:hover .legacy-service-icon { transform: translateY(-3px) rotate(-2deg); }
.service-card h3 { margin: 15px 0 10px; font-family: "Yu Mincho", serif; font-size: 1.4rem; text-align: center; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.service-card::after { content: "→"; position: absolute; right: 24px; bottom: 20px; color: var(--green); font-size: 1.45rem; }
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 28px; background: var(--line); overflow: hidden; }
.promise { min-height: 210px; padding: 38px; background: #fff; }
.promise span { color: var(--gold); font-family: Georgia, serif; font-weight: 700; }
.promise h3 { margin: 16px 0 8px; font-family: "Yu Mincho", serif; font-size: 1.35rem; }
.promise p { margin: 0; color: var(--muted); }

.news-layout { display: grid; grid-template-columns: 290px 1fr; gap: 65px; }
.news-intro h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: 2.55rem; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 110px 105px 1fr 30px; gap: 16px; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news-item:hover { color: var(--green); }
.news-item time { color: var(--muted); font-size: .8rem; }
.news-item .label { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: .7rem; text-align: center; }
.news-item strong { font-size: .93rem; }
.news-item .arrow { font-size: 1.25rem; }

.cta { padding: 84px 0; background: var(--green-deep); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.cta h2 { margin: 0 0 12px; font-family: "Yu Mincho", serif; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.35; }
.cta p { margin: 0; color: rgba(255,255,255,.72); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; }
.cta-phone { color: #fff; text-decoration: none; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.cta-phone:hover { color: #fff; }
.cta-actions small { color: rgba(255,255,255,.67); }
.cta-book { min-height: 45px; margin-top: 16px; border-color: rgba(255,255,255,.65); background: transparent; font-size: .85rem; }
.cta-book:hover { border-color: #fff; background: #fff; color: var(--green-deep); }

.page-hero { position: relative; padding: 82px 0 72px; overflow: hidden; background-color: var(--cream); background-image: linear-gradient(rgba(0,91,181,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,91,181,.045) 1px, transparent 1px); background-size: 28px 28px; border-bottom: 5px solid var(--green); }
.page-hero::after { content: ""; position: absolute; right: 8%; bottom: -42px; width: 170px; height: 92px; border: 7px solid #d8aa64; border-radius: 7px; background: #fff; box-shadow: -18px -18px 0 #b84b30, -36px -36px 0 #71492d; transform: rotate(-4deg); opacity: .35; }
.breadcrumbs { margin-bottom: 22px; color: var(--muted); font-size: .76rem; }
.breadcrumbs a { color: inherit; }
.page-hero h1 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(2.25rem, 5vw, 4.15rem); line-height: 1.25; }
.page-hero p { margin: 12px 0 0; color: var(--green); font-family: Georgia, serif; letter-spacing: .14em; text-transform: uppercase; }
.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 66px; padding-block: 74px 110px; }
.content-shell.no-sidebar { grid-template-columns: minmax(0, 850px); justify-content: center; }
.entry-content { min-width: 0; font-size: 1rem; }
.entry-content a { overflow-wrap: anywhere; word-break: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin: 2.6em 0 .9em; padding-bottom: .45em; border-bottom: 2px solid var(--green); font-family: "Yu Mincho", serif; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.45; }
.entry-content h3 { margin: 2.1em 0 .75em; padding-left: 15px; border-left: 4px solid var(--gold); font-size: 1.27rem; }
.entry-content p { margin: 1.1em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.45em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .93rem; }
.entry-content th, .entry-content td { padding: 15px; border: 1px solid var(--line); vertical-align: top; }
.entry-content th { background: var(--cream); text-align: left; }
.entry-content img { margin: 25px auto; border-radius: 14px; }
.entry-content .note, .entry-content blockquote { margin: 28px 0; padding: 24px 28px; border: 0; border-left: 4px solid var(--gold); background: var(--cream); }
.entry-content .cf::after { content: ""; display: table; clear: both; }
.entry-content .alignleft { float: left; margin: 8px 28px 18px 0; }
.entry-content .alignright { float: right; margin: 8px 0 18px 28px; }
.entry-content .aligncenter, .entry-content .center { display: block; margin-inline: auto; }
.entry-content .sub_title, .entry-content .subtitle_sc { display: block; margin: 2em 0 .8em; padding-left: 15px; border-left: 4px solid var(--gold); font-size: 1.25rem; }
.entry-content .text { margin-bottom: 1.8em; }
.entry-content .work_list { padding: 18px 22px 18px 42px; border-radius: 12px; background: var(--cream); }
.entry-content .price_table { white-space: normal; }
.entry-content .prof_box { padding: 25px; border: 1px solid var(--line); border-radius: 18px; }
.entry-content .prof_box .thumb { float: left; margin: 0 24px 16px 0; }
.contact-intro { margin-bottom: 34px; color: var(--muted); }
.contact-required-note { margin: 0 0 20px; font-size: .88rem; }
.required-mark { display: inline-flex; margin-left: 7px; padding: 1px 7px; border-radius: 999px; background: #b43b3b; color: #fff; font-size: .68rem; font-weight: 800; vertical-align: middle; }
.contact-form { display: grid; gap: 18px; }
.contact-field { padding: 22px 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.contact-field > label, .contact-field > legend { display: block; margin-bottom: 9px; color: var(--ink); font-weight: 800; }
.contact-fieldset { min-width: 0; margin: 0; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 50px; padding: 10px 13px; border: 1px solid #b8ccdc; border-radius: 8px; background: #fff; color: var(--ink); }
.contact-form textarea { min-height: 220px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green); outline: 3px solid rgba(0,91,181,.13); }
.contact-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.contact-form-row.postal { grid-template-columns: minmax(0, 130px) auto minmax(0, 170px); justify-content: start; }
.contact-form-row .separator { text-align: center; }
.contact-address-grid { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 12px; }
.contact-address-grid input { grid-column: 1 / -1; }
.contact-help { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; }
.contact-alert { margin: 0 0 24px; padding: 16px 18px; border: 1px solid #e3b7b7; border-left: 5px solid #b43b3b; border-radius: 10px; background: #fff7f7; color: #7d2525; }
.contact-alert.success { border-color: #b7dcc9; border-left-color: #287653; background: #f3fbf7; color: #1f6044; }
.contact-submit { display: flex; justify-content: center; padding-top: 10px; }
.contact-submit .button { min-width: 250px; cursor: pointer; }
.contact-submit .button:disabled { cursor: wait; opacity: .68; }
.contact-submit-status { min-height: 1.5em; margin: 8px 0 0; color: var(--muted); font-size: .88rem; text-align: center; }
.contact-privacy { margin: 4px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.contact-recaptcha-note { margin: 8px auto 0; max-width: 680px; color: var(--muted); font-size: .76rem; line-height: 1.7; text-align: center; }
.contact-recaptcha-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; color: var(--muted); font-size: .82rem; }
.sidebar-card { margin-bottom: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.sidebar-card h2 { margin: 0 0 15px; font-family: "Yu Mincho", serif; font-size: 1.15rem; }
.sidebar-card ul { margin: 0; padding: 0; list-style: none; }
.sidebar-card li + li { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.sidebar-card a { color: var(--ink); text-decoration: none; font-size: .86rem; }
.sidebar-card a:hover { color: var(--green); }
.pagination { display: flex; gap: 8px; margin-top: 50px; }
.pagination .page-numbers { min-width: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; text-align: center; text-decoration: none; }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

.site-footer { padding: 64px 0 28px; background: #073b70; color: rgba(255,255,255,.8); border-top: 8px solid var(--sky); }
.site-footer .brand { background: transparent; padding-inline: 0; border-radius: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 55px; }
.site-footer .brand { color: #fff; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-family: "Yu Mincho", serif; font-size: 1.2rem; }
.site-footer p { margin: 0; font-size: .86rem; }
.site-footer p a { color: rgba(255,255,255,.82); }
.footer-nav { margin: 0; padding: 0; list-style: none; columns: 2; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { color: rgba(255,255,255,.74); font-size: .84rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .72rem; }

@media (max-width: 1050px) {
  .header-phone { display: none; }
  .main-nav ul { gap: 14px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: fixed; inset: 72px 0 0; padding: 28px 22px; background: var(--paper); overflow-y: auto; }
  .menu-open .main-nav { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 16px 2px; font-size: 1rem; }
  .hero { background-image: linear-gradient(rgba(0,91,181,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,91,181,.045) 1px, transparent 1px), linear-gradient(160deg, #fff 0 70%, #eef7fd 70%); }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 40px; padding-block: 76px; }
  .hero-panel { padding: 28px 24px; }
  .section { padding: 76px 0; }
  .section-head, .news-layout, .cta-inner, .content-shell, .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .content-shell { padding-block: 54px 80px; }
  .cta-actions { align-items: flex-start; }
  .sidebar { display: none; }
  .footer-grid { gap: 34px; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 1.05rem; }
  .brand-kicker { font-size: .62rem; }
  .brand { min-width: 0; width: 205px; padding: 8px 10px; }
  .brand-legacy-logo { width: 185px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-office { white-space: nowrap; }
  .hero-inner { padding-block: 58px; }
  .hero-panel::after { right: 12px; }
  .button-row .button { width: 100%; }
  .service-grid, .promise-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 345px; }
  .news-item { grid-template-columns: 84px 1fr; gap: 7px 12px; }
  .news-item .label { grid-column: 1; grid-row: 2; }
  .news-item strong { grid-column: 2; grid-row: 1 / span 2; }
  .news-item .arrow { display: none; }
  .page-hero { padding: 58px 0 50px; }
  .entry-content { font-size: .95rem; }
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .contact-field { padding: 18px 16px; }
  .contact-address-grid { grid-template-columns: 1fr; }
  .contact-address-grid input { grid-column: auto; }
  .contact-form-row.postal { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
}
